sqllogictest
Artifact Content
Not logged in

Artifact 48115ce2ffe01895b8caae843bf878425d8d34e9:


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)

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL - - ( COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

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

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - col2 >= + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + COUNT( ALL + 67 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4
SELECT + COUNT ( ALL + 67 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ALL + 89 DIV - col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + 89 / - col2 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT MIN( - - 92 ) * CAST( NULL AS SIGNED ) + 27 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT MIN ( - - 92 ) * CAST ( NULL AS INTEGER ) + 27 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT + 13 * + - col0 FROM tab0 AS cor0
----
-1131
-1261
-195

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-14
SELECT + CAST( - col0 AS SIGNED ) * + - 75 + - col2 AS col1, + col0 / - CAST( NULL AS DECIMAL ) FROM tab2
----
3427
NULL
4760
NULL
5567
NULL

skipif mysql # not compatible
query II rowsort label-14
SELECT + CAST ( - col0 AS INTEGER ) * + - 75 + - col2 AS col1, + col0 / - CAST ( NULL AS REAL ) FROM tab2
----
3427
NULL
4760
NULL
5567
NULL

query II rowsort
SELECT + col1 AS col2, 88 FROM tab2 WHERE NOT col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) BETWEEN 78 * - col1 AND + col0
----
51
14
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT DISTINCT + 23 + + 66 * + MIN( DISTINCT ( + - col0 ) ) col2 FROM tab0 AS cor0
----
-6379

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-18
SELECT DISTINCT + 23 + + 66 * + MIN ( DISTINCT ( + - col0 ) ) col2 FROM tab0 AS cor0
----
-6379

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

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

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

query I rowsort
SELECT DISTINCT - 7 * + - col2 AS col1 FROM tab0
----
329
693
70

query I rowsort
SELECT 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT + - COUNT( DISTINCT 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-23
SELECT + - COUNT ( DISTINCT 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + COUNT( * ) + + ( + 8 ) AS col1 FROM tab0
----
11

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

query I rowsort
SELECT 92 + - - 55 FROM tab1 AS cor0
----
147
147
147

query I rowsort
SELECT DISTINCT - col2 * - col1 + + 91 FROM tab2 AS cor0
----
1264
3171
3977

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-28
SELECT ALL + 51 * + CAST( NULL AS DECIMAL ) * - 81 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL + 51 * + CAST ( NULL AS REAL ) * - 81 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT DISTINCT col0 + col0 + - CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
-51
153
193

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT col0 + col0 + - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
-51
153
193

query I rowsort
SELECT DISTINCT - col2 * col0 * ( + 87 ) FROM tab2
----
-222720
-378450
-92046

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT - col2 DIV - col1 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-31
SELECT - col2 / - col1 + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT + + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

query II rowsort
SELECT ALL + 61 * + + ( - 35 ) AS col2, col0 FROM tab1
----
-2135
51
-2135
85
-2135
91

query I rowsort
SELECT + 12 AS col0 FROM tab0 WHERE NOT + 54 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL - SUM( col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT + + col1 DIV 81 + 44 AS col2 FROM tab0 AS cor0
----
44
44
45

skipif mysql # not compatible
query I rowsort label-38
SELECT + + col1 / 81 + 44 AS col2 FROM tab0 AS cor0
----
44
44
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-40
SELECT CAST( + + 40 AS SIGNED ) + 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif mysql # not compatible
query I rowsort label-40
SELECT CAST ( + + 40 AS INTEGER ) + 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT DISTINCT 8 DIV - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT 8 / - COUNT ( * ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT DISTINCT + SUM( col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT + SUM ( col2 ) AS col0 FROM tab0
----
156

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-43
SELECT ALL SUM ( ALL + col1 ) col0 FROM tab0 AS cor0
----
103

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT col2 * col0 + - 89 DIV + col2 col0 FROM tab2
----
1055
2558
4349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-47
SELECT col2 * col0 + - 89 / + col2 col0 FROM tab2
----
1055
2558
4349

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 80 * 73 ) < ( + 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - 39 - col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT DISTINCT CAST( + 55 AS SIGNED ) FROM tab0
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT - SUM( DISTINCT + 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT - SUM ( DISTINCT + 35 ) FROM tab1
----
-35

query I rowsort
SELECT DISTINCT col0 - ( - ( + col1 ) ) AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT - col0 + 12 FROM tab2
----
-34
-52
-63

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE + col2 * + 34 > ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + 27 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) + + ( - col0 ) FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT - 94 * col2 AS col2 FROM tab1
----
-5546
-6392
-9024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-60
SELECT ALL MIN( 67 ) * SUM( DISTINCT - 88 - col2 DIV col0 ) FROM tab1
----
-11859

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL MIN ( 67 ) * SUM ( DISTINCT - 88 - col2 / col0 ) FROM tab1
----
-11859

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

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

query I rowsort
SELECT DISTINCT 21 + col1 FROM tab1 WHERE + 93 * ( - col2 * col0 ) + col1 IN ( col0 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-64
SELECT col1 / + col1 + - col1 / + col0 AS col2 FROM tab1
----
1
1
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-66
SELECT ALL * FROM tab0 WHERE ( 18 ) < - CAST( - 48 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-66
SELECT ALL * FROM tab0 WHERE ( 18 ) < - CAST ( - 48 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT - col2 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - col2 / CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT ALL col2 DIV col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL col2 / col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT + ( + col0 ) * + col2 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT DISTINCT 51 DIV - col1 AS col0 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT 51 / - col1 AS col0 FROM tab1
----
-1
-10
-3

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

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

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT + col1 / 49 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL 57 * + MIN( col2 ) AS col0 FROM tab1
----
3363

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL 57 * + MIN ( col2 ) AS col0 FROM tab1
----
3363

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT 80 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-75
SELECT ALL 40 DIV COUNT( - 99 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL 40 / COUNT ( - 99 ) FROM tab0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL + ( col2 ) DIV col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL + ( col2 ) / col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN col0 AND NULL
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 * - col1 - + col0 ) <= 14 * + 1
----
97
1
99

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - COUNT( * ) - + 85 * 18 AS col2 FROM tab1 cor0
----
-1533

skipif mysql # not compatible
query I rowsort label-81
SELECT - COUNT ( * ) - + 85 * 18 AS col2 FROM tab1 cor0
----
-1533

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 75 ) + - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT 77 DIV - 89 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-83
SELECT 77 / - 89 col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1 / 22 )
----

query I rowsort
SELECT DISTINCT + 44 * - col0 AS col0 FROM tab0
----
-3828
-4268
-660

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

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

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

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

query I rowsort
SELECT - col0 * 7 AS col0 FROM tab0 AS cor0
----
-105
-609
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL - 28 * MIN( DISTINCT col2 + - 14 ) AS col1 FROM tab1 AS cor0
----
-1260

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL - 28 * MIN ( DISTINCT col2 + - 14 ) AS col1 FROM tab1 AS cor0
----
-1260

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + COUNT( * ) * - ( 19 ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-91
SELECT + COUNT ( * ) * - ( 19 ) AS col0 FROM tab0 AS cor0
----
-57

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

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

query I rowsort
SELECT - ( - 17 ) FROM tab1 AS cor0 WHERE NOT 13 * - col2 + 87 * 34 IN ( col2 )
----
17
17
17

query I rowsort
SELECT DISTINCT col0 / 60 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT 71 * - - COUNT( * ) AS col2 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-96
SELECT 71 * - - COUNT ( * ) AS col2 FROM tab0
----
213

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-97
SELECT ALL - 22 DIV CAST( col2 AS SIGNED ) col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-97
SELECT ALL - 22 / CAST ( col2 AS INTEGER ) col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT + col1 * 81 + 62 NOT BETWEEN ( NULL ) AND ( col2 + col1 / + col0 ) OR ( 20 * - col2 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT 20 * - col0 * - col0 FROM tab1
----
144500
165620
52020

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

query I rowsort
SELECT + 6 * 14 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT CAST( COUNT( col1 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT CAST ( COUNT ( col1 ) AS INTEGER ) FROM tab0
----
3

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

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

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

query I rowsort
SELECT DISTINCT - 63 * - + 34 FROM tab2 AS cor0
----
2142

query II rowsort
SELECT col0, - col1 * 45 FROM tab0 AS cor0
----
15
-3645
87
-945
97
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 20 col0, col1 AS col0 FROM tab1 AS cor0
----
20
14
20
47
20
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col2, - col2 * + col1 FROM tab0 AS cor0
----
57
-210
57
-3807
57
-99

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-113
SELECT ALL 1 * COUNT( * ) + - 74 FROM tab2 AS cor0 WHERE col1 <= + col2 * - CAST( NULL AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL 1 * COUNT ( * ) + - 74 FROM tab2 AS cor0 WHERE col1 <= + col2 * - CAST ( NULL AS INTEGER )
----
-74

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

query I rowsort
SELECT ( 69 ) FROM tab1 WHERE NOT NULL > 52 * - - col1 + - 79 AND NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab1 WHERE ( + - 6 * - - 64 * - col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 96 - - col1 FROM tab2
----
147
163
173

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT DISTINCT + col2 * col0 DIV 29 FROM tab1 AS cor0
----
168
172
213

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + col2 * col0 / 29 FROM tab1 AS cor0
----
168
172
213

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * - 48 * + col0 * col2 >= col2
----

query II rowsort
SELECT DISTINCT + col0 AS col2, + ( + - col1 ) FROM tab1
----
51
-14
85
-5
91
-47

query II rowsort
SELECT col1 AS col1, col1 - - col2 FROM tab1
----
14
110
47
115
5
64

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + 79 BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT 80 - + 58 FROM tab1 cor0 WHERE NOT NULL BETWEEN col0 AND col1 * + 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-127
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + 15 AS col1 FROM tab0 AS cor0
----
1485
150
705

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + 15 AS col1 FROM tab0 AS cor0
----
1485
150
705

query II rowsort
SELECT ALL - - col1 * col2 * - col1, + col1 AS col2 FROM tab1 AS cor0
----
-1475
5
-150212
47
-18816
14

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT DISTINCT - 11 * + SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
2189

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT - 11 * + SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
2189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT COUNT( ALL 9 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT COUNT ( ALL 9 ) FROM tab2
----
3

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

query I rowsort
SELECT - 15 + - col2 + - col0 FROM tab0
----
-112
-211
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT + 73 * MAX( - col1 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT + 73 * MAX ( - col1 ) FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - SUM( ALL + 38 ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-136
SELECT - SUM ( ALL + 38 ) FROM tab1
----
-114

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + col1 * - col0 * + 10 <> + - col1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + col2 ) * - - 19 + col2 col2 FROM tab0 AS cor0
----
-13348
-16520
-182358

query II rowsort
SELECT - col1 + + col2 AS col1, - 29 FROM tab1 AS cor0
----
21
-29
54
-29
82
-29

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

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

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

query I rowsort
SELECT col0 + - + col0 * col2 + - col1 AS col2 FROM tab1 cor0
----
-4859
-4935
-6144

query II rowsort
SELECT + - col1 + col2, + 72 AS col1 FROM tab0 AS cor0
----
-11
72
-34
72
98
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 - + col0 > + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 37 + + 73 AS col2 FROM tab0 AS cor0
----
110

query I rowsort
SELECT DISTINCT + + 37 + + 28 AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-147
SELECT COUNT( * ) * 33 DIV - - 39 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-147
SELECT COUNT ( * ) * 33 / - - 39 FROM tab1 AS cor0
----
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT + col2 DIV - + col0 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-149
SELECT + col2 / - + col0 AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL IS NULL OR 64 * + col1 + - 6 + - + col0 * + col1 + col0 / - col1 IS NULL
----
46
64
75

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - col1 * 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT 83 AS col0 FROM tab2 WHERE NOT + + 88 IN ( col0 )
----
83
83
83

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

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

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

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

query II rowsort
SELECT + 64 * col0 * + 87 * + col1, col2 + + + col1 + - col2 AS col1 FROM tab0 AS cor0
----
10172736
21
540096
1
6765120
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1 * + ( col1 ) AS col2, 34 AS col2 FROM tab0 AS cor0
----
1
34
441
34
6561
34

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

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

query I rowsort
SELECT - + 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + ( + SUM( ALL col0 ) ) + + 86 col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-166
SELECT ALL + ( + SUM ( ALL col0 ) ) + + 86 col1 FROM tab0 AS cor0
----
285

query I rowsort
SELECT ALL col1 * + ( - ( + col2 ) ) * col1 + - 99 * + - col2 * + col1 + + 14 FROM tab2 cor0
----
124366
56318
67774

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 41 > - - col1
----
91
47
68

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

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - COUNT ( * ) + MIN ( + 71 ) FROM tab2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-170
SELECT DISTINCT - MIN( ALL + col0 ) * + CAST( NULL AS SIGNED ) + + ( COUNT( col1 ) ) * + 53 FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE - 34 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT - COUNT( * ) * - 8 * 61 * + COUNT( * ) FROM tab2
----
4392

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - COUNT ( * ) * - 8 * 61 * + COUNT ( * ) FROM tab2
----
4392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-174
SELECT DISTINCT + COUNT( * ) DIV + + 7 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + COUNT ( * ) / + + 7 AS col2 FROM tab1
----
0

query I rowsort
SELECT - 79 * + col1 + + col2 FROM tab1 WHERE + 93 NOT IN ( + col2 - 63 + + + col2 * col1 )
----
-1010
-336
-3645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT COUNT( col1 ) * - 10 FROM tab1 AS cor0 WHERE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-176
SELECT COUNT ( col1 ) * - 10 FROM tab1 AS cor0 WHERE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL
----
-30

query I rowsort
SELECT DISTINCT col2 * 16 AS col0 FROM tab0 AS cor0
----
1584
160
752

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

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

query II rowsort
SELECT + 52 + - - col2 AS col1, - col1 FROM tab1
----
111
-5
120
-47
148
-14

query I rowsort
SELECT ALL - 89 - - ( col1 ) FROM tab0
----
-68
-8
-88

query I rowsort
SELECT - 92 * 9 FROM tab0 AS cor0
----
-828
-828
-828

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

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

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

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

query I rowsort
SELECT ALL col2 + + 34 AS col2 FROM tab2 AS cor0
----
57
74
92

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT DISTINCT - - COUNT( * ) + + 74, 94 AS col0 FROM tab1 AS cor0
----
77
94

skipif mysql # not compatible
query II rowsort label-185
SELECT DISTINCT - - COUNT ( * ) + + 74, 94 AS col0 FROM tab1 AS cor0
----
77
94

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 <> ( + col1 / - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-187
SELECT * FROM tab0 WHERE NOT + CAST( - 1 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-187
SELECT * FROM tab0 WHERE NOT + CAST ( - 1 AS REAL ) = NULL
----

query II rowsort
SELECT DISTINCT ( + 19 ), + col2 + 82 + col1 AS col0 FROM tab2
----
19
156
19
199
19
207

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

skipif mysql # not compatible
query I rowsort label-189
SELECT + COUNT ( * ) / - SUM ( ALL - col0 ) * + 11 FROM tab2
----
0

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-192
SELECT DISTINCT + - col2 DIV col0 AS col0, CAST( NULL AS SIGNED ) * - 48 col1 FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-192
SELECT DISTINCT + - col2 / col0 AS col0, CAST ( NULL AS INTEGER ) * - 48 col1 FROM tab2 AS cor0
----
0
NULL

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

query II rowsort
SELECT ALL col0 AS col1, - 89 + col2 FROM tab1
----
51
7
85
-30
91
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + MAX( col0 ) AS col0 FROM tab0 WHERE NOT + 12 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT + MAX ( col0 ) AS col0 FROM tab0 WHERE NOT + 12 > NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 * col0 / - - col2 * 84 * + col2 BETWEEN NULL AND ( col2 * - col0 * 65 )
----

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

skipif mysql # not compatible
query I rowsort label-199
SELECT + SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 33 = ( 59 + - col0 * - 88 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) + + ( - ( 47 ) ) - + - col2 / - 45 * - ( - 22 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) + + ( - ( 47 ) ) - + - col2 / - 45 * - ( - 22 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab0 AS cor0 WHERE - ( - col0 ) NOT BETWEEN - 37 AND NULL
----

query I rowsort
SELECT col1 + ( - col2 ) AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT - 74 + col0 * - - col2 AS col0 FROM tab1
----
4822
4941
6114

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + COUNT( DISTINCT col2 ) * - - 76 AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + COUNT ( DISTINCT col2 ) * - - 76 AS col1 FROM tab2
----
228

query I rowsort
SELECT DISTINCT 76 * + col1 FROM tab1
----
1064
3572
380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-207
SELECT col0 / - col0 / col1 * - - col1 * + CAST( col1 AS SIGNED ) AS col1, + col2 / col0 * - 82 AS col0 FROM tab2 WHERE 77 NOT BETWEEN - col2 AND - col0 * + - col1
----

skipif mysql # not compatible
query II rowsort label-207
SELECT col0 / - col0 / col1 * - - col1 * + CAST ( col1 AS INTEGER ) AS col1, + col2 / col0 * - 82 AS col0 FROM tab2 WHERE 77 NOT BETWEEN - col2 AND - col0 * + - col1
----

query I rowsort
SELECT col2 + - 86 + - 11 FROM tab0
----
-50
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL MAX( DISTINCT col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL MAX ( DISTINCT col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT ALL - col0 * - 96 AS col2 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-211
SELECT DISTINCT * FROM tab2 cor0 WHERE 61 NOT BETWEEN + CAST( - ( + col1 ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-211
SELECT DISTINCT * FROM tab2 cor0 WHERE 61 NOT BETWEEN + CAST ( - ( + col1 ) AS INTEGER ) AND NULL
----

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

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

query I rowsort
SELECT ALL 55 * - + col1 AS col0 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT - CAST( NULL AS SIGNED ) - 38 FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-214
SELECT - CAST ( NULL AS INTEGER ) - 38 FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

query I rowsort
SELECT - col0 * + - ( col0 ) * - col2 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL MIN( - 89 ) * - COUNT( * ) + COUNT( * ) col0 FROM tab2
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-216
SELECT ALL MIN ( - 89 ) * - COUNT ( * ) + COUNT ( * ) col0 FROM tab2
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT DISTINCT + COUNT( * ) DIV 22 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT + COUNT ( * ) / 22 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT CAST( NULL AS SIGNED ) col0, - col1 * col0 - - 89 AS col0 FROM tab0
----
NULL
-1126
NULL
-1738
NULL
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-218
SELECT CAST ( NULL AS INTEGER ) col0, - col1 * col0 - - 89 AS col0 FROM tab0
----
NULL
-1126
NULL
-1738
NULL
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL CAST( - col2 AS SIGNED ) * + 32 AS col2 FROM tab0
----
-1504
-3168
-320

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL CAST ( - col2 AS INTEGER ) * + 32 AS col2 FROM tab0
----
-1504
-3168
-320

query II rowsort
SELECT ALL 85, - col0 AS col0 FROM tab2
----
85
-46
85
-64
85
-75

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

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT 19 IS NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-224
SELECT DISTINCT + COUNT( * ) AS col0, 13 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-224
SELECT DISTINCT + COUNT ( * ) AS col0, 13 FROM tab1 AS cor0
----
3
13

query I rowsort
SELECT + 4 * + - col2 FROM tab0 AS cor0
----
-188
-396
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - COUNT( * ) + - 81 * 62 FROM tab0
----
-5025

skipif mysql # not compatible
query I rowsort label-226
SELECT - COUNT ( * ) + - 81 * 62 FROM tab0
----
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-227
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT + 0 BETWEEN + - ( + - col0 ) + + ( - 80 ) AND + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT + 0 BETWEEN + - ( + - col0 ) + + ( - 80 ) AND + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT SUM( + 64 ) FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-228
SELECT SUM ( + 64 ) FROM tab1 cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - MAX( ALL + 95 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-229
SELECT - MAX ( ALL + 95 ) FROM tab0 AS cor0
----
-95

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

query I rowsort
SELECT DISTINCT - 15 + + - col1 * 9 FROM tab2 AS cor0
----
-474
-618
-708

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT BETWEEN - ( col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE + + col1 + ( 65 ) + 46 IN ( col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT + COUNT( DISTINCT + 57 ) * + - 61 - - + MIN( ALL col0 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-235
SELECT + COUNT ( DISTINCT + 57 ) * + - 61 - - + MIN ( ALL col0 ) FROM tab2
----
-15

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

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

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

query II rowsort
SELECT DISTINCT 27, col1 * - - col0 AS col1 FROM tab0
----
27
1215
27
1827
27
97

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL - - ( - SUM( - 72 ) ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - - ( - SUM ( - 72 ) ) FROM tab2 AS cor0
----
216

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT 50 + + + CAST( + ( + col1 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
101
117
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-242
SELECT 50 + + + CAST ( + ( + col1 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
101
117
127

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT 52 + + COUNT( * ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-243
SELECT 52 + + COUNT ( * ) FROM tab1 AS cor0
----
55

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - MAX( ALL + 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-245
SELECT - MAX ( ALL + 15 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT - SUM( - 46 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-246
SELECT - SUM ( - 46 ) FROM tab2
----
138

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col2 * col0 * col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - ( col2 ) col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-250
SELECT + + ( + col0 ) * + 84 + - CAST( NULL AS SIGNED ) * - 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT + + ( + col0 ) * + 84 + - CAST ( NULL AS INTEGER ) * - 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + 45 = NULL ) )
----

query I rowsort
SELECT - - 61 * - - ( 34 ) AS col1 FROM tab2 AS cor0
----
2074
2074
2074

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

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL - 21 * - + ( 2 ) - - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + + 4 FROM tab1 AS cor0
----
-236
-272
-384

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

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT DISTINCT 24 DIV + col0 + + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1214
-1827
-97

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT 24 / + col0 + + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1214
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL + SUM( ALL col1 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + SUM ( ALL col1 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT DISTINCT + 25 / - MIN( ALL - + col2 ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-259
SELECT 75 DIV + COUNT( + col1 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-259
SELECT 75 / + COUNT ( + col1 ) FROM tab0
----
25

query I rowsort
SELECT ALL - ( + - 91 ) AS col1 FROM tab2
----
91
91
91

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

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

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

query I rowsort
SELECT DISTINCT + ( - 14 ) FROM tab1
----
-14

query I rowsort
SELECT ALL 22 * - ( ( - col1 ) ) AS col1 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT DISTINCT col1 * + col1 * - - col1 AS col0 FROM tab2
----
132651
300763
456533

query II rowsort
SELECT col0 AS col2, col0 + + 85 + col2 AS col0 FROM tab0
----
15
147
87
182
97
281

query I rowsort
SELECT DISTINCT - 71 * - col1 AS col1 FROM tab1 AS cor0
----
3337
355
994

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-268
SELECT DISTINCT + - COUNT( * ) * + 20 * 84, + 19 DIV + 85 AS col0 FROM tab0 AS cor0
----
-5040
0

skipif mysql # not compatible
query II rowsort label-268
SELECT DISTINCT + - COUNT ( * ) * + 20 * 84, + 19 / + 85 AS col0 FROM tab0 AS cor0
----
-5040
0

query I rowsort
SELECT ( - 76 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab1, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab1, tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT ALL - + COUNT( * ) * CAST( + 76 AS SIGNED ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - + COUNT ( * ) * CAST ( + 76 AS INTEGER ) FROM tab2 AS cor0
----
-228

query II rowsort
SELECT DISTINCT - 17 + 20 + 55 + col1 + - 96 * - 51 AS col1, + 78 AS col2 FROM tab1 AS cor0
----
4959
78
4968
78
5001
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col0, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT ALL + col2 * + CAST( - - col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL + col2 * + CAST ( - - col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-276
SELECT * FROM tab0 AS cor0 WHERE - 78 IN ( - col1, - 90 * col1 * - CAST( + 99 AS SIGNED ), - col0 - ( + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-276
SELECT * FROM tab0 AS cor0 WHERE - 78 IN ( - col1, - 90 * col1 * - CAST ( + 99 AS INTEGER ), - col0 - ( + + col2 ) )
----

query I rowsort
SELECT ALL - + 15 + + col1 FROM tab0 AS cor0
----
-14
6
66

query I rowsort
SELECT + 14 + 41 + + + 29 AS col0 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT ALL + - 19 AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-279
SELECT ALL + - 19 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-19
3

query I rowsort
SELECT ALL + 79 + col2 + 30 FROM tab2 AS cor0
----
132
149
167

query I rowsort
SELECT col0 + - 21 FROM tab0 AS cor0
----
-6
66
76

query II rowsort
SELECT DISTINCT + 39 + + col2 AS col2, ( + + 72 ) FROM tab0 AS cor0
----
138
72
49
72
86
72

query I rowsort
SELECT + - 89 + + col0 - + + col1 AS col0 FROM tab0 AS cor0
----
-155
-23
7

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

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

query I rowsort
SELECT col2 FROM tab1 WHERE - ( 11 ) IS NULL
----

query I rowsort
SELECT 22 * - - 71 FROM tab0
----
1562
1562
1562

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-288
SELECT DISTINCT col2 DIV col2 + + 2 + col0 * + - col0, col1 AS col1 FROM tab1 AS cor0
----
-2598
14
-7222
5
-8278
47

skipif mysql # not compatible
query II rowsort label-288
SELECT DISTINCT col2 / col2 + + 2 + col0 * + - col0, col1 AS col1 FROM tab1 AS cor0
----
-2598
14
-7222
5
-8278
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 4 * + col0 + + - col1 col2, - col1 FROM tab0 AS cor0
----
-141
-81
-369
-21
-389
-1

query I rowsort
SELECT ALL - col1 * + + 28 + - ( - 3 ) FROM tab1 AS cor0
----
-1313
-137
-389

query I rowsort
SELECT - 10 * col1 + + 67 AS col0 FROM tab0 AS cor0
----
-143
-743
57

query I rowsort
SELECT DISTINCT + - 77 * - col1 FROM tab0 AS cor0
----
1617
6237
77

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 74 AS col0 FROM tab1 WHERE NOT ( col2 ) + - 51 IN ( + col0, col1 * + col2 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT COUNT( * ) DIV 80 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-297
SELECT COUNT ( * ) / 80 col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT ALL 55 * - col0 DIV + col0 FROM tab2 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL 55 * - col0 / + col0 FROM tab2 AS cor0
----
-55
-55
-55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-300
SELECT 7 DIV + - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-300
SELECT 7 / + - COUNT ( * ) FROM tab0
----
-2

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

query I rowsort
SELECT ( ( + 11 ) ) * + col1 AS col0 FROM tab1 AS cor0
----
154
517
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + COUNT( + col1 ) FROM tab1 AS cor0 WHERE + 70 NOT IN ( 13 * + col2 * col2 * - col2 / - 88 )
----
3

skipif mysql # not compatible
query I rowsort label-304
SELECT + COUNT ( + col1 ) FROM tab1 AS cor0 WHERE + 70 NOT IN ( 13 * + col2 * col2 * - col2 / - 88 )
----
3

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

query I rowsort
SELECT ( 56 ) * + 60 + col1 FROM tab2 AS cor0
----
3411
3427
3437

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL MAX( + - 93 ) + - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL MAX ( + - 93 ) + - COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT DISTINCT - col2 * - + 49 - + + col2 + + ( - col0 ) FROM tab1
----
2747
3173
4557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-309
SELECT 2 DIV - 84 - 95 * + - MIN( ALL + + col1 ) FROM tab2
----
4845

skipif mysql # not compatible
query I rowsort label-309
SELECT 2 / - 84 - 95 * + - MIN ( ALL + + col1 ) FROM tab2
----
4845

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT ALL + col2 DIV col2 + 82 AS col2 FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL + col2 / col2 + 82 AS col2 FROM tab1
----
83
83
83

query I rowsort
SELECT 70 * - col2 * + 30 + + 17 * - + col0 AS col2 FROM tab2 cor0
----
-123075
-49082
-85088

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col0 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-315
SELECT - col2, 18 / + - col2 + - - 83 + + 9 * - - col1 / 69 FROM tab2 AS cor0 WHERE NOT + CAST( 65 AS DECIMAL ) NOT IN ( - col2, 21 + 82, col1 + - 64 - + + 59 )
----

skipif mysql # not compatible
query II rowsort label-315
SELECT - col2, 18 / + - col2 + - - 83 + + 9 * - - col1 / 69 FROM tab2 AS cor0 WHERE NOT + CAST ( 65 AS REAL ) NOT IN ( - col2, 21 + 82, col1 + - 64 - + + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL - + ( MIN( - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - + ( MIN ( - col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT col2 <> - col0 * 56 / + - col1
----

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

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + COUNT ( - - 3 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-319
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 73 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-319
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 73 FROM tab1
----
219

query II rowsort
SELECT DISTINCT 26 AS col0, ( - 21 ) AS col2 FROM tab2
----
26
-21

query I rowsort
SELECT ALL col0 * + + col2 * + col0 AS col1 FROM tab0
----
10575
75690
931491

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( col0 * + + col0, + col0, + + 37 + + col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 23 - col2 - + - col0 IS NULL
----

query I rowsort
SELECT - col0 * - - col1 * + col1 FROM tab0
----
-38367
-97
-98415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) * - 34 + col1 col2 FROM tab1
----
-2001
-2265
-3250

query I rowsort
SELECT - 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL + MAX( - - 16 ) * MAX( ALL + - col1 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL + MAX ( - - 16 ) * MAX ( ALL + - col1 ) FROM tab0
----
-16

query I rowsort
SELECT ALL + 89 + + col2 AS col2 FROM tab2 AS cor0
----
112
129
147

query I rowsort
SELECT + 56 + ( + + col1 ) + + 92 AS col2 FROM tab1 AS cor0
----
153
162
195

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

query I rowsort
SELECT DISTINCT 22 * 13 + - 51 + - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 13 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 79 + - + 46 * + col0 FROM tab1
----
1186
5238
751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * col2 - - - col1 col1, + col0 + + + col1 AS col1 FROM tab0
----
2128
96
79
108
9800
98

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT 90 - + SUM( + 82 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT 90 - + SUM ( + 82 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT SUM( 1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-339
SELECT SUM ( 1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 14 - + - col0 FROM tab2
----
60
78
89

query I rowsort
SELECT DISTINCT col0 + - + col0 FROM tab2
----
0

query I rowsort
SELECT - ( - col1 ) FROM tab2 WHERE NOT - col1 BETWEEN NULL AND col0 + + - 62
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-344
SELECT DISTINCT + COUNT ( col2 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT - - col0 * + col0 * - + CAST( NULL AS SIGNED ) * col0 - + ( - - 23 ) / - 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT - - col0 * + col0 * - + CAST ( NULL AS INTEGER ) * col0 - + ( - - 23 ) / - 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 5 AS col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ALL + col0 * + - 58 * - - 12 * + 92 FROM tab1
----
-3265632
-5442720
-5826912

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 16 / + 48 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - - 15 * col1 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT ALL - col1 * + + 97 FROM tab2 cor0
----
-4947
-6499
-7469

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 79 - - + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + ( + - MIN( ALL - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-353
SELECT + ( + - MIN ( ALL - col0 ) ) FROM tab1 AS cor0
----
91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT DISTINCT + 76 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + 76 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
79

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col0, 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL + 80 * - MAX( + col0 ) AS col2 FROM tab2
----
-6000

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + 80 * - MAX ( + col0 ) AS col2 FROM tab2
----
-6000

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

onlyif mysql # aggregate syntax: 
query II rowsort label-360
SELECT + + 70 * + 8 * - - COUNT( * ), 67 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
67

skipif mysql # not compatible
query II rowsort label-360
SELECT + + 70 * + 8 * - - COUNT ( * ), 67 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT SUM( ALL col0 ) FROM tab2 AS cor0 WHERE col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT SUM ( ALL col0 ) FROM tab2 AS cor0 WHERE col1 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT 12 + - 41 - col0 AS col2 FROM tab1 AS cor0
----
-114
-120
-80

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

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

query I rowsort
SELECT ALL col0 - 9 FROM tab1
----
42
76
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT + 66 DIV - 65 + + - COUNT( * ) DIV + 15 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-366
SELECT + 66 / - 65 + + - COUNT ( * ) / + 15 AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col2 <> + + 37
----
3

skipif mysql # not compatible
query I rowsort label-367
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 <> + + 37
----
3

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

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

query I rowsort
SELECT + + 78 - - col1 FROM tab1 AS cor0
----
125
83
92

query I rowsort
SELECT DISTINCT col2 + - 57 AS col0 FROM tab1
----
11
2
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 97 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL 19 * - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL 19 * - COUNT ( * ) FROM tab0
----
-57

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

query II rowsort
SELECT - + col0 AS col1, - 41 * - col1 * + 56 * + + 62 * col2 + - col0 FROM tab1 WHERE NOT - + col2 IS NULL
----
-51
191321037
-85
41993755
-91
454956901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL + CAST( 55 AS SIGNED ) * 20 * + 15 * col2 + + 50 FROM tab1
----
1122050
1584050
973550

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + CAST ( 55 AS INTEGER ) * 20 * + 15 * col2 + + 50 FROM tab1
----
1122050
1584050
973550

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL 77 * - COUNT( * ) FROM tab0 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL 77 * - COUNT ( * ) FROM tab0 cor0
----
-231

query I rowsort
SELECT ALL - 7 * 43 FROM tab0
----
-301
-301
-301

query I rowsort
SELECT 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

query I rowsort
SELECT DISTINCT - 1 + + col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 38 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-384
SELECT col0 * - col1 * + + 64 * CAST( NULL AS SIGNED ) + + + 29 * - 21, - 99 DIV + - col1 + + col0 + - 58 + + + col2 + - - 50 DIV - 43 AS col0 FROM tab0
----
NULL
236
NULL
4
NULL
42

skipif mysql # not compatible
query II rowsort label-384
SELECT col0 * - col1 * + + 64 * CAST ( NULL AS INTEGER ) + + + 29 * - 21, - 99 / + - col1 + + col0 + - 58 + + + col2 + - - 50 / - 43 AS col0 FROM tab0
----
NULL
236
NULL
4
NULL
42

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

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( col1 * + col1 - - + col0 + + col1 ) < ( col1 * + 89 * col1 )
----
1

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

query I rowsort
SELECT ALL + + 59 + + 98 AS col0 FROM tab0 AS cor0
----
157
157
157

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

query I rowsort
SELECT col1 - + 97 AS col0 FROM tab0
----
-16
-76
-96

query II rowsort
SELECT 59 + + 6 AS col1, + col2 * + col2 FROM tab2
----
65
1600
65
3364
65
529

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

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

query I rowsort
SELECT col0 + + + col0 AS col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-394
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) AS col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-394
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) AS col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT + + SUM( + col2 ) * + - 30 FROM tab2 cor0
----
-3630

skipif mysql # not compatible
query I rowsort label-395
SELECT + + SUM ( + col2 ) * + - 30 FROM tab2 cor0
----
-3630

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + 52 - - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT 11 + + - col2 IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-398
SELECT + 52 - - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT 11 + + - col2 IS NOT NULL
----
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT col1 * 84 DIV + + col1 FROM tab1
----
84
84
84

skipif mysql # not compatible
query I rowsort label-400
SELECT col1 * 84 / + + col1 FROM tab1
----
84
84
84

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

query I rowsort
SELECT DISTINCT - 51 * + - col2 AS col1 FROM tab2
----
1173
2040
2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 12 + - 49 * 21 col1 FROM tab0 WHERE col2 >= NULL
----

query II rowsort
SELECT ALL + col0 AS col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT + SUM( ALL - ( + + ( + 15 ) ) ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT + SUM ( ALL - ( + + ( + 15 ) ) ) AS col1 FROM tab0
----
-45

query I rowsort
SELECT DISTINCT col1 * + - 75 FROM tab2 cor0
----
-3825
-5025
-5775

query I rowsort
SELECT + - col2 * - 63 FROM tab1 AS cor0
----
3717
4284
6048

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

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

skipif mysql # not compatible
query I rowsort label-409
SELECT - 27 / - col1 * - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 * - + col0 + + col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL + - COUNT( * ) + + + 27 col0 FROM tab1 AS cor0
----
24

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

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

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

query I rowsort
SELECT ALL + + col0 + - - 45 + + col1 * 4 * + col2 FROM tab0 AS cor0
----
15288
538
972

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL 12 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL 12 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15

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

query II rowsort
SELECT ALL - + col2 + col2 AS col2, + col1 FROM tab2 cor0
----
0
51
0
67
0
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 + col0 * + + col0 IN ( col0, - col1, 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 18 + - 6 FROM tab1
----
12

query II rowsort
SELECT col0, col0 - + col2 FROM tab1
----
51
-45
85
26
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT + MIN( 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + MIN ( 9 ) FROM tab2
----
9

query I rowsort
SELECT col1 + + col1 * - 98 FROM tab1 AS cor0
----
-1358
-4559
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT col1 DIV col0 + col2 AS col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT col1 / col0 + col2 AS col2 FROM tab0
----
10
52
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-423
SELECT - COUNT( * ) AS col1, - 36 + + 98 DIV 38 AS col2 FROM tab2
----
-3
-34

skipif mysql # not compatible
query II rowsort label-423
SELECT - COUNT ( * ) AS col1, - 36 + + 98 / 38 AS col2 FROM tab2
----
-3
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-424
SELECT - col1 - ( + col1 ) + + 79 * - + 52 * ( + col2 ) col1, col2 DIV - col2 + 68 FROM tab1 AS cor0
----
-242382
67
-279438
67
-394396
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-424
SELECT - col1 - ( + col1 ) + + 79 * - + 52 * ( + col2 ) col1, col2 / - col2 + 68 FROM tab1 AS cor0
----
-242382
67
-279438
67
-394396
67

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ALL - 86 - MAX( col2 ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - 86 - MAX ( col2 ) FROM tab2 AS cor0
----
-144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT col2 * 18 DIV + 91 AS col0 FROM tab0 cor0
----
1
19
9

skipif mysql # not compatible
query I rowsort label-427
SELECT col2 * 18 / + 91 AS col0 FROM tab0 cor0
----
1
19
9

query I rowsort
SELECT ALL + + 85 * - 33 + 82 AS col0 FROM tab1 AS cor0
----
-2723
-2723
-2723

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

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

query I rowsort
SELECT DISTINCT + col0 * + + col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + - col2 * - 48 FROM tab0 AS cor0
----
2256
4752
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * ( + col0 ) col0 FROM tab1
----
201019
2125
9996

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-434
SELECT + CAST( - 63 AS SIGNED ) AS col0 FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-434
SELECT + CAST ( - 63 AS INTEGER ) AS col0 FROM tab1
----
-63
-63
-63

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

query I rowsort
SELECT ALL + - col1 * - col0 * col1 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT - ( + + COUNT( * ) ) * + 56 AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-437
SELECT - ( + + COUNT ( * ) ) * + 56 AS col0 FROM tab1
----
-168

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 > + + col1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-439
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) * 32 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-439
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) * 32 NOT BETWEEN NULL AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + + - 33 col2 FROM tab1 cor0
----
392
4244
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-442
SELECT - + MIN( + 15 ) + - - 95 + + 80 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT - + MIN ( + 15 ) + - - 95 + + 80 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE + col0 / col0 IS NULL
----

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

query II rowsort
SELECT DISTINCT col0 * col1 AS col2, + 75 FROM tab2
----
2346
75
4928
75
5025
75

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - 45 + MIN( - col1 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-447
SELECT - 45 + MIN ( - col1 ) FROM tab1
----
-92

query I rowsort
SELECT + col1 * 23 * - col1 AS col1 FROM tab2 WHERE col2 NOT BETWEEN - col1 * col2 AND - + 22 * - col1 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 + + 83 col0 FROM tab1
----
104
137
165

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-450
SELECT ALL * FROM tab0 WHERE - - col2 * CAST( + 86 AS DECIMAL ) + 9 + - 14 + - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-450
SELECT ALL * FROM tab0 WHERE - - col2 * CAST ( + 86 AS REAL ) + 9 + - 14 + - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT + col2 DIV + - 68 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + col2 / + - 68 FROM tab2 cor0
----
0

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

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

query I rowsort
SELECT - - col1 - - col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 < 57 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL COUNT( DISTINCT + - 58 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL COUNT ( DISTINCT + - 58 ) FROM tab1
----
1

query I rowsort
SELECT - col1 * - 5 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT - 76 DIV col1 * - col0 * col0 + + col1 col0 FROM tab1 AS cor0
----
108380
13019
8328

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-460
SELECT - 76 / col1 * - col0 * col0 + + col1 col0 FROM tab1 AS cor0
----
108380
13019
8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * 84 col2 FROM tab0 AS cor0
----
6720
6720
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT 63 * - COUNT( * ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-462
SELECT 63 * - COUNT ( * ) FROM tab2 AS cor0
----
-189

query II rowsort
SELECT col2 * + 30 AS col1, + 80 FROM tab2
----
1200
80
1740
80
690
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 86 - + 56 < - - col0 + - col2
----

query I rowsort
SELECT 96 * + 52 FROM tab0
----
4992
4992
4992

query II rowsort
SELECT 81, 74 AS col0 FROM tab0 AS cor0
----
81
74
81
74
81
74

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT SUM( - col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT SUM ( - col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + - col0 * - col2 AS col0 FROM tab2 cor0
----
1081
2600
4408

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

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

query I rowsort
SELECT ALL - 77 * + 68 + + - col0 FROM tab0 AS cor0
----
-5251
-5323
-5333

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

query I rowsort
SELECT - col0 / + 70 / ( + col0 ) AS col0 FROM tab0 WHERE NULL BETWEEN 39 + - col0 AND - 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT ALL + 76 DIV - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT ALL + - col1 + 15 FROM tab1 AS cor0
----
-32
1
10

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 27 NOT IN ( 96, + col1 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + 63 AS col0 FROM tab1 AS cor0
----
110
68
77

query I rowsort
SELECT 52 * + - col0 AS col2 FROM tab1 AS cor0
----
-2652
-4420
-4732

onlyif mysql # DIV for integer division: 
query II rowsort label-479
SELECT DISTINCT - col0 + col1, - 54 DIV + col2 AS col0 FROM tab0 AS cor0
----
-66
-5
-96
0
66
-1

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT - col0 + col1, - 54 / + col2 AS col0 FROM tab0 AS cor0
----
-66
-5
-96
0
66
-1

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

query II rowsort
SELECT DISTINCT + col1, col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
51
67
67
77
77

query I rowsort
SELECT ALL col0 * + col0 + + col0 AS col1 FROM tab1
----
2652
7310
8372

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT DISTINCT 93 DIV COUNT( * ) - - 11 DIV + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT 93 / COUNT ( * ) - - 11 / + COUNT ( * ) FROM tab2
----
34

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

query I rowsort
SELECT ALL + ( - 79 ) AS col0 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ( ( - COUNT( * ) ) ) + 53 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-487
SELECT ( ( - COUNT ( * ) ) ) + 53 FROM tab0
----
50

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

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

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL >= 70 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + 48 + + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + 48 + + COUNT ( * ) FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE 18 * col2 - + ( + col0 ) <= + col1
----

query I rowsort
SELECT + col1 - 83 AS col2 FROM tab2
----
-16
-32
-6

query I rowsort
SELECT ALL - col0 + 62 FROM tab1
----
-23
-29
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 97 * col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( + 94 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-497
SELECT * FROM tab2 WHERE - 13 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-497
SELECT * FROM tab2 WHERE - 13 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-500
SELECT ALL SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT - ( - ( 36 ) ) FROM tab1
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT MAX( 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT MAX ( 97 ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + MAX( DISTINCT - col0 ) + - 72 AS col2 FROM tab0 WHERE NOT - 89 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT + MAX ( DISTINCT - col0 ) + - 72 AS col2 FROM tab0 WHERE NOT - 89 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT COUNT( * ) * 79 FROM tab2 WHERE NOT col1 * + col1 IS NULL
----
237

skipif mysql # not compatible
query I rowsort label-505
SELECT COUNT ( * ) * 79 FROM tab2 WHERE NOT col1 * + col1 IS NULL
----
237

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

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

query I rowsort
SELECT ALL - 6 - + col0 * + 50 FROM tab0
----
-4356
-4856
-756

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

query I rowsort
SELECT 21 * + col0 FROM tab1 WHERE ( + col1 * + col0 ) <> 61 - - col0
----
1071
1785
1911

query I rowsort
SELECT 73 * col2 - - col1 FROM tab2 WHERE ( col0 * col0 ) <= ( + col0 / - col2 )
----

query I rowsort
SELECT col1 + col0 * col2 FROM tab1 AS cor0 WHERE NOT - 18 IN ( + 35 )
----
4910
5020
6235

query III rowsort
SELECT * FROM tab1 WHERE + 51 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND 54
----

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

query I rowsort
SELECT col1 / + 94 AS col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 75 * - col1 + + col0 * - 10 FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IN ( - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-518
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 + + CAST( NULL AS SIGNED ) < 60
----

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 + + CAST ( NULL AS INTEGER ) < 60
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT IN ( - col2 * 38 + + 39 )
----

query I rowsort
SELECT ALL - AVG ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < col2 * col0 - 84
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 36 + col1 <> ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 54 + + col1 FROM tab0 cor0
----
135
55
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL - SUM( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT 52 + + col1 NOT BETWEEN NULL AND + CAST( col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT 52 + + col1 NOT BETWEEN NULL AND + CAST ( col0 AS INTEGER )
----
NULL

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

query I rowsort
SELECT + - 45 + 47 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL + MAX( col1 ) * + 39 + + 62 FROM tab0 AS cor0
----
3221

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + MAX ( col1 ) * + 39 + + 62 FROM tab0 AS cor0
----
3221

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

query I rowsort
SELECT 31 + + 72 + col2 AS col0 FROM tab0
----
113
150
202

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

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT 13 + + MIN( DISTINCT col1 + - 20 ) FROM tab1 WHERE ( - col2 * col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-530
SELECT 13 + + MIN ( DISTINCT col1 + - 20 ) FROM tab1 WHERE ( - col2 * col1 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - 52 * 99 AS col2 FROM tab1 WHERE NULL IS NULL
----
-5148
-5148
-5148

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 * - col2 AS col2 FROM tab2
----
1661
1817
3328

query I rowsort
SELECT DISTINCT - 7 - col1 FROM tab1
----
-12
-21
-54

query I rowsort
SELECT DISTINCT 90 - col1 AS col0 FROM tab1
----
43
76
85

query I rowsort
SELECT DISTINCT 15 + + col2 * + col1 FROM tab0 WHERE - col2 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 - + + col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT + MIN( 34 ) FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT + MIN ( 34 ) FROM tab2 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 34 ) IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 * + + col2 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

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

query I rowsort
SELECT - 86 - + 56 AS col1 FROM tab0 AS cor0
----
-142
-142
-142

query I rowsort
SELECT - 90 * + 50 AS col1 FROM tab2 AS cor0
----
-4500
-4500
-4500

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

skipif mysql # not compatible
query I rowsort label-544
SELECT + COUNT ( * ) / + SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - COUNT( * ) * - MAX( ALL - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-545
SELECT - COUNT ( * ) * - MAX ( ALL - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - + MAX( DISTINCT - 18 ) + 45 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
63

skipif mysql # not compatible
query I rowsort label-546
SELECT - + MAX ( DISTINCT - 18 ) + 45 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT + MAX( ALL - col0 ) DIV + - 89 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT + MAX ( ALL - col0 ) / + - 89 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + - 62 ) AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-549
SELECT CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + - 62 ) AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-550
SELECT + + ( + 25 ) * + + col2 - 22 DIV 75 FROM tab1 AS cor0
----
1475
1700
2400

skipif mysql # not compatible
query I rowsort label-550
SELECT + + ( + 25 ) * + + col2 - 22 / 75 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL + COUNT( * ) * - 84 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + COUNT ( * ) * - 84 FROM tab1 AS cor0
----
-252

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

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

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

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - 1 / col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( + col0 * 4 * col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - 9 * + COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-557
SELECT - 9 * + COUNT ( * ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-558
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col1 )
----
0

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( NULL ) < + 55 * - col1 * 9
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-560
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query III rowsort label-560
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT ALL + 47 DIV + col0 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + 47 / + col0 AS col2 FROM tab0
----
0
0
3

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 7 AND + + col2
----

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - 58 col2 FROM tab2
----
4814
4814
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT 22 * COUNT( * ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT 22 * COUNT ( * ) FROM tab1 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL - + 68 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - + 68 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT 66 + + - COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT 66 + + - COUNT ( * ) FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + COUNT( * ) + 94 AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + COUNT ( * ) + 94 AS col2 FROM tab0 AS cor0
----
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-571
SELECT ALL - COUNT( * ) col1, + COUNT( * ) * + 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-571
SELECT ALL - COUNT ( * ) col1, + COUNT ( * ) * + 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
891

query I rowsort
SELECT ALL - 83 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - 23 * - 82 FROM tab2 cor0
----
1886
1886
1886

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 < - col0 / - ( - - 51 ) / 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col1, + 11 FROM tab0
----
10
11
47
11
99
11

query I rowsort
SELECT - col2 + - col1 + - - ( col1 ) * 22 * 85 + + col2 AS col0 FROM tab0
----
151389
1869
39249

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT ALL ( + CAST( - 69 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL ( + CAST ( - 69 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT CAST( NULL AS SIGNED ) * - - 41 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT CAST ( NULL AS INTEGER ) * - - 41 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * - col1 * - - col1 FROM tab0 AS cor0
----
-1
-531441
-9261

query I rowsort
SELECT col2 * + + 96 * + col2 FROM tab0
----
212064
940896
9600

query I rowsort
SELECT 63 * + col1 AS col0 FROM tab1
----
2961
315
882

query I rowsort
SELECT ALL + col1 * col0 + col0 AS col2 FROM tab2 WHERE + 33 <= - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL + MAX( DISTINCT - 18 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL + MAX ( DISTINCT - 18 ) FROM tab0
----
-18

query II rowsort
SELECT col1 * col2, ( + ( + col2 ) ) AS col1 FROM tab2
----
1173
23
3080
40
3886
58

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

skipif mysql # not compatible
query I rowsort label-591
SELECT + CAST ( + + 40 AS INTEGER ) FROM tab2 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT ALL 64 + + CAST( col2 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0 WHERE ( ( NULL <> NULL ) )
----

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL 64 + + CAST ( col2 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0 WHERE ( ( NULL <> NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-593
SELECT DISTINCT col0 DIV - 12 AS col2, + 68 AS col1 FROM tab2 AS cor0
----
-3
68
-5
68
-6
68

skipif mysql # not compatible
query II rowsort label-593
SELECT DISTINCT col0 / - 12 AS col2, + 68 AS col1 FROM tab2 AS cor0
----
-3
68
-5
68
-6
68

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-595
SELECT DISTINCT COUNT( * ) DIV COUNT( 31 ) * - 5 + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT COUNT ( * ) / COUNT ( 31 ) * - 5 + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-14

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

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

query I rowsort
SELECT DISTINCT ( col0 ) * ( + - col2 ) + + col1 * + col0 AS col1 FROM tab0
----
-9506
510
957

query I rowsort
SELECT + 24 + + col1 AS col2 FROM tab0
----
105
25
45

query II rowsort
SELECT DISTINCT 14 * - 55 * - - col1 + - col2, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-16180
87
-62417
15
-869
97

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT col2 DIV + + col1 + + - 21 + + col2 AS col1 FROM tab2
----
19
2
37

skipif mysql # not compatible
query I rowsort label-601
SELECT col2 / + + col1 + + - 21 + + col2 AS col1 FROM tab2
----
19
2
37

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

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

query I rowsort
SELECT DISTINCT + AVG ( + 27 ) FROM tab0 AS cor0 WHERE ( + col1 * + + col2 + + col0 ) = ( 62 )
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 37 * + + 9 + - col1 + - - col2 * col0 * + - col1 AND - 14 + col2
----

query I rowsort
SELECT + + 60 + + + 59 * + + col0 FROM tab2 AS cor0
----
2774
3836
4485

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 + 71 col2 FROM tab2 AS cor0
----
-2275
-4857
-4954

query I rowsort
SELECT ALL + col0 - - + col1 + 98 * + + ( 36 ) * 52 AS col2 FROM tab0
----
183552
183554
183564

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT DISTINCT + col1 FROM tab0 WHERE NULL = + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT + col1 FROM tab0 WHERE NULL = + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL BETWEEN ( 61 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - - 96 * - MIN( ALL + 51 ) AS col1 FROM tab2 AS cor0
----
-4896

skipif mysql # not compatible
query I rowsort label-613
SELECT - - 96 * - MIN ( ALL + 51 ) AS col1 FROM tab2 AS cor0
----
-4896

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-614
SELECT DISTINCT - + MAX( DISTINCT + - ( CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL 30 * + + 53 AS col0 FROM tab2
----
1590
1590
1590

query I rowsort
SELECT DISTINCT + col2 * + - col0 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 - 97 col0 FROM tab0 WHERE NOT + - 62 < + col1
----

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

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

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

query I rowsort
SELECT ALL + ( col1 ) + + - 95 * + col2 FROM tab2 AS cor0
----
-2134
-3723
-5443

query II rowsort
SELECT + + 94 AS col1, + 89 AS col2 FROM tab0 AS cor0
----
94
89
94
89
94
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 5 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 30 col2, col2 + + - 57 FROM tab1 AS cor0
----
-30
11
-30
2
-30
39

query III rowsort
SELECT ALL + - 47 / ( 3 ) AS col0, - col0, + ( + 42 ) AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT MIN( DISTINCT + col2 ) * + 78 AS col0 FROM tab2
----
1794

skipif mysql # not compatible
query I rowsort label-627
SELECT MIN ( DISTINCT + col2 ) * + 78 AS col0 FROM tab2
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL + COUNT( * ) * 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + COUNT ( * ) * 85 FROM tab1
----
255

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - 21 + - MAX( + 34 ) + MIN( DISTINCT - - 29 ) * 16 FROM tab0 AS cor0
----
409

skipif mysql # not compatible
query I rowsort label-630
SELECT - 21 + - MAX ( + 34 ) + MIN ( DISTINCT - - 29 ) * 16 FROM tab0 AS cor0
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT ALL - 2 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - 2 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + - col2 FROM tab1 WHERE NULL < - ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL >= - col2 * - - col1 * + 20 )
----

query I rowsort
SELECT + col2 - - 93 AS col0 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT - col0 * + + 0 DIV - 87 - + col0 - - 39 DIV - 19 AS col2 FROM tab2 AS cor0
----
-48
-66
-77

skipif mysql # not compatible
query I rowsort label-635
SELECT - col0 * + + 0 / - 87 - + col0 - - 39 / - 19 AS col2 FROM tab2 AS cor0
----
-48
-66
-77

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

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

skipif mysql # not compatible
query I rowsort label-637
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + col0 > NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-638
SELECT MAX ( + ( - ( + + col2 ) ) ) AS col2 FROM tab1
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT DISTINCT + MIN( - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-641
SELECT DISTINCT + MIN ( - col1 ) col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
56

query II rowsort
SELECT DISTINCT col2, 11 * - 22 FROM tab2
----
23
-242
40
-242
58
-242

query I rowsort
SELECT ALL + col1 + + 71 AS col2 FROM tab1 cor0
----
118
76
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-645
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + 71 >= - + col1 / col0
----

skipif mysql # not compatible
query III rowsort label-645
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * + 71 >= - + col1 / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE - 27 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-647
SELECT CAST( - - 18 AS SIGNED ), - col2 * + - col0 col1 FROM tab1 AS cor0 WHERE NULL >= ( - col2 - + 19 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-647
SELECT CAST ( - - 18 AS INTEGER ), - col2 * + - col0 col1 FROM tab1 AS cor0 WHERE NULL >= ( - col2 - + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE ( col0 ) / + 70 + - - 40 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 ) / + 70 + - - 40 IS NOT NULL
----
3

query I rowsort
SELECT + 46 + + col2 * + col1 * col0 * - col2 + - - col0 AS col1 FROM tab1
----
-1479294
-19776711
-6580127

query I rowsort
SELECT ALL ( - 87 ) + + - 48 AS col1 FROM tab2
----
-135
-135
-135

query I rowsort
SELECT - ( - 87 ) * col2 + 85 AS col1 FROM tab1
----
5218
6001
8437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT ALL + - COUNT( * ) - + - MIN( ALL 97 ) AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
94

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL + - COUNT ( * ) - + - MIN ( ALL 97 ) AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT MAX( DISTINCT 0 ) * - + COUNT( * ) * + MIN( DISTINCT - + 41 ) + + + 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT MAX ( DISTINCT 0 ) * - + COUNT ( * ) * + MIN ( DISTINCT - + 41 ) + + + 0 FROM tab2
----
0

query I rowsort
SELECT 99 + + 47 AS col2 FROM tab0
----
146
146
146

query I rowsort
SELECT DISTINCT - 43 + - + col1 AS col1 FROM tab1
----
-48
-57
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 col2, - 55 FROM tab2
----
84
-55
84
-55
84
-55

query I rowsort
SELECT ALL + col2 * + 50 AS col0 FROM tab0
----
2350
4950
500

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT col0 DIV col1 - - 80 FROM tab0 cor0
----
177
80
84

skipif mysql # not compatible
query I rowsort label-658
SELECT col0 / col1 - - 80 FROM tab0 cor0
----
177
80
84

query I rowsort
SELECT + 66 - - col0 FROM tab2
----
112
130
141

query I rowsort
SELECT ALL + 52 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * - col0 - - col0 * + 44 + col2 AS col1 FROM tab1
----
11024
12353
4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT - CAST( + ( + - COUNT( - + col0 ) ) AS SIGNED ) + + + 7 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-662
SELECT - CAST ( + ( + - COUNT ( - + col0 ) ) AS INTEGER ) + + + 7 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT ALL 5 - 15 + col0 DIV - col0 FROM tab0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL 5 - 15 + col0 / - col0 FROM tab0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL SUM( 31 ) + + 53 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-664
SELECT ALL SUM ( 31 ) + + 53 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT DISTINCT - + CAST( - + MIN( - col1 ) AS SIGNED ) - - 13 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - + CAST ( - + MIN ( - col1 ) AS INTEGER ) - - 13 FROM tab2 AS cor0
----
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 54 >= + col1 * - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT COUNT( * ) * - ( + MAX( ALL - + col2 ) ) - + + 40 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT COUNT ( * ) * - ( + MAX ( ALL - + col2 ) ) - + + 40 FROM tab0 AS cor0
----
-10

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

skipif mysql # not compatible
query I rowsort label-669
SELECT - ( - - ( CAST ( NULL AS INTEGER ) ) ) * + col2 * 57 * - col1 * + 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col1 FROM tab0 AS cor0 WHERE NOT ( - 46 ) >= NULL
----

query I rowsort
SELECT + ( - col1 ) * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-672
SELECT 63 * - CAST( NULL AS DECIMAL ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-672
SELECT 63 * - CAST ( NULL AS REAL ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT col2 AS col1, - 43 AS col1 FROM tab0
----
10
-43
47
-43
99
-43

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-675
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( + 66 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-675
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( + 66 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT + COUNT ( * ) * - 78 FROM tab1
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT - 17 DIV + 35 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-677
SELECT - 17 / + 35 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * ( + col1 ) AS col2 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT DISTINCT col0 DIV - + 26 col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-679
SELECT DISTINCT col0 / - + 26 col2 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab2 WHERE NULL <> col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + MIN( + 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-682
SELECT + MIN ( + 82 ) FROM tab1
----
82

query II rowsort
SELECT - + col0 AS col1, ( - col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
-15
-32
-87
77
-97
-2

query I rowsort
SELECT + col1 * + col2 * ( - 59 ) FROM tab1 cor0
----
-17405
-188564
-79296

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

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT - col0 DIV 74 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-686
SELECT - col0 / 74 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT ( - COUNT( * ) ) + - 41 col2 FROM tab2 AS cor0
----
-44

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

query I rowsort
SELECT DISTINCT + + col1 + ( - 39 ) AS col1 FROM tab2 AS cor0
----
12
28
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * + - 5 + - - ( - - 92 ) col2 FROM tab1 AS cor0
----
-248

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE + col0 * - col1 = NULL
----

query I rowsort
SELECT + 29 + - col1 AS col1 FROM tab0
----
-52
28
8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * + 23 + + + col1 - + col1 - - col0 + col0 col0 FROM tab2 cor0
----
-172
-194
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT - col2 DIV + 9 AS col0 FROM tab0 AS cor0
----
-1
-11
-5

skipif mysql # not compatible
query I rowsort label-694
SELECT - col2 / + 9 AS col0 FROM tab0 AS cor0
----
-1
-11
-5

query I rowsort
SELECT + 89 + + + 66 + + + 82 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dfc79cfe167f612dd398554cc6b405bb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT ALL + COUNT( * ) - + - 83 DIV 40 * + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
105

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + COUNT ( * ) - + - 83 / 40 * + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT + SUM( 89 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
801

skipif mysql # not compatible
query I rowsort label-697
SELECT + SUM ( 89 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
801

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * col1 >= - - col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT - col1 DIV + 29 + + - col1 FROM tab0 cor0
----
-1
-21
-83

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - col1 / + 29 + + - col1 FROM tab0 cor0
----
-1
-21
-83

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 3 * ( 90 ) NOT BETWEEN + 53 + - - col1 AND + col0
----

query I rowsort
SELECT DISTINCT + + 83 * 15 AS col0 FROM tab0 cor0
----
1245

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT + ( COUNT( + + col1 ) ) * + - COUNT( ALL col2 ) - + + COUNT( * ) col1 FROM tab2 WHERE NOT - col1 - + 83 >= col0 * 22 - + 36
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-707
SELECT DISTINCT + ( COUNT ( + + col1 ) ) * + - COUNT ( ALL col2 ) - + + COUNT ( * ) col1 FROM tab2 WHERE NOT - col1 - + 83 >= col0 * 22 - + 36
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT - + 70 - - + COUNT( * ) AS col2 FROM tab0 WHERE NOT 0 + - + col1 IS NULL
----
-67

skipif mysql # not compatible
query I rowsort label-708
SELECT - + 70 - - + COUNT ( * ) AS col2 FROM tab0 WHERE NOT 0 + - + col1 IS NULL
----
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT - 38 IS NOT NULL
----

query I rowsort
SELECT ALL ( + + 3 ) * + 27 + + 35 + + col0 AS col1 FROM tab2
----
162
180
191

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT + MAX( - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-711
SELECT + MAX ( - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-712
SELECT + col1 DIV + col1, col1 AS col2 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-712
SELECT + col1 / + col1, col1 AS col2 FROM tab0
----
1
1
1
21
1
81

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

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

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

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab0
----
-10
-47
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE + 33 IS NULL
----

query I rowsort
SELECT ALL - ( + - 24 ) FROM tab2
----
24
24
24

query I rowsort
SELECT 37 * col2 * + col1 AS col2 FROM tab1
----
10915
118252
49728

query II rowsort
SELECT DISTINCT - col2, ( col2 ) AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT MIN( ALL col2 ) + ( + COUNT( * ) ) * - 23 + + + COUNT( * ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-722
SELECT MIN ( ALL col2 ) + ( + COUNT ( * ) ) * - 23 + + + COUNT ( * ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT DISTINCT col2 + + 97 FROM tab2
----
120
137
155

query I rowsort
SELECT ALL + ( + 31 ) - - col1 AS col0 FROM tab0
----
112
32
52

query I rowsort
SELECT ALL ( col1 ) + - - col1 AS col1 FROM tab1
----
10
28
94

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

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

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

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

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

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

query I rowsort
SELECT - ( + - col1 ) - - + 92 FROM tab2 AS cor0
----
143
159
169

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 >= - - col1 + col0 + 79
----

query I rowsort
SELECT DISTINCT + col1 * - - col2 + - 37 FROM tab0 AS cor0
----
173
3770
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 88 / - col1 * - 2 AND - + 36 / col0
----

query I rowsort
SELECT 35 * - 92 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0dbd26e1d4bf6ed7bdac572b1582295

query I rowsort
SELECT 85 * + col1 AS col1 FROM tab2
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT + SUM( - 62 ) col1 FROM tab0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-736
SELECT DISTINCT + SUM ( - 62 ) col1 FROM tab0
----
-186

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

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

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

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

query I rowsort
SELECT DISTINCT - - 40 * 64 FROM tab0 AS cor0
----
2560

query I rowsort
SELECT + col0 * - 16 AS col1 FROM tab1 AS cor0
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT + 87 * + ( - SUM( ALL + + col1 ) ) FROM tab1 AS cor0
----
-5742

skipif mysql # not compatible
query I rowsort label-741
SELECT + 87 * + ( - SUM ( ALL + + col1 ) ) FROM tab1 AS cor0
----
-5742

query II rowsort
SELECT ALL 47 AS col0, - 25 FROM tab1 AS cor0
----
47
-25
47
-25
47
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-743
SELECT ALL CAST( - col2 AS SIGNED ) * + col2 + - + 33 AS col0 FROM tab1 AS cor0
----
-3514
-4657
-9249

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL CAST ( - col2 AS INTEGER ) * + col2 + - + 33 AS col0 FROM tab1 AS cor0
----
-3514
-4657
-9249

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

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT - 99 DIV + col1 AS col2 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-745
SELECT - 99 / + col1 AS col2 FROM tab1
----
-19
-2
-7

query I rowsort
SELECT DISTINCT - + col0 + 36 * + col1 AS col0 FROM tab0 AS cor0
----
-61
2901
669

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL 84 * - 34 * COUNT( * ) FROM tab2
----
-8568

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL 84 * - 34 * COUNT ( * ) FROM tab2
----
-8568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 72 ) * 18 * - col1 col0 FROM tab2 AS cor0
----
-66096
-86832
-99792

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE + 78 <= - col1 / - + col2 * - 68
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE + 78 <= - col1 / - + col2 * - 68
----
0

query I rowsort
SELECT ( + 78 ) * col0 AS col1 FROM tab0 AS cor0
----
1170
6786
7566

query I rowsort
SELECT - 75 AS col1 FROM tab1 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-752
SELECT ALL + - MAX( + col2 ) DIV - + 7 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + - MAX ( + col2 ) / - + 7 FROM tab1 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 / 25 - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 3 <= 8 * - - col1 * 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 32 - + - col0 - + - 89 AS col0 FROM tab0
----
144
154
72

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT - col1 DIV - col2 + - 5 AS col1 FROM tab0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-756
SELECT - col1 / - col2 + - 5 AS col1 FROM tab0
----
-3
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 14 ) + + ( + col1 ) col2 FROM tab0
----
-13
67
7

query I rowsort
SELECT 60 + - col1 AS col2 FROM tab0
----
-21
39
59

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE NULL IN ( - col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT + COUNT( * ) + + 22 AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-760
SELECT + COUNT ( * ) + + 22 AS col2 FROM tab1
----
25

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 < + 64 + + 6 + col1
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT + MIN( + + 78 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + MIN ( + + 78 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-234

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 6 = 96 * + 79 + - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT 51 + + 82 + SUM( col2 ) AS col2 FROM tab0
----
289

skipif mysql # not compatible
query I rowsort label-765
SELECT 51 + + 82 + SUM ( col2 ) AS col2 FROM tab0
----
289

query I rowsort
SELECT + 28 + col0 AS col1 FROM tab0
----
115
125
43

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT ( - ( - 38 ) + - - 99 IS NOT NULL )
----

query I rowsort
SELECT - col2 * + 80 * - col0 * - + 44 / - - col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 11 * col0 + col0 AS col2 FROM tab0
----
-103402
-2460
-83172

query III rowsort
SELECT * FROM tab2 WHERE ( ( + col2 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - SUM( DISTINCT - + col0 ) * - 77 AS col2 FROM tab1 AS cor0
----
-17479

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - SUM ( DISTINCT - + col0 ) * - 77 AS col2 FROM tab1 AS cor0
----
-17479

query II rowsort
SELECT DISTINCT + col1 AS col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + col0 + - 51 AS col2 FROM tab0 AS cor0
----
-36
36
46

query I rowsort
SELECT ALL col2 + + + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - 85 * col2 + + col1 FROM tab0 AS cor0
----
-3914
-829
-8414

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + - 12 + + COUNT( - ( - - 45 ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-776
SELECT + - 12 + + COUNT ( - ( - - 45 ) ) FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col1 col1, col2 + - + col1 FROM tab2
----
-2346
-28
-4928
-37
-5025
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-778
SELECT ALL * FROM tab0 WHERE 79 >= + 57 - + CAST( + + 26 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-778
SELECT ALL * FROM tab0 WHERE 79 >= + 57 - + CAST ( + + 26 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + ( - col1 ) ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-780
SELECT * FROM tab2 WHERE NULL > - - CAST( + 7 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-780
SELECT * FROM tab2 WHERE NULL > - - CAST ( + 7 AS INTEGER )
----

query II rowsort
SELECT DISTINCT ( + - col0 ) + + col2 AS col0, + col2 * + col1 AS col1 FROM tab2
----
-17
3886
-23
1173
-24
3080

query I rowsort
SELECT AVG ( col1 ) AS col1 FROM tab0 WHERE + col2 > - - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT DISTINCT + 9 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT + 9 / + col0 FROM tab1
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
94

query II rowsort
SELECT 51 + + - 44 AS col0, 28 AS col2 FROM tab0, tab1 AS cor0
----
18 values hashing to 4b95d5638bba8307f1c9da79ef12c04c

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT ALL + + 6 * + - 95 + + 52 DIV - col1 FROM tab1 AS cor0
----
-571
-573
-580

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + + 6 * + - 95 + + 52 / - col1 FROM tab1 AS cor0
----
-571
-573
-580

query II rowsort
SELECT - + 15 AS col1, - 42 FROM tab2 cor0
----
-15
-42
-15
-42
-15
-42

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

query I rowsort
SELECT + col0 * - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
262144
421875
97336

query II rowsort
SELECT ALL 41 AS col1, col2 FROM tab0 AS cor0
----
41
10
41
47
41
99

query I rowsort
SELECT ALL 63 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT - 76 * col0 * - col1 AS col1 FROM tab0
----
138852
7372
92340

query I rowsort
SELECT ALL ( + + col0 ) + + - col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - 43 * - col1 FROM tab2
----
2193
2881
3311

query I rowsort
SELECT DISTINCT col0 * - col0 + + col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

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

query I rowsort
SELECT ALL + col1 + - col2 + - 47 FROM tab2 cor0
----
-10
-19
-38

query I rowsort
SELECT DISTINCT - col1 / - 35 - + - col0 AS col2 FROM tab0 cor0 WHERE ( NULL ) <> col0 / + - 37 * - 27 * col2 * - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-805
SELECT ALL + 60 * col1 DIV + ( + ( + - col0 ) ) AS col2, + col2 - - col1 FROM tab2
----
-53
125
-66
74
-72
117

skipif mysql # not compatible
query II rowsort label-805
SELECT ALL + 60 * col1 / + ( + ( + - col0 ) ) AS col2, + col2 - - col1 FROM tab2
----
-53
125
-66
74
-72
117

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT COUNT( ( - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-806
SELECT COUNT ( ( - col2 ) ) FROM tab2
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT + CAST( - + col0 AS SIGNED ) * + - col2 + - 37 col2 FROM tab2 AS cor0
----
1021
2523
4313

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-808
SELECT + CAST ( - + col0 AS INTEGER ) * + - col2 + - 37 col2 FROM tab2 AS cor0
----
1021
2523
4313

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 48 * col2 * + - 80 - + - col0 = - col1
----

query I rowsort
SELECT DISTINCT 48 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
14
146
37

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT - 75 * 40 * + + COUNT( * ) AS col2 FROM tab0 cor0
----
-9000

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT - 75 * 40 * + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-9000

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

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

query I rowsort
SELECT ALL col0 * - + 54 AS col1 FROM tab0
----
-4698
-5238
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 91 col2 FROM tab0
----
4277
9009
910

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE col2 = NULL
----
0

query II rowsort
SELECT + col1 AS col2, 74 FROM tab2
----
51
74
67
74
77
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-819
SELECT CAST( + SUM( 91 ) AS SIGNED ) AS col2 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-819
SELECT CAST ( + SUM ( 91 ) AS INTEGER ) AS col2 FROM tab0
----
273

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 44 col0, - col1, col0 * + col1 col0 FROM tab0
----
9 values hashing to c9c453bcfe72c2afc6e84fac474c9416

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT COUNT( * ) * - ( - - MIN( + + col2 ) ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-822
SELECT COUNT ( * ) * - ( - - MIN ( + + col2 ) ) AS col2 FROM tab1
----
-177

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

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

query II rowsort
SELECT + col1, - col2 * col0 AS col2 FROM tab0 cor0
----
1
-9603
21
-870
81
-705

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT SUM( - 86 ) FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT SUM ( - 86 ) FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - 84 ) col1, 63 * + + 86 * col0 AS col2 FROM tab1
----
-84
276318
-84
460530
-84
493038

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-830
SELECT DISTINCT + AVG ( col0 ) + CAST( NULL AS SIGNED ) AS col2, + 66 AS col0 FROM tab0 WHERE col2 * ( + ( - col0 ) ) * - 35 <= - + 6 * - - col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-830
SELECT DISTINCT + AVG ( col0 ) + CAST ( NULL AS INTEGER ) AS col2, + 66 AS col0 FROM tab0 WHERE col2 * ( + ( - col0 ) ) * - 35 <= - + 6 * - - col2
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + MAX( + 29 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT + MAX ( + 29 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 27 + col1 col0 FROM tab0 AS cor0
----
1350
2674
291

query I rowsort
SELECT DISTINCT - 31 + + col1 + col1 * 68 * + ( + + col0 ) FROM tab2 AS cor0
----
159548
335150
341736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT - COUNT( DISTINCT - 30 ) + CAST( NULL AS SIGNED ) * + MIN( col1 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT - COUNT ( DISTINCT - 30 ) + CAST ( NULL AS INTEGER ) * + MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab1 AS cor0 WHERE ( + + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 * - col1 = NULL
----

query I rowsort
SELECT col1 * + col1 * + + col2 * - - 29 FROM tab2 WHERE col2 NOT BETWEEN + - 45 AND + 49 + col0 / + + col1
----
7550498

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL + 42 + MIN( DISTINCT col2 ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + 42 + MIN ( DISTINCT col2 ) FROM tab1
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-839
SELECT CAST( NULL AS DECIMAL ) * - 25 * + 93 + 21 + + + COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-839
SELECT CAST ( NULL AS REAL ) * - 25 * + 93 + 21 + + + COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ( + col2 ) DIV - ( + col2 ) col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT ( + col2 ) / - ( + col2 ) col0 FROM tab2
----
-1
-1
-1

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col2 - col2 * - - col0 * - 36 AS col2 FROM tab1
----
176366
180604
222883

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT ALL + MAX( - + CAST( NULL AS SIGNED ) ) / - 24 FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + MAX ( - + CAST ( NULL AS INTEGER ) ) / - 24 FROM tab2 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 35 * - 67 FROM tab1, tab0 AS cor0
----
-2345

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-847
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 85 NOT IN ( + col0 * - CAST( + col0 AS SIGNED ), 21, col1 * col1 + - 72 * col1 * + + 96 + + 42 )
----

skipif mysql # not compatible
query III rowsort label-847
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 85 NOT IN ( + col0 * - CAST ( + col0 AS INTEGER ), 21, col1 * col1 + - 72 * col1 * + + 96 + + 42 )
----

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

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

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

query I rowsort
SELECT - 96 * + col1 AS col0 FROM tab2 AS cor0
----
-4896
-6432
-7392

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT - 97 DIV - 21 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-851
SELECT - 97 / - 21 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-852
SELECT + 22, - COUNT( * ) AS col1 FROM tab1
----
22
-3

skipif mysql # not compatible
query II rowsort label-852
SELECT + 22, - COUNT ( * ) AS col1 FROM tab1
----
22
-3

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

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL - 76 * - COUNT ( * ) FROM tab2
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-854
SELECT * FROM tab1 WHERE NOT + 99 + 83 * + + 85 + - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-854
SELECT * FROM tab1 WHERE NOT + 99 + 83 * + + 85 + - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT DISTINCT - 83 DIV COUNT( ALL - + col0 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - 83 / COUNT ( ALL - + col0 ) FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT - MIN( DISTINCT 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-856
SELECT - MIN ( DISTINCT 13 ) FROM tab0
----
-13

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 NOT BETWEEN + col0 AND - - col2 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT - 94 * + - COUNT( * ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT - 94 * + - COUNT ( * ) FROM tab2 AS cor0
----
282

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

query I rowsort
SELECT DISTINCT col0 * + + col1 + - 57 FROM tab2 AS cor0
----
2289
4871
4968

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

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

query I rowsort
SELECT ALL 91 * + col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + + 48 * - - col1 FROM tab1 AS cor0
----
2256
240
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT - col0 FROM tab1 WHERE col2 / - CAST( NULL AS SIGNED ) IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-865
SELECT - col0 FROM tab1 WHERE col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - 65 + + ( - + COUNT( * ) ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-866
SELECT - 65 + + ( - + COUNT ( * ) ) FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - 78 + + + MIN( + col1 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-867
SELECT - 78 + + + MIN ( + col1 ) FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL + SUM( ALL + 34 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + SUM ( ALL + 34 ) FROM tab2
----
102

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT - col2 + - + col1 * - - 67 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3486
-4622
-5263

skipif mysql # not compatible
query I rowsort label-870
SELECT - col2 + - + col1 * - - 67 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3486
-4622
-5263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT - + CAST( NULL AS SIGNED ) * COUNT( * ) + - 28 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT - + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 28 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT DISTINCT + 80 DIV + + col0 + + col1 col0 FROM tab0
----
1
21
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-872
SELECT DISTINCT + 80 / + + col0 + + col1 col0 FROM tab0
----
1
21
86

query I rowsort
SELECT col0 * + - ( - 39 ) - - ( - col1 ) AS col0 FROM tab1
----
1975
3310
3502

query I rowsort
SELECT 81 * - 9 FROM tab2 cor0
----
-729
-729
-729

query I rowsort
SELECT ALL - col1 * 95 FROM tab1 AS cor0
----
-1330
-4465
-475

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

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

query I rowsort
SELECT + col0 * - 28 * - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
19740
24360
268884

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-879
SELECT ALL - 16 * col1 AS col0, 29 DIV - + col0 * col2 FROM tab1
----
-224
0
-752
0
-80
0

skipif mysql # not compatible
query II rowsort label-879
SELECT ALL - 16 * col1 AS col0, 29 / - + col0 * col2 FROM tab1
----
-224
0
-752
0
-80
0

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

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

query II rowsort
SELECT + 68 * col0, 98 AS col1 FROM tab0
----
1020
98
5916
98
6596
98

query I rowsort
SELECT DISTINCT - col2 * + + 32 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-884
SELECT ALL 61 * - col0 FROM tab1 WHERE - CAST( + col0 AS DECIMAL ) IS NOT NULL
----
-3111
-5185
-5551

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 61 * - col0 FROM tab1 WHERE - CAST ( + col0 AS REAL ) IS NOT NULL
----
-3111
-5185
-5551

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT 24 DIV + - ( + - COUNT( * ) ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-886
SELECT 24 / + - ( + - COUNT ( * ) ) FROM tab0
----
8

query I rowsort
SELECT ALL - 70 + - - col1 AS col1 FROM tab2
----
-19
-3
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <= col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT - MAX( DISTINCT - + 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - MAX ( DISTINCT - + 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ( - 97 ) * - 47 + + COUNT( * ) + - - 60 FROM tab2, tab2 AS cor0
----
4628

skipif mysql # not compatible
query I rowsort label-890
SELECT ( - 97 ) * - 47 + + COUNT ( * ) + - - 60 FROM tab2, tab2 AS cor0
----
4628

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

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

query I rowsort
SELECT DISTINCT + col0 + 75 FROM tab2 AS cor0
----
121
139
150

query I rowsort
SELECT + 67 * 64 * + col2 * col1 * - 56 + 72 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-322731960
-70837688
-767449016

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col1 + + - 4 / col2
----

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

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col0 FROM tab0 cor0 WHERE NOT 99 IS NOT NULL OR NOT NULL NOT BETWEEN NULL AND + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-899
SELECT 86 * col0 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
3979
5544
6508

skipif mysql # not compatible
query I rowsort label-899
SELECT 86 * col0 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
3979
5544
6508

query I rowsort
SELECT 56 + + col0 FROM tab2
----
102
120
131

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND ( - - col2 ) )
----

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

query I rowsort
SELECT ALL + 82 + 21 * + col1 AS col2 FROM tab0 AS cor0
----
103
1783
523

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT - 1 - - col2 DIV - + col2 col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-908
SELECT - 1 - - col2 / - + col2 col0 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL COUNT( * ) * + COUNT( * ) * MAX( DISTINCT ( + 41 ) ) col0 FROM tab0
----
369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-910
SELECT ALL COUNT ( * ) * + COUNT ( * ) * MAX ( DISTINCT ( + 41 ) ) col0 FROM tab0
----
369

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN - col0 + + col2 AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-912
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) * 34 * + col1 + - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-912
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) * 34 * + col1 + - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT + SUM( DISTINCT - - 48 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + SUM ( DISTINCT - - 48 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT - - 84 * + - col0 * - 74 AS col1 FROM tab1 AS cor0
----
317016
528360
565656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT - + CAST( NULL AS SIGNED ) / 96 AS col2, + ( - - 81 ) AS col1 FROM tab0 AS cor0
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
query II rowsort label-915
SELECT - + CAST ( NULL AS INTEGER ) / 96 AS col2, + ( - - 81 ) AS col1 FROM tab0 AS cor0
----
NULL
81
NULL
81
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT + 59 * COUNT( + col1 ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-916
SELECT + 59 * COUNT ( + col1 ) AS col2 FROM tab2
----
177

query I rowsort
SELECT ALL + + col1 - - col2 FROM tab0 WHERE NOT NULL <= col2 * + 16 + 28 + ( - 78 )
----

query I rowsort
SELECT ALL - 62 AS col1 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT + MIN( - col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-919
SELECT DISTINCT + MIN ( - col2 ) col0 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE NULL <> - col0
----

query I rowsort
SELECT DISTINCT 36 * col0 * - col2 + + col1 FROM tab2 AS cor0
----
-156533
-38037
-92083

onlyif mysql # DIV for integer division: 
query II rowsort label-922
SELECT DISTINCT + + col2, - 1 DIV + col1 AS col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-922
SELECT DISTINCT + + col2, - 1 / + col1 AS col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT + col2 * - 82 AS col1 FROM tab1
----
-4838
-5576
-7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( ALL + col1 ) col1 FROM tab2 WHERE NULL >= ( + 50 * 18 - col0 * col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + COUNT( * ) - - 65 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-925
SELECT + COUNT ( * ) - - 65 FROM tab0
----
68

query I rowsort
SELECT ALL + col1 + + 22 AS col2 FROM tab1
----
27
36
69

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

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

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

query I rowsort
SELECT DISTINCT + 17 FROM tab1 WHERE NOT - col0 * + 12 IS NULL
----
17

query I rowsort
SELECT ALL - 56 * col2 AS col1 FROM tab0
----
-2632
-5544
-560

query III rowsort
SELECT * FROM tab2 WHERE ( + 34 ) >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 83 * + 86 FROM tab0
----
7138

query I rowsort
SELECT ( - 68 ) AS col1 FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT - SUM( 45 ) - 50 FROM tab1
----
-185

skipif mysql # not compatible
query I rowsort label-934
SELECT - SUM ( 45 ) - 50 FROM tab1
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT - ( + 6 ) DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-935
SELECT - ( + 6 ) / col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT col0 * 46 AS col0 FROM tab0
----
4002
4462
690

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

query I rowsort
SELECT col2 * + 55 AS col1 FROM tab1
----
3245
3740
5280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 61 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT 31 * COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-942
SELECT 31 * COUNT ( * ) FROM tab2
----
93

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

skipif mysql # not compatible
query I rowsort label-943
SELECT COUNT ( * ) * - 26 AS col2 FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT DISTINCT - 94 DIV col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT - 94 / col2 FROM tab1
----
-1
0

query I rowsort
SELECT 74 * 66 FROM tab1
----
4884
4884
4884

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( 88 )
----

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

query I rowsort
SELECT col1 * - 89 AS col1 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND col0 + - 60
----
0

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND col0 + - 60
----
0

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

query I rowsort
SELECT ALL 91 * col2 FROM tab2 AS cor0
----
2093
3640
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - MAX( 22 ) * - 15 col1 FROM tab0
----
330

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-953
SELECT - MAX ( 22 ) * - 15 col1 FROM tab0
----
330

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + 17 NOT IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL + 42 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + 42 / col0 AS col1 FROM tab2
----
0
0
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-957
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-957
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 < col0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + 47 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
134
144
62

query I rowsort
SELECT col0 * - ( - ( + col2 ) ) * + col2 FROM tab2
----
102400
24334
252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 WHERE NOT 92 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL NOT IN ( 3 * + col0 )
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT col1 * 55 + col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( CAST( NULL AS SIGNED ) + col2 ) AND col1 * 66
----

skipif mysql # not compatible
query I rowsort label-967
SELECT col1 * 55 + col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) + col2 ) AND col1 * 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT MIN( DISTINCT CAST( + col1 AS SIGNED ) ) FROM tab2 WHERE NOT col2 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT MIN ( DISTINCT CAST ( + col1 AS INTEGER ) ) FROM tab2 WHERE NOT col2 + - col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL <= - 91
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT SUM( DISTINCT 4 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT SUM ( DISTINCT 4 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL MIN( col1 ) + 92 * - 42 FROM tab2 AS cor0
----
-3813

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL MIN ( col1 ) + 92 * - 42 FROM tab2 AS cor0
----
-3813

query III rowsort
SELECT * FROM tab2 WHERE - 60 * 77 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL - SUM( - + ( - + col1 ) ) + MIN( DISTINCT col1 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - SUM ( - + ( - + col1 ) ) + MIN ( DISTINCT col1 ) FROM tab0
----
-102

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL < + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - 42 * MAX( DISTINCT - 35 ) FROM tab0
----
1470

skipif mysql # not compatible
query I rowsort label-980
SELECT - 42 * MAX ( DISTINCT - 35 ) FROM tab0
----
1470

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

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

query I rowsort
SELECT ALL - 77 + + col0 FROM tab2 cor0
----
-13
-2
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 61 + + 3 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) + - 68 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + - 68 FROM tab1 AS cor0
----
-71

query II rowsort
SELECT + col0, - 49 - + 55 * + 56 FROM tab0 AS cor0
----
15
-3129
87
-3129
97
-3129

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - 67 * - MIN( DISTINCT - - col2 ) - + - COUNT( * ) AS col2 FROM tab1
----
3956

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - 67 * - MIN ( DISTINCT - - col2 ) - + - COUNT ( * ) AS col2 FROM tab1
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NULL IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NULL IN ( - col2 )
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - col1 - - col1 ) NOT BETWEEN ( - col0 ) AND 74
----
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE + 1 * 63 / - col0 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL col2 - - + CAST ( NULL AS INTEGER ) + - - col0 + + 93 * col0 * 52 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 79 * col2 AND NOT - ( + col1 ) * - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-993
SELECT * FROM tab1 cor0 WHERE NOT ( - - CAST( NULL AS SIGNED ) * ( col2 / + 10 ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-993
SELECT * FROM tab1 cor0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) * ( col2 / + 10 ) IS NULL )
----

query I rowsort
SELECT + + col2 * + - 47 AS col2 FROM tab0 AS cor0
----
-2209
-4653
-470

query I rowsort
SELECT col0 * col0 FROM tab2 AS cor0 WHERE NOT - col2 / + - col1 NOT IN ( + - ( col1 ) )
----

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

skipif mysql # not compatible
query I rowsort label-996
SELECT - MAX ( 56 ) AS col1 FROM tab2 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( - col0 + - - col1 + - col1 ) NOT BETWEEN - col2 / - 32 AND ( 92 - ( + 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-997
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( - col0 + - - col1 + - col1 ) NOT BETWEEN - col2 / - 32 AND ( 92 - ( + 23 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 82 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 9 <= + + 75
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT + - 39 / CAST( NULL AS SIGNED ) * - ( - 1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 58 / 78 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1001
SELECT + - 39 / CAST ( NULL AS INTEGER ) * - ( - 1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 58 / 78 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * + col1 col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT ALL SUM( + col0 ) * + - 80 col0, + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
-15920
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1003
SELECT ALL SUM ( + col0 ) * + - 80 col0, + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
-15920
156

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT AVG ( ( - col2 ) ) * + CAST( 75 AS SIGNED ) + + CAST( NULL AS SIGNED ) / SUM( DISTINCT col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT AVG ( ( - col2 ) ) * + CAST ( 75 AS INTEGER ) + + CAST ( NULL AS INTEGER ) / SUM ( DISTINCT col1 ) FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - COUNT ( * ) / - + ( + 83 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 30 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT 44 * 5 * - + COUNT( * ) * - 44 FROM tab1
----
29040

skipif mysql # not compatible
query I rowsort label-1009
SELECT 44 * 5 * - + COUNT ( * ) * - 44 FROM tab1
----
29040

query I rowsort
SELECT - col2 + + - 85 FROM tab0 AS cor0
----
-132
-184
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT - MAX( DISTINCT + 79 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-79

skipif mysql # not compatible
query I rowsort label-1011
SELECT - MAX ( DISTINCT + 79 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-79

query I rowsort
SELECT ALL 19 + + 15 * + col2 AS col0 FROM tab2
----
364
619
889

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

query I rowsort
SELECT - col0 * col1 * - 85 FROM tab0 AS cor0
----
103275
155295
8245

onlyif mysql # DIV for integer division: 
query II rowsort label-1015
SELECT - col0 * 44 AS col1, 66 + + col0 + 83 DIV + - ( 81 ) + + col0 FROM tab2 AS cor0
----
-2024
157
-2816
193
-3300
215

skipif mysql # not compatible
query II rowsort label-1015
SELECT - col0 * 44 AS col1, 66 + + col0 + 83 / + - ( 81 ) + + col0 FROM tab2 AS cor0
----
-2024
157
-2816
193
-3300
215

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT + - 24 DIV + - 52 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT + - 24 / + - 52 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 * + 90 * col0 AS col1 FROM tab2 AS cor0
----
211140
443520
452250

query I rowsort
SELECT 90 - - col0 FROM tab0 AS cor0
----
105
177
187

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

skipif mysql # not compatible
query III rowsort label-1019
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST ( col0 AS INTEGER ) / - col1 + col1 AND - col2
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 58 / + 47 <= ( + - 64 * + + col0 + + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1022
SELECT DISTINCT - - ( + - MAX( CAST( NULL AS DECIMAL ) ) ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT - - ( + - MAX ( CAST ( NULL AS REAL ) ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT - MIN( ALL - 1 ) + COUNT( * ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - MIN ( ALL - 1 ) + COUNT ( * ) AS col2 FROM tab0
----
4

query I rowsort
SELECT col0 + - 67 FROM tab2 WHERE - col2 IS NOT NULL
----
-21
-3
8

query III rowsort
SELECT * FROM tab2 WHERE - - col0 / - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 + + 59 AS col0 FROM tab0
----
-28
-38
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL SUM( DISTINCT 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL SUM ( DISTINCT 43 ) FROM tab0
----
43

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 * - - ( - col2 ) + + col1 + + - col2 - col1 AS col0, col0 * - - col0 * - ( col1 ) FROM tab1 AS cor0
----
-3540
-36125
-4692
-389207
-9312
-36414

query I rowsort
SELECT DISTINCT - 87 * col2 FROM tab2 cor0
----
-2001
-3480
-5046

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1036
SELECT - col0 DIV + - col2 AS col1, + 92 col0 FROM tab0 AS cor0
----
0
92
0
92
8
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1036
SELECT - col0 / + - col2 AS col1, + 92 col0 FROM tab0 AS cor0
----
0
92
0
92
8
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT col2 + + + ( - col2 ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + - ( - - 54 ) < - col2 * - + 18
----

skipif mysql # not compatible
query I rowsort label-1037
SELECT col2 + + + ( - col2 ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + - ( - - 54 ) < - col2 * - + 18
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT ALL + ( - + 63 ) + + + col2 AS col0 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + ( - + 63 ) + + + col2 AS col0 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) + - 11 AS col2 FROM tab1 AS cor0
----
48
57
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 49
----

query I rowsort
SELECT + col1 * + col2 * - col2 + - 54 FROM tab2
----
-123254
-225442
-27033

query I rowsort
SELECT ALL ( + 81 ) + + col2 AS col0 FROM tab0
----
128
180
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + + - col1 + + col1 * + col2 col2 FROM tab2
----
1216
3097
3913

query I rowsort
SELECT 16 + + col2 AS col0 FROM tab1
----
112
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT + col0 DIV + - 55 + col2 AS col1 FROM tab0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-1046
SELECT + col0 / + - 55 + col2 AS col1 FROM tab0
----
47
9
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT ALL 54, COUNT( * ) * + - COUNT( DISTINCT - 30 ) col0 FROM tab1
----
54
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1047
SELECT ALL 54, COUNT ( * ) * + - COUNT ( DISTINCT - 30 ) col0 FROM tab1
----
54
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT 64 * + col1 AS col1 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT ALL - col0 * 51 FROM tab2
----
-2346
-3264
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) + - 60 + + + 20 AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) + - 60 + + + 20 AS col0 FROM tab1 AS cor0
----
-49

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + + 58 BETWEEN ( - - col0 ) AND NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - col2 + col1
----

query I rowsort
SELECT 2 - + col2 * - - 19 AS col1 FROM tab1
----
-1119
-1290
-1822

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

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

query I rowsort
SELECT - 3 + - - 51 AS col1 FROM tab0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT + + 19 * col2 - col0 DIV - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1122
1293
1824

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + + 19 * col2 - col0 / - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1122
1293
1824

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

query I rowsort
SELECT ALL + - ( - - col1 ) * + 11 FROM tab2 AS cor0
----
-561
-737
-847

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1065
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 35 * col0 * CAST( NULL AS SIGNED ) + col1 * ( 92 ) ) <= ( 93 )
----

skipif mysql # not compatible
query III rowsort label-1065
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 35 * col0 * CAST ( NULL AS INTEGER ) + col1 * ( 92 ) ) <= ( 93 )
----

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT CAST ( - + 81 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab2 WHERE + 81 IS NULL
----

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

query I rowsort
SELECT col0 * - - ( + 78 ) FROM tab0 AS cor0
----
1170
6786
7566

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 + + col1 - col1 BETWEEN - - col1 / 77 + - col1 AND NULL
----

query I rowsort
SELECT - ( - + col0 ) * + - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL ( 64 ) AS col2 FROM tab2
----
64
64
64

query I rowsort
SELECT - 45 AS col1 FROM tab0 cor0 WHERE NOT NULL IN ( col0, col0 + + 62 )
----

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

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

query I rowsort
SELECT DISTINCT - 68 + - col1 FROM tab0
----
-149
-69
-89

query I rowsort
SELECT DISTINCT - col1 * - 58 FROM tab2
----
2958
3886
4466

query I rowsort
SELECT ALL + ( - + 9 ) + - + col2 AS col2 FROM tab0
----
-108
-19
-56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + - 12 + + - col0, - col2, 47 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1080
SELECT ALL + COUNT( * ) * 89 DIV - COUNT( * ) AS col2 FROM tab0
----
-89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT - COUNT( ALL + - col2 ) + + 57 AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1082
SELECT - COUNT ( ALL + - col2 ) + + 57 AS col2 FROM tab1
----
54

query I rowsort
SELECT DISTINCT col2 * col1 + - + 55 * - col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( + col1 ) + - 19 * 69 + col2
----

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

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

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

query I rowsort
SELECT 67 - ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
118
152
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT + 30 * + + 99 * - COUNT( * ) - - SUM( ALL + 48 ) col0 FROM tab0 AS cor0
----
-8766

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1088
SELECT + 30 * + + 99 * - COUNT ( * ) - - SUM ( ALL + 48 ) col0 FROM tab0 AS cor0
----
-8766

query II rowsort
SELECT - col0 * + 72 - - - col2 AS col2, - col2 FROM tab1 AS cor0
----
-3768
-96
-6179
-59
-6620
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT ALL - 50 DIV 55 - - col1 - col0 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - 50 / 55 - - col1 - col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + col2 + + 48 * + col0 * - + ( + 2 ) AS col1 FROM tab2 AS cor0
----
-4393
-6104
-7142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL + - 95 + + ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
-95

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + - 95 + + ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
-95

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1096
SELECT CAST ( + col0 AS INTEGER ), 51 AS col1 FROM tab2
----
46
51
64
51
75
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT + ( 79 ) DIV - - 8 col1 FROM tab2
----
9
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1097
SELECT + ( 79 ) / - - 8 col1 FROM tab2
----
9
9
9

query II rowsort
SELECT 8 AS col1, 20 - + ( col1 ) AS col1 FROM tab1
----
8
-27
8
15
8
6

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1101
SELECT col2 col1, 43 DIV - col1 col0 FROM tab1
----
59
-8
68
0
96
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1101
SELECT col2 col1, 43 / - col1 col0 FROM tab1
----
59
-8
68
0
96
-3

query II rowsort
SELECT DISTINCT + + ( 43 ) AS col2, + col2 + - ( - - col0 ) + ( + - col1 ) - + col2 FROM tab0 AS cor0
----
43
-108
43
-96
43
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1103
SELECT - + 31 DIV - MAX( ALL + + 1 ) + COUNT( * ) col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1103
SELECT - + 31 / - MAX ( ALL + + 1 ) + COUNT ( * ) col2 FROM tab0 AS cor0
----
34

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

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

query I rowsort
SELECT ALL 22 * - col2 FROM tab2 AS cor0
----
-1276
-506
-880

query II rowsort
SELECT ALL - 29 + - 40, - col1 AS col0 FROM tab1 AS cor0
----
-69
-14
-69
-47
-69
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT - 99 + - - 84 + COUNT( - 10 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - 99 + - - 84 + COUNT ( - 10 ) AS col2 FROM tab1
----
-12

query II rowsort
SELECT DISTINCT + col2 AS col2, + 96 FROM tab0
----
10
96
47
96
99
96

query I rowsort
SELECT 16 + - 13 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL SUM( ALL - + col0 ) * - + ( + COUNT( - ( + + col0 ) ) ) AS col0 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL SUM ( ALL - + col0 ) * - + ( + COUNT ( - ( + + col0 ) ) ) AS col0 FROM tab0
----
597

query I rowsort
SELECT DISTINCT 24 + col0 AS col0 FROM tab0
----
111
121
39

query I rowsort
SELECT ALL - col0 * - + 95 AS col0 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT - - col0 * + - col1 + + col2 FROM tab2 WHERE + col0 < - ( + ( + col2 ) )
----

query I rowsort
SELECT - 90 * - - 22 FROM tab2
----
-1980
-1980
-1980

query I rowsort
SELECT DISTINCT ( col0 ) * - - col0 * ( col2 ) AS col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT DISTINCT - 6 * - MIN( - + col0 ) col2, + COUNT( * ) AS col2 FROM tab1
----
-546
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1116
SELECT DISTINCT - 6 * - MIN ( - + col0 ) col2, + COUNT ( * ) AS col2 FROM tab1
----
-546
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1118
SELECT ALL + - CAST( - + 6 AS SIGNED ) DIV COUNT( * ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + - CAST ( - + 6 AS INTEGER ) / COUNT ( * ) FROM tab1 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT - - 58 + - - MIN( col0 ) AS col1 FROM tab1 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT - - 58 + - - MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1120
SELECT col1 - - CAST( 36 AS SIGNED ), col2 * col1 + + + 52 col2 FROM tab2 cor0
----
103
3938
113
3132
87
1225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1120
SELECT col1 - - CAST ( 36 AS INTEGER ), col2 * col1 + + + 52 col2 FROM tab2 cor0
----
103
3938
113
3132
87
1225

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

query I rowsort
SELECT DISTINCT col0 * + col0 * - + ( ( - col0 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - + COUNT( * ) * - 11 AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1123
SELECT - + COUNT ( * ) * - 11 AS col1 FROM tab0 AS cor0
----
33

query II rowsort
SELECT + col2 * - - col2 * - col0 * - 23 AS col1, + ( - col1 ) AS col1 FROM tab1 AS cor0
----
10810368
-14
6805355
-5
9678032
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT - + COUNT( + - col0 ), - COUNT( * ) + + - COUNT( * ) + + + 2 * 42 AS col1 FROM tab2 AS cor0
----
-3
78

skipif mysql # not compatible
query II rowsort label-1125
SELECT - + COUNT ( + - col0 ), - COUNT ( * ) + + - COUNT ( * ) + + + 2 * 42 AS col1 FROM tab2 AS cor0
----
-3
78

query I rowsort
SELECT ALL - col2 * - - col1 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - 47 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + 36 BETWEEN + 91 + - col2 AND col0 + col2
----

query I rowsort
SELECT ALL col2 * 10 FROM tab0
----
100
470
990

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1131
SELECT ALL + col0 AS col0, - CAST( ( 60 ) AS SIGNED ) DIV 58 AS col0 FROM tab0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-1131
SELECT ALL + col0 AS col0, - CAST ( ( 60 ) AS INTEGER ) / 58 AS col0 FROM tab0
----
15
-1
87
-1
97
-1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1135
SELECT - + COUNT( * ) DIV + + ( SUM( - col1 ) ) + + - 48 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1135
SELECT - + COUNT ( * ) / + + ( SUM ( - col1 ) ) + + - 48 FROM tab1 cor0
----
-48

query I rowsort
SELECT DISTINCT + col2 + + 46 FROM tab0 AS cor0
----
145
56
93

query III rowsort
SELECT ALL + 81 AS col1, + col0 AS col0, col1 FROM tab0 AS cor0
----
9 values hashing to 8488d1bdfaef7388115c6a7399794ed2

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

query I rowsort
SELECT ALL col2 * col1 + + ( - + 22 ) + + - 20 AS col2 FROM tab1 AS cor0
----
1302
253
3154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 48 - col2, col2 col2 FROM tab0
----
-51
99
1
47
38
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col0 AS col0, + col1 col2 FROM tab2
----
104
77
133
67
69
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT 79 * CAST( NULL AS SIGNED ) + + col0 + + col2 + col2 / 62 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT 79 * CAST ( NULL AS INTEGER ) + + col0 + + col2 + col2 / 62 FROM tab1
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT + + col2 + col1 AS col0, - col2 FROM tab2 AS cor0
----
117
-40
125
-58
74
-23

query II rowsort
SELECT ALL col0 + - + 0 + - col2 AS col0, 81 FROM tab1
----
-45
81
23
81
26
81

query I rowsort
SELECT DISTINCT - 68 + 77 + - col2 FROM tab0
----
-1
-38
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT SUM( - 21 ) AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-1148
SELECT SUM ( - 21 ) AS col0 FROM tab2
----
-63

query II rowsort
SELECT ALL col2 AS col0, - ( - - col2 ) * 1 FROM tab1
----
59
-59
68
-68
96
-96

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

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

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

query I rowsort
SELECT ALL - col1 * - - col1 * - col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT - - 73 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
73
73
73

query I rowsort
SELECT ALL + + col1 * - - col1 * + 22 AS col2 FROM tab0 AS cor0
----
144342
22
9702

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 96 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT + col1 DIV - 71 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT + col1 / - 71 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT - col0 * + col1 * + 72 AS col0 FROM tab2
----
-168912
-354816
-361800

query I rowsort
SELECT DISTINCT + 12 * - col2 * + col2 + - 79 + - - 48 - + + 56 FROM tab1 AS cor0
----
-110679
-41859
-55575

query I rowsort
SELECT DISTINCT - col2 + - 41 - + ( col0 ) FROM tab2 AS cor0
----
-110
-145
-174

query I rowsort
SELECT ALL col1 + col2 + - - col0 AS col0 FROM tab0 cor0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT DISTINCT - ( - col0 ) - CAST( + - 71 AS SIGNED ) + + col1 FROM tab1 cor0
----
136
161
209

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT - ( - col0 ) - CAST ( + - 71 AS INTEGER ) + + col1 FROM tab1 cor0
----
136
161
209

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT COUNT ( DISTINCT - - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT SUM( - - 76 ) * - + COUNT( * ) col0 FROM tab2
----
-684

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1163
SELECT SUM ( - - 76 ) * - + COUNT ( * ) col0 FROM tab2
----
-684

onlyif mysql # DIV for integer division: 
query II rowsort label-1164
SELECT DISTINCT col1 col2, col1 DIV - ( + col1 ) AS col1 FROM tab1
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1164
SELECT DISTINCT col1 col2, col1 / - ( + col1 ) AS col1 FROM tab1
----
14
-1
47
-1
5
-1

query I rowsort
SELECT ALL col0 - - 43 FROM tab2
----
107
118
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1166
SELECT ALL 16, - COUNT( * ) AS col0 FROM tab1
----
16
-3

skipif mysql # not compatible
query II rowsort label-1166
SELECT ALL 16, - COUNT ( * ) AS col0 FROM tab1
----
16
-3

query II rowsort
SELECT ALL - 5 AS col0, + col0 * + + 31 AS col0 FROM tab1
----
-5
1581
-5
2635
-5
2821

query I rowsort
SELECT ALL - col1 * - col0 - col2 AS col2 FROM tab1
----
366
4209
618

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

query I rowsort
SELECT + col2 * col2 * 70 FROM tab0
----
154630
686070
7000

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - 46 - + - COUNT( * ) + + COUNT( - 98 ) * + - ( - + SUM( - 91 ) ) AS col2 FROM tab1, tab1 AS cor0
----
-7408

skipif mysql # not compatible
query I rowsort label-1171
SELECT - 46 - + - COUNT ( * ) + + COUNT ( - 98 ) * + - ( - + SUM ( - 91 ) ) AS col2 FROM tab1, tab1 AS cor0
----
-7408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1172
SELECT * FROM tab0 WHERE NOT - col0 / CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1172
SELECT * FROM tab0 WHERE NOT - col0 / CAST ( + col0 AS INTEGER ) IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1173
SELECT ALL COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT 14 * - COUNT( * ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1174
SELECT 14 * - COUNT ( * ) FROM tab2 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <= 16 * + - ( - col2 ) + - - col2 + col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * 2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT 55 FROM tab1 AS cor0 WHERE NOT 64 IS NULL
----
55
55
55

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

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

query I rowsort
SELECT col1 * + 88 FROM tab0 cor0
----
1848
7128
88

query I rowsort
SELECT ALL - - col2 * - col2 * - col2 * 78 FROM tab1 AS cor0
----
16019562
24525696
69009408

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT + col2 * + - ( - + col0 ) * + 27 + col2 + + col0 + + - col1 DIV - 40 FROM tab2 AS cor0
----
117584
28636
69225

skipif mysql # not compatible
query I rowsort label-1181
SELECT + col2 * + - ( - + col0 ) * + 27 + col2 + + col0 + + - col1 / - 40 FROM tab2 AS cor0
----
117584
28636
69225

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 0 + + 32 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 / - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 / + 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL - COUNT( DISTINCT - 61 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - COUNT ( DISTINCT - 61 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + 90 * - ( col0 ) AS col1 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 3 + + col1 - + ( + - col2 ) * - 16 AS col2 FROM tab0 AS cor0
----
-142
-1586
-674

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - - 56 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1191
SELECT - - 56 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT + ( - 68 ) * + 41 * + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-25092

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + ( - 68 ) * + 41 * + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-25092

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT MIN( ( - - CAST( col2 AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1196
SELECT MIN ( ( - - CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT 75 DIV col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1197
SELECT 75 / col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1198
SELECT CAST( col2 AS SIGNED ) - - 75 + - 74 AS col1 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-1198
SELECT CAST ( col2 AS INTEGER ) - - 75 + - 74 AS col1 FROM tab0 cor0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT 26 - - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
26
27
27

skipif mysql # not compatible
query I rowsort label-1199
SELECT 26 - - col1 / + col0 AS col1 FROM tab2 AS cor0
----
26
27
27

query II rowsort
SELECT ALL + col2 + + 20, col1 FROM tab0 AS cor0
----
119
1
30
21
67
81

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL ) <> + col2
----

query I rowsort
SELECT ALL - 90 - + col1 FROM tab1
----
-104
-137
-95

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= ( 24 )
----

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

query I rowsort
SELECT - col2 + ( 99 ) AS col0 FROM tab0
----
0
52
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT DISTINCT + + CAST( - + 52 AS SIGNED ) * - col2 + + + 33 FROM tab2 WHERE NOT ( + + CAST( NULL AS SIGNED ) ) BETWEEN col2 * + + col1 AND - col2
----

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + + CAST ( - + 52 AS INTEGER ) * - col2 + + + 33 FROM tab2 WHERE NOT ( + + CAST ( NULL AS INTEGER ) ) BETWEEN col2 * + + col1 AND - col2
----

query I rowsort
SELECT 77 + col1 - - col2 AS col2 FROM tab2
----
151
194
202

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT + SUM( DISTINCT + + 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + SUM ( DISTINCT + + 52 ) FROM tab1
----
52

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1210
SELECT DISTINCT - CAST( - ( - 3 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT - CAST ( - ( - 3 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT + SUM( 15 ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 / - 46 * 95 * col0 - - + col2 AND col2 + + - col0
----
45

skipif mysql # not compatible
query I rowsort label-1211
SELECT + SUM ( 15 ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 / - 46 * 95 * col0 - - + col2 AND col2 + + - col0
----
45

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

query I rowsort
SELECT DISTINCT 12 * - col0 AS col2 FROM tab2
----
-552
-768
-900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 99 BETWEEN + - col0 AND ( + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL 21 * + MAX( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-966

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 21 * + MAX ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-966

query I rowsort
SELECT 73 - + - col0 + + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
313
7729
9579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 96 col0 FROM tab2
----
-38
-56
-73

query I rowsort
SELECT + col0 * - + col2 + col0 AS col2 FROM tab2
----
-1012
-2496
-4275

query II rowsort
SELECT - col2 + - - col2 AS col0, 43 AS col0 FROM tab1
----
0
43
0
43
0
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT col0 + - col2 + ( col0 ) DIV - - col1 col1 FROM tab2
----
18
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1223
SELECT col0 + - col2 + ( col0 ) / - - col1 col1 FROM tab2
----
18
23
24

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

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

query I rowsort
SELECT - col0 + 50 FROM tab2
----
-14
-25
4

query II rowsort
SELECT ( + col0 ), - col0 + + - col1 FROM tab2
----
46
-97
64
-141
75
-142

query III rowsort
SELECT * FROM tab2 WHERE NOT + 59 * col2 * + + col2 / - 51 * - - 32 + - - 27 > ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - 35 * + - col1 FROM tab0
----
133245
3465
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT + 67 * + MAX( col1 ) AS col0 FROM tab1
----
3149

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT + 67 * + MAX ( col1 ) AS col0 FROM tab1
----
3149

query I rowsort
SELECT ALL + + col1 + + - col2 + - col2 FROM tab0 AS cor0
----
-13
-197
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT MIN( DISTINCT - col0 ) * 4 AS col2 FROM tab1 AS cor0
----
-364

skipif mysql # not compatible
query I rowsort label-1232
SELECT MIN ( DISTINCT - col0 ) * 4 AS col2 FROM tab1 AS cor0
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + + MIN( ALL 47 ) * + + 21 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
987

skipif mysql # not compatible
query I rowsort label-1233
SELECT + + MIN ( ALL 47 ) * + + 21 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
987

query I rowsort
SELECT DISTINCT - 57 * - + col1 * - col0 FROM tab0
----
-104139
-5529
-69255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 * 25 + - col1 + - - 66 col0 FROM tab1 AS cor0
----
1019
1052
1061

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + + 77 IN ( + 59, 80 * - + 66, - - col2 * - col1, 81, col2 )
----

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

query II rowsort
SELECT - + 98 AS col1, + col0 * + 10 + - - col1 + - 19 + + col1 FROM tab1 AS cor0
----
-98
519
-98
841
-98
985

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT - - 20 * col2 FROM tab0 cor0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT DISTINCT COUNT( * ) + - - 78 col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1241
SELECT DISTINCT COUNT ( * ) + - - 78 col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT DISTINCT - COUNT( * ) - - 35 col1, COUNT( * ) AS col1 FROM tab2
----
32
3

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

query I rowsort
SELECT ALL 90 - 77 * col0 FROM tab1
----
-3837
-6455
-6917

query III rowsort
SELECT * FROM tab2 WHERE + + col2 * - 55 * - col1 > + col0 * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT + 61 * + + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) * - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1245
SELECT + 61 * + + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) * - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT ALL + CAST( + 75 AS SIGNED ) FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL + CAST ( + 75 AS INTEGER ) FROM tab2 AS cor0
----
75
75
75

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

skipif mysql # not compatible
query II rowsort label-1247
SELECT DISTINCT - 25, COUNT ( * ) AS col0 FROM tab0
----
-25
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1248
SELECT - + SUM ( - + 95 ) col1 FROM tab0 AS cor0
----
285

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

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

query I rowsort
SELECT DISTINCT + col0 + - - col2 AS col0 FROM tab0 AS cor0
----
196
62
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT - SUM( + 82 ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - SUM ( + 82 ) FROM tab2 AS cor0
----
-246

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + - 34 + - 31 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 87 AS col1 FROM tab2 WHERE NOT ( col1 > + col0 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1256
SELECT col1 AS col0, 74 + - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1256
SELECT col1 AS col0, 74 + - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT + 70 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT col0 * ( + + col0 ) FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL + 1 * - MAX( - col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1259
SELECT ALL + 1 * - MAX ( - col2 ) col1 FROM tab2
----
23

query I rowsort
SELECT + 15 + - col0 AS col1 FROM tab2
----
-31
-49
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT ALL col0 DIV - ( + ( + col2 ) ), + col0 FROM tab1 cor0
----
-1
85
-1
91
0
51

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL col0 / - ( + ( + col2 ) ), + col0 FROM tab1 cor0
----
-1
85
-1
91
0
51

query I rowsort
SELECT - col1 + + 47 FROM tab0 AS cor0
----
-34
26
46

query I rowsort
SELECT + col2 + + 94 + + col1 AS col0 FROM tab0 cor0
----
125
194
222

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT DISTINCT + - 72 + + col0 + + col2 DIV + - col1 * + 2 AS col2 FROM tab2 AS cor0
----
-26
-8
3

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT + - 72 + + col0 + + col2 / + - col1 * + 2 AS col2 FROM tab2 AS cor0
----
-26
-8
3

query I rowsort
SELECT DISTINCT + - ( - col1 ) + - col1 - 57 + - - 82 AS col0 FROM tab1 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 36 col0 FROM tab0 AS cor0 WHERE ( col1 ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT 54 * ( COUNT( DISTINCT - col2 ) ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-1267
SELECT 54 * ( COUNT ( DISTINCT - col2 ) ) AS col0 FROM tab0
----
162

query I rowsort
SELECT DISTINCT - - ( + ( + - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT - ( - - COUNT( ALL + - col1 ) ) * + 58 - - 76 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1270
SELECT - ( - - COUNT ( ALL + - col1 ) ) * + 58 - - 76 FROM tab1 AS cor0
----
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + + 80 ) + + + 49 >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + ( - ( - - MAX( ALL + col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-91

skipif mysql # not compatible
query I rowsort label-1272
SELECT + ( - ( - - MAX ( ALL + col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-91

query I rowsort
SELECT ALL - 1 * col0 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL 86 * COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL 86 * COUNT ( * ) FROM tab0
----
258

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 NOT BETWEEN + col0 AND ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1276
SELECT 48 AS col2, + COUNT( * ) * - COUNT( * ) FROM tab1
----
48
-9

skipif mysql # not compatible
query II rowsort label-1276
SELECT 48 AS col2, + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
48
-9

query I rowsort
SELECT + 53 * - + 20 AS col1 FROM tab2
----
-1060
-1060
-1060

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL ( - ( - MAX ( - col0 ) ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - + MAX( - + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - + MAX ( - + col0 ) FROM tab0 AS cor0
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT - 65 * + 51 + COUNT( * ) FROM tab2 cor0
----
-3312

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT - 65 * + 51 + COUNT ( * ) FROM tab2 cor0
----
-3312

query I rowsort
SELECT ALL - + col2 + - col1 AS col1 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT + 83 + 5 * + 55 AS col0 FROM tab1 AS cor0
----
358
358
358

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 42 * + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1289
SELECT * FROM tab1 cor0 WHERE col2 * - col0 NOT BETWEEN NULL AND - col2 / CAST( + + col1 AS SIGNED ) * - 23
----

skipif mysql # not compatible
query III rowsort label-1289
SELECT * FROM tab1 cor0 WHERE col2 * - col0 NOT BETWEEN NULL AND - col2 / CAST ( + + col1 AS INTEGER ) * - 23
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 21 col0 FROM tab1 AS cor0
----
-26
16
7

query I rowsort
SELECT DISTINCT - 68 * - col1 + - col2 FROM tab0
----
-31
1418
5461

query I rowsort
SELECT 75 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab1 WHERE NOT - 2 / col1 > ( - ( - 62 ) )
----
90

query I rowsort
SELECT col2 FROM tab2 WHERE - - col1 * - - col2 * col1 IS NULL
----

query I rowsort
SELECT col0 * - 14 FROM tab2
----
-1050
-644
-896

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

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

query I rowsort
SELECT + 90 + col2 * 50 FROM tab0
----
2440
5040
590

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

query I rowsort
SELECT ALL + col1 - + col2 * - + col0 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1301
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + 97
----

skipif mysql # not compatible
query III rowsort label-1301
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + SUM( ALL - col2 ) * + + 22 AS col0 FROM tab0 AS cor0
----
-3432

skipif mysql # not compatible
query I rowsort label-1302
SELECT + SUM ( ALL - col2 ) * + + 22 AS col0 FROM tab0 AS cor0
----
-3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT ALL - col2 * + CAST( + + ( + 90 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-4230
-8910
-900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1303
SELECT ALL - col2 * + CAST ( + + ( + 90 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-4230
-8910
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT DISTINCT + + 64 * - COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + + 64 * - COUNT ( * ) FROM tab2 AS cor0
----
-192

query I rowsort
SELECT col1 * ( 73 ) FROM tab0
----
1533
5913
73

query II rowsort
SELECT 66 AS col2, 51 AS col2 FROM tab2 WHERE NOT + col2 + + col2 * - + 51 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * 35 * - - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + MIN( ALL col1 ) FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT + MIN ( ALL col1 ) FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
NULL

query I rowsort
SELECT 22 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT col0 * - - 82 AS col1 FROM tab2 WHERE col0 >= + + 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1311
SELECT ALL + + MIN( ALL - col1 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + + MIN ( ALL - col1 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1312
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col0 * col0 OR NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND + col2 * - 42
----

skipif mysql # not compatible
query III rowsort label-1312
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col0 * col0 OR NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col2 * - 42
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6 col1, + col0 * + col1 AS col1 FROM tab1
----
6
425
6
4277
6
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT DISTINCT ( + + MAX( DISTINCT col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT ( + + MAX ( DISTINCT col0 ) ) AS col2 FROM tab0
----
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT ALL - col1 * + - 53 * + col2 + col2 DIV 36 + - 82 col0 FROM tab1 AS cor0
----
15554
169307
71152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1317
SELECT ALL - col1 * + - 53 * + col2 + col2 / 36 + - 82 col0 FROM tab1 AS cor0
----
15554
169307
71152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 19 col2 FROM tab0 AS cor0
----
-2
-62
18

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

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

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

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

query I rowsort
SELECT DISTINCT + + 69 * + + col1 * 33 + - 64 * 75 AS col1 FROM tab0 AS cor0
----
-2523
179637
43017

query I rowsort
SELECT DISTINCT + col1 + + + 94 AS col0 FROM tab2 AS cor0
----
145
161
171

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

query I rowsort
SELECT DISTINCT + 57 + - - col1 AS col0 FROM tab2
----
108
124
134

query I rowsort
SELECT DISTINCT ( + + ( + - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT ALL + COUNT( - 65 ) AS col1, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL + COUNT ( - 65 ) AS col1, COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT - col1 * + 1 * + col1 + - col2 + - 79 + + - col1 + + col2 FROM tab2
----
-2731
-4635
-6085

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1331
SELECT - AVG ( ALL - col0 ) + + - 24 * + + CAST( NULL AS SIGNED ), - 43 AS col0 FROM tab0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-1331
SELECT - AVG ( ALL - col0 ) + + - 24 * + + CAST ( NULL AS INTEGER ), - 43 AS col0 FROM tab0
----
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT - 44 + - + SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1332
SELECT - 44 + - + SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
-147

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

query I rowsort
SELECT + - col1 + + + col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL - MIN( ALL ( + ( - col2 ) ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - MIN ( ALL ( + ( - col2 ) ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT + + 82 * + col0 * col1 FROM tab2 AS cor0
----
192372
404096
412050

query I rowsort
SELECT DISTINCT col2 * + 47 - col2 + - 98 AS col0 FROM tab0
----
2064
362
4456

query II rowsort
SELECT 23 AS col2, - ( col0 ) * - col2 * + - col0 + col2 AS col1 FROM tab0 cor0
----
23
-10528
23
-75680
23
-931392

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT ALL - CAST( - MAX( 16 ) AS SIGNED ) FROM tab0 cor0
----
16

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - CAST ( - MAX ( 16 ) AS INTEGER ) FROM tab0 cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 17 * + col0 col1 FROM tab2
----
-35972
-69632
-95625

query II rowsort
SELECT DISTINCT 53 AS col1, - col0 * + col2 AS col1 FROM tab1
----
53
-4896
53
-5015
53
-6188

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT SUM ( - - col0 ) FROM tab1
----
227

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

query II rowsort
SELECT col2 AS col0, col1 * - + col0 FROM tab1
----
59
-425
68
-4277
96
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT DISTINCT + COUNT( * ) * + + SUM( 69 ) AS col1 FROM tab0
----
621

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT + COUNT ( * ) * + + SUM ( 69 ) AS col1 FROM tab0
----
621

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

query I rowsort
SELECT ALL + 90 * - col0 AS col2 FROM tab2
----
-4140
-5760
-6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 72 * col2 * + col0 + - col0 * col2 / 63
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 32 <= + 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col2 * - 28 * + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT + COUNT( DISTINCT - 46 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1355
SELECT + COUNT ( DISTINCT - 46 ) AS col2 FROM tab0
----
1

query II rowsort
SELECT - 78 * + - col0 AS col0, col0 AS col1 FROM tab1
----
3978
51
6630
85
7098
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT DISTINCT - MAX( - col2 ) + ( - + COUNT( + col2 ) ) AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - MAX ( - col2 ) + ( - + COUNT ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL - 24 + - col2 AS col1 FROM tab1 cor0
----
-120
-83
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-1360
SELECT 25 + 2 + col2 DIV col1 DIV 48 * + col0 * + 86, col2 AS col0 FROM tab0 AS cor0
----
16711
99
27
10
27
47

skipif mysql # not compatible
query II rowsort label-1360
SELECT 25 + 2 + col2 / col1 / 48 * + col0 * + 86, col2 AS col0 FROM tab0 AS cor0
----
16711
99
27
10
27
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 + - col1 + - 81 + + col2 col2, + col2 * col2 AS col0, col1 FROM tab2
----
9 values hashing to 8c85136c66ff5c25c075365db7bc5dc4

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

query I rowsort
SELECT DISTINCT col2 * - col1 + 54 AS col1 FROM tab2
----
-1119
-3026
-3832

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

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

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

query I rowsort
SELECT ALL col0 * 69 AS col2 FROM tab2
----
3174
4416
5175

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT CAST ( - - 12 AS INTEGER ) FROM tab2
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + - col2 / + 44 * - - 29 BETWEEN NULL AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 42 * + 66 * - 68 col0 FROM tab0 AS cor0
----
-16399152
-18284112
-2827440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 - - col0 col0 FROM tab1 AS cor0
----
48
82
88

query I rowsort
SELECT - col1 * - + col1 * + + 71 + col2 AS col0 FROM tab0 AS cor0
----
170
31321
465878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT DISTINCT 88 + 45 FROM tab1 WHERE CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT 88 + 45 FROM tab1 WHERE CAST ( - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 87 AS col0 FROM tab0
----
-12
40
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT - col2 - - col1 DIV - ( + ( col2 ) * - col2 - + ( col2 ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1375
SELECT - col2 - - col1 / - ( + ( col2 ) * - col2 - + ( col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col2 - 80 AS col1 FROM tab0
----
-33
-70
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT MIN( ( - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1378
SELECT MIN ( ( - col1 ) ) FROM tab2
----
-77

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1380
SELECT 85 * 42 FROM tab2 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN - col2 AND ( CAST( 97 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1380
SELECT 85 * 42 FROM tab2 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN - col2 AND ( CAST ( 97 AS REAL ) )
----

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

query I rowsort
SELECT 28 + - 44 AS col1 FROM tab1 WHERE NOT + 70 IS NOT NULL
----

query I rowsort
SELECT + col1 + - col2 FROM tab0 WHERE NULL IS NULL
----
-98
11
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1385
SELECT DISTINCT ( 46 ) + - CAST( NULL AS SIGNED ) * + MAX( col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT ( 46 ) + - CAST ( NULL AS INTEGER ) * + MAX ( col0 ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT ALL + col2 + ( 3 ) DIV - col0 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + col2 + ( 3 ) / - col0 AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL COUNT( * ) + 65 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL COUNT ( * ) + 65 FROM tab1
----
68

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

query I rowsort
SELECT DISTINCT 93 + - col2 AS col2 FROM tab2
----
35
53
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - 79 / 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( - col2 ) NOT IN ( - ( - 56 ) )
----

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

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL BETWEEN 24 + - col1 AND col0
----

query I rowsort
SELECT col1 - - 22 FROM tab2
----
73
89
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1395
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-1395
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> col2
----

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

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

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
90

query III rowsort
SELECT * FROM tab2 WHERE ( 40 ) <= col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1400
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - col2 / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1400
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - col2 / - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT ALL - 26 + + 77 * 8 FROM tab0 AS cor0
----
590
590
590

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - MIN( ALL + col0 ) * + 49 AS col2 FROM tab2 AS cor0
----
-2254

skipif mysql # not compatible
query I rowsort label-1403
SELECT - MIN ( ALL + col0 ) * + 49 AS col2 FROM tab2 AS cor0
----
-2254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1404
SELECT DISTINCT + - SUM( ALL - 75 ) DIV 22 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + - SUM ( ALL - 75 ) / 22 AS col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT - col1 * 90 FROM tab0 AS cor0
----
-1890
-7290
-90

query I rowsort
SELECT - + col2 * - 43 AS col2 FROM tab0 cor0
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT MAX( ALL 39 ) + ( COUNT( * ) ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT MAX ( ALL 39 ) + ( COUNT ( * ) ) FROM tab2 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT + - 57 DIV + col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1408
SELECT + - 57 / + col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT ALL + - col1 DIV 33 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + - col1 / 33 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL 65 * - 30 + - col2 AS col0 FROM tab2 AS cor0
----
-1973
-1990
-2008

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE + col1 * - ( 37 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL - 48 + - MIN( col1 ) AS col1 FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL - 48 + - MIN ( col1 ) AS col1 FROM tab2 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col2 FROM tab1 AS cor0 WHERE ( - col2 + + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - - 7 AS col1 FROM tab0
----
104
22
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT ALL 10 + - col1 DIV - col2 AS col1 FROM tab0
----
10
11
12

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL 10 + - col1 / - col2 AS col1 FROM tab0
----
10
11
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL COUNT( ALL col1 ) * MAX( col1 + + 79 ) FROM tab1
----
378

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL COUNT ( ALL col1 ) * MAX ( col1 + + 79 ) FROM tab1
----
378

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

query I rowsort
SELECT ALL - 93 * + 60 - + 28 FROM tab1
----
-5608
-5608
-5608

query I rowsort
SELECT - 94 + - col1 FROM tab2
----
-145
-161
-171

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1421
SELECT ALL COUNT( * ) - + COUNT( * ) DIV + SUM( DISTINCT 97 + col2 * + CAST( ( - col0 ) AS SIGNED ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL COUNT ( * ) - + COUNT ( * ) / + SUM ( DISTINCT 97 + col2 * + CAST ( ( - col0 ) AS INTEGER ) ) AS col1 FROM tab1
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + 65 * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + + col2 * + ( col0 ) * col1 - - 38 + - 5 AS col2 FROM tab1 AS cor0
----
25108
290869
68577

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT + COUNT ( * ) * - MAX ( DISTINCT 78 ) AS col2 FROM tab1 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1426
SELECT CAST( - col1 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT NULL = CAST( NULL AS DECIMAL ) * 11 + 90
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1426
SELECT CAST ( - col1 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL = CAST ( NULL AS REAL ) * 11 + 90
----

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

query II rowsort
SELECT ALL 96 AS col1, 69 FROM tab0
----
96
69
96
69
96
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT + 19 * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-171

skipif mysql # not compatible
query I rowsort label-1429
SELECT + 19 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1430
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1430
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - 77 AS col0, - col0 + 78 FROM tab0
----
-77
-19
-77
-9
-77
63

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

query I rowsort
SELECT DISTINCT - - col0 * - ( 75 ) + col0 AS col1 FROM tab0 AS cor0 WHERE col2 < NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( 71 )
----
97
1
99

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

query I rowsort
SELECT 41 + col1 FROM tab0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <> ( - col1 ) AND NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1440
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <> ( - col1 ) AND NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 33 ) col2 FROM tab0
----
33
33
33

query I rowsort
SELECT + 34 * col2 AS col2 FROM tab2
----
1360
1972
782

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 91 ) AND NOT ( col0 + - 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL COUNT( * ) * - 36 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL COUNT ( * ) * - 36 FROM tab2
----
-108

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

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
84

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

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

query I rowsort
SELECT ALL - ( 65 ) AS col1 FROM tab1 WHERE NOT ( + 60 * 87 / + col0 ) < col0
----
-65

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + 62 > ( NULL )
----

query II rowsort
SELECT col2 * 29 + - col0 AS col0, 78 * col2 FROM tab2 AS cor0
----
1096
3120
1607
4524
621
1794

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

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

skipif mysql # not compatible
query I rowsort label-1454
SELECT + + 80 / + - COUNT ( * ) FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1455
SELECT DISTINCT + + CAST( + + 90 AS SIGNED ) + + - 8 AS col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + + CAST ( + + 90 AS INTEGER ) + + - 8 AS col1 FROM tab2 AS cor0
----
82

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

query I rowsort
SELECT ALL col2 + col0 * 42 FROM tab1
----
2238
3629
3890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT col2 * + col2 - + - 94 + - 97 - col0 * + + 92 * - CAST( - 4 AS SIGNED ) FROM tab0
----
-25898
-31919
-3314

skipif mysql # not compatible
query I rowsort label-1458
SELECT col2 * + col2 - + - 94 + - 97 - col0 * + + 92 * - CAST ( - 4 AS INTEGER ) FROM tab0
----
-25898
-31919
-3314

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 17 * + col1 * col0 / - 19 + + 96 * ( - col0 ) < - col1 + - 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - ( ( - ( - col2 ) ) ) ) AS col1 FROM tab1 WHERE NOT + ( - + col2 ) <> - - col2
----

query I rowsort
SELECT 53 / + col2 FROM tab2 AS cor0 WHERE NOT 43 <> + col0 + + + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN col1 * - 48 AND ( - col0 / + - 20 )
----

query I rowsort
SELECT + + 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * - 17 col2 FROM tab2 AS cor0
----
-1411
-1411
-1411

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

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

query I rowsort
SELECT DISTINCT + ( + ( - + 24 ) ) FROM tab0
----
-24

query I rowsort
SELECT DISTINCT - col0 + - 57 FROM tab1
----
-108
-142
-148

query I rowsort
SELECT ALL + ( - 12 ) FROM tab2
----
-12
-12
-12

query II rowsort
SELECT + 17 + - ( col1 ) AS col1, + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-4
-87
-64
-15
16
-97

query I rowsort
SELECT - 9 + - - col2 FROM tab1 AS cor0
----
50
59
87

query II rowsort
SELECT ALL + col0, + col2 AS col2 FROM tab2 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 >= + col0 )
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 65 - - col0 + - col1 / - 36 BETWEEN ( + col1 ) AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 75 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - + MIN( 6 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - + MIN ( 6 ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col1 * 93 AS col2 FROM tab0 AS cor0
----
1953
7533
93

query I rowsort
SELECT - - 17 - - col2 * 14 AS col0 FROM tab2 AS cor0
----
339
577
829

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT + COUNT( * ) - - - 37 * 40 FROM tab1 AS cor0
----
-1477

skipif mysql # not compatible
query I rowsort label-1482
SELECT + COUNT ( * ) - - - 37 * 40 FROM tab1 AS cor0
----
-1477

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + + col1 - col0 + 95 AS col0 FROM tab2 AS cor0
----
100
108
87

query I rowsort
SELECT DISTINCT - + col2 + - ( + 36 ) AS col2 FROM tab1 AS cor0
----
-104
-132
-95

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1488
SELECT * FROM tab0 AS cor0 WHERE + 48 NOT IN ( - 52, CAST( NULL AS SIGNED ), - col2 * - col1 * - + 43 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-1488
SELECT * FROM tab0 AS cor0 WHERE + 48 NOT IN ( - 52, CAST ( NULL AS INTEGER ), - col2 * - col1 * - + 43 + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 45 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1490
SELECT ALL 35 AS col1, COUNT( * ) - COUNT( * ) FROM tab1
----
35
0

skipif mysql # not compatible
query II rowsort label-1490
SELECT ALL 35 AS col1, COUNT ( * ) - COUNT ( * ) FROM tab1
----
35
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT - + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1495
SELECT - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + ( + - 59 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT - 1 DIV + col2 * col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT - 1 / + col2 * col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col2 FROM tab0 cor0
----
-15

query I rowsort
SELECT ALL - col0 * + 78 AS col2 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT DISTINCT + 4 * + col1 AS col2 FROM tab1 cor0
----
188
20
56

query I rowsort
SELECT DISTINCT - col0 * - col0 - col0 AS col2 FROM tab1 AS cor0 WHERE NULL >= 19 + - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT 33 DIV + col2 + + - 2 AS col2 FROM tab0
----
-2
-2
1

skipif mysql # not compatible
query I rowsort label-1504
SELECT 33 / + col2 + + - 2 AS col2 FROM tab0
----
-2
-2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT ALL + - 8 * + SUM( ALL + - 65 ) FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
1560

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + - 8 * + SUM ( ALL + - 65 ) FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
1560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - 93 ) + 44 + - 95 col2 FROM tab2
----
42

query II rowsort
SELECT 5 * - - col0, + col0 AS col1 FROM tab1
----
255
51
425
85
455
91

query I rowsort
SELECT - col0 * + ( col1 ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0, - col0 / - 59 * + + 9 )
----

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

query II rowsort
SELECT + col2 + - 44 + + col2 + 58 * col0 - - - col2 + col0 + + col1 * + + col1 AS col0, - 84 * - col2 + - col1 FROM tab1
----
3257
8050
5055
4951
7602
5665

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE + 99 IS NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + + col2 + + - 60 IN ( - 9 * - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 59 * + + 47 col2, + 87 + + + 44 FROM tab1
----
2773
131
2773
131
2773
131

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1524
SELECT COUNT( * ) * + - 67 AS col0, + 75 col0 FROM tab0
----
-201
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1524
SELECT COUNT ( * ) * + - 67 AS col0, + 75 col0 FROM tab0
----
-201
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT DISTINCT - - col2 + - col0 + + 4 AS col2 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
-19
-22
49

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - - col2 + - col0 + + 4 AS col2 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
-19
-22
49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1526
SELECT DISTINCT - SUM ( - col0 ) col0 FROM tab2
----
185

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col2 * - - ( 11 ) + - 33 AS col0 FROM tab0 AS cor0
----
1056
2277
41844

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT DISTINCT - 21 DIV - + col1 FROM tab1 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT - 21 / - + col1 FROM tab1 cor0
----
0
1
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 99 * - 50 AS col0, col0 FROM tab1 cor0
----
-4950
51
-4950
85
-4950
91

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

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

query I rowsort
SELECT ALL col0 * + + 1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1538
SELECT * FROM tab0 WHERE NOT - CAST( - - 15 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1538
SELECT * FROM tab0 WHERE NOT - CAST ( - - 15 AS INTEGER ) > NULL
----

query II rowsort
SELECT col0, 71 * + col1 - - col0 FROM tab1 AS cor0
----
51
1045
85
440
91
3428

query I rowsort
SELECT ALL ( col1 ) FROM tab2 AS cor0 WHERE 58 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + 17 + + 65 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1542
SELECT ALL col2 + + + CAST( 23 AS SIGNED ) AS col0, col1 FROM tab1 AS cor0
----
119
14
82
5
91
47

skipif mysql # not compatible
query II rowsort label-1542
SELECT ALL col2 + + + CAST ( 23 AS INTEGER ) AS col0, col1 FROM tab1 AS cor0
----
119
14
82
5
91
47

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

query I rowsort
SELECT DISTINCT - col1 + - + col0 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1545
SELECT + col2 AS col0, - 34 + - col2 + + CAST( col1 AS SIGNED ) FROM tab2
----
23
-6
40
3
58
-25

skipif mysql # not compatible
query II rowsort label-1545
SELECT + col2 AS col0, - 34 + - col2 + + CAST ( col1 AS INTEGER ) FROM tab2
----
23
-6
40
3
58
-25

query I rowsort
SELECT ALL col1 + + ( + - 18 ) * - col0 * - col2 AS col2 FROM tab2
----
-18993
-46003
-78233

query I rowsort
SELECT ALL 3 * + col2 AS col2 FROM tab1
----
177
204
288

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < 25
----

query I rowsort
SELECT DISTINCT + col0 + 94 FROM tab2
----
140
158
169

query II rowsort
SELECT DISTINCT - col2 * 98 AS col0, 57 AS col1 FROM tab0
----
-4606
57
-9702
57
-980
57

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT 37 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT - MAX( - 69 ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 * - col1 * col2 / + 88 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT - MAX ( - 69 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 * - col1 * col2 / + 88 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 71 + ( + col1 ) FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT ALL + col2 * col1 - - col1 + + - ( - col1 ) - - 85 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-414788
-425970
-522690

query I rowsort
SELECT DISTINCT + col0 * + col0 - col2 AS col2 FROM tab0
----
178
7559
9310

query I rowsort
SELECT col1 - 27 * - col2 * col1 AS col2 FROM tab2
----
104989
31722
83237

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

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT + CAST ( + SUM ( ALL col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
156

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

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

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

query II rowsort
SELECT col2 AS col0, + col1 + + col1 FROM tab2
----
23
102
40
154
58
134

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT DISTINCT - 48 col0, + ( COUNT( * ) ) + - - 16 FROM tab0 AS cor0
----
-48
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1565
SELECT DISTINCT - 48 col0, + ( COUNT ( * ) ) + - - 16 FROM tab0 AS cor0
----
-48
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT ALL - CAST( 80 AS SIGNED ) col2 FROM tab2 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1567
SELECT ALL - CAST ( 80 AS INTEGER ) col2 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - 65 * - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-3835
-4420
-6240

query I rowsort
SELECT DISTINCT col2 + + + 23 AS col0 FROM tab1 AS cor0
----
119
82
91

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-1571
SELECT DISTINCT + + 71 + - CAST( NULL AS SIGNED ) / - 90 - + + 73 col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1571
SELECT DISTINCT + + 71 + - CAST ( NULL AS INTEGER ) / - 90 - + + 73 col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 13 + - col1 * - + 86 AS col1 FROM tab0 AS cor0
----
1819
6979
99

query II rowsort
SELECT ALL + col1 + - 62 AS col0, 12 + 44 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT DISTINCT + + col1 DIV - col0 + + 31 * col0 FROM tab2 cor0
----
1425
1983
2325

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT + + col1 / - col0 + + 31 * col0 FROM tab2 cor0
----
1425
1983
2325

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

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

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

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL - ( + + ( - - 98 ) ) DIV - 65 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - ( + + ( - - 98 ) ) / - 65 AS col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT ALL COUNT( * ) DIV + COUNT( + 25 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL COUNT ( * ) / + COUNT ( + 25 ) FROM tab1
----
1

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE + - ( - 68 ) * + col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT - COUNT( * ) + + 48 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT - COUNT ( * ) + + 48 FROM tab1 AS cor0
----
45

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + + ( + COUNT( * ) ) + - 96 AS col0 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1585
SELECT + + ( + COUNT ( * ) ) + - 96 AS col0 FROM tab2 AS cor0
----
-93

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

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

query I rowsort
SELECT DISTINCT ( ( col1 ) ) - col1 * col1 AS col0 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT 9 * + - ( - col0 ) FROM tab1
----
459
765
819

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT ALL - 85 DIV col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - 85 / col0 AS col1 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

query II rowsort
SELECT ALL - - col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT - 5 * - 62 * + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-310
-310
-310

skipif mysql # not compatible
query I rowsort label-1593
SELECT - 5 * - 62 * + col1 / - col1 AS col2 FROM tab1 AS cor0
----
-310
-310
-310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT - ( CAST( col0 AS SIGNED ) ) * - + 44 AS col1 FROM tab1 AS cor0
----
2244
3740
4004

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - ( CAST ( col0 AS INTEGER ) ) * - + 44 AS col1 FROM tab1 AS cor0
----
2244
3740
4004

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

skipif mysql # not compatible
query I rowsort label-1595
SELECT - + COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT - 65 DIV + col1 + + 61 AS col0 FROM tab1 AS cor0
----
48
57
60

skipif mysql # not compatible
query I rowsort label-1596
SELECT - 65 / + col1 + + 61 AS col0 FROM tab1 AS cor0
----
48
57
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( * ) * - MIN( - - 2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1598
SELECT COUNT ( * ) * - MIN ( - - 2 ) FROM tab2
----
-6

query I rowsort
SELECT - 49 FROM tab1 WHERE NOT - 70 IS NULL
----
-49
-49
-49

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1601
SELECT DISTINCT col2 DIV - + col2 AS col1, 32 FROM tab0
----
-1
32

skipif mysql # not compatible
query II rowsort label-1601
SELECT DISTINCT col2 / - + col2 AS col1, 32 FROM tab0
----
-1
32

query I rowsort
SELECT DISTINCT col0 * - + 28 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - - 53 FROM tab1 cor0
----
53

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

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

query I rowsort
SELECT col0 + + col2 * - 10 + + col0 AS col2 FROM tab0
----
-440
-796
74

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - col2 ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT DISTINCT + + COUNT( * ) * + 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + + COUNT ( * ) * + 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT - 4 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-324
-4
-84

skipif mysql # not compatible
query I rowsort label-1608
SELECT - 4 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL + - MIN( - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + - MIN ( - col2 ) FROM tab2 AS cor0
----
58

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

query I rowsort
SELECT DISTINCT + ( 97 ) + col0 + + 71 * col2 FROM tab0 AS cor0
----
3449
7223
894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * + col2 col0 FROM tab2 cor0
----
1081
2600
4408

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT + 46 * - + CAST( - col0 AS SIGNED ) * + col2 + + col0 + CAST( col0 AS SIGNED ) * 64 FROM tab0 cor0
----
33405
448043
45675

skipif mysql # not compatible
query I rowsort label-1615
SELECT + 46 * - + CAST ( - col0 AS INTEGER ) * + col2 + + col0 + CAST ( col0 AS INTEGER ) * 64 FROM tab0 cor0
----
33405
448043
45675

query I rowsort
SELECT ALL col0 + + + col1 + - 26 FROM tab2 AS cor0
----
115
116
71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT + 59 + - 56 * - - 23 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1226

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + 59 + - 56 * - - 23 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1226

query I rowsort
SELECT ALL + 52 * col2 AS col2 FROM tab0
----
2444
5148
520

query I rowsort
SELECT - + 71 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT + + CAST ( 40 AS INTEGER ) FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT - - ( - 66 ) * 24 - - 9 FROM tab1 AS cor0
----
-1575
-1575
-1575

query II rowsort
SELECT + col2, + col0 FROM tab2 cor0 WHERE NOT NULL >= - col0 + - col0 / + + 29
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL - COUNT( * ) * 85 AS col0 FROM tab2 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL - COUNT ( * ) * 85 AS col0 FROM tab2 cor0
----
-255

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT DISTINCT + - 17 DIV - 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + - 17 / - 84 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 95 * col1 AS col2 FROM tab0 cor0
----
1995
7695
95

query I rowsort
SELECT ALL + ( - + col0 ) * + col2 - - - col2 AS col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT - 7 AS col0, + COUNT( * ) col1 FROM tab1
----
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1631
SELECT - 7 AS col0, + COUNT ( * ) col1 FROM tab1
----
-7
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT + col1 DIV ( - - ( - col2 ) ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT + col1 / ( - - ( - col2 ) ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT 65 * - 73 FROM tab2
----
-4745
-4745
-4745

query II rowsort
SELECT ALL 48, + ( + col2 ) FROM tab1
----
48
59
48
68
48
96

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

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL MAX ( 69 ) AS col0 FROM tab2 AS cor0
----
69

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

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

query II rowsort
SELECT ALL - - col0 + + - col2 AS col2, col0 FROM tab1 AS cor0
----
-45
51
23
91
26
85

query I rowsort
SELECT - col2 + - col1 + col0 * + - 39 FROM tab1
----
-2099
-3379
-3664

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT DISTINCT MIN( + col2 ), ( ( - MIN( ALL - - col0 ) ) ) AS col2 FROM tab2
----
23
-46

skipif mysql # not compatible
query II rowsort label-1639
SELECT DISTINCT MIN ( + col2 ), ( ( - MIN ( ALL - - col0 ) ) ) AS col2 FROM tab2
----
23
-46

query I rowsort
SELECT DISTINCT + 51 + + 96 FROM tab2 AS cor0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT col0 DIV col0 * - + 92 AS col1 FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-1641
SELECT col0 / col0 * - + 92 AS col1 FROM tab0 AS cor0
----
-92
-92
-92

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

skipif mysql # not compatible
query I rowsort label-1642
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) - - + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT - 81 - + COUNT( 30 ) * - MIN( DISTINCT + 42 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - 81 - + COUNT ( 30 ) * - MIN ( DISTINCT + 42 ) FROM tab2
----
45

query II rowsort
SELECT ALL + col0 AS col0, 14 + + ( - ( 35 ) ) AS col1 FROM tab2
----
46
-21
64
-21
75
-21

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

skipif mysql # not compatible
query I rowsort label-1646
SELECT + + 77 AS col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + col2 IS NULL
----
77
77
77

query I rowsort
SELECT 38 * + + col0 FROM tab1
----
1938
3230
3458

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT COUNT( DISTINCT + - 10 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT COUNT ( DISTINCT + - 10 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + col1 - + col1 - - col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL + COUNT( * ) * + 96 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + COUNT ( * ) * + 96 FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT ALL - - 78 * 70 * + CAST( NULL AS SIGNED ), col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1652
SELECT ALL - - 78 * 70 * + CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT DISTINCT 98 DIV + col0 col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1653
SELECT DISTINCT 98 / + col0 col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT + - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 37 / - + 27 * 7 > NULL
----

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

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

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

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

query I rowsort
SELECT ALL + 76 * - 77 FROM tab1
----
-5852
-5852
-5852

query I rowsort
SELECT DISTINCT + + 19 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 39 ) AND + col1 * 7
----

query I rowsort
SELECT ALL + + col0 * + + 53 AS col1 FROM tab2 AS cor0
----
2438
3392
3975

query I rowsort
SELECT + col2 * 95 FROM tab1 cor0
----
5605
6460
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT col2 DIV col2 * + - ( col1 ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1662
SELECT col2 / col2 * + - ( col1 ) FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col1 + - + col1 col1 FROM tab2 WHERE NOT NULL >= + - col0
----

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

query I rowsort
SELECT DISTINCT col2 * - 31 FROM tab2
----
-1240
-1798
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + 86 * COUNT( * ) AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + 86 * COUNT ( * ) AS col0 FROM tab2
----
258

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

skipif mysql # not compatible
query I rowsort label-1667
SELECT + COUNT ( * ) / - 51 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT DISTINCT CAST( - - 67 AS SIGNED ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT CAST ( - - 67 AS INTEGER ) FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL + - 36 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
108

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + - 36 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
108

query I rowsort
SELECT DISTINCT - - col2 + 87 AS col1 FROM tab2 AS cor0
----
110
127
145

query II rowsort
SELECT + 93 * - 51 * - 92 * + + col1 + - + col2 AS col0, col0 FROM tab2 AS cor0
----
22254133
46
29235794
75
33599372
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT DISTINCT + 63 + + 62 DIV - - 49 AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + 63 + + 62 / - - 49 AS col2 FROM tab1 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 col2, - 65 * ( - - 84 ) col0 FROM tab1 AS cor0
----
39
-5460
39
-5460
39
-5460

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

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

query I rowsort
SELECT - col1 + + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 + + col1 col2 FROM tab2 cor0
----
-14
12
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 - col2 col2 FROM tab0
----
-15
37
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1679
SELECT - - CAST( NULL AS DECIMAL ) FROM tab0 WHERE + col2 NOT BETWEEN + - 10 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1679
SELECT - - CAST ( NULL AS REAL ) FROM tab0 WHERE + col2 NOT BETWEEN + - 10 AND NULL
----

query I rowsort
SELECT ALL + 53 - + col2 AS col1 FROM tab1
----
-15
-43
-6

query I rowsort
SELECT DISTINCT - col0 - + col1 * + col0 AS col2 FROM tab2
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT MIN( ( 69 ) ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1682
SELECT MIN ( ( 69 ) ) AS col0 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT + AVG ( + col1 ) + 15 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1684
SELECT DISTINCT - COUNT( * ) - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT - COUNT ( * ) - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 * - + 51 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1688
SELECT MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 + 45 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1691
SELECT DISTINCT - col0 AS col1, + ( - CAST( 56 AS SIGNED ) ) DIV col1 + + col0 FROM tab1 AS cor0
----
-51
47
-85
74
-91
90

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT - col0 AS col1, + ( - CAST ( 56 AS INTEGER ) ) / col1 + + col0 FROM tab1 AS cor0
----
-51
47
-85
74
-91
90

query I rowsort
SELECT + col2 - + col2 + col1 FROM tab0 cor0 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1693
SELECT 64 DIV - 18 AS col2, ( - - col0 ) FROM tab1
----
-3
51
-3
85
-3
91

skipif mysql # not compatible
query II rowsort label-1693
SELECT 64 / - 18 AS col2, ( - - col0 ) FROM tab1
----
-3
51
-3
85
-3
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 62 col1 FROM tab2 AS cor0
----
2852
3968
4650

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - 6 BETWEEN NULL AND 5
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - 41 - + col2 * - 95 * - - col2 * 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT MIN( ALL 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1700
SELECT MIN ( ALL 97 ) AS col2 FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT DISTINCT col1 + + + ( - 75 ) - - col2 DIV + 83 + + 87 AS col0 FROM tab1 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT col1 + + + ( - 75 ) - - col2 / + 83 + + 87 AS col0 FROM tab1 AS cor0
----
17
27
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL - 82 + + - SUM( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-281

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - 82 + + - SUM ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-281

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT + + col0 DIV + + col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1704
SELECT + + col0 / + + col0 FROM tab0 cor0
----
1
1
1

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

query I rowsort
SELECT ALL + 13 + + + col2 * + col0 * 77 AS col2 FROM tab0 AS cor0
----
54298
67003
739444

query I rowsort
SELECT DISTINCT + 19 + - - 31 - + + col1 AS col0 FROM tab2
----
-1
-17
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT 97 - ( + COUNT( ALL - 23 ) ) DIV COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-1708
SELECT 97 - ( + COUNT ( ALL - 23 ) ) / COUNT ( * ) FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT + MAX( DISTINCT 20 ) col2 FROM tab1
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1709
SELECT DISTINCT + MAX ( DISTINCT 20 ) col2 FROM tab1
----
20

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - 48 >= - 54 + 19
----

query II rowsort
SELECT - col2 AS col0, 70 * col0 AS col1 FROM tab1
----
-59
5950
-68
6370
-96
3570

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1712
SELECT DISTINCT + col0, + col0 * - 36 FROM tab2 WHERE - + CAST( NULL AS DECIMAL ) IS NULL
----
46
-1656
64
-2304
75
-2700

skipif mysql # not compatible
query II rowsort label-1712
SELECT DISTINCT + col0, + col0 * - 36 FROM tab2 WHERE - + CAST ( NULL AS REAL ) IS NULL
----
46
-1656
64
-2304
75
-2700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT COUNT( * ) * SUM( ALL + + 50 ) AS col0 FROM tab2 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-1714
SELECT COUNT ( * ) * SUM ( ALL + + 50 ) AS col0 FROM tab2 AS cor0
----
450

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL + 32 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL + 32 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 AS cor0 WHERE NOT col0 + + - col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col1 * + + 87 AS col2 FROM tab2 AS cor0
----
4437
5829
6699

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1720
SELECT DISTINCT + - col2 + - + CAST( NULL AS DECIMAL ) AS col0, 81 * - 92 col0 FROM tab0 AS cor0
----
NULL
-7452

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1720
SELECT DISTINCT + - col2 + - + CAST ( NULL AS REAL ) AS col0, 81 * - 92 col0 FROM tab0 AS cor0
----
NULL
-7452

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

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab0 AS cor0 WHERE - col2 * + 41 + - col1 IS NOT NULL
----
12

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + - col2 * - - col2
----

query I rowsort
SELECT DISTINCT - 59 * - col1 AS col1 FROM tab0
----
1239
4779
59

query I rowsort
SELECT ALL 32 * col2 AS col0 FROM tab2
----
1280
1856
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT 60 FROM tab2 WHERE + + CAST( - + col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1730
SELECT 60 FROM tab2 WHERE + + CAST ( - + col0 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT DISTINCT COUNT( ALL - - col2 ) * - 88 AS col2 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT COUNT ( ALL - - col2 ) * - 88 AS col2 FROM tab0
----
-264

query I rowsort
SELECT - col0 + + col2 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT - 28 * MIN( col2 ) AS col1 FROM tab0 AS cor0
----
-280

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - 28 * MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
-280

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 44 * - + 53 + 91 + 95 * 60 * + col2 AS col2 FROM tab1 AS cor0
----
334059
385359
544959

query I rowsort
SELECT ALL - 59 + - col0 AS col2 FROM tab0 AS cor0
----
-146
-156
-74

query I rowsort
SELECT col0 - - col2 - - - col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - + 41 + + 60 AS col2 FROM tab0 AS cor0
----
19

query I rowsort
SELECT + 45 * + - col2 - - 97 AS col0 FROM tab1 AS cor0
----
-2558
-2963
-4223

query II rowsort
SELECT col0 + + col2 AS col2, - 59 AS col0 FROM tab2 AS cor0
----
104
-59
133
-59
69
-59

query I rowsort
SELECT - 90 * - 4 AS col2 FROM tab0 AS cor0
----
360
360
360

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

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

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

query II rowsort
SELECT ALL + 8 AS col0, col0 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - 20 AS col2, col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - + ( - - col2 ) AND NULL
----

query I rowsort
SELECT ALL col2 * + ( - - 0 ) FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE 54 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 4 * + col2 * - col0 / col1 * + col1 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 col0, col2 + + col1 FROM tab2 AS cor0
----
70
117
70
125
70
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL MAX( + + 93 ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL MAX ( + + 93 ) FROM tab0 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 45 * MAX( - 83 ) AS col1 FROM tab2
----
-3735

skipif mysql # not compatible
query I rowsort label-1753
SELECT 45 * MAX ( - 83 ) AS col1 FROM tab2
----
-3735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT DISTINCT AVG ( ALL - col2 ) / CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1754
SELECT DISTINCT AVG ( ALL - col2 ) / CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - ( 32 ) AS col0 FROM tab2
----
-32
-32
-32

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

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT MIN ( ALL + 44 ) FROM tab2
----
44

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

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

query I rowsort
SELECT DISTINCT + - 68 AS col0 FROM tab0 cor0
----
-68

query I rowsort
SELECT DISTINCT + 0 * + 79 + - + 82 / - 10 FROM tab2 AS cor0 WHERE - col1 >= col2
----

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

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

query I rowsort
SELECT ALL + col0 + col0 + col2 + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
249
314
341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT - 63 + - CAST( - ( 15 ) AS SIGNED ) + 70 * col0 + - col1 * - 56 col0 FROM tab1 AS cor0
----
4306
6182
8954

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1763
SELECT - 63 + - CAST ( - ( 15 ) AS INTEGER ) + 70 * col0 + - col1 * - 56 col0 FROM tab1 AS cor0
----
4306
6182
8954

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

query I rowsort
SELECT 98 * + + col2 AS col0 FROM tab0
----
4606
9702
980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT ALL - COUNT( * ) * COUNT( * ) DIV + 40 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - COUNT ( * ) * COUNT ( * ) / + 40 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col1 - col0 + 51 * - 81 <= - 64 / - 47 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * 85 < - col1 * - - col1
----

query II rowsort
SELECT 51 + + + col2 * - col2, 78 AS col2 FROM tab2
----
-1549
78
-3313
78
-478
78

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

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - MAX ( ALL + 17 ) FROM tab1 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT ALL + col2 * + col0 * - 79 + - CAST( NULL AS SIGNED ) + + - 11 * + 59 + ( - - col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + col2 * + col0 * - 79 + - CAST ( NULL AS INTEGER ) + + - 11 * + 59 + ( - - col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + ( - ( - - col2 ) ) AS col1, col2 * - col0 FROM tab0 AS cor0
----
10
-870
47
-705
99
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * + col0 * 64 + 57 col0 FROM tab2 cor0
----
135481
262201
360057

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1773
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * + col0 * 64 + 57 col0 FROM tab2 cor0
----
135481
262201
360057

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT ALL + 58 DIV col2 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + 58 / col2 AS col1 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - 35 * - - COUNT( * ) * 27 AS col2 FROM tab2
----
-2835

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 35 * - - COUNT ( * ) * 27 AS col2 FROM tab2
----
-2835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT - 1 * CAST( - - col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 1 * CAST ( - - col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( + 23 ) IS NULL
----

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

query I rowsort
SELECT ALL + 97 * + 47 FROM tab0
----
4559
4559
4559

query III rowsort
SELECT ALL * FROM tab1 WHERE + 82 BETWEEN NULL AND - - col2
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL COUNT ( * ) / - + 71 AS col0 FROM tab0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL col2 + CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
4345
484
810

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL col2 + CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1786
SELECT 55 AS col1, CAST( + col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
55
1058
55
2560
55
4350

skipif mysql # not compatible
query II rowsort label-1786
SELECT 55 AS col1, CAST ( + col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
55
1058
55
2560
55
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col2 * - + CAST( + 72 AS SIGNED ) ) AND CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col2 * - + CAST ( + 72 AS INTEGER ) ) AND CAST ( NULL AS INTEGER )
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 + + 78 * - 12 col1 FROM tab1 AS cor0
----
-921

query II rowsort
SELECT col1, - 55 AS col2 FROM tab2 cor0 WHERE - 83 IS NULL
----

query II rowsort
SELECT DISTINCT col0, col0 * - col1 FROM tab0
----
15
-1215
87
-1827
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL COUNT( * ) - 78 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL COUNT ( * ) - 78 FROM tab1
----
-75

query I rowsort
SELECT DISTINCT + - 77 AS col0 FROM tab2 WHERE NOT + col1 * + - 73 + col2 * col0 > col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - ( + 24 ) + + MIN( + - col0 ) FROM tab0 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1794
SELECT - ( + 24 ) + + MIN ( + - col0 ) FROM tab0 AS cor0
----
-121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT - SUM( ALL - - 62 ) col0 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1796
SELECT DISTINCT - SUM ( ALL - - 62 ) col0 FROM tab1 AS cor0
----
-186

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 82 BETWEEN NULL AND + - col1
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + + 15 * + col2 * - col0 = NULL AND + 70 IS NOT NULL
----

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

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

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

query II rowsort
SELECT - 58, col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-58
59
-58
68
-58
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1806
SELECT ALL + col0 DIV - CAST( - 27 AS SIGNED ) col1 FROM tab1 AS cor0
----
1
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1806
SELECT ALL + col0 / - CAST ( - 27 AS INTEGER ) col1 FROM tab1 AS cor0
----
1
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 97 <= 27
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * 79 - - - 68 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 12 FROM tab2, tab0 AS cor0
----
12

query II rowsort
SELECT + col0 AS col1, col1 + col1 AS col0 FROM tab1
----
51
28
85
10
91
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT CAST( 99 AS SIGNED ) AS col1 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-1811
SELECT CAST ( 99 AS INTEGER ) AS col1 FROM tab1
----
99
99
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT ALL - col0 DIV col0 * - + 92 AS col2 FROM tab1 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - col0 / col0 * - + 92 AS col2 FROM tab1 cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1815
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1815
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 7 + + col1 AS col2 FROM tab2 AS cor0
----
58
74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT DISTINCT - - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1817
SELECT DISTINCT - - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 WHERE ( - 60 + 36 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1819
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE ( + col1 - - col2 ) IN ( - CAST( col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1819
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE ( + col1 - - col2 ) IN ( - CAST ( col1 AS INTEGER ) )
----
0

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1822
SELECT ALL * FROM tab1 WHERE col2 * 0 NOT BETWEEN 93 * CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1822
SELECT ALL * FROM tab1 WHERE col2 * 0 NOT BETWEEN 93 * CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT 62 * ( ( 88 ) * col0 ) FROM tab1
----
278256
463760
496496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + + col1 col1 FROM tab2
----
-16
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT SUM( ALL col1 ) * 14 col1 FROM tab2
----
2730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1825
SELECT SUM ( ALL col1 ) * 14 col1 FROM tab2
----
2730

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

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - 90 + COUNT ( * ) FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1827
SELECT DISTINCT * FROM tab0 WHERE ( + 27 ) + - CAST( 31 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1827
SELECT DISTINCT * FROM tab0 WHERE ( + 27 ) + - CAST ( 31 AS INTEGER ) IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 31 * col2 AS col0 FROM tab0
----
-1457
-3069
-310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1832
SELECT * FROM tab2 WHERE + 75 * + CAST( col1 AS SIGNED ) BETWEEN col1 * col0 - + ( col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1832
SELECT * FROM tab2 WHERE + 75 * + CAST ( col1 AS INTEGER ) BETWEEN col1 * col0 - + ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + MAX( ALL col1 ) FROM tab0 WHERE NOT - col2 * col1 NOT BETWEEN + CAST( 89 AS SIGNED ) AND 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + MAX ( ALL col1 ) FROM tab0 WHERE NOT - col2 * col1 NOT BETWEEN + CAST ( 89 AS INTEGER ) AND 52
----
NULL

query I rowsort
SELECT DISTINCT + ( + 27 ) * - col2 AS col1 FROM tab0
----
-1269
-2673
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 53 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 53 AS col1 FROM tab2
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 87 )
----

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

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

query I rowsort
SELECT DISTINCT 64 * ( col0 * - col0 ) FROM tab1
----
-166464
-462400
-529984

query I rowsort
SELECT 25 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 44 * ( + 58 ) - + col2 * col2 NOT IN ( 59 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) >= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT - 33 DIV + col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 33 / + col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col2 FROM tab1 WHERE + col0 BETWEEN 73 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( col1 ) col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1850
SELECT 18 + - MAX( CAST( - col2 AS SIGNED ) + + col2 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1850
SELECT 18 + - MAX ( CAST ( - col2 AS INTEGER ) + + col2 ) FROM tab0 cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1851
SELECT - ( 41 ) DIV - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1851
SELECT - ( 41 ) / - COUNT ( * ) FROM tab1
----
13

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

query I rowsort
SELECT 52 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 7 * 35 + + col2 <= ( NULL )
----

query I rowsort
SELECT - col1 * + ( col2 + 88 ) FROM tab2 AS cor0
----
-5661
-9782
-9856

query I rowsort
SELECT + col1 * 65 AS col2 FROM tab0 AS cor0
----
1365
5265
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - 27 * - + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 27 * - + COUNT ( * ) FROM tab1
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - 48 + + col0 = col2 + - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 80 * 69 IN ( + 45 / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col0 col2 FROM tab0
----
5220
5820
900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1861
SELECT * FROM tab1 WHERE NOT ( - 8 - 64 ) BETWEEN + 60 - + CAST( - 5 AS SIGNED ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1861
SELECT * FROM tab1 WHERE NOT ( - 8 - 64 ) BETWEEN + 60 - + CAST ( - 5 AS INTEGER ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 53 BETWEEN NULL AND ( 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT MIN( col1 ) AS col1 FROM tab2 WHERE NOT ( + col1 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT MIN ( col1 ) AS col1 FROM tab2 WHERE NOT ( + col1 ) = NULL
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 78 * ( + col2 * + col0 ) ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - - col1 / col2 + 99 AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT + ( - col1 ) * + col2 + col1 * col1 FROM tab1 cor0
----
-1148
-270
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 88 col0 FROM tab0
----
-1
-73
9

query I rowsort
SELECT DISTINCT + 9 * col2 * + - col0 AS col2 FROM tab2
----
-23040
-39150
-9522

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab0 WHERE - col1 + ( - col0 ) NOT BETWEEN ( 83 ) AND NULL
----
1215
1827
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1873
SELECT - - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1875
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE 21 IS NOT NULL
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT ALL 17 * - col1 FROM tab0 AS cor0 WHERE NOT 28 * - - 33 * col2 <= - col2
----
-1377
-17
-357

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

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

query I rowsort
SELECT ALL + 65 + - ( - col1 ) + col1 * col0 AS col2 FROM tab2 AS cor0
----
2462
5070
5157

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

query I rowsort
SELECT - col0 - + col2 + - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
1104
2976
3753

query I rowsort
SELECT DISTINCT + - col0 * - 92 * + - col0 + - col0 FROM tab1 AS cor0
----
-239343
-664785
-761943

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

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

query I rowsort
SELECT DISTINCT - 46 * + 20 + - col2 FROM tab0
----
-1019
-930
-967

query I rowsort
SELECT ALL col2 - + - col2 AS col0 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL MIN( ALL + col0 ) + COUNT( * ) FROM tab1 WHERE - + 61 * + col2 * - col0 NOT IN ( + 91 )
----
54

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL MIN ( ALL + col0 ) + COUNT ( * ) FROM tab1 WHERE - + 61 * + col2 * - col0 NOT IN ( + 91 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL COUNT( * ) + COUNT( * ) + 86 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL COUNT ( * ) + COUNT ( * ) + 86 FROM tab1
----
92

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT - - SUM( ALL CAST( NULL AS SIGNED ) ) - + + SUM( - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - - SUM ( ALL CAST ( NULL AS INTEGER ) ) - + + SUM ( - col2 ) FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN 37 AND ( - 28 )
----

query II rowsort
SELECT ALL col1 * + ( - col0 ) AS col2, col0 - - col2 * - col1 AS col2 FROM tab0
----
-1215
-3792
-1827
-123
-97
-2

query II rowsort
SELECT 27 AS col0, + 80 AS col1 FROM tab0
----
27
80
27
80
27
80

query I rowsort
SELECT + - ( + ( 99 ) ) AS col1 FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - COUNT( 70 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - COUNT ( 70 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL - + 88 * - - COUNT( * ) * + + 24 FROM tab2 AS cor0
----
-6336

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - + 88 * - - COUNT ( * ) * + + 24 FROM tab2 AS cor0
----
-6336

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

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE NOT ( NOT - 84 IS NULL )
----

query I rowsort
SELECT 81 * - col2 AS col0 FROM tab2
----
-1863
-3240
-4698

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1906
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND + col2 + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1906
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND + col2 + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT 30 * - + col0 AS col2 FROM tab0
----
-2610
-2910
-450

query I rowsort
SELECT + col1 + 53 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
104
120
130

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

query I rowsort
SELECT DISTINCT - - 46 + - - ( + col0 ) + + col0 * col0 FROM tab1 WHERE NULL < + 87
----

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

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - COUNT ( * ) + + SUM ( - + col2 ) AS col1 FROM tab1
----
-226

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT DISTINCT - 37 AS col2, MIN( + + 29 ) - - MIN( - 69 ) FROM tab0 AS cor0
----
-37
-40

skipif mysql # not compatible
query II rowsort label-1912
SELECT DISTINCT - 37 AS col2, MIN ( + + 29 ) - - MIN ( - 69 ) FROM tab0 AS cor0
----
-37
-40

query I rowsort
SELECT ALL 38 + - - col0 FROM tab1 AS cor0
----
123
129
89

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

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

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

query II rowsort
SELECT + 76 + + 68 AS col2, - col0 AS col0 FROM tab0
----
144
-15
144
-87
144
-97

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) >= col1 * 11 * - - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * + col2 + - 40 * ( + + ( + + 85 ) ) ) < NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - - ( col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE ( NULL ) = 75
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE - + 49 * - + 44 * col0 <= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 37
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1930
SELECT DISTINCT 30 * + col2 AS col1, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
1410
NULL
2970
NULL
300
NULL

skipif mysql # not compatible
query II rowsort label-1930
SELECT DISTINCT 30 * + col2 AS col1, - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
1410
NULL
2970
NULL
300
NULL

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

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

query I rowsort
SELECT + - 37 AS col0 FROM tab1 cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - 10 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col2 + ( - col2 ) - - 28 + 20 * - col1 )
----

query I rowsort
SELECT ALL + + 99 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT - - ( ( 65 ) ) AS col2 FROM tab2 cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE ( col0 * + ( + ( + 33 ) ) - 64 + + ( - - 88 ) * - col0 ) NOT IN ( 21 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE ( col0 * + ( + ( + 33 ) ) - 64 + + ( - - 88 ) * - col0 ) NOT IN ( 21 * col0 )
----
3

query I rowsort
SELECT + + ( + - col1 ) * + 13 * col2 FROM tab1 AS cor0
----
-17472
-3835
-41548

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT 1 DIV - - col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1938
SELECT 1 / - - col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT ALL - COUNT( * ) AS col2, 77 * + ( + COUNT( DISTINCT + 68 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3
77

skipif mysql # not compatible
query II rowsort label-1939
SELECT ALL - COUNT ( * ) AS col2, 77 * + ( + COUNT ( DISTINCT + 68 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3
77

query I rowsort
SELECT 27 + + col0 AS col1 FROM tab1
----
112
118
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 65, 33 col0 FROM tab1 WHERE - col0 / + col2 IS NOT NULL
----
-65
33
-65
33
-65
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT - 1 * + 24 + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - 1 * + 24 + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1943
SELECT DISTINCT - col0 col2, + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT + - 85 + + col0 FROM tab1 AS cor0
----
-34
0
6

query II rowsort
SELECT + - col1, - ( + 50 ) AS col1 FROM tab1 cor0 WHERE NULL <= 53
----

query I rowsort
SELECT DISTINCT - - ( ( - col0 ) ) AS col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( col2 * col1 / - 98, col2 + + 55 * - 96 )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 32 = + + 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT + - 16 + col0 DIV + 76 AS col2 FROM tab1 AS cor0
----
-15
-15
-16

skipif mysql # not compatible
query I rowsort label-1948
SELECT + - 16 + col0 / + 76 AS col2 FROM tab1 AS cor0
----
-15
-15
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT - ( - col1 ) - + + CAST( col1 AS SIGNED ) * - 2 FROM tab1 AS cor0
----
141
15
42

skipif mysql # not compatible
query I rowsort label-1951
SELECT - ( - col1 ) - + + CAST ( col1 AS INTEGER ) * - 2 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1952
SELECT DISTINCT + COUNT( * ) AS col2, + ( CAST( - - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1952
SELECT DISTINCT + COUNT ( * ) AS col2, + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 - - col2 col2, col1 + + 99 + - col2 FROM tab1 AS cor0
----
118
45
136
78
192
17

query I rowsort
SELECT + 56 + - 74 AS col1 FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT ALL col2 + + 94 FROM tab2
----
117
134
152

query I rowsort
SELECT ALL + 65 AS col2 FROM tab1 WHERE + ( + 75 ) BETWEEN col2 AND 35
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT DISTINCT COUNT( * ) * 64 AS col1, COUNT( * ) FROM tab1
----
192
3

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT COUNT ( * ) * 64 AS col1, COUNT ( * ) FROM tab1
----
192
3

query I rowsort
SELECT DISTINCT - col2 * + 85 - - 93 FROM tab2 AS cor0
----
-1862
-3307
-4837

query I rowsort
SELECT DISTINCT - 59 FROM tab2 AS cor0 WHERE NOT 50 + + col2 NOT BETWEEN - 71 AND NULL
----

query I rowsort
SELECT ALL 12 * + - col2 AS col1 FROM tab1 AS cor0
----
-1152
-708
-816

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

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - col2 / col1 AS col2 FROM tab0 cor0
----
-99
0

query I rowsort
SELECT DISTINCT - 4 * + + col2 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 NOT IN ( - + 51, - col1, - col0 )
----

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

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

query I rowsort
SELECT - 48 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT - COUNT( * ) + 49 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1968
SELECT - COUNT ( * ) + 49 FROM tab2
----
46

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

query I rowsort
SELECT DISTINCT - 9 + - - col1 + 6 FROM tab1
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT COUNT( * ) * - ( 78 ) AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-1971
SELECT COUNT ( * ) * - ( 78 ) AS col1 FROM tab1
----
-234

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 >= + 44
----
87
21
10
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT DISTINCT - + 91 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - + 91 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT ALL - 68 * - CAST( 53 AS SIGNED ) - - col0 FROM tab0
----
3619
3691
3701

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - 68 * - CAST ( 53 AS INTEGER ) - - col0 FROM tab0
----
3619
3691
3701

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

query I rowsort
SELECT 6 + col2 AS col0 FROM tab2
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + 62 * + SUM( DISTINCT + - 51 ) AS col2 FROM tab1 AS cor0
----
-3162

skipif mysql # not compatible
query I rowsort label-1978
SELECT + 62 * + SUM ( DISTINCT + - 51 ) AS col2 FROM tab1 AS cor0
----
-3162

query I rowsort
SELECT ALL - col0 * ( + 14 ) - + 87 FROM tab1 cor0
----
-1277
-1361
-801

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - 63 * 40 / - - col2
----

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

query I rowsort
SELECT - 16 * + ( - - 94 ) + col2 AS col1 FROM tab1 AS cor0
----
-1408
-1436
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT + ( COUNT( * ) ) * - SUM( + 42 ) AS col2 FROM tab0 cor0
----
-378

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT + ( COUNT ( * ) ) * - SUM ( + 42 ) AS col2 FROM tab0 cor0
----
-378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT MAX( DISTINCT + 70 ) * 13 FROM tab0 AS cor0
----
910

skipif mysql # not compatible
query I rowsort label-1985
SELECT MAX ( DISTINCT + 70 ) * 13 FROM tab0 AS cor0
----
910

query I rowsort
SELECT ALL - col2 * + ( 70 ) * + col2 FROM tab2 AS cor0
----
-112000
-235480
-37030

query II rowsort
SELECT + 77 AS col1, - 2 AS col2 FROM tab1
----
77
-2
77
-2
77
-2

query I rowsort
SELECT ALL - 33 * - 91 FROM tab2
----
3003
3003
3003

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col2 * 57 ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT + MIN( ALL + col2 ) * MIN( ALL + 47 ) col0 FROM tab2 AS cor0
----
1081

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1990
SELECT + MIN ( ALL + col2 ) * MIN ( ALL + 47 ) col0 FROM tab2 AS cor0
----
1081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT 92 + + 55 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED ) - col1
----

skipif mysql # not compatible
query I rowsort label-1991
SELECT 92 + + 55 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT COUNT( * ) * + - 31 AS col0 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1992
SELECT COUNT ( * ) * + - 31 AS col0 FROM tab0 cor0
----
-93

query I rowsort
SELECT ALL + 89 * 83 * col0 FROM tab1 AS cor0
----
376737
627895
672217

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT + col0 * 65 DIV + col0 col2 FROM tab1 AS cor0
----
65
65
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT + col0 * 65 / + col0 col2 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT ( NOT - 30 / - CAST( - col0 AS SIGNED ) + + col0 * 70 + - col2 IS NOT NULL )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT ( NOT - 30 / - CAST ( - col0 AS INTEGER ) + + col0 * 70 + - col2 IS NOT NULL )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT COUNT( * ) FROM tab0 WHERE NOT + CAST( col2 AS SIGNED ) NOT BETWEEN NULL AND - + 82
----
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( * ) FROM tab0 WHERE NOT + CAST ( col2 AS INTEGER ) NOT BETWEEN NULL AND - + 82
----
0

query I rowsort
SELECT ALL 22 * + 76 FROM tab1
----
1672
1672
1672

query II rowsort
SELECT ALL - - col0 + 17 AS col1, - col2 FROM tab1 AS cor0
----
102
-59
108
-68
68
-96

query I rowsort
SELECT DISTINCT - col2 + - + ( col1 ) + - - col2 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

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

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

query I rowsort
SELECT DISTINCT - col1 * 87 * - + 50 + col0 AS col2 FROM tab0
----
352365
4447
91437

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2002
SELECT DISTINCT * FROM tab2 WHERE NULL > - + col1 / + ( - CAST( col1 AS SIGNED ) ) + - - 60
----

skipif mysql # not compatible
query III rowsort label-2002
SELECT DISTINCT * FROM tab2 WHERE NULL > - + col1 / + ( - CAST ( col1 AS INTEGER ) ) + - - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col2 + col2 col0, col2 FROM tab2
----
1640
40
3422
58
552
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT + COUNT( + 89 ) AS col1, SUM( - 82 ) AS col1 FROM tab0, tab2 AS cor0
----
9
-738

skipif mysql # not compatible
query II rowsort label-2004
SELECT + COUNT ( + 89 ) AS col1, SUM ( - 82 ) AS col1 FROM tab0, tab2 AS cor0
----
9
-738

query I rowsort
SELECT DISTINCT + - 5 FROM tab0 WHERE NOT - col1 IS NULL
----
-5

query I rowsort
SELECT ALL + 63 FROM tab0, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col2 * - col1 * col0 AS col0 FROM tab2
----
51
-53958
67
-291450
77
-197120

query I rowsort
SELECT DISTINCT col0 * + - 72 * 36 FROM tab1 AS cor0
----
-132192
-220320
-235872

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + MIN( ALL col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT + MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - - SUM( ALL + + 57 ) AS col1 FROM tab0 WHERE - col1 - + 23 = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - - SUM ( ALL + + 57 ) AS col1 FROM tab0 WHERE - col1 - + 23 = col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 39 IS NULL AND col0 <= + 66 * + - col0 - + col2
----

query I rowsort
SELECT - - 40 * - col1 * - col1 AS col0 FROM tab2 AS cor0
----
104040
179560
237160

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

query I rowsort
SELECT - col1 * 9 * - 31 AS col2 FROM tab1 AS cor0
----
13113
1395
3906

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

query I rowsort
SELECT ALL + col0 * + ( 91 ) FROM tab1 AS cor0
----
4641
7735
8281

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

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

query I rowsort
SELECT - 87 * col2 + col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 80
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2020
SELECT + ( + col1 ) DIV + col1 AS col1, + col2 + ( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab1
----
1
118
1
136
1
192

skipif mysql # not compatible
query II rowsort label-2020
SELECT + ( + col1 ) / + col1 AS col1, + col2 + ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab1
----
1
118
1
136
1
192

query II rowsort
SELECT col0 AS col2, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 61 ) * col2 col0 FROM tab2 AS cor0
----
-1403
-2440
-3538

query II rowsort
SELECT DISTINCT - ( - 91 ) * + col1 AS col0, 87 FROM tab2 AS cor0
----
4641
87
6097
87
7007
87

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ( - ( + + 76 ) ) - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-2028
SELECT ( - ( + + 76 ) ) - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

query I rowsort
SELECT ALL col2 * + 86 AS col1 FROM tab1
----
5074
5848
8256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2030
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + - + col2 * - + 85, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2030
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + - + col2 * - + 85, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT DISTINCT col0 + col0 AS col2, - ( + col1 ) + + + col2 FROM tab1 AS cor0
----
102
82
170
54
182
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT - ( + + col0 ) DIV + 67 col2 FROM tab1 cor0
----
-1
0

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

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

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

query I rowsort
SELECT - + 99 + - col2 FROM tab0 AS cor0
----
-109
-146
-198

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

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

query I rowsort
SELECT ALL - col0 * - + col0 + col1 * + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
12558
3315
7650

query I rowsort
SELECT 14 * - - 2 AS col1 FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL CAST( - - col0 AS SIGNED ) + 64 FROM tab1
----
115
149
155

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL CAST ( - - col0 AS INTEGER ) + 64 FROM tab1
----
115
149
155

query I rowsort
SELECT DISTINCT - 66 * - 45 AS col1 FROM tab2
----
2970

query I rowsort
SELECT + - AVG ( 26 ) FROM tab0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + 89 - + + col0 FROM tab2
----
4048
5632
6600

query I rowsort
SELECT ( - col1 ) * 29 FROM tab0
----
-2349
-29
-609

query I rowsort
SELECT DISTINCT 77 * + col1 AS col1 FROM tab0
----
1617
6237
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2044
SELECT ALL - col0 * - col0, - 20 DIV ( + 54 ) AS col0 FROM tab0
----
225
0
7569
0
9409
0

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL - col0 * - col0, - 20 / ( + 54 ) AS col0 FROM tab0
----
225
0
7569
0
9409
0

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 + + 25 FROM tab0 AS cor0
----
-2184
-75
-9776

query I rowsort
SELECT ALL - - col1 * col1 + + col1 + - 13 FROM tab0 cor0
----
-11
449
6629

query I rowsort
SELECT DISTINCT + + col0 + + ( col1 ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + + ( col0 ) + - - 94 AS col1 FROM tab0 AS cor0
----
109
181
191

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT ALL + 10 DIV ( + 38 ) * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + 10 / ( + 38 ) * - col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - 98 AS col2, - 21 + + col1 FROM tab1
----
-98
-16
-98
-7
-98
26

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

query I rowsort
SELECT + + col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT - col0 + + ( + 16 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71
-81
1

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

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

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

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

query I rowsort
SELECT - + 40 * + 23 AS col1 FROM tab0 cor0
----
-920
-920
-920

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

query I rowsort
SELECT - 66 * + col1 AS col1 FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2062
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) BETWEEN - - 7 AND 45
----

skipif mysql # not compatible
query III rowsort label-2062
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) BETWEEN - - 7 AND 45
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2063
SELECT col2 DIV + 3 AS col0, + 62 DIV col0 FROM tab0
----
15
4
3
0
33
0

skipif mysql # not compatible
query II rowsort label-2063
SELECT col2 / + 3 AS col0, + 62 / col0 FROM tab0
----
15
4
3
0
33
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT - - 64 * COUNT( * ) + MIN( + - 58 ) AS col1 FROM tab0 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - - 64 * COUNT ( * ) + MIN ( + - 58 ) AS col1 FROM tab0 AS cor0
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2066
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IN ( + 42, col0, + CAST( NULL AS SIGNED ), 22, - + 69 )
----

skipif mysql # not compatible
query III rowsort label-2066
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IN ( + 42, col0, + CAST ( NULL AS INTEGER ), 22, - + 69 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT - 34 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE ( col0 BETWEEN 4 * + col1 * + ( + col0 ) * - - 80 AND - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2068
SELECT - 34 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE ( col0 BETWEEN 4 * + col1 * + ( + col0 ) * - - 80 AND - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + 36 col0 FROM tab2 AS cor0
----
-100
-111
-82

query I rowsort
SELECT col0 - - - 14 AS col1 FROM tab0 AS cor0
----
1
73
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT - 30 DIV col1 + col0 + - - 26 FROM tab2 AS cor0
----
101
72
90

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 30 / col1 + col0 + - - 26 FROM tab2 AS cor0
----
101
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 + + col2 col2 FROM tab2
----
17
34
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2073
SELECT CAST( NULL AS SIGNED ) + MIN( ( + col0 ) ) - 51 col1 FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE + 58 * - col2 + - col0 + + col1 * - - col1 * + col0 * 93 <> + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT DISTINCT 72 AS col1, - col2 * + 90 * - col2 + - + 85 DIV + - col2 AS col1 FROM tab0
----
72
198811
72
882090
72
9008

skipif mysql # not compatible
query II rowsort label-2075
SELECT DISTINCT 72 AS col1, - col2 * + 90 * - col2 + - + 85 / + - col2 AS col1 FROM tab0
----
72
198811
72
882090
72
9008

query I rowsort
SELECT col1 * - col2 + - 40 FROM tab0
----
-139
-250
-3847

query I rowsort
SELECT - col2 FROM tab0 WHERE 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT - 10 - COUNT( * ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - 10 - COUNT ( * ) AS col0 FROM tab2
----
-13

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

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

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

skipif mysql # not compatible
query II rowsort label-2080
SELECT ALL + + COUNT ( * ) AS col2, - 62 AS col0 FROM tab1 AS cor0
----
3
-62

query I rowsort
SELECT - col1 * + 60 FROM tab0 cor0
----
-1260
-4860
-60

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - 37, + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT + + SUM( DISTINCT - col1 ) * - 18 AS col2 FROM tab1 AS cor0
----
1188

skipif mysql # not compatible
query I rowsort label-2086
SELECT + + SUM ( DISTINCT - col1 ) * - 18 AS col2 FROM tab1 AS cor0
----
1188

query I rowsort
SELECT DISTINCT + - ( + - col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 62 ) = 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * 53 AS col1 FROM tab0 AS cor0
----
1113
4293
53

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

query II rowsort
SELECT DISTINCT + col2 * + + 61 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
2867
-81
6039
-1
610
-21

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( - col0 ) ) > ( - + 40 ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL 49 * MAX( ALL + - 21 ) + - 21 AS col1 FROM tab0 AS cor0
----
-1050

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL 49 * MAX ( ALL + - 21 ) + - 21 AS col1 FROM tab0 AS cor0
----
-1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT COUNT( * ) DIV - COUNT( + col1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2095
SELECT COUNT ( * ) / - COUNT ( + col1 ) AS col1 FROM tab1
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2097
SELECT DISTINCT COUNT( * ), ( + + COUNT( * ) ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2097
SELECT DISTINCT COUNT ( * ), ( + + COUNT ( * ) ) AS col0 FROM tab1
----
3
3

query II rowsort
SELECT - + col1 AS col0, ( + 75 ) FROM tab1 AS cor0
----
-14
75
-47
75
-5
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT - MIN( 50 ) AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2099
SELECT - MIN ( 50 ) AS col1 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL + col2 + + 55 AS col0 FROM tab1 AS cor0
----
114
123
151

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

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

query I rowsort
SELECT ALL col2 / + col2 * + 42 * - 55 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 64 + - col2 FROM tab2 AS cor0
----
24
41
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + - ( - - col0 ) col0 FROM tab0 AS cor0
----
-20
-30
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL 78 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col0 + - - ( + + 54 ) + - col1 * col0, + 2 )
----
78

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL 78 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col0 + - - ( + + 54 ) + - col1 * col0, + 2 )
----
78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 - + col2 col1, 55 + - col0 FROM tab0 AS cor0
----
-105
-32
-142
40
-194
-42

query I rowsort
SELECT DISTINCT - col2 * - 27 * + 40 + + + 37 - - col0 AS col0 FROM tab2 cor0
----
24923
43301
62752

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

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

query III rowsort
SELECT col0, - ( + - col1 ) AS col1, - col0 FROM tab0
----
9 values hashing to 56dcbefb2094747bbd5c2156e353c35d

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( + + 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - + col2 + - - col0 + 83 + col1 * - col2 FROM tab1
----
-1320
-191
-3137

query I rowsort
SELECT ALL 11 - - col0 AS col0 FROM tab1
----
102
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL - 44 - COUNT( * ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - 44 - COUNT ( * ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT 70 - + - 45 + + col0 FROM tab0
----
130
202
212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2116
SELECT MAX( ALL - - CAST( NULL AS DECIMAL ) ) * + 61 - + 78 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT MAX ( ALL - - CAST ( NULL AS REAL ) ) * + 61 - + 78 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - MAX( DISTINCT - 21 ) FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-2117
SELECT - MAX ( DISTINCT - 21 ) FROM tab0 cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT - col2 DIV + 7 FROM tab0
----
-1
-14
-6

skipif mysql # not compatible
query I rowsort label-2118
SELECT - col2 / + 7 FROM tab0
----
-1
-14
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT ALL - COUNT( * ) col0, MIN( + + col0 ) FROM tab0 AS cor0
----
-3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2119
SELECT ALL - COUNT ( * ) col0, MIN ( + + col0 ) FROM tab0 AS cor0
----
-3
15

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

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

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

query I rowsort
SELECT col2 - - + 2 AS col0 FROM tab0 cor0 WHERE NOT ( NOT NULL IS NULL )
----
101
12
49

query I rowsort
SELECT ALL - - 54 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2125
SELECT - col0 DIV - - 31, col1 AS col1 FROM tab0
----
-2
21
-3
1
0
81

skipif mysql # not compatible
query II rowsort label-2125
SELECT - col0 / - - 31, col1 AS col1 FROM tab0
----
-2
21
-3
1
0
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - + 13 + + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL - 11 * + col0 * + + col1 FROM tab2
----
-25806
-54208
-55275

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT + col1 + - - col2 DIV + ( - - col1 ) AS col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-2129
SELECT + col1 + - - col2 / + ( - - col1 ) AS col1 FROM tab0
----
100
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT MIN( ALL - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2130
SELECT MIN ( ALL - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT ( col2 ) + 18 DIV + - col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT ( col2 ) + 18 / + - col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + - COUNT( * ) + ( 10 ) AS col1 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2132
SELECT + - COUNT ( * ) + ( 10 ) AS col1 FROM tab0 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT - + COUNT( DISTINCT 88 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2133
SELECT - + COUNT ( DISTINCT 88 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL = - 60
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL = - 60
----
0

query I rowsort
SELECT + 60 * - col0 AS col2 FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT + ( + col0 ) - + 9 FROM tab0 cor0
----
6
78
88

query I rowsort
SELECT - col0 - - - 66 AS col0 FROM tab1 AS cor0
----
-117
-151
-157

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

query I rowsort
SELECT - 13 - 76 AS col2 FROM tab0 AS cor0
----
-89
-89
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT COUNT( * ) + + 2 * + 12 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2141
SELECT COUNT ( * ) + + 2 * + 12 FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - 10 + 96 AS col2 FROM tab1
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT DISTINCT - col2 * + 57 * CAST( NULL AS SIGNED ) - - 45 / - + 10 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - col2 * + 57 * CAST ( NULL AS INTEGER ) - - 45 / - + 10 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 68 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2145
SELECT DISTINCT COUNT( * ) DIV ( - 13 ) + + + COUNT( * ) AS col2, COUNT( * ) * + 78 FROM tab2
----
3
234

skipif mysql # not compatible
query II rowsort label-2145
SELECT DISTINCT COUNT ( * ) / ( - 13 ) + + + COUNT ( * ) AS col2, COUNT ( * ) * + 78 FROM tab2
----
3
234

query I rowsort
SELECT 57 FROM tab0 WHERE NOT - - col2 * - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT + ( - CAST( - - col1 AS SIGNED ) ) * - col1 + - - col0 FROM tab1
----
110
2300
247

skipif mysql # not compatible
query I rowsort label-2147
SELECT + ( - CAST ( - - col1 AS INTEGER ) ) * - col1 + - - col0 FROM tab1
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - 82 * COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 82 * COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
738

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT - - 55 DIV - + 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif mysql # not compatible
query I rowsort label-2150
SELECT - - 55 / - + 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2152
SELECT ALL - 72 DIV + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - 72 / + COUNT ( * ) FROM tab0 AS cor0
----
-24

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

query I rowsort
SELECT + col0 + 10 + - 70 * - 90 * - 76 + - col1 FROM tab1 AS cor0 WHERE NOT 37 + + col1 IS NULL
----
-478710
-478746
-478753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 + + col1 col2 FROM tab0
----
16
36
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2156
SELECT - MAX( 7 ) DIV + - 54 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT - MAX ( 7 ) / + - 54 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT 3 AS col0, + COUNT( * ) * 13 FROM tab2
----
3
39

skipif mysql # not compatible
query II rowsort label-2157
SELECT 3 AS col0, + COUNT ( * ) * 13 FROM tab2
----
3
39

query I rowsort
SELECT DISTINCT 0 * ( - 16 ) * - - col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2159
SELECT - 18 AS col0, - col0 DIV - - col0 AS col1 FROM tab1 AS cor0
----
-18
-1
-18
-1
-18
-1

skipif mysql # not compatible
query II rowsort label-2159
SELECT - 18 AS col0, - col0 / - - col0 AS col1 FROM tab1 AS cor0
----
-18
-1
-18
-1
-18
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT - col0 + 98 + ( 11 ) DIV + ( + 76 ) AS col1 FROM tab0 AS cor0
----
1
11
83

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - col0 + 98 + ( 11 ) / + ( + 76 ) AS col1 FROM tab0 AS cor0
----
1
11
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT + 54 + - 63 DIV + 74 AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + 54 + - 63 / + 74 AS col1 FROM tab0
----
54

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( ( col2 ) ) + + 3 + - 75 * + 14 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
-1007
-1024
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT + 81 DIV 83 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 81 / 83 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ALL + 45 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + 45 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 / col0 + + 97 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 33 ) FROM tab2
----
-33

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

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

query I rowsort
SELECT + + AVG ( - + 66 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2174
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - 67 * + col1 * + CAST( - col2 AS SIGNED ), col1, - col0 * 36 + - col0, col2 )
----

skipif mysql # not compatible
query III rowsort label-2174
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - 67 * + col1 * + CAST ( - col2 AS INTEGER ), col1, - col0 * 36 + - col0, col2 )
----

query I rowsort
SELECT + + ( + + ( - col0 ) ) * col1 * - col1 AS col0 FROM tab0 AS cor0
----
38367
97
98415

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2178
SELECT DISTINCT + + 3, - 16 * col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 * CAST( + 40 AS SIGNED ) + + 52, - col2, + 90 )
----

skipif mysql # not compatible
query II rowsort label-2178
SELECT DISTINCT + + 3, - 16 * col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 * CAST ( + 40 AS INTEGER ) + + 52, - col2, + 90 )
----

query I rowsort
SELECT DISTINCT col0 + - - 96 AS col2 FROM tab0 AS cor0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL - COUNT( * ) + - COUNT( + 27 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - COUNT ( * ) + - COUNT ( + 27 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL ( + col1 ) * + + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT ALL - col1 * col0 DIV + - col2 FROM tab1
----
62
7
7

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - col1 * col0 / + - col2 FROM tab1
----
62
7
7

query I rowsort
SELECT DISTINCT - 16 * - col1 FROM tab1
----
224
752
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 81 + col2 / - + col2 NOT BETWEEN col1 AND col0 + - 33
----

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 81 + col2 / - + col2 NOT BETWEEN col1 AND col0 + - 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + + 26 col0 FROM tab0 AS cor0
----
107
27
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 + + 6 col2 FROM tab2 AS cor0
----
74

query I rowsort
SELECT - 30 - - col0 * 72 FROM tab0
----
1050
6234
6954

query I rowsort
SELECT + col0 - + col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL + 46 + + - col1 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
-35
-15
25
-87
45
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, 68 + + + col1 FROM tab1 AS cor0
----
51
82
85
73
91
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT col1 / - + col1 + - - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT col1 / - + col1 + - - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - ( - COUNT( * ) ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2193
SELECT - ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + MAX( col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL col2 * + 82 * + 50 * + col0 AS col1 FROM tab2
----
10496000
17835000
4337800

query II rowsort
SELECT col1 * + - col0 AS col0, col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT ALL + 24 FROM tab1 WHERE NOT ( col1 * - + col0 NOT BETWEEN col2 AND - 62 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - ( + - MIN( + 36 ) ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2200
SELECT - ( + - MIN ( + 36 ) ) AS col0 FROM tab2
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-2201
SELECT DISTINCT - ( + 64 ) col0, 12 DIV - 93 FROM tab2 AS cor0
----
-64
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2201
SELECT DISTINCT - ( + 64 ) col0, 12 / - 93 FROM tab2 AS cor0
----
-64
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND col0 * + col0
----

query I rowsort
SELECT ALL 9 * col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT col1 + - - CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT col1 + - - CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + 17 * - 73 + - 51 - + COUNT( - 82 ) col2 FROM tab0 AS cor0
----
-1295

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2205
SELECT + 17 * - 73 + - 51 - + COUNT ( - 82 ) col2 FROM tab0 AS cor0
----
-1295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - ( + - col0 ) + - - col0 col0 FROM tab1 AS cor0
----
1446
3378
465

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL <= + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 82 + - col1 col0 FROM tab1 AS cor0
----
103
136
164

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + 37 / 76 >= - 11 * - + col2
----

query I rowsort
SELECT DISTINCT + 45 + + col1 + + 74 AS col1 FROM tab0 AS cor0
----
120
140
200

query I rowsort
SELECT DISTINCT - col2 * 10 AS col2 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT DISTINCT 6 * - COUNT( - 38 ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT 6 * - COUNT ( - 38 ) AS col0 FROM tab1
----
-18

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL OR NULL <= + ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 94 ) * - - col2 FROM tab2
----
-2162
-3760
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL + 55 + 65 * + - MAX( DISTINCT + - col1 ) - COUNT( * ) AS col2 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + 55 + 65 * + - MAX ( DISTINCT + - col1 ) - COUNT ( * ) AS col2 FROM tab0
----
117

query I rowsort
SELECT ALL + - col0 + - col1 + + 2 + + + 37 FROM tab0 AS cor0
----
-57
-59
-69

query I rowsort
SELECT - - col1 + 87 FROM tab1 cor0
----
101
134
92

query I rowsort
SELECT ( + col0 ) + - col2 * - - 80 FROM tab0
----
-3745
-713
-7823

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - - 99 + - + COUNT( * ) * + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - - 99 + - + COUNT ( * ) * + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT - COUNT( * ) * + COUNT( * ) * + 95 + - - 87 + + COUNT( * ) + CAST( + - 15 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7614

skipif mysql # not compatible
query I rowsort label-2221
SELECT - COUNT ( * ) * + COUNT ( * ) * + 95 + - - 87 + + COUNT ( * ) + CAST ( + - 15 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7614

query I rowsort
SELECT 30 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL MIN( - - 46 ) AS col2 FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL MIN ( - - 46 ) AS col2 FROM tab0 cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 31 ) BETWEEN + ( - 90 ) AND - - col1 * + col0 + + col0 + + + ( + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2226
SELECT - - COUNT( * ) DIV - 97 AS col1, + 32 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col0 + - + 85
----
0
32

skipif mysql # not compatible
query II rowsort label-2226
SELECT - - COUNT ( * ) / - 97 AS col1, + 32 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col0 + - + 85
----
0
32

query II rowsort
SELECT DISTINCT - 34 AS col0, col1 FROM tab1 AS cor0
----
-34
14
-34
47
-34
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT + COUNT( * ) DIV - 10 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT + COUNT ( * ) / - 10 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + ( 46 ) * + + 21 AS col0 FROM tab2 AS cor0
----
966
966
966

query II rowsort
SELECT - - col1 AS col2, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + col2 * - col0 + + 9 * + 18 FROM tab1 AS cor0
----
-4734
-4853
-6026

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT MAX( DISTINCT - ( + col2 ) ) * - COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2233
SELECT MAX ( DISTINCT - ( + col2 ) ) * - COUNT ( * ) AS col0 FROM tab0
----
30

query I rowsort
SELECT ALL 98 * + + col0 FROM tab1
----
4998
8330
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL + ( COUNT( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + ( COUNT ( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 79 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 15 col1 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT ALL - COUNT( * ), - 85 AS col0 FROM tab0 AS cor0
----
-3
-85

skipif mysql # not compatible
query II rowsort label-2238
SELECT ALL - COUNT ( * ), - 85 AS col0 FROM tab0 AS cor0
----
-3
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - MAX( DISTINCT - 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2239
SELECT - MAX ( DISTINCT - 56 ) FROM tab1 AS cor0
----
56

query II rowsort
SELECT + + col0 AS col0, + 47 + - + col1 FROM tab2 AS cor0
----
46
-4
64
-30
75
-20

query I rowsort
SELECT DISTINCT - 56 * + col0 AS col1 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT ALL + + 53 DIV + + MIN( + col1 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + + 53 / + + MIN ( + col1 ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT + - 97 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
4924
6441
7429

query II rowsort
SELECT ALL - - 82 AS col1, + 47 FROM tab0 AS cor0
----
82
47
82
47
82
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + ( - col1 ) + 52 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT - MIN( - col1 ) AS col0, + 49 AS col0 FROM tab1 AS cor0
----
47
49

skipif mysql # not compatible
query II rowsort label-2246
SELECT - MIN ( - col1 ) AS col0, + 49 AS col0 FROM tab1 AS cor0
----
47
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT COUNT( * ) + + - 59 + - 61 + + 91 AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT COUNT ( * ) + + - 59 + - 61 + + 91 AS col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT + 77 + SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT + 77 + SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL CAST( - col1 AS SIGNED ) + - - 22 * + col1 col1 FROM tab1
----
105
294
987

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2251
SELECT ALL CAST ( - col1 AS INTEGER ) + - - 22 * + col1 col1 FROM tab1
----
105
294
987

query I rowsort
SELECT ALL - 72 + - + col0 * + + col2 FROM tab0
----
-777
-942
-9675

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT + ( - COUNT( * ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2253
SELECT DISTINCT + ( - COUNT ( * ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT - - col0 * + + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 WHERE ( NOT - col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - - col0 * + + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 WHERE ( NOT - col1 IS NULL )
----
NULL

query II rowsort
SELECT col1 * - - col0 + + col1 AS col2, col1 FROM tab1
----
430
5
4324
47
728
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT DISTINCT COUNT( * ) - + 42 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT COUNT ( * ) - + 42 FROM tab1
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-2257
SELECT ALL col0 AS col0, + 81 DIV col2 AS col1 FROM tab0
----
15
1
87
8
97
0

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL col0 AS col0, + 81 / col2 AS col1 FROM tab0
----
15
1
87
8
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 66 FROM tab2
----
46
66
64
66
75
66

query III rowsort
SELECT * FROM tab0 WHERE ( + 5 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2260
SELECT ALL - CAST( - + col0 AS SIGNED ) + + + col1 + + CAST( NULL AS SIGNED ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL - CAST ( - + col0 AS INTEGER ) + + + col1 + + CAST ( NULL AS INTEGER ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2261
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 92 + - col1 FROM tab0 AS cor0
----
11
71
91

query I rowsort
SELECT ALL - - ( + 59 ) + col2 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT DISTINCT 46 AS col1 FROM tab1 WHERE - ( CAST( col2 AS SIGNED ) ) + + col0 * col0 = ( col0 )
----

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT 46 AS col1 FROM tab1 WHERE - ( CAST ( col2 AS INTEGER ) ) + + col0 * col0 = ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 94 ) BETWEEN col0 + - col1 AND 6
----

query III rowsort
SELECT * FROM tab1 WHERE 85 * - 54 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + col2 / 82 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + col2 / 82 ) <= ( NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2268
SELECT ALL - col0 * 36 + 17 FROM tab2 WHERE NULL NOT BETWEEN + 56 / col0 AND col1 * CAST( + col2 AS DECIMAL ) + 60
----

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - col0 * 36 + 17 FROM tab2 WHERE NULL NOT BETWEEN + 56 / col0 AND col1 * CAST ( + col2 AS REAL ) + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT - 71 + COUNT( * ) AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - 71 + COUNT ( * ) AS col1 FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT COUNT( ALL - 9 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2270
SELECT COUNT ( ALL - 9 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT - COUNT( * ) DIV - 90 FROM tab1 WHERE NULL NOT IN ( + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - COUNT ( * ) / - 90 FROM tab1 WHERE NULL NOT IN ( + 67 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT - ( 6 ) + + ( - col2 + + 9 DIV col1 ) FROM tab0
----
-16
-53
-96

skipif mysql # not compatible
query I rowsort label-2272
SELECT - ( 6 ) + + ( - col2 + + 9 / col1 ) FROM tab0
----
-16
-53
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab0 WHERE NOT ( - col0 ) BETWEEN NULL AND col0 * + col2 - + ( - 17 + + col2 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE 27 NOT IN ( col0 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <= + col0
----

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 33 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT COUNT( 22 ) + - 70 AS col0 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-2277
SELECT COUNT ( 22 ) + - 70 AS col0 FROM tab0
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2278
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) DIV + 18 NOT IN ( - col1 DIV 92 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-2278
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) / + 18 NOT IN ( - col1 / 92 )
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 - 5 * col2 col0 FROM tab0
----
-223
-38
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT COUNT( * ) + 21 AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT COUNT ( * ) + 21 AS col2 FROM tab2
----
24

query I rowsort
SELECT DISTINCT + ( + 2 ) + + col0 FROM tab1 WHERE NULL < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT + 5 * COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + 5 * COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col1 * 88 AS col1 FROM tab1 AS cor0
----
-1232
-4136
-440

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 92 ) < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 * 8 - 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT - col2 DIV + col1 + CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - col2 / + col1 + CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab0
----
-2
15
87

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 CROSS JOIN tab1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT + ( + col0 ) * + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT + ( + col0 ) * + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + MAX( col2 ) + 13 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2291
SELECT + MAX ( col2 ) + 13 FROM tab2 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - ( - 90 ) + - col1 * + 30 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2294
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2294
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL - 45 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - 45 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT DISTINCT 23 + col1 AS col1 FROM tab0 AS cor0
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT + + 50 * + COUNT( * ) + - MIN( ALL + col1 ) col2 FROM tab2 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2297
SELECT DISTINCT + + 50 * + COUNT ( * ) + - MIN ( ALL + col1 ) col2 FROM tab2 cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 7 )
----

query I rowsort
SELECT ALL col2 - + col1 * - col0 AS col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col0 * 62 NOT BETWEEN col2 AND NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + col0 * 34
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 52 >= 48
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2303
SELECT CAST( NULL AS DECIMAL ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2303
SELECT CAST ( NULL AS REAL ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 - + 37 * col1 AS col0 FROM tab2
----
-1864
-2421
-2809

query I rowsort
SELECT - 48 FROM tab1 WHERE - col0 <= - col2
----
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT ALL - 10 - - + col2 DIV + 18 FROM tab2
----
-7
-8
-9

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - 10 - - + col2 / + 18 FROM tab2
----
-7
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - COUNT( * ) + + - 76 AS col2 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2308
SELECT - COUNT ( * ) + + - 76 AS col2 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT + col2 * - 19 FROM tab0 AS cor0
----
-1881
-190
-893

query I rowsort
SELECT ALL + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query II rowsort
SELECT 94, + 62 + - 66 AS col1 FROM tab0 AS cor0
----
94
-4
94
-4
94
-4

query I rowsort
SELECT ALL - col2 * - ( - col2 * col1 ) AS col0 FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL OR 91 / - 30 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 * - col1 * + + col1 col0 FROM tab1 cor0
----
-6664
-75106
-850

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * - + 49 + 46 * + col2 col0 FROM tab2 AS cor0
----
1105
1933
323

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT - COUNT( * ) AS col2, COUNT( * ) col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2316
SELECT - COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 80
----

query I rowsort
SELECT + - ( - 43 ) FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL 73 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT - 67 DIV + + col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT - 67 / + + col2 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - 75 * - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <= - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - 75 * - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <= - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT - MAX( DISTINCT + 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-2322
SELECT - MAX ( DISTINCT + 92 ) FROM tab1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT ALL CAST( + 69 AS SIGNED ) FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL CAST ( + 69 AS INTEGER ) FROM tab2
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 68 NOT IN ( + - 38 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 15 <> ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 81 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT COUNT( - col2 ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT COUNT ( - col2 ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + + 2 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2328
SELECT + + 2 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5

query I rowsort
SELECT + 36 + + + 47 + + ( - col0 ) * + col2 FROM tab2 AS cor0
----
-2477
-4267
-975

query I rowsort
SELECT ALL 35 * - col2 AS col2 FROM tab2 AS cor0 WHERE + col1 + ( + ( col1 ) ) BETWEEN + col0 AND 26
----

query III rowsort
SELECT * FROM tab2 WHERE + 59 * + col0 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT DISTINCT + 96 * + CAST( - 34 AS SIGNED ) * - 25 + + 86 AS col2 FROM tab0 AS cor0
----
81686

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + 96 * + CAST ( - 34 AS INTEGER ) * - 25 + + 86 AS col2 FROM tab0 AS cor0
----
81686

query I rowsort
SELECT DISTINCT + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL - + COUNT( * ) * + COUNT( * ) * + MIN( 18 ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) * + MIN ( 18 ) FROM tab0 AS cor0
----
-162

query I rowsort
SELECT DISTINCT - col1 + - - col2 + col0 - col1 + + col0 * col0 FROM tab2 AS cor0
----
2083
4046
5624

query I rowsort
SELECT + 82 - 6 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2337
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) DIV col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) / col2 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT ALL - - ( - col1 ) + - - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - - ( - col1 ) + - - col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-19
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2339
SELECT ( - col1 ) + - CAST( NULL AS DECIMAL ) + + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ( - col1 ) + - CAST ( NULL AS REAL ) + + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 38 - - col0 FROM tab2
----
102
113
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - - 29 + + 50 + col1 AS col2 FROM tab2
----
1435
1983
2292

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - - 29 + + 50 + col1 AS col2 FROM tab2
----
1435
1983
2292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( 16 NOT BETWEEN - CAST( - - 21 AS SIGNED ) / + col2 AND col1 )
----
-21
-81

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( 16 NOT BETWEEN - CAST ( - - 21 AS INTEGER ) / + col2 AND col1 )
----
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL ) < CAST( NULL AS SIGNED ) + + col0 - - col0
----

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL ) < CAST ( NULL AS INTEGER ) + + col0 - - col0
----

query III rowsort
SELECT * FROM tab0 WHERE - 29 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 / + 24 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT DISTINCT - COUNT( * ) - + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT - COUNT ( * ) - + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT - 75 DIV - + 34 - + col0 - + - col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 75 / - + 34 - + col0 - + - col0 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 col0, 19 FROM tab2 cor0
----
-52
19
-52
19
-52
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL - MAX( - CAST( - 49 AS SIGNED ) ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - MAX ( - CAST ( - 49 AS INTEGER ) ) FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT + + ( - CAST( + COUNT( * ) AS SIGNED ) ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2350
SELECT + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + - - 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT MIN( - ( ( - - col2 ) ) ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT MIN ( - ( ( - - col2 ) ) ) AS col0 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2353
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL SUM( - 87 ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL SUM ( - 87 ) FROM tab1 AS cor0
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT ALL SUM( + + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT ALL col0 * + - col2 / + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT - 5 + - 53 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL col0 * + - col2 / + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT - 5 + - 53 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 38 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - col1 ) + - col1 FROM tab1 WHERE NOT + ( - col1 ) = + - col2
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - + MIN( DISTINCT ( - col2 ) ) * MIN( DISTINCT col1 + 61 * - col0 ) + + 75 * + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col0 - ( - col1 ) * + col1 * + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT - + MIN ( DISTINCT ( - col2 ) ) * MIN ( DISTINCT col1 + 61 * - col0 ) + + 75 * + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col0 - ( - col1 ) * + col1 * + col1 <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 col1, + ( col2 ) FROM tab2
----
45
23
45
40
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT + COUNT( ALL - - 61 ) AS col1 FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT + COUNT ( ALL - - 61 ) AS col1 FROM tab0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2363
SELECT - col2 * - - 89 / - col1 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT - col2 * - - 89 / - col1 * - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT col2 DIV + + 21 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2364
SELECT col2 / + + 21 AS col0 FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + 49 * - col2 * + col1 * - col0 * + 16 col1 FROM tab2 cor0
----
154542144
228496875
42303118

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT ALL + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) - + + COUNT( * ) + - + 54 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) - + + COUNT ( * ) + - + 54 AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT col1 + - ( - 49 ) AS col0 FROM tab0
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT COUNT( * ) + + + 82 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-2369
SELECT COUNT ( * ) + + + 82 FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT - COUNT( * ) + - - 76 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - COUNT ( * ) + - - 76 FROM tab1
----
73

query I rowsort
SELECT + ( 85 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + ( + 54 ) FROM tab1 WHERE ( - col2 / + - col1 + + col0 ) IS NOT NULL
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 57 col1, - 27 * - - 61 + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
57
-1550
57
-1560
57
-1632

onlyif mysql # DIV for integer division: 
query II rowsort label-2374
SELECT ALL - col2 + + col2 - + col1 DIV + col2, col2 AS col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-2374
SELECT ALL - col2 + + col2 - + col1 / + col2, col2 AS col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

query I rowsort
SELECT + ( + 85 ) FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 cor0 WHERE + 90 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT - 21 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT - 21 / + + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 38 BETWEEN ( + col0 ) AND + 17 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL + ( + + COUNT( * ) ) + - 58 AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL + ( + + COUNT ( * ) ) + - 58 AS col2 FROM tab0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT - col0 * 52 DIV + - col2 - + + 79 AS col2 FROM tab1
----
-10
-5
-52

skipif mysql # not compatible
query I rowsort label-2380
SELECT - col0 * 52 / + - col2 - + + 79 AS col2 FROM tab1
----
-10
-5
-52

query I rowsort
SELECT + 22 - + col0 FROM tab1
----
-29
-63
-69

query I rowsort
SELECT + col2 - - - col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT COUNT( DISTINCT + + 71 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2383
SELECT COUNT ( DISTINCT + + 71 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT + col1 * - 75 * 38 * - 55 FROM tab2 AS cor0
----
10502250
12069750
7994250

onlyif mysql # aggregate syntax: 
query II rowsort label-2385
SELECT DISTINCT - MAX( col2 ) AS col2, 30 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-58
30

skipif mysql # not compatible
query II rowsort label-2385
SELECT DISTINCT - MAX ( col2 ) AS col2, 30 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-58
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2386
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 77 + col1 + - col0 BETWEEN - + col1 AND - CAST( + col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2386
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 77 + col1 + - col0 BETWEEN - + col1 AND - CAST ( + col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * col1 + col1 + col1 AS col0 FROM tab0 cor0
----
-168
-3645
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( col2 ), 98, + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2389
SELECT + 95 AS col1, + 1 * + col2 DIV + - ( 55 ) FROM tab0 AS cor0
----
95
-1
95
0
95
0

skipif mysql # not compatible
query II rowsort label-2389
SELECT + 95 AS col1, + 1 * + col2 / + - ( 55 ) FROM tab0 AS cor0
----
95
-1
95
0
95
0

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT + COUNT( * ) AS col1, 49 + + 87 * - - 14 AS col0 FROM tab1 AS cor0
----
3
1267

skipif mysql # not compatible
query II rowsort label-2391
SELECT + COUNT ( * ) AS col1, 49 + + 87 * - - 14 AS col0 FROM tab1 AS cor0
----
3
1267

query II rowsort
SELECT - col1, - col2 AS col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2393
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 + + 3 AS col0, col1 * + col0 + + col2 col2 FROM tab1 AS cor0
----
30
4345
30
484
30
810

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT - col1 DIV + 39 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT - col1 / + 39 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 30 ) NOT IN ( 77 )
----

query I rowsort
SELECT - 25 * + col2 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT - col1 + + + 56 FROM tab2 AS cor0
----
-11
-21
5

query I rowsort
SELECT ALL - col2 + - col0 FROM tab2 cor0 WHERE col2 NOT IN ( - 39 * - + 40 * + col1 * col1 * col0 + 66, col0 * + col0 * - col0 * col1 )
----
-104
-133
-69

query I rowsort
SELECT + 41 FROM tab0 AS cor0 WHERE NULL < ( - col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 62 <= - - 24
----

query II rowsort
SELECT DISTINCT - col2, - ( col1 ) + - 93 AS col0 FROM tab2 AS cor0
----
-23
-144
-40
-170
-58
-160

query I rowsort
SELECT - 59 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT DISTINCT - + COUNT( * ), 50 AS col2 FROM tab2 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-2404
SELECT DISTINCT - + COUNT ( * ), 50 AS col2 FROM tab2 AS cor0
----
-3
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT + + 2 - + - col1 + - col1 DIV - 55 AS col1 FROM tab0 AS cor0
----
23
3
84

skipif mysql # not compatible
query I rowsort label-2405
SELECT + + 2 - + - col1 + - col1 / - 55 AS col1 FROM tab0 AS cor0
----
23
3
84

query I rowsort
SELECT ALL 37 + - 87 + - col0 FROM tab1 AS cor0
----
-101
-135
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT - 83 + + + COUNT( * ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT - 83 + + + COUNT ( * ) FROM tab0 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT + CAST( + col2 AS SIGNED ) + + col2 - + - ( + col0 ) AS col1 FROM tab2 cor0
----
144
191
92

skipif mysql # not compatible
query I rowsort label-2408
SELECT + CAST ( + col2 AS INTEGER ) + + col2 - + - ( + col0 ) AS col1 FROM tab2 cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL - 39 + - COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - 39 + - COUNT ( * ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL 97 * + + 35 FROM tab1
----
3395
3395
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT MIN( + 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT MIN ( + 95 ) FROM tab2
----
95

query II rowsort
SELECT - - col1 + + - 13, - col2 * 14 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL 13 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL 13 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL + MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT + - ( col1 ) DIV - - col2 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT DISTINCT + - ( col1 ) / - - col2 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 75 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-3825
-6375
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + - COUNT( * ) * + ( - - ( 10 ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + + 31 IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2418
SELECT + - COUNT ( * ) * + ( - - ( 10 ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + + 31 IS NOT NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - col1 * + - 96 * + col0 BETWEEN col1 AND col1 + - 55
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT ALL MIN( ( - - 5 ) ), SUM( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
5
195

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL MIN ( ( - - 5 ) ), SUM ( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
5
195

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2421
SELECT - + col2 DIV + + CAST( col1 AS SIGNED ) + - 48 + ( - - ( + col0 ) ) FROM tab2 AS cor0
----
-2
16
27

skipif mysql # not compatible
query I rowsort label-2421
SELECT - + col2 / + + CAST ( col1 AS INTEGER ) + - 48 + ( - - ( + col0 ) ) FROM tab2 AS cor0
----
-2
16
27

query I rowsort
SELECT + col0 + + + 35 AS col2 FROM tab0 AS cor0
----
122
132
50

query I rowsort
SELECT - 61 FROM tab1 AS cor0 WHERE NOT ( - 30 ) BETWEEN - + col2 + + + col2 AND + + 47
----
-61
-61
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - 45 / - + col1 * + - ( + - 71 ) / + ( + ( - col1 ) ) * - col1 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT + - SUM( DISTINCT + - 59 ) FROM tab0 AS cor0 WHERE ( 89 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + - SUM ( DISTINCT + - 59 ) FROM tab0 AS cor0 WHERE ( 89 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + COUNT( + 16 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + COUNT ( + 16 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT DISTINCT - MAX( ALL - - col2 ) DIV - - COUNT( * ) + 85 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT - MAX ( ALL - - col2 ) / - - COUNT ( * ) + 85 FROM tab2 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 15 + - - 39 FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 * - 60 AS col1, - col2 col0 FROM tab1
----
-2340
-59
-2340
-68
-2340
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2430
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 * - - 92 FROM tab2
----
NULL
4232
NULL
5888
NULL
6900

skipif mysql # not compatible
query II rowsort label-2430
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 * - - 92 FROM tab2
----
NULL
4232
NULL
5888
NULL
6900

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT 80 * - ( - ( + 11 ) ), COUNT( * ) AS col0 FROM tab1
----
880
3

skipif mysql # not compatible
query II rowsort label-2431
SELECT 80 * - ( - ( + 11 ) ), COUNT ( * ) AS col0 FROM tab1
----
880
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COUNT( + + col2 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( + + col2 ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT ALL + 50 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 50 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL + col2 DIV - col2 + - - col2 + + - col0 + 72 + - col0 DIV + col2 FROM tab2 AS cor0
----
46
46
53

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + col2 / - col2 + - - col2 + + - col0 + 72 + - col0 / + col2 FROM tab2 AS cor0
----
46
46
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT DISTINCT - col0 * - 21 / col1 + + col1 / + + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT DISTINCT - col0 * - 21 / col1 + + col1 / + + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT - 77 FROM tab2 WHERE NULL NOT IN ( col2 * - col1 + col2 + 71 + 55, col0 * col1 + - col2 + - col1 * + + col1 * CAST( NULL AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 77 FROM tab2 WHERE NULL NOT IN ( col2 * - col1 + col2 + 71 + 55, col0 * col1 + - col2 + - col1 * + + col1 * CAST ( NULL AS INTEGER ) * col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT ALL COUNT( * ) - - 9 DIV + 7 col2 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2437
SELECT ALL COUNT ( * ) - - 9 / + 7 col2 FROM tab1
----
4

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT + ( 59 ) * - - 7 - + 43 + + 28 * - - col2 AS col2 FROM tab2 AS cor0
----
1014
1490
1994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col1 * col0 AS col1, col2 col2, + col1 col1 FROM tab2 AS cor0
----
9 values hashing to 489871e41752769aed23fa97e233b669

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE + 22 <> - 17
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2442
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - - 41 + col1 + 13 / + CAST( NULL AS SIGNED ) - - + col0 IN ( + + 98, - col2 )
----

skipif mysql # not compatible
query III rowsort label-2442
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - - 41 + col1 + 13 / + CAST ( NULL AS INTEGER ) - - + col0 IN ( + + 98, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - - COUNT( - 61 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2443
SELECT - - COUNT ( - 61 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - 86 * + 61 + + col2 FROM tab0 AS cor0
----
-5147
-5199
-5236

query I rowsort
SELECT - ( + col1 ) * + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT - - 60 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( - + 38 ) AS col1 FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2448
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 26 + + - CAST( NULL AS SIGNED ) * + col1 * + - col2 AS col2 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2448
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 26 + + - CAST ( NULL AS INTEGER ) * + col1 * + - col2 AS col2 FROM tab1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT 62 * - - 25 + - COUNT( * ) col0 FROM tab2 WHERE - col0 * - col1 NOT BETWEEN + 7 AND NULL
----
1550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2449
SELECT DISTINCT 62 * - - 25 + - COUNT ( * ) col0 FROM tab2 WHERE - col0 * - col1 NOT BETWEEN + 7 AND NULL
----
1550

query II rowsort
SELECT DISTINCT + col2, + col1 - + - col0 FROM tab2
----
23
97
40
141
58
142

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - 9 NOT IN ( 24 * - col0 )
----

query II rowsort
SELECT ALL + col0 AS col1, col0 + + col0 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + - col2 * - col1 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT col1 DIV + + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2455
SELECT col1 / + + col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT ALL - + col2 - - - col1, - 19 * col0 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT - CAST( col1 AS SIGNED ) IS NULL )
----
-100
-1744
-128
-238
-31
-1643

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL - + col2 - - - col1, - 19 * col0 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT - CAST ( col1 AS INTEGER ) IS NULL )
----
-100
-1744
-128
-238
-31
-1643

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT ALL + 98 + - 69 AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-2457
SELECT ALL + 98 + - 69 AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + MAX( ALL 57 ) AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + MAX ( ALL 57 ) AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT COUNT( * ) + + 35 AS col2 FROM tab1 AS cor0 WHERE + 83 / - + ( + + col0 ) + - + col1 IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( * ) + + 35 AS col2 FROM tab1 AS cor0 WHERE + 83 / - + ( + + col0 ) + - + col1 IS NULL
----
35

query I rowsort
SELECT col1 * 32 + col2 AS col0 FROM tab2 AS cor0
----
1655
2202
2504

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - - 52 + - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - - 52 + - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT col1 DIV - col1 + + + col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT col1 / - col1 + + + col2 FROM tab2
----
22
39
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col1 + - 10 col1 FROM tab1
----
-206
-2219
-35

query I rowsort
SELECT ALL col2 * - 91 FROM tab2
----
-2093
-3640
-5278

query I rowsort
SELECT DISTINCT 5 * - col2 * 41 * - + 39 FROM tab1
----
471705
543660
767520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT - col0 + - + CAST( NULL AS SIGNED ) - + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT - col0 + - + CAST ( NULL AS INTEGER ) - + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL + MIN( - - 14 ) + - ( + - COUNT( * ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL + MIN ( - - 14 ) + - ( + - COUNT ( * ) ) FROM tab0
----
17

query I rowsort
SELECT col2 * - col1 + - col0 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT ALL - - ( 33 ) AS col1 FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT ALL + - 89 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-89
-23
-89
-40
-89
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + SUM( DISTINCT 9 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + SUM ( DISTINCT 9 ) AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT MIN( ALL - 20 ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2473
SELECT MIN ( ALL - 20 ) AS col2 FROM tab0
----
-20

query I rowsort
SELECT + - 83 FROM tab1 WHERE NOT + col0 = col1 + + 35
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( - 25 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( - 25 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT - col1 + + col2 AS col2, col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - ( + col1 ) AND + 0
----

query I rowsort
SELECT ( - ( - 51 ) ) AS col0 FROM tab2
----
51
51
51

query II rowsort
SELECT DISTINCT - + col2 * + col0 AS col1, - col2 FROM tab2 AS cor0
----
-1058
-23
-2560
-40
-4350
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT + col2 + CAST( 67 AS SIGNED ) + - + 15 + 95 + 82 * - 52 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
200602
422382
42797

skipif mysql # not compatible
query I rowsort label-2479
SELECT + col2 + CAST ( 67 AS INTEGER ) + - + 15 + 95 + 82 * - 52 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
200602
422382
42797

query I rowsort
SELECT DISTINCT - + 90 / - col2 * + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL 21 FROM tab2 WHERE NOT - col0 * - col1 IS NULL
----
21
21
21

query I rowsort
SELECT col2 * + + 79 + - 95 * 88 AS col0 FROM tab2 cor0
----
-3778
-5200
-6543

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 - 28 BETWEEN NULL AND 33
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 - 28 BETWEEN NULL AND 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL - + 62 + - COUNT( * ) AS col1 FROM tab1 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - + 62 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) * col0 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - col2 * + - 0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2487
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 + 76 AND - col1 * + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2487
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 + 76 AND - col1 * + - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - col0 * + 22 * + ( + ( + col1 ) ) AS col2 FROM tab0
----
-2134
-26730
-40194

query I rowsort
SELECT + 48 * - 63 AS col2 FROM tab1
----
-3024
-3024
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT - + col2 * - + 22 AS col1 FROM tab0 WHERE ( ( NOT 11 < - 13 - - col1 * + + 18 + CAST( NULL AS SIGNED ) * + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-2490
SELECT - + col2 * - + 22 AS col1 FROM tab0 WHERE ( ( NOT 11 < - 13 - - col1 * + + 18 + CAST ( NULL AS INTEGER ) * + col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2491
SELECT DISTINCT col1 DIV + col1, col2 * + + col0 AS col2 FROM tab0
----
1
705
1
870
1
9603

skipif mysql # not compatible
query II rowsort label-2491
SELECT DISTINCT col1 / + col1, col2 * + + col0 AS col2 FROM tab0
----
1
705
1
870
1
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT - COUNT( * ) - - 56 AS col2 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-2492
SELECT - COUNT ( * ) - - 56 AS col2 FROM tab0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT DISTINCT col1 DIV 64 * + col2 FROM tab2 AS cor0
----
0
40
58

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT col1 / 64 * + col2 FROM tab2 AS cor0
----
0
40
58

query I rowsort
SELECT - col2 + 59 - - 98 FROM tab1
----
61
89
98

query I rowsort
SELECT + + 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > - 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT ALL - col2 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col2 / - col1 AS col0 FROM tab0 cor0
----
0
0
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * - col1 + - 32, - 47 AS col0 FROM tab1 AS cor0
----
-4309
-47
-457
-47
-746
-47

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0 AS cor0 WHERE NOT + 27 * col1 NOT BETWEEN NULL AND - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ( + 45 ) * - - MAX( - + col1 ) AS col2 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2503
SELECT ( + 45 ) * - - MAX ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - MIN( DISTINCT ( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2504
SELECT - MIN ( DISTINCT ( - col0 ) ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT + 66 DIV - + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 66 / - + col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2506
SELECT 9 * - 97 * COUNT( * ) DIV + CAST( CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
873

skipif mysql # not compatible
query I rowsort label-2506
SELECT 9 * - 97 * COUNT ( * ) / + CAST ( CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
873

query II rowsort
SELECT ALL - 61 AS col0, + 60 * - col1 FROM tab1
----
-61
-2820
-61
-300
-61
-840

query I rowsort
SELECT ( - 6 ) FROM tab2
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - 63 * - col0 * - col1 * - 40 * + - col1 + col0 FROM tab2 WHERE NULL IN ( - col0 * 22, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT COUNT( DISTINCT 86 ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT DISTINCT COUNT ( DISTINCT 86 ) col2 FROM tab2
----
1

query I rowsort
SELECT + 34 * - - 22 AS col2 FROM tab1 WHERE NOT ( 47 ) IS NULL
----
748
748
748

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col0 + col1 * - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL + SUM( DISTINCT - col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT + col1 + CAST( + - 84 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
-63
-83

skipif mysql # not compatible
query I rowsort label-2514
SELECT + col1 + CAST ( + - 84 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
-63
-83

query I rowsort
SELECT ALL - 35 * + - col0 FROM tab1
----
1785
2975
3185

query II rowsort
SELECT - - ( - 35 ) * 36 AS col0, - 32 AS col0 FROM tab0 WHERE NULL < - - ( + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + - MAX( - col0 ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2517
SELECT + - MAX ( - col0 ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL 81 * + 98 - - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
7938

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL 81 * + 98 - - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
7938

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT 18 + + col2 DIV + - ( col1 ) AS col1 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-2519
SELECT 18 + + col2 / + - ( col1 ) AS col1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - MIN( + 3 ) + - 48 AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2520
SELECT - MIN ( + 3 ) + - 48 AS col0 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND - + ( + 27 )
----

query I rowsort
SELECT + col2 + col2 * - ( + + col2 ) + - col1 AS col0 FROM tab2
----
-1637
-3373
-557

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT MIN( ALL 56 ) * + - 60 - + 49 AS col1 FROM tab0
----
-3409

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT MIN ( ALL 56 ) * + - 60 - + 49 AS col1 FROM tab0
----
-3409

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT + COUNT( * ) + + + 13 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2524
SELECT + COUNT ( * ) + + + 13 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL - + MAX( DISTINCT - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - + MAX ( DISTINCT - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
10

query II rowsort
SELECT - - col2, 72 * + + 41 AS col2 FROM tab2 AS cor0
----
23
2952
40
2952
58
2952

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT - COUNT( * ), + 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0
37

skipif mysql # not compatible
query II rowsort label-2527
SELECT - COUNT ( * ), + 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT ALL - + ( 6 ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - + ( 6 ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 * ( col2 ) FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT ALL 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
47
47
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2531
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 * - col1 - col2 < col2 * CAST( NULL AS DECIMAL ) * + + CAST( + col1 AS DECIMAL ) - col2 - + - 51
----

skipif mysql # not compatible
query III rowsort label-2531
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 * - col1 - col2 < col2 * CAST ( NULL AS REAL ) * + + CAST ( + col1 AS REAL ) - col2 - + - 51
----

query I rowsort
SELECT - ( - 98 ) AS col0 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0 WHERE ( + 72 ) + col1 * - + col0 >= + col0 + + col1
----

query II rowsort
SELECT ALL - - col0 * + col1 AS col0, col0 FROM tab1 AS cor0
----
425
85
4277
91
714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + - col1 - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + - col1 - - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT DISTINCT - 76 * - col0 + + - col1 * col0 DIV - 17 FROM tab1 AS cor0
----
3918
6485
7167

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT - 76 * - col0 + + - col1 * col0 / - 17 FROM tab1 AS cor0
----
3918
6485
7167

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT - 85 DIV - 40 AS col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2538
SELECT - 85 / - 40 AS col2 FROM tab1
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 52 * - col2, - col0 col0 FROM tab1
----
181012
-85
240448
-91
479232
-51

query I rowsort
SELECT DISTINCT - ( - 72 ) AS col2 FROM tab1
----
72

query I rowsort
SELECT col1 * + ( - - 10 ) AS col1 FROM tab1
----
140
470
50

query II rowsort
SELECT col2 AS col2, + 14 FROM tab2
----
23
14
40
14
58
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + MIN( ALL + 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2543
SELECT + MIN ( ALL + 11 ) FROM tab0
----
11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - - col0 * - col2 = - + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT ALL + col2 * + 82 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + col2 * + 82 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + 52 ) FROM tab1 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT - col2 * col1 DIV + - col2 + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-2547
SELECT - col2 * col1 / + - col2 + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 + - col0 col2 FROM tab0
----
-56
113
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2549
SELECT ALL + col1, 34 DIV - col1 FROM tab1
----
14
-2
47
0
5
-6

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL + col1, 34 / - col1 FROM tab1
----
14
-2
47
0
5
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 * - - 33 < - + 52
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 + - 39 ) >= NULL
----

query I rowsort
SELECT ALL + - 16 + - 46 + col2 FROM tab1 cor0
----
-3
34
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT 21 + col1 + - CAST( - 26 AS SIGNED ) * + 16 AS col0 FROM tab1 AS cor0
----
442
451
484

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT 21 + col1 + - CAST ( - 26 AS INTEGER ) * + 16 AS col0 FROM tab1 AS cor0
----
442
451
484

query I rowsort
SELECT DISTINCT - 35 + + + 74 * - col2 AS col2 FROM tab0
----
-3513
-7361
-775

query I rowsort
SELECT ALL + 96 - - - col1 - col2 FROM tab1
----
-14
-19
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT COUNT( ALL col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2556
SELECT COUNT ( ALL col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT COUNT( DISTINCT + - 65 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT COUNT ( DISTINCT + - 65 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT - + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col0 * - col0 - + + col1 + 38 FROM tab0
----
182
7586
9446

query I rowsort
SELECT col2 - col1 * 65 AS col0 FROM tab1
----
-266
-2987
-814

query I rowsort
SELECT col0 - - col2 + + col0 AS col1 FROM tab2
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT COUNT( * ) - + - 44 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT COUNT ( * ) - + - 44 FROM tab0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT + col0 * - - CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT + col0 * - - CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 - col2 AS col2, ( + + col0 ) * + - col0 FROM tab2
----
28
-2116
37
-4096
9
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT DISTINCT + 98 DIV + 55 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + 98 / + 55 AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + MIN( - 93 ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + MIN ( - 93 ) AS col2 FROM tab0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 81 col2 FROM tab2 AS cor0
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT 71 FROM tab1 cor0 WHERE NOT NULL = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT + 99 * ( + col0 ) FROM tab0 AS cor0 WHERE NOT - 46 IN ( - ( - - col0 ) + + col0, 47 * - col2, - CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 99 * ( + col0 ) FROM tab0 AS cor0 WHERE NOT - 46 IN ( - ( - - col0 ) + + col0, 47 * - col2, - CAST ( NULL AS INTEGER ), - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 61 >= + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col1 + + 49 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT 60 * + 79 AS col2 FROM tab2
----
4740
4740
4740

query I rowsort
SELECT ALL - + 30 * col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 68 * + + col2 AS col2, 30 FROM tab0
----
3196
30
6732
30
680
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 66 * - col1 * col1 = - ( + col0 ) + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 95 FROM tab1 WHERE NOT + col2 IS NULL
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT - 46 + 66 DIV ( col0 ) FROM tab2
----
-45
-46

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - 46 + 66 / ( col0 ) FROM tab2
----
-45
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2579
SELECT ALL + col1 * ( - CAST( NULL AS SIGNED ) ) + - ( - col2 ), - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2579
SELECT ALL + col1 * ( - CAST ( NULL AS INTEGER ) ) + - ( - col2 ), - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT - CAST( + - 50 AS SIGNED ) + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif mysql # not compatible
query I rowsort label-2580
SELECT - CAST ( + - 50 AS INTEGER ) + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT col2 DIV col2 - + - col1 - + + ( + - col0 ) + - - col1 FROM tab1
----
186
80
96

skipif mysql # not compatible
query I rowsort label-2581
SELECT col2 / col2 - + - col1 - + + ( + - col0 ) + - - col1 FROM tab1
----
186
80
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 + col2 col2 FROM tab2 cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT + + SUM( + 67 ) - - COUNT( * ) + + COUNT( * ) + - MAX( + 89 ) AS col2 FROM tab1 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-2583
SELECT + + SUM ( + 67 ) - - COUNT ( * ) + + COUNT ( * ) + - MAX ( + 89 ) AS col2 FROM tab1 AS cor0
----
118

query I rowsort
SELECT ALL - 94 + + col1 FROM tab0 AS cor0
----
-13
-73
-93

query I rowsort
SELECT DISTINCT 93 + + col2 FROM tab2 AS cor0
----
116
133
151

query I rowsort
SELECT + col0 + + - 57 * - - col0 * - col2 FROM tab1 AS cor0
----
279123
285940
352807

query I rowsort
SELECT DISTINCT col0 * + + col0 - - col2 + col0 * + 25 AS col1 FROM tab0 AS cor0
----
11933
647
9754

query I rowsort
SELECT ALL + col0 * - col2 * + + col0 - + col0 FROM tab0
----
-10590
-75777
-931588

query I rowsort
SELECT ALL - + 7 FROM tab1 WHERE col0 IS NOT NULL
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL + col0 FROM tab1 WHERE + col0 * col1 NOT BETWEEN CAST( - 26 AS SIGNED ) AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + col0 FROM tab1 WHERE + col0 * col1 NOT BETWEEN CAST ( - 26 AS INTEGER ) AND - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL - SUM( ALL - 63 ) AS col0 FROM tab2, tab2 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - SUM ( ALL - 63 ) AS col0 FROM tab2, tab2 AS cor0
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2592
SELECT DISTINCT * FROM tab2 WHERE + 88 + + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2592
SELECT DISTINCT * FROM tab2 WHERE + 88 + + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0, - col2 AS col0 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2594
SELECT ALL SUM( + + col1 ) AS col1, 4 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-2594
SELECT ALL SUM ( + + col1 ) AS col1, 4 - - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT DISTINCT - MIN( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT - MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + - 84 * - 78 - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - 20
----

query I rowsort
SELECT + col0 * + + ( col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT DISTINCT 0 * + + col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT 0 * + + col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT MIN( DISTINCT - ( col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2599
SELECT MIN ( DISTINCT - ( col2 ) ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL 65 * + col1 FROM tab2 AS cor0 WHERE ( 28 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col2 BETWEEN NULL AND col2 / - 97 + + + 68 + + - 37
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / + 99 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT 30 DIV - COUNT( + col0 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-2604
SELECT 30 / - COUNT ( + col0 ) FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - MIN( - - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - MIN ( - - col0 ) FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT col2 DIV + + col2 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2606
SELECT col2 / + + col2 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT - 30 AS col1, + SUM( 65 ) * - COUNT( * ) - - COUNT( * ) col2 FROM tab2
----
-30
-582

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2607
SELECT - 30 AS col1, + SUM ( 65 ) * - COUNT ( * ) - - COUNT ( * ) col2 FROM tab2
----
-30
-582

query I rowsort
SELECT 78 * - - col2 AS col2 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT COUNT( * ) DIV + 14 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT COUNT ( * ) / + 14 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT DISTINCT - - 50 DIV + + COUNT( * ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - - 50 / + + COUNT ( * ) FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT DISTINCT 22 + - - 98 AS col2, + COUNT( * ) * - ( + - 82 ) AS col1 FROM tab0
----
120
246

skipif mysql # not compatible
query II rowsort label-2611
SELECT DISTINCT 22 + - - 98 AS col2, + COUNT ( * ) * - ( + - 82 ) AS col1 FROM tab0
----
120
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT - 23 * + 70 + + SUM( - 89 ) AS col1 FROM tab2
----
-1877

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 23 * + 70 + + SUM ( - 89 ) AS col1 FROM tab2
----
-1877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, ( - col1 ) + 2 * + - 13 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT MIN( + + 18 ) col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2615
SELECT MIN ( + + 18 ) col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL ( - - 93 ) + + 67 * + col0 AS col2 FROM tab0 AS cor0
----
1098
5922
6592

query I rowsort
SELECT - col0 * col0 + - col1 * - col1 FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
-1136
1833
485

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT - col2 DIV ( - col1 ) FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-2619
SELECT - col2 / ( - col1 ) FROM tab0
----
0
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col0 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL ( + ( + - 61 ) ) * + col2 AS col2 FROM tab0
----
-2867
-6039
-610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL + CAST( - 71 AS SIGNED ) col2 FROM tab1
----
-71
-71
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT ALL + CAST ( - 71 AS INTEGER ) col2 FROM tab1
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT MAX( ALL + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT MAX ( ALL + col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT ( - - MAX( + 61 ) ) AS col2 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT ( - - MAX ( + 61 ) ) AS col2 FROM tab1
----
61

query I rowsort
SELECT - 97 * - col0 AS col0 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT MIN( DISTINCT 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-2626
SELECT MIN ( DISTINCT 38 ) FROM tab0
----
38

query II rowsort
SELECT ALL + 64, col0 FROM tab1
----
64
51
64
85
64
91

query II rowsort
SELECT DISTINCT 68 * + + 3, col1 FROM tab0
----
204
1
204
21
204
81

query II rowsort
SELECT 94, - col0 AS col2 FROM tab2
----
94
-46
94
-64
94
-75

query I rowsort
SELECT DISTINCT - col0 * - col2 * - 45 AS col0 FROM tab0
----
-31725
-39150
-432135

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col0 / col0 + + 91 IS NOT NULL
----

query I rowsort
SELECT 25 * + 62 * + col2 - 60 FROM tab1 cor0
----
105340
148740
91390

query I rowsort
SELECT - ( - - col0 ) AS col2 FROM tab1 AS cor0 WHERE 84 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( - 45 ) / + 76 - CAST( col1 AS SIGNED ) * - - 34 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( - 45 ) / + 76 - CAST ( col1 AS INTEGER ) * - - 34 > NULL
----
0

query I rowsort
SELECT + + ( - ( - + 79 ) ) AS col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT col0 * - - 46 FROM tab0
----
4002
4462
690

query I rowsort
SELECT + col1 + - 42 * - + col2 FROM tab1
----
2483
2903
4046

query I rowsort
SELECT - col0 * + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT + + ( 94 ) - - - col1 - 48 AS col2 FROM tab2 cor0 WHERE 35 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < + ( + 34 ) * + col1 + + col0 + col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT DISTINCT + 93 * - col0 + - ( + + 80 ) + + col0 DIV col0 + + col1 * + 73 AS col0 FROM tab2 AS cor0
----
-2163
-410
-634

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT + 93 * - col0 + - ( + + 80 ) + + col0 / col0 + + col1 * + 73 AS col0 FROM tab2 AS cor0
----
-2163
-410
-634

query I rowsort
SELECT DISTINCT 7 - - 54 FROM tab0
----
61

query I rowsort
SELECT ( - 5 ) - + 67 + - 7 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT - - SUM( - + col0 ) + - COUNT( * ) AS col2, + 79 FROM tab2 AS cor0
----
-188
79

skipif mysql # not compatible
query II rowsort label-2646
SELECT - - SUM ( - + col0 ) + - COUNT ( * ) AS col2, + 79 FROM tab2 AS cor0
----
-188
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - ( - SUM( 94 ) ) + 76 FROM tab0 AS cor0
----
358

skipif mysql # not compatible
query I rowsort label-2647
SELECT - ( - SUM ( 94 ) ) + 76 FROM tab0 AS cor0
----
358

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + MIN( + + ( - - col2 ) ) FROM tab2 cor0 WHERE + 96 / - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT + MIN ( + + ( - - col2 ) ) FROM tab2 cor0 WHERE + 96 / - col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + - 38 col1 FROM tab0 AS cor0
----
3078
38
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - 62 col1 FROM tab1 AS cor0
----
2914
310
868

query I rowsort
SELECT 51 * + 52 * - col0 - - + col2 * 1 * - + col0 FROM tab0 cor0
----
-231594
-266847
-40485

query I rowsort
SELECT ALL - ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + + 35 AS col1, col1 FROM tab0 AS cor0
----
35
1
35
21
35
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT 20 * + COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT 20 * + COUNT ( * ) AS col1 FROM tab2
----
60

query I rowsort
SELECT + + 47 + - col2 AS col0 FROM tab2 WHERE NOT col2 + + - 98 + - - 54 < NULL
----

query I rowsort
SELECT DISTINCT + ( + 24 ) FROM tab0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2657
SELECT CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + ( ( + - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2658
SELECT + ( ( + - COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + - 35 AS col0 FROM tab1 cor0 WHERE NOT 36 + + 27 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT + 62 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT + 62 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT + CAST( + - 23 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-2661
SELECT + CAST ( + - 23 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2662
SELECT COUNT( * ), CAST( - CAST( 24 AS DECIMAL ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-24

skipif mysql # not compatible
query II rowsort label-2662
SELECT COUNT ( * ), CAST ( - CAST ( 24 AS REAL ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT 48 + COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2663
SELECT 48 + COUNT ( * ) FROM tab0
----
51

query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 - - 54 * - col1 col0 FROM tab0 AS cor0 WHERE ( + col0 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - - COUNT( * ) * 64 + + 61 col2 FROM tab0 AS cor0
----
253

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT - - COUNT ( * ) * 64 + + 61 col2 FROM tab0 AS cor0
----
253

query I rowsort
SELECT 30 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2668
SELECT COUNT( ALL + col1 ) col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2668
SELECT COUNT ( ALL + col1 ) col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

query II rowsort
SELECT col0, + 85 + ( - 45 ) AS col0 FROM tab0
----
15
40
87
40
97
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT MAX( ALL ( - col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2670
SELECT MAX ( ALL ( - col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - COUNT( * ) * 50 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2671
SELECT - COUNT ( * ) * 50 FROM tab0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + 61 col0 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT + - 20 AS col2 FROM tab0 WHERE + col1 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 43 col1 FROM tab1
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT - COUNT( * ) DIV + 6 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - COUNT ( * ) / + 6 AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 37 - - + col2
----

query I rowsort
SELECT DISTINCT - 31 + + 38 AS col2 FROM tab2 cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN + ( + - 32 ) / - col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT DISTINCT + COUNT( * ) AS col1, SUM( ALL col1 ) FROM tab2 AS cor0
----
3
195

skipif mysql # not compatible
query II rowsort label-2679
SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( ALL col1 ) FROM tab2 AS cor0
----
3
195

query I rowsort
SELECT ALL 71 + + col1 FROM tab2 cor0
----
122
138
148

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NULL <> col1 * - + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2682
SELECT * FROM tab0 WHERE NOT - ( CAST( 95 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2682
SELECT * FROM tab0 WHERE NOT - ( CAST ( 95 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1 AS cor0 WHERE NOT 46 <= NULL
----

query I rowsort
SELECT - - 9 * ( + ( - - col1 ) ) FROM tab1 AS cor0
----
126
423
45

query II rowsort
SELECT DISTINCT - col1 * - col2, col2 FROM tab1 AS cor0
----
1344
96
295
59
3196
68

query I rowsort
SELECT ALL 57 + + 91 FROM tab0 WHERE ( NOT ( NULL ) <> + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT ALL + 24 DIV - col2 col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2687
SELECT ALL + 24 / - col2 col2 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT - + col1 FROM tab0 WHERE NOT - + col0 + + 6 + CAST( - col1 AS SIGNED ) * + + col0 NOT IN ( + - col2, + 90 * 94, - ( col2 ), - col2, 61 )
----

skipif mysql # not compatible
query I rowsort label-2688
SELECT - + col1 FROM tab0 WHERE NOT - + col0 + + 6 + CAST ( - col1 AS INTEGER ) * + + col0 NOT IN ( + - col2, + 90 * 94, - ( col2 ), - col2, 61 )
----

query II rowsort
SELECT ALL col2, - 44 FROM tab1
----
59
-44
68
-44
96
-44

query I rowsort
SELECT + + 64 + + col0 + - col1 AS col1 FROM tab1 AS cor0
----
101
108
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2691
SELECT COUNT( * ) + + 44 * COUNT( + col2 ) AS col1, 80 / - + COUNT( * ) / - CAST( NULL AS SIGNED ) + 8 col2 FROM tab0 AS cor0
----
135
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2691
SELECT COUNT ( * ) + + 44 * COUNT ( + col2 ) AS col1, 80 / - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 8 col2 FROM tab0 AS cor0
----
135
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT 55 * col0 NOT IN ( + - 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT ALL CAST( + col1 AS SIGNED ) + + col1 * col1 AS col1 FROM tab1
----
210
2256
30

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL CAST ( + col1 AS INTEGER ) + + col1 * col1 AS col1 FROM tab1
----
210
2256
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT DISTINCT - col1 DIV col2 + col0 * col2 AS col1 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - col1 / col2 + col0 * col2 AS col1 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab1 WHERE + 41 * - 98 IN ( 73 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE NOT NULL <> ( ( + col2 ) )
----

query I rowsort
SELECT ALL + col2 * + col1 + 49 AS col0 FROM tab0
----
148
259
3856

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * 40 >= ( NULL )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab1 WHERE NOT col0 * 42 NOT IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL SUM( DISTINCT col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2701
SELECT ALL SUM ( DISTINCT col2 ) col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL SUM( + 98 ) - 84 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL SUM ( + 98 ) - 84 FROM tab1
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT 46 * - ( col1 DIV - 1 ) col1 FROM tab1
----
2162
230
644

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2703
SELECT 46 * - ( col1 / - 1 ) col1 FROM tab1
----
2162
230
644

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT col2 IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col2 IN ( - col0 )
----
3

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE 2 IN ( 84 )
----

query I rowsort
SELECT + col0 * 56 AS col0 FROM tab0
----
4872
5432
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col0 col1 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT DISTINCT - col1 * + 47 + + col1 AS col0 FROM tab1
----
-2162
-230
-644

query I rowsort
SELECT col2 + + col0 * - col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-178
-7559
-9310

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT + CAST( 88 AS SIGNED ) DIV + 42 col1 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2710
SELECT DISTINCT + CAST ( 88 AS INTEGER ) / + 42 col1 FROM tab1
----
2

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT - col2 * ( CAST( NULL AS SIGNED ) * + col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT - col2 * ( CAST ( NULL AS INTEGER ) * + col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT - ( ( + col2 ) ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT - ( ( + col2 ) ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT + MAX( + col1 ) FROM tab0 WHERE NOT NULL >= ( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + MAX ( + col1 ) FROM tab0 WHERE NOT NULL >= ( 13 )
----
NULL

query I rowsort
SELECT ( col2 ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 - ( - col1 + - col2 ) FROM tab0 WHERE ( NULL ) IS NULL
----
118
143
197

query I rowsort
SELECT - ( - ( col1 ) ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL ( - 93 ) + - 18 FROM tab1 AS cor0
----
-111
-111
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT 80 * - SUM( DISTINCT + col2 * col1 ) FROM tab0 AS cor0
----
-329280

skipif mysql # not compatible
query I rowsort label-2719
SELECT 80 * - SUM ( DISTINCT + col2 * col1 ) FROM tab0 AS cor0
----
-329280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 3 ) IN ( 83 )
----

query I rowsort
SELECT + 16 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( col0 + + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL col0 * CAST( 45 * col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
115200
195750
47610

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL col0 * CAST ( 45 * col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
115200
195750
47610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE 23 + 99 >= col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT col2 + col0 NOT BETWEEN col2 * col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 46 ) NOT IN ( - 67 )
----

query I rowsort
SELECT DISTINCT - - col1 * + 89 FROM tab1 AS cor0
----
1246
4183
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 98 col1 FROM tab0 AS cor0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT MAX( col0 ) FROM tab0 AS cor0 WHERE NOT 30 = ( col2 )
----
97

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT 30 = ( col2 )
----
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + 17 * 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT - 85 * COUNT( * ) * 21 AS col2 FROM tab0
----
-5355

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 85 * COUNT ( * ) * 21 AS col2 FROM tab0
----
-5355

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT MIN( ALL + ( + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT MIN ( ALL + ( + col2 ) ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT - ( - COUNT( DISTINCT col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT - ( - COUNT ( DISTINCT col1 ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL + SUM( col1 ) * + 7 AS col1 FROM tab1
----
462

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + SUM ( col1 ) * + 7 AS col1 FROM tab1
----
462

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 89 * col2 + + 75 ) NOT BETWEEN ( - col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2739
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 * col0 NOT BETWEEN NULL AND + CAST( col1 AS SIGNED ) + 74 * + col2
----

skipif mysql # not compatible
query III rowsort label-2739
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 * col0 NOT BETWEEN NULL AND + CAST ( col1 AS INTEGER ) + 74 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) * + col1 col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND ( + col2 ) + - ( - col2 )
----

query I rowsort
SELECT ALL - 81 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 11 IS NULL
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT MAX( DISTINCT - + ( + col1 ) ) + 54 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-2743
SELECT MAX ( DISTINCT - + ( + col1 ) ) + 54 FROM tab0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL - CAST( - CAST( 28 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - CAST ( - CAST ( 28 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - 5 + + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 5 + + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 / - ( - 3 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 / - ( - 3 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 34 * 46 FROM tab1 AS cor0 WHERE 53 BETWEEN NULL AND - 58
----

query I rowsort
SELECT + - col1 + - col2 FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE + col1 > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab0 AS cor0 WHERE col0 NOT IN ( col2 )
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col0 + + + 91 FROM tab2 cor0
----
16
27
45

query I rowsort
SELECT ALL + col2 + - 98 AS col2 FROM tab1
----
-2
-30
-39

query I rowsort
SELECT ALL col0 * - - ( - col1 ) - - col2 AS col0 FROM tab0
----
-1168
-1817
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT ALL + CAST( NULL AS SIGNED ) * - - col0 * - col0 - + 29 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col0 * - col0 - + 29 * col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL + MIN( col2 ) - 99 AS col1 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + MIN ( col2 ) - 99 AS col1 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT col2 - col1 + col1 * + ( + col1 ) FROM tab1
----
2230
278
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2757
SELECT - col1 * - - col0 * 23 / - col1 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT - col1 * - - col0 * 23 / - col1 - - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 / - 9 + - col1 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL - COUNT( * ) * 45 AS col1 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COUNT ( * ) * 45 AS col1 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT ALL + - ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2762
SELECT ALL - 29 DIV + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-3

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - 29 / + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT - ( + COUNT( DISTINCT + 83 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2763
SELECT - ( + COUNT ( DISTINCT + 83 ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( 21 / + col2 + - + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 92 + col2 / + col0 FROM tab0 AS cor0 WHERE NOT col0 > 9
----

query II rowsort
SELECT + + 14 AS col2, 60 AS col2 FROM tab2 cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + 23 * 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - - MIN( DISTINCT + col0 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - - MIN ( DISTINCT + col0 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 51 + - - col2 - + - 89 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 84 * - col1 * - + 95 + + col2 FROM tab2 AS cor0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - 78 * + - col0 * + col1 FROM tab2 AS cor0
----
15375360
22733100
4208724

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT 98 * + ( + - COUNT( * ) ) FROM tab1 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-2774
SELECT 98 * + ( + - COUNT ( * ) ) FROM tab1 cor0
----
-294

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 35, 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL MAX( DISTINCT - + 32 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL MAX ( DISTINCT - + 32 ) FROM tab2
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-2777
SELECT ALL col2, col2 DIV - col1 FROM tab0
----
10
0
47
0
99
-99

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL col2, col2 / - col1 FROM tab0
----
10
0
47
0
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2778
SELECT ALL col1 AS col1, + col2 / - CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2778
SELECT ALL col1 AS col1, + col2 / - CAST ( NULL AS INTEGER ) * - - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT - 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT - MAX( ( - - col1 ) ) * - + 41 AS col1 FROM tab0
----
3321

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - MAX ( ( - - col1 ) ) * - + 41 AS col1 FROM tab0
----
3321

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2782
SELECT * FROM tab1 AS cor0 WHERE - CAST( - - col0 AS SIGNED ) * col1 / ( + 35 ) + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2782
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - - col0 AS INTEGER ) * col1 / ( + 35 ) + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT ( + MIN( col2 ) ) + MIN( - 96 ) AS col2 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT ( + MIN ( col2 ) ) + MIN ( - 96 ) AS col2 FROM tab0 AS cor0
----
-86

query II rowsort
SELECT + - col0 + col0 AS col1, - col0 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT DISTINCT + ( + ( 15 ) ) + + 18 * + col2 * + col0 FROM tab2 AS cor0
----
19059
46095
78315

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - - col0 * col1 + col1 + + 60
----

query II rowsort
SELECT + col1 * - col0 AS col0, col2 * col0 AS col0 FROM tab1
----
-425
5015
-4277
6188
-714
4896

query II rowsort
SELECT - 68 * + 73 AS col1, + 30 AS col2 FROM tab1
----
-4964
30
-4964
30
-4964
30

query I rowsort
SELECT + 25 * 69 FROM tab0 AS cor0 WHERE ( NOT - + 51 = + col2 * col0 )
----
1725
1725
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - + ( COUNT( * ) ) / - AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT - + ( COUNT ( * ) ) / - AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2791
SELECT ALL CAST( NULL AS SIGNED ) / + 66, 57 * + ( + 31 ) AS col0 FROM tab2 AS cor0
----
NULL
1767
NULL
1767
NULL
1767

skipif mysql # not compatible
query II rowsort label-2791
SELECT ALL CAST ( NULL AS INTEGER ) / + 66, 57 * + ( + 31 ) AS col0 FROM tab2 AS cor0
----
NULL
1767
NULL
1767
NULL
1767

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL + + col0 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + + col0 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> ( 25 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - COUNT( * ) * - - 76 + + 48 + + - COUNT( * ) AS col2 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2795
SELECT - COUNT ( * ) * - - 76 + + 48 + + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT ALL + MAX( + col2 ) DIV - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + MAX ( + col2 ) / - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT DISTINCT 55 + COUNT( * ) AS col1, - 66 AS col0 FROM tab1 AS cor0
----
58
-66

skipif mysql # not compatible
query II rowsort label-2797
SELECT DISTINCT 55 + COUNT ( * ) AS col1, - 66 AS col0 FROM tab1 AS cor0
----
58
-66

query I rowsort
SELECT - col0 + - col2 FROM tab1 AS cor0 WHERE - 6 + + - col0 NOT IN ( - col1 )
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2799
SELECT + + CAST( NULL AS SIGNED ) + + col2 - + 20 col0, - 81 col2 FROM tab0 AS cor0
----
NULL
-81
NULL
-81
NULL
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2799
SELECT + + CAST ( NULL AS INTEGER ) + + col2 - + 20 col0, - 81 col2 FROM tab0 AS cor0
----
NULL
-81
NULL
-81
NULL
-81

query I rowsort
SELECT col1 * + 33 * + - 61 + - col1 AS col2 FROM tab1 cor0
----
-10070
-28196
-94658

query I rowsort
SELECT ALL - col2 + - 55 - + 1 + + + col2 FROM tab0 AS cor0
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 * col2 * - col1 + + col0 / + 66 ) >= col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT ALL 9 - + CAST( NULL AS SIGNED ) * col1 col0 FROM tab2 WHERE NOT ( - col0 - - col2 ) = col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2803
SELECT ALL 9 - + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 WHERE NOT ( - col0 - - col2 ) = col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + - col1 ) - - col2 * col1 * - + col0 FROM tab2
----
-197197
-291517
-54009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT DISTINCT CAST( + - 75 AS SIGNED ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT CAST ( + - 75 AS INTEGER ) AS col0 FROM tab1
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col2 AS col0, col1 col0, col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 02a7661c231e19cde7a035aff3678bcc

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / + 97 IS NOT NULL
----

query II rowsort
SELECT + 40, col0 FROM tab0 AS cor0
----
40
15
40
87
40
97

query I rowsort
SELECT DISTINCT ( - ( - 91 ) ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT DISTINCT - 65 DIV + col2 FROM tab0 cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT - 65 / + col2 FROM tab0 cor0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - + 36 col1 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT + 8 * - col2 AS col2 FROM tab1 AS cor0
----
-472
-544
-768

query II rowsort
SELECT ALL - + col0, + 65 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT MAX( - 42 ) AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-2816
SELECT MAX ( - 42 ) AS col0 FROM tab1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2817
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 26 * + + col2 * + 48 * - col1 * + col2 + + + col2 + + - 35 + 79 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 94 + ( + col0 ) FROM tab2 AS cor0
----
140
158
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + + col0 + + col1 * col1 col0 FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col0 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT DISTINCT + col0 * + + CAST( 45 AS SIGNED ) FROM tab1
----
2295
3825
4095

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + col0 * + + CAST ( 45 AS INTEGER ) FROM tab1
----
2295
3825
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ( + - 8 ) * - MAX( + 93 ) * + COUNT( + col0 ) FROM tab0
----
2232

skipif mysql # not compatible
query I rowsort label-2823
SELECT ( + - 8 ) * - MAX ( + 93 ) * + COUNT ( + col0 ) FROM tab0
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT + 38 DIV + col1 * - 20 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT + 38 / + col1 * - 20 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 90 ) * + - 75 FROM tab1
----
6750

query I rowsort
SELECT 23 * + + ( + - 78 ) AS col2 FROM tab0
----
-1794
-1794
-1794

query I rowsort
SELECT ALL + 26 * + col2 FROM tab1
----
1534
1768
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) * 65 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) * 65 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL col1 + ( - 7 ) DIV + - col2 + col1 + col0 + + + col1 * - col0 AS col2 FROM tab2 cor0
----
-2198
-4710
-4816

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL col1 + ( - 7 ) / + - col2 + col1 + col0 + + + col1 * - col0 AS col2 FROM tab2 cor0
----
-2198
-4710
-4816

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND - col2 )
----

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0 WHERE - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 91 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2832
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 91 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT DISTINCT + 23 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + 23 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL - ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT ( - 42 ) + - col2 + + col1 * col2 * - 17, col1 FROM tab0
----
-1824
1
-3622
21
-64808
81

query I rowsort
SELECT - + ( - + col2 ) FROM tab2 WHERE + col1 > + col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL SUM( + col2 ) * - COUNT( * ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL SUM ( + col2 ) * - COUNT ( * ) FROM tab2
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2839
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2839
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST ( + col0 AS INTEGER ) AND NULL
----

query II rowsort
SELECT + - 51 AS col2, col0 - + col1 FROM tab2 AS cor0
----
-51
-13
-51
-5
-51
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 14 - + + 33 BETWEEN NULL AND - col1 * col0 * + 90 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - col0 ) FROM tab2 AS cor0 WHERE col2 / - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + - 4 + + + 73 AS col1 FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT ALL 32 + + MIN( ALL - CAST( NULL AS SIGNED ) ) + + - 91 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL 32 + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + - 91 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + COUNT( - col1 ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT + COUNT ( - col1 ) - - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL + col2 + + + col0 FROM tab0
----
196
62
97

query I rowsort
SELECT col1 - + 85 * + - col2 FROM tab0
----
4076
8416
871

query I rowsort
SELECT ( - 53 ) AS col2 FROM tab0
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT ALL col2 DIV + 65 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL col2 / + 65 AS col0 FROM tab1
----
0
1
1

query II rowsort
SELECT + 18 AS col2, 53 FROM tab2, tab1 AS cor0
----
18 values hashing to d858765dd7e14dc51f4e64aaf625ba64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 68 * + 76 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT col1 / + 10 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT + + ( MIN( ALL - - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + + ( MIN ( ALL - - col2 ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL COUNT( * ) + - 89 * + - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( * ) + - 89 * + - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ( + + 93 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT + ( ( + - col2 ) ), 69 AS col2 FROM tab2 AS cor0
----
-23
69
-40
69
-58
69

query II rowsort
SELECT - - col2 AS col0, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT col0 + + col0 * + - col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 13 * 48 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 72 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2, - 81 AS col0 FROM tab2 AS cor0
----
23
-81
40
-81
58
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2863
SELECT - COUNT( * ) * - COUNT( * ), 85 * COUNT( * ) AS col0 FROM tab2
----
9
255

skipif mysql # not compatible
query II rowsort label-2863
SELECT - COUNT ( * ) * - COUNT ( * ), 85 * COUNT ( * ) AS col0 FROM tab2
----
9
255

query III rowsort
SELECT * FROM tab0 WHERE - + ( - col0 ) * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT - - ( - 78 ) - - - col2 FROM tab0 AS cor0
----
-125
-177
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 col1 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + 38 + 81 FROM tab0
----
119
119
119

query I rowsort
SELECT ALL + 50 AS col0 FROM tab1 WHERE NOT ( + 70 ) <> NULL
----

query I rowsort
SELECT col2 - + 64 AS col2 FROM tab1
----
-5
32
4

query I rowsort
SELECT 50 * + col2 + - + 37 + col2 AS col0 FROM tab0 AS cor0
----
2360
473
5012

query I rowsort
SELECT - ( 23 ) + ( + col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
173
39
74

query I rowsort
SELECT + col2 + - 29 AS col0 FROM tab2 AS cor0
----
-6
11
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col2 * + - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) >= - - ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) >= - - ( - - col2 )
----
0

query I rowsort
SELECT ALL col1 + + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL - COUNT( ALL - ( 49 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - COUNT ( ALL - ( 49 ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 91 + 65 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - + col0 + - - 41 FROM tab1 AS cor0
----
-10
-44
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT MAX( 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2880
SELECT MAX ( 99 ) FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT 7 * + 45 AS col0 FROM tab0
----
315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2882
SELECT ALL + 65 DIV + 74 * - - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL + 65 / + 74 * - - COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT - 95 DIV - col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2883
SELECT - 95 / - col2 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT COUNT( + 81 ) * - 61 AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-2884
SELECT COUNT ( + 81 ) * - 61 AS col2 FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - COUNT( - 75 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2885
SELECT - COUNT ( - 75 ) AS col0 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 col2, + col0 FROM tab2
----
24
46
24
64
24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL 80 * COUNT( - - col0 ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL 80 * COUNT ( - - col0 ) FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 70 AS col2 FROM tab2 AS cor0
----
630

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 70 AS col2 FROM tab2 AS cor0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT COUNT( * ) * - 32 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2889
SELECT COUNT ( * ) * - 32 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT COUNT( * ) DIV - + 79 * + 48 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT COUNT ( * ) / - + 79 * + 48 FROM tab1 AS cor0
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT DISTINCT + SUM( 70 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + SUM ( 70 ) FROM tab2
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT - col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 + + + 80 AS col2 FROM tab2 AS cor0
----
103
120
138

query I rowsort
SELECT DISTINCT + + col2 + - col2 - + - 97 FROM tab2 AS cor0
----
97

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - col0 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 6 + + col0 - + - col0 + 33 + + col1 * - col0 IN ( + col0 + - col2 * + col2 )
----

query I rowsort
SELECT - col0 * - col2 * 38 * - 34 FROM tab2
----
-1366936
-3307520
-5620200

query I rowsort
SELECT ALL + + col0 - + col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT ALL 90, COUNT( * ) col2 FROM tab2
----
90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2900
SELECT ALL 90, COUNT ( * ) col2 FROM tab2
----
90
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2901
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) + - - 97 AS col0, - 20 AS col1 FROM tab2
----
97
-20

skipif mysql # not compatible
query II rowsort label-2901
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) + - - 97 AS col0, - 20 AS col1 FROM tab2
----
97
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL + MIN( - + 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + MIN ( - + 91 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT - MIN( DISTINCT - col2 ) * - COUNT( * ) + - COUNT( - col0 ) AS col0 FROM tab0
----
-300

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - MIN ( DISTINCT - col2 ) * - COUNT ( * ) + - COUNT ( - col0 ) AS col0 FROM tab0
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT - COUNT( + col2 ) * - COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-2904
SELECT - COUNT ( + col2 ) * - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
9
3

query I rowsort
SELECT DISTINCT + ( 29 ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT + + ( - + 60 ) FROM tab1 AS cor0 WHERE col2 > + 84
----
-60

query I rowsort
SELECT - col2 + + col0 * + - col0 AS col0 FROM tab2
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COUNT( * ) + + - COUNT( * ) * COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) + + - COUNT ( * ) * COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT 32 + + COUNT( * ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-2909
SELECT 32 + + COUNT ( * ) FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT + AVG ( col1 ) FROM tab2 WHERE - + col2 * + CAST( col0 AS SIGNED ) + + - col0 + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT + AVG ( col1 ) FROM tab2 WHERE - + col2 * + CAST ( col0 AS INTEGER ) + + - col0 + + col1 IS NULL
----
NULL

query I rowsort
SELECT + 65 * + 81 AS col2 FROM tab0
----
5265
5265
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT + + SUM( + col0 ) * + - 15 AS col1 FROM tab0 cor0
----
-2985

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + + SUM ( + col0 ) * + - 15 AS col1 FROM tab0 cor0
----
-2985

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= + col1 * ( - col0 )
----

query I rowsort
SELECT + col1 * + ( + - col2 ) AS col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT 19 DIV - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2915
SELECT 19 / - COUNT ( * ) FROM tab1
----
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT - MAX( DISTINCT - - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - MAX ( DISTINCT - - col0 ) FROM tab2
----
-75

query II rowsort
SELECT col2 * + col2 * + + col2 AS col2, - col2 FROM tab2 AS cor0
----
12167
-23
195112
-58
64000
-40

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4

query I rowsort
SELECT ALL 90 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + 77 AND 36 + - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT - COUNT( + col1 ) AS col1, - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3
199

skipif mysql # not compatible
query II rowsort label-2923
SELECT - COUNT ( + col1 ) AS col1, - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT COUNT( ALL - 18 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2924
SELECT COUNT ( ALL - 18 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - col0 / ( + col2 ) - + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT ALL + - col0 * 12 FROM tab2 cor0
----
-552
-768
-900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2927
SELECT - CAST( - - col0 AS SIGNED ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-2927
SELECT - CAST ( - - col0 AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - col2 * - 25 + + col0 AS col0 FROM tab1 AS cor0
----
1560
1791
2451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - - col0 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 1 + - 96 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL col0 + - + col0 + col2 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL - 71 + + SUM( ALL + 85 ) AS col0 FROM tab1
----
184

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - 71 + + SUM ( ALL + 85 ) AS col0 FROM tab1
----
184

query I rowsort
SELECT DISTINCT - + AVG ( ALL + col0 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN - 19 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT col0 + + 98 - 76 + + 91 + - + 98 DIV + col1 AS col2 FROM tab0
----
112
127
196

skipif mysql # not compatible
query I rowsort label-2934
SELECT col0 + + 98 - 76 + + 91 + - + 98 / + col1 AS col2 FROM tab0
----
112
127
196

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT + + ( ( - - 12 ) ) DIV col2 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT + + ( ( - - 12 ) ) / col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + 1 + 57 AS col0 FROM tab0
----
104
156
67

query II rowsort
SELECT 36, col2 FROM tab2
----
36
23
36
40
36
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2938
SELECT - CAST( NULL AS SIGNED ), col0 * - col1 + + col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 22 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2938
SELECT - CAST ( NULL AS INTEGER ), col0 * - col1 + + col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - + col2 * + + col0 * - col1 FROM tab2 AS cor0
----
-1241034
-16904100
-7884800

query I rowsort
SELECT DISTINCT + 50 FROM tab0 WHERE NULL <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * - - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * - - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 15 * + + col1 + - 23 AS col2 FROM tab2 AS cor0
----
1132
742
982

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2944
SELECT * FROM tab1 cor0 WHERE NOT CAST( + + CAST( 92 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2944
SELECT * FROM tab1 cor0 WHERE NOT CAST ( + + CAST ( 92 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 62
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL + 26 * + COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + 26 * + COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT + col1 + - 7 AS col1 FROM tab0
----
-6
14
74

query I rowsort
SELECT ALL + col1 * + 47 AS col2 FROM tab0
----
3807
47
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + 93 + - - col1 col0, col2 FROM tab0
----
-4290
47
-909
10
-9206
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2951
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - + ( - CAST( - COUNT( * ) AS SIGNED ) ), - MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3
51

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - + ( - CAST ( - COUNT ( * ) AS INTEGER ) ), - MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3
51

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + col0 * - 41 * - 49 AS col2 FROM tab0 AS cor0
----
174783
194873
30135

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ( + + COUNT( + - 26 ) ) + 16 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2954
SELECT ( + + COUNT ( + - 26 ) ) + 16 FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL + 93 + col2 + + col1 FROM tab2 AS cor0
----
167
210
218

query I rowsort
SELECT DISTINCT 48 + + 43 AS col1 FROM tab2 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL + - CAST( NULL AS SIGNED ) + - 93 AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 93 AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT - + col1 + - - CAST( - 24 AS SIGNED ) * - - col2 FROM tab1 cor0
----
-1421
-1679
-2318

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - + col1 + - - CAST ( - 24 AS INTEGER ) * - - col2 FROM tab1 cor0
----
-1421
-1679
-2318

query I rowsort
SELECT + + ( - 5 ) AS col0 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 73 + - - col0 + - - col1 * + + col1 AS col0 FROM tab2
----
2720
4637
6066

query I rowsort
SELECT DISTINCT - col1 * + - ( - col1 ) AS col1 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT ALL - col0, col2 AS col2 FROM tab0 WHERE 90 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2964
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN + 57 AND - 12 / - + col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2964
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN + 57 AND - 12 / - + col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col0 * + col0 + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-2070
-4032
-5550

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - col1 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT DISTINCT MAX( DISTINCT 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-2967
SELECT DISTINCT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - - COUNT( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2968
SELECT - - COUNT ( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

query II rowsort
SELECT DISTINCT ( + ( + col2 ) ), 40 FROM tab2
----
23
40
40
40
58
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2970
SELECT DISTINCT col0 AS col2, + col2 * + - 19 * + ( + + CAST( col0 AS SIGNED ) ) FROM tab1
----
51
-93024
85
-95285
91
-117572

skipif mysql # not compatible
query II rowsort label-2970
SELECT DISTINCT col0 AS col2, + col2 * + - 19 * + ( + + CAST ( col0 AS INTEGER ) ) FROM tab1
----
51
-93024
85
-95285
91
-117572

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT ALL COUNT( * ) AS col1, 81 FROM tab1
----
3
81

skipif mysql # not compatible
query II rowsort label-2971
SELECT ALL COUNT ( * ) AS col1, 81 FROM tab1
----
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ( - MIN( ALL 48 ) ) col1 FROM tab1
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2972
SELECT ( - MIN ( ALL 48 ) ) col1 FROM tab1
----
-48

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 + - - 50 - + col0 AND col0
----

query II rowsort
SELECT ( col1 ) * + col1 * + - col1 AS col0, + col0 AS col2 FROM tab1
----
-103823
91
-125
85
-2744
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2975
SELECT ALL - col0 AS col2, - 71 DIV + 98 col1 FROM tab0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2975
SELECT ALL - col0 AS col2, - 71 / + 98 col1 FROM tab0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT DISTINCT - 21 * + col0 FROM tab1
----
-1071
-1785
-1911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col1 ) * col2 col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2978
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE - CAST( NULL AS DECIMAL ) * + col1 + + col1 * - - 46 IN ( - + 72 * 86 * + ( col1 ) + 95 )
----

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE - CAST ( NULL AS REAL ) * + col1 + + col1 * - - 46 IN ( - + 72 * 86 * + ( col1 ) + 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT + COUNT( * ) + 15 AS col2 FROM tab1 WHERE NOT - + 34 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-2979
SELECT + COUNT ( * ) + 15 AS col2 FROM tab1 WHERE NOT - + 34 IS NOT NULL
----
15

query I rowsort
SELECT ALL - col1 + 36 FROM tab1 AS cor0
----
-11
22
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - 20 col0 FROM tab2 AS cor0
----
26
44
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE + col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL + 99 + + 18 FROM tab0
----
117
117
117

query I rowsort
SELECT DISTINCT + col0 * + 73 * col2 FROM tab1
----
357408
366095
451724

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col1 + col0 + col1 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + 37 col2, col2 * + col0 FROM tab2 AS cor0
----
-1480
2560
-2146
4350
-851
1058

query I rowsort
SELECT 27 + col2 + + - col2 * + 53 FROM tab1 AS cor0
----
-3041
-3509
-4965

query I rowsort
SELECT - + col2 + + col0 * col1 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2990
SELECT + CAST( + 90 AS SIGNED ) + col0 + 53 * - col2 * + + col0 * col2 AS col2, 73 AS col0 FROM tab1 AS cor0
----
-15681730
73
-22301371
73
-24910707
73

skipif mysql # not compatible
query II rowsort label-2990
SELECT + CAST ( + 90 AS INTEGER ) + col0 + 53 * - col2 * + + col0 * col2 AS col2, 73 AS col0 FROM tab1 AS cor0
----
-15681730
73
-22301371
73
-24910707
73

query I rowsort
SELECT DISTINCT + 6 + - col1 FROM tab2 AS cor0
----
-45
-61
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT 63 + SUM( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-2992
SELECT 63 + SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT DISTINCT col1 + CAST( - ( - 74 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
155
75
95

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT col1 + CAST ( - ( - 74 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
155
75
95

query I rowsort
SELECT - + col1 * + + 4 * - + col1 + + ( + 91 ) FROM tab2 AS cor0
----
10495
18047
23807

query I rowsort
SELECT ALL - - 87 * - + col0 + - col2 FROM tab2 AS cor0
----
-4025
-5608
-6583

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE ( + + col2 ) BETWEEN ( - 29 ) + 31 AND - 8
----

query I rowsort
SELECT 17 + - 81 AS col1 FROM tab1
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2998
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) * - ( col2 ) + col2 AND + CAST( NULL AS SIGNED ) * + 13 * 16
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * - ( col2 ) + col2 AND + CAST ( NULL AS INTEGER ) * + 13 * 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT - + 50 AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-2999
SELECT - + 50 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-50
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT ( CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3000
SELECT ( CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 80 col1 FROM tab2 AS cor0 WHERE + 11 IS NOT NULL
----
-1840
-3200
-4640

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE col2 >= ( - - col0 )
----
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT 42 * col1 - + - CAST( NULL AS SIGNED ) + 97 * + - 49 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT 42 * col1 - + - CAST ( NULL AS INTEGER ) + 97 * + - 49 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3004
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 * + + 24 * - col1 <> + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT MAX( ALL - col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3006
SELECT DISTINCT MAX ( ALL - col2 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 46 * - + col2 + col0 * - 56 * + - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT - 74 DIV 80 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3008
SELECT - 74 / 80 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT + 41 DIV + - MAX( - + col2 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3009
SELECT + 41 / + - MAX ( - + col2 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT + 54 * col2 * - col2 FROM tab1
----
-187974
-249696
-497664

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT DISTINCT ( + ( + ( + col0 ) ) ) DIV col0 + ( + 72 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT ( + ( + ( + col0 ) ) ) / col0 + ( + 72 ) FROM tab0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - col1 * 84 + + + col2 + - col2 + col2 * - col2 * 87 col0 FROM tab0 AS cor0
----
-45744
-743307
-852771

query I rowsort
SELECT - - 45 AS col0 FROM tab2 cor0
----
45
45
45

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT - 6 IS NOT NULL WHERE ( NULL ) IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT + 9 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / col0 + + col1 >= ( - col1 * + - 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + - 41 + MIN( col2 ) - + 6 AS col1 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + - 41 + MIN ( col2 ) - + 6 AS col1 FROM tab2 cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3019
SELECT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT ALL - 65 + - MIN( DISTINCT + col2 ) AS col2, + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-75
0

skipif mysql # not compatible
query II rowsort label-3020
SELECT ALL - 65 + - MIN ( DISTINCT + col2 ) AS col2, + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-75
0

query I rowsort
SELECT ALL 13 + + col2 * col1 FROM tab1
----
1357
308
3209

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT 79 - 25 DIV + + col0 FROM tab0
----
78
79
79

skipif mysql # not compatible
query I rowsort label-3022
SELECT 79 - 25 / + + col0 FROM tab0
----
78
79
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT - 82 DIV - 50 - - ( + ( + - 45 ) ) col2 FROM tab1 WHERE NULL IS NULL
----
-44
-44
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3023
SELECT - 82 / - 50 - - ( + ( + - 45 ) ) col2 FROM tab1 WHERE NULL IS NULL
----
-44
-44
-44

query I rowsort
SELECT - col0 * col1 - col1 AS col2 FROM tab0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT + 25, - COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
25
-3

skipif mysql # not compatible
query II rowsort label-3025
SELECT + 25, - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
25
-3

query I rowsort
SELECT ( - + 20 ) FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3027
SELECT ALL ( + - col2 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL ( + - col2 ) / - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT - 48 DIV - SUM( - + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT - 48 / - SUM ( - + col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3029
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT 42 + CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-3029
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT 42 + CAST ( NULL AS INTEGER ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT COUNT( col0 ) * - COUNT( + col2 ) * COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3030
SELECT COUNT ( col0 ) * - COUNT ( + col2 ) * COUNT ( * ) FROM tab1
----
-27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + + ( - col2 ) ) * - + col1 * + 6 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - 3 FROM tab0 AS cor0
----
-141
-297
-30

query I rowsort
SELECT DISTINCT - - ( + 88 ) FROM tab1 AS cor0
----
88

query I rowsort
SELECT col0 * + + col0 * - col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT + CAST( NULL AS SIGNED ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + CAST ( NULL AS INTEGER ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT + 71 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + 71 / col2 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3037
SELECT ALL - CAST( NULL AS SIGNED ) / - + ( - - SUM( DISTINCT 94 ) ) * - COUNT( * ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3037
SELECT ALL - CAST ( NULL AS INTEGER ) / - + ( - - SUM ( DISTINCT 94 ) ) * - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

query I rowsort
SELECT + 88 + 87 FROM tab1 AS cor0 WHERE NOT 6 < - - 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT - col1 DIV - + col2 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3039
SELECT - col1 / - + col2 AS col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ( + - col1 ) * + 16 * + - col0 FROM tab0 cor0
----
1552
19440
29232

query II rowsort
SELECT ALL - col1, + 65 AS col2 FROM tab0
----
-1
65
-21
65
-81
65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 57
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IN ( - col0, + 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT + col2 + 62 * + 28 + 42 DIV + col1 FROM tab0
----
1748
1783
1877

skipif mysql # not compatible
query I rowsort label-3044
SELECT + col2 + 62 * + 28 + 42 / + col1 FROM tab0
----
1748
1783
1877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 98 + + - col0 col2, - 9 * + col2 + + - col1 * - col2 AS col2 FROM tab1
----
13
-236
47
480
7
2584

query I rowsort
SELECT DISTINCT - 26 * + 63 AS col2 FROM tab1
----
-1638

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT + col0 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 56 <> + + col0
----
3

skipif mysql # not compatible
query I rowsort label-3048
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 56 <> + + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL MIN( - - 38 ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL MIN ( - - 38 ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT - col2 + - - 22 + col1 FROM tab1 AS cor0
----
-32
-60
1

query I rowsort
SELECT DISTINCT - 61 + col1 AS col0 FROM tab0 AS cor0
----
-40
-60
20

query I rowsort
SELECT ALL + 71 FROM tab2 AS cor0 WHERE + ( col2 ) IS NOT NULL
----
71
71
71

query I rowsort
SELECT DISTINCT + col2 + + 97 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT ALL ( + 52 ) AS col2, + MIN( ALL - col2 ) AS col1 FROM tab1 cor0
----
52
-96

skipif mysql # not compatible
query II rowsort label-3054
SELECT ALL ( + 52 ) AS col2, + MIN ( ALL - col2 ) AS col1 FROM tab1 cor0
----
52
-96

query I rowsort
SELECT + col1 - 37 * - col2 AS col2 FROM tab2 AS cor0
----
1557
2213
902

query I rowsort
SELECT + - 71 + - + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1415
-3267
-366

query I rowsort
SELECT + + 1 + col0 AS col2 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + + 87 + - + COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3058
SELECT + + 87 + - + COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 70 * - 10 + + col0 FROM tab2 cor0
----
-625
-636
-654

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3061
SELECT DISTINCT + - 17 DIV + CAST( - 27 AS SIGNED ) - - 5 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + - 17 / + CAST ( - 27 AS INTEGER ) - - 5 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL - COUNT( * ) + 81 AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - COUNT ( * ) + 81 AS col0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT - MIN( ( + - col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT - MIN ( ( + - col0 ) ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT DISTINCT + SUM( ALL - + 70 ) AS col0 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT + SUM ( ALL - + 70 ) AS col0 FROM tab0
----
-210

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3065
SELECT * FROM tab1 WHERE NOT col0 / col2 <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3065
SELECT * FROM tab1 WHERE NOT col0 / col2 <= - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3066
SELECT - COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 24 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - 94 * + col1 * col1 AS col0 FROM tab2 cor0
----
-244494
-421966
-557326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE NOT + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ( COUNT( DISTINCT - + col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3070
SELECT ( COUNT ( DISTINCT - + col2 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT + + CAST( - 68 AS SIGNED ) + - + col2 FROM tab0 AS cor0
----
-115
-167
-78

skipif mysql # not compatible
query I rowsort label-3071
SELECT + + CAST ( - 68 AS INTEGER ) + - + col2 FROM tab0 AS cor0
----
-115
-167
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT 48 * + - col0 * + col1 AS col1 FROM tab2 cor0 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) IN ( + + ( + col2 ) / + col1, + col1 + - col1, + col1 )
----

skipif mysql # not compatible
query I rowsort label-3072
SELECT 48 * + - col0 * + col1 AS col1 FROM tab2 cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) IN ( + + ( + col2 ) / + col1, + col1 + - col1, + col1 )
----

query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT ALL 62 + + col0 AS col0, + col2 * - 53 AS col1 FROM tab0 AS cor0
----
149
-530
159
-5247
77
-2491

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT DISTINCT + 46 DIV + col1 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
162
44
48

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT + 46 / + col1 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
162
44
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL 14 + - COUNT( * ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL 14 + - COUNT ( * ) AS col2 FROM tab1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, - col2 col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT ( - + COUNT( ALL 41 ) ) AS col0, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3078
SELECT ( - + COUNT ( ALL 41 ) ) AS col0, COUNT ( * ) FROM tab1
----
-3
3

query II rowsort
SELECT ( - ( - col1 ) ), - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 10 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3082
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 IN ( - col0, CAST( NULL AS SIGNED ), ( + CAST( NULL AS SIGNED ) ) + col2 * + + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3082
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 IN ( - col0, CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + col2 * + + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 21 BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 22 AND - 81 + + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0, col0 * - col0 AS col2 FROM tab0 AS cor0
----
-15
-225
-87
-7569
-97
-9409

query II rowsort
SELECT + col2 - 83 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
-36
15
-73
87
16
97

query II rowsort
SELECT + col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col1 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT ALL 35 AS col0 FROM tab0 WHERE - 28 = NULL
----

query II rowsort
SELECT - col2 * col1, + col1 FROM tab0
----
-210
21
-3807
81
-99
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - + col2 + col0 IS NOT NULL ) )
----

query I rowsort
SELECT ALL + - 72 FROM tab1 WHERE ( col1 + + + col0 * + col2 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT SUM( ALL + 94 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT SUM ( ALL + 94 ) FROM tab1 AS cor0
----
282

query I rowsort
SELECT - ( - 78 ) / - 66 * - + col0 + - + col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - - col2 * - 38 FROM tab2 AS cor0
----
-1520
-2204
-874

query I rowsort
SELECT - + col0 * - 71 + - col0 FROM tab0 AS cor0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51

query I rowsort
SELECT DISTINCT + 75 * - col0 * col1 FROM tab1 AS cor0
----
-31875
-320775
-53550

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT DISTINCT + col1 DIV - ( + col0 ) + + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-210
-3812
-99

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + col1 / - ( + col0 ) + + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-210
-3812
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-3102
SELECT ALL col1 * - col0 + - ( + + col0 ) - + col2 DIV - + 83 AS col2, 15 DIV - col1 * + - 87 col1 FROM tab2 AS cor0
----
-2392
0
-4992
0
-5100
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3102
SELECT ALL col1 * - col0 + - ( + + col0 ) - + col2 / - + 83 AS col2, 15 / - col1 * + - 87 col1 FROM tab2 AS cor0
----
-2392
0
-4992
0
-5100
0

query I rowsort
SELECT DISTINCT - - col1 + + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - MIN( - 82 ) + 80 * ( + 75 ) + - 15 + + + MIN( DISTINCT - + 77 ) + MAX( DISTINCT + 79 ) * - 94 col2 FROM tab1 AS cor0
----
-1436

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3104
SELECT ALL - MIN ( - 82 ) + 80 * ( + 75 ) + - 15 + + + MIN ( DISTINCT - + 77 ) + MAX ( DISTINCT + 79 ) * - 94 col2 FROM tab1 AS cor0
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + 26 * - COUNT( * ) FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3105
SELECT + 26 * - COUNT ( * ) FROM tab2 cor0
----
-78

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3107
SELECT * FROM tab1 WHERE CAST( - col0 AS SIGNED ) + + - ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3107
SELECT * FROM tab1 WHERE CAST ( - col0 AS INTEGER ) + + - ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col0 + + - col2
----

query I rowsort
SELECT 43 * col0 + + + 13 + 64 + col2 FROM tab1
----
2366
3791
4058

query I rowsort
SELECT 31 + - 57 AS col0 FROM tab0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 43 ) * + col1 col0 FROM tab1
----
2021
215
602

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col1, col0 + 92 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3113
SELECT ALL - col1 DIV + col2 AS col0, col2 FROM tab2
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-3113
SELECT ALL - col1 / + col2 AS col0, col2 FROM tab2
----
-1
40
-1
58
-2
23

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN - col0 AND + + col0 + col0 * + col0 * + col1 + 13
----

query I rowsort
SELECT DISTINCT - 11 * + - col1 * col1 FROM tab1 AS cor0
----
2156
24299
275

query I rowsort
SELECT DISTINCT - ( - + col0 ) - + + col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3117
SELECT ALL * FROM tab0 WHERE + - CAST( + 98 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3117
SELECT ALL * FROM tab0 WHERE + - CAST ( + 98 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + - COUNT( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3118
SELECT + - COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 64 AS col0 FROM tab0 AS cor0
----
-10
-64
-47
-64
-99
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT 80 * - MAX( ALL col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
-6157

skipif mysql # not compatible
query I rowsort label-3120
SELECT 80 * - MAX ( ALL col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-6157

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + + COUNT( - + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3121
SELECT + + COUNT ( - + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 27 / + ( - - 57 ) BETWEEN + 57 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( 2 ) AS col0 FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT - + SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - + SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 48 * - ( + col0 ) AS col2 FROM tab2
----
2208
3072
3600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3126
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 + + col0 AND - col1 * + col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3126
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 + + col0 AND - col1 * + col0 * - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) + + col1 >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col2 * + - col1 col0 FROM tab2
----
46
1173
64
3080
75
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 96 col2, + 97 * - col1 - + col2 FROM tab0
----
96
-196
96
-2047
96
-7904

query II rowsort
SELECT DISTINCT col1 AS col0, + 72 * + + col0 * - col0 + + 37 FROM tab2
----
51
-152315
67
-404963
77
-294875

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3131
SELECT ALL - 53 DIV - 90 AS col0, ( + - COUNT( * ) ) AS col2 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-3131
SELECT ALL - 53 / - 90 AS col0, ( + - COUNT ( * ) ) AS col2 FROM tab2
----
0
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT ALL SUM( - CAST( - + 27 AS SIGNED ) ) col0 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3132
SELECT ALL SUM ( - CAST ( - + 27 AS INTEGER ) ) col0 FROM tab1
----
81

query II rowsort
SELECT col2 AS col1, col2 + - + col0 AS col1 FROM tab0
----
10
-77
47
32
99
2

query II rowsort
SELECT ALL - col1, ( 30 ) FROM tab2 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - ( MAX( DISTINCT + col1 ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3135
SELECT - ( MAX ( DISTINCT + col1 ) ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT MIN( col0 ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3136
SELECT MIN ( col0 ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + 55 * + col1 FROM tab0
----
1155
4455
55

query I rowsort
SELECT ALL 80 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - col2 * + col2 + + + col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT ALL CAST( + + ( + 80 ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL CAST ( + + ( + 80 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 + - col0 col0, - 92 * - + col2 * + col0 FROM tab0 AS cor0
----
-174
80040
-194
883476
-30
64860

query I rowsort
SELECT - col0 * + col2 FROM tab1 cor0 WHERE - 77 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN 11 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + + ( col0 ) * - col0 AS col0 FROM tab0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE 80 NOT BETWEEN - - col1 / - 95 AND - col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT 30 * - 20 + - MAX( + col0 ) + - 18 FROM tab1
----
-709

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT 30 * - 20 + - MAX ( + col0 ) + - 18 FROM tab1
----
-709

query III rowsort
SELECT * FROM tab1 WHERE 2 * - + 15 - col2 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - + ( - col1 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT - ( col1 ) - ( - 38 ) + + col2 AS col0 FROM tab0
----
136
27
4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * col2 > - 13
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3153
SELECT - 35 - + 95 * col0 DIV - + col2 AS col0, 6 FROM tab0
----
-5
6
58
6
791
6

skipif mysql # not compatible
query II rowsort label-3153
SELECT - 35 - + 95 * col0 / - + col2 AS col0, 6 FROM tab0
----
-5
6
58
6
791
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT + 53 - - - 74 + + MIN( + - ( - 53 ) ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-3154
SELECT + 53 - - - 74 + + MIN ( + - ( - 53 ) ) FROM tab2
----
32

query I rowsort
SELECT DISTINCT + - 77 AS col2 FROM tab1 cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) + 9 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 9 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 26 + + + col0 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3158
SELECT DISTINCT * FROM tab2 WHERE NOT 97 < CAST( NULL AS SIGNED ) / + col2
----

skipif mysql # not compatible
query III rowsort label-3158
SELECT DISTINCT * FROM tab2 WHERE NOT 97 < CAST ( NULL AS INTEGER ) / + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT + col2 DIV + 97 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + col2 / + 97 FROM tab0
----
0
1

query I rowsort
SELECT col1 * col0 + - ( - col1 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 12 + 48 BETWEEN col2 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT + col2 - 38 DIV - 96 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3162
SELECT + col2 - 38 / - 96 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND col1
----

query I rowsort
SELECT col1 - 69 FROM tab0
----
-48
-68
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT + col0 + 15 DIV col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + col0 + 15 / col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT MIN( ALL 15 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3166
SELECT MIN ( ALL 15 ) AS col0 FROM tab2
----
15

query I rowsort
SELECT col1 + + col0 AS col1 FROM tab0 WHERE - 34 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col2 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ( COUNT( * ) ) FROM tab1 WHERE NOT ( - 20 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT ( COUNT ( * ) ) FROM tab1 WHERE NOT ( - 20 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT COUNT( * ) + 66 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT COUNT ( * ) + 66 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT - MAX( ALL - 57 ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3171
SELECT - MAX ( ALL - 57 ) AS col0 FROM tab1
----
57

query I rowsort
SELECT + ( 91 ) AS col0 FROM tab1
----
91
91
91

query I rowsort
SELECT 32 + 89 FROM tab1
----
121
121
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT 70 + 95 * - COUNT( * ) col0 FROM tab0
----
-215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT 70 + 95 * - COUNT ( * ) col0 FROM tab0
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL ( - COUNT( - 32 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL ( - COUNT ( - 32 ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 / col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col2 FROM tab1 WHERE NOT - 17 * col0 <= NULL
----

query I rowsort
SELECT ( 95 ) FROM tab2 WHERE ( NULL ) >= ( 43 - 14 )
----

query I rowsort
SELECT DISTINCT + col0 + 72 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col1 * + 33 + - ( - 33 ) / + col1 )
----

query I rowsort
SELECT DISTINCT 94 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT + SUM( - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + SUM ( - col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT - 11 NOT BETWEEN ( - col0 ) AND + col0
----
-3

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 11 NOT BETWEEN ( - col0 ) AND + col0
----
-3

query I rowsort
SELECT DISTINCT 16 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT + col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) > 42
----

skipif mysql # not compatible
query I rowsort label-3184
SELECT + col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) > 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( DISTINCT + 26 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( DISTINCT + 26 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT - 74 AS col0 FROM tab2 WHERE NOT ( NULL ) > - ( - col2 ) - 43
----

query I rowsort
SELECT - 98 + + 28 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT DISTINCT - col2 DIV 54 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT - col2 / 54 AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT 48 + - col0 NOT IN ( + 95 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT CAST( - 77 AS SIGNED ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT CAST ( - 77 AS INTEGER ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT MAX( + 51 ) + 24 FROM tab0 AS cor0 WHERE - 59 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT MAX ( + 51 ) + 24 FROM tab0 AS cor0 WHERE - 59 <> NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 15 IS NULL
----

query I rowsort
SELECT DISTINCT + + 46 + col1 * col1 AS col2 FROM tab1 AS cor0
----
2255
242
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3194
SELECT CAST( NULL AS DECIMAL ) * col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT CAST ( NULL AS REAL ) * col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 58 + 4 * + col2 FROM tab0 AS cor0
----
246
454
98

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT ALL - 55 * 36 - col1 FROM tab2 AS cor0
----
-2031
-2047
-2057

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL ( MIN( + 19 ) ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL ( MIN ( + 19 ) ) AS col1 FROM tab1
----
19

query I rowsort
SELECT 90 + + - col2 AS col2 FROM tab1
----
-6
22
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + - 44 + 49 col1 FROM tab2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT SUM( ALL + + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT SUM ( ALL + + col0 ) AS col2 FROM tab1
----
227

query III rowsort
SELECT * FROM tab1 WHERE + 4 + col2 BETWEEN ( col0 ) AND + 84 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 59 - - - col2 AS col1 FROM tab1
----
-118
-127
-155

query I rowsort
SELECT ALL ( + col0 ) - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 99 * - col1 + 31 * col0 FROM tab1
----
-1832
195
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT + - COUNT( * ) + + + 73 AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + - COUNT ( * ) + + + 73 AS col0 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 19 * + COUNT( * ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 19 * + COUNT ( * ) FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT 29 FROM tab2, tab0 cor0 WHERE NOT NULL = - 87
----

query II rowsort
SELECT - col2 AS col2, - col2 AS col1 FROM tab1
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT - MAX( + 20 ) AS col1 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - MAX ( + 20 ) AS col1 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + ( - 31 ) * - + 12 FROM tab1 AS cor0
----
372

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 NOT IN ( - + 66 * + 81 )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( 82 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > ( 57 * ( 62 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + 60 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 60 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT + 65 * COUNT( * ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3218
SELECT + 65 * COUNT ( * ) FROM tab1 AS cor0
----
195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 9 NOT IN ( + 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL - + 19 DIV + 31 + + col2 * + 53 AS col1 FROM tab2 cor0
----
1219
2120
3074

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL - + 19 / + 31 + + col2 * + 53 AS col1 FROM tab2 cor0
----
1219
2120
3074

query I rowsort
SELECT ALL 66 * + 96 AS col1 FROM tab2 WHERE + col1 NOT BETWEEN ( col2 ) AND ( + col2 )
----
6336
6336
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col2 FROM tab2
----
79

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT - col2 >= - 12 * - col0
----
3

skipif mysql # not compatible
query I rowsort label-3224
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col2 >= - 12 * - col0
----
3

query II rowsort
SELECT ALL 37 * + col1 AS col0, + ( 33 ) * col0 FROM tab0
----
2997
495
37
3201
777
2871

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-51
-85
-91

query I rowsort
SELECT 30 AS col2 FROM tab1 AS cor0 WHERE NOT - ( - 8 ) * col2 > ( + 70 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col1 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT ALL - - COUNT( * ), - 29 AS col1 FROM tab1 AS cor0
----
3
-29

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL - - COUNT ( * ), - 29 AS col1 FROM tab1 AS cor0
----
3
-29

query I rowsort
SELECT + - 6 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - - col2, - col1 )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE col2 * - + 66 * + col1 < ( col0 + col0 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT 52 DIV - col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + + col1 AND - 2 DIV col2 + + col1 * - col0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT 52 / - col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + + col1 AND - 2 / col2 + + col1 * - col0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 94 NOT IN ( - CAST( - + 1 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 94 NOT IN ( - CAST ( - + 1 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + + col0 + col0 + 11
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - 64 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + - col2 AS col2 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT ALL 29 + + - ( - + col0 ) AS col0 FROM tab0
----
116
126
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL ( col2 ) * - col0 * - col2 - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3238
SELECT ALL ( col2 ) * - col0 * - col2 - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT col0 - 41 FROM tab2
----
23
34
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3241
SELECT ALL * FROM tab1 WHERE NOT - + col0 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3241
SELECT ALL * FROM tab1 WHERE NOT - + col0 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 28 - + col0 AS col2 FROM tab0
----
-59
-69
13

query II rowsort
SELECT ALL col1 AS col1, + col0 + ( - col2 ) - - col0 FROM tab2
----
51
69
67
92
77
88

query I rowsort
SELECT DISTINCT + col0 - col0 + - col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT ALL + 24 AS col2, - COUNT( * ) FROM tab1 cor0
----
24
-3

skipif mysql # not compatible
query II rowsort label-3245
SELECT ALL + 24 AS col2, - COUNT ( * ) FROM tab1 cor0
----
24
-3

query I rowsort
SELECT + 34 * - col0 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT ALL 13 * - col2 AS col0 FROM tab2
----
-299
-520
-754

query I rowsort
SELECT + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE ( NOT - col2 < 4 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col2 AS col1, + 84 + - col0 col2 FROM tab0 cor0
----
-705
69
-870
-3
-9603
-13

query I rowsort
SELECT DISTINCT - - 26 * + - col2 AS col1 FROM tab0 AS cor0
----
-1222
-2574
-260

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3252
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( + + CAST( - + 92 AS DECIMAL ) ) * + col1 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3252
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( + + CAST ( - + 92 AS REAL ) ) * + col1 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - COUNT( * ) * - 96 AS col2 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - COUNT ( * ) * - 96 AS col2 FROM tab2 AS cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT NULL < ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT col2 * - 43 BETWEEN col1 AND CAST( + 13 AS SIGNED )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3256
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT col2 * - 43 BETWEEN col1 AND CAST ( + 13 AS INTEGER )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 59 + + col0, + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT ALL col0 * + + 40 AS col0 FROM tab0
----
3480
3880
600

query I rowsort
SELECT + 68 * - 39 AS col0 FROM tab0
----
-2652
-2652
-2652

query I rowsort
SELECT - ( + 47 ) * + col0 + + - col1 FROM tab1
----
-2411
-4000
-4324

query II rowsort
SELECT ALL col1 AS col0, 4 FROM tab1
----
14
4
47
4
5
4

query I rowsort
SELECT - 60 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT + 3 + - CAST( col1 AS SIGNED ) DIV + col2 + - col0 + 93 + - - col1 + - col1 FROM tab2 AS cor0
----
20
31
48

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT + 3 + - CAST ( col1 AS INTEGER ) / + col2 + - col0 + 93 + - - col1 + - col1 FROM tab2 AS cor0
----
20
31
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT CAST( NULL AS SIGNED ) * - SUM( ALL col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT CAST ( NULL AS INTEGER ) * - SUM ( ALL col1 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3266
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + col0 * + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT - COUNT( * ) + ( + 63 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT - COUNT ( * ) + ( + 63 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT - col2 + - CAST( NULL AS SIGNED ) - - + CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT - col2 + - CAST ( NULL AS INTEGER ) - - + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - + 18 AS col2 FROM tab1 AS cor0
----
-114
-77
-86

query II rowsort
SELECT - - 39 + 76, + col1 AS col1 FROM tab1 AS cor0
----
115
14
115
47
115
5

query II rowsort
SELECT DISTINCT + col2 + - - 3 AS col0, 41 AS col1 FROM tab0 AS cor0
----
102
41
13
41
50
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL + 89 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + 89 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT - - col0 * - + ( + 37 ) + - col2 FROM tab0 AS cor0
----
-3229
-3688
-602

query I rowsort
SELECT - col0 FROM tab2 WHERE + ( + 80 ) + col2 + - col0 * ( + col0 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT 81 * + 3 * - col2 - 96 FROM tab0
----
-11517
-24153
-2526

query I rowsort
SELECT 82 * - 39 AS col1 FROM tab2
----
-3198
-3198
-3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT - 20 DIV 78 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 20 / 78 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + - col1 + col2 BETWEEN 62 AND - col1
----
46
64
75

query I rowsort
SELECT col0 * + - 90 - + 39 * - col1 AS col0 FROM tab2 AS cor0
----
-2151
-2757
-4137

query II rowsort
SELECT ALL col2 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 - - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT COUNT( * ) - + 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-3287
SELECT COUNT ( * ) - + 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL + 68 * - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-12580

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + 68 * - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-12580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
4
4
4

query II rowsort
SELECT - col2, 7 * col2 - col2 * - - col0 AS col2 FROM tab2 cor0
----
-23
-897
-40
-2280
-58
-3944

query I rowsort
SELECT DISTINCT + + ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT MAX( ALL - 77 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3292
SELECT MAX ( ALL - 77 ) FROM tab2 cor0
----
-77

query II rowsort
SELECT + + 1 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
1
-15
1
-87
1
-97

query I rowsort
SELECT DISTINCT + col0 * 44 + - col0 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab0 WHERE NOT + 33 <= ( col1 )
----
108
98

query II rowsort
SELECT + col1 * 34, col1 FROM tab1
----
1598
47
170
5
476
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3297
SELECT ALL + ( - + col0 ) * + - 64 AS col2, - CAST( col2 AS SIGNED ) FROM tab1
----
3264
-96
5440
-59
5824
-68

skipif mysql # not compatible
query II rowsort label-3297
SELECT ALL + ( - + col0 ) * + - 64 AS col2, - CAST ( col2 AS INTEGER ) FROM tab1
----
3264
-96
5440
-59
5824
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT col2 DIV 15 * + col0 FROM tab2
----
128
225
46

skipif mysql # not compatible
query I rowsort label-3298
SELECT col2 / 15 * + col0 FROM tab2
----
128
225
46

query II rowsort
SELECT DISTINCT 98 * - 33 AS col1, col0 FROM tab1
----
-3234
51
-3234
85
-3234
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NOT col2 BETWEEN NULL AND + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NOT col2 BETWEEN NULL AND + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT + + col1 + + 4 col1 FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) * 9 - + col2 + - col0 + - + 21 * col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT + + col1 + + 4 col1 FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) * 9 - + col2 + - col0 + - + 21 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT - COUNT( * ) + 38 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT - COUNT ( * ) + 38 FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT ALL + col2 * + 65 + - 7 * CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + col2 * + 65 + - 7 * CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT MAX( + + 89 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT MAX ( + + 89 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3305
SELECT ALL 48 + col0 AS col1, + col2 DIV + col1 col0 FROM tab0 AS cor0
----
135
0
145
99
63
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3305
SELECT ALL 48 + col0 AS col1, + col2 / + col1 col0 FROM tab0 AS cor0
----
135
0
145
99
63
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3306
SELECT DISTINCT + + 23 + + 71 DIV COUNT( * ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + + 23 + + 71 / COUNT ( * ) FROM tab2 cor0
----
46

query I rowsort
SELECT - col2 + - 43 AS col0 FROM tab2
----
-101
-66
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT DISTINCT col2 DIV - + 80 AS col0 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT col2 / - + 80 AS col0 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT + - ( - col2 ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + - 24 / ( + + 93 ) / + - 88 * + col1 - + + col0 IS NULL )
----

query II rowsort
SELECT DISTINCT + - col0, - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT 82 DIV + - COUNT( * ) - - 2 - + 2 AS col0 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3312
SELECT 82 / + - COUNT ( * ) - - 2 - + 2 AS col0 FROM tab2 cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT ALL col2 DIV - - col0 + - ( col0 ) FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL col2 / - - col0 + - ( col0 ) FROM tab1 AS cor0
----
-50
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT + COUNT( * ) + + 13 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + COUNT ( * ) + + 13 FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT 3 - - + 41 AS col2 FROM tab2 cor0
----
44

query I rowsort
SELECT ALL - 83 + - col1 + + - col2 FROM tab0
----
-114
-183
-211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT + 97 * - col0 * - col2 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + 97 * - col0 * - col2 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ( + + col2 ), col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3320
SELECT DISTINCT col2 FROM tab1 WHERE + - CAST( + - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT col2 FROM tab1 WHERE + - CAST ( + - col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT COUNT( DISTINCT col0 ) col2, + 58 FROM tab2
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3321
SELECT COUNT ( DISTINCT col0 ) col2, + 58 FROM tab2
----
3
58

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab1 WHERE + col0 * + col2 * - col2 / + col0 + + col1 = + - 29 / - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT COUNT( ALL + col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3323
SELECT DISTINCT COUNT ( ALL + col2 ) col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 28 * - col1 <> + - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = + 3
----

skipif mysql # not compatible
query III rowsort label-3325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = + 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT DISTINCT 75 DIV - ( + - col0 ) FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT 75 / - ( + - col0 ) FROM tab0
----
0
5

query I rowsort
SELECT ALL + + 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT - 21 * - col0 * - col1 FROM tab0 AS cor0
----
-2037
-25515
-38367

query I rowsort
SELECT DISTINCT - + col2 + col0 * 70 FROM tab2 AS cor0
----
3197
4440
5192

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL + COUNT( 4 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + COUNT ( 4 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT DISTINCT - 21 AS col1, SUM( ALL + 78 ) FROM tab0 AS cor0
----
-21
234

skipif mysql # not compatible
query II rowsort label-3331
SELECT DISTINCT - 21 AS col1, SUM ( ALL + 78 ) FROM tab0 AS cor0
----
-21
234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3332
SELECT ALL + 56 * + - col2 - + col1 + + col2 * + 0 * col1 AS col1, col1 * - - CAST( NULL AS SIGNED ) + + 18 + - col2 AS col1 FROM tab0 AS cor0
----
-2713
NULL
-5545
NULL
-581
NULL

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL + 56 * + - col2 - + col1 + + col2 * + 0 * col1 AS col1, col1 * - - CAST ( NULL AS INTEGER ) + + 18 + - col2 AS col1 FROM tab0 AS cor0
----
-2713
NULL
-5545
NULL
-581
NULL

query II rowsort
SELECT - + 90 AS col2, col0 FROM tab1 cor0
----
-90
51
-90
85
-90
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col0
----

query I rowsort
SELECT ALL + - 7 FROM tab2 AS cor0 WHERE NOT 5 BETWEEN - col2 + col1 AND col2 * col0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - + COUNT( * ) * - - COUNT( - + col1 ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3336
SELECT - + COUNT ( * ) * - - COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col1 + - ( - col2 ) FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 8 + + ( + - col0 ) AS col1 FROM tab2
----
-38
-56
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL COUNT( + 57 ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL COUNT ( + 57 ) * COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT COUNT( * ) + - 85 AS col2, 34 AS col1 FROM tab0
----
-82
34

skipif mysql # not compatible
query II rowsort label-3340
SELECT COUNT ( * ) + - 85 AS col2, 34 AS col1 FROM tab0
----
-82
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - + 81 AS col1, 53 col1 FROM tab0
----
-3807
53
-8019
53
-810
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT col2 * + 51 - + col2 + - col1 * - col2 * - CAST( + ( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) col2 FROM tab0 WHERE NULL NOT BETWEEN col1 AND + + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3342
SELECT col2 * + 51 - + col2 + - col1 * - col2 * - CAST ( + ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2 FROM tab0 WHERE NULL NOT BETWEEN col1 AND + + col2
----

query II rowsort
SELECT - + col0, + 48 AS col0 FROM tab2 AS cor0
----
-46
48
-64
48
-75
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 78 <> + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 - - - col1 * col1 * + col2 + col0, - ( + 81 ) AS col1 FROM tab0
----
-308337
-81
-4236
-81
95
-81

query II rowsort
SELECT ( - 23 ) * 45 * - col2 - + col2, - col0 AS col1 FROM tab0
----
102366
-97
10340
-87
48598
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + 32 + + COUNT( * ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 32 + + COUNT ( * ) AS col2 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT + CAST( NULL AS SIGNED ) + - col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT + CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - col2 - - col2 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
0
23
0
40
0
58

query II rowsort
SELECT DISTINCT - col0 + col1 AS col1, ( + + 96 ) AS col0 FROM tab0 AS cor0
----
-66
96
-96
96
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT ( - SUM( ALL - - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT ( - SUM ( ALL - - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT ALL + + col0 * + col2 + - - col0 * 60 * - + ( col2 ) FROM tab1 AS cor0
----
-288864
-295885
-365092

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( ( ( + + col1 ) IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-3353
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( ( ( + + col1 ) IS NULL ) )
----
3

query I rowsort
SELECT 2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query II rowsort
SELECT ALL col2 * - + ( + col2 ), - 44 * 49 AS col2 FROM tab2
----
-1600
-2156
-3364
-2156
-529
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT ( - + 63 ) * COUNT( * ) AS col1 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT ( - + 63 ) * COUNT ( * ) AS col1 FROM tab2
----
-189

query II rowsort
SELECT + 40, col0 AS col0 FROM tab2
----
40
46
40
64
40
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col1, col2 col2 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - 99 * - + col1 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + 55 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3360
SELECT + 55 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + 12 * col0 FROM tab1 cor0
----
1020
1092
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT CAST( - + AVG ( + + col2 ) AS SIGNED ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-3363
SELECT CAST ( - + AVG ( + + col2 ) AS INTEGER ) FROM tab0
----
-52

query I rowsort
SELECT 7 + + - 10 FROM tab2
----
-3
-3
-3

query II rowsort
SELECT DISTINCT - + col2 * - + col2 * + - col1 + - col0 AS col0, - col0 FROM tab1 AS cor0 WHERE NOT col1 / ( - - col1 ) + + 56 * + col1 IS NULL
----
-129075
-51
-17490
-85
-217419
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT + col2 * + + col1 + + col0 DIV + - col1 FROM tab0 cor0
----
2
206
3807

skipif mysql # not compatible
query I rowsort label-3366
SELECT + col2 * + + col1 + + col0 / + - col1 FROM tab0 cor0
----
2
206
3807

query I rowsort
SELECT + col1 + + - col2 + + + col1 FROM tab0 AS cor0
----
-97
115
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT - COUNT( * ) * 39 + + COUNT( * ) - 25 + + + 92 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-3368
SELECT - COUNT ( * ) * 39 + + COUNT ( * ) - 25 + + + 92 / + - COUNT ( * ) FROM tab0 AS cor0
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT - COUNT( * ) + + 13 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - COUNT ( * ) + + 13 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT + ( col0 ) / - 88 * + 1 + + col1 AS col0 FROM tab0 WHERE + col1 BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT 4 * - col1 * + CAST( 11 AS SIGNED ) AS col0 FROM tab0
----
-3564
-44
-924

skipif mysql # not compatible
query I rowsort label-3371
SELECT 4 * - col1 * + CAST ( 11 AS INTEGER ) AS col0 FROM tab0
----
-3564
-44
-924

query II rowsort
SELECT ALL - col2, 21 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT MIN( + + 79 ) AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3373
SELECT MIN ( + + 79 ) AS col0 FROM tab0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * - col1 * + col2 col1 FROM tab0
----
-133245
-3465
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + MAX( - - ( + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3375
SELECT + MAX ( - - ( + col2 ) ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT - ( - 22 ) AS col2 FROM tab2
----
22

query I rowsort
SELECT DISTINCT + col0 + - - col1 + col1 AS col0 FROM tab1
----
185
79
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 52 col2 FROM tab0
----
-31
-51
29

query I rowsort
SELECT - col2 + 40 FROM tab2 cor0
----
-18
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL + MIN( DISTINCT - + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + MIN ( DISTINCT - + col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT ALL + + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT DISTINCT CAST( NULL AS SIGNED ) * 4 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3382
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 4 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT + 28 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > 67 / - col0
----

skipif mysql # not compatible
query I rowsort label-3383
SELECT + 28 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > 67 / - col0
----

query I rowsort
SELECT ALL - ( - - col2 ) * col1 * col0 * col1 AS col0 FROM tab1 AS cor0
----
-125375
-13669292
-959616

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col2 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT ALL - SUM( col2 ) AS col2, 19 FROM tab0
----
-156
19

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL - SUM ( col2 ) AS col2, 19 FROM tab0
----
-156
19

query II rowsort
SELECT ALL 42 * - col2 AS col2, col0 * - - ( - - col0 ) FROM tab1
----
-2478
7225
-2856
8281
-4032
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT + + COUNT( * ) * - ( - - 71 ) + COUNT( DISTINCT - + col2 ) col2 FROM tab0 cor0
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3389
SELECT DISTINCT + + COUNT ( * ) * - ( - - 71 ) + COUNT ( DISTINCT - + col2 ) col2 FROM tab0 cor0
----
-210

query II rowsort
SELECT DISTINCT + - col2 * + 13, ( - + 37 ) AS col1 FROM tab2 AS cor0
----
-299
-37
-520
-37
-754
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT COUNT( - col2 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3391
SELECT COUNT ( - col2 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + MIN( ALL - - 47 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3392
SELECT + MIN ( ALL - - 47 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( DISTINCT + 34 ) + + + ( 71 ) FROM tab2
----
3
72

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( DISTINCT + 34 ) + + + ( 71 ) FROM tab2
----
3
72

query II rowsort
SELECT DISTINCT col2 * + + col0 * + col2 AS col1, + col1 AS col2 FROM tab1 cor0
----
295885
5
420784
47
470016
14

query I rowsort
SELECT ALL + 72 + - col2 AS col0 FROM tab1 AS cor0
----
-24
13
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ) + - col1, 54 - - col0 col1 FROM tab0 AS cor0
----
0
141
0
151
0
69

query I rowsort
SELECT 13 + - - col0 AS col1 FROM tab1 AS cor0
----
104
64
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3398
SELECT - 1 DIV + - SUM( + - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT - 1 / + - SUM ( + - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT ALL - + COUNT( * ) AS col0, - 70 FROM tab1 AS cor0
----
-3
-70

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL - + COUNT ( * ) AS col0, - 70 FROM tab1 AS cor0
----
-3
-70

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT - 27 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT col1 * 6 DIV + 46 + - col1 AS col2 FROM tab0
----
-1
-19
-71

skipif mysql # not compatible
query I rowsort label-3401
SELECT col1 * 6 / + 46 + - col1 AS col2 FROM tab0
----
-1
-19
-71

query I rowsort
SELECT DISTINCT + 55 + ( + 45 ) AS col0 FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT SUM( ALL + 62 ) AS col0 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT SUM ( ALL + 62 ) AS col0 FROM tab2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT + CAST( + 38 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3404
SELECT + CAST ( + 38 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT - MIN( + col0 ) DIV - 78 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3405
SELECT - MIN ( + col0 ) / - 78 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 + + + col2 AS col0 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT DISTINCT + MAX( ALL - 27 ) * + SUM( ALL - + col1 ) col2, + COUNT( * ) FROM tab2 AS cor0
----
5265
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3407
SELECT DISTINCT + MAX ( ALL - 27 ) * + SUM ( ALL - + col1 ) col2, + COUNT ( * ) FROM tab2 AS cor0
----
5265
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT col1 DIV + 61 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3408
SELECT col1 / + 61 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - + 36 FROM tab0 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + + ( - 12 ) + col1 FROM tab0 AS cor0
----
-11
69
9

query I rowsort
SELECT ALL + 51 + - 81 FROM tab2
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - MAX( ALL 88 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - MAX ( ALL 88 ) FROM tab1 AS cor0
----
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT col0 * col0 + + + ( + col2 ) - 44 + col1 AS col2 FROM tab0 AS cor0
----
309
7556
9465

query I rowsort
SELECT ALL + - col2 + col0 * col2 * + ( - col1 ) FROM tab0 cor0 WHERE NOT ( ( NOT + ( + col0 ) <> NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT - - COUNT( + + col2 ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT - - COUNT ( + + col2 ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 99 * col1 AS col2 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 59 * - 76 - + col1 AS col0, - 49 * col0 + - 34 + + - 59 FROM tab0 AS cor0
----
-4485
-4846
-4505
-4356
-4565
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT ( - - 4 ) * + - ( + COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT ( - - 4 ) * + - ( + COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col0 NOT BETWEEN + col1 - + 73 AND + col0 + + col1 * - + 43
----

skipif mysql # not compatible
query I rowsort label-3421
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col0 NOT BETWEEN + col1 - + 73 AND + col0 + + col1 * - + 43
----

query I rowsort
SELECT + col2 * - + 14 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 * - 92 * - + col0 / + + 45, ( - col0 ), + + col1 * col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * - col1 <= col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2 + col2 * + 80 + - col0 )
----

query I rowsort
SELECT + 24 * - ( + col1 ) AS col0 FROM tab1
----
-1128
-120
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT - COUNT( * ) + + 74 FROM tab1 WHERE NOT - col1 BETWEEN + + col1 AND - + col0 - - + col2
----
71

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - COUNT ( * ) + + 74 FROM tab1 WHERE NOT - col1 BETWEEN + + col1 AND - + col0 - - + col2
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col2, 49 FROM tab0 AS cor0
----
37
49
37
49
37
49

query I rowsort
SELECT ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - ( + 52 ) * 30 FROM tab0 cor0
----
-1560
-1560
-1560

query I rowsort
SELECT ALL - + 96 * - col2 FROM tab1 AS cor0
----
5664
6528
9216

query I rowsort
SELECT DISTINCT + ( - - col0 ) + col0 * + 81 AS col2 FROM tab0 AS cor0
----
1230
7134
7954

query II rowsort
SELECT DISTINCT col1 * - 22 AS col0, + 58 AS col0 FROM tab0
----
-1782
58
-22
58
-462
58

query I rowsort
SELECT + - col2 FROM tab1 WHERE ( NULL <> col1 * 87 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - + 51 * + SUM( ALL + 97 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-44523

skipif mysql # not compatible
query I rowsort label-3434
SELECT - + 51 * + SUM ( ALL + 97 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-44523

query I rowsort
SELECT 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query II rowsort
SELECT col2 + col1 + col0 AS col0, col2 AS col2 FROM tab2
----
120
23
181
40
200
58

query I rowsort
SELECT ALL + 22 * col0 * - ( + 12 ) AS col2 FROM tab1
----
-13464
-22440
-24024

query I rowsort
SELECT + 91 * + 35 + 43 AS col0 FROM tab0 AS cor0
----
3228
3228
3228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT - col2 + - - CAST( NULL AS SIGNED ) / 72 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ) / 72 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT DISTINCT + - col0 DIV - 33 + - 40 AS col1 FROM tab2 AS cor0
----
-38
-39

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT + - col0 / - 33 + - 40 AS col1 FROM tab2 AS cor0
----
-38
-39

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + col2 <= col2
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3442
SELECT + - CAST( NULL AS SIGNED ) - + ( CAST( + col1 AS SIGNED ) ) + + 84 * 2 + - 17 * - 22, col0 - + col0 col2 FROM tab2 AS cor0 WHERE + 24 - + - ( + 61 ) IS NOT NULL
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3442
SELECT + - CAST ( NULL AS INTEGER ) - + ( CAST ( + col1 AS INTEGER ) ) + + 84 * 2 + - 17 * - 22, col0 - + col0 col2 FROM tab2 AS cor0 WHERE + 24 - + - ( + 61 ) IS NOT NULL
----
NULL
0
NULL
0
NULL
0

query II rowsort
SELECT DISTINCT - col2 + - 1 * - 44, - col2 * ( 57 ) + + 10 AS col2 FROM tab0 AS cor0
----
-3
-2669
-55
-5633
34
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT ALL - CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3445
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col0 * 67 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT + col0 - + col1 - - + col2 + + col1 FROM tab0
----
196
62
97

query I rowsort
SELECT col0 - - 11 AS col0 FROM tab1
----
102
62
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT ALL + col1 - col1 * col0 DIV col0 + - 88 AS col2 FROM tab1 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + col1 - col1 * col0 / col0 + - 88 AS col2 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + - 96 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
0
12
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT ALL col0 DIV - 97 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL col0 / - 97 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col1 / - col2 + - 13 + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE + 69 IN ( - ( col1 ) + + + 64 + - - ( - + col2 ), col0 - - col0 + - + col1, + 14 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3455
SELECT DISTINCT COUNT( * ), 46 * 75 AS col0 FROM tab0 WHERE + + col2 NOT IN ( + col2 )
----
0
3450

skipif mysql # not compatible
query II rowsort label-3455
SELECT DISTINCT COUNT ( * ), 46 * 75 AS col0 FROM tab0 WHERE + + col2 NOT IN ( + col2 )
----
0
3450

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + + col2 + + - col0 AND - - 43 + + - col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT CAST( - + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col1 * - col1, col2 )
----

query I rowsort
SELECT ALL + + ( + 44 ) FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT + - 83 * - 51 FROM tab2 AS cor0
----
4233
4233
4233

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + 42 * - SUM( ALL + 7 ) / + 54 AS col2 FROM tab0 AS cor0 WHERE NOT 77 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT + 42 * - SUM ( ALL + 7 ) / + 54 AS col2 FROM tab0 AS cor0 WHERE NOT 77 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT - 4 DIV + col1 + + 80 FROM tab2 cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-3463
SELECT - 4 / + col1 + + 80 FROM tab2 cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT SUM( ALL 40 ) * - + 11 FROM tab2
----
-1320

skipif mysql # not compatible
query I rowsort label-3464
SELECT SUM ( ALL 40 ) * - + 11 FROM tab2
----
-1320

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 < - 15
----

query II rowsort
SELECT 91 * - col0 AS col1, + 68 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 19 + + 45 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - col0 + + - col2 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL + - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT col2 * + 6 * - col1 AS col0 FROM tab2 AS cor0
----
-18480
-23316
-7038

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT COUNT( - 43 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3472
SELECT COUNT ( - 43 ) FROM tab1
----
3

query I rowsort
SELECT ALL + 88 + - 0 + + - col0 AS col2 FROM tab2
----
13
24
42

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 10 NOT IN ( + col2, col0 * - col2 * - - col1, - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 * - - 1 IS NOT NULL
----
10
47
99

query II rowsort
SELECT DISTINCT col2 + + + col2, ( - col0 ) AS col0 FROM tab0 cor0
----
198
-97
20
-87
94
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT + - col0 * - + CAST( + col0 AS SIGNED ) + - + col0 FROM tab2 cor0
----
2070
4032
5550

skipif mysql # not compatible
query I rowsort label-3478
SELECT + - col0 * - + CAST ( + col0 AS INTEGER ) + - + col0 FROM tab2 cor0
----
2070
4032
5550

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 71 * + - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL + COUNT( * ) + + ( - 93 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + COUNT ( * ) + + ( - 93 ) FROM tab2 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 * + col1 + - - col0 * + col0 col0, col2 AS col1 FROM tab1 AS cor0
----
11806
68
3651
96
7600
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT ALL + col1 + - ( + 85 ) + + 74 DIV + + ( - col0 ) FROM tab2 AS cor0
----
-18
-35
-9

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + col1 + - ( + 85 ) + + 74 / + + ( - col0 ) FROM tab2 AS cor0
----
-18
-35
-9

query I rowsort
SELECT DISTINCT 28 + + col1 - + + col0 + - - col1 + - col0 FROM tab1 AS cor0
----
-132
-46
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 28 - - col1 col1 FROM tab2
----
-1043
-1557
-593

onlyif mysql # DIV for integer division: 
query II rowsort label-3485
SELECT ALL col0 DIV - - 47, 32 AS col0 FROM tab2
----
0
32
1
32
1
32

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL col0 / - - 47, 32 AS col0 FROM tab2
----
0
32
1
32
1
32

query I rowsort
SELECT - - 51 FROM tab1 WHERE - col2 IS NOT NULL
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT ALL col1 DIV - col0 + col0 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL col1 / - col0 + col0 FROM tab2
----
45
63
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3488
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) - 86 >= + col0 / - 91 * - col2 + + 69 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3488
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) - 86 >= + col0 / - 91 * - col2 + + 69 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT DISTINCT - 83 - + - col0 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3489
SELECT DISTINCT - 83 - + - col0 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + - col0 AS col1, ( ( - 43 ) ) col0 FROM tab2
----
1058
-43
2560
-43
4350
-43

query I rowsort
SELECT - - col2 * - + col1 + + col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - COUNT( + + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3492
SELECT - COUNT ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 * col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
225
7569
9409

query II rowsort
SELECT ALL + ( + 25 ), - 45 AS col0 FROM tab1 AS cor0
----
25
-45
25
-45
25
-45

query I rowsort
SELECT - + 30 AS col2 FROM tab0 cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3496
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 52 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3496
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 52 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT 65 DIV - + 66 * + col1 * - col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT 65 / - + 66 * + col1 * - col2 FROM tab0
----
0

query II rowsort
SELECT ALL col2 AS col0, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT COUNT( ALL + + 12 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT COUNT ( ALL + + 12 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL - - MAX( - 94 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - - MAX ( - 94 ) AS col2 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + 60 * + 38 AS col0 FROM tab1 AS cor0
----
2280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 15 col2 FROM tab2 AS cor0
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + + MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3503
SELECT + + MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 22 * + - 16 = NULL
----

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT + col1 DIV 66 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3507
SELECT + col1 / 66 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 IS NOT NULL
----

query I rowsort
SELECT - 69 FROM tab2 WHERE + + 37 IS NOT NULL
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + 22 + - + col2 FROM tab0
----
-25
-77
12

query I rowsort
SELECT + 97 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - 85 + + MAX( DISTINCT + col1 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3512
SELECT - 85 + + MAX ( DISTINCT + col1 ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + MAX( ALL - + ( - - ( + 93 ) ) ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3513
SELECT + MAX ( ALL - + ( - - ( + 93 ) ) ) AS col1 FROM tab0
----
-93

query I rowsort
SELECT 81 * + - col1 FROM tab2
----
-4131
-5427
-6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( * ) + - - 90 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - - 90 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2 AS cor0 WHERE + col0 * col2 IS NULL
----

query I rowsort
SELECT ALL - ( - 81 ) + - col2 AS col2 FROM tab2 AS cor0
----
23
41
58

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT + col2 >= - - col0
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE + - col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT + 91 + - ( CAST( + + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + 91 + - ( CAST ( + + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1
----
94

query I rowsort
SELECT DISTINCT - 10 - - + 37 + - col1 - - col2 * + col1 FROM tab0
----
125
216
3753

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT ALL - 17 - + col2 - + col1 + 24 DIV col0 col1 FROM tab2
----
-134
-142
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3522
SELECT ALL - 17 - + col2 - + col1 + 24 / col0 col1 FROM tab2
----
-134
-142
-91

query II rowsort
SELECT 31 AS col2, + 65 AS col1 FROM tab0
----
31
65
31
65
31
65

query I rowsort
SELECT ALL 5 * + + col2 FROM tab2
----
115
200
290

query II rowsort
SELECT DISTINCT + 91 AS col0, col2 FROM tab1
----
91
59
91
68
91
96

query I rowsort
SELECT DISTINCT + - ( + 54 ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT - 13 * + col2 FROM tab0 AS cor0
----
-1287
-130
-611

query I rowsort
SELECT + ( 97 ) AS col1 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT DISTINCT CAST( + ( - + 41 ) AS SIGNED ) AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT CAST ( + ( - + 41 ) AS INTEGER ) AS col2 FROM tab1
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3530
SELECT col1 DIV + 93 * - CAST( + + col1 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT col1 / + 93 * - CAST ( + + col1 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT DISTINCT col0 DIV + + 83 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT col0 / + + 83 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 86 / + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 78 + + col0 IS NULL
----

query I rowsort
SELECT ALL - ( - ( - 17 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL - + col1 * + col2 * + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - + col1 * + col2 * + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - - col2 + + - 54 * + 51 + 14 + - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-2840
-2971
-6628

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - - 67 + - 91 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col0 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3541
SELECT ALL - CAST( - 90 AS SIGNED ) DIV COUNT( * ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - CAST ( - 90 AS INTEGER ) / COUNT ( * ) AS col2 FROM tab0
----
30

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT - + 96 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - ( + 4 ) ) col1, + 47 * - + col1 AS col0 FROM tab1 WHERE NOT - 53 + + col1 BETWEEN - ( - col2 ) AND + + 56 + col2
----
-4
-2209
-4
-235
-4
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col0, - 74 * - 93 col1 FROM tab0
----
-10
6882
-47
6882
-99
6882

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 * + 92 + 6 + - col2 * - col1 * - - 44 AS col0 FROM tab1
----
14
63834
47
149002
5
20806

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL MAX( + - 29 ) AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL MAX ( + - 29 ) AS col0 FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3547
SELECT - SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 < - col1
----

query II rowsort
SELECT + 5, - col2 AS col0 FROM tab0 AS cor0
----
5
-10
5
-47
5
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + + COUNT( * ) + ( + - 52 ) col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3550
SELECT DISTINCT + + COUNT ( * ) + ( + - 52 ) col1 FROM tab0 AS cor0
----
-49

query II rowsort
SELECT ( + col2 ) AS col1, 28 FROM tab0
----
10
28
47
28
99
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT DISTINCT col1 DIV - 61 + + col1 + + - 23 * col1 AS col0 FROM tab1
----
-1034
-110
-308

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT col1 / - 61 + + col1 + + - 23 * col1 AS col0 FROM tab1
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL - SUM( DISTINCT - 12 ) * + 16 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3553
SELECT ALL - SUM ( DISTINCT - 12 ) * + 16 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3554
SELECT + - col2 + ( - - col1 ) + - col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT + - col2 + ( - - col1 ) + - col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT + COUNT( * ) + - COUNT( * ) + - 34 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3555
SELECT + COUNT ( * ) + - COUNT ( * ) + - 34 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT DISTINCT col0 * 75 + + - 63 * - 78 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3556
SELECT DISTINCT col0 * 75 + + - 63 * - 78 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3557
SELECT ( + MAX( col0 ) ) + - 75 + - + COUNT( * ) + COUNT( * ) - - MIN( + - col1 ) DIV + COUNT( * ), 24 col0 FROM tab1 AS cor0
----
1
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3557
SELECT ( + MAX ( col0 ) ) + - 75 + - + COUNT ( * ) + COUNT ( * ) - - MIN ( + - col1 ) / + COUNT ( * ), 24 col0 FROM tab1 AS cor0
----
1
24

query I rowsort
SELECT + col2 + col2 - + col0 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT ALL + + 32 + col2 FROM tab0 AS cor0
----
131
42
79

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT COUNT( * ) * - 10 FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3561
SELECT COUNT ( * ) * - 10 FROM tab1 cor0
----
-30

query I rowsort
SELECT + 49 / col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 + - col1 IS NULL
----

query II rowsort
SELECT DISTINCT 50 AS col0, ( ( col0 ) ) AS col1 FROM tab0
----
50
15
50
87
50
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) col0 FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT DISTINCT 75, 42 + + - 60 AS col1 FROM tab0 AS cor0
----
75
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 60 ) col1 FROM tab0 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT - COUNT( * ) * + + 58 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - COUNT ( * ) * + + 58 FROM tab2 AS cor0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT col0 DIV - col0 + col1 * + - 41 AS col2 FROM tab1 AS cor0
----
-1928
-206
-575

skipif mysql # not compatible
query I rowsort label-3569
SELECT col0 / - col0 + col1 * + - 41 AS col2 FROM tab1 AS cor0
----
-1928
-206
-575

query I rowsort
SELECT + - col1 + + 63 * - col0 FROM tab2 AS cor0
----
-2949
-4109
-4792

query I rowsort
SELECT ALL - 2 FROM tab2 AS cor0 WHERE 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3572
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3572
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL - col2 + + + col2 / + CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - col2 + + + col2 / + CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL + + COUNT( * ) / + - 58 * + ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + + COUNT ( * ) / + - 58 * + ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 10 + - + col0 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 72 * 56 AS col1 FROM tab0
----
4032
4032
4032

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT ALL - MIN( + col1 ) col0, COUNT( + col2 ) AS col1 FROM tab0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3577
SELECT ALL - MIN ( + col1 ) col0, COUNT ( + col2 ) AS col1 FROM tab0
----
-1
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3578
SELECT col2 DIV + + col2, 39 DIV - + col0 - 79 * + col2 AS col0 FROM tab2
----
1
-1817
1
-3160
1
-4582

skipif mysql # not compatible
query II rowsort label-3578
SELECT col2 / + + col2, 39 / - + col0 - 79 * + col2 AS col0 FROM tab2
----
1
-1817
1
-3160
1
-4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + 78 col1 FROM tab0
----
-1638
-6318
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT DISTINCT - ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL + SUM( - ( - + 26 ) ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + SUM ( - ( - + 26 ) ) AS col2 FROM tab1
----
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col1 * - 32
----

query I rowsort
SELECT + - col2 + + 97 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 89 + - col2
----

query I rowsort
SELECT + 46 * col0 AS col2 FROM tab0
----
4002
4462
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab1
----
65
65
65

query II rowsort
SELECT + col0 AS col2, col1 + 43 FROM tab2
----
46
94
64
120
75
110

query I rowsort
SELECT ( 34 ) FROM tab2
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + + 18 col1 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3590
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 NOT BETWEEN - col1 / - 79 AND + CAST( NULL AS DECIMAL ) - + 97 )
----

skipif mysql # not compatible
query III rowsort label-3590
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 NOT BETWEEN - col1 / - 79 AND + CAST ( NULL AS REAL ) - + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT - + CAST( + + col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - + CAST ( + + col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT - col1 DIV - col1 - + - col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3592
SELECT - col1 / - col1 - + - col0 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT - CAST( - 2 AS SIGNED ) * 69 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col2 IS NULL )
----
138
138
138

skipif mysql # not compatible
query I rowsort label-3593
SELECT - CAST ( - 2 AS INTEGER ) * 69 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col2 IS NULL )
----
138
138
138

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT col0 DIV - 67 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT col0 / - 67 AS col2 FROM tab1
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - col2 + + + 7 * - col2 FROM tab1 WHERE NOT NULL <= col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + COUNT( * ) col0 FROM tab1 WHERE NOT + - 90 >= + + 9 / col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT + COUNT ( * ) col0 FROM tab1 WHERE NOT + - 90 >= + + 9 / col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL MAX( ALL + - 33 ) AS col1 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL MAX ( ALL + - 33 ) AS col1 FROM tab2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT col2 AS col1 FROM tab0 WHERE NOT + + col1 < + - CAST( 49 AS SIGNED )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3600
SELECT col2 AS col1 FROM tab0 WHERE NOT + + col1 < + - CAST ( 49 AS INTEGER )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3602
SELECT + - CAST( col0 AS SIGNED ) col2, 17 AS col0 FROM tab1 AS cor0
----
-51
17
-85
17
-91
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3602
SELECT + - CAST ( col0 AS INTEGER ) col2, 17 AS col0 FROM tab1 AS cor0
----
-51
17
-85
17
-91
17

query I rowsort
SELECT ALL - ( + + 87 ) AS col0 FROM tab2
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25, col1 col1 FROM tab2
----
25
51
25
67
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL - 48 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - 48 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
144

query I rowsort
SELECT col1 * + - 82 AS col0 FROM tab0 AS cor0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT DISTINCT - + MAX( + + col1 ) + 89, + ( + MAX( + 12 ) ) AS col1 FROM tab2 AS cor0
----
12
12

skipif mysql # not compatible
query II rowsort label-3608
SELECT DISTINCT - + MAX ( + + col1 ) + 89, + ( + MAX ( + 12 ) ) AS col1 FROM tab2 AS cor0
----
12
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3609
SELECT - + 34, COUNT( * ) AS col0 FROM tab0 cor0
----
-34
3

skipif mysql # not compatible
query II rowsort label-3609
SELECT - + 34, COUNT ( * ) AS col0 FROM tab0 cor0
----
-34
3

query I rowsort
SELECT ALL - 24 + - + col0 * + col1 * ( + - col0 ) AS col0 FROM tab1 AS cor0
----
36101
36390
389183

query I rowsort
SELECT DISTINCT + 2 * col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 95 * - - 53 * 21 + - col1 + - col0 * 65 * - col0 AS col1 FROM tab0
----
120279
597699
717319

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( col0 ) < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + ( + 68 ) + COUNT( * ) AS col2 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3614
SELECT + ( + 68 ) + COUNT ( * ) AS col2 FROM tab1
----
71

query I rowsort
SELECT ALL + + 96 * + col1 + - col1 + col0 + col2 * - col1 FROM tab2 AS cor0
----
2554
3718
4299

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 29 IS NULL
----

query II rowsort
SELECT DISTINCT col2 - + col0 AS col1, col2 FROM tab2
----
-17
58
-23
23
-24
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( - - col0 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3618
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( - - col0 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + COUNT( col2 ) * - 35 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3619
SELECT + COUNT ( col2 ) * - 35 FROM tab0 AS cor0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT - ( - + AVG ( ALL CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT - ( - + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT + col2 DIV - - col2 + - - ( col0 ) * - 80 + - 67 AS col0 FROM tab2 AS cor0
----
-3746
-5186
-6066

skipif mysql # not compatible
query I rowsort label-3621
SELECT + col2 / - - col2 + - - ( col0 ) * - 80 + - 67 AS col0 FROM tab2 AS cor0
----
-3746
-5186
-6066

query I rowsort
SELECT DISTINCT + - 98 FROM tab0 cor0
----
-98

query II rowsort
SELECT DISTINCT - col0, - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3624
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + 23 + + col1 + - - 94 + col1 * col0, col1 FROM tab1
----
9 values hashing to 219fea49b2c6dfe4c669505adc882443

skipif mysql # not compatible
query III rowsort label-3624
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + 23 + + col1 + - - 94 + col1 * col0, col1 FROM tab1
----
9 values hashing to 219fea49b2c6dfe4c669505adc882443

query II rowsort
SELECT DISTINCT 73, 18 AS col2 FROM tab2
----
73
18

query II rowsort
SELECT 75 AS col2, + 68 AS col0 FROM tab1
----
75
68
75
68
75
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT + col0 * - 10 + + - 10 + + col1 DIV + 84 FROM tab2 AS cor0
----
-470
-650
-760

skipif mysql # not compatible
query I rowsort label-3627
SELECT + col0 * - 10 + + - 10 + + col1 / + 84 FROM tab2 AS cor0
----
-470
-650
-760

query II rowsort
SELECT DISTINCT + col1 AS col0, 6 FROM tab2 AS cor0
----
51
6
67
6
77
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT CAST( + COUNT( * ) AS SIGNED ) + 50 AS col0 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-3629
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + 50 AS col0 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + MAX( ALL + 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3630
SELECT + MAX ( ALL + 77 ) FROM tab2
----
77

query III rowsort
SELECT * FROM tab1 WHERE + col2 > ( + col1 + - col2 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT 78 * + MAX( - 47 ) FROM tab2
----
-3666

skipif mysql # not compatible
query I rowsort label-3632
SELECT 78 * + MAX ( - 47 ) FROM tab2
----
-3666

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) IN ( + col0 )
----

query I rowsort
SELECT ALL - 90 + + col1 * - col2 FROM tab0
----
-189
-300
-3897

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( 99 ) IS NULL
----

query I rowsort
SELECT - 35 + col0 AS col1 FROM tab0
----
-20
52
62

query I rowsort
SELECT DISTINCT + 96 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 FROM tab1 WHERE NULL BETWEEN 9 * + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) BETWEEN ( col2 * + col1 ) AND col2 * + col1 + + col1
----

query I rowsort
SELECT ALL + col2 + 11 AS col2 FROM tab1
----
107
70
79

query I rowsort
SELECT col0 + col0 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - 32 - col2 AS col1 FROM tab1
----
-100
-128
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT 25 + + col0 DIV 76 AS col2 FROM tab1
----
25
26
26

skipif mysql # not compatible
query I rowsort label-3643
SELECT 25 + + col0 / 76 AS col2 FROM tab1
----
25
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL COUNT( * ) * 60 FROM tab1 WHERE NOT - col1 * + 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL COUNT ( * ) * 60 FROM tab1 WHERE NOT - col1 * + 66 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT COUNT( DISTINCT - col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3645
SELECT COUNT ( DISTINCT - col0 ) col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE - col2 + 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 83 * - 92 AS col0 FROM tab1
----
-7636
-7636
-7636

query I rowsort
SELECT - 16 FROM tab0 WHERE NOT 28 * - ( col2 ) + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3650
SELECT DISTINCT col2 DIV CAST( + col0 AS SIGNED ) + col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT col2 / CAST ( + col0 AS INTEGER ) + col1 FROM tab1
----
15
47
5

query I rowsort
SELECT col1 FROM tab1 WHERE col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL 36 * - COUNT( * ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL 36 * - COUNT ( * ) AS col2 FROM tab2
----
-108

query I rowsort
SELECT DISTINCT + col1 + + 24 FROM tab1 cor0
----
29
38
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col1 * - 35 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3655
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col1 * - 35 <= NULL
----

query I rowsort
SELECT col2 + 64 AS col1 FROM tab1 WHERE - col0 <> + col1
----
123
132
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - 22 * - 72 FROM tab1
----
1584
1584
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NULL > ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NULL > ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT DISTINCT - CAST( 21 AS SIGNED ) col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3660
SELECT DISTINCT - CAST ( 21 AS INTEGER ) col1 FROM tab2 AS cor0
----
-21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL COUNT( ALL + - 87 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT ALL COUNT ( ALL + - 87 ) col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * + 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + 31 + - 33 AS col1 FROM tab2 WHERE NOT - col2 * + col1 NOT IN ( + 73 )
----

query I rowsort
SELECT - ( - 41 ) * ( col2 ) AS col1 FROM tab2
----
1640
2378
943

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT ALL - col2 DIV 81 * col1 AS col0 FROM tab1
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - col2 / 81 * col1 AS col0 FROM tab1
----
-14
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT + col2 - - col2 col0 FROM tab0 WHERE NOT 96 + - CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3667
SELECT + col2 - - col2 col0 FROM tab0 WHERE NOT 96 + - CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 48 * + 40 FROM tab0
----
167040
186240
28800

query I rowsort
SELECT ALL + 30 + + 48 AS col0 FROM tab2 AS cor0
----
78
78
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col1 - - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - 36 * + COUNT( * ) * - 16 FROM tab2
----
1728

skipif mysql # not compatible
query I rowsort label-3671
SELECT - 36 * + COUNT ( * ) * - 16 FROM tab2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - COUNT( * ) * + SUM( ALL - ( col1 ) ) AS col2 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-3672
SELECT - COUNT ( * ) * + SUM ( ALL - ( col1 ) ) AS col2 FROM tab2
----
585

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 37 ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 74 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 31 * ( - col1 + 75 ) NOT IN ( ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - MIN( ALL 63 ) col1 FROM tab0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3676
SELECT DISTINCT - MIN ( ALL 63 ) col1 FROM tab0
----
-63

query I rowsort
SELECT ALL - col2 + 6 + + col1 + + col1 AS col2 FROM tab2 cor0
----
120
82
85

query II rowsort
SELECT ALL 5, + col1 AS col0 FROM tab0 AS cor0
----
5
1
5
21
5
81

query I rowsort
SELECT ALL col1 * 17 + + col1 * col2 FROM tab2 AS cor0 WHERE NOT NULL < ( + col0 * 78 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 / - col2 + + 87 ) >= 17 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + MAX( DISTINCT col2 ) + COUNT( * ) * - 15 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3681
SELECT + MAX ( DISTINCT col2 ) + COUNT ( * ) * - 15 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT + col0 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3682
SELECT + col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT DISTINCT ( + col2 ) DIV - col0 + + 24 FROM tab0 AS cor0
----
21
23
24

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT ( + col2 ) / - col0 + + 24 FROM tab0 AS cor0
----
21
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL - + col0 + + + col0 * + 30 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - + col0 + + + col0 * + 30 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL - ( + - 12 ) + COUNT( * ) + COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - ( + - 12 ) + COUNT ( * ) + COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( + 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * - - col0 + 10 AS col2 FROM tab0 AS cor0
----
107
1225
1837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT + + col0 - + CAST( - - 62 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-16
13
2

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + + col0 - + CAST ( - - 62 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-16
13
2

query I rowsort
SELECT - 70 + - + col2 AS col0 FROM tab2 AS cor0
----
-110
-128
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT CAST( NULL AS SIGNED ) + col2 * + col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT CAST ( NULL AS INTEGER ) + col2 * + col1 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - ( + COUNT( 29 ) ) * 71 FROM tab1 WHERE ( col1 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT - ( + COUNT ( 29 ) ) * 71 FROM tab1 WHERE ( col1 ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + MAX( 41 ) + - + 75 AS col0 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-3692
SELECT + MAX ( 41 ) + - + 75 AS col0 FROM tab0
----
-34

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT MAX( + col0 ) + 62 FROM tab0 WHERE + - col1 + + col2 IN ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT MAX ( + col0 ) + 62 FROM tab0 WHERE + - col1 + + col2 IN ( + 63 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE + 42 / - col2 + col2 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 42 / - col2 + col2 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 * col0 AS col2 FROM tab0 WHERE + 99 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3698
SELECT * FROM tab0 WHERE - ( 80 ) * - CAST( + 94 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3698
SELECT * FROM tab0 WHERE - ( 80 ) * - CAST ( + 94 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 - - ( + col0 ) + - col1 * - col2 FROM tab0
----
293
3837
384

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - ( - MAX( 39 ) ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - ( - MAX ( 39 ) ) AS col2 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT + MIN( 33 ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 * + 50 / + col0 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + MIN ( 33 ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 * + 50 / + col0 ) AND ( NULL )
----
NULL

query I rowsort
SELECT col2 + col0 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE ( ( NULL ) >= col2 * col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab0 AS cor0 WHERE NOT + col0 * + - 58 + - + col2 NOT IN ( - 54 * ( - col1 ) )
----

query I rowsort
SELECT + 2 - - col0 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT + CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT + CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + col1 ) / col0 / + col2 + 32 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 + + - col1 * - 18 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - 68 * + - col2 AS col0 FROM tab2 AS cor0
----
1564
2720
3944

query II rowsort
SELECT ALL + col1, 98 FROM tab1 AS cor0
----
14
98
47
98
5
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT col2 * - CAST( NULL AS SIGNED ) + + + 42 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT col2 * - CAST ( NULL AS INTEGER ) + + + 42 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 NOT BETWEEN NULL AND + col1 + - col0
----

query I rowsort
SELECT ALL 53 AS col0 FROM tab0 cor0 WHERE NOT - 88 * - - 63 IN ( + + col2 / + col0 )
----
53
53
53

query I rowsort
SELECT ALL + col1 * - 92 FROM tab0 AS cor0
----
-1932
-7452
-92

query II rowsort
SELECT - - col1, 81 AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT + 26 DIV + + ( col2 ) FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + 26 / + + ( col2 ) FROM tab2 cor0
----
0
1

query I rowsort
SELECT ALL - + ( - - col0 ) * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # DIV for integer division: 
query II rowsort label-3718
SELECT DISTINCT 58 DIV ( + col2 ) AS col0, - col1 FROM tab2 AS cor0
----
1
-67
1
-77
2
-51

skipif mysql # not compatible
query II rowsort label-3718
SELECT DISTINCT 58 / ( + col2 ) AS col0, - col1 FROM tab2 AS cor0
----
1
-67
1
-77
2
-51

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL COUNT( * ) * 12 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL COUNT ( * ) * 12 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT 29 * + ( - col2 ) AS col2 FROM tab1
----
-1711
-1972
-2784

query I rowsort
SELECT 35 * col0 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL MAX( - 64 ) col1 FROM tab0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3724
SELECT ALL MAX ( - 64 ) col1 FROM tab0
----
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3725
SELECT 42 DIV + CAST( + 70 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3725
SELECT 42 / + CAST ( + 70 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( ( + + col2 ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3727
SELECT * FROM tab1 AS cor0 WHERE CAST( + col2 AS SIGNED ) / + col0 + col0 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-3727
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS INTEGER ) / + col0 + col0 IN ( col1 )
----

query I rowsort
SELECT ALL col2 + + - 51 - - col0 * - col0 AS col2 FROM tab0 AS cor0 WHERE col2 / col1 > + col2
----

query I rowsort
SELECT + + 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 * - col0 * + col1 * + col1 - col2 + - - 37 )
----

query I rowsort
SELECT - + ( + 42 ) AS col2 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( + 41 ) FROM tab2 AS cor0 WHERE col1 + - + col0 BETWEEN ( - col2 ) AND + col2
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 + col2 col2 FROM tab2 AS cor0 WHERE - col2 * - + 38 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 0 >= ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - ( - - col0 ) + - + col2 AS col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

query I rowsort
SELECT DISTINCT - col2 + - 2 AS col0 FROM tab0
----
-101
-12
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT col1 DIV - - 86 - - - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT col1 / - - 86 - - - col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * - 76 - - col0 + + col0 + - 66 col0 FROM tab1
----
-3456
-3468
-3536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 55 col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT 30 DIV 16 + + + ( - 46 ) AS col1 FROM tab1
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3741
SELECT 30 / 16 + + + ( - 46 ) AS col1 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT ( - col2 ) + + + col2 + + col0 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL - 87, + 21 AS col1 FROM tab2 AS cor0
----
-87
21
-87
21
-87
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3744
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( ( - - 91 ) AS SIGNED ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3744
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( ( - - 91 ) AS INTEGER ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3745
SELECT DISTINCT 89 * + MAX( - + col1 ) AS col2, + CAST( - 87 AS SIGNED ) FROM tab1 AS cor0
----
-445
-87

skipif mysql # not compatible
query II rowsort label-3745
SELECT DISTINCT 89 * + MAX ( - + col1 ) AS col2, + CAST ( - 87 AS INTEGER ) FROM tab1 AS cor0
----
-445
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT + 42 DIV ( COUNT( * ) ) FROM tab2, tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3747
SELECT + 42 / ( COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query IIIIII rowsort label-3748
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN + 85 * + CAST( + + 72 AS SIGNED ) * - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3748
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN + 85 * + CAST ( + + 72 AS INTEGER ) * - CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3749
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( CAST( - + col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3749
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( CAST ( - + col0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3750
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-3750
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT CAST( - col2 AS SIGNED ) * 22 + col1 * 6 AS col1 FROM tab0 AS cor0
----
-2172
-548
-94

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * 22 + col1 * 6 AS col1 FROM tab0 AS cor0
----
-2172
-548
-94

query I rowsort
SELECT 42 * - 40 AS col1 FROM tab1
----
-1680
-1680
-1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, + col0 col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3754
SELECT - CAST( NULL AS DECIMAL ) + + MIN( + col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT - CAST ( NULL AS REAL ) + + MIN ( + col1 ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT DISTINCT + COUNT( 81 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT + COUNT ( 81 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 49 FROM tab0 AS cor0 WHERE NULL BETWEEN ( ( + + 21 ) + + - col1 / - col1 ) AND ( - col1 - col0 * + col0 - col2 )
----

query I rowsort
SELECT ALL - col1 * + 55 FROM tab1
----
-2585
-275
-770

query I rowsort
SELECT + + 14 AS col2 FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT CAST( NULL AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT CAST ( NULL AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 61 + col1 FROM tab2 cor0
----
158
202
203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT DISTINCT + + 71 * CAST( + - 36 AS SIGNED ) + 11 - - - col2 FROM tab0 cor0
----
-2555
-2592
-2644

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT + + 71 * CAST ( + - 36 AS INTEGER ) + 11 - - - col2 FROM tab0 cor0
----
-2555
-2592
-2644

query I rowsort
SELECT col0 + + ( + + col1 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT col0 - + + 34 AS col0 FROM tab0
----
-19
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + 75 - + - COUNT( * ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + 75 - + - COUNT ( * ) AS col1 FROM tab2
----
78

query I rowsort
SELECT ALL 3 * + + col1 FROM tab2
----
153
201
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3766
SELECT - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + - 43 AS col0 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3766
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - 43 AS col0 FROM tab2
----
-3
NULL

query II rowsort
SELECT ALL + col0 AS col0, + col1 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT col0 + - col2, - col1 FROM tab2 WHERE NOT NULL NOT IN ( - + 75 + + 38 / + - col0 * col2 )
----

query I rowsort
SELECT DISTINCT + - col0 * + ( col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + ( + COUNT( * ) ) * - 67 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + ( + COUNT ( * ) ) * - 67 FROM tab1 AS cor0
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col2 col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL + ( + 46 ) FROM tab0 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + col1, - 42, + col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 6582a142680784ef392058572c0e9fe7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 * - + col2 * - col2 col1 FROM tab2 AS cor0 WHERE ( + - 16 IS NOT NULL )
----
105600
222024
34914

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT - MAX( + 53 ) * + 75 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-3975
3

skipif mysql # not compatible
query II rowsort label-3776
SELECT - MAX ( + 53 ) * + 75 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-3975
3

query I rowsort
SELECT DISTINCT - 38 + - + col1 FROM tab1 AS cor0
----
-43
-52
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT DISTINCT 45 AS col2, COUNT( * ) * - + SUM( + col0 ) AS col0 FROM tab0 cor0
----
45
-597

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT 45 AS col2, COUNT ( * ) * - + SUM ( + col0 ) AS col0 FROM tab0 cor0
----
45
-597

query I rowsort
SELECT ALL col0 * + 45 * - 98 AS col2 FROM tab2
----
-202860
-282240
-330750

query I rowsort
SELECT - 75 * + + 51 FROM tab0
----
-3825
-3825
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT - ( SUM( DISTINCT + + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - ( SUM ( DISTINCT + + col1 ) ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + 42 * + MIN( - - 60 ) AS col1 FROM tab1
----
2520

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + 42 * + MIN ( - - 60 ) AS col1 FROM tab1
----
2520

query I rowsort
SELECT col0 * - + 96 FROM tab2
----
-4416
-6144
-7200

query I rowsort
SELECT ALL - col0 * ( + col0 ) AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT ALL + 9 * + CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
531
612
864

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + 9 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
531
612
864

query II rowsort
SELECT ALL - ( + - col0 ) AS col0, 65 * - col0 + - col1 FROM tab1
----
51
-3329
85
-5530
91
-5962

query I rowsort
SELECT + col0 * + ( - - 51 ) FROM tab0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT SUM( ALL - col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3788
SELECT SUM ( ALL - col1 ) col1 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * + 55 - - - col1 * - 30 >= col1
----
87
21
10

query I rowsort
SELECT ALL 21 * - + 70 AS col2 FROM tab0
----
-1470
-1470
-1470

query I rowsort
SELECT DISTINCT - col2 + - 16 * + col2 * + + col1 + + + 13 * + col0 - - - 48 FROM tab1 AS cor0
----
-20985
-3722
-50069

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3792
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - - col2 + - col2 - CAST( NULL AS SIGNED ), - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3792
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - - col2 + - col2 - CAST ( NULL AS INTEGER ), - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT 55 * 63 AS col2 FROM tab2 AS cor0
----
3465
3465
3465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * - col2 col0 FROM tab1 cor0
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - MAX( - col2 ) - 52 FROM tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3796
SELECT - MAX ( - col2 ) - 52 FROM tab0 cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 - + 41 IS NULL
----

query I rowsort
SELECT DISTINCT + 18 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3799
SELECT DISTINCT * FROM tab0 WHERE CAST( 37 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3799
SELECT DISTINCT * FROM tab0 WHERE CAST ( 37 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + - 99 * + + col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3801
SELECT ALL + + COUNT( * ), COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3801
SELECT ALL + + COUNT ( * ), COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3
0

query I rowsort
SELECT 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + MIN( - 41 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-41

skipif mysql # not compatible
query I rowsort label-3803
SELECT + MIN ( - 41 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-41

query I rowsort
SELECT 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + + col1 * - 3 * + + col0 * + 25 AS col1 FROM tab0 AS cor0
----
-137025
-7275
-91125

query II rowsort
SELECT + 95 * + 80, - col1 AS col2 FROM tab0 AS cor0
----
7600
-1
7600
-21
7600
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL - COUNT( + col2 ) DIV - 89 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1 - - - col2
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - COUNT ( + col2 ) / - 89 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1 - - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT + COUNT( * ) + - SUM( - - 16 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + COUNT ( * ) + - SUM ( - - 16 ) FROM tab0 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * 82 + - col1 col0 FROM tab1 AS cor0
----
691
724
733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT col0 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT col0 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE 29 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - + 54 * - 93 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT 28 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - + 54 * - 93 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT 28 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - - 66 + col2 AS col1 FROM tab0
----
-11
68
98

query II rowsort
SELECT - 84 + col1 + col0 AS col2, + 55 FROM tab1
----
-19
55
54
55
6
55

query I rowsort
SELECT - col0 + 26 + + col0 - col1 FROM tab2
----
-25
-41
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - MIN( ALL - 57 ) * - MIN( + - col0 ) col1 FROM tab2 cor0 WHERE ( NULL ) <= + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3816
SELECT - MIN ( ALL - 57 ) * - MIN ( + - col0 ) col1 FROM tab2 cor0 WHERE ( NULL ) <= + col2
----
NULL

query II rowsort
SELECT col0 + + col0, col1 - col1 AS col1 FROM tab2 AS cor0
----
128
0
150
0
92
0

query II rowsort
SELECT - col1 + 64 AS col2, col2 AS col0 FROM tab1 AS cor0
----
17
68
50
96
59
59

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL > ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + 65 + + 53 > + + col1 * - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3823
SELECT - col2 DIV + col1, ( + col0 ) FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-3823
SELECT - col2 / + col1, ( + col0 ) FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT + - 68 DIV col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + - 68 / col1 FROM tab1 AS cor0
----
-1
-13
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 57 + - + 75 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL ( MAX( + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL ( MAX ( + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT col1 * - - col1 * + 82 * + col0 FROM tab1
----
16483558
174250
819672

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + COUNT( - 94 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( - 94 ) FROM tab0
----
3

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + 82 + col1 IS NOT NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * - + col2 IS NULL
----
14
47
5

query I rowsort
SELECT + ( - col1 ) - - col2 + + col1 * 79 + - col2 FROM tab0 AS cor0 WHERE NOT + 10 * + 34 * col2 IS NULL
----
1638
6318
78

query I rowsort
SELECT col0 * - + col2 * col0 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT ALL - 23 * col2 * col0 AS col0 FROM tab2 AS cor0
----
-100050
-24334
-58880

query II rowsort
SELECT ALL col1 AS col1, col2 * 64 AS col2 FROM tab1
----
14
6144
47
4352
5
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT SUM( ALL col2 ) + - 15 AS col1 FROM tab1
----
208

skipif mysql # not compatible
query I rowsort label-3835
SELECT SUM ( ALL col2 ) + - 15 AS col1 FROM tab1
----
208

query I rowsort
SELECT 86 + + col0 FROM tab1 cor0 WHERE NOT - 58 * + col2 IS NULL
----
137
171
177

query I rowsort
SELECT + col0 + col1 * - col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT SUM( - ( - + ( + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3839
SELECT SUM ( - ( - + ( + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT + COUNT( * ) * + 3 * - 94 + + - SUM( DISTINCT + col0 ) col1 FROM tab0 cor0
----
-1045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3840
SELECT DISTINCT + COUNT ( * ) * + 3 * - 94 + + - SUM ( DISTINCT + col0 ) col1 FROM tab0 cor0
----
-1045

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) > NULL
----
0

query I rowsort
SELECT DISTINCT + 3 * + col1 * + 33 + + 66 FROM tab0 cor0
----
165
2145
8085

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + COUNT( * ) * 11 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3844
SELECT + COUNT ( * ) * 11 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT MIN( 99 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT MIN ( 99 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT + col2 + + - 81 + - + 26 AS col1 FROM tab1 WHERE NULL IS NULL
----
-11
-39
-48

query I rowsort
SELECT ALL col2 * + 51 AS col1 FROM tab0
----
2397
5049
510

query I rowsort
SELECT - ( col1 ) FROM tab0 WHERE + - 57 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT + 22 DIV COUNT( * ) - - + 58 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-3849
SELECT + 22 / COUNT ( * ) - - + 58 FROM tab1
----
65

query I rowsort
SELECT col2 * - col2 - + 79 AS col0 FROM tab0
----
-179
-2288
-9880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT col0 + + + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-3851
SELECT col0 + + + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + - 86 * - 52 - - 97 + - 1 AS col0 FROM tab2 cor0 WHERE - col2 + - + col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL - 42 + - ( + COUNT( * ) ) + + 85 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - 42 + - ( + COUNT ( * ) ) + + 85 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + COUNT( ALL 3 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3854
SELECT + COUNT ( ALL 3 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT - CAST( + - 49 AS SIGNED ) FROM tab1
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3855
SELECT - CAST ( + - 49 AS INTEGER ) FROM tab1
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT ALL - COUNT( * ), + COUNT( * ) AS col0 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3856
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 cor0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3857
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 95 + SUM( col0 ) AS col2 FROM tab2 cor0
----
NULL
280

skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT CAST ( NULL AS REAL ), + 95 + SUM ( col0 ) AS col2 FROM tab2 cor0
----
NULL
280

query I rowsort
SELECT col0 + + 13 + ( col1 ) FROM tab1 AS cor0 WHERE NOT col2 > ( + col0 ) / - ( - 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + CAST( + col2 AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-3859
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + CAST ( + col2 AS INTEGER ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT + COUNT( DISTINCT - 85 ) * - MAX( ALL - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + COUNT ( DISTINCT - 85 ) * - MAX ( ALL - col2 ) FROM tab1 cor0
----
59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 80 * - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT ALL - + ( + - 41 ) * 78 DIV - col0 + + 99 FROM tab0 AS cor0
----
-114
63
67

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - + ( + - 41 ) * 78 / - col0 + + 99 FROM tab0 AS cor0
----
-114
63
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT SUM( ALL + 43 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 19, col0, - - col1, + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT SUM ( ALL + 43 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 19, col0, - - col1, + col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 > - col0 * + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - MAX( ALL ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - MAX ( ALL ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT CAST( + 75 AS SIGNED ) AS col0 FROM tab0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-3866
SELECT CAST ( + 75 AS INTEGER ) AS col0 FROM tab0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col0 * - ( col0 ) + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 18 * - - 46 FROM tab1
----
828

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 51 + - col1
----

query I rowsort
SELECT DISTINCT - - 79 FROM tab2 WHERE NULL BETWEEN + - col1 / col0 + + col1 * 45 AND NULL
----

query I rowsort
SELECT ALL - col0 * 63 + + 90 FROM tab1 AS cor0
----
-3123
-5265
-5643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL - 61 * CAST( NULL AS SIGNED ) * - 35 + + 81 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-3872
SELECT ALL - 61 * CAST ( NULL AS INTEGER ) * - 35 + + 81 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 77 AS col1 FROM tab0 AS cor0 WHERE col0 / + - col0 - + 33 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT + COUNT( * ) + + - ( - 6 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT + COUNT ( * ) + + - ( - 6 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 32 + 19 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + ( - col2 ) + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 92 + 75 * + + 18 + col0 FROM tab0
----
1273
1345
1355

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - COUNT( DISTINCT - + 83 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - COUNT ( DISTINCT - + 83 ) AS col1 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 60 col2 FROM tab2
----
3060
4020
4620

query III rowsort
SELECT * FROM tab1 WHERE NULL = 99 * ( + + col0 ) + - - 30 + 45
----

query I rowsort
SELECT ALL col1 * + col0 + - col1 AS col1 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL MIN( DISTINCT - 76 ) * + 56 col0 FROM tab0
----
-4256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3882
SELECT ALL MIN ( DISTINCT - 76 ) * + 56 col0 FROM tab0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + COUNT( * ) - + 51 AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3883
SELECT + COUNT ( * ) - + 51 AS col0 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL + 14 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
126

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + 14 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
126

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL col0 * col1 DIV + col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL col0 * col1 / + col1 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col0 ), col1 col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - col2 * - col2 AS col1, - 11 FROM tab2 AS cor0
----
1600
-11
3364
-11
529
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - - COUNT( * ) * - 99 - - + COUNT( * ) * + 86 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3890
SELECT - - COUNT ( * ) * - 99 - - + COUNT ( * ) * + 86 FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT COUNT( * ) * - COUNT( * ) + - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + + CAST( - col2 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( * ) * - COUNT ( * ) + - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + + CAST ( - col2 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + - MIN( DISTINCT - ( + 9 ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + - MIN ( DISTINCT - ( + 9 ) ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT + ( - 10 ) / - - 88 * + + col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + 21 AS col2 FROM tab2 WHERE - col1 + - col2 + - col1 * + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3895
SELECT * FROM tab2 WHERE NOT NULL <= + - 34 / - col1 * + col2 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3895
SELECT * FROM tab2 WHERE NOT NULL <= + - 34 / - col1 * + col2 - - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col1 * col1, - col0 )
----

query II rowsort
SELECT col0, 24 AS col1 FROM tab2
----
46
24
64
24
75
24

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT - SUM( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 89 - - col2 IS NULL
----

query II rowsort
SELECT ALL col2, - 58 AS col2 FROM tab0 AS cor0
----
10
-58
47
-58
99
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT DISTINCT + + 75 + + 76 DIV + SUM( DISTINCT ( + 37 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + + 75 + + 76 / + SUM ( DISTINCT ( + 37 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - col1 * - 83 FROM tab2
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT COUNT( * ) AS col2, - 17 FROM tab2 WHERE + 63 <= NULL
----
0
-17

skipif mysql # not compatible
query II rowsort label-3905
SELECT COUNT ( * ) AS col2, - 17 FROM tab2 WHERE + 63 <= NULL
----
0
-17

query II rowsort
SELECT + 68 + + 68, col2 FROM tab2
----
136
23
136
40
136
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT 56 * CAST( + 42 AS SIGNED ) * + - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-7056

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT 56 * CAST ( + 42 AS INTEGER ) * + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-7056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col2 col0 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + + ( 31 ) + + col2 AS col0 FROM tab2 AS cor0
----
54
71
89

query II rowsort
SELECT ALL - col2 AS col1, 33 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 - + + col1 col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT 20 * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( + 87 ) IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-3913
SELECT 20 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( + 87 ) IS NOT NULL
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col1 col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT - col2 - - - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 52 AS col0, - 21 AS col2 FROM tab2
----
-52
-21
-52
-21
-52
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE 61 >= + col2
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE 61 >= + col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3919
SELECT col1 * + CAST( - col2 AS SIGNED ) + 87 - 8, + 77 * + col0 AS col1 FROM tab2
----
-1094
3542
-3001
4928
-3807
5775

skipif mysql # not compatible
query II rowsort label-3919
SELECT col1 * + CAST ( - col2 AS INTEGER ) + 87 - 8, + 77 * + col0 AS col1 FROM tab2
----
-1094
3542
-3001
4928
-3807
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT DISTINCT + 69 DIV 81 * - + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + 69 / 81 * - + col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT - + 60 DIV - 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT - + 60 / - 99 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col0, 13 FROM tab0
----
15
13
87
13
97
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL - MAX( DISTINCT col0 ) * COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - MAX ( DISTINCT col0 ) * COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 34 AS col0 FROM tab0 cor0 WHERE NOT - 75 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query II rowsort
SELECT ALL - - 10, col0 AS col1 FROM tab1 AS cor0
----
10
51
10
85
10
91

query I rowsort
SELECT - col1 * - + 90 * ( + col0 ) * - col1 AS col2 FROM tab0 cor0
----
-3453030
-8730
-8857350

onlyif mysql # aggregate syntax: 
query II rowsort label-3928
SELECT DISTINCT - 57 AS col1, + MIN( + + col2 ) AS col0 FROM tab2 AS cor0
----
-57
23

skipif mysql # not compatible
query II rowsort label-3928
SELECT DISTINCT - 57 AS col1, + MIN ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-57
23

query I rowsort
SELECT 60 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT col0 * + - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT col0 * + - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0, - 90 FROM tab2 cor0
----
46
-90
64
-90
75
-90

query II rowsort
SELECT + + 96, 57 AS col1 FROM tab1 AS cor0
----
96
57
96
57
96
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL 71 - - MIN( DISTINCT - - 46 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL 71 - - MIN ( DISTINCT - - 46 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3935
SELECT - col2 * + col0 AS col2, - col2 * - CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
-705
NULL
-870
NULL
-9603
NULL

skipif mysql # not compatible
query II rowsort label-3935
SELECT - col2 * + col0 AS col2, - col2 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
-705
NULL
-870
NULL
-9603
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT ALL SUM( ALL + 99 ) AS col0, + MAX( + 73 ) FROM tab0
----
297
73

skipif mysql # not compatible
query II rowsort label-3936
SELECT ALL SUM ( ALL + 99 ) AS col0, + MAX ( + 73 ) FROM tab0
----
297
73

query I rowsort
SELECT ALL + col1 * 51 * + 10 AS col1 FROM tab2
----
26010
34170
39270

query I rowsort
SELECT + 74 * - col2 AS col1 FROM tab2
----
-1702
-2960
-4292

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 - 29 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT COUNT( * ) + + - 36 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3940
SELECT COUNT ( * ) + + - 36 FROM tab1
----
-33

query II rowsort
SELECT - + 1 * - + col0 AS col2, 36 AS col0 FROM tab0 AS cor0
----
15
36
87
36
97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + - 32 * - MIN( col2 ) FROM tab0 AS cor0
----
320

skipif mysql # not compatible
query I rowsort label-3942
SELECT + - 32 * - MIN ( col2 ) FROM tab0 AS cor0
----
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 54 + col1 col2 FROM tab2 AS cor0
----
-3
13
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * col1 col1 FROM tab1
----
-182
-611
-65

query II rowsort
SELECT ALL + col2 * - col2 AS col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL MIN( - col1 ) + - ( ( - 93 ) ) AS col2 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL MIN ( - col1 ) + - ( ( - 93 ) ) AS col2 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT + 26 + - - 42 AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - - col1 + + 73 FROM tab0 AS cor0
----
154
74
94

query I rowsort
SELECT DISTINCT + 57 + col2 FROM tab1 AS cor0
----
116
125
153

query II rowsort
SELECT ALL col0 - - 33 * + col0 AS col2, + col0 * + col2 AS col2 FROM tab0 AS cor0
----
2958
870
3298
9603
510
705

query I rowsort
SELECT 31 + + 17 AS col2 FROM tab0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT col0 DIV 57 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT col0 / 57 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab1 WHERE - - col0 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT MAX( + - col2 ) col1, + 23 FROM tab1
----
-59
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3954
SELECT MAX ( + - col2 ) col1, + 23 FROM tab1
----
-59
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

query I rowsort
SELECT ALL - - 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL + MAX( + 65 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + MAX ( + 65 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - col0 ) + + 2 + + + col2 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL - col1 DIV - + 84 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - col1 / - + 84 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT - 15, + 27 AS col0 FROM tab2 AS cor0
----
-15
27
-15
27
-15
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT + CAST( + - 17 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-3961
SELECT + CAST ( + - 17 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL COUNT( - - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL COUNT ( - - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT 43 AS col1, - COUNT( * ) AS col1 FROM tab2
----
43
-3

skipif mysql # not compatible
query II rowsort label-3964
SELECT 43 AS col1, - COUNT ( * ) AS col1 FROM tab2
----
43
-3

query I rowsort
SELECT + AVG ( - col0 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3966
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, 87 + - - col1 * 28 FROM tab2
----
NULL
1515
NULL
1963
NULL
2243

skipif mysql # not compatible
query II rowsort label-3966
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, 87 + - - col1 * 28 FROM tab2
----
NULL
1515
NULL
1963
NULL
2243

onlyif mysql # DIV for integer division: 
query III rowsort label-3967
SELECT DISTINCT - col1 AS col1, col0 DIV 1 DIV + col1, + 82 - + + 99 AS col1 FROM tab1
----
9 values hashing to b8a045c188070844ebf478e9a7493cdb

skipif mysql # not compatible
query III rowsort label-3967
SELECT DISTINCT - col1 AS col1, col0 / 1 / + col1, + 82 - + + 99 AS col1 FROM tab1
----
9 values hashing to b8a045c188070844ebf478e9a7493cdb

query I rowsort
SELECT 53 * + col1 AS col1 FROM tab1
----
2491
265
742

query II rowsort
SELECT DISTINCT 7, + col2 AS col1 FROM tab1
----
7
59
7
68
7
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col0 AS col1, col1 + - col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

query I rowsort
SELECT ALL - 18 + - col2 * + - col1 FROM tab0 AS cor0
----
192
3789
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 24 / - col2 + - - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - + col2 ) * col1 + + 43 FROM tab0
----
-167
-3764
-56

query II rowsort
SELECT + col0 + 94 * + 50 AS col1, col2 * - + col1 FROM tab2
----
4746
-1173
4764
-3080
4775
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT COUNT( * ) DIV - + 19 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3976
SELECT COUNT ( * ) / - + 19 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + ( ( + - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= + col2 + col1
----

query I rowsort
SELECT + - 68 / + ( - col2 ) + - + 49 FROM tab2 AS cor0 WHERE + 80 BETWEEN NULL AND col1 / + col2
----

query I rowsort
SELECT DISTINCT + col1 + - col0 - + 60 AS col2 FROM tab1 cor0
----
-104
-140
-97

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + col0 * 89 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab2 WHERE 5 IS NOT NULL
----
2
2
2

query II rowsort
SELECT ALL 36 AS col1, 57 * + col0 * + col1 + col0 FROM tab1
----
36
24310
36
243880
36
40749

query II rowsort
SELECT - col2 AS col0, 43 FROM tab1 AS cor0
----
-59
43
-68
43
-96
43

query I rowsort
SELECT + 62 * + + ( + 32 ) FROM tab2
----
1984
1984
1984

query I rowsort
SELECT ALL + 43 + + 59 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT ALL 91 AS col0 FROM tab0 cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - - col1 IS NULL OR NOT - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 22 + col1 col0 FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT ALL + 86 + + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * + - 35 + 64 * col2, col2 FROM tab0 AS cor0
----
1363
47
2871
99
290
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 17 IS NOT NULL
----

query I rowsort
SELECT + 66 + col1 - + 32 FROM tab0
----
115
35
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * - 92 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - MIN( ALL - - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3995
SELECT - MIN ( ALL - - col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT - 22 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + 92
----

query I rowsort
SELECT ALL + col1 - + 5 FROM tab1 AS cor0
----
0
42
9

query I rowsort
SELECT + col2 * + ( - - col1 ) FROM tab0 WHERE 56 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 50 BETWEEN NULL AND + - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + + 70 AS col2 FROM tab2 AS cor0
----
116
134
145

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT - - 49 DIV col2 + - col1 FROM tab0 AS cor0
----
-1
-17
-80

skipif mysql # not compatible
query I rowsort label-4001
SELECT - - 49 / col2 + - col1 FROM tab0 AS cor0
----
-1
-17
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT MIN( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT MIN ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT ( + + 10 ) FROM tab1 AS cor0 WHERE NULL < + ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - 47 + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4004
SELECT - 47 + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT + + col0 + + col0 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT + + col0 + + col0 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT - col1 + - col1 - CAST( NULL AS SIGNED ) * col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT - col1 + - col1 - CAST ( NULL AS INTEGER ) * col2 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT + COUNT( * ) DIV - 8 + + + COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4008
SELECT + COUNT ( * ) / - 8 + + + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 71 + - 53 AS col0 FROM tab2 cor0 WHERE 52 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT - - 13 DIV + ( COUNT( * ) ) AS col2 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4010
SELECT - - 13 / + ( COUNT ( * ) ) AS col2 FROM tab1 cor0
----
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + + col2, 35 FROM tab0 AS cor0
----
10
35
47
35
99
35

query II rowsort
SELECT DISTINCT - - col1 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col0 BETWEEN NULL AND + ( - 63 ) + + - 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT DISTINCT + - COUNT( - - col2 ) AS col1, COUNT( * ) AS col2 FROM tab2 WHERE - 58 IS NOT NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-4015
SELECT DISTINCT + - COUNT ( - - col2 ) AS col1, COUNT ( * ) AS col2 FROM tab2 WHERE - 58 IS NOT NULL
----
-3
3

query I rowsort
SELECT ALL - + col1 * col1 * 86 AS col0 FROM tab1 AS cor0
----
-16856
-189974
-2150

query I rowsort
SELECT + 61 - + - col2 FROM tab0 AS cor0 WHERE NOT - 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + SUM( ALL 39 ) * + 14 AS col2 FROM tab1 WHERE NOT - 10 <= - + col0
----
1638

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + SUM ( ALL 39 ) * + 14 AS col2 FROM tab1 WHERE NOT - 10 <= - + col0
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL MIN( ALL 6 ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL MIN ( ALL 6 ) AS col0 FROM tab0
----
6

query I rowsort
SELECT + - col2 * col2 + + ( + col0 ) * - 9 AS col0 FROM tab0 AS cor0
----
-10674
-2344
-883

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4024
SELECT CAST( NULL AS SIGNED ), + 89 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4024
SELECT CAST ( NULL AS INTEGER ), + 89 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
86

query I rowsort
SELECT - - col0 * + 42 FROM tab0 AS cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT DISTINCT - 47 * + - col0 + - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
14360
2914
4189

query I rowsort
SELECT ALL col0 + - + col1 FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - - MAX( + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - - MAX ( + - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT + + MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT + + MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + - - col0 + - 33 col2, col2 * + 3 AS col0 FROM tab2 AS cor0
----
100
174
36
69
71
120

query III rowsort
SELECT * FROM tab2 WHERE - - col0 - + - 35 IN ( col2 * + col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT + - 83 ) - + 35 FROM tab1
----
-115

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT + - 83 ) - + 35 FROM tab1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT 94 * + + COUNT( * ) AS col0 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-4034
SELECT 94 * + + COUNT ( * ) AS col0 FROM tab2
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 * - col1 col1 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT + 16 + 8 FROM tab1
----
24
24
24

query I rowsort
SELECT ALL 95 * + + col0 AS col0 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + MAX( ALL + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + MAX ( ALL + + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE - 58 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE - 58 IS NOT NULL
----
3

query I rowsort
SELECT ALL + 64 + - col0 + - col1 FROM tab1 cor0
----
-1
-26
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL + MAX( - col2 ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + MAX ( - col2 ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - - col2 - + + 89 FROM tab0 AS cor0
----
-42
-79
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT ALL + - COUNT( ALL - + 4 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT 12 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + - COUNT ( ALL - + 4 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT 12 IS NULL
----
NULL

query II rowsort
SELECT ALL - col1 AS col1, - 69 + - col0 AS col0 FROM tab0 AS cor0
----
-1
-166
-21
-156
-81
-84

query I rowsort
SELECT 77 * - 7 * + 81 AS col0 FROM tab1
----
-43659
-43659
-43659

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT - MIN( DISTINCT ( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - MIN ( DISTINCT ( + col0 ) ) FROM tab2
----
-46

query II rowsort
SELECT - col2, col0 + + - col1 AS col2 FROM tab1
----
-59
80
-68
44
-96
37

query II rowsort
SELECT ALL col0, + 79 AS col1 FROM tab2
----
46
79
64
79
75
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 49 ) col0 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT DISTINCT COUNT( * ), COUNT( * ) * + + MAX( col2 ) AS col1 FROM tab2 AS cor0
----
3
174

skipif mysql # not compatible
query II rowsort label-4052
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * + + MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
3
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 53 ) col1 FROM tab2 AS cor0
----
-53

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - 87
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT + + COUNT( - ( CAST( ( - ( + - 27 ) ) AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4055
SELECT + + COUNT ( - ( CAST ( ( - ( + - 27 ) ) AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 + - col0 - + + 30 AS col1 FROM tab1 cor0
----
-110
-67
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT + - COUNT( DISTINCT - + 69 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT + - COUNT ( DISTINCT - + 69 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL 0 + col1 + - ( + col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - - 98 + COUNT( * ) AS col2 FROM tab0 cor0
----
101

skipif mysql # not compatible
query I rowsort label-4059
SELECT - - 98 + COUNT ( * ) AS col2 FROM tab0 cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + SUM( - col0 ) AS col2 FROM tab2 WHERE ( col1 IS NOT NULL )
----
-185

skipif mysql # not compatible
query I rowsort label-4060
SELECT + SUM ( - col0 ) AS col2 FROM tab2 WHERE ( col1 IS NOT NULL )
----
-185

query I rowsort
SELECT + + col1 FROM tab0 WHERE NULL > NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL BETWEEN 39 AND - 90
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT - ( - COUNT( * ) ) + - - 18 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - ( - COUNT ( * ) ) + - - 18 AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + - SUM( ALL 99 ) AS col2 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4065
SELECT + - SUM ( ALL 99 ) AS col2 FROM tab2 AS cor0
----
-297

query I rowsort
SELECT + col2 + 45 FROM tab1 WHERE NOT col1 = 22
----
104
113
141

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT COUNT( ALL col2 ) DIV + 83 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4068
SELECT COUNT ( ALL col2 ) / + 83 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT MIN( col1 ) + 42 * - COUNT( * ) FROM tab0
----
-125

skipif mysql # not compatible
query I rowsort label-4069
SELECT MIN ( col1 ) + 42 * - COUNT ( * ) FROM tab0
----
-125

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT ALL col0 DIV 97 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL col0 / 97 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + - 50 * - col0 AS col2 FROM tab2
----
2351
3277
3817

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col1 * + 96 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT ALL 32 DIV ( ( COUNT( ALL + ( + col1 ) ) ) ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL 32 / ( ( COUNT ( ALL + ( + col1 ) ) ) ) FROM tab1
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 70 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - 72 + - 50 FROM tab0 WHERE NULL IS NULL
----
-122
-122
-122

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col0 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT 8 * + col2 - - col2 DIV col0 FROM tab2
----
184
320
464

skipif mysql # not compatible
query I rowsort label-4079
SELECT 8 * + col2 - - col2 / col0 FROM tab2
----
184
320
464

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT ALL col0 DIV + 39 + col1 FROM tab2 WHERE NOT - col1 IN ( 57 )
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL col0 / + 39 + col1 FROM tab2 WHERE NOT - col1 IN ( 57 )
----
52
68
78

query I rowsort
SELECT ALL + col0 * col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL + COUNT( * ) col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN - ( col2 ) AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4083
SELECT ALL + COUNT ( * ) col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN - ( col2 ) AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT col1 - + col2 AS col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT - COUNT( DISTINCT col0 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT - COUNT ( DISTINCT col0 ) col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT - 39 DIV - COUNT( * ) - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4086
SELECT - 39 / - COUNT ( * ) - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
22

query I rowsort
SELECT ALL ( col2 ) + - 96 AS col0 FROM tab1
----
-28
-37
0

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + 51 <> ( + 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 7 FROM tab0 WHERE NULL IS NULL
----
-7

query I rowsort
SELECT DISTINCT 85 * + col0 + - col0 AS col0 FROM tab2
----
3864
5376
6300

query I rowsort
SELECT DISTINCT + 69 + + 42 AS col0 FROM tab1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT DISTINCT ( - ( MIN( + col0 ) ) ) * - ( CAST( - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT ( - ( MIN ( + col0 ) ) ) * - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( + col2 / col2 - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( + col2 / col2 - col2 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - 60 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT COUNT( * ) + MAX( DISTINCT - 76 + col1 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4095
SELECT COUNT ( * ) + MAX ( DISTINCT - 76 + col1 ) FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4096
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 + 9 ) = + col0 + - 58 * + CAST( ( - col2 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4096
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 + 9 ) = + col0 + - 58 * + CAST ( ( - col2 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT 9 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT 9 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - ( col0 ) + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT + ( - 71 ) AS col0 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( - ( col0 ) * + 99 - 8 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT ( - col1 ) + - CAST( 79 AS SIGNED ) FROM tab2 AS cor0
----
-130
-146
-156

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT ( - col1 ) + - CAST ( 79 AS INTEGER ) FROM tab2 AS cor0
----
-130
-146
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( - 90 ) / - col0 + - col2 * - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4102
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( - 90 ) / - col0 + - col2 * - col1 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 * ( + 78 ) ) BETWEEN + 24 AND ( col1 ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - SUM( DISTINCT - col0 ) + - MIN( ALL + col0 ) FROM tab2 cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT - SUM ( DISTINCT - col0 ) + - MIN ( ALL + col0 ) FROM tab2 cor0 WHERE NULL >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 71 col2 FROM tab1 cor0
----
118
76
85

query I rowsort
SELECT 38 * col2 - + col0 / 25 FROM tab0 WHERE NULL BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT + col2 / col2 FROM tab2 WHERE + 45 + col1 / col2 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL COUNT( * ) - + + 88 AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COUNT ( * ) - + + 88 AS col2 FROM tab2
----
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NOT NULL OR NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT SUM( ALL col2 ) DIV - SUM( + col1 + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT SUM ( ALL col2 ) / - SUM ( + col1 + col1 ) FROM tab0
----
0

query I rowsort
SELECT col2 + col2 * col1 AS col2 FROM tab2 WHERE 49 * col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col1 + col2 - - col2 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL + + CAST( + + CAST( + col2 AS SIGNED ) AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + + CAST ( + + CAST ( + col2 AS INTEGER ) AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - MAX( - col1 ) * - - 74 AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4114
SELECT - MAX ( - col1 ) * - - 74 AS col2 FROM tab0
----
74

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col0 + + col2 NOT BETWEEN - 89 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col0 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 89 * 60 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - col1 = 70 - - ( + ( col2 ) ) * col0
----
10
47
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + + - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 >= ( + col0 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 11 AS col1, - col2 AS col0 FROM tab1 cor0
----
-11
-59
-11
-68
-11
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + 11 / col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT - 71 DIV + 1 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 71 / + 1 FROM tab2 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 * + 97 col2, col1 AS col0 FROM tab0
----
1455
1
1455
21
1455
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col2 * 0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 36 >= - 46 * col1
----

query I rowsort
SELECT 85 * 81 * 62 FROM tab0
----
426870
426870
426870

query I rowsort
SELECT 64 * + 26 * col1 AS col2 FROM tab1
----
23296
78208
8320

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( - col2 * + 50 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT ALL + - ( + COUNT( * ) ) col1, - COUNT( * ) + - - 57 AS col2 FROM tab0 cor0
----
-3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4132
SELECT ALL + - ( + COUNT ( * ) ) col1, - COUNT ( * ) + - - 57 AS col2 FROM tab0 cor0
----
-3
54

query I rowsort
SELECT DISTINCT - 11 + - - col2 + + col2 * - 99 * 45 AS col1 FROM tab0 AS cor0
----
-209349
-440957
-44551

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + 75 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL SUM( DISTINCT - ( col2 ) ) AS col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL SUM ( DISTINCT - ( col2 ) ) AS col1 FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT COUNT( * ) * - + 61 AS col0, - 65 AS col0 FROM tab1 cor0
----
-183
-65

skipif mysql # not compatible
query II rowsort label-4136
SELECT COUNT ( * ) * - + 61 AS col0, - 65 AS col0 FROM tab1 cor0
----
-183
-65

query I rowsort
SELECT + 19 + - 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + MAX( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-4138
SELECT + MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT - SUM( DISTINCT 11 ) / 47 FROM tab0 cor0 WHERE NULL <= 68 + + - CAST( NULL AS SIGNED ) + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT - SUM ( DISTINCT 11 ) / 47 FROM tab0 cor0 WHERE NULL <= 68 + + - CAST ( NULL AS INTEGER ) + - 62
----
NULL

query I rowsort
SELECT ALL - + col2 + + col0 * + col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT - - col1 + col2 * - 25 * ( - - col1 ) FROM tab0 AS cor0
----
-2474
-5229
-95094

query I rowsort
SELECT ALL + col2 + + 8 FROM tab0 AS cor0
----
107
18
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - COUNT( * ) + + SUM( ALL col0 ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-4143
SELECT - COUNT ( * ) + + SUM ( ALL col0 ) FROM tab2 AS cor0
----
182

query I rowsort
SELECT DISTINCT col2 * - 19 + - 82 AS col2 FROM tab2
----
-1184
-519
-842

query II rowsort
SELECT DISTINCT - col2 * + col1, 96 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 9 ) col0 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE + - 1 - col1 NOT BETWEEN ( - col0 ) AND ( NULL )
----
46
64

query I rowsort
SELECT + - col0 * col2 AS col1 FROM tab0 WHERE - 17 / + col0 - - col1 IS NOT NULL
----
-705
-870
-9603

query II rowsort
SELECT ALL ( col2 ) AS col0, - ( + - col2 ) * - + 82 + + col1 AS col2 FROM tab0 AS cor0
----
10
-799
47
-3773
99
-8117

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 < - 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + 94 - - col2 FROM tab1 AS cor0
----
158
204
209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4152
SELECT + 3 - col2 - - + 58 * col2 AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3366
NULL
3879
NULL
5475
NULL

skipif mysql # not compatible
query II rowsort label-4152
SELECT + 3 - col2 - - + 58 * col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3366
NULL
3879
NULL
5475
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT ALL - 94 AS col2, - COUNT( * ) col0 FROM tab1 AS cor0
----
-94
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4153
SELECT ALL - 94 AS col2, - COUNT ( * ) col0 FROM tab1 AS cor0
----
-94
-3

query I rowsort
SELECT DISTINCT - 5 * - - 31 * - col1 AS col2 FROM tab0
----
12555
155
3255

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + COUNT( * ) * MAX( + - 78 ) AS col2 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4156
SELECT + COUNT ( * ) * MAX ( + - 78 ) AS col2 FROM tab1 AS cor0
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT - 76 * - - 51 DIV + - COUNT( * ) + + - 76 AS col1 FROM tab1 AS cor0
----
1216

skipif mysql # not compatible
query I rowsort label-4157
SELECT - 76 * - - 51 / + - COUNT ( * ) + + - 76 AS col1 FROM tab1 AS cor0
----
1216

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 12 * + col0 * - 84 - + 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL - + col1 DIV - 29 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - + col1 / - 29 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT ALL + col1 * 73 * - 96 FROM tab1 AS cor0
----
-329376
-35040
-98112

query I rowsort
SELECT + 32 * - col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4162
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) * - 63 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) * - 63 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL + + ( - SUM( - col1 ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + + ( - SUM ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 AS cor0 WHERE NOT + ( - - col2 ) IS NULL
----
1
21
81

query I rowsort
SELECT 10 FROM tab0 WHERE NOT ( + - col1 ) IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + SUM( + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + SUM ( + col1 ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( - col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL - MAX( ALL + + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - MAX ( ALL + + col1 ) FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 0 col1, + 45 col0 FROM tab1
----
0
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + MIN( - col0 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT + MIN ( - col0 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT 25 DIV + MIN( ALL + 55 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT 25 / + MIN ( ALL + 55 ) FROM tab2
----
0

query II rowsort
SELECT + col1, + col1 * col0 FROM tab0
----
1
97
21
1827
81
1215

query II rowsort
SELECT - 65 AS col2, - ( - col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
-65
4896
-65
5015
-65
6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 92 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT DISTINCT 24 + + col2 AS col2 FROM tab2 AS cor0 WHERE - 45 + 32 + col2 * - CAST( NULL AS SIGNED ) / + + col1 / + CAST( + 29 AS SIGNED ) * 3 BETWEEN NULL AND + 70
----

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT 24 + + col2 AS col2 FROM tab2 AS cor0 WHERE - 45 + 32 + col2 * - CAST ( NULL AS INTEGER ) / + + col1 / + CAST ( + 29 AS INTEGER ) * 3 BETWEEN NULL AND + 70
----

query I rowsort
SELECT DISTINCT - ( col0 ) + + 86 FROM tab0 AS cor0
----
-1
-11
71

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT ( NOT ( NOT ( NULL ) IS NULL ) ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 12 ) <= NULL
----

query I rowsort
SELECT 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + - 34 * + COUNT( * ) * - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
2754

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + - 34 * + COUNT ( * ) * - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - ( - ( + COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4181
SELECT - ( - ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 26 * + col0 * 84
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 / + col1 BETWEEN NULL AND col1 * + - col2 * + 51 * col2 / - col0
----

query I rowsort
SELECT ALL + col2 + 47 * 2 FROM tab0 cor0
----
104
141
193

query I rowsort
SELECT - + col1 - - 79 AS col1 FROM tab2 cor0
----
12
2
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT - CAST( + ( + + col1 ) AS SIGNED ) * - 20 - col0 FROM tab2
----
1265
1476
974

skipif mysql # not compatible
query I rowsort label-4187
SELECT - CAST ( + ( + + col1 ) AS INTEGER ) * - 20 - col0 FROM tab2
----
1265
1476
974

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT 61 * - 2 + + + MIN( ALL - col1 ) + + + 15 AS col2 FROM tab0
----
-188

skipif mysql # not compatible
query I rowsort label-4188
SELECT 61 * - 2 + + + MIN ( ALL - col1 ) + + + 15 AS col2 FROM tab0
----
-188

query I rowsort
SELECT + col1 + ( + col2 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT 66 * + + 31 - COUNT( * ) FROM tab0
----
2043

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT 66 * + + 31 - COUNT ( * ) FROM tab0
----
2043

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 <> col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT + - COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4192
SELECT + - COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT ALL COUNT( * ), 36 AS col2 FROM tab1
----
3
36

skipif mysql # not compatible
query II rowsort label-4193
SELECT ALL COUNT ( * ), 36 AS col2 FROM tab1
----
3
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4194
SELECT * FROM tab1 WHERE NOT ( - CAST( col1 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4194
SELECT * FROM tab1 WHERE NOT ( - CAST ( col1 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * 6 FROM tab0
----
522
582
90

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN - - col2 AND - col2
----

query II rowsort
SELECT col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT - col0 * + col2 - - ( col0 ) AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 15 - - - col0 * + 17 <> + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL + COUNT( * ) + - 57 AS col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + COUNT ( * ) + - 57 AS col1 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT - 6 * - + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 6 * - + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT DISTINCT col2 DIV 39 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT col2 / 39 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4203
SELECT + 36 * - CAST( NULL AS SIGNED ), - col2 / + col1 + - - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4203
SELECT + 36 * - CAST ( NULL AS INTEGER ), - col2 / + col1 + - - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT - 33 * - - col2 * 44 * - - col0 + col0 * col0 * + + col0 FROM tab2
----
-1438880
-3454976
-5894325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + + ( + ( MIN( DISTINCT + + ( 45 ) ) ) ) / - 57 AS col1 FROM tab0 WHERE NOT - + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + + ( + ( MIN ( DISTINCT + + ( 45 ) ) ) ) / - 57 AS col1 FROM tab0 WHERE NOT - + col0 = NULL
----
NULL

query I rowsort
SELECT 13 + - 58 FROM tab1 AS cor0 WHERE ( NULL ) < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL - - COUNT( * ) + + + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - - COUNT ( * ) + + + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0 * col0 * + - col2, + col1 * + + col1 )
----

query I rowsort
SELECT ALL col0 + - 99 AS col0 FROM tab2 AS cor0
----
-24
-35
-53

query I rowsort
SELECT + ( - 82 ) FROM tab2 AS cor0
----
-82
-82
-82

query II rowsort
SELECT ( - col0 ) AS col0, col0 * + col2 AS col1 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + ( - - col0 ) FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 17
----

query I rowsort
SELECT ALL ( + 17 ) FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL + COUNT( * ) * + 11 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + COUNT ( * ) * + 11 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL 37 + 98 * + ( + ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
331

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL 37 + 98 * + ( + ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
331

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT DISTINCT - + 74 + - - col1 DIV - col0 col0 FROM tab0 AS cor0
----
-74
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4217
SELECT DISTINCT - + 74 + - - col1 / - col0 col0 FROM tab0 AS cor0
----
-74
-79

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 = + - col2
----

query I rowsort
SELECT 43 * - - 32 + - col1 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-118270
-335299
-378080

query I rowsort
SELECT - - col2 * + + col1 + col2 AS col0 FROM tab1 AS cor0
----
1440
3264
354

query II rowsort
SELECT DISTINCT - - 27, + 51 AS col1 FROM tab0 AS cor0
----
27
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT col1 DIV col2 * - - 86 + - col1 col1 FROM tab0
----
-1
151
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4222
SELECT DISTINCT col1 / col2 * - - 86 + - col1 col1 FROM tab0
----
-1
151
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - 0 - + SUM( + - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - 0 - + SUM ( + - col1 ) AS col0 FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( ( + 48 ) ) * + - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 50 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 < - 88 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 = ( - 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - + col2 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 + - + col0 / - + col2, + col0 * - - col0, 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # DIV for integer division: 
query II rowsort label-4231
SELECT DISTINCT 49 AS col2, col1 DIV col1 AS col0 FROM tab1
----
49
1

skipif mysql # not compatible
query II rowsort label-4231
SELECT DISTINCT 49 AS col2, col1 / col1 AS col0 FROM tab1
----
49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT - - MIN( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT col0 <= - col0
----
-99

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT col0 <= - col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + - SUM( ( ( - + col2 ) ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4233
SELECT + - SUM ( ( ( - + col2 ) ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + 49 + col0 AS col0 FROM tab0 AS cor0
----
136
146
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + MIN( ALL + + 4 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-4235
SELECT + MIN ( ALL + + 4 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT + - ( + 51 ) * - COUNT( * ) + MAX( DISTINCT + 96 ) * + SUM( ALL col2 ) FROM tab2 cor0
----
11769

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + - ( + 51 ) * - COUNT ( * ) + MAX ( DISTINCT + 96 ) * + SUM ( ALL col2 ) FROM tab2 cor0
----
11769

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT - + MAX( + + 54 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4237
SELECT - + MAX ( + + 54 ) FROM tab0 AS cor0
----
-54

query II rowsort
SELECT ALL - 39, col2 AS col1 FROM tab2 AS cor0
----
-39
23
-39
40
-39
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL - COUNT( * ) + - 8 col0 FROM tab0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4239
SELECT ALL - COUNT ( * ) + - 8 col0 FROM tab0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT SUM( DISTINCT + col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4241
SELECT DISTINCT SUM ( DISTINCT + col2 ) col0 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT CAST( + COUNT( * ) AS SIGNED ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4242
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col0 * - + col2 col1 FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col1 col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col2 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 97 * - col0 FROM tab2
----
-4462
-6208
-7275

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT DISTINCT col0 DIV 57 + + + col2 AS col2 FROM tab2 AS cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT col0 / 57 + + + col2 AS col2 FROM tab2 AS cor0
----
23
41
59

query I rowsort
SELECT ALL col0 * + col2 * - ( + 20 ) FROM tab0
----
-14100
-17400
-192060

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT 4 * + CAST( NULL AS SIGNED ) * - + COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT DISTINCT 4 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 * + col2 / - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + COUNT( + col0 ) * 8 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + COUNT ( + col0 ) * 8 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 AND col2 IS NULL
----

query I rowsort
SELECT + col0 - + + col0 * col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IS NULL AND NOT col1 IS NULL
----

query II rowsort
SELECT DISTINCT 33 AS col0, + 8 FROM tab2
----
33
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT col2 DIV - 30 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4258
SELECT col2 / - 30 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL + ( + - 64 ) * + 52 * 88 AS col2 FROM tab1
----
-292864
-292864
-292864

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 73 + col1
----

query II rowsort
SELECT ALL - col2 AS col0, col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT ALL + col2 AS col0, 52 FROM tab2 AS cor0
----
23
52
40
52
58
52

query II rowsort
SELECT + - col1, 70 * + + col0 AS col1 FROM tab1 AS cor0
----
-14
3570
-47
6370
-5
5950

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + - col0 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 67 * - 18 * + + 59 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + - col2 = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT - - col0 + - + CAST( NULL AS SIGNED ) + + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT - - col0 + - + CAST ( NULL AS INTEGER ) + + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 56 + + - col1 AS col2 FROM tab1 cor0
----
-12
-19
24

query II rowsort
SELECT 62, + 87 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col0 + 21 FROM tab0
----
108
118
36

query I rowsort
SELECT DISTINCT - 38 * col0 AS col2 FROM tab2
----
-1748
-2432
-2850

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 38 + - + col0 - + + 21 + - col2
----

query I rowsort
SELECT 15 + col2 AS col0 FROM tab2
----
38
55
73

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= - col1
----
15
81
47

query I rowsort
SELECT ALL - 44 * + - col2 AS col1 FROM tab1
----
2596
2992
4224

query I rowsort
SELECT ALL + 11 * + 36 AS col0 FROM tab0
----
396
396
396

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT + col1 DIV 8 AS col1 FROM tab0 AS cor0
----
0
10
2

skipif mysql # not compatible
query I rowsort label-4277
SELECT + col1 / 8 AS col1 FROM tab0 AS cor0
----
0
10
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - MIN( ALL + + 99 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4278
SELECT - MIN ( ALL + + 99 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - - SUM( DISTINCT + 96 ) FROM tab2 AS cor0 WHERE + col1 * + + 13 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-4279
SELECT - - SUM ( DISTINCT + 96 ) FROM tab2 AS cor0 WHERE + col1 * + + 13 IS NOT NULL
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT ALL + ( - col0 ) * - col1 DIV + col1 - 95 AS col0 FROM tab2 AS cor0
----
-20
-31
-49

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + ( - col0 ) * - col1 / + col1 - 95 AS col0 FROM tab2 AS cor0
----
-20
-31
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT ALL - + ( - 39 ) DIV - - 56 FROM tab2 cor0 WHERE NOT + col2 * - col0 + 56 + + 68 + ( + col1 ) NOT BETWEEN - col2 DIV + 33 + - + 78 AND NULL OR NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - + ( - 39 ) / - - 56 FROM tab2 cor0 WHERE NOT + col2 * - col0 + 56 + + 68 + ( + col1 ) NOT BETWEEN - col2 / + 33 + - + 78 AND NULL OR NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col2 * + - ( - 1 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * - ( + col1 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = ( + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - col1 ) * - 49 AS col0 FROM tab0
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL SUM( + col0 ) * - SUM( ALL col1 ) FROM tab2
----
-36075

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL SUM ( + col0 ) * - SUM ( ALL col1 ) FROM tab2
----
-36075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT DISTINCT ( - col0 ) * - - CAST( NULL AS SIGNED ) * + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT ( - col0 ) * - - CAST ( NULL AS INTEGER ) * + - col1 FROM tab2
----
NULL

query I rowsort
SELECT + - 75 AS col2 FROM tab1 WHERE NOT - - col1 / 60 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 5 AND + + col1
----

query I rowsort
SELECT + + 70 * + 88 + - col1 AS col2 FROM tab1 AS cor0
----
6113
6146
6155

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4291
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) / col2 AS col1, CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4291
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / col2 AS col1, CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT 82 + - 51 + - - MIN( DISTINCT - 44 ) + + COUNT( * ) * + 57 * + SUM( - + col0 ), 63 AS col1 FROM tab1
----
-38830
63

skipif mysql # not compatible
query II rowsort label-4292
SELECT 82 + - 51 + - - MIN ( DISTINCT - 44 ) + + COUNT ( * ) * + 57 * + SUM ( - + col0 ), 63 AS col1 FROM tab1
----
-38830
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT - 86 AS col0, + MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-86
-59

skipif mysql # not compatible
query II rowsort label-4293
SELECT - 86 AS col0, + MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-86
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT - - CAST( - col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4294
SELECT - - CAST ( - col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4295
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT - 6 AS col2, + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
-6
10

skipif mysql # not compatible
query II rowsort label-4296
SELECT - 6 AS col2, + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-6
10

query I rowsort
SELECT ALL ( + - 54 ) + - 51 + + - col2 FROM tab1 AS cor0
----
-164
-173
-201

query I rowsort
SELECT ALL - 61 + col1 FROM tab1 AS cor0
----
-14
-47
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col0 * col0 < NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 FROM tab0 AS cor0 WHERE ( NULL ) >= - col0 + - 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) / + col2 / + col1 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) / + col2 / + col1 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4302
SELECT ALL + col0 + col2 FROM tab2 AS cor0 WHERE NOT - 15 * - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + col0 + col2 FROM tab2 AS cor0 WHERE NOT - 15 * - CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT 97 AS col0, + 94 FROM tab0 AS cor0
----
97
94
97
94
97
94

query I rowsort
SELECT ALL + 98 + - - col0 + - - col0 FROM tab1 WHERE NOT ( ( NULL <= col1 ) )
----

query I rowsort
SELECT - 73 * + col2 FROM tab1
----
-4307
-4964
-7008

query I rowsort
SELECT ALL - + 52 + 81 FROM tab0 WHERE NOT - col2 + col0 >= NULL
----

query I rowsort
SELECT + 71 - ( + + 76 ) AS col1 FROM tab0
----
-5
-5
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4308
SELECT - col1 * - + col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT - col1 * - + col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT - col0 + + - col0 DIV + + 64 AS col2 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-4309
SELECT - col0 + + - col0 / + + 64 AS col2 FROM tab1
----
-51
-86
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4310
SELECT - CAST( NULL AS SIGNED ) + - 26 col0, col1 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-4310
SELECT - CAST ( NULL AS INTEGER ) + - 26 col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT col0 FROM tab0 WHERE + col0 + + col0 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT col0 FROM tab0 WHERE + col0 + + col0 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 61 + - + col1 FROM tab1 AS cor0
----
14
47
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4313
SELECT ALL MIN( DISTINCT - - 51 ) - 5 * + + ( + CAST( NULL AS SIGNED ) ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL MIN ( DISTINCT - - 51 ) - 5 * + + ( + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 36 * - col2 + + 99 AS col1 FROM tab2
----
-1341
-1989
-729

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4315
SELECT col1 DIV - + ( + + 38 ) + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
46
5

skipif mysql # not compatible
query I rowsort label-4315
SELECT col1 / - + ( + + 38 ) + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
46
5

query I rowsort
SELECT DISTINCT - - col1 * + + 20 + - + 31 AS col1 FROM tab1 AS cor0
----
249
69
909

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + COUNT( 41 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + COUNT ( 41 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col0, 63 FROM tab0 AS cor0
----
15
63
87
63
97
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 35 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 35 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col1 + 18 + - 91 * 27 / + + col0
----

query I rowsort
SELECT DISTINCT - 8 * - 76 AS col0 FROM tab2 AS cor0
----
608

query I rowsort
SELECT ALL - 77 * + col1 * + col1 FROM tab1
----
-15092
-170093
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( - ( 17 ) / + col2 + - col2, - col0 * - 52 - - 3, - 20 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( - ( 17 ) / + col2 + - col2, - col0 * - 52 - - 3, - 20 * + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4324
SELECT DISTINCT - 44 DIV + - CAST( - col2 AS SIGNED ) col1 FROM tab0
----
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT DISTINCT - 44 / + - CAST ( - col2 AS INTEGER ) col1 FROM tab0
----
-4
0

query II rowsort
SELECT - col0 AS col2, 52 AS col0 FROM tab0 WHERE NOT + 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL ( MIN( - col2 ) ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4326
SELECT ALL ( MIN ( - col2 ) ) col2 FROM tab2
----
-58

query I rowsort
SELECT + 57 * + 51 AS col1 FROM tab1
----
2907
2907
2907

query II rowsort
SELECT + 8, - col0 AS col1 FROM tab0
----
8
-15
8
-87
8
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL col2 * CAST( NULL AS SIGNED ) + - + 26 FROM tab0 WHERE col2 * 64 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + - + 26 FROM tab0 WHERE col2 * 64 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 34 * col1 * - ( - col2 ) FROM tab2 AS cor0
----
104720
132124
39882

query I rowsort
SELECT + col1 * + 69 AS col2 FROM tab0 AS cor0
----
1449
5589
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT - ( - col1 ) * - + col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL + 51 * + COUNT( * ) - + 38 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
421

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + 51 * + COUNT ( * ) - + 38 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT - - 58 + + CAST( + - ( col1 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-23
37
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4335
SELECT - - 58 + + CAST ( + - ( col1 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-23
37
57

query III rowsort
SELECT DISTINCT + + 73 + + 61 AS col2, + col2 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 5d7770b3a08ec36967340cb951e08fa7

query I rowsort
SELECT DISTINCT + + col2 - - 98 * + 9 * + 49 AS col2 FROM tab0 AS cor0
----
43228
43265
43317

query I rowsort
SELECT DISTINCT + col1 + + + 5 + col0 FROM tab1 AS cor0
----
143
70
95

query I rowsort
SELECT 6 + - col0 AS col0 FROM tab1 cor0
----
-45
-79
-85

query I rowsort
SELECT ALL - col1 + + - col0 * + + col1 FROM tab0 AS cor0
----
-1296
-1848
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT - ( + - col2 ) + + col0 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT 14 * - - 9 + - + ( + + MIN( + - 4 ) ) * - MAX( DISTINCT - 99 ) AS col2 FROM tab0
----
522

skipif mysql # not compatible
query I rowsort label-4343
SELECT 14 * - - 9 + - + ( + + MIN ( + - 4 ) ) * - MAX ( DISTINCT - 99 ) AS col2 FROM tab0
----
522

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 43 + - - col1 IS NOT NULL
----

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + SUM( ALL - col2 ) * + COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-4346
SELECT + SUM ( ALL - col2 ) * + COUNT ( * ) FROM tab1
----
-669

onlyif mysql # DIV for integer division: 
query II rowsort label-4347
SELECT DISTINCT + col0 AS col1, col2 DIV - - col0 col0 FROM tab1
----
51
1
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4347
SELECT DISTINCT + col0 AS col1, col2 / - - col0 col0 FROM tab1
----
51
1
85
0
91
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4348
SELECT ALL + + col1 + + col1 * - 5 * - col1 AS col1 FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + + col1 + + col1 * - 5 * - col1 AS col1 FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - ( col1 ) ) col0 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE 41 * + 79 * col2 <= NULL
----

query II rowsort
SELECT col1, 3 AS col2 FROM tab0 cor0
----
1
3
21
3
81
3

query I rowsort
SELECT 79 - + - col1 AS col0 FROM tab1 AS cor0
----
126
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT CAST( + col0 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL < + 66
----

skipif mysql # not compatible
query I rowsort label-4353
SELECT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL < + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 56 * + COUNT( * ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 56 * + COUNT ( * ) FROM tab0
----
-168

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 99 + - ( col1 ) IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 80 * + COUNT( * ) + + + 59 AS col2 FROM tab0 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-4357
SELECT 80 * + COUNT ( * ) + + + 59 AS col2 FROM tab0 AS cor0
----
299

query I rowsort
SELECT DISTINCT + col0 * 97 AS col1 FROM tab1 AS cor0
----
4947
8245
8827

query I rowsort
SELECT DISTINCT 22 * col2 AS col1 FROM tab1 AS cor0
----
1298
1496
2112

query I rowsort
SELECT ALL + + 27 AS col1 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT ALL col1 * + col2 * + 70 * col0 AS col1 FROM tab1 AS cor0
----
1755250
20358520
4798080

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL + COUNT( * ) * 36 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + COUNT ( * ) * 36 FROM tab0 AS cor0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT + col0 DIV + ( 99 ) * - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT + col0 / + ( 99 ) * - col1 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 56 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT - ( + 83 ) AS col0 FROM tab1
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + - - col2 col2 FROM tab0
----
107
159
70

query II rowsort
SELECT - 1, col1 AS col0 FROM tab1
----
-1
14
-1
47
-1
5

query I rowsort
SELECT ALL + + 79 * + 69 AS col0 FROM tab2 AS cor0
----
5451
5451
5451

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4370
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * - 80 + - CAST( 54 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4370
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * - 80 + - CAST ( 54 AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT - + col1 * + col2 * - 14 AS col1 FROM tab2 AS cor0
----
16422
43120
54404

query II rowsort
SELECT - - 89 * - + 76 + 61, col2 FROM tab0 AS cor0 WHERE - col2 <> + - col0
----
-6703
10
-6703
47
-6703
99

query I rowsort
SELECT ALL + col1 * - + ( - col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT - - CAST( NULL AS SIGNED ) * + - 59 + + 11 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4374
SELECT - - CAST ( NULL AS INTEGER ) * + - 59 + + 11 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + + 46 + col0 - + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + + 46 + col0 - + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT col0 - col0 DIV + - col2 AS col1 FROM tab1 WHERE + - col1 >= - 57 * - 33 * + - 78 + + + col2 + 21
----
51
86
92

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT col0 - col0 / + - col2 AS col1 FROM tab1 WHERE + - col1 >= - 57 * - 33 * + - 78 + + + col2 + 21
----
51
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL + 1 + + ( - MIN( + - col2 ) ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + 1 + + ( - MIN ( + - col2 ) ) FROM tab1
----
97

query I rowsort
SELECT + col1 - + 85 * + col2 FROM tab0
----
-3914
-829
-8414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * + - col2 - + - col2 col2 FROM tab0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT - 27 * + + MAX( ALL - 97 ) FROM tab1
----
2619

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT - 27 * + + MAX ( ALL - 97 ) FROM tab1
----
2619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT DISTINCT MAX( ALL - - 17 ) - 48 + 92 FROM tab2 WHERE + col0 * + col1 + CAST( NULL AS SIGNED ) <> + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT MAX ( ALL - - 17 ) - 48 + 92 FROM tab2 WHERE + col0 * + col1 + CAST ( NULL AS INTEGER ) <> + 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL CAST( + col2 AS SIGNED ) - + col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL CAST ( + col2 AS INTEGER ) - + col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + ( + - COUNT( * ) ) + + 29 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + ( + - COUNT ( * ) ) + + 29 FROM tab2 AS cor0
----
26

query I rowsort
SELECT + 32 * - col2 AS col2 FROM tab0
----
-1504
-3168
-320

onlyif mysql # DIV for integer division: 
query II rowsort label-4386
SELECT - col2 AS col2, 34 DIV col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-4386
SELECT - col2 AS col2, 34 / col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT CAST( + 0 AS SIGNED ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4387
SELECT CAST ( + 0 AS INTEGER ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND - 21 * + - ( + - col1 ) / + ( col0 ) + col2
----
0

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND - 21 * + - ( + - col1 ) / + ( col0 ) + col2
----
0

query II rowsort
SELECT ALL - - 91, col1 AS col1 FROM tab2 AS cor0
----
91
51
91
67
91
77

query II rowsort
SELECT + 5, - col1 AS col0 FROM tab0 AS cor0
----
5
-1
5
-21
5
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + + SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4391
SELECT + + SUM ( col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT + ( + col1 ), - 99 FROM tab1
----
14
-99
47
-99
5
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4393
SELECT COUNT( * ) + 51 DIV 50 AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4393
SELECT COUNT ( * ) + 51 / 50 AS col0 FROM tab2
----
4

query I rowsort
SELECT 49 + + - col1 AS col0 FROM tab0
----
-32
28
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT + 72 * ( - - COUNT( * ) ) AS col0 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + 72 * ( - - COUNT ( * ) ) AS col0 FROM tab0
----
216

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT DISTINCT + + col0 * - col0 * + col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT DISTINCT + + col0 * - col0 * + col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0 * 11 + + col1 AS col2, col2 AS col1 FROM tab1 AS cor0
----
1048
68
575
96
940
59

query I rowsort
SELECT ALL ( + - col0 ) FROM tab0 AS cor0 WHERE NOT + 38 - 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 22 + - - col2 AS col2 FROM tab2
----
45
62
80

query I rowsort
SELECT ALL ( 32 ) - + 6 - + + 60 * col0 AS col2 FROM tab1
----
-3034
-5074
-5434

query II rowsort
SELECT DISTINCT - ( col1 ) * - col2 - - + col2 AS col2, col1 FROM tab1
----
1440
14
3264
47
354
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT MAX( + 72 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4404
SELECT MAX ( + 72 ) FROM tab1
----
72

query II rowsort
SELECT - - 24 * + 45, + col2 AS col0 FROM tab0 cor0
----
1080
10
1080
47
1080
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT ALL + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4407
SELECT ALL + col2, col0 DIV - 46 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-4407
SELECT ALL + col2, col0 / - 46 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

query I rowsort
SELECT + col1 * - col2 * - col1 - - + col1 * - 77 AS col2 FROM tab0 AS cor0
----
22
2793
302130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - + ( - 17 ) ) col0 FROM tab1 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - + MAX( 27 ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4412
SELECT - + MAX ( 27 ) AS col0 FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT 11 DIV - - 13 * - 52 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT 11 / - - 13 * - 52 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT - col1 * - CAST( - col2 AS SIGNED ) * - col1 FROM tab2
----
237160
260362
59823

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT - col1 * - CAST ( - col2 AS INTEGER ) * - col1 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL + COUNT( * ) * + 64 AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + COUNT ( * ) * + 64 AS col2 FROM tab1
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 85 ) * col0 * - - 20 col0 FROM tab1
----
-144500
-154700
-86700

query III rowsort
SELECT * FROM tab2 WHERE col2 + - 3 + - col0 IN ( + - col0 + - - col2 )
----

query II rowsort
SELECT col0 + - 33, + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 cor0 WHERE 67 + - 65 / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - - ( + + col2 ) + + col2 + 46 FROM tab2
----
138
190
237

query I rowsort
SELECT DISTINCT - col1 - - - col0 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 22 * - col0 = NULL
----

query I rowsort
SELECT + col2 - col2 * + col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT ALL ( - 52 ) + col1 FROM tab0 AS cor0
----
-31
-51
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4425
SELECT * FROM tab2 WHERE - col1 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4425
SELECT * FROM tab2 WHERE - col1 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT - COUNT( * ) + + 52 AS col0 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - COUNT ( * ) + + 52 AS col0 FROM tab1
----
49

query I rowsort
SELECT ALL - 5 + - col2 FROM tab0
----
-104
-15
-52

query II rowsort
SELECT ALL + col1, 43 AS col0 FROM tab1
----
14
43
47
43
5
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT COUNT( * ) * - - 40 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT COUNT ( * ) * - - 40 FROM tab0
----
120

query I rowsort
SELECT 58 * - + col0 AS col2 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + + ( + 97 ) * - SUM( DISTINCT 95 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4431
SELECT + + ( + 97 ) * - SUM ( DISTINCT 95 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9215

query I rowsort
SELECT ALL + - col2 * + - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4433
SELECT DISTINCT + 25, - COUNT( * ) * 34 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-4433
SELECT DISTINCT + 25, - COUNT ( * ) * 34 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT + - ( + MAX( - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + - ( + MAX ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + + 5 * + col2 FROM tab0 AS cor0
----
235
495
50

query II rowsort
SELECT + col0 AS col0, 83 AS col0 FROM tab1 cor0
----
51
83
85
83
91
83

query I rowsort
SELECT ALL col1 * - + col1 * - + 39 AS col1 FROM tab1
----
7644
86151
975

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + COUNT( + + 85 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4438
SELECT + COUNT ( + + 85 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 BETWEEN NULL AND col2 + + - col1 + + col2
----
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT ALL 4 DIV - + col1 AS col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL 4 / - + col1 AS col2 FROM tab0
----
-4
0
0

query I rowsort
SELECT ALL 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query II rowsort
SELECT - col0 AS col2, - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT + SUM( DISTINCT + + 6 ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4443
SELECT + SUM ( DISTINCT + + 6 ) col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + ( - 75 ) + - col2 FROM tab1 AS cor0
----
-134
-143
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT + + MAX( DISTINCT - col1 ) + 62 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + + MAX ( DISTINCT - col1 ) + 62 FROM tab1 AS cor0
----
57

query I rowsort
SELECT - 5 + - col1 AS col1 FROM tab0
----
-26
-6
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT MAX( ALL - - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT MAX ( ALL - - col2 ) AS col2 FROM tab1
----
96

query II rowsort
SELECT - + col0, + col1 AS col1 FROM tab0 WHERE ( NOT - col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE col2 - col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4450
SELECT * FROM tab2 WHERE 30 / + col2 + - + CAST( + col0 AS SIGNED ) + 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4450
SELECT * FROM tab2 WHERE 30 / + col2 + - + CAST ( + col0 AS INTEGER ) + 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 * + col0 AS col1, + col2 AS col0 FROM tab2
----
-1058
23
-2560
40
-4350
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT - COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT - COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 + - + 60 AS col2 FROM tab0 cor0
----
-45
27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + COUNT( + 98 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4454
SELECT + COUNT ( + 98 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL + COUNT( * ) + MAX( + + 58 ) col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4455
SELECT ALL + COUNT ( * ) + MAX ( + + 58 ) col0 FROM tab1 AS cor0
----
61

query I rowsort
SELECT 87 - + - col1 FROM tab1
----
101
134
92

query I rowsort
SELECT ALL + col1 + 25 * + - 33 * + col0 FROM tab2
----
-37899
-52723
-61808

query I rowsort
SELECT DISTINCT + col0 * - col2 - + 37 FROM tab2
----
-1095
-2597
-4387

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL 37 + - + COUNT( - 72 ) FROM tab2 cor0
----
34

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL 37 + - + COUNT ( - 72 ) FROM tab2 cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - ( + SUM( ALL + CAST( - 30 AS SIGNED ) ) ) * + COUNT( ALL + - ( 86 ) ) AS col0 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-4460
SELECT - ( + SUM ( ALL + CAST ( - 30 AS INTEGER ) ) ) * + COUNT ( ALL + - ( 86 ) ) AS col0 FROM tab1 AS cor0
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT + - 5 DIV + + 47 + col1 - + - col1 AS col0 FROM tab2 cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-4461
SELECT + - 5 / + + 47 + col1 - + - col1 AS col0 FROM tab2 cor0
----
102
134
154

query II rowsort
SELECT + col0 * - 57 * - + 58 AS col2, col0 + col0 AS col2 FROM tab1 AS cor0
----
168606
102
281010
170
300846
182

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 31 * col0 AND + 29 + col2
----

query I rowsort
SELECT + - col0 + col1 + + ( - 55 ) * + + ( - + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1270
2213
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL + MIN( - ( + - col2 ) ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + MIN ( - ( + - col2 ) ) FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - 89 * + SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
16465

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 89 * + SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
16465

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + + COUNT( * ) * 71 AS col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + + COUNT ( * ) * 71 AS col0 FROM tab1 AS cor0
----
213

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 41 / - col1 * + 5 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT ALL 79 DIV + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-3
-79
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 79 / + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-3
-79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL SUM( ALL - + col1 ) * + 86 AS col1 FROM tab0
----
-8858

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL SUM ( ALL - + col1 ) * + 86 AS col1 FROM tab0
----
-8858

query I rowsort
SELECT DISTINCT col0 * - col0 * - - col1 AS col0 FROM tab2
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 IN ( ( col1 ), - col0, 20 * + col1 )
----

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + COUNT( * ) * + - 62 AS col0 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4474
SELECT + COUNT ( * ) * + - 62 AS col0 FROM tab1 AS cor0
----
-186

query II rowsort
SELECT DISTINCT 39 * + 9 * + + col0 AS col2, - 65 FROM tab1 AS cor0
----
17901
-65
29835
-65
31941
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ( - - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4476
SELECT ( - - COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4477
SELECT + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 31 * - 12 FROM tab1 cor0 WHERE NULL IS NULL
----
-372
-372
-372

query II rowsort
SELECT DISTINCT - col1, ( col1 ) FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT + col1 + - col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT + col1 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT + col1 / + col1 IS NULL AND NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + + col2 + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT ALL + - 46 + - - 78 AS col2 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT DISTINCT col0 * + - col1 - - + col1 - + col0 AS col2 FROM tab2
----
-2341
-4915
-5033

query I rowsort
SELECT - col2 * + col1 - - col0 * - 3 FROM tab0
----
-3852
-390
-471

query I rowsort
SELECT col2 - ( col0 ) + + col2 FROM tab2 AS cor0
----
0
16
41

query II rowsort
SELECT + ( - - 71 ), col1 FROM tab1 AS cor0
----
71
14
71
47
71
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + - 19 * + 80 + col2 )
----

query II rowsort
SELECT ALL - col2 * + 55, - col0 * col0 AS col2 FROM tab1 AS cor0
----
-3245
-7225
-3740
-8281
-5280
-2601

query I rowsort
SELECT DISTINCT - col1 * - col1 * + 54 AS col2 FROM tab0 cor0
----
23814
354294
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, 33 FROM tab2
----
23
33
40
33
58
33

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col0 / col1 + - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4495
SELECT * FROM tab0 cor0 WHERE NOT 87 NOT BETWEEN CAST( NULL AS SIGNED ) AND + - col0 * + ( - col2 ) * + col2 + + + col1
----

skipif mysql # not compatible
query III rowsort label-4495
SELECT * FROM tab0 cor0 WHERE NOT 87 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + - col0 * + ( - col2 ) * + col2 + + + col1
----

query I rowsort
SELECT DISTINCT 95 + + col1 * 16 FROM tab1
----
175
319
847

query I rowsort
SELECT + ( - col2 ) AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT col0 FROM tab0 WHERE ( + col2 * 83 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL - MAX( DISTINCT col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL - MAX ( DISTINCT col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT - SUM( + col2 ) - 85 * 59 FROM tab1
----
-5238

skipif mysql # not compatible
query I rowsort label-4500
SELECT - SUM ( + col2 ) - 85 * 59 FROM tab1
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN 35 * - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN 35 * - col1 AND NULL
----
0

query I rowsort
SELECT 56 + col2 * + 44 FROM tab2
----
1068
1816
2608

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT COUNT( * ) * - 22 + + 73 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4503
SELECT COUNT ( * ) * - 22 + + 73 FROM tab1
----
7

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab1 WHERE NOT NULL NOT IN ( + ( + col0 ) )
----

query I rowsort
SELECT DISTINCT col2 * + 29 FROM tab2
----
1160
1682
667

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT col1 + ( 64 ) DIV + col1 FROM tab1
----
17
18
48

skipif mysql # not compatible
query I rowsort label-4506
SELECT col1 + ( 64 ) / + col1 FROM tab1
----
17
18
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4507
SELECT 61 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT 61 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - - 53 * + col1 FROM tab0
----
1200
150
4308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE col2 BETWEEN col2 * - 52 AND 94 * - col1
----

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab0 WHERE NOT 92 BETWEEN + 32 AND ( + col0 * - col2 )
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 * col2 ) IN ( 12 )
----

query I rowsort
SELECT - col0 - - 2 AS col2 FROM tab2
----
-44
-62
-73

query I rowsort
SELECT DISTINCT col0 + + 69 FROM tab2
----
115
133
144

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + 56 * col0 FROM tab1
----
2856
4760
5096

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL + 49 + ( + col0 + col0 ) DIV 7 AS col1 FROM tab2
----
62
67
70

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + 49 + ( + col0 + col0 ) / 7 AS col1 FROM tab2
----
62
67
70

query I rowsort
SELECT ALL - ( 77 ) AS col0 FROM tab1
----
-77
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + 45 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 77 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT ALL CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( + 36 * 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT col0 * 97 - 61 AS col1 FROM tab0
----
1394
8378
9348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL - col0 + + CAST( + 7 AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - col0 + + CAST ( + 7 AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col1 * - 61 AS col0 FROM tab0
----
1281
4941
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) * + MAX( - 1 ) FROM tab0 AS cor0 WHERE NOT ( - 78 ) BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + MAX ( - 1 ) FROM tab0 AS cor0 WHERE NOT ( - 78 ) BETWEEN NULL AND - col0
----
0

query I rowsort
SELECT 72 + - col0 * + ( col1 + + col2 ) FROM tab1 AS cor0 WHERE 0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4528
SELECT * FROM tab0 AS cor0 WHERE col0 * ( + CAST( - col0 AS DECIMAL ) ) IN ( - col1 - + 93 )
----

skipif mysql # not compatible
query III rowsort label-4528
SELECT * FROM tab0 AS cor0 WHERE col0 * ( + CAST ( - col0 AS REAL ) ) IN ( - col1 - + 93 )
----

query I rowsort
SELECT col0 * col2 - - 53 FROM tab0 AS cor0
----
758
923
9656

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) <= - 16
----

query I rowsort
SELECT + col1 * col1 FROM tab2 AS cor0 WHERE - col1 + - 23 IS NOT NULL
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT COUNT( * ) - + SUM( - col2 + + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( * ) - + SUM ( - col2 + + col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - 75 * + 71 - - ( 65 ) AS col0 FROM tab2 AS cor0
----
-5260
-5260
-5260

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT DISTINCT - 95 DIV 72 + - 26 AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT - 95 / 72 + - 26 AS col1 FROM tab1 AS cor0
----
-27

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL col2 * 94 AS col0 FROM tab0
----
4418
9306
940

query I rowsort
SELECT 64 * + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1472
2560
3712

query I rowsort
SELECT + - col1 * 11 FROM tab2 AS cor0
----
-561
-737
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT - ( MIN( DISTINCT 27 ) ) AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - ( MIN ( DISTINCT 27 ) ) AS col1 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4541
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 < ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4541
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 < ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + SUM( + col1 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4542
SELECT + SUM ( + col1 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT + 60 DIV - ( + ( 77 ) ) col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT + 60 / - ( + ( 77 ) ) col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col0 <= ( + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4545
SELECT - CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT - CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 70 * + col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > ( - col1 * 11 )
----

query I rowsort
SELECT - 79 * + col2 FROM tab2 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 40 ) NOT BETWEEN - col2 AND + col2 + - 50
----
51
14
96

query I rowsort
SELECT + 78 - col0 FROM tab2 WHERE NOT + 4 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ( COUNT( * ) ) AS col0 FROM tab0 WHERE NOT - col2 * col1 + + col1 <> 38
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT - col2 * col1 + + col1 <> 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4552
SELECT ALL * FROM tab2 WHERE - ( 61 ) + 59 < - CAST( NULL AS SIGNED ) * 80
----

skipif mysql # not compatible
query III rowsort label-4552
SELECT ALL * FROM tab2 WHERE - ( 61 ) + 59 < - CAST ( NULL AS INTEGER ) * 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT SUM( + - 31 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4553
SELECT SUM ( + - 31 ) FROM tab2
----
-93

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( - 32 * col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT - MIN( - col1 ) * + COUNT( * ) FROM tab2 cor0
----
231

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - MIN ( - col1 ) * + COUNT ( * ) FROM tab2 cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4556
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4556
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 + + + ( 9 ) + 19 * + col0 FROM tab2
----
23
929
40
1289
58
1509

query I rowsort
SELECT + - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # DIV for integer division: 
query II rowsort label-4560
SELECT ALL col1 AS col1, 99 DIV - + col0 FROM tab2
----
51
-2
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-4560
SELECT ALL col1 AS col1, 99 / - + col0 FROM tab2
----
51
-2
67
-1
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - ( 31 ) * - MAX( DISTINCT col2 ) * + 32 FROM tab0 AS cor0
----
98208

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - ( 31 ) * - MAX ( DISTINCT col2 ) * + 32 FROM tab0 AS cor0
----
98208

query I rowsort
SELECT DISTINCT 79 + col0 FROM tab0 AS cor0
----
166
176
94

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 98 + col2 IN ( + ( col2 ) * col0 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + SUM( + 51 ) AS col1 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4564
SELECT + SUM ( + 51 ) AS col1 FROM tab0 AS cor0
----
153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * 65 * + col1 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 53 ) IS NULL
----

query I rowsort
SELECT ALL + - 31 + + + 18 + - - ( - col1 ) + col1 * col0 FROM tab2 cor0
----
2282
4838
4945

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE ( + col1 + - + 81 ) BETWEEN ( NULL ) AND ( col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( 45 )
----

query II rowsort
SELECT DISTINCT - col2 - - col0, col0 AS col1 FROM tab2
----
17
75
23
46
24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT 81 * - COUNT( * ) FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT 81 * - COUNT ( * ) FROM tab1
----
-243

query II rowsort
SELECT DISTINCT + col2 * - 68 AS col2, - 56 FROM tab1
----
-4012
-56
-4624
-56
-6528
-56

query I rowsort
SELECT 40 * 39 + 18 FROM tab0
----
1578
1578
1578

query I rowsort
SELECT col1 + + col2 + col0 + - - col0 FROM tab1
----
212
234
297

query I rowsort
SELECT ALL 13 * - + col2 - + + col1 FROM tab0
----
-1288
-151
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + COUNT( * ) FROM tab0 WHERE col2 / + 54 - 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4576
SELECT + COUNT ( * ) FROM tab0 WHERE col2 / + 54 - 71 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + 87 * + - 20 + + col1 AS col0 FROM tab2 AS cor0
----
-1663
-1673
-1689

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col2 + col2 + + col2
----

query I rowsort
SELECT DISTINCT - col0 + + 14 * + col2 + + + col2 FROM tab2 AS cor0
----
299
536
795

query I rowsort
SELECT DISTINCT - col1 + + 1 FROM tab1 AS cor0 WHERE + 4 BETWEEN ( - col0 * col2 ) AND col2 - 7
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT DISTINCT 46 * + MIN( DISTINCT + - 49 ) AS col1 FROM tab2
----
-2254

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT 46 * + MIN ( DISTINCT + - 49 ) AS col1 FROM tab2
----
-2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 68 * - 40 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 68 * - 40 ) <> ( NULL )
----

query I rowsort
SELECT ALL 39 AS col2 FROM tab2 AS cor0 WHERE NOT 71 NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, 72 col1 FROM tab0 AS cor0
----
1
72
21
72
81
72

query I rowsort
SELECT + 61 * - + col1 FROM tab1 AS cor0
----
-2867
-305
-854

query I rowsort
SELECT - ( col1 ) - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 47 = col0 + - 34
----
-138
-65
-90

query I rowsort
SELECT - col2 * 76 AS col0 FROM tab1 cor0
----
-4484
-5168
-7296

query I rowsort
SELECT + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * + 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL SUM( - 81 ) FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL SUM ( - 81 ) FROM tab1 AS cor0
----
-243

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 ) > ( - ( - ( + col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 44 ) AS col1 FROM tab1
----
44

query II rowsort
SELECT col1 AS col1, 23 * col0 FROM tab1
----
14
1173
47
2093
5
1955

query I rowsort
SELECT col1 * - col2 + + 80 FROM tab1 WHERE NOT + 60 BETWEEN - - 53 * + 20 + 79 AND NULL
----
-1264
-215
-3116

query II rowsort
SELECT ALL col0 AS col2, - 76 + 40 AS col1 FROM tab0
----
15
-36
87
-36
97
-36

query I rowsort
SELECT - - col1 * - + 54 * 15 + + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 / - 11 * + 88 - - - 61 + - col0 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL + MIN( 85 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + MIN ( 85 ) AS col1 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4600
SELECT * FROM tab1 cor0 WHERE NOT + 65 * CAST( + 81 AS SIGNED ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4600
SELECT * FROM tab1 cor0 WHERE NOT + 65 * CAST ( + 81 AS INTEGER ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT + CAST( NULL AS SIGNED ) * CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + CAST ( NULL AS INTEGER ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4602
SELECT ALL col0 col1, + col0 + - col1 - col2 DIV - + 90 + + col0 + - col0 FROM tab0 AS cor0
----
15
-66
87
66
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4602
SELECT ALL col0 col1, + col0 + - col1 - col2 / - + 90 + + col0 + - col0 FROM tab0 AS cor0
----
15
-66
87
66
97
97

query II rowsort
SELECT + col1 * - - 81, col0 + + - 20 AS col2 FROM tab2
----
4131
26
5427
55
6237
44

query II rowsort
SELECT + - 51 AS col1, - col0 * col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-51
-4896
-51
-5015
-51
-6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL < + col2 )
----

query I rowsort
SELECT ALL + 64 * col1 * + 11 FROM tab2 cor0
----
35904
47168
54208

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL col1 DIV 70 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL col1 / 70 + col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL + - col0 + - 69, + col2 AS col0 FROM tab0 AS cor0
----
-156
10
-166
99
-84
47

query I rowsort
SELECT - col0 * - 24 * - col0 + + 51 + + - 5 + 30 FROM tab1 cor0
----
-173324
-198668
-62348

query I rowsort
SELECT DISTINCT - + col0 + + 5 FROM tab2 AS cor0
----
-41
-59
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col0 col2, col0 AS col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + SUM( ALL 64 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4612
SELECT + SUM ( ALL 64 ) FROM tab2 AS cor0
----
192

query II rowsort
SELECT ALL col0 - ( - col0 ), col1 FROM tab2
----
128
77
150
67
92
51

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT 78 - + col1 + 28 * - - col2 * + + col2 + + col1 AS col0 FROM tab2
----
14890
44878
94270

query I rowsort
SELECT ALL + ( - 20 ) AS col0 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT DISTINCT 91 FROM tab1 WHERE NOT 22 / + - 75 <> NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NULL IN ( + 61, 9 )
----

query I rowsort
SELECT - 98 * col2 FROM tab0 AS cor0
----
-4606
-9702
-980

query I rowsort
SELECT - 54 * - 4 AS col1 FROM tab1 AS cor0
----
216
216
216

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON - 84 BETWEEN NULL AND - 51 WHERE ( 14 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 IN ( - + col0, 78 / + 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 60 * - col2, 33 AS col0 FROM tab0 AS cor0
----
-2820
33
-5940
33
-600
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT 75 * - - CAST( 32 AS SIGNED ) + col1 FROM tab0 AS cor0
----
2401
2421
2481

skipif mysql # not compatible
query I rowsort label-4624
SELECT 75 * - - CAST ( 32 AS INTEGER ) + col1 FROM tab0 AS cor0
----
2401
2421
2481

query II rowsort
SELECT - 38 * + - 31, 13 * - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
1178
1131
1178
1261
1178
195

query I rowsort
SELECT 94 * + 55 FROM tab0
----
5170
5170
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL + MAX( col0 ) FROM tab0 WHERE 28 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + MAX ( col0 ) FROM tab0 WHERE 28 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col0 ) IN ( - col0 * - col1 )
----

query I rowsort
SELECT DISTINCT ( - + 47 ) AS col2 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + COUNT( + 39 ) * + + 63 AS col2 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-4631
SELECT + COUNT ( + 39 ) * + + 63 AS col2 FROM tab0
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4632
SELECT - - SUM( DISTINCT + 1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT - - SUM ( DISTINCT + 1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT DISTINCT - + 20 + - col2 DIV col2 col1 FROM tab2 cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4633
SELECT DISTINCT - + 20 + - col2 / col2 col1 FROM tab2 cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 33 + + col1 - + col0 AS col2 FROM tab1 cor0
----
-113
-70
-77

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - col0, + col1, - 81 + - col0 )
----

query I rowsort
SELECT + + col2 + 93 FROM tab2 WHERE - - col2 + - 8 IS NOT NULL
----
116
133
151

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT 75 + - 58 + - 98 * - + COUNT( * ) * - COUNT( * ) AS col2, - MAX( - - col2 ) AS col2 FROM tab0
----
-865
-99

skipif mysql # not compatible
query II rowsort label-4639
SELECT 75 + - 58 + - 98 * - + COUNT ( * ) * - COUNT ( * ) AS col2, - MAX ( - - col2 ) AS col2 FROM tab0
----
-865
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE + 90 IS NULL
----

query I rowsort
SELECT + col1 + + col0 + - col0 AS col2 FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT - col0 + col1 AS col0, 69 AS col1 FROM tab1
----
-37
69
-44
69
-80
69

query I rowsort
SELECT ALL - col2 - col2 * - + col1 AS col0 FROM tab0
----
0
200
3760

query I rowsort
SELECT col0 * - + 46 * - col0 + + col1 + col1 * + col0 AS col2 FROM tab1
----
120374
332780
385250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4645
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 * + col0 * + + col1 * - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4645
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 * + col0 * + + col1 * - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL ( + ( - COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL ( + ( - COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + col0 * - 83 * - - col1 AS col1 FROM tab2 AS cor0
----
-194718
-409024
-417075

query I rowsort
SELECT DISTINCT col0 * ( + 21 ) FROM tab0 AS cor0
----
1827
2037
315

query I rowsort
SELECT + - col0 * col2 - + col0 + col1 * + 44 + 13 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 72 AND NULL
----
-4198
-4867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT + col2 * + col0 * - + col1 * - col2 + - ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT + col2 * + col0 * - + col1 * - col2 + - ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + MAX( + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + MAX ( + col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - 19 * 25 FROM tab0
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT + SUM( + 81 ) FROM tab2 cor0
----
243

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + SUM ( + 81 ) FROM tab2 cor0
----
243

onlyif mysql # DIV for integer division: 
query II rowsort label-4654
SELECT DISTINCT 27 * col2 DIV - ( + col2 ) AS col0, col1 FROM tab0 AS cor0
----
-27
1
-27
21
-27
81

skipif mysql # not compatible
query II rowsort label-4654
SELECT DISTINCT 27 * col2 / - ( + col2 ) AS col0, col1 FROM tab0 AS cor0
----
-27
1
-27
21
-27
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4655
SELECT DISTINCT + col0, col2 DIV - ( col0 ) + + col1 + col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
51
741
85
435
91
4371

skipif mysql # not compatible
query II rowsort label-4655
SELECT DISTINCT + col0, col2 / - ( col0 ) + + col1 + col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
51
741
85
435
91
4371

query I rowsort
SELECT - col2 * + + col1 + - 38 * col1 AS col1 FROM tab0 AS cor0
----
-1008
-137
-6885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4657
SELECT CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT + 7 + + COUNT( * ) + - - 60 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4658
SELECT + 7 + + COUNT ( * ) + - - 60 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL SUM( - + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL SUM ( - + col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT col0 + - ( - - col1 ) FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL ( - SUM( - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL ( - SUM ( - col1 ) ) FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - ( + col1 ) col0 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL ( + 33 ) * - ( col0 ) AS col0 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT - 6 + - + col2 + - col1 FROM tab1
----
-116
-121
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL col2 + + CAST( + + 79 AS SIGNED ) col2 FROM tab1 AS cor0
----
138
147
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4665
SELECT ALL col2 + + CAST ( + + 79 AS INTEGER ) col2 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT + MIN( - 2 ) col2, 38 AS col0 FROM tab1 AS cor0
----
-2
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4666
SELECT + MIN ( - 2 ) col2, 38 AS col0 FROM tab1 AS cor0
----
-2
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT COUNT( * ) * ( - + COUNT( * ) ) - + - 49 FROM tab2 WHERE ( - col2 ) IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-4667
SELECT COUNT ( * ) * ( - + COUNT ( * ) ) - + - 49 FROM tab2 WHERE ( - col2 ) IS NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * - 13 + - col0 > - col0 * + + col1 / col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT ALL + col1 DIV + + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + col1 / + + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4671
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4671
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < CAST ( + col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - - MAX( + 43 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - - MAX ( + 43 ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL - 55 + 44 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT COUNT( * ) + 27 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4675
SELECT COUNT ( * ) + 27 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL CAST( col2 AS SIGNED ) * + col2 + - col0 FROM tab2 AS cor0
----
1536
3289
483

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL CAST ( col2 AS INTEGER ) * + col2 + - col0 FROM tab2 AS cor0
----
1536
3289
483

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col1 + - - 58 + col2 + - + col2 - - col1 col1 FROM tab0 AS cor0
----
157
187
235

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col1 * + + col0 + col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4681
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col0 FROM tab2
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 96 + - 69 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - MAX( DISTINCT + - 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-4683
SELECT - MAX ( DISTINCT + - 19 ) FROM tab1
----
19

query I rowsort
SELECT + 51 * + col2 AS col0 FROM tab1
----
3009
3468
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT ALL CAST( ( - - 42 ) AS SIGNED ) AS col0 FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL CAST ( ( - - 42 ) AS INTEGER ) AS col0 FROM tab2
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * + col0 col2 FROM tab1 AS cor0
----
-2856
-4760
-5096

query I rowsort
SELECT + + col1 * - 45 * col1 + 23 FROM tab2 cor0
----
-117022
-201982
-266782

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + col1 AND + - col2 * - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + col1 AND + - col2 * - + col1 )
----
0

query II rowsort
SELECT - col0 AS col0, + 32 + - + col1 FROM tab2 AS cor0
----
-46
-19
-64
-45
-75
-35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 BETWEEN - col1 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( 92 ), col1 AS col2 FROM tab1 cor0
----
-92
14
-92
47
-92
5

query I rowsort
SELECT ALL col0 * 55 + - 5 FROM tab2 AS cor0
----
2525
3515
4120

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 + col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + COUNT( * ) * + 79 AS col1 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( * ) * + 79 AS col1 FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4695
SELECT * FROM tab1 WHERE + + col1 <= ( - + CAST( NULL AS SIGNED ) ) * - - col2 / + col1 + 21 - + + 63
----

skipif mysql # not compatible
query III rowsort label-4695
SELECT * FROM tab1 WHERE + + col1 <= ( - + CAST ( NULL AS INTEGER ) ) * - - col2 / + col1 + 21 - + + 63
----

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT + 56 + - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-2
16
33

skipif mysql # not compatible
query I rowsort label-4697
SELECT + 56 + - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-2
16
33

onlyif mysql # DIV for integer division: 
query II rowsort label-4698
SELECT ALL + 30 DIV - ( - col1 ) col0, + 61 FROM tab1
----
0
61
2
61
6
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4698
SELECT ALL + 30 / - ( - col1 ) col0, + 61 FROM tab1
----
0
61
2
61
6
61

query I rowsort
SELECT col1 + + col1 - - col1 FROM tab0
----
243
3
63

query I rowsort
SELECT - + 52 + - col0 FROM tab2 cor0
----
-116
-127
-98

query II rowsort
SELECT ALL + + 22 AS col1, col0 FROM tab1 AS cor0
----
22
51
22
85
22
91

query I rowsort
SELECT ALL + col2 * + + 85 AS col1 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT ALL - - 81 + + col1 FROM tab1 AS cor0
----
128
86
95

query I rowsort
SELECT - 53 * + + 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 57307fbbed48b8a4122732622f29c8c6

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN + - col0 AND - - col1 + - - 16
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4706
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 * + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4706
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 * + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + + 73 - + 50 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT col2 - - 18 * - col0 FROM tab2 AS cor0
----
-1112
-1292
-805

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 44 * 6 / - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 77 * + - col0 - col2 FROM tab0 AS cor0
----
1108
6689
7370

query I rowsort
SELECT DISTINCT - + ( + 34 ) * - 86 FROM tab1 cor0
----
2924

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * - col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 15 * col1 AS col0 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT ALL COUNT( ALL - col2 ) DIV - 88 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL COUNT ( ALL - col2 ) / - 88 AS col2 FROM tab1
----
0

query I rowsort
SELECT - 21 * - col2 AS col2 FROM tab0 AS cor0
----
2079
210
987

onlyif mysql # DIV for integer division: 
query II rowsort label-4718
SELECT - col0, - col2 DIV col2 AS col0 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-4718
SELECT - col0, - col2 / col2 AS col0 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4719
SELECT + AVG ( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT + AVG ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col1 * - 44 FROM tab0
----
1
-44
21
-924
81
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT 69 * + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
621

skipif mysql # not compatible
query I rowsort label-4721
SELECT 69 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
621

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT - MIN( DISTINCT + - col2 ) FROM tab0 WHERE NOT - 28 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT - MIN ( DISTINCT + - col2 ) FROM tab0 WHERE NOT - 28 IS NOT NULL
----
NULL

query I rowsort
SELECT 80 * ( + + 90 ) FROM tab0 cor0 WHERE NOT col1 * col1 + + 20 IS NOT NULL
----

query II rowsort
SELECT col2 + - col2 / col0 + - + col2 * - col2, + 14 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT DISTINCT + col1 DIV - col0 + - ( + - ( + 96 ) ) AS col0 FROM tab0 AS cor0
----
91
96

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT + col1 / - col0 + - ( + - ( + 96 ) ) AS col0 FROM tab0 AS cor0
----
91
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT + COUNT( - + 94 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + COUNT ( - + 94 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col0 ) IS NULL
----

query II rowsort
SELECT - + col2 + + col2 * + col2 * 1 AS col2, + col0 AS col2 FROM tab1 cor0
----
3422
85
4556
91
9120
51

query I rowsort
SELECT ALL + 75 FROM tab1 cor0 WHERE NOT 76 * - + col1 IS NOT NULL OR col1 IN ( + ( - col0 ) )
----

query I rowsort
SELECT + col0 * col1 + + 76 * col1 FROM tab0
----
173
3423
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + 65 + - - ( - COUNT( * ) ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 65 + - - ( - COUNT ( * ) ) FROM tab2
----
62

query II rowsort
SELECT - col0 + - col0, col0 FROM tab2
----
-128
64
-150
75
-92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT col0 + - CAST( col1 AS SIGNED ) * - col1 AS col2 FROM tab2
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT col0 + - CAST ( col1 AS INTEGER ) * - col1 AS col2 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col0 * + + 29, ( - + col0 ) AS col2 FROM tab1
----
1479
-51
2465
-85
2639
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + 69 * - - ( + COUNT( ALL 75 ) ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 69 * - - ( + COUNT ( ALL 75 ) ) FROM tab1
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE col0 + + col1 * + CAST( NULL AS SIGNED ) * - col2 + - col1 + + col1 + + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE col0 + + col1 * + CAST ( NULL AS INTEGER ) * - col2 + - col1 + + col1 + + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - + 1 AS col2 FROM tab2 AS cor0
----
45
63
74

query II rowsort
SELECT + + 97, col1 - - + 27 AS col0 FROM tab1 AS cor0
----
97
32
97
41
97
74

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col2 * - - col0 IS NOT NULL
----

query II rowsort
SELECT + 49 * - col2 + col1 + - col1 AS col1, col1 FROM tab0 AS cor0
----
-2303
81
-4851
1
-490
21

query I rowsort
SELECT + col1 * + + col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT ALL - 67, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-67
3

skipif mysql # not compatible
query II rowsort label-4746
SELECT ALL - 67, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-67
3

query II rowsort
SELECT DISTINCT + col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT - COUNT( * ) * - 72 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT - COUNT ( * ) * - 72 FROM tab0 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ( 44 ) / - 1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ( 44 ) / - 1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT COUNT( ALL ( 79 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT COUNT ( ALL ( 79 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + 85 * - + COUNT( * ) + ( - 92 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-350

skipif mysql # not compatible
query I rowsort label-4752
SELECT + 85 * - + COUNT ( * ) + ( - 92 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT MAX( + 28 ) + + 65 * - + COUNT( * ) col1 FROM tab1
----
-167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT MAX ( + 28 ) + + 65 * - + COUNT ( * ) col1 FROM tab1
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT ALL COUNT( * ) AS col1, + ( + 5 ) + - 81 - + + 69 * - + 46 AS col0 FROM tab2 AS cor0
----
3
3098

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL COUNT ( * ) AS col1, + ( + 5 ) + - 81 - + + 69 * - + 46 AS col0 FROM tab2 AS cor0
----
3
3098

query II rowsort
SELECT - - 11 AS col2, 40 FROM tab0 AS cor0
----
11
40
11
40
11
40

query I rowsort
SELECT ALL + 3 + col2 FROM tab1 AS cor0
----
62
71
99

query I rowsort
SELECT ALL - 33 + - 48 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4758
SELECT - SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + + col0 + + col1 AS col0 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL COUNT( * ) + + 19 AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL COUNT ( * ) + + 19 AS col2 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT - - 25 + - col1 FROM tab2 AS cor0
----
-26
-42
-52

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT col1 * - 71 * col2 * - - col0 * - 42 + + col2 - - 8 * - - col1 FROM tab2 WHERE NULL IN ( - col1, - 78 + - col1, - col1 )
----

query I rowsort
SELECT ALL - 78 + col2 AS col1 FROM tab1
----
-10
-19
18

query I rowsort
SELECT ( + + col0 ) * + + col2 + - + 98 * + col0 AS col1 FROM tab2 cor0
----
-3000
-3450
-3712

query I rowsort
SELECT ALL - 51 * + col0 + - 39 FROM tab1 AS cor0
----
-2640
-4374
-4680

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 + + - col0 AND - 10 * + + col0 + - + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - ( COUNT( * ) ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4768
SELECT - ( COUNT ( * ) ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4769
SELECT CAST( + + 83 AS SIGNED ), + col2 FROM tab0
----
83
10
83
47
83
99

skipif mysql # not compatible
query II rowsort label-4769
SELECT CAST ( + + 83 AS INTEGER ), + col2 FROM tab0
----
83
10
83
47
83
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * - col2 + + ( + + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4770
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * - col2 + + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 > + ( 42 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT 91 DIV ( + ( + - col0 ) ) + col2 AS col2 FROM tab0 cor0
----
41
9
99

skipif mysql # not compatible
query I rowsort label-4772
SELECT 91 / ( + ( + - col0 ) ) + col2 AS col2 FROM tab0 cor0
----
41
9
99

query I rowsort
SELECT ALL - - col1 - + + 96 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col1 AS col1, + col1 + + col1 AS col1 FROM tab1
----
14
28
47
94
5
10

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT + + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - - 18 * COUNT( * ) + - + 33 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - - 18 * COUNT ( * ) + - + 33 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
-33

query II rowsort
SELECT - 13 AS col0, ( + 74 ) FROM tab0
----
-13
74
-13
74
-13
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab2 WHERE + + 44 >= - 69 * + 25 * col1
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col2 * col2 + - - 19
----

query I rowsort
SELECT + 73 * 31 FROM tab0 AS cor0
----
2263
2263
2263

query I rowsort
SELECT ALL - 96 + 10 FROM tab0 cor0
----
-86
-86
-86

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 IS NULL )
----
-14
-47
-5

query I rowsort
SELECT + col1 * - - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE ( + + 60 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4784
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE ( + + 60 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + ( COUNT( - 86 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4785
SELECT + ( COUNT ( - 86 ) ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + - - col2 - + 72 col0 FROM tab0 cor0
----
-16
-53
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT ALL col0 DIV - 36 + - col0 - + 92 + - + col1 + + 70 FROM tab2 AS cor0
----
-120
-164
-166

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL col0 / - 36 + - col0 - + 92 + - + col1 + + 70 FROM tab2 AS cor0
----
-120
-164
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4788
SELECT - - CAST( - 99 AS SIGNED ) + - SUM( ALL - col0 ), + 42 AS col0 FROM tab1 AS cor0
----
128
42

skipif mysql # not compatible
query II rowsort label-4788
SELECT - - CAST ( - 99 AS INTEGER ) + - SUM ( ALL - col0 ), + 42 AS col0 FROM tab1 AS cor0
----
128
42

query I rowsort
SELECT - 98 + col1 - col1 * - - 71 - col0 FROM tab2 AS cor0
----
-3714
-4863
-5552

query I rowsort
SELECT ALL - 47 + + + col2 FROM tab0 AS cor0
----
-37
0
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 30 )
----

query I rowsort
SELECT - - col1 + + - 72 FROM tab2 cor0
----
-21
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4793
SELECT col2 + CAST( NULL AS SIGNED ) + - col1, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4793
SELECT col2 + CAST ( NULL AS INTEGER ) + - col1, + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 53 NOT BETWEEN - col1 AND + + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT ALL - 0 - - SUM( col0 ) * - SUM( + + col1 ) AS col2, 35 FROM tab2
----
-36075
35

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL - 0 - - SUM ( col0 ) * - SUM ( + + col1 ) AS col2, 35 FROM tab2
----
-36075
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - 70
----
0

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4797
SELECT DISTINCT col0 - - col1 - - col1, col0 - + + col1 + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 19 AS col2 FROM tab0
----
129
NULL
177
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4797
SELECT DISTINCT col0 - - col1 - - col1, col0 - + + col1 + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 19 AS col2 FROM tab0
----
129
NULL
177
NULL
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4798
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT SUM( - - col1 ) - + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4799
SELECT SUM ( - - col1 ) - + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
102

query I rowsort
SELECT - ( - - 40 ) FROM tab0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT CAST( AVG ( + - col0 ) AS SIGNED ) FROM tab1 WHERE NOT - col2 + - ( 1 ) NOT IN ( + 84, - col2, - CAST( - 28 AS SIGNED ) * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT CAST ( AVG ( + - col0 ) AS INTEGER ) FROM tab1 WHERE NOT - col2 + - ( 1 ) NOT IN ( + 84, - col2, - CAST ( - 28 AS INTEGER ) * + col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT + - 76 * CAST( NULL AS SIGNED ) * + 29 * - col1 + 69 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT + - 76 * CAST ( NULL AS INTEGER ) * + 29 * - col1 + 69 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 0 * 29 - COUNT( - 6 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 0 * 29 - COUNT ( - 6 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - - col0 * + 35 + - col2 AS col1 FROM tab2 cor0
----
1587
2200
2567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT - 42 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - 42 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + ( + 6 ) AS col0 FROM tab0 AS cor0
----
-1
6
-21
6
-81
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT 65, MIN( ALL 91 ) AS col0 FROM tab2 cor0
----
65
91

skipif mysql # not compatible
query II rowsort label-4808
SELECT 65, MIN ( ALL 91 ) AS col0 FROM tab2 cor0
----
65
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT DISTINCT - col0 DIV - col2 * - col1 DIV - + 89 DIV 55 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - col0 / - col2 * - col1 / - + 89 / 55 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( + ( - 40 ) ) FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT + - 13 DIV 90 DIV - 18 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + - 13 / 90 / - 18 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT col0 DIV + col2 FROM tab2 WHERE NOT + - 66 IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4812
SELECT col0 / + col2 FROM tab2 WHERE NOT + - 66 IS NULL
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - SUM( + - ( - col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4814
SELECT - SUM ( + - ( - col2 ) ) FROM tab2
----
-121

query I rowsort
SELECT - 97 * + + col2 AS col0 FROM tab2
----
-2231
-3880
-5626

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + + ( 69 ) * - col2 AS col1 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # DIV for integer division: 
query II rowsort label-4818
SELECT ALL - col2 DIV + 39, 50 + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-1
220
-1
232
-2
152

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL - col2 / + 39, 50 + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-1
220
-1
232
-2
152

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 86 <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT MIN( col0 ) * + - 55, - MIN( ALL - - col1 ) AS col2 FROM tab0
----
-825
-1

skipif mysql # not compatible
query II rowsort label-4820
SELECT MIN ( col0 ) * + - 55, - MIN ( ALL - - col1 ) AS col2 FROM tab0
----
-825
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT 30 * + COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-4821
SELECT 30 * + COUNT ( * ) FROM tab0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT + 6 DIV col1 * + + 59 AS col2, 49 AS col1 FROM tab2 AS cor0
----
0
49
0
49
0
49

skipif mysql # not compatible
query II rowsort label-4822
SELECT + 6 / col1 * + + 59 AS col2, 49 AS col1 FROM tab2 AS cor0
----
0
49
0
49
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - - SUM( - 86 ) * + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - - SUM ( - 86 ) * + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-774

query II rowsort
SELECT + 24 AS col0, col0 AS col0 FROM tab1 AS cor0
----
24
51
24
85
24
91

query I rowsort
SELECT ALL - + 57 + + col0 FROM tab1 AS cor0
----
-6
28
34

query I rowsort
SELECT 40 * - + col0 FROM tab1 cor0
----
-2040
-3400
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - SUM( - 7 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - SUM ( - 7 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT ALL + ( + + col1 ) * col0 FROM tab1 AS cor0 WHERE col2 = ( + + col0 ) + + - col1
----

query I rowsort
SELECT ( col1 ) - + 87 - - col1 FROM tab1
----
-59
-77
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT col1 + + - CAST( + - ( - - ( ( + + col0 ) ) ) AS SIGNED ) FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-4830
SELECT col1 + + - CAST ( + - ( - - ( ( + + col0 ) ) ) AS INTEGER ) FROM tab2
----
141
142
97

query I rowsort
SELECT 34 + + + col2 AS col1 FROM tab0
----
133
44
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4832
SELECT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE 0 + - ( - col2 ) IN ( - ( col1 ) * - 78 ) AND NOT - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4832
SELECT - + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE 0 + - ( - col2 ) IN ( - ( col1 ) * - 78 ) AND NOT - col1 IS NULL
----

query I rowsort
SELECT - col0 + - col0 + + 49 FROM tab2
----
-101
-43
-79

query I rowsort
SELECT + 36 + + + 47 AS col2 FROM tab1
----
83
83
83

query I rowsort
SELECT col2 * + - 34 * 98 / col1 + - ( - col2 ) + 77 * - + col0 - - + col0 / + + col0 + 44 * + + col0 + - col1 - col1 AS col0 FROM tab0 AS cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT - + ( 51 ) AS col0 FROM tab2 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT 55 AS col1, COUNT( * ) * + MAX( - - col0 ) FROM tab0 WHERE NOT - + ( - - col0 ) = 31
----
55
291

skipif mysql # not compatible
query II rowsort label-4837
SELECT 55 AS col1, COUNT ( * ) * + MAX ( - - col0 ) FROM tab0 WHERE NOT - + ( - - col0 ) = 31
----
55
291

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT 86 * + SUM( col1 ) FROM tab2 AS cor0
----
16770

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT 86 * + SUM ( col1 ) FROM tab2 AS cor0
----
16770

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL + MIN( + - 70 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + MIN ( + - 70 ) FROM tab1 AS cor0
----
-70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= - 90 + - 92
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 19 / + - 43 * + ( - 15 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT - 39 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4844
SELECT - 39 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + 76 * + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-4484

skipif mysql # not compatible
query I rowsort label-4845
SELECT + 76 * + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-4484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4846
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 98 FROM tab0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 98 FROM tab0
----
NULL
98
NULL
98
NULL
98

query I rowsort
SELECT DISTINCT + ( + + 40 ) AS col2 FROM tab2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT 52 * - CAST( COUNT( + 59 ) AS SIGNED ) + - COUNT( * ) FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4848
SELECT 52 * - CAST ( COUNT ( + 59 ) AS INTEGER ) + - COUNT ( * ) FROM tab2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - COUNT( * ) + + ( - - COUNT( * ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4849
SELECT - COUNT ( * ) + + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT - col0 + + + 80 * + col1 * + - col2 + - - col0 FROM tab1
----
-107520
-23600
-255680

query II rowsort
SELECT ALL - ( - - 80 ), - 67 AS col1 FROM tab1
----
-80
-67
-80
-67
-80
-67

query I rowsort
SELECT ALL 40 + + 62 + - - 97 FROM tab2
----
199
199
199

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 IN ( - 31, - 91 + - + col0, + col2 + + - col2, + 30, 44 )
----

query I rowsort
SELECT ALL + - 70 + 46 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + + 88 + - col0 AS col2 FROM tab1 AS cor0
----
-3
3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + SUM( DISTINCT + ( - 99 ) ) AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4857
SELECT + SUM ( DISTINCT + ( - 99 ) ) AS col2 FROM tab1 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL - col1 + + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - col1 + + col1 / col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col0 FROM tab0
----
29

query III rowsort
SELECT DISTINCT + 34 - col1 AS col2, + col0, + col2 AS col2 FROM tab2
----
9 values hashing to 85ace18c5eb3834814483e1290604644

query I rowsort
SELECT ALL - - 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT - 22 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT 80 / + col0 * + col0 FROM tab1 WHERE + col1 - + - col2 - col1 * + 68 / col0 * col0 < 96 AND NOT - col1 / col2 + col2 BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT + 70 + - col0 * + - col2 AS col2 FROM tab1 AS cor0
----
4966
5085
6258

query I rowsort
SELECT col2 + + - 38 * + col0 * + col2 + - col1 * + col0 - + col0 AS col1 FROM tab0 AS cor0
----
-27973
-34964
-365009

query I rowsort
SELECT ALL + col0 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT 70 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT 70 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT - MIN( col1 ) * COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - MIN ( col1 ) * COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-18

query I rowsort
SELECT DISTINCT - - col1 + + col0 * + col0 - ( + 26 ) FROM tab0 AS cor0
----
280
7564
9384

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4871
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) / col0 > ( - 47 + - - col1 - - - col2 + + CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4871
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) / col0 > ( - 47 + - - col1 - - - col2 + + CAST ( - - col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 * col2 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
197
199
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT - - MIN( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 68 - MIN( + + 40 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 68 - MIN ( + + 40 ) FROM tab1
----
28

query I rowsort
SELECT DISTINCT 32 * + col2 AS col2 FROM tab2
----
1280
1856
736

query I rowsort
SELECT ALL + - 30 * + + col2 + col0 FROM tab1 AS cor0
----
-1685
-1949
-2829

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT DISTINCT - 66 DIV 72 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4877
SELECT DISTINCT - 66 / 72 col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ( + 51 ) * - - MAX( - col2 ) FROM tab0 AS cor0
----
-510

skipif mysql # not compatible
query I rowsort label-4878
SELECT ( + 51 ) * - - MAX ( - col2 ) FROM tab0 AS cor0
----
-510

query II rowsort
SELECT + 8 AS col1, col2 AS col2 FROM tab0 AS cor0
----
8
10
8
47
8
99

query II rowsort
SELECT DISTINCT - 32 AS col0, col2 FROM tab1 AS cor0
----
-32
59
-32
68
-32
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - 50 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT - - 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL 5 * 35 FROM tab2
----
175
175
175

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL - SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 34 col0 FROM tab1 AS cor0
----
-1598
-170
-476

query II rowsort
SELECT DISTINCT + col2 * - col0 AS col1, - col0 * + - col2 / + 78 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - - + 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 96 + col1 AS col2 FROM tab1
----
101
110
143

query I rowsort
SELECT ALL ( + + 48 ) AS col1 FROM tab0
----
48
48
48

query I rowsort
SELECT col1 * 2 FROM tab0
----
162
2
42

query I rowsort
SELECT + col1 * 76 AS col0 FROM tab2
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT COUNT( * ) + - MIN( DISTINCT - - col0 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4894
SELECT COUNT ( * ) + - MIN ( DISTINCT - - col0 ) FROM tab1
----
-48

query I rowsort
SELECT col2 + - - 31 AS col0 FROM tab0
----
130
41
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT - 92 * - 93 + + COUNT( * ) col1, - COUNT( * ) FROM tab0 AS cor0
----
8559
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4896
SELECT - 92 * - 93 + + COUNT ( * ) col1, - COUNT ( * ) FROM tab0 AS cor0
----
8559
-3

query I rowsort
SELECT ( + + col2 ) + - + col0 FROM tab1 AS cor0
----
-23
-26
45

query II rowsort
SELECT DISTINCT ( + col0 ), - ( - + col2 ) * - + ( + col1 ) FROM tab2 AS cor0 WHERE - col0 BETWEEN + 65 AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - - 41 FROM tab1 AS cor0
----
126
132
92

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL <= + 74
----

query I rowsort
SELECT ALL - col0 + + + col0 + 9 + - + col0 AS col1 FROM tab2
----
-37
-55
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4902
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( - COUNT( * ) ) / - 58 * - 45 - - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4902
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( - COUNT ( * ) ) / - 58 * - 45 - - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
NULL
3

query I rowsort
SELECT + + col0 - - col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL - 90 + + CAST( NULL AS SIGNED ) * + CAST( + col2 AS SIGNED ) / 38 + col0 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - 90 + + CAST ( NULL AS INTEGER ) * + CAST ( + col2 AS INTEGER ) / 38 + col0 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 * col0 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT DISTINCT - 31 - + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT - 31 - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT ALL CAST( 24 AS SIGNED ) * + col2 col1 FROM tab2
----
1392
552
960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4907
SELECT ALL CAST ( 24 AS INTEGER ) * + col2 col1 FROM tab2
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ( - + MAX( DISTINCT - col2 ) ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4908
SELECT ( - + MAX ( DISTINCT - col2 ) ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT 96 * col1 AS col2 FROM tab1
----
1344
4512
480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4910
SELECT + col2 - - col2, - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + + col2 IS NULL
----
116
NULL
46
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT + col2 - - col2, - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + + col2 IS NULL
----
116
NULL
46
NULL
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4911
SELECT - CAST( + 81 AS SIGNED ), col1 FROM tab0
----
-81
1
-81
21
-81
81

skipif mysql # not compatible
query II rowsort label-4911
SELECT - CAST ( + 81 AS INTEGER ), col1 FROM tab0
----
-81
1
-81
21
-81
81

query II rowsort
SELECT ALL - col2 * col2 AS col0, 91 AS col1 FROM tab0
----
-100
91
-2209
91
-9801
91

query I rowsort
SELECT + 63 * + col1 * - 62 AS col2 FROM tab2
----
-199206
-261702
-300762

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ( + COUNT( + + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4914
SELECT ( + COUNT ( + + col0 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) + - 9 DIV COUNT( * ) DIV COUNT( * ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4915
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) + - 9 / COUNT ( * ) / COUNT ( * ) col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4916
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-3

query II rowsort
SELECT ALL + - 98 AS col1, col2 + - - ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 + 14 / col0 col2, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT + SUM( ALL + - col2 ) * + SUM( + - 0 ) col0, - MIN( + 27 ) FROM tab2
----
0
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4919
SELECT + SUM ( ALL + - col2 ) * + SUM ( + - 0 ) col0, - MIN ( + 27 ) FROM tab2
----
0
-27

query II rowsort
SELECT DISTINCT - 35 + - + 96 + 30 + col1, col0 FROM tab2 AS cor0
----
-24
64
-34
75
-50
46

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 81 <= col2 + - col2
----

query I rowsort
SELECT + - ( col2 ) * col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3566
-4715
-9267

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL - COUNT( ALL + 44 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4923
SELECT ALL - COUNT ( ALL + 44 ) col1 FROM tab2
----
-3

query II rowsort
SELECT + col1 + - - col1 AS col0, - 18 AS col0 FROM tab2
----
102
-18
134
-18
154
-18

query I rowsort
SELECT DISTINCT col2 * - col1 * col2 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + col1 + col0 * - + 27 FROM tab2
----
-1191
-1651
-1958

query III rowsort
SELECT * FROM tab1 WHERE 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - 53 BETWEEN NULL AND col0 * + 36 + col2 * - + 12
----

query I rowsort
SELECT ALL + col2 + + col2 + + + col0 + col0 * + 46 - col0 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-642
1201
605

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4931
SELECT ALL 14 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-4931
SELECT ALL 14 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
14
NULL
14
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT - 15 DIV COUNT( * ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4932
SELECT - 15 / COUNT ( * ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT 52 * - COUNT( ALL - 81 ) FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4933
SELECT 52 * - COUNT ( ALL - 81 ) FROM tab2 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - - col0 DIV + + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4934
SELECT - - col0 / + + col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT DISTINCT + col1 DIV + 2 AS col2 FROM tab1 AS cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + col1 / + 2 AS col2 FROM tab1 AS cor0
----
2
23
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4937
SELECT ALL - 55 * 85 * - col2 / + - CAST( - col2 AS DECIMAL ), ( + col1 ) AS col0 FROM tab1 WHERE + col0 + - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4937
SELECT ALL - 55 * 85 * - col2 / + - CAST ( - col2 AS REAL ), ( + col1 ) AS col0 FROM tab1 WHERE + col0 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4938
SELECT + col0 col1, col2 * CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4938
SELECT + col0 col1, col2 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL + SUM( ALL col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + SUM ( ALL col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ( - - col1 ) * + - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab1 cor0 WHERE NOT ( NULL ) >= - col1
----

query II rowsort
SELECT col0 AS col0, 20 + - col2 FROM tab1 AS cor0
----
51
-76
85
-39
91
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-4944
SELECT ALL + col1 DIV - 37 AS col2, - col0 * - col0 FROM tab2
----
-1
2116
-1
5625
-2
4096

skipif mysql # not compatible
query II rowsort label-4944
SELECT ALL + col1 / - 37 AS col2, - col0 * - col0 FROM tab2
----
-1
2116
-1
5625
-2
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + COUNT( ALL + 9 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4945
SELECT + COUNT ( ALL + 9 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL - col2 + + CAST( - ( - ( + + ( - + col2 ) ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - col2 + + CAST ( - ( - ( + + ( - + col2 ) ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT + 63 FROM tab1 AS cor0 WHERE 88 IS NOT NULL
----
63

query I rowsort
SELECT DISTINCT 9 + - 39 AS col1 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 17 + - col0 > - col2 + 98 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - + MIN( DISTINCT col1 ) * 27 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4950
SELECT - + MIN ( DISTINCT col1 ) * 27 FROM tab1 AS cor0
----
-135

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 97 + - 26 AS col1 FROM tab2 cor0
----
71

query I rowsort
SELECT ALL + - col1 + + + col0 * 97 + - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
4365
6067
7133

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL MAX( ALL - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL MAX ( ALL - - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE col1 * col1 * - col2 / - - col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT col0 DIV + - 30 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4956
SELECT col0 / + - 30 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + ( - 99 ) FROM tab1 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT DISTINCT - col2 * + col1 + + 38 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - col2 * + col1 + + 38 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT + col1 * - 85 + - 96 * - - CAST( + + col0 AS SIGNED ) FROM tab1
----
-12731
-6086
-8585

skipif mysql # not compatible
query I rowsort label-4959
SELECT + col1 * - 85 + - 96 * - - CAST ( + + col0 AS INTEGER ) FROM tab1
----
-12731
-6086
-8585

query I rowsort
SELECT 69 + - + 33 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT ALL 42 + + 75 AS col1 FROM tab0 AS cor0
----
117
117
117

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * 52 ) IN ( - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col0 * + col1 + 86 NOT BETWEEN ( + 53 / - 78 ) AND - 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 30 * + col2 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT + col1 + + ( 94 ) * col2 FROM tab2
----
2213
3837
5519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT ALL + MAX( + ( + col2 ) ) DIV + 48 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + MAX ( + ( + col2 ) ) / + 48 AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL - col1 + - 98 FROM tab1
----
-103
-112
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + 51 + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 51 + COUNT ( * ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT + COUNT( * ) + 98 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + COUNT ( * ) + 98 FROM tab1
----
101

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * 41 - col1 / + col1 NOT BETWEEN col1 AND ( + 4 * col2 + + 93 / col0 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - ( 1 ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / + col0 BETWEEN 58 + col1 AND ( - ( ( + col1 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT ALL - col0 DIV - 29 + - 4 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - col0 / - 29 + - 4 FROM tab2
----
-2
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT - col2 DIV - col1 - - 62 FROM tab2
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4975
SELECT - col2 / - col1 - - 62 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT MIN( ALL col2 ) + + 66 AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT MIN ( ALL col2 ) + + 66 AS col0 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 + - 24 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 + - 24 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT + COUNT( * ) + + 95 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT + COUNT ( * ) + + 95 FROM tab2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT ( COUNT( * ) ) + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ( COUNT ( * ) ) + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 WHERE - col2 + col2 <= 96
----
9

skipif mysql # not compatible
query I rowsort label-4981
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 WHERE - col2 + col2 <= 96
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 21 + + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT ( ( 91 ) + - ( ( - col2 ) ) / - col1 ) IS NOT NULL
----

query I rowsort
SELECT ( - 79 ) AS col2 FROM tab1
----
-79
-79
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 IN ( ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - 71 AS col0 FROM tab0 AS cor0
----
-1065
-6177
-6887

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + 34 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4988
SELECT * FROM tab1 AS cor0 WHERE NOT 58 - - ( - CAST( col1 AS SIGNED ) ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-4988
SELECT * FROM tab1 AS cor0 WHERE NOT 58 - - ( - CAST ( col1 AS INTEGER ) ) NOT IN ( + col2 )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( - 32 ) NOT BETWEEN - 41 * + col0 AND 48 * + 67
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - SUM( col1 ) * MAX( col0 * col2 ) AS col1 FROM tab0 cor0
----
-989109

skipif mysql # not compatible
query I rowsort label-4990
SELECT - SUM ( col1 ) * MAX ( col0 * col2 ) AS col1 FROM tab0 cor0
----
-989109

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT + 23 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT + 23 / col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + ( + COUNT( * ) ) * 46 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
414

skipif mysql # not compatible
query I rowsort label-4992
SELECT + ( + COUNT ( * ) ) * 46 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
414

query III rowsort
SELECT * FROM tab1 WHERE NOT 95 = col1 + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 / ( - col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE ( + 48 ) < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE - ( col2 ) * 2 <> ( NULL )
----

query I rowsort
SELECT ALL - col2 * - 58 AS col2 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - COUNT( * ) + + 22 AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COUNT ( * ) + + 22 AS col0 FROM tab0 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5000
SELECT DISTINCT ( - ( 19 ) ) + CAST( + col2 AS SIGNED ) DIV - col2 AS col1 FROM tab1 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT ( - ( 19 ) ) + CAST ( + col2 AS INTEGER ) / - col2 AS col1 FROM tab1 cor0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 * ( - 16 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT 18 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT 18 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT COUNT( * ) + + 96 * COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5003
SELECT COUNT ( * ) + + 96 * COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
291

query I rowsort
SELECT DISTINCT + + col2 + + ( 46 ) FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT - col2 + - 72 * 65 AS col1 FROM tab0 cor0
----
-4690
-4727
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT COUNT( * ) * COUNT( ALL col2 * + col2 ) + 77 AS col1 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-5006
SELECT COUNT ( * ) * COUNT ( ALL col2 * + col2 ) + 77 AS col1 FROM tab1 cor0
----
86

query I rowsort
SELECT ALL + col2 + + 29 FROM tab2 AS cor0
----
52
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + ( + COUNT( * ) ) + SUM( DISTINCT col1 + + 64 ) * 70 FROM tab1 AS cor0
----
18063

skipif mysql # not compatible
query I rowsort label-5008
SELECT + ( + COUNT ( * ) ) + SUM ( DISTINCT col1 + + 64 ) * 70 FROM tab1 AS cor0
----
18063

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE col2 + 36 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - col1 * + col2 + 26 AS col2 FROM tab0 AS cor0
----
-184
-3781
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + col2 ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + col2 ) > ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL CAST( col1 AS SIGNED ) col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5012
SELECT ALL CAST ( col1 AS INTEGER ) col0 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col2 = NULL
----

query I rowsort
SELECT 28 AS col0 FROM tab0 WHERE 7 = 60
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( col0 * + 94 ) AND 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT ( - - MAX( 40 ) ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT ( - - MAX ( 40 ) ) FROM tab1
----
40

query I rowsort
SELECT ALL + 59 + col2 * + col0 FROM tab0 WHERE NOT ( - col2 ) NOT BETWEEN - col1 + - col1 * + 82 AND ( 79 )
----
764
929

query I rowsort
SELECT DISTINCT - 67 * 7 - col0 FROM tab0 AS cor0
----
-484
-556
-566

query I rowsort
SELECT ALL - 77 + - + col2 AS col1 FROM tab1 AS cor0
----
-136
-145
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT + 56 + + COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT IN ( - 30 * + col0 )
----
56

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + 56 + + COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT IN ( - 30 * + col0 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT + 40 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE ( - col2 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + 40 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE ( - col2 ) > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 6 >= ( NULL )
----

query II rowsort
SELECT ALL + 75 AS col0, - col0 FROM tab1 AS cor0
----
75
-51
75
-85
75
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL - MIN( ALL + - col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT ALL - MIN ( ALL + - col1 ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + col0 * + 58 FROM tab0 cor0
----
5046
5626
870

query I rowsort
SELECT + + col2 * - 33 + - col0 AS col0 FROM tab2 AS cor0
----
-1384
-1989
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - + 99 * COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5027
SELECT - + 99 * COUNT ( * ) FROM tab0 AS cor0
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col2 FROM tab0 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) < ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + 81
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + 81
----
0

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab2 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab0 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT - col2 DIV - 70 + + 80 AS col1 FROM tab1
----
80
80
81

skipif mysql # not compatible
query I rowsort label-5036
SELECT - col2 / - 70 + + 80 AS col1 FROM tab1
----
80
80
81

query I rowsort
SELECT + 85 AS col0 FROM tab0 WHERE - 25 <> + - 18
----
85
85
85

query I rowsort
SELECT + col2 * col1 + + 24 FROM tab1
----
1368
319
3220

query I rowsort
SELECT + + col0 * + 45 + - 11 + - col0 FROM tab2 cor0
----
2013
2805
3289

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - MAX( ALL - - col1 ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5040
SELECT - MAX ( ALL - - col1 ) col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT DISTINCT + COUNT( * ) DIV + - 26 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT + COUNT ( * ) / + - 26 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 69 / col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 27 + + COUNT( * ) + 12 * + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 27 + + COUNT ( * ) + 12 * + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT ALL - + col1 + + col1 + + - CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - + col1 + + col1 + + - CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + - col1 - - + 2 + - - ( 27 ) AS col0 FROM tab2 AS cor0
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT 73 * + - COUNT( * ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT 73 * + - COUNT ( * ) FROM tab1
----
-219

query I rowsort
SELECT - col2 + + - 76 * - col0 FROM tab1
----
3780
6401
6848

query I rowsort
SELECT ALL 58 * + + col2 AS col2 FROM tab1
----
3422
3944
5568

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 >= ( ( + + 58 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 * - 99 * - 37 - 48, col1 FROM tab1
----
186765
14
311307
5
333285
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5051
SELECT ALL - col2 AS col1, CAST( + + 45 AS SIGNED ) * + 69 col1, col0 AS col2 FROM tab0
----
9 values hashing to d132d63615fd6384b1b64c57c6715418

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5051
SELECT ALL - col2 AS col1, CAST ( + + 45 AS INTEGER ) * + 69 col1, col0 AS col2 FROM tab0
----
9 values hashing to d132d63615fd6384b1b64c57c6715418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + - 6 * - 35
----

query I rowsort
SELECT + 86 + 40 FROM tab0
----
126
126
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + COUNT( * ) * SUM( col0 ) col1 FROM tab2
----
555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5055
SELECT DISTINCT + COUNT ( * ) * SUM ( col0 ) col1 FROM tab2
----
555

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT ALL + 10 DIV - col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + 10 / - col1 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT - 69 * + - MIN( + col0 ) * - 91 + 64 AS col0 FROM tab0 AS cor0
----
-94121

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - 69 * + - MIN ( + col0 ) * - 91 + 64 AS col0 FROM tab0 AS cor0
----
-94121

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - MIN( ALL + - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5059
SELECT - MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col0 + - - CAST( NULL AS SIGNED ) * + 1 * + ( col0 ) + + col2 + 63 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5061
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col0 + - - CAST ( NULL AS INTEGER ) * + 1 * + ( col0 ) + + col2 + 63 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col1 + + col2, ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < + - col1
----

skipif mysql # not compatible
query I rowsort label-5063
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL COUNT( ALL 62 ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5064
SELECT ALL COUNT ( ALL 62 ) col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5065
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
3

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5067
SELECT ALL + + MIN( DISTINCT - + col0 ) + - 11 FROM tab1 AS cor0 WHERE + col2 * + CAST( + - col1 AS DECIMAL ) IS NOT NULL
----
-102

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + + MIN ( DISTINCT - + col0 ) + - 11 FROM tab1 AS cor0 WHERE + col2 * + CAST ( + - col1 AS REAL ) IS NOT NULL
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + + SUM( col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-5068
SELECT + + SUM ( col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT + COUNT( * ) AS col0, 56 FROM tab2
----
3
56

skipif mysql # not compatible
query II rowsort label-5069
SELECT + COUNT ( * ) AS col0, 56 FROM tab2
----
3
56

query I rowsort
SELECT DISTINCT + 96 * + col2 FROM tab0 WHERE NOT + col2 <> col0 + - col0 + + + col0 * - 66
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 84
----

query I rowsort
SELECT - 9 + + - col2 * - 73 + + + ( + col2 ) AS col1 FROM tab1
----
4357
5023
7095

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT + 43 * MAX( ALL 59 ) AS col0 FROM tab2
----
2537

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + 43 * MAX ( ALL 59 ) AS col0 FROM tab2
----
2537

onlyif mysql # DIV for integer division: 
query II rowsort label-5074
SELECT DISTINCT - col0 AS col2, - col1 DIV col2 FROM tab0
----
-15
-1
-87
-2
-97
0

skipif mysql # not compatible
query II rowsort label-5074
SELECT DISTINCT - col0 AS col2, - col1 / col2 FROM tab0
----
-15
-1
-87
-2
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT SUM( DISTINCT col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5075
SELECT SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT 33 * + + col0 * + ( 34 ) + - + col2 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT + 87 * MAX( + col0 ) + + - COUNT( * ) FROM tab0
----
8436

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + 87 * MAX ( + col0 ) + + - COUNT ( * ) FROM tab0
----
8436

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 < ( + col2 )
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + + 51 + + 51 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

query I rowsort
SELECT - 67 * - col1 * + 23 * + ( - col0 ) + + 72 AS col2 FROM tab1 cor0
----
-1100202
-654853
-6590785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 73 + col2 + - col2 * + col1 col0 FROM tab0 AS cor0
----
-127
-3687
73

query I rowsort
SELECT DISTINCT + col1 + - 68 + - col1 AS col2 FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5085
SELECT 93 + + SUM( col0 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-5085
SELECT 93 + + SUM ( col0 ) / + COUNT ( * ) FROM tab2 AS cor0
----
154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 30 <= col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col2 + + col1 + + col1 * col0 - col0 + + 62 * 34 + - 11 FROM tab1 AS cor0
----
2501
2870
6398

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT MIN( + 81 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT MIN ( + 81 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT * FROM tab0 WHERE 39 NOT BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab0 WHERE 39 NOT BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5090
SELECT * FROM tab2 WHERE + CAST( + - ( col2 ) AS SIGNED ) / - col2 >= ( col0 * + col1 * - 74 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5090
SELECT * FROM tab2 WHERE + CAST ( + - ( col2 ) AS INTEGER ) / - col2 >= ( col0 * + col1 * - 74 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5091
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST( + col0 AS SIGNED ) AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-5091
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST ( + col0 AS INTEGER ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL 2 - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL 2 - COUNT ( * ) FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT col1 DIV - col2 FROM tab0 WHERE - - col2 + + 68 - col1 * - col2 DIV - col2 NOT BETWEEN + col2 AND + 55
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT col1 / - col2 FROM tab0 WHERE - - col2 + + 68 - col1 * - col2 / - col2 NOT BETWEEN + col2 AND + 55
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 - + col0 + + col0 col0 FROM tab1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT MAX( ALL ( + + col0 ) ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT MAX ( ALL ( + + col0 ) ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT 81 * + col2 FROM tab2 AS cor0
----
1863
3240
4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT ( - - CAST( + MAX( + 62 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5097
SELECT ( - - CAST ( + MAX ( + 62 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT DISTINCT - ( - ( - - 4 ) ) * + 78 AS col2 FROM tab1
----
312

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT + 6 * - col1 AS col1 FROM tab1 AS cor0
----
-282
-30
-84

query II rowsort
SELECT ALL 38, col0 FROM tab0 AS cor0
----
38
15
38
87
38
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT + - COUNT( * ) * + - 1 * 23 + - + MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + - COUNT ( * ) * + - 1 * 23 + - + MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 * - col0 col2 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT DISTINCT - - 33 * + 47 FROM tab2 AS cor0
----
1551

query I rowsort
SELECT ALL - + col2 FROM tab0 cor0 WHERE NOT col1 NOT BETWEEN + col2 AND - col2 * - 89
----
-10
-47

query I rowsort
SELECT + col0 * 53 + - + col0 FROM tab2 AS cor0
----
2392
3328
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - COUNT( * ) * + - 32 * - 72 * - 72 * - MIN( ALL + col1 ) FROM tab0
----
-497664

skipif mysql # not compatible
query I rowsort label-5107
SELECT - COUNT ( * ) * + - 32 * - 72 * - 72 * - MIN ( ALL + col1 ) FROM tab0
----
-497664

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + + MAX( col0 ) - - 64 AS col1 FROM tab1 WHERE NOT ( - ( + col1 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT + + MAX ( col0 ) - - 64 AS col1 FROM tab1 WHERE NOT ( - ( + col1 ) IS NOT NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - 82 - + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-85

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 82 - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( + 6 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( + 6 ) IS NOT NULL
----
0

query I rowsort
SELECT + ( - col1 ) * + + col1 * col0 FROM tab2
----
-119646
-336675
-379456

query II rowsort
SELECT + ( - col2 ) AS col2, - 80 - - col0 + 84 * col0 * - - col0 FROM tab0
----
-10
635803
-47
18835
-99
790373

query I rowsort
SELECT ALL ( + 42 ) + col0 * col1 AS col0 FROM tab1
----
4319
467
756

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT - 32 DIV - 58 + + - col1 + col0 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 32 / - 58 + + - col1 + col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT ALL 33 DIV + col2 + col0 + + col1 + + - 73 AS col0 FROM tab0 AS cor0
----
23
25
38

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL 33 / + col2 + col0 + + col1 + + - 73 AS col0 FROM tab0 AS cor0
----
23
25
38

query II rowsort
SELECT + 37 + 69 AS col2, col0 + + col0 + col2 + 50 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
106
-2192
106
-295
106
-4656

query I rowsort
SELECT DISTINCT + col1 + - 11 AS col0 FROM tab1 AS cor0
----
-6
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - MIN( DISTINCT + + 68 ) AS col1 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-5119
SELECT - MIN ( DISTINCT + + 68 ) AS col1 FROM tab1
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5120
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT - AVG ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + - col0 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 cor0 WHERE 99 <> - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 25 col2 FROM tab0 AS cor0
----
106
26
46

query I rowsort
SELECT - col0 + + - col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL COUNT( DISTINCT - 43 ) FROM tab1 WHERE col2 * + - 33 + - ( - - 2 ) * + 1 + + - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL COUNT ( DISTINCT - 43 ) FROM tab1 WHERE col2 * + - 33 + - ( - - 2 ) * + 1 + + - col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5126
SELECT * FROM tab1 WHERE - 84 BETWEEN NULL AND - - 35 / - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5126
SELECT * FROM tab1 WHERE - 84 BETWEEN NULL AND - - 35 / - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT 92 * - 48, 25 * - COUNT( - 56 ) AS col0 FROM tab1
----
-4416
-75

skipif mysql # not compatible
query II rowsort label-5128
SELECT 92 * - 48, 25 * - COUNT ( - 56 ) AS col0 FROM tab1
----
-4416
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT ( - COUNT( - 12 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT ( - COUNT ( - 12 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT - + 65 * MIN( ALL col1 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT - + 65 * MIN ( ALL col1 ) FROM tab0 AS cor0
----
-65

query I rowsort
SELECT ALL + 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + + 51 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + + 51 AND - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT DISTINCT - col1 * - - 66 * - 5 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
15510
-47
1650
-5
4620
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < - 34
----
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < - 34
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * 0 * + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 + - 14 AS col1, - 72 * col2 FROM tab2
----
37
-1656
53
-4176
63
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5141
SELECT SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + - 12 + - - 57 AS col0 FROM tab0 AS cor0
----
45

query II rowsort
SELECT DISTINCT + 66 AS col1, col2 AS col2 FROM tab1 AS cor0
----
66
59
66
68
66
96

query I rowsort
SELECT ALL col1 * + + 37 FROM tab2
----
1887
2479
2849

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 * - - 1 + + 73 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT + col2 + + + 39 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT + col2 + + + 39 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - + col0 / + 14 > NULL
----

query I rowsort
SELECT + col2 * + - col2 + col0 + - col2 + - col0 + + - 62 FROM tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT + 76 + - COUNT( * ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5149
SELECT + 76 + - COUNT ( * ) FROM tab2 AS cor0
----
73

query II rowsort
SELECT - + 78 + - + col1 AS col1, col2 FROM tab1 AS cor0
----
-125
68
-83
59
-92
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT CAST( + 82 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5151
SELECT CAST ( + 82 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT + 78 * - 76 * + + 94 - - col1 AS col1 FROM tab2 AS cor0
----
-557155
-557165
-557181

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + - 31
----

query I rowsort
SELECT + 37 FROM tab2 WHERE NOT NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * - 95 col1 FROM tab2
----
8360
8360
8360

query II rowsort
SELECT col2 AS col0, - 71 FROM tab2
----
23
-71
40
-71
58
-71

query I rowsort
SELECT ALL + 21 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5158
SELECT ALL - COUNT( + ( col2 ) ) AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5158
SELECT ALL - COUNT ( + ( col2 ) ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5159
SELECT + CAST( MAX( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5159
SELECT + CAST ( MAX ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < ( NULL )
----

query I rowsort
SELECT - ( - 70 ) AS col1 FROM tab0
----
70
70
70

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 9 + + - col1 FROM tab2
----
-42
-58
-68

query I rowsort
SELECT ALL col0 * + + 56 * - col2 FROM tab0 cor0
----
-39480
-48720
-537768

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT - 71 DIV ( 42 ) + + 49 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 71 / ( 42 ) + + 49 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT col0 * - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT col0 * - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + + col0 NOT BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL - - COUNT( * ) + - COUNT( DISTINCT + col0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - - COUNT ( * ) + - COUNT ( DISTINCT + col0 ) FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + - 25 * + ( + 77 ) * + + col0 col0 FROM tab1 AS cor0
----
-103071
-168640
-181363

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 40 BETWEEN - col2 AND - col1 * - col1 + - 1
----
15
81
47
87
21
10

query II rowsort
SELECT 40 * + 7 + 18, col1 FROM tab2
----
298
51
298
67
298
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT - ( COUNT( * ) ) + - ( - 98 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-5174
SELECT - ( COUNT ( * ) ) + - ( - 98 ) FROM tab1
----
95

query I rowsort
SELECT col2 + 40 AS col2 FROM tab2
----
63
80
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col2 FROM tab2
----
67

query I rowsort
SELECT - 22 + + - col0 AS col1 FROM tab2 AS cor0
----
-68
-86
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5178
SELECT DISTINCT - + 41 + + - MIN( - CAST( NULL AS DECIMAL ) ) * + 8 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - + 41 + + - MIN ( - CAST ( NULL AS REAL ) ) * + 8 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col0 + - - col1 FROM tab1 AS cor0
----
-2587
-7220
-8234

query III rowsort
SELECT * FROM tab1 cor0 WHERE 74 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 64 - + - ( - - 80 ) AS col1 FROM tab1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT ALL col0 DIV 64 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL col0 / 64 AS col0 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT + col1 - - ( - 58 ) DIV col0 * - - col0 * + 82 FROM tab2
----
-3721
67
77

skipif mysql # not compatible
query I rowsort label-5183
SELECT + col1 - - ( - 58 ) / col0 * - - col0 * + 82 FROM tab2
----
-3721
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + MIN( - ( + 4 ) ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5184
SELECT + MIN ( - ( + 4 ) ) FROM tab1 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 30 NOT BETWEEN NULL AND + 54
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5186
SELECT + + col2, col1 DIV - 99 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-5186
SELECT + + col2, col1 / - 99 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT ALL SUM( - + 7 ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
-21
-3

skipif mysql # not compatible
query II rowsort label-5187
SELECT ALL SUM ( - + 7 ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
-21
-3

query II rowsort
SELECT ALL + col2 * - col2 AS col0, col1 AS col2 FROM tab2
----
-1600
77
-3364
67
-529
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT ALL - + SUM( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL - + 22 DIV 8 + - 36 * 89 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3206
-3206
-3206

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - + 22 / 8 + - 36 * 89 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3206
-3206
-3206

query II rowsort
SELECT col1 AS col1, 75 * + col0 FROM tab2
----
51
3450
67
5625
77
4800

query II rowsort
SELECT ALL - col0 AS col0, + 99 FROM tab0
----
-15
99
-87
99
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT 78 DIV + col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-5193
SELECT 78 / + col2 FROM tab0
----
0
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + CAST( NULL AS SIGNED ) * - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5194
SELECT + CAST ( NULL AS INTEGER ) * - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT + - 97 + - COUNT( * ) col0 FROM tab0 cor0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5195
SELECT DISTINCT + - 97 + - COUNT ( * ) col0 FROM tab0 cor0
----
-100

query I rowsort
SELECT ALL ( + 60 ) + col2 AS col2 FROM tab0 AS cor0
----
107
159
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 69 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + 13 + col2 + - 69 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT SUM( ALL - 25 ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT SUM ( ALL - 25 ) AS col0 FROM tab1 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5200
SELECT ALL - COUNT( * ) + - + 54 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - COUNT ( * ) + - + 54 * + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IS NULL
----
NULL

query I rowsort
SELECT ALL 34 + - ( - col0 ) * - col0 FROM tab1 AS cor0
----
-2567
-7191
-8247

query I rowsort
SELECT - - 19 + - 33 FROM tab0 AS cor0
----
-14
-14
-14

query II rowsort
SELECT ALL - 21 * - col1 AS col2, + 77 AS col0 FROM tab2
----
1071
77
1407
77
1617
77

query II rowsort
SELECT DISTINCT ( + - col1 ) + col0 - - ( - - col1 ), 54 AS col2 FROM tab0
----
15
54
87
54
97
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL col2 / ( - CAST( NULL AS SIGNED ) ) * - 45 / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL col2 / ( - CAST ( NULL AS INTEGER ) ) * - 45 / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT CAST( - + col0 AS SIGNED ) FROM tab0 WHERE + + 45 <> NULL
----

skipif mysql # not compatible
query I rowsort label-5206
SELECT CAST ( - + col0 AS INTEGER ) FROM tab0 WHERE + + 45 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 18 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL + 58 * ( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + 58 * ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT + 66 * col1 - col1 + + CAST( NULL AS SIGNED ) + - - 40 + - 90 * + 43 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT + 66 * col1 - col1 + + CAST ( NULL AS INTEGER ) + - - 40 + - 90 * + 43 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - 55 - + MAX( - - col2 ) FROM tab2 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-5211
SELECT - 55 - + MAX ( - - col2 ) FROM tab2 AS cor0
----
-113

query I rowsort
SELECT DISTINCT 17 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 2 * - 12 - + col0 FROM tab0
----
-10
-111
-47
-39
-99
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT ALL - 9 DIV 93 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5214
SELECT ALL - 9 / 93 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT - - COUNT( + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - - COUNT ( + + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 = - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT - col0 DIV + 4 AS col2 FROM tab0 AS cor0
----
-21
-24
-3

skipif mysql # not compatible
query I rowsort label-5217
SELECT - col0 / + 4 AS col2 FROM tab0 AS cor0
----
-21
-24
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 52 FROM tab2 WHERE NOT + - col2 <= NULL
----

query II rowsort
SELECT DISTINCT + 79 AS col2, + col0 * col2 FROM tab2
----
79
1058
79
2560
79
4350

query I rowsort
SELECT + col0 * ( + col0 ) + + + 48 FROM tab2 WHERE NOT NULL NOT BETWEEN - + col1 / + 98 - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - 52 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - 52 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT - 1 * - 77 DIV col1 + - 8 FROM tab1 WHERE NOT 47 DIV col2 = - 76
----
-3
-7
7

skipif mysql # not compatible
query I rowsort label-5223
SELECT - 1 * - 77 / col1 + - 8 FROM tab1 WHERE NOT 47 / col2 = - 76
----
-3
-7
7

query I rowsort
SELECT ALL 82 * - col2 FROM tab0
----
-3854
-8118
-820

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 NOT IN ( - - col1 / - col0 * 60, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT DISTINCT 0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT 0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + ( - col1 ) AS col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT DISTINCT CAST( 60 AS SIGNED ) col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5228
SELECT DISTINCT CAST ( 60 AS INTEGER ) col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT - + col0 * + + ( - - ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 col2, + col0 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
83
15
83
87
83
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 46 col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + + 79 + - 18 * - + col2 AS col1 FROM tab1 AS cor0
----
1141
1303
1807

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + ( - col1 ) + - + col2
----

query I rowsort
SELECT DISTINCT - - col2 + - 83 FROM tab1 AS cor0
----
-15
-24
13

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) IS NULL AND NOT NULL IN ( - ( col0 ), col1 )
----

query I rowsort
SELECT - col0 + - 60 + - 86 + col0 AS col2 FROM tab0
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL + 8 * + SUM( ALL - 5 ) - - SUM( ALL + col0 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + 8 * + SUM ( ALL - 5 ) - - SUM ( ALL + col0 ) FROM tab2
----
65

query I rowsort
SELECT ALL 1 * + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + 40 + + 59 * ( col2 ) AS col2 FROM tab2
----
1397
2400
3462

query I rowsort
SELECT col1 * - col1 + 62 * - col0 AS col1 FROM tab1
----
-3358
-5295
-7851

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + MAX( + - 65 ) col0 FROM tab0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5242
SELECT ALL + MAX ( + - 65 ) col0 FROM tab0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT 62 * - CAST( - 17 AS SIGNED ) + col2 * - col0 FROM tab1
----
-3842
-3961
-5134

skipif mysql # not compatible
query I rowsort label-5243
SELECT 62 * - CAST ( - 17 AS INTEGER ) + col2 * - col0 FROM tab1
----
-3842
-3961
-5134

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL <> - 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT ALL col2 DIV - - col1 AS col2 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL col2 / - - col1 AS col2 FROM tab0
----
0
0
99

query I rowsort
SELECT ALL - 89 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * 76 AS col0 FROM tab2 AS cor0
----
1748
3040
4408

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT + + 44 * - + MIN( 4 ) FROM tab2 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT + + 44 * - + MIN ( 4 ) FROM tab2 AS cor0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL - MIN( - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - MIN ( - col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 71 * 35 IS NULL
----
51
85
91

query I rowsort
SELECT + 59 * - 52 FROM tab0
----
-3068
-3068
-3068

query I rowsort
SELECT ALL + 58 * + col1 FROM tab2
----
2958
3886
4466

query II rowsort
SELECT + col2, 96 FROM tab1
----
59
96
68
96
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT + COUNT( * ) DIV COUNT( * ) DIV + ( + COUNT( * ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5255
SELECT + COUNT ( * ) / COUNT ( * ) / + ( + COUNT ( * ) ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT + ( + MAX( col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5256
SELECT + ( + MAX ( col1 ) ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE + col1 NOT BETWEEN + ( 96 ) AND NULL
----
-15
-87
-97

query II rowsort
SELECT - 46, ( + col1 ) FROM tab0
----
-46
1
-46
21
-46
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5259
SELECT DISTINCT - ( + CAST( - 76 AS SIGNED ) ) AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
76
3

skipif mysql # not compatible
query II rowsort label-5259
SELECT DISTINCT - ( + CAST ( - 76 AS INTEGER ) ) AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
76
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT CAST( - ( - + 17 ) AS SIGNED ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT CAST ( - ( - + 17 ) AS INTEGER ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT MIN( ALL + 75 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5261
SELECT DISTINCT MIN ( ALL + 75 ) col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT SUM( DISTINCT col0 ) + 61 AS col0 FROM tab0 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT SUM ( DISTINCT col0 ) + 61 AS col0 FROM tab0 AS cor0
----
260

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 * + - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + 47 AS col2 FROM tab0 AS cor0
----
128
48
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT - - CAST( - 4 AS SIGNED ) + + 77 FROM tab1 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5265
SELECT - - CAST ( - 4 AS INTEGER ) + + 77 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT + COUNT( DISTINCT + 60 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT + COUNT ( DISTINCT + 60 ) FROM tab1
----
1

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 - + col1 * - col1 FROM tab1
----
-2405
-6072
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 - 75 AS col0 FROM tab0
----
-60
12
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 - + - 88 * col2 col2 FROM tab2 cor0
----
2025
3521
5105

query I rowsort
SELECT DISTINCT + 5 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT COUNT( * ) * + + 74 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-5273
SELECT COUNT ( * ) * + + 74 FROM tab2
----
222

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( + ( + - 43 ) - + col0 + col2 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT - CAST( NULL AS SIGNED ) * - + 19 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - CAST ( NULL AS INTEGER ) * - + 19 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT - col1 DIV 94 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT - col1 / 94 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 11 * col1 AS col1 FROM tab1 AS cor0
----
-154
-517
-55

query II rowsort
SELECT ALL - col1 * - col0 + - col2 + - 15 + + + col0 * + - 57 AS col1, - col0 FROM tab2 AS cor0
----
-314
-46
1225
-64
677
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT - + 96 DIV - col1 FROM tab0 AS cor0
----
1
4
96

skipif mysql # not compatible
query I rowsort label-5281
SELECT - + 96 / - col1 FROM tab0 AS cor0
----
1
4
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 19 col2 FROM tab1 AS cor0
----
-1615
-1729
-969

query III rowsort
SELECT ALL * FROM tab0 WHERE + 62 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + COUNT( * ) * - COUNT( - 80 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + COUNT ( * ) * - COUNT ( - 80 ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE 12 + - + 69 IS NULL
----

query I rowsort
SELECT ALL col2 + + 76 AS col1 FROM tab0
----
123
175
86

query I rowsort
SELECT DISTINCT - + 17 + - col0 AS col0 FROM tab2 AS cor0
----
-63
-81
-92

query I rowsort
SELECT ( + 54 ) + col2 AS col1 FROM tab1 AS cor0
----
113
122
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - COUNT( ALL - 15 ) + + 89 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5290
SELECT - COUNT ( ALL - 15 ) + + 89 FROM tab1 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 3 BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 * - col0 - col1 ) IS NOT NULL
----

query II rowsort
SELECT + col2, 66 * - 87 AS col1 FROM tab2
----
23
-5742
40
-5742
58
-5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT - 8 * + + col2 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT - 8 * + + col2 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 74
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = - 25
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - 26
----

query I rowsort
SELECT + + 92 - + 70 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5299
SELECT ALL + - CAST( NULL AS DECIMAL ) / - 99 + + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + - CAST ( NULL AS REAL ) / - 99 + + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT ALL CAST( - - CAST( - 77 AS SIGNED ) AS SIGNED ) - - MIN( + 54 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL CAST ( - - CAST ( - 77 AS INTEGER ) AS INTEGER ) - - MIN ( + 54 ) AS col0 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * - - 45 + + col1 col0 FROM tab0
----
3466
3486
3546

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT + col1 + - col2 DIV col1 AS col0 FROM tab0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-5303
SELECT + col1 + - col2 / col1 AS col0 FROM tab0
----
-98
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL - COUNT( * ) - - 64 AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - COUNT ( * ) - - 64 AS col0 FROM tab2
----
61

query I rowsort
SELECT + 70 * + 56 + - 23 + col2 + col0 AS col1 FROM tab1
----
4041
4044
4056

query II rowsort
SELECT col2 AS col1, col0 + col0 FROM tab1
----
59
170
68
182
96
102

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 + 31 FROM tab2
----
23
-15
40
-33
58
-44

query II rowsort
SELECT 24 AS col1, col2 * - 2 AS col1 FROM tab0 AS cor0
----
24
-198
24
-20
24
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2 / + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 56 - + ( + col0 ) = + col2
----
6

skipif mysql # not compatible
query I rowsort label-5310
SELECT - - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 56 - + ( + col0 ) = + col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT + 98 * + COUNT( * ) - + + 64 * + - SUM( DISTINCT - col1 ) * - - 46 AS col0 FROM tab2 AS cor0
----
-573786

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + 98 * + COUNT ( * ) - + + 64 * + - SUM ( DISTINCT - col1 ) * - - 46 AS col0 FROM tab2 AS cor0
----
-573786

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT MAX( ALL + 65 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5312
SELECT MAX ( ALL + 65 ) FROM tab0
----
65

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - MIN( ALL - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5314
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + + ( + COUNT( DISTINCT col2 ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5317
SELECT + + ( + COUNT ( DISTINCT col2 ) ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 94 FROM tab0 cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT - SUM( col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5319
SELECT DISTINCT - SUM ( col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ( + 5 ) + 44 + - col2 FROM tab1
----
-10
-19
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 + + col0 + + 5 * + 0 col2, + col2 AS col1 FROM tab0
----
160
10
170
99
88
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) * SUM( + + 54 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) * SUM ( + + 54 ) FROM tab0
----
NULL

query II rowsort
SELECT ALL + col2 AS col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 45 BETWEEN - col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5325
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5325
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + 73 FROM tab0 AS cor0
----
-8
52
72

query I rowsort
SELECT DISTINCT - 34 + - + 15 FROM tab2 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT + CAST( NULL AS SIGNED ) * - ( + - col2 ) * 76 + + col1 + + 79 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT + CAST ( NULL AS INTEGER ) * - ( + - col2 ) * 76 + + col1 + + 79 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT MAX( DISTINCT + - 86 ) * 67 FROM tab0 AS cor0 WHERE col1 < + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT MAX ( DISTINCT + - 86 ) * 67 FROM tab0 AS cor0 WHERE col1 < + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5332
SELECT 68 * + 0 AS col2, + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5332
SELECT 68 * + 0 AS col2, + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
0
NULL

query I rowsort
SELECT ALL col0 * 61 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5307
5917
915

query I rowsort
SELECT DISTINCT - 70 + + col1 AS col1 FROM tab1 AS cor0
----
-23
-56
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT - 31 DIV - col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 31 / - col2 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT DISTINCT + COUNT( * ) + - 50 AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-47
3

skipif mysql # not compatible
query II rowsort label-5336
SELECT DISTINCT + COUNT ( * ) + - 50 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - COUNT( + + 5 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5337
SELECT - COUNT ( + + 5 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + ( col0 ) - - col0 FROM tab1 AS cor0
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - - 36 col2 FROM tab0
----
-117
-37
-57

query I rowsort
SELECT DISTINCT 24 * 21 * - col0 * - + col1 AS col1 FROM tab2
----
1182384
2483712
2532600

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT DISTINCT ( col1 ) DIV + 94 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT ( col1 ) / + 94 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - COUNT( col1 ) * - - MAX( - - col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - COUNT ( col1 ) * - - MAX ( - - col1 ) FROM tab2
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT ALL + col2 DIV + 24 FROM tab1
----
2
2
4

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + col2 / + 24 FROM tab1
----
2
2
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT + SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - - col0 BETWEEN - 57 + 67 / col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT + MIN( + - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + MIN ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - col0 * 77 * + col1 - + - col2 AS col2 FROM tab0 cor0
----
-140669
-7370
-93508

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
123
183
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 + - col1 + 7 * col1 AS col1 FROM tab0 AS cor0
----
10
213
47
501
99
103

query I rowsort
SELECT + + ( + ( - + col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5353
SELECT + + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5353
SELECT + + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + 57 + - - col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-5354
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + 57 + - - col1 * col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT DISTINCT col1 + + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 * - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT col1 + + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 * - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL MAX( - - 10 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL MAX ( - - 10 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT - 37 * + COUNT( + col0 ) + 24 AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - 37 * + COUNT ( + col0 ) + 24 AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT col1 * + col1 * + - col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT COUNT( * ) col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT COUNT ( * ) col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

query II rowsort
SELECT col0 + - col2, 13 AS col0 FROM tab1
----
-45
13
23
13
26
13

query II rowsort
SELECT 91 + - 9, + col2 FROM tab2
----
82
23
82
40
82
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 + - - col0 col2 FROM tab1 AS cor0
----
113
147
153

query I rowsort
SELECT DISTINCT - col2 * 47 FROM tab0
----
-2209
-4653
-470

query I rowsort
SELECT - 69 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT + - col0 - + - 39 * + + 75 AS col2 FROM tab0 cor0
----
2828
2838
2910

query I rowsort
SELECT ALL 64 - 41 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL + MIN( ALL - + 7 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + MIN ( ALL - + 7 ) AS col0 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT - 20 * + + ( + - COUNT( * ) ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - 20 * + + ( + - COUNT ( * ) ) FROM tab2
----
60

query I rowsort
SELECT ALL - 14 * col0 FROM tab1
----
-1190
-1274
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT ALL CAST( NULL AS SIGNED ) * + ( + + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + + col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + + col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT 64 * - - col0 AS col1 FROM tab1
----
3264
5440
5824

onlyif mysql # DIV for integer division: 
query II rowsort label-5373
SELECT DISTINCT 33 DIV col0 AS col2, col1 FROM tab0
----
0
1
0
21
2
81

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT 33 / col0 AS col2, col1 FROM tab0
----
0
1
0
21
2
81

query I rowsort
SELECT ALL 72 * + 18 FROM tab0
----
1296
1296
1296

query III rowsort
SELECT ALL * FROM tab0 WHERE 0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT DISTINCT SUM( + ( + + col2 ) ) DIV - MAX( ALL 33 ) col1 FROM tab0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5376
SELECT DISTINCT SUM ( + ( + + col2 ) ) / - MAX ( ALL 33 ) col1 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT + + COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + + COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 + + + col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT + 31 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT + 31 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL COUNT( * ) * 65 + + - SUM( DISTINCT + 6 ) AS col2 FROM tab1 cor0
----
189

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL COUNT ( * ) * 65 + + - SUM ( DISTINCT + 6 ) AS col2 FROM tab1 cor0
----
189

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT ( NOT 14 * 54 IS NULL ) )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT + CAST( NULL AS SIGNED ) + - 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5382
SELECT + CAST ( NULL AS INTEGER ) + - 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL ( + 84 ) FROM tab0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + + 81 * col1 * 15 + col0 col2 FROM tab2 cor0
----
62069
81538
93677

query I rowsort
SELECT ALL + 28 + - + col0 FROM tab1 cor0
----
-23
-57
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT ALL 86 + - + 25 DIV + col0 + + col2 AS col0 FROM tab1 AS cor0
----
145
154
182

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL 86 + - + 25 / + col0 + + col2 AS col0 FROM tab1 AS cor0
----
145
154
182

query I rowsort
SELECT DISTINCT + + ( + ( - - 34 ) ) + + col0 FROM tab1 AS cor0
----
119
125
85

query I rowsort
SELECT + col0 + + ( col2 ) + - + 36 AS col2 FROM tab0 AS cor0
----
160
26
61

query I rowsort
SELECT ALL + + col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col2 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT + 71 * + col1 AS col1 FROM tab0
----
1491
5751
71

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + 38 ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + - 5 FROM tab1
----
-10
-19
-52

query II rowsort
SELECT DISTINCT col2, col1 AS col2 FROM tab2 WHERE NOT ( - ( 88 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < - - 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT + col2 FROM tab2 AS cor0 WHERE NULL = col0 * - CAST( NULL AS SIGNED ) * - - col2
----

skipif mysql # not compatible
query I rowsort label-5396
SELECT + col2 FROM tab2 AS cor0 WHERE NULL = col0 * - CAST ( NULL AS INTEGER ) * - - col2
----

query I rowsort
SELECT + 6 * - 53 * 28 - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-7077
-7689
-8807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT + col2 + - - 95 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + col0 >= - col2 + + - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT + col2 + - - 95 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col0 >= - col2 + + - col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 + - col1 AS col2 FROM tab1 AS cor0
----
-26
16
7

query I rowsort
SELECT DISTINCT - 66 * + + col1 AS col0 FROM tab2 AS cor0
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL + MAX( ALL col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + col2 + col1 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
230
297
3901

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT + + ( - + 99 ) * + 31 + - - COUNT( * ) col2 FROM tab2 AS cor0
----
-3066

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5403
SELECT DISTINCT + + ( - + 99 ) * + 31 + - - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT COUNT( * ) DIV - 54 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) / - 54 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT MAX( 20 ) col0 FROM tab0 cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5405
SELECT MAX ( 20 ) col0 FROM tab0 cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT ( CAST( + 52 AS SIGNED ) ) FROM tab0 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-5406
SELECT ( CAST ( + 52 AS INTEGER ) ) FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5407
SELECT * FROM tab2 WHERE NOT col0 * - ( - + CAST( + + col0 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5407
SELECT * FROM tab2 WHERE NOT col0 * - ( - + CAST ( + + col0 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - col1 + + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 30 - - 29 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
59
59

query I rowsort
SELECT ALL 6 AS col1 FROM tab2 WHERE NULL <= ( - ( 12 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 * 3 < ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 82 + - 97 AS col2 FROM tab2
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5415
SELECT * FROM tab0 WHERE NOT + 86 NOT BETWEEN CAST( - col2 AS SIGNED ) AND ( + col0 )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-5415
SELECT * FROM tab0 WHERE NOT + 86 NOT BETWEEN CAST ( - col2 AS INTEGER ) AND ( + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT ( NULL ) > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - COUNT( * ) FROM tab1 WHERE col1 * + ( + 49 * col2 ) + + 2 * col0 <= col0 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT - COUNT ( * ) FROM tab1 WHERE col1 * + ( + 49 * col2 ) + + 2 * col0 <= col0 * - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NULL ) >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) >= + col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5419
SELECT MAX( ALL + col1 ) + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-5419
SELECT MAX ( ALL + col1 ) + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5420
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5420
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( + CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ( COUNT( * ) ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5421
SELECT ( COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5422
SELECT * FROM tab0 WHERE NOT - col1 * + col0 BETWEEN CAST( + CAST( col0 AS DECIMAL ) AS SIGNED ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5422
SELECT * FROM tab0 WHERE NOT - col1 * + col0 BETWEEN CAST ( + CAST ( col0 AS REAL ) AS INTEGER ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + COUNT( DISTINCT 63 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5423
SELECT + COUNT ( DISTINCT 63 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT ALL MIN( DISTINCT - col2 ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + col1 < col0 * + ( + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL MIN ( DISTINCT - col2 ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + col1 < col0 * + ( + 46 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * - col2 - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT - 8 * MIN( - 61 ) + MAX( DISTINCT col2 ) col1 FROM tab1 WHERE NULL IS NULL
----
584

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT DISTINCT - 8 * MIN ( - 61 ) + MAX ( DISTINCT col2 ) col1 FROM tab1 WHERE NULL IS NULL
----
584

query I rowsort
SELECT + col0 * - 77 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - COUNT( * ) * 96 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-5428
SELECT - COUNT ( * ) * 96 FROM tab2
----
-288

query I rowsort
SELECT + col2 * 71 AS col0 FROM tab0
----
3337
7029
710

query I rowsort
SELECT DISTINCT 5 * 28 AS col2 FROM tab1 WHERE + col2 BETWEEN 66 + + 95 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - SUM( ALL col0 ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5431
SELECT ALL - SUM ( ALL col0 ) col0 FROM tab1
----
-227

query I rowsort
SELECT col2 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - COUNT( * ) FROM tab0 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT - COUNT ( * ) FROM tab0 WHERE ( - col1 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 17 + 71 AS col2 FROM tab1
----
54

query I rowsort
SELECT - col2 * + 11 FROM tab2
----
-253
-440
-638

query I rowsort
SELECT + 83 * col1 AS col1 FROM tab1
----
1162
3901
415

query I rowsort
SELECT ALL ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( 31 ) AND - col0 * ( - 83 ) - col2
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 / col0 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col2 col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT ALL 76 + - CAST( + 92 AS SIGNED ) FROM tab1 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL 76 + - CAST ( + 92 AS INTEGER ) FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT - 22 - col0 AS col0 FROM tab0
----
-109
-119
-37

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( - 36 / 10 ) BETWEEN - 7 AND ( NULL )
----

query I rowsort
SELECT + col1 - ( col1 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - 35 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT - COUNT( 99 ) FROM tab2 cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5446
SELECT - COUNT ( 99 ) FROM tab2 cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT DISTINCT + col0 / - 43 FROM tab2 AS cor0 WHERE NOT ( + 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL 78 * COUNT( * ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 78 * COUNT ( * ) FROM tab1 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT - ( ( 21 ) ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - ( ( 21 ) ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 97 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + 75 BETWEEN + col0 * + col2 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 71 * 57 NOT BETWEEN ( - col1 + col2 ) AND + col1
----

query I rowsort
SELECT - 23 - + col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - 77 FROM tab2 AS cor0 WHERE - col2 + col1 * - col2 > - 16
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 6 * col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL - MIN( - col2 ) * 36 FROM tab2 cor0
----
2088

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - MIN ( - col2 ) * 36 FROM tab2 cor0
----
2088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT DISTINCT - col2 / col2 AS col2 FROM tab1 AS cor0 WHERE CAST( - 67 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT - col2 / col2 AS col2 FROM tab1 AS cor0 WHERE CAST ( - 67 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - SUM( - + 62 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5458
SELECT - SUM ( - + 62 ) FROM tab0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT + COUNT( * ) + ( COUNT( * ) ) FROM tab1 WHERE NOT - 12 * 79 > col0
----
6

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) FROM tab1 WHERE NOT - 12 * 79 > col0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( ( 22 ) + col2 * 88 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( 52 )
----

query I rowsort
SELECT - 94 * - 93 - col2 AS col1 FROM tab0 AS cor0
----
8643
8695
8732

query I rowsort
SELECT + 96 AS col2 FROM tab0 WHERE NOT ( NOT ( - 85 + col1 ) IS NOT NULL )
----
96
96
96

query II rowsort
SELECT ALL 40, 57 AS col0 FROM tab1
----
40
57
40
57
40
57

query I rowsort
SELECT ALL 26 * - col1 FROM tab0 WHERE NOT NULL IN ( + 43 )
----

query I rowsort
SELECT ALL + col2 + - 14 AS col1 FROM tab2
----
26
44
9

query I rowsort
SELECT DISTINCT col0 * 60 FROM tab0 WHERE NOT - col0 IS NULL
----
5220
5820
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * col2 col2 FROM tab0 AS cor0 WHERE ( - col2 * - col2 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 27 - + col2 IN ( - col2 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( + 65 ) NOT BETWEEN - 9 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 * - + col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * + col0 col1 FROM tab0 AS cor0 WHERE col1 * - 10 IN ( - 42 )
----

query I rowsort
SELECT ALL + col2 - - 82 FROM tab1 AS cor0
----
141
150
178

query I rowsort
SELECT DISTINCT + - col0 + ( - + 59 ) FROM tab2 AS cor0
----
-105
-123
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT ALL + col2 DIV - + ( col2 ) + col2 * 79 AS col1 FROM tab1 AS cor0
----
4660
5371
7583

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL + col2 / - + ( col2 ) + col2 * 79 AS col1 FROM tab1 AS cor0
----
4660
5371
7583

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 26 * + 98 FROM tab2 cor0
----
2548
2548
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT + COUNT( * ) - 91 AS col1 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + COUNT ( * ) - 91 AS col1 FROM tab0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 NOT BETWEEN ( - 88 / - col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT + col1 DIV - - 48 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5480
SELECT + col1 / - - 48 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT DISTINCT + 30 DIV col0 - - + 2 AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + 30 / col0 - - + 2 AS col1 FROM tab1
----
2

query II rowsort
SELECT ALL - col1 * + 51, col2 + + 71 AS col1 FROM tab0
----
-1071
81
-4131
118
-51
170

query III rowsort
SELECT * FROM tab1 WHERE NULL > + col1 * + col1 + col0
----

query I rowsort
SELECT ALL ( + - col2 ) * + 36 AS col2 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + 92 - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-5486
SELECT + 92 - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
115

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN + 73 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5488
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5488
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( col2 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT COUNT( ALL - + 54 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT COUNT ( ALL - + 54 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + - col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT ALL + 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query II rowsort
SELECT - 7 AS col0, + col1 FROM tab0
----
-7
1
-7
21
-7
81

query I rowsort
SELECT ALL - + 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT 53 * col0 AS col0 FROM tab0 WHERE NOT NULL > + - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5496
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN - col2 * + + col1 * - CAST( - col1 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5496
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN - col2 * + + col1 * - CAST ( - col1 AS INTEGER ) AND ( NULL )
----

query II rowsort
SELECT ALL - 90 AS col2, col1 * - + col0 + col1 AS col0 FROM tab2 AS cor0
----
-90
-2295
-90
-4851
-90
-4958

query I rowsort
SELECT DISTINCT - - col2 * + col0 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5499
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-5499
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + + 18 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + + 18 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col1 FROM tab2 WHERE NOT ( col0 * + - col2 + - - 64 ) IN ( + col1 + + 64 * + 76 )
----
3

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col1 FROM tab2 WHERE NOT ( col0 * + - col2 + - - 64 ) IN ( + col1 + + 64 * + 76 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + + COUNT( * ) * - + ( 1 ) AS col0 FROM tab0 WHERE NOT + col2 > - + col0
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT + + COUNT ( * ) * - + ( 1 ) AS col0 FROM tab0 WHERE NOT + col2 > - + col0
----
0

query II rowsort
SELECT col0, - 37 AS col0 FROM tab0
----
15
-37
87
-37
97
-37

query II rowsort
SELECT DISTINCT col2, - 38 FROM tab0
----
10
-38
47
-38
99
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 BETWEEN NULL AND ( - - 72 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT - ( + - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT - ( + - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT + 98 AS col1, 78 FROM tab0 AS cor0
----
98
78
98
78
98
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT COUNT( ALL - col1 ) + MIN( + ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT COUNT ( ALL - col1 ) + MIN ( + ( - - col0 ) ) AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT col0 * - + col1 + col0 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT DISTINCT + col1 * + col0 + + col2 + - + CAST( - 99 AS SIGNED ) FROM tab2 AS cor0
----
2468
5067
5182

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + col1 * + col0 + + col2 + - + CAST ( - 99 AS INTEGER ) FROM tab2 AS cor0
----
2468
5067
5182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5511
SELECT ALL - col1 AS col2, col1 + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5511
SELECT ALL - col1 AS col2, col1 + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL 90 - - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 90 - - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT - ( ( - - 57 ) ) DIV col2 + + 93 AS col0 FROM tab2
----
91
92
93

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - ( ( - - 57 ) ) / col2 + + 93 AS col0 FROM tab2
----
91
92
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT ALL col0 + 62 - + 55 DIV - 40 AS col1 FROM tab2 AS cor0
----
109
127
138

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL col0 + 62 - + 55 / - 40 AS col1 FROM tab2 AS cor0
----
109
127
138

query II rowsort
SELECT DISTINCT + + col0 + - 12 AS col1, 17 FROM tab1 AS cor0
----
39
17
73
17
79
17

query I rowsort
SELECT ALL - 71 AS col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + col0 AND NULL
----
-71
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT - 22 * ( SUM( - CAST( NULL AS SIGNED ) ) ) - + + 15 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT - 22 * ( SUM ( - CAST ( NULL AS INTEGER ) ) ) - + + 15 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT DISTINCT + + col1 * col2 DIV col2 + + 9 + - col0 AS col1 FROM tab1 AS cor0
----
-28
-35
-71

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + + col1 * col2 / col2 + + 9 + - col0 AS col1 FROM tab1 AS cor0
----
-28
-35
-71

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * 92 - - 72 * 14 <= NULL OR ( + ( col1 ) + 31 ) NOT BETWEEN 43 AND NULL
----
97
1
99

query I rowsort
SELECT ALL ( + - col0 ) - + - col1 + + col1 AS col0 FROM tab1
----
-23
-75
3

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col2 * + col1 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - 20 + COUNT( * ) FROM tab0 WHERE ( NULL ) IN ( 68 * + ( + - col2 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-5523
SELECT - 20 + COUNT ( * ) FROM tab0 WHERE ( NULL ) IN ( 68 * + ( + - col2 ) )
----
-20

query I rowsort
SELECT 17 + 61 * - 25 AS col2 FROM tab0
----
-1508
-1508
-1508

query III rowsort
SELECT * FROM tab1 WHERE - + col2 NOT IN ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - + 71 FROM tab0
----
-24
-61
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT + MIN( ALL - 58 ) DIV - COUNT( + + 56 ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + MIN ( ALL - 58 ) / - COUNT ( + + 56 ) AS col2 FROM tab1
----
19

query I rowsort
SELECT col2 + + col2 + - + 72 * - col0 FROM tab1
----
3864
6238
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT MIN( + + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5529
SELECT MIN ( + + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT + SUM( + col1 ) DIV + - MIN( - col1 ) + COUNT( * ) - - - COUNT( * ) * - MIN( - + col1 ) * + 5 * COUNT( * ) AS col1 FROM tab0 cor0
----
-3641

skipif mysql # not compatible
query I rowsort label-5530
SELECT + SUM ( + col1 ) / + - MIN ( - col1 ) + COUNT ( * ) - - - COUNT ( * ) * - MIN ( - + col1 ) * + 5 * COUNT ( * ) AS col1 FROM tab0 cor0
----
-3641

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT DISTINCT - + 13 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - + 13 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 37 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 37 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col1 FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - + 65 + 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT DISTINCT col0 DIV + 67 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT col0 / + 67 AS col1 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 27 col1 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT - SUM( + 35 ) FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - SUM ( + 35 ) FROM tab2 AS cor0
----
-105

query I rowsort
SELECT - ( + 15 ) * - + 82 AS col2 FROM tab1 AS cor0
----
1230
1230
1230

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT - col0 DIV + col1 + col1 AS col0 FROM tab2
----
51
66
77

skipif mysql # not compatible
query I rowsort label-5539
SELECT - col0 / + col1 + col1 AS col0 FROM tab2
----
51
66
77

query II rowsort
SELECT ALL + 72 AS col1, + 12 AS col0 FROM tab0
----
72
12
72
12
72
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + ( + + col1 ) FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT ALL - col0 DIV - - ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + col1 + col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - col0 / - - ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + col1 + col2 IS NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * - 64 col1 FROM tab0
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL - 45 * + + MIN( + col2 ) FROM tab2
----
-1035

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - 45 * + + MIN ( + col2 ) FROM tab2
----
-1035

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5546
SELECT ALL 58 * - 4 AS col2, ( - 25 ) * - col1 + - col2 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) = ( 55 )
----

skipif mysql # not compatible
query II rowsort label-5546
SELECT ALL 58 * - 4 AS col2, ( - 25 ) * - col1 + - col2 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) = ( 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT - 94 + COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - 94 + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / - col0 + - col1 NOT BETWEEN + col2 AND ( - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT 22 + + + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
107
113
73

skipif mysql # not compatible
query I rowsort label-5549
SELECT 22 + + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
107
113
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 63 + - - col2 + - 72 + col0 col1 FROM tab2 AS cor0
----
-1452
-2488
-3593

query I rowsort
SELECT ALL - 76 + + 80 AS col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - 36 + - 36 AS col0 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT + MIN( ALL - + 91 ) - - COUNT( * ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + MIN ( ALL - + 91 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-88

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE 75 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) > + 8
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col1 - + + col1 + - 44 AS col0 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MIN( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MIN ( col1 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5558
SELECT DISTINCT * FROM tab2 WHERE + CAST( - col2 AS DECIMAL ) NOT BETWEEN 47 + col1 AND 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5558
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - col2 AS REAL ) NOT BETWEEN 47 + col1 AND 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 - - 46 AS col0 FROM tab2
----
132
132
132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5560
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5560
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * col2, + 0 col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + - 81 * - COUNT( * ) FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5563
SELECT + - 81 * - COUNT ( * ) FROM tab2 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + - COUNT( * ) * + + 87 + + SUM( DISTINCT + 12 ) AS col2 FROM tab0 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5564
SELECT + - COUNT ( * ) * + + 87 + + SUM ( DISTINCT + 12 ) AS col2 FROM tab0 cor0
----
-249

query II rowsort
SELECT ALL + col1 * 9, + col1 AS col1 FROM tab1 AS cor0
----
126
14
423
47
45
5

query I rowsort
SELECT ALL - 47 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col0, - col0 + 49 + - col0 FROM tab0
----
15
19
87
-125
97
-145

query I rowsort
SELECT DISTINCT - ( - + 33 ) AS col0 FROM tab0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col0 ) col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5570
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - 7 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5570
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - 7 IS NULL
----

query II rowsort
SELECT + col0, 10 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
10
87
10
97
10

query I rowsort
SELECT - col0 * + 88 * ( + col1 ) + - col1 FROM tab2 AS cor0
----
-206499
-433741
-442267

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * + - 83 + - col1 ) IS NULL
----
9 values hash