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 hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT DISTINCT - - 91 AS col2, - SUM( DISTINCT - col2 ) - - - 89 AS col1 FROM tab1 AS cor0
----
91
134

skipif mysql # not compatible
query II rowsort label-5576
SELECT DISTINCT - - 91 AS col2, - SUM ( DISTINCT - col2 ) - - - 89 AS col1 FROM tab1 AS cor0
----
91
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - - col2 ) + + - col1 col1 FROM tab1 AS cor0
----
3476
4577
9202

query I rowsort
SELECT ALL - + 65 * + - col0 AS col0 FROM tab0 AS cor0
----
5655
6305
975

query I rowsort
SELECT DISTINCT col1 * - 96 FROM tab2 AS cor0
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <> + - col2 * + 94 * + ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> + - col2 * + 94 * + ( - 98 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL MIN( ALL + - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT ALL MIN ( ALL + - col2 ) col2 FROM tab2
----
-58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT ALL ( - + CAST( - MAX( ALL + - col1 ) AS SIGNED ) ) AS col0 FROM tab2
----
-51

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5588
SELECT + 4 / 22 * + COUNT ( * ) AS col1 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - MAX( + 66 ) - + 74 AS col0 FROM tab0 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-5590
SELECT - MAX ( + 66 ) - + 74 AS col0 FROM tab0 AS cor0
----
-140

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

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

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

query I rowsort
SELECT ALL + + 31 + + col0 FROM tab1 AS cor0
----
116
122
82

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE ( col2 ) NOT BETWEEN 36 AND NULL
----
87

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + col1 * + - col0 FROM tab2 WHERE + + col2 * - - 44 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT + col2 * + CAST( 18 AS SIGNED ) FROM tab1
----
1062
1224
1728

skipif mysql # not compatible
query I rowsort label-5598
SELECT + col2 * + CAST ( 18 AS INTEGER ) FROM tab1
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5599
SELECT + col2 - + col2 AS col0, + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5599
SELECT + col2 - + col2 AS col0, + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT + MIN( ALL - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT + MIN ( ALL - col0 ) AS col2 FROM tab0
----
-97

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5602
SELECT DISTINCT + + CAST ( - - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL col2 + - + ( - 26 ) * + col2 AS col0 FROM tab2 AS cor0
----
1080
1566
621

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

query I rowsort
SELECT col0 * - - ( + - col2 ) + - 52 AS col1 FROM tab0
----
-757
-922
-9655

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

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

query I rowsort
SELECT DISTINCT - 67 FROM tab0 WHERE NOT - - col1 IS NULL
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL - 39 * - + 26 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1011

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - 39 * - + 26 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1011

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col1 col0 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + 30 * - col1 * - + col2 + col1 FROM tab1
----
40334
8855
95927

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5611
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + CAST( NULL AS SIGNED ) + - 83 AND + - 12 / col0 + col0
----

skipif mysql # not compatible
query III rowsort label-5611
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + CAST ( NULL AS INTEGER ) + - 83 AND + - 12 / col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5612
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE + 0 * + CAST( NULL AS DECIMAL ) * - - ( col1 ) - - CAST( + col1 AS SIGNED ) NOT BETWEEN 70 AND + + 0
----

skipif mysql # not compatible
query I rowsort label-5612
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE + 0 * + CAST ( NULL AS REAL ) * - - ( col1 ) - - CAST ( + col1 AS INTEGER ) NOT BETWEEN 70 AND + + 0
----

query I rowsort
SELECT - col2 * 89 FROM tab0 AS cor0
----
-4183
-8811
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * + 53 col2 FROM tab2
----
-4134
-4134
-4134

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL + MAX( - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + MAX ( - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab2
----
-23

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

skipif mysql # not compatible
query I rowsort label-5618
SELECT + ( - COUNT ( ALL ( + col2 ) ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * 50 col1 FROM tab2 AS cor0
----
-3900
-3900
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5620
SELECT + col1 AS col0, CAST( + 25 AS SIGNED ) * col0 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5620
SELECT + col1 AS col0, CAST ( + 25 AS INTEGER ) * col0 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + + 68 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-5621
SELECT + + 68 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-204

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

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

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

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

query II rowsort
SELECT col2 AS col1, col1 + col2 FROM tab0
----
10
31
47
128
99
100

query II rowsort
SELECT DISTINCT - col0 * 56 AS col1, col2 + col2 FROM tab2 AS cor0
----
-2576
46
-3584
80
-4200
116

query I rowsort
SELECT DISTINCT + + 96 + col2 AS col0 FROM tab1 AS cor0
----
155
164
192

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5628
SELECT * FROM tab0 cor0 WHERE NOT col1 + + col0 NOT IN ( - col0, CAST( NULL AS SIGNED ) * - col1 * - 44 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-5628
SELECT * FROM tab0 cor0 WHERE NOT col1 + + col0 NOT IN ( - col0, CAST ( NULL AS INTEGER ) * - col1 * - 44 * - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + ( - + SUM( DISTINCT + - col1 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + ( - + SUM ( DISTINCT + - col1 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
103

query I rowsort
SELECT DISTINCT - 54 + 41 FROM tab2 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + col2 NOT BETWEEN - 33 * - + col0 + - + 13 AND NULL
----
46
51
23

query I rowsort
SELECT ALL - - ( - col0 ) + + col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + col2 - + + 2 FROM tab0
----
45
8
97

query I rowsort
SELECT ALL - col0 * 10 + col2 - - col0 * col2 FROM tab1 AS cor0
----
4224
4482
5346

query I rowsort
SELECT + 42 - + + col2 - 52 FROM tab0 AS cor0
----
-109
-20
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT - COUNT( * ) - + 69 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5638
SELECT - COUNT ( * ) - + 69 FROM tab2 cor0
----
-72

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

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

query I rowsort
SELECT - 52 * - - col0 AS col0 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - COUNT( DISTINCT + - 0 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - COUNT ( DISTINCT + - 0 ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5642
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 10 + - 33 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 10 + - 33 ) IS NOT NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( + col0, - 90 + - col2 + - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 21 * 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ( + MIN( ALL 21 ) ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5647
SELECT ( + MIN ( ALL 21 ) ) FROM tab1
----
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5649
SELECT + ( - CAST( + AVG ( ALL + ( - - col1 ) ) AS SIGNED ) ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5649
SELECT + ( - CAST ( + AVG ( ALL + ( - - col1 ) ) AS INTEGER ) ) * - COUNT ( * ) col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + + 42 AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT - 70 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5653
SELECT ALL - 6 * + SUM( - CAST( + - 29 AS SIGNED ) ) FROM tab2
----
-522

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - 6 * + SUM ( - CAST ( + - 29 AS INTEGER ) ) FROM tab2
----
-522

query I rowsort
SELECT DISTINCT col1 + - 37 AS col2 FROM tab2 AS cor0
----
14
30
40

query I rowsort
SELECT DISTINCT - + 25 + - col0 * + 53 AS col0 FROM tab2 cor0
----
-2463
-3417
-4000

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

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

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

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

query I rowsort
SELECT + - 51 + col2 FROM tab2 cor0
----
-11
-28
7

query I rowsort
SELECT DISTINCT col1 + 50 AS col2 FROM tab1 AS cor0
----
55
64
97

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

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

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

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

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

query I rowsort
SELECT - ( + 57 ) * + col0 AS col2 FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT DISTINCT 46 * + col0 FROM tab2
----
2116
2944
3450

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + ( + col1 ) col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - + 5 FROM tab1 AS cor0 WHERE + col1 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL 19 - - COUNT( + - 60 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL 19 - - COUNT ( + - 60 ) FROM tab0
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE - 94 <= NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT + + 77 * col0 AS col1 FROM tab0 cor0
----
1155
6699
7469

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT - 77 * - COUNT ( * ) FROM tab0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT col1 DIV + + col0 AS col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT col1 / + + col0 AS col0 FROM tab0
----
0
5

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE + col2 <= - - col1
----
-15
-87

query I rowsort
SELECT ALL + col2 * - 65 * - 75 AS col0 FROM tab0 AS cor0
----
229125
482625
48750

query II rowsort
SELECT col1, - 6 FROM tab0 AS cor0
----
1
-6
21
-6
81
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + 62 * COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5683
SELECT + 62 * COUNT ( * ) FROM tab1 AS cor0
----
186

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

query I rowsort
SELECT ALL - + 11 + - 81 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-92
-92
-92

query I rowsort
SELECT ALL - + col2 * + 20 + - 96 FROM tab1 AS cor0
----
-1276
-1456
-2016

query I rowsort
SELECT - - 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 83 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL - + 60 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5690
SELECT - - CAST( col0 AS SIGNED ) DIV + - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5690
SELECT - - CAST ( col0 AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - - MIN( 25 ) AS col2 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-5691
SELECT - - MIN ( 25 ) AS col2 FROM tab1 cor0
----
25

query I rowsort
SELECT + 57 + + ( + 54 ) * col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3243
3729
5241

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + + MIN( + - col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5693
SELECT + + MIN ( + - col2 ) AS col2 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL - 14 * - ( - - 50 ) + + + col0 FROM tab0 AS cor0
----
715
787
797

query I rowsort
SELECT ALL + col1 + + 17 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT 85 - 74 AS col2 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT ALL col1 - + - 41 AS col2 FROM tab0
----
122
42
62

query I rowsort
SELECT ALL + col0 * + col2 - + col2 AS col2 FROM tab2
----
1035
2520
4292

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5700
SELECT col1 + 33 DIV + - col1 AS col1, + CAST( NULL AS SIGNED ) DIV - ( - col0 ) + - col2 FROM tab0
----
-32
NULL
20
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5700
SELECT col1 + 33 / + - col1 AS col1, + CAST ( NULL AS INTEGER ) / - ( - col0 ) + - col2 FROM tab0
----
-32
NULL
20
NULL
81
NULL

query I rowsort
SELECT DISTINCT + ( - + 99 ) FROM tab2 WHERE NOT + col0 <= + col0 * 65
----

query I rowsort
SELECT 40 + col1 AS col1 FROM tab1
----
45
54
87

query I rowsort
SELECT col0 + - 89 FROM tab1
----
-38
-4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT + 77 * COUNT( * ) * - 41 FROM tab0
----
-9471

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 77 * COUNT ( * ) * - 41 FROM tab0
----
-9471

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5705
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + col0 * - CAST( NULL AS SIGNED ) * - + col1 BETWEEN ( - + ( + + 26 ) - - 42 - 24 / - + col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5705
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + col0 * - CAST ( NULL AS INTEGER ) * - + col1 BETWEEN ( - + ( + + 26 ) - - 42 - 24 / - + col1 ) AND NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT ALL - CAST( 57 AS SIGNED ) * + 6 + + + col2 AS col0 FROM tab2 AS cor0
----
-284
-302
-319

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - CAST ( 57 AS INTEGER ) * + 6 + + + col2 AS col0 FROM tab2 AS cor0
----
-284
-302
-319

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 29 <= - ( + 46 ) + - 63 + col0 * col2
----

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

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

query I rowsort
SELECT ALL - - col2 * 41 AS col0 FROM tab0 AS cor0
----
1927
4059
410

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT 91 DIV + 16 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5713
SELECT 91 / + 16 FROM tab1
----
5
5
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT ALL col2 DIV col1 DIV 1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL col2 / col1 / 1 AS col1 FROM tab1
----
1
11
6

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 49 <= ( NULL )
----

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

query I rowsort
SELECT DISTINCT 2 + 89 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( * ) * - + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( * ) * - + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5722
SELECT - + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT ALL - - 32 * + + ( + ( col2 ) ) + - col1 + + col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
1424
300
3168

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - - 32 * + + ( + ( col2 ) ) + - col1 + + col1 / - - col1 AS col0 FROM tab0 AS cor0
----
1424
300
3168

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + + col0 col0 FROM tab1 AS cor0
----
148
182
188

query I rowsort
SELECT DISTINCT + 17 - + 53 + col2 FROM tab2 cor0
----
-13
22
4

query I rowsort
SELECT ALL col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5728
SELECT ALL COUNT( * ) + - + COUNT( * ) + - 59 col1, + 43 + + 46 FROM tab0 cor0
----
-59
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5728
SELECT ALL COUNT ( * ) + - + COUNT ( * ) + - 59 col1, + 43 + + 46 FROM tab0 cor0
----
-59
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT SUM( ALL 2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5729
SELECT SUM ( ALL 2 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT col1 * - + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + + 68 + + 72 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5733
SELECT DISTINCT - 39 + - 27 DIV + ( - - ( COUNT( * ) ) ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - 39 + - 27 / + ( - - ( COUNT ( * ) ) ) FROM tab2
----
-48

query I rowsort
SELECT DISTINCT col0 - - 30 * col1 * + - col0 FROM tab0
----
-2813
-36435
-54723

query I rowsort
SELECT 85 * + col2 - - 24 AS col1 FROM tab0
----
4019
8439
874

query I rowsort
SELECT DISTINCT - 78 * 13 * - - 65 AS col1 FROM tab1 AS cor0
----
-65910

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT ALL + COUNT( * ) * MIN( - 37 ) * + 87 FROM tab0 AS cor0
----
-9657

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + COUNT ( * ) * MIN ( - 37 ) * + 87 FROM tab0 AS cor0
----
-9657

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - COUNT( * ) * + - 61 AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - COUNT ( * ) * + - 61 AS col2 FROM tab0 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5743
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5743
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5744
SELECT DISTINCT - 54 * ( + CAST( NULL AS DECIMAL ) ) * - - 42 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT - 54 * ( + CAST ( NULL AS REAL ) ) * - - 42 * + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 4 * + 28 * col0 FROM tab1 AS cor0
----
10192
5712
9520

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT col1 DIV + col2 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5747
SELECT col1 / + col2 col2 FROM tab2
----
1
1
2

query I rowsort
SELECT + - col1 / - col2 * 5 AS col1 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5749
SELECT ALL + 34 col2, + col2 DIV - col0 col2 FROM tab2
----
34
0
34
0
34
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5749
SELECT ALL + 34 col2, + col2 / - col0 col2 FROM tab2
----
34
0
34
0
34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL + MIN( DISTINCT + 85 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + MIN ( DISTINCT + 85 ) AS col1 FROM tab1
----
85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT DISTINCT - 42, COUNT( * ) AS col2 FROM tab1
----
-42
3

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT - 42, COUNT ( * ) AS col2 FROM tab1
----
-42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT MIN( DISTINCT + 16 ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5753
SELECT MIN ( DISTINCT + 16 ) AS col0 FROM tab1
----
16

query I rowsort
SELECT + 98 + 19 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT ALL + + COUNT( col2 ) * MAX( ALL + + 85 ) AS col2, COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
255
-9

skipif mysql # not compatible
query II rowsort label-5755
SELECT ALL + + COUNT ( col2 ) * MAX ( ALL + + 85 ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
255
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT - col1 + - 74 * + ( - col1 ) DIV 93 DIV - + col1 * col0 * + - col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5756
SELECT - col1 + - 74 * + ( - col1 ) / 93 / - + col1 * col0 * + - col0 FROM tab1 AS cor0
----
-14
-47
-5

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - 17 ) + + + col0 * - - 45 >= - - col0 * col0 + col2 + - col1
----

query I rowsort
SELECT - + col1 + 6 + - + 59 * - 45 + + + col2 AS col1 FROM tab1 AS cor0
----
2682
2715
2743

query I rowsort
SELECT + - 87 / 89 * + + 85 + - col1 AS col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

query II rowsort
SELECT ALL ( + - 1 ), + col1 * - col1 AS col0 FROM tab2
----
-1
-2601
-1
-4489
-1
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT + - 43 * COUNT( * ) * - - COUNT( * ) + 22 AS col2 FROM tab0 cor0
----
-365

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + - 43 * COUNT ( * ) * - - COUNT ( * ) + 22 AS col2 FROM tab0 cor0
----
-365

query I rowsort
SELECT - - 54 - + 2 * - 5 FROM tab2 cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 BETWEEN - - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + ( ( - - col1 ) ) * + 21 >= - 86 + + 14 / + 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 71 - + col1 + - col0 AS col1 FROM tab2
----
-26
-70
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT - CAST( + SUM( DISTINCT - 5 ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - CAST ( + SUM ( DISTINCT - 5 ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + + col1 AS col0 FROM tab0 WHERE + col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT MAX( DISTINCT 91 ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT MAX ( DISTINCT 91 ) AS col0 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT MAX( DISTINCT + - 43 ) * + - 11 FROM tab0
----
473

skipif mysql # not compatible
query I rowsort label-5772
SELECT MAX ( DISTINCT + - 43 ) * + - 11 FROM tab0
----
473

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 47 * - col0 - - - 45 = NULL AND NOT NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 49 <> + - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL 90 * COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL 90 * COUNT ( * ) FROM tab0
----
270

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

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

query I rowsort
SELECT + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT DISTINCT col1 * - 96 * - - col2 FROM tab1 AS cor0
----
-129024
-28320
-306816

query I rowsort
SELECT - + 16 + + - col2 FROM tab2 cor0
----
-39
-56
-74

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

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

query II rowsort
SELECT - col1 + col0 AS col2, + col0 * 74 FROM tab1 cor0
----
37
3774
44
6734
80
6290

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

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

skipif mysql # not compatible
query I rowsort label-5784
SELECT - 23 * COUNT ( * ) / + - SUM ( ALL - + col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5785
SELECT col1 AS col1, - col0 DIV + 1 AS col2 FROM tab2
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-5785
SELECT col1 AS col1, - col0 / + 1 AS col2 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 AND - - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT + CAST( - col0 AS SIGNED ) * + CAST( + + col0 AS SIGNED ) - col1 * col1 FROM tab2
----
-10025
-10114
-4717

skipif mysql # not compatible
query I rowsort label-5787
SELECT + CAST ( - col0 AS INTEGER ) * + CAST ( + + col0 AS INTEGER ) - col1 * col1 FROM tab2
----
-10025
-10114
-4717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT DISTINCT + 85 + + - MIN( - + CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT + 85 + + - MIN ( - + CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL - 96 + + COUNT( * ) col0 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5789
SELECT ALL - 96 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - 82 + - 32 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT col2 + + ( - - col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT + - 4 FROM tab1 AS cor0 WHERE 74 IS NOT NULL
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT col0 DIV + - col2 - col1 AS col1 FROM tab1 AS cor0
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-5793
SELECT col0 / + - col2 - col1 AS col1 FROM tab1 AS cor0
----
-14
-48
-6

query I rowsort
SELECT DISTINCT 27 + - + col1 FROM tab0 AS cor0
----
-54
26
6

query I rowsort
SELECT DISTINCT + 3 - col0 + + col1 * - - 99 FROM tab1 AS cor0
----
1338
413
4565

query I rowsort
SELECT ALL + ( col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5797
SELECT + ( - + CAST( NULL AS DECIMAL ) ) / SUM( DISTINCT 12 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT + ( - + CAST ( NULL AS REAL ) ) / SUM ( DISTINCT 12 ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col2 - col1 * col2 AS col0, - col2 FROM tab1
----
-1248
-96
-236
-59
-3128
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT DISTINCT + 56 DIV - + SUM( + + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT + 56 / - + SUM ( + + col0 ) FROM tab1
----
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - - col1 <= NULL
----

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 20 > 67 * + col2
----
-23
-40
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 68 col2 FROM tab2
----
1564
2720
3944

query III rowsort
SELECT * FROM tab0 WHERE NOT 78 * + col0 * col0 IS NULL AND NOT + ( - col2 ) * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL COUNT( * ) * COUNT( * ) + 70 col1 FROM tab0 AS cor0
----
79

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

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

query I rowsort
SELECT DISTINCT + col0 * 12 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-2312
-2986
-621

query I rowsort
SELECT DISTINCT - + 37 * - col0 * + col0 * - - col1 AS col0 FROM tab0 AS cor0
----
348133
5881113
674325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + 81 + - col1 AS col0 FROM tab2 AS cor0
----
51
30
67
14
77
4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5810
SELECT + SUM ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
156

query II rowsort
SELECT DISTINCT 93 AS col1, 74 FROM tab1 AS cor0
----
93
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 32 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 10 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT 34 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5815
SELECT 34 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
25

query I rowsort
SELECT DISTINCT - col1 * + 59 FROM tab0
----
-1239
-4779
-59

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

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

query I rowsort
SELECT DISTINCT + 46 * - col2 * - - ( - 19 ) - + 11 * + col1 AS col2 FROM tab1 AS cor0
----
51511
58915
83750

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

query I rowsort
SELECT + 35 * + col0 * - - col1 - - col0 FROM tab0
----
3492
42540
64032

query I rowsort
SELECT - 8 - 58 - + col1 AS col0 FROM tab1 AS cor0
----
-113
-71
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT - - col2 * 58 DIV - 7 - + col2 AS col0 FROM tab0 AS cor0
----
-436
-919
-92

skipif mysql # not compatible
query I rowsort label-5822
SELECT - - col2 * 58 / - 7 - + col2 AS col0 FROM tab0 AS cor0
----
-436
-919
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-5823
SELECT + col0 + col2 DIV - - 32 + - ( - col1 ), col1 * - + col2 AS col2 FROM tab0 AS cor0
----
101
-99
108
-210
97
-3807

skipif mysql # not compatible
query II rowsort label-5823
SELECT + col0 + col2 / - - 32 + - ( - col1 ), col1 * - + col2 AS col2 FROM tab0 AS cor0
----
101
-99
108
-210
97
-3807

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5824
SELECT + CAST( NULL AS DECIMAL ) * - col2 * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT + CAST ( NULL AS REAL ) * - col2 * - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT MIN( - col1 ) * + 64 AS col0 FROM tab1
----
-3008

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT MIN ( - col1 ) * + 64 AS col0 FROM tab1
----
-3008

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - col0
----

query I rowsort
SELECT ALL + ( + - col1 ) * col1 AS col2 FROM tab0
----
-1
-441
-6561

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

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

query II rowsort
SELECT ALL - col0, col1 * + col2 AS col2 FROM tab2
----
-46
1173
-64
3080
-75
3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5830
SELECT CAST( NULL AS SIGNED ) col0, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5830
SELECT CAST ( NULL AS INTEGER ) col0, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

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

skipif mysql # not compatible
query I rowsort label-5831
SELECT - MAX ( ALL + + ( col1 ) ) FROM tab2
----
-77

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

query II rowsort
SELECT DISTINCT - 8 AS col2, 87 FROM tab0 AS cor0
----
-8
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5835
SELECT * FROM tab0 WHERE NOT + + CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5835
SELECT * FROM tab0 WHERE NOT + + CAST ( col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - 40 ) AS col1 FROM tab2 cor0
----
-40

query I rowsort
SELECT DISTINCT 0 + col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - + col0 + ( - col0 ) * + - 25 + - ( + + 34 ) FROM tab2 AS cor0
----
1070
1502
1766

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT + - SUM( + 13 ) + + COUNT( * ) col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5839
SELECT + - SUM ( + 13 ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL + CAST( + SUM( + + 36 ) AS SIGNED ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + CAST ( + SUM ( + + 36 ) AS INTEGER ) FROM tab1 AS cor0
----
108

query I rowsort
SELECT col0 * - col0 * + col0 FROM tab0
----
-3375
-658503
-912673

query I rowsort
SELECT + 0 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5843
SELECT ALL + col0, + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5843
SELECT ALL + col0, + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT + 8 * + + col0 FROM tab2
----
368
512
600

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT MIN( + - col2 ) + 10 AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT MIN ( + - col2 ) + 10 AS col2 FROM tab1 AS cor0
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT 41 * COUNT( * ) col1 FROM tab0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5849
SELECT 41 * COUNT ( * ) col1 FROM tab0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT ALL col1 + col2 DIV - col2 AS col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL col1 + col2 / - col2 AS col1 FROM tab1
----
13
4
46

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

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

query I rowsort
SELECT 84 * + col1 AS col2 FROM tab0
----
1764
6804
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT ALL col1 DIV - 13 AS col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL col1 / - 13 AS col1 FROM tab1
----
-1
-3
0

query I rowsort
SELECT 53 + col2 FROM tab0
----
100
152
63

query I rowsort
SELECT - 40 FROM tab2 WHERE NOT ( 81 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - COUNT( ALL col0 ) FROM tab0 WHERE col0 IN ( ( - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5856
SELECT - COUNT ( ALL col0 ) FROM tab0 WHERE col0 IN ( ( - col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5857
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( + CAST( col0 AS SIGNED ) / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5857
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( + CAST ( col0 AS INTEGER ) / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT + col0 * - CAST( col0 AS SIGNED ) FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-5858
SELECT + col0 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-225
-7569
-9409

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

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + 31 + COUNT ( * ) / + 97 AS col0 FROM tab2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT - 49 DIV 33 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - 49 / 33 AS col0 FROM tab0
----
-1

query I rowsort
SELECT + col0 + + 57 * col1 FROM tab0
----
1284
154
4632

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 58 <> - 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col2 FROM tab1 WHERE NOT ( - col1 ) = NULL
----

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

query I rowsort
SELECT 76 - + 92 * + 56 FROM tab2
----
-5076
-5076
-5076

query I rowsort
SELECT - 49 - col1 AS col2 FROM tab1
----
-54
-63
-96

query I rowsort
SELECT DISTINCT + 89 + + col1 AS col0 FROM tab0
----
110
170
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT MAX( 76 ) AS col1 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT MAX ( 76 ) AS col1 FROM tab1
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 WHERE ( + 79 ) NOT IN ( - col2 )
----
-46
-64
-75

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 98 + - col1 / 67 >= + col2 + + 27
----
85
5
59
91
47
68

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + col2 <= 83 - + 36
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL 77 + COUNT( * ) FROM tab0 WHERE NULL < - col1
----
77

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL 77 + COUNT ( * ) FROM tab0 WHERE NULL < - col1
----
77

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

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

query I rowsort
SELECT ALL 91 * - col0 AS col0 FROM tab2 WHERE + 36 * + col0 BETWEEN + ( + 63 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT 55 - - MIN( ALL + 64 ) FROM tab0
----
119

skipif mysql # not compatible
query I rowsort label-5878
SELECT 55 - - MIN ( ALL + 64 ) FROM tab0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5879
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5879
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN + col0 AND 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT col2 DIV 41 AS col2 FROM tab1 WHERE - col2 * - col0 BETWEEN 10 + 71 AND - col0 * - col0
----
1
1

skipif mysql # not compatible
query I rowsort label-5881
SELECT col2 / 41 AS col2 FROM tab1 WHERE - col2 * - col0 BETWEEN 10 + 71 AND - col0 * - col0
----
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 WHERE col0 * col0 IN ( col0 * - 24 + - ( col0 ) * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 WHERE col0 * col0 IN ( col0 * - 24 + - ( col0 ) * col2 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN - col2 - - 32 AND ( + col0 )
----
75
67
58

query I rowsort
SELECT DISTINCT 7 * 62 AS col0 FROM tab1 AS cor0
----
434

query I rowsort
SELECT ALL ( - 75 ) FROM tab2 AS cor0
----
-75
-75
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 / 99 col0 FROM tab1 WHERE NOT NULL > 77
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col2 IN ( 65 * - col1 + col0 * + col1 )
----
10
47
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT ALL ( + 4 ) DIV + col1 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL ( + 4 ) / + col1 AS col1 FROM tab0
----
0
0
4

query I rowsort
SELECT ALL 8 AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
8
8
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT + - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5895
SELECT + - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-5

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

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

query I rowsort
SELECT DISTINCT - + col1 * - 78 + col0 FROM tab1 AS cor0
----
1143
3757
475

query I rowsort
SELECT DISTINCT - col0 + - 53 AS col1 FROM tab2 AS cor0
----
-117
-128
-99

query I rowsort
SELECT ALL - col2 + 89 FROM tab1 AS cor0
----
-7
21
30

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

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

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

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

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

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

query I rowsort
SELECT col2 + + 54 AS col1 FROM tab1 AS cor0
----
113
122
150

query III rowsort
SELECT * FROM tab1 WHERE col0 * 45 - + col1 BETWEEN - 78 AND NULL
----

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

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

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

query I rowsort
SELECT ALL 95 - + col0 FROM tab1
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT - SUM( col1 ) AS col1 FROM tab1 WHERE ( NULL ) IN ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - SUM ( col1 ) AS col1 FROM tab1 WHERE ( NULL ) IN ( + 63 )
----
NULL

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

query I rowsort
SELECT - 79 + 69 FROM tab0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT + 86 * col0 + + col0 DIV 19 FROM tab1
----
4388
7314
7830

skipif mysql # not compatible
query I rowsort label-5912
SELECT + 86 * col0 + + col0 / 19 FROM tab1
----
4388
7314
7830

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT 41 + + + 7 + col2 DIV 36 FROM tab2
----
48
49
49

skipif mysql # not compatible
query I rowsort label-5913
SELECT 41 + + + 7 + col2 / 36 FROM tab2
----
48
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT 53 DIV - col2 + + 88 * + col1 FROM tab0
----
1843
7127
88

skipif mysql # not compatible
query I rowsort label-5914
SELECT 53 / - col2 + + 88 * + col1 FROM tab0
----
1843
7127
88

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL MAX ( ALL - 40 ) FROM tab1 AS cor0
----
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= ( - 8 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL + COUNT( col0 ) * - 65 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + COUNT ( col0 ) * - 65 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----
0

query I rowsort
SELECT - 0 - + ( col0 ) + + col0 * 22 AS col2 FROM tab2
----
1344
1575
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 43 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5922
SELECT + 65 AS col2, MIN( DISTINCT + 35 ) col2 FROM tab1 AS cor0
----
65
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5922
SELECT + 65 AS col2, MIN ( DISTINCT + 35 ) col2 FROM tab1 AS cor0
----
65
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5923
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( 31 AS SIGNED ) + + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-5923
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 31 AS INTEGER ) + + col0 >= NULL
----

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

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

query I rowsort
SELECT - 53 * - + col0 AS col2 FROM tab1 AS cor0
----
2703
4505
4823

query I rowsort
SELECT col0 * col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE NOT col0 <= + col1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT - 47 * - 51 * - MAX( ALL + col2 ) + SUM( col0 + col1 * + col1 ) FROM tab2 cor0
----
-125822

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT - 47 * - 51 * - MAX ( ALL + col2 ) + SUM ( col0 + col1 * + col1 ) FROM tab2 cor0
----
-125822

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + COUNT( * ) * - 5 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5929
SELECT + COUNT ( * ) * - 5 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT - 9 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 * - col1 * + 63 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 41 * - 78 AS col0 FROM tab2
----
-3198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) / + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) / + - col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT col1 * - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 WHERE NOT + + ( col2 ) * 55 + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT col1 * - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 WHERE NOT + + ( col2 ) * 55 + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT 4 * + ( - + ( + SUM( DISTINCT - 44 ) ) ) FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-5935
SELECT 4 * + ( - + ( + SUM ( DISTINCT - 44 ) ) ) FROM tab1
----
176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5936
SELECT ALL - 15 * + COUNT( * ) + 32 FROM tab2 WHERE NOT col1 / col2 IN ( - col2 - CAST( NULL AS DECIMAL ) )
----
32

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - 15 * + COUNT ( * ) + 32 FROM tab2 WHERE NOT col1 / col2 IN ( - col2 - CAST ( NULL AS REAL ) )
----
32

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

skipif mysql # not compatible
query III rowsort label-5937
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN col2 AND + col1
----

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( 76 / 69 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5940
SELECT + CAST( NULL AS DECIMAL ) * COUNT( ALL col1 ) FROM tab2 AS cor0 WHERE NOT + col0 * - col0 * + col2 NOT BETWEEN 30 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT + CAST ( NULL AS REAL ) * COUNT ( ALL col1 ) FROM tab2 AS cor0 WHERE NOT + col0 * - col0 * + col2 NOT BETWEEN 30 AND - col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT + - CAST( - - col2 AS SIGNED ) * ( 16 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 IS NULL
----
-368
-640
-928

skipif mysql # not compatible
query I rowsort label-5943
SELECT + - CAST ( - - col2 AS INTEGER ) * ( 16 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 IS NULL
----
-368
-640
-928

query I rowsort
SELECT ALL + 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT 76 / + col0 + - 56 + - ( + col2 ) * + col1 IS NOT NULL
----

query I rowsort
SELECT - ( - col0 ) * - 72 FROM tab0 cor0 WHERE - 44 * + col0 < NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + COUNT( ALL + + ( 13 ) ) FROM tab2 AS cor0 WHERE - 7 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5950
SELECT + COUNT ( ALL + + ( 13 ) ) FROM tab2 AS cor0 WHERE - 7 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 + - 57 * + + 22 FROM tab1 AS cor0
----
-1305
-1339
-1345

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL 40 + + COUNT( * ) * 98 FROM tab1 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL 40 + + COUNT ( * ) * 98 FROM tab1 AS cor0
----
334

query II rowsort
SELECT ALL - col0, 17 * - col1 - col2 AS col0 FROM tab0 AS cor0
----
-15
-1424
-87
-367
-97
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + MAX( - col0 ) + + 32 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-14

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5956
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 / CAST( CAST( + + 60 AS SIGNED ) AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5956
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 / CAST ( CAST ( + + 60 AS INTEGER ) AS INTEGER ) ) = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5958
SELECT - 84 AS col1, COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
-84
0

skipif mysql # not compatible
query II rowsort label-5958
SELECT - 84 AS col1, COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
-84
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5961
SELECT * FROM tab2 WHERE NULL NOT IN ( CAST( - col0 AS DECIMAL ), col2 )
----

skipif mysql # not compatible
query III rowsort label-5961
SELECT * FROM tab2 WHERE NULL NOT IN ( CAST ( - col0 AS REAL ), col2 )
----

query I rowsort
SELECT + - col0 - - - col2 AS col1 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + COUNT( * ) + + + MIN( ALL - + col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5963
SELECT + COUNT ( * ) + + + MIN ( ALL - + col2 ) FROM tab1 AS cor0
----
-93

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT ALL - col1 / col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * col2 + 4 col1 FROM tab2 AS cor0
----
-1272
-502
-876

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT + MAX( - 94 ) FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
-94

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT + MAX ( - 94 ) FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
-94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 * col2 + col2 col2 FROM tab2 cor0
----
-1794
-3120
-4524

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

query I rowsort
SELECT - - 10 * col0 * - + 56 AS col1 FROM tab0 AS cor0
----
-48720
-54320
-8400

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5977
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) = 12
----

skipif mysql # not compatible
query III rowsort label-5977
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) = 12
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 59 / + + col0 >= - col1 + + 68
----
46
51
23
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL CAST( NULL AS SIGNED ) + + 77 FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col0 + + col0 + + 51 * - col2 + - - col0 FROM tab1 AS cor0
----
-2924
-3377
-4845

query I rowsort
SELECT - + col0 * + + col0 - - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-2139
-4120
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - ( - - ( + - COUNT( * ) ) ) - 25 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-16

skipif mysql # not compatible
query I rowsort label-5983
SELECT - ( - - ( + - COUNT ( * ) ) ) - 25 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * col0 col0 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5985
SELECT ALL COUNT( * ) + + 53 - - 42 DIV - SUM( col1 ) + 57 FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL COUNT ( * ) + + 53 - - 42 / - SUM ( col1 ) + 57 FROM tab2
----
113

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE - 79 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5987
SELECT DISTINCT col0 + + 53 + + + CAST( NULL AS SIGNED ) * + - 61 + col0 + - col2 * - 53, col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5987
SELECT DISTINCT col0 + + 53 + + + CAST ( NULL AS INTEGER ) * + - 61 + col0 + - col2 * - 53, col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + - 43 BETWEEN + col1 + - - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT - - CAST( + col2 AS SIGNED ) - + col1 + 39 * - col0 FROM tab2 AS cor0
----
-1822
-2533
-2934

skipif mysql # not compatible
query I rowsort label-5989
SELECT - - CAST ( + col2 AS INTEGER ) - + col1 + 39 * - col0 FROM tab2 AS cor0
----
-1822
-2533
-2934

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5990
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( - col2 AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-5990
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5991
SELECT ALL + 27 AS col2, - CAST( + MAX( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5991
SELECT ALL + 27 AS col2, - CAST ( + MAX ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - col2
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - - MIN( DISTINCT col1 ) * - COUNT( * ) col0 FROM tab2 WHERE NULL <= + ( + 4 ) * + 67 + + col0 * + 97 * + col0 * - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5992
SELECT - - MIN ( DISTINCT col1 ) * - COUNT ( * ) col0 FROM tab2 WHERE NULL <= + ( + 4 ) * + 67 + + col0 * + 97 * + col0 * - col1
----
NULL

query I rowsort
SELECT col1 + + 66 FROM tab2
----
117
133
143

query II rowsort
SELECT ALL col0 - - + col1 + - 85, - 35 AS col0 FROM tab0
----
11
-35
13
-35
23
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT + 46 - + 99 * + COUNT( * ) + - 83 AS col2 FROM tab2
----
-334

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT + 46 - + 99 * + COUNT ( * ) + - 83 AS col2 FROM tab2
----
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL 32 - - + COUNT( * ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL 32 - - + COUNT ( * ) AS col1 FROM tab2
----
35

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE + col1 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT - COUNT( * ) * 28 AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-5999
SELECT - COUNT ( * ) * 28 AS col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT + + 30 DIV - MIN( DISTINCT + + 82 ) * + - 64 - - 17 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6000
SELECT + + 30 / - MIN ( DISTINCT + + 82 ) * + - 64 - - 17 FROM tab2 AS cor0
----
17

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

query II rowsort
SELECT 78 AS col1, col1 AS col0 FROM tab2
----
78
51
78
67
78
77

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

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

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

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

query I rowsort
SELECT ALL - 81 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query II rowsort
SELECT + col1 * col2, col1 AS col0 FROM tab1 cor0 WHERE NOT - ( + col1 ) <= col1
----

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

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

query I rowsort
SELECT col1 * + 71 AS col0 FROM tab0
----
1491
5751
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT 55 DIV + ( 96 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT 55 / + ( 96 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 * - + col2 * + col1 FROM tab1
----
-25075
-290836
-68544

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

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6015
SELECT ALL - CAST( NULL AS SIGNED ) * + 74, COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6015
SELECT ALL - CAST ( NULL AS INTEGER ) * + 74, COUNT ( * ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT DISTINCT col0 * 0 * - col0 FROM tab0
----
0

query I rowsort
SELECT ALL + - 11 + - - 69 + - col0 FROM tab0 AS cor0
----
-29
-39
43

query I rowsort
SELECT DISTINCT - col1 + - col1 - - 24 FROM tab0
----
-138
-18
22

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

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - MAX ( 58 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL 96 - + col1 FROM tab1 AS cor0
----
49
82
91

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6022
SELECT DISTINCT + col2 + + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + col2 + + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 63 + 64 - - - col1 AS col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT ALL col0 * - - 64 FROM tab1
----
3264
5440
5824

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

query I rowsort
SELECT 23 * col0 * - - col1 FROM tab1 AS cor0
----
16422
9775
98371

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 82 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 82 FROM tab0, tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - + 79 * col2 FROM tab2 cor0
----
-1817
-3160
-4582

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT + + 40 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT + + 40 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - - 8 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT - col2 * - + 21 FROM tab2 AS cor0
----
1218
483
840

query I rowsort
SELECT + 68 * 75 * + - col0 AS col1 FROM tab2
----
-234600
-326400
-382500

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab0 WHERE NOT - col2 <> - + col1 * col1 + - col1
----

query I rowsort
SELECT DISTINCT ( + 5 ) FROM tab0 WHERE NOT + + 46 / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6037
SELECT DISTINCT col2 AS col2, col0 / + col2 * - col2 * - col0 + + + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6037
SELECT DISTINCT col2 AS col2, col0 / + col2 * - col2 * - col0 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + COUNT( * ) * + 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + COUNT ( * ) * + 52 FROM tab0
----
156

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT + col1 + + - 34 DIV + - 3 AS col0 FROM tab2 AS cor0
----
62
78
88

skipif mysql # not compatible
query I rowsort label-6043
SELECT + col1 + + - 34 / + - 3 AS col0 FROM tab2 AS cor0
----
62
78
88

query I rowsort
SELECT - col0 - col0 AS col0 FROM tab2 AS cor0 WHERE - col0 * + - col1 > ( - col1 + - col2 + - - 59 )
----
-128
-150
-92

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 63 * ( + - 82 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6047
SELECT - + CAST( NULL AS SIGNED ) - - col2, - 0 + - - col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-6047
SELECT - + CAST ( NULL AS INTEGER ) - - col2, - 0 + - - col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT DISTINCT col2 + 36 DIV + + col1 FROM tab0 cor0
----
11
135
47

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT col2 + 36 / + + col1 FROM tab0 cor0
----
11
135
47

query I rowsort
SELECT DISTINCT + 64 * - 9 AS col0 FROM tab0
----
-576

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT 23 * + - COUNT( * ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6051
SELECT 23 * + - COUNT ( * ) AS col2 FROM tab2
----
-69

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE - 45 * col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - + col0 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6055
SELECT DISTINCT - SUM( ALL + CAST( + ( col2 ) AS SIGNED ) ) AS col0 FROM tab0
----
-156

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

query I rowsort
SELECT ALL 25 * ( + - 36 ) AS col0 FROM tab1
----
-900
-900
-900

query III rowsort
SELECT ALL * FROM tab0 WHERE - 58 - - 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL + + col2 * 38 + - ( - col2 ) FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT DISTINCT ( 89 ) DIV col0 + - - col1 FROM tab0 AS cor0
----
1
22
86

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT ( 89 ) / col0 + - - col1 FROM tab0 AS cor0
----
1
22
86

query I rowsort
SELECT 15 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6062
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) / + col1 + + + 36 * ( - - ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6062
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) / + col1 + + + 36 * ( - - ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 59 * 82 * + 16 IS NULL
----

query I rowsort
SELECT 96 + - 61 - - 18 AS col0 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + col1 + + 94 * col0 * + 42 FROM tab0 cor0
----
343497
382957
59301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 * + 39 * 18 * + 60 AS col2 FROM tab0
----
3411720
42120
884520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6071
SELECT + CAST( 51 AS SIGNED ) DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6071
SELECT + CAST ( 51 AS INTEGER ) / + col2 FROM tab2
----
0
1
2

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 97 * - col0 * + 76 * + 2 + + - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6075
SELECT DISTINCT + COUNT( * ) AS col1, - 61 FROM tab2
----
3
-61

skipif mysql # not compatible
query II rowsort label-6075
SELECT DISTINCT + COUNT ( * ) AS col1, - 61 FROM tab2
----
3
-61

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

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL 93 + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 23 + - 17 + - 19 + + col2 FROM tab0 AS cor0
----
-12
-49
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT - + COUNT( ALL - - 68 ) * + 85 AS col2, - COUNT( * ) * + 24 col1 FROM tab2 AS cor0 WHERE + 61 IS NOT NULL
----
-255
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6078
SELECT - + COUNT ( ALL - - 68 ) * + 85 AS col2, - COUNT ( * ) * + 24 col1 FROM tab2 AS cor0 WHERE + 61 IS NOT NULL
----
-255
-72

query I rowsort
SELECT DISTINCT - col2 - + + col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT + + 89 + - col1 AS col0 FROM tab0 AS cor0
----
68
8
88

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < 4
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <> - - 53
----

query I rowsort
SELECT ALL - ( + - col2 ) + - 84 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
-25
12

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col2 * 43 + - col1 + - 36 AND - - col1 - 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT + CAST( - 24 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-6087
SELECT + CAST ( - 24 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + col0 * 54 FROM tab1 AS cor0 WHERE NOT NULL > 55
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 46 + + col2 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 65 AS col0, + 54 AS col0 FROM tab1 AS cor0
----
65
54
65
54
65
54

query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 45 IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT ALL COUNT( + 30 ) AS col1, + 78 FROM tab1
----
3
78

skipif mysql # not compatible
query II rowsort label-6093
SELECT ALL COUNT ( + 30 ) AS col1, + 78 FROM tab1
----
3
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 36 < + + 99
----

query I rowsort
SELECT + col0 * - 48 + - 86 * col2 AS col2 FROM tab1 AS cor0
----
-10216
-10704
-9154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - - col2 col1, - col2 AS col2 FROM tab0 AS cor0
----
705
-47
870
-10
9603
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT + - ( + COUNT( * ) ) * - - 91 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-6098
SELECT + - ( + COUNT ( * ) ) * - - 91 FROM tab2 cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + 30 + + col0 * + - col0 col1 FROM tab0 AS cor0
----
-6939
-9379
2205

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

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE col2 * + 69 + - - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 51 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ( - MIN( - 26 ) ) col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6102
SELECT ( - MIN ( - 26 ) ) col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL 23 * col0 AS col2 FROM tab1 AS cor0
----
1173
1955
2093

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 21 - - + col0 + - col1 NOT BETWEEN col0 * + + col2 + + col1 AND + 74 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 85 + + 35 FROM tab0 AS cor0
----
-50
-50
-50

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

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

query II rowsort
SELECT col1 * - + col1 + col2 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
-100
-14
-2141
-47
34
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT - 8 * + CAST( col1 AS SIGNED ) + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-477
-669
-720

skipif mysql # not compatible
query I rowsort label-6108
SELECT - 8 * + CAST ( col1 AS INTEGER ) + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-477
-669
-720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6109
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 92 AS col1 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT CAST ( NULL AS REAL ) * 92 AS col1 FROM tab2, tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6110
SELECT COUNT( * ) + - 43 AS col1, COUNT( * ) FROM tab2
----
-40
3

skipif mysql # not compatible
query II rowsort label-6110
SELECT COUNT ( * ) + - 43 AS col1, COUNT ( * ) FROM tab2
----
-40
3

query II rowsort
SELECT ALL col2 * + 24 AS col1, col2 FROM tab1
----
1416
59
1632
68
2304
96

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

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

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

query I rowsort
SELECT + 62 + col1 FROM tab2
----
113
129
139

query I rowsort
SELECT DISTINCT - + 99 * + col2 + 53 AS col0 FROM tab2 AS cor0
----
-2224
-3907
-5689

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - - 99 >= NULL OR col0 IS NULL
----

query II rowsort
SELECT DISTINCT - + col1 - + col1 AS col0, - ( col2 ) + - + 60 FROM tab2 AS cor0
----
-102
-83
-134
-118
-154
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT ( - - ( - col1 ) ) DIV 49 - - 37 + + - col1 - - col2 FROM tab2
----
-1
27
8

skipif mysql # not compatible
query I rowsort label-6118
SELECT ( - - ( - col1 ) ) / 49 - - 37 + + - col1 - - col2 FROM tab2
----
-1
27
8

query III rowsort
SELECT * FROM tab0 WHERE + col1 < col0 + + col2
----
87
21
10
97
1
99

query I rowsort
SELECT col0 - + - 71 AS col2 FROM tab1
----
122
156
162

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

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL MAX ( 4 ) FROM tab1 AS cor0
----
4

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

query I rowsort
SELECT DISTINCT ( + - col2 ) * + - col1 * - 42 AS col2 FROM tab1 AS cor0
----
-12390
-134232
-56448

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NOT 40 / - 57 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - COUNT( * ) * COUNT( DISTINCT col1 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6125
SELECT - COUNT ( * ) * COUNT ( DISTINCT col1 ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 col0, 82 col2 FROM tab1
----
16
82
16
82
16
82

query II rowsort
SELECT 34, - col1 + - col1 AS col2 FROM tab0
----
34
-162
34
-2
34
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT + SUM( 88 ) col1 FROM tab0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT DISTINCT + SUM ( 88 ) col1 FROM tab0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6129
SELECT + ( CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6129
SELECT + ( CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT ALL - 92 * col2 AS col2 FROM tab2
----
-2116
-3680
-5336

query II rowsort
SELECT col2, col1 * + col1 * + 35 FROM tab1
----
59
875
68
77315
96
6860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT ( + CAST( + + 12 AS SIGNED ) ) col2 FROM tab2
----
12
12
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6132
SELECT ( + CAST ( + + 12 AS INTEGER ) ) col2 FROM tab2
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 / col0 * - - 25 + - ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL MIN( + 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL MIN ( + 53 ) FROM tab2 AS cor0
----
53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT - ( - col0 ) * - - CAST( NULL AS SIGNED ) * - + col0 FROM tab0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) <> NULL )
----

skipif mysql # not compatible
query I rowsort label-6137
SELECT - ( - col0 ) * - - CAST ( NULL AS INTEGER ) * - + col0 FROM tab0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL - COUNT( * ) * ( - - ( + 86 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-774

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - COUNT ( * ) * ( - - ( + 86 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT - + 85 * - MAX( col0 ) * - - 53 * + COUNT( * ) + + - ( MIN( ALL - ( + + col1 ) ) ) * - 67 FROM tab0 AS cor0
----
1305528

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - + 85 * - MAX ( col0 ) * - - 53 * + COUNT ( * ) + + - ( MIN ( ALL - ( + + col1 ) ) ) * - 67 FROM tab0 AS cor0
----
1305528

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT DISTINCT 7 + - 71 + + - col2 * col2 DIV - + ( - col2 ) col1 FROM tab2 AS cor0
----
-104
-122
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6140
SELECT DISTINCT 7 + - 71 + + - col2 * col2 / - + ( - col2 ) col1 FROM tab2 AS cor0
----
-104
-122
-87

query I rowsort
SELECT ALL + - 88 * 84 + - + col1 AS col1 FROM tab0 AS cor0
----
-7393
-7413
-7473

query II rowsort
SELECT DISTINCT - - col2 + + - col0 AS col1, + col1 + - 15 AS col1 FROM tab1 cor0
----
-23
32
-26
-10
45
-1

query I rowsort
SELECT col2 + + - 67 AS col0 FROM tab2 AS cor0
----
-27
-44
-9

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

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

query I rowsort
SELECT DISTINCT + col2 + - col2 * + - col2 FROM tab0 AS cor0
----
110
2256
9900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 12 > - 75 / - col2 + + 93 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL ( - + ( - - COUNT( DISTINCT + 45 ) ) ) + COUNT( * ) + - COUNT( * ) + + COUNT( * ) * COUNT( DISTINCT - - col0 ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL ( - + ( - - COUNT ( DISTINCT + 45 ) ) ) + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) * COUNT ( DISTINCT - - col0 ) AS col1 FROM tab2
----
8

query I rowsort
SELECT ALL 93 + - 24 + col2 * + 98 AS col2 FROM tab1
----
5851
6733
9477

query III rowsort
SELECT * FROM tab2 WHERE col1 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL COUNT( * ) + + MAX( DISTINCT + + 97 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
100

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL COUNT ( * ) + + MAX ( DISTINCT + + 97 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
100

query I rowsort
SELECT ( + + 65 ) * col0 FROM tab0
----
5655
6305
975

query I rowsort
SELECT + col0 * - + 24 + + + col2 FROM tab0 WHERE + col1 BETWEEN NULL AND - + ( - col0 )
----

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

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

query I rowsort
SELECT ALL + + col1 + - 30 FROM tab2 cor0
----
21
37
47

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

skipif mysql # not compatible
query III rowsort label-6156
SELECT * FROM tab0 WHERE NULL > - + CAST ( + 79 AS INTEGER )
----

query I rowsort
SELECT ALL ( + - 84 ) * col2 AS col0 FROM tab1
----
-4956
-5712
-8064

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

query I rowsort
SELECT + col2 / + col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

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

query II rowsort
SELECT ALL col2, + col0 FROM tab1 WHERE NOT + - 83 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT ALL 23 col2, + MIN( col1 ) * MIN( DISTINCT - col0 ) FROM tab0
----
23
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6162
SELECT ALL 23 col2, + MIN ( col1 ) * MIN ( DISTINCT - col0 ) FROM tab0
----
23
-97

query I rowsort
SELECT + 76 * - - col0 * 14 * - col0 AS col0 FROM tab2
----
-2251424
-4358144
-5985000

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 27 < + + 29 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT - COUNT( * ) DIV 54 AS col2 FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6165
SELECT - COUNT ( * ) / 54 AS col2 FROM tab2, tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6166
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6166
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> CAST ( + col0 AS REAL )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT ALL - ( + CAST( + 65 AS SIGNED ) ) + col1 FROM tab2 AS cor0
----
-14
12
2

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - ( + CAST ( + 65 AS INTEGER ) ) + col1 FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT DISTINCT col0 * + col1 * + ( - 63 ) + 59 + + + col2 FROM tab0 AS cor0
----
-115032
-5953
-76439

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT DISTINCT + + col2 + 8 DIV - 33 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + + col2 + 8 / - 33 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT ALL + 76 + - + ( - + col0 ) + + 9 DIV + + col0 AS col1 FROM tab2 AS cor0
----
122
140
151

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + 76 + - + ( - + col0 ) + + 9 / + + col0 AS col1 FROM tab2 AS cor0
----
122
140
151

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 63 + - 59 + + - ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT + SUM( + + ( - col1 ) ) - COUNT( * ) FROM tab1 AS cor0
----
-69

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
10
47
99

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT - col2 + + - col0 + 58 DIV - col1 FROM tab2
----
-104
-133
-70

skipif mysql # not compatible
query I rowsort label-6179
SELECT - col2 + + - col0 + 58 / - col1 FROM tab2
----
-104
-133
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 + + - col2 col1 FROM tab2 WHERE 95 NOT BETWEEN col2 / - col0 AND + 40
----
-46
-63
-81

query I rowsort
SELECT col1 + 60 FROM tab1
----
107
65
74

query I rowsort
SELECT DISTINCT - col1 * 37 + + - 85 + + col0 * col2 AS col2 FROM tab0 cor0
----
-2377
8
9481

query I rowsort
SELECT ALL - + col2 * + 57 FROM tab2 AS cor0
----
-1311
-2280
-3306

onlyif mysql # DIV for integer division: 
query II rowsort label-6184
SELECT ALL ( + - col1 ) * - col0 AS col0, 2 DIV - 8 AS col2 FROM tab0
----
1215
0
1827
0
97
0

skipif mysql # not compatible
query II rowsort label-6184
SELECT ALL ( + - col1 ) * - col0 AS col0, 2 / - 8 AS col2 FROM tab0
----
1215
0
1827
0
97
0

query I rowsort
SELECT DISTINCT + col0 * + 70 FROM tab2
----
3220
4480
5250

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT DISTINCT col2 DIV + + 89 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT col2 / + + 89 AS col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT 50 AS col1, col2 AS col2 FROM tab0
----
50
10
50
47
50
99

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6189
SELECT + - MIN ( ALL 7 ) col0 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT col1 * 80 AS col2 FROM tab2 AS cor0
----
4080
5360
6160

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6193
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( + - ( + - col2 ) AS SIGNED ) = + col2
----

skipif mysql # not compatible
query III rowsort label-6193
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( + - ( + - col2 ) AS INTEGER ) = + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT - COUNT( ( - col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6195
SELECT - COUNT ( ( - col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

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

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

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

query I rowsort
SELECT ALL + col0 + - + col0 AS col0 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - col1 * + col0 - + col1 * + 26 + col1 AS col0 FROM tab0 AS cor0
----
-122
-2352
-3240

query I rowsort
SELECT 66 + + col1 AS col0 FROM tab2
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + 59 + - + MAX( ALL + ( + col0 ) ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6202
SELECT + 59 + - + MAX ( ALL + ( + col0 ) ) FROM tab0
----
-38

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col1 + + - col0
----

query I rowsort
SELECT DISTINCT - ( + 63 ) * + + ( - + 88 ) * - col0 - col1 + + - 69 AS col0 FROM tab1 AS cor0
----
-282827
-471314
-504620

query I rowsort
SELECT + 58 * - 14 FROM tab0 cor0
----
-812
-812
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6207
SELECT + CAST( NULL AS SIGNED ) + 98 + 14 * col2 / - - 11 FROM tab0 AS cor0 WHERE col0 * - - 2 - + col1 - + - 0 = NULL
----

skipif mysql # not compatible
query I rowsort label-6207
SELECT + CAST ( NULL AS INTEGER ) + 98 + 14 * col2 / - - 11 FROM tab0 AS cor0 WHERE col0 * - - 2 - + col1 - + - 0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - + COUNT( * ) + - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 WHERE 26 + - col1 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6208
SELECT - + COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 WHERE 26 + - col1 IS NOT NULL
----
-9

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

query I rowsort
SELECT col1 - + + 44 AS col1 FROM tab1
----
-30
-39
3

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

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab0, tab0 AS cor0
----
-18

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 10 AND - + 79 - - col2
----

query II rowsort
SELECT col1, + 40 AS col1 FROM tab1 AS cor0
----
14
40
47
40
5
40

query I rowsort
SELECT ALL ( + + 46 ) * + col1 AS col0 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6217
SELECT + SUM( ALL - + CAST( + 44 AS SIGNED ) ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-387

skipif mysql # not compatible
query I rowsort label-6217
SELECT + SUM ( ALL - + CAST ( + 44 AS INTEGER ) ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-387

query I rowsort
SELECT DISTINCT - 88 + + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT DISTINCT col0 * col1 DIV + ( col2 ) + ( col0 ) AS col2 FROM tab0 AS cor0
----
269
40
97

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT col0 * col1 / + ( col2 ) + ( col0 ) AS col2 FROM tab0 AS cor0
----
269
40
97

query I rowsort
SELECT + ( col0 ) * - col1 * + 58 FROM tab0 AS cor0
----
-105966
-5626
-70470

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

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

query I rowsort
SELECT - 30 * - 24 + + col0 FROM tab0 AS cor0
----
735
807
817

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT 82 - - ( 31 ) BETWEEN - col2 AND col2 + col2 ) )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + col2 col2 FROM tab1 AS cor0
----
-2183
-2516
-3552

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT ALL + MIN ( DISTINCT col2 ) col0 FROM tab0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6228
SELECT * FROM tab1 WHERE NOT 56 * + + ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6228
SELECT * FROM tab1 WHERE NOT 56 * + + ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT 83 * + col1 * col2 + + + col2 AS col0 FROM tab2
----
255680
322596
97382

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT ( 18 ) + col2 DIV + - col1 + col1 * + + 50 AS col1 FROM tab2
----
2568
3368
3868

skipif mysql # not compatible
query I rowsort label-6231
SELECT ( 18 ) + col2 / + - col1 + col1 * + + 50 AS col1 FROM tab2
----
2568
3368
3868

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 27 IS NULL
----

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

query I rowsort
SELECT ( + - col2 ) + - 19 + - - 13 * + col0 AS col0 FROM tab0 cor0
----
1102
1143
129

query I rowsort
SELECT DISTINCT - 99 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col2
----

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

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

query I rowsort
SELECT ALL + 49 FROM tab2 cor0 WHERE - col1 + + 93 >= - - ( + col2 ) * + 29 * 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT + col1 DIV 10 DIV - ( + 33 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT + col1 / 10 / - ( + 33 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

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

query I rowsort
SELECT - 48 - + + 31 FROM tab1 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * - col1 + 17 col1 FROM tab1 AS cor0
----
-103
-1111
-319

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

query I rowsort
SELECT col2 * + col2 + - 18 + col1 FROM tab0 AS cor0
----
103
2272
9784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + - + col1, + 28 + + col0 col2 FROM tab0 AS cor0
----
0
115
0
125
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL 64 * - 18 - + + 66 + 5 * 40 - + + SUM( ALL + 67 ) FROM tab1
----
-1219

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL 64 * - 18 - + + 66 + 5 * 40 - + + SUM ( ALL + 67 ) FROM tab1
----
-1219

query III rowsort
SELECT * FROM tab2 WHERE + + 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT 44 DIV - col0 + + ( + + col0 ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6248
SELECT 44 / - col0 + + ( + + col0 ) AS col0 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 92 + - col1 IS NOT NULL
----

query I rowsort
SELECT + 14 * - + 14 FROM tab1
----
-196
-196
-196

query I rowsort
SELECT - 41 * col1 FROM tab2
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT - COUNT( ( - 8 ) ) * 6 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6252
SELECT - COUNT ( ( - 8 ) ) * 6 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - ( + 94 ) * - - 81 * - + 56 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - ( + 94 ) * - - 81 * - + 56 IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6254
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED ) * col1 + - 51
----

skipif mysql # not compatible
query III rowsort label-6254
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER ) * col1 + - 51
----

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

skipif mysql # not compatible
query I rowsort label-6255
SELECT - COUNT ( - 69 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 * + col2 col0 FROM tab1
----
1020
1440
885

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT COUNT( * ), 74 col1 FROM tab2
----
3
74

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6260
SELECT + CAST( NULL AS SIGNED ), col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6260
SELECT + CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT + 78 * + + col2 FROM tab0 AS cor0
----
3666
7722
780

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL + + ( - COUNT( * ) ) / + CAST( NULL AS SIGNED ) * - COUNT( * ) * - - 96 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + + ( - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - - 96 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + - 15 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT + MIN ( + col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL col2 * - col1 * + - 62 FROM tab1
----
18290
198152
83328

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6267
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col0, + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6267
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col0, + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT DISTINCT - ( + COUNT( * ) ) + 65 AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - ( + COUNT ( * ) ) + 65 AS col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT - col2 - - 96 + - - col2 AS col1 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL - col0 + + 22 AS col1 FROM tab1
----
-29
-63
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6272
SELECT + MIN( DISTINCT + 32 ) DIV COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6272
SELECT + MIN ( DISTINCT + 32 ) / COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
10
NULL

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

query I rowsort
SELECT + + 49 AS col1 FROM tab0 AS cor0 WHERE 51 IS NULL
----

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

query I rowsort
SELECT - 11 - col0 FROM tab1 AS cor0
----
-102
-62
-96

query I rowsort
SELECT ALL - col0 * - 86 - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 59 * + 34 * + ( + 63 ) * - + col2 FROM tab0
----
-12511422
-1263780
-5939766

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL ( + - 87 ) FROM tab2
----
-87
-87
-87

query II rowsort
SELECT ALL + + col0 AS col0, col2 + - - 91 FROM tab0 WHERE NOT col1 IS NULL
----
15
138
87
101
97
190

query III rowsort
SELECT ALL * FROM tab0 WHERE + 11 < - col1 * - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 43 * 66 AS col1 FROM tab1 AS cor0
----
2838
2838
2838

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL <> 96 * + - col2 + col0
----

query I rowsort
SELECT 88 * col0 * - col2 FROM tab2
----
-225280
-382800
-93104

query II rowsort
SELECT ALL 67, + col2 FROM tab2
----
67
23
67
40
67
58

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

skipif mysql # not compatible
query I rowsort label-6289
SELECT - ( - + MAX ( - 63 ) ) FROM tab0 AS cor0
----
-63

query I rowsort
SELECT DISTINCT + + ( + 42 ) * 76 FROM tab0 AS cor0
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT DISTINCT MIN( DISTINCT ( - 82 ) ) col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6291
SELECT DISTINCT MIN ( DISTINCT ( - 82 ) ) col2 FROM tab1 AS cor0
----
-82

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 27 * - col1 + + col1 + - col1 * - 31 * - - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL COUNT( * ) * + 94 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL COUNT ( * ) * + 94 FROM tab0
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT - 93 DIV - col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT - 93 / - col2 AS col1 FROM tab2
----
1
2
4

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

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

query I rowsort
SELECT + - 36 + 40 AS col1 FROM tab2 AS cor0
----
4
4
4

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

query I rowsort
SELECT DISTINCT + col1 + + col2 * + col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1021
103904
970300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 col1 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE 69 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 - - 3 FROM tab2
----
-20
-37
-55

query III rowsort
SELECT * FROM tab0 WHERE ( - - 58 - 99 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6304
SELECT ALL 1 DIV + col1 col2, + col0 AS col2 FROM tab0
----
0
15
0
87
1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6304
SELECT ALL 1 / + col1 col2, + col0 AS col2 FROM tab0
----
0
15
0
87
1
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6305
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col0 / + col1 + 15 + + - 91 * CAST( - 74 AS SIGNED ) * ( + 84 ) * + col1 AND NOT col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6305
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col0 / + col1 + 15 + + - 91 * CAST ( - 74 AS INTEGER ) * ( + 84 ) * + col1 AND NOT col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6306
SELECT * FROM tab2 AS cor0 WHERE col0 * - + col0 * + col2 + 23 + CAST( NULL AS SIGNED ) / + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6306
SELECT * FROM tab2 AS cor0 WHERE col0 * - + col0 * + col2 + 23 + CAST ( NULL AS INTEGER ) / + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 + - + ( col0 ) AS col0, + col2 col2 FROM tab2 AS cor0
----
-16
23
-34
40
-45
58

query I rowsort
SELECT + + 41 FROM tab2 AS cor0 WHERE - col0 NOT IN ( + - col0, col2, + + 64 )
----

query I rowsort
SELECT - ( col0 ) + - 52 FROM tab0 AS cor0
----
-139
-149
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT + - SUM( + + ( + 55 ) ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + - SUM ( + + ( + 55 ) ) FROM tab0 AS cor0
----
-165

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col2 + col2 ) > + col0 * + ( + 77 ) - - col2 * + - col1
----

query II rowsort
SELECT 43, - col0 AS col1 FROM tab1
----
43
-51
43
-85
43
-91

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - 51 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 40 ) col0 FROM tab1 cor0
----
-40
-40
-40

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col1 * + - 78 AS col2 FROM tab2 AS cor0
----
-3978
-5226
-6006

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6319
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT 40 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 WHERE NOT 40 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6320
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( CAST( NULL AS SIGNED ) / - 92 + 13 / + col0 )
----

skipif mysql # not compatible
query III rowsort label-6320
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( CAST ( NULL AS INTEGER ) / - 92 + 13 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT + MAX( ALL 96 ) * - 36 AS col1 FROM tab2
----
-3456

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + MAX ( ALL 96 ) * - 36 AS col1 FROM tab2
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT SUM( ( - col1 ) ) - + ( 67 ) AS col2 FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-6322
SELECT SUM ( ( - col1 ) ) - + ( 67 ) AS col2 FROM tab1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT COUNT( * ) + + MIN( 92 ) AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT COUNT ( * ) + + MIN ( 92 ) AS col1 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + COUNT( * ) * - 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-6324
SELECT + COUNT ( * ) * - 15 FROM tab1
----
-45

query I rowsort
SELECT ALL + col1 * col0 - col0 AS col1 FROM tab2
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT COUNT( * ) * - 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT COUNT ( * ) * - 51 FROM tab1
----
-153

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab2 WHERE ( 23 + + 34 ) NOT IN ( - col1 * col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + 85 + COUNT( * ) col0 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6329
SELECT + 85 + COUNT ( * ) col0 FROM tab2
----
88

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col2 NOT BETWEEN ( - col0 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 8 * col0 - col1 <= - 81 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 76 FROM tab0 WHERE + col2 >= ( + col2 )
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 64 * - col0 AS col2 FROM tab2
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT - 26 + MAX( ALL ( 19 ) + 50 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6335
SELECT - 26 + MAX ( ALL ( 19 ) + 50 ) FROM tab2
----
43

query I rowsort
SELECT col0 * col2 + - 43 FROM tab0
----
662
827
9560

query I rowsort
SELECT ALL 70 * col0 FROM tab2
----
3220
4480
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT SUM( + 95 ) AS col1 FROM tab0 WHERE - 11 * + col0 IS NOT NULL
----
285

skipif mysql # not compatible
query I rowsort label-6338
SELECT SUM ( + 95 ) AS col1 FROM tab0 WHERE - 11 * + col0 IS NOT NULL
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT DISTINCT 94 DIV + col2 + + col0 * 95 FROM tab0
----
1427
8274
9215

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT 94 / + col2 + + col0 * 95 FROM tab0
----
1427
8274
9215

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

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

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

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

query I rowsort
SELECT 72 - ( col1 ) AS col0 FROM tab0
----
-9
51
71

query III rowsort
SELECT * FROM tab0 WHERE - 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * CAST ( NULL AS INTEGER ) AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 50 <> col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT SUM( + col2 ) + + 14 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6348
SELECT SUM ( + col2 ) + + 14 FROM tab2 AS cor0
----
135

query I rowsort
SELECT ALL 27 + - col0 * 40 AS col0 FROM tab2 AS cor0
----
-1813
-2533
-2973

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN ( 73 ) AND ( NULL )
----
46
51
23
75
67
58

query I rowsort
SELECT DISTINCT 16 * + col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
1392
1552
240

query I rowsort
SELECT DISTINCT + ( 45 ) - 32 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 77 * - 96 NOT IN ( + 95 )
----

query I rowsort
SELECT + + 15 * col1 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT - SUM( ALL col1 ) FROM tab1 AS cor0 WHERE NOT + col0 >= - CAST( NULL AS SIGNED ) * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT - SUM ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT + col0 >= - CAST ( NULL AS INTEGER ) * - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT 88 * + SUM( - 49 * - col1 ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT 88 * + SUM ( - 49 * - col1 ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * 31 AS col1 FROM tab1 AS cor0
----
-1581
-2635
-2821

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT ALL 44 DIV + 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL 44 / + 61 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

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

skipif mysql # not compatible
query I rowsort label-6360
SELECT MAX ( DISTINCT + - ( col0 ) ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 - - col2 ) <> 42
----

query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab0 WHERE - col2 * - col2 IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6363
SELECT * FROM tab0 WHERE NOT - CAST( col0 AS SIGNED ) * col1 + + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6363
SELECT * FROM tab0 WHERE NOT - CAST ( col0 AS INTEGER ) * col1 + + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6364
SELECT ALL * FROM tab0 WHERE col0 + - 30 * - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6364
SELECT ALL * FROM tab0 WHERE col0 + - 30 * - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 62 * col2 FROM tab2 WHERE ( - 63 + - col1 ) IS NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT + col2 * + 98 IN ( col2 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6367
SELECT ALL + 66 AS col0 FROM tab1 WHERE ( - CAST( col2 AS SIGNED ) ) > col0 - col1
----

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + 66 AS col0 FROM tab1 WHERE ( - CAST ( col2 AS INTEGER ) ) > col0 - col1
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6370
SELECT - COUNT ( ALL 12 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + + 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - - MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6374
SELECT - - MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - - ( col1 ) + + col0 col0 FROM tab1 AS cor0
----
110
2300
247

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

query I rowsort
SELECT ALL + 22 + + col2 AS col2 FROM tab1 AS cor0
----
118
81
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT col0 * 94 + - col1 DIV col0 col0 FROM tab2 AS cor0 WHERE + col1 <= - col1 + + col1 * col2
----
4323
6015
7050

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6378
SELECT col0 * 94 + - col1 / col0 col0 FROM tab2 AS cor0 WHERE + col1 <= - col1 + + col1 * col2
----
4323
6015
7050

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + + + col2 * col0 > + 83 / - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= + + 30 * + 80
----

query I rowsort
SELECT + ( 48 ) + + col2 FROM tab2 AS cor0
----
106
71
88

query I rowsort
SELECT DISTINCT - 14 + - + col1 FROM tab2 AS cor0
----
-65
-81
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ( + 25 ) * COUNT( * ) + - 24 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6383
SELECT ( + 25 ) * COUNT ( * ) + - 24 FROM tab2
----
51

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

query II rowsort
SELECT DISTINCT - 82 + + col0 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-18
40
-36
23
-7
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT + - 92 * - col0 * + - col0 DIV - col0 FROM tab2 AS cor0
----
4232
5888
6900

skipif mysql # not compatible
query I rowsort label-6386
SELECT + - 92 * - col0 * + - col0 / - col0 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 65 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 65 ) < ( NULL )
----
0

query I rowsort
SELECT + 26 / + 23 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( - - col0 * 11 ) NOT BETWEEN + col1 * 31 AND ( + col1 ) )
----

query II rowsort
SELECT ALL + col2 + - - 35 AS col0, ( - 10 ) AS col0 FROM tab1 AS cor0
----
103
-10
131
-10
94
-10

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

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

query II rowsort
SELECT 27, 55 + + + ( - 61 ) AS col2 FROM tab0
----
27
-6
27
-6
27
-6

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

skipif mysql # not compatible
query I rowsort label-6393
SELECT + COUNT ( * ) * - + ( + - 4 ) FROM tab1 AS cor0
----
12

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

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

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

query II rowsort
SELECT ALL 55 * + 96 + - 42 AS col0, col2 * 34 FROM tab2 AS cor0
----
5238
1360
5238
1972
5238
782

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 > - 13 + - - 48
----
15
81
47

query I rowsort
SELECT + - col1 * - 22 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT ALL col2 * + - 10 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6400
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

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

query I rowsort
SELECT DISTINCT - 70 * - - 34 FROM tab1 AS cor0
----
-2380

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT + ( + + ( - - col0 ) ) FROM tab0
----
15
87
97

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

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

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

query II rowsort
SELECT ALL - 79 AS col1, + 68 FROM tab0 cor0
----
-79
68
-79
68
-79
68

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

query I rowsort
SELECT DISTINCT 71 + - col0 * - - col1 AS col0 FROM tab1 AS cor0
----
-354
-4206
-643

query I rowsort
SELECT DISTINCT + + col2 + 38 AS col1 FROM tab1 AS cor0 WHERE col1 + - + 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT DISTINCT - + col0 DIV + 82 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT - + col0 / + 82 AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - + 33 + - - col1 FROM tab0 AS cor0
----
-12
-32
48

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

query I rowsort
SELECT ALL - col1 + - + 50 - + col0 + + + 85 * 82 AS col0 FROM tab0 AS cor0
----
6812
6822
6824

query I rowsort
SELECT ALL - 24 FROM tab1 WHERE - ( + + ( + col1 ) ) BETWEEN - col0 * - col2 / + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - 29 + 38 + + ( - col0 ) FROM tab2 cor0
----
-37
-55
-66

query I rowsort
SELECT + - 65 + col0 AS col1 FROM tab1 AS cor0
----
-14
20
26

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

query I rowsort
SELECT DISTINCT + col0 - col1 * - 88 FROM tab0 AS cor0
----
185
1935
7143

query I rowsort
SELECT DISTINCT 46 * + - col2 - col0 FROM tab2
----
-1104
-1904
-2743

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 * - ( 9 ) col2 FROM tab2
----
-161
-296
-447

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

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

query I rowsort
SELECT DISTINCT - + col2 + + 27 AS col2 FROM tab0 AS cor0
----
-20
-72
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 col1, 38 * col2 AS col0 FROM tab1 AS cor0
----
-9
2242
-9
2584
-9
3648

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

query I rowsort
SELECT ALL + ( - + col0 ) * - col0 - col0 - 51 * + col1 + - col1 FROM tab2 AS cor0
----
-582
2066
28

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

skipif mysql # not compatible
query II rowsort label-6430
SELECT - + 91, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-91
3

query I rowsort
SELECT 68 FROM tab1 AS cor0 WHERE NOT ( - ( col1 ) + + col1 ) IS NULL
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6432
SELECT - 57 / 52 * + 6 + - ( + CAST( NULL AS DECIMAL ) ) + + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT - 57 / 52 * + 6 + - ( + CAST ( NULL AS REAL ) ) + + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, + col0 + - - col1 * col0 FROM tab0 AS cor0
----
1
194
21
1914
81
1230

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 * - 8 + + - col2 IS NULL
----

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

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

query I rowsort
SELECT - col2 * + 25 AS col0 FROM tab1 AS cor0
----
-1475
-1700
-2400

query II rowsort
SELECT ALL - col0 * - col0, 84 AS col1 FROM tab1 AS cor0
----
2601
84
7225
84
8281
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + + COUNT( + - col0 ) * - - 43 AS col1 FROM tab0 cor0
----
129

skipif mysql # not compatible
query I rowsort label-6439
SELECT + + COUNT ( + - col0 ) * - - 43 AS col1 FROM tab0 cor0
----
129

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

query I rowsort
SELECT col2 * + col0 * - + ( - + 3 ) FROM tab1 AS cor0
----
14688
15045
18564

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT ( - - MIN( ALL + - 30 ) ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT ( - - MIN ( ALL + - 30 ) ) AS col0 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( col2 ) / - - col2 NOT IN ( + 14 * - 21 + - col1 )
----

query I rowsort
SELECT col0 * + 5 FROM tab2
----
230
320
375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6445
SELECT DISTINCT + col1, + col0 AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) * + col2 + + + col2 <> NULL
----

skipif mysql # not compatible
query II rowsort label-6445
SELECT DISTINCT + col1, + col0 AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * + col2 + + + col2 <> NULL
----

query II rowsort
SELECT + col1, + 45 FROM tab2
----
51
45
67
45
77
45

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = ( - 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL CAST( + 39 AS SIGNED ) * - + MAX( col1 ) AS col0 FROM tab1
----
-1833

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL CAST ( + 39 AS INTEGER ) * - + MAX ( col1 ) AS col0 FROM tab1
----
-1833

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - MAX ( + ( 54 ) ) FROM tab1 AS cor0
----
-54

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

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

query I rowsort
SELECT - col0 + + col0 * col1 + - col0 FROM tab0 AS cor0
----
-97
1185
1653

query I rowsort
SELECT col0 + - ( + 56 ) + col1 + - col2 FROM tab2 AS cor0
----
18
28
45

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

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

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

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

query I rowsort
SELECT + col2 - + 56 - 7 FROM tab1 AS cor0
----
-4
33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + 97 + + COUNT( * ) * + 26 AS col0 FROM tab1 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + 97 + + COUNT ( * ) * + 26 AS col0 FROM tab1 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ( COUNT( * ) ) * - - 59 + + + MAX( - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6457
SELECT ( COUNT ( * ) ) * - - 59 + + + MAX ( - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT ALL + + col0 - + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 97 - + 0 FROM tab0
----
97
97
97

query III rowsort
SELECT 41 + 27 AS col2, col0, - + col2 AS col1 FROM tab0
----
9 values hashing to 8dd8681ec281f3bd7cf6ab8cf3f52b4e

query I rowsort
SELECT DISTINCT - 62 FROM tab2 WHERE NULL = col1
----

query III rowsort
SELECT * FROM tab0 WHERE - - 4 + + col2 * + 73 NOT BETWEEN 37 AND - - col1 * + 97
----
97
1
99

query I rowsort
SELECT + 77 * + col0 * - col0 FROM tab1
----
-200277
-556325
-637637

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

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

query I rowsort
SELECT 59 * - + 17 AS col1 FROM tab1 AS cor0
----
-1003
-1003
-1003

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT SUM( - col0 ) col0 FROM tab0
----
-199

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

query II rowsort
SELECT ALL - col1 AS col0, - col2 * - 86 FROM tab0 AS cor0
----
-1
8514
-21
860
-81
4042

query I rowsort
SELECT DISTINCT + col0 * 48 FROM tab0 AS cor0
----
4176
4656
720

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

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

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

query II rowsort
SELECT ALL - 89 * col0, + 77 AS col0 FROM tab0
----
-1335
77
-7743
77
-8633
77

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

skipif mysql # not compatible
query I rowsort label-6475
SELECT MAX ( ALL - 29 ) AS col2 FROM tab2
----
-29

query I rowsort
SELECT ALL - - col2 * - col0 + - col2 AS col0 FROM tab2 cor0 WHERE + 88 NOT IN ( col2 / - + col2 + - + col1 * col1, + col2 )
----
-1081
-2600
-4408

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

query I rowsort
SELECT ALL 18 + + col1 AS col0 FROM tab2 AS cor0
----
69
85
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT + 69 + CAST( + col1 AS SIGNED ) * + col0 FROM tab2
----
2415
4997
5094

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 69 + CAST ( + col1 AS INTEGER ) * + col0 FROM tab2
----
2415
4997
5094

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

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

query I rowsort
SELECT - col0 + + ( + col0 ) + 15 - + 28 FROM tab0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT ALL + 80 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL + 80 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
5

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

query I rowsort
SELECT DISTINCT col2 + - 68 AS col0 FROM tab1 AS cor0
----
-9
0
28

query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0 WHERE col0 - + - col2 * + col1 + + - col2 NOT BETWEEN NULL AND col2
----
-31
-31

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6486
SELECT + + COUNT ( * ) AS col1, 74 col2 FROM tab0 AS cor0
----
3
74

query I rowsort
SELECT DISTINCT - 37 - + col1 AS col2 FROM tab1 AS cor0
----
-42
-51
-84

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 * + col1 / + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + + MIN( DISTINCT + 7 ) * - + 59 + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( + + col0, col2 + + + col0 + + col0 + - - col1 + + - 91 * - + 90 * 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT + + MIN ( DISTINCT + 7 ) * - + 59 + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( + + col0, col2 + + + col0 + + col0 + - - col1 + + - 91 * - + 90 * 91 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT + MAX( CAST( - - col2 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
99

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

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

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

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

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

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

query I rowsort
SELECT + 40 * + col2 * - - col0 AS col1 FROM tab0 AS cor0
----
28200
34800
384120

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

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

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

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

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

query I rowsort
SELECT ( - col1 ) * + 80 + ( + + 82 ) AS col1 FROM tab2
----
-3998
-5278
-6078

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

query I rowsort
SELECT ALL + col1 - - col2 + + col2 AS col1 FROM tab0
----
175
199
41

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

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

query I rowsort
SELECT - col0 - - - 46 FROM tab1
----
-131
-137
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - 63, + col1 + - col1 col0 FROM tab1 AS cor0
----
-4
0
33
0
5
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 81 * - + col1 * col2 ) >= ( NULL )
----

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

query II rowsort
SELECT col1 + col0 + - + col2 * + col1 AS col0, col2 AS col0 FROM tab2 cor0
----
-1076
23
-2939
40
-3744
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6509
SELECT ALL - - col2 * col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-6509
SELECT ALL - - col2 * col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ( 94 ) + col0 FROM tab0 AS cor0
----
109
181
191

query I rowsort
SELECT ALL + 20 - + - 14 + col1 AS col2 FROM tab1 AS cor0
----
39
48
81

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

query I rowsort
SELECT DISTINCT 19 * - + col2 FROM tab0
----
-1881
-190
-893

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - + 92 * - + col2 + + 53
----

query I rowsort
SELECT ALL + 53 * col2 FROM tab2
----
1219
2120
3074

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT + 59 * - COUNT( * ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + 59 * - COUNT ( * ) AS col0 FROM tab1
----
-177

query II rowsort
SELECT + col0, col0 * + ( - - 61 ) AS col2 FROM tab2
----
46
2806
64
3904
75
4575

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - 51 + 36 IS NOT NULL
----

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

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

query I rowsort
SELECT + + 2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6523
SELECT * FROM tab1 WHERE NOT - + col2 + + CAST( + col2 AS DECIMAL ) * + - col1 * + - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6523
SELECT * FROM tab1 WHERE NOT - + col2 + + CAST ( + col2 AS REAL ) * + - col1 * + - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT col1 DIV col0 DIV - 12 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT col1 / col0 / - 12 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT - 47 + CAST( - 24 AS SIGNED ) + - ( - col1 ) + - - col1 FROM tab0 WHERE NOT - - 24 <> + 96
----

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - 47 + CAST ( - 24 AS INTEGER ) + - ( - col1 ) + - - col1 FROM tab0 WHERE NOT - - 24 <> + 96
----

query II rowsort
SELECT - col1 AS col2, 97 AS col0 FROM tab2
----
-51
97
-67
97
-77
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= - col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6529
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 + - + col2 col2 FROM tab1 AS cor0
----
-124
-133
-161

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 4 NOT BETWEEN + + ( + col1 ) + 12 AND + col0
----

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

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE col2 < - 43
----

query I rowsort
SELECT ALL - + 69 + + AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE - 1 IN ( + col2, col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6537
SELECT ALL + COUNT( - + col2 ) - + - COUNT( * ) AS col0, 91 + - 45 AS col1, COUNT( * ) FROM tab0 AS cor0
----
6
46
3

skipif mysql # not compatible
query III rowsort label-6537
SELECT ALL + COUNT ( - + col2 ) - + - COUNT ( * ) AS col0, 91 + - 45 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
6
46
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT ( + col0 ) + - + col0 + - ( - 61 ) DIV 38 * - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6538
SELECT ( + col0 ) + - + col0 + - ( - 61 ) / 38 * - - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col1 * - 65 * col1 * ( - col1 ) FROM tab0 WHERE - - 99 + - + 91 - - 97 IS NOT NULL
----
34543665
601965
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 5 * + 40 BETWEEN NULL AND col0 - + + 23
----
3

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 5 * + 40 BETWEEN NULL AND col0 - + + 23
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT DISTINCT col0 + 24 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * - 71 * + - col1 + + 24 + CAST( 78 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT col0 + 24 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * - 71 * + - col1 + + 24 + CAST ( 78 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6542
SELECT + - 6 DIV COUNT( * ) AS col0 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6542
SELECT + - 6 / COUNT ( * ) AS col0 FROM tab2 cor0
----
-2

query I rowsort
SELECT ALL + 52 * - + 71 FROM tab2 AS cor0
----
-3692
-3692
-3692

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT DISTINCT - COUNT( * ) * + + 78 * + COUNT( * ) * - 37 FROM tab0
----
25974

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - COUNT ( * ) * + + 78 * + COUNT ( * ) * - 37 FROM tab0
----
25974

query I rowsort
SELECT ( + + col1 ) * - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - COUNT( * ) * - - 69 * ( - ( - - 15 ) ) + ( COUNT( * ) ) FROM tab0 AS cor0
----
3108

skipif mysql # not compatible
query I rowsort label-6547
SELECT - COUNT ( * ) * - - 69 * ( - ( - - 15 ) ) + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - ( 38 ) col2 FROM tab1
----
-51
-38
-85
-38
-91
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + 67 + - COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + 67 + - COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE - CAST( - 97 AS SIGNED ) * - col0 + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE - CAST ( - 97 AS INTEGER ) * - col0 + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT + - 48 * SUM( - col0 ) FROM tab0 AS cor0
----
9552

skipif mysql # not compatible
query I rowsort label-6551
SELECT + - 48 * SUM ( - col0 ) FROM tab0 AS cor0
----
9552

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

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

query II rowsort
SELECT + 36, + 30 AS col0 FROM tab1 AS cor0
----
36
30
36
30
36
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6555
SELECT + 52 * + - col1, - col1 + - - col0 FROM tab1 AS cor0 WHERE + CAST( + col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-6555
SELECT + 52 * + - col1, - col1 + - - col0 FROM tab1 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN NULL AND - 46 / + 34
----

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

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

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

query II rowsort
SELECT 91 * + 25, - col0 AS col0 FROM tab0 AS cor0 WHERE - col0 >= NULL
----

query II rowsort
SELECT col1 AS col1, col0 + 45 AS col0 FROM tab2 cor0
----
51
91
67
120
77
109

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

query I rowsort
SELECT + 45 * + - 97 FROM tab2 AS cor0
----
-4365
-4365
-4365

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6565
SELECT DISTINCT ( - COUNT ( * ) ) col2 FROM tab0, tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 55 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT - 30 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + - 32 ) BETWEEN NULL AND - - 56
----

query I rowsort
SELECT 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + - 89 * + col2 AS col0 FROM tab1 cor0
----
-5251
-6052
-8544

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

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

query II rowsort
SELECT col1 AS col0, col1 + - 64 FROM tab1
----
14
-50
47
-17
5
-59

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

query I rowsort
SELECT ALL + col1 * + 67 + - 11 FROM tab1 AS cor0 WHERE ( + col2 IS NOT NULL )
----
3138
324
927

query I rowsort
SELECT ALL col2 * + col2 * + 23 AS col2 FROM tab2 AS cor0
----
12167
36800
77372

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT + - 71 * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
648

skipif mysql # not compatible
query I rowsort label-6577
SELECT + - 71 * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
648

query I rowsort
SELECT col0 + 77 * - + 30 AS col1 FROM tab0
----
-2213
-2223
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL COUNT( + 91 ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL COUNT ( + 91 ) + - COUNT ( * ) FROM tab0
----
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 BETWEEN NULL AND 91
----

query I rowsort
SELECT + - col2 * col2 AS col1 FROM tab0 AS cor0 WHERE - 90 * col2 IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT ALL + - 16 + col1 FROM tab1 cor0
----
-11
-2
31

query I rowsort
SELECT - 49 * - col2 AS col2 FROM tab2 AS cor0
----
1127
1960
2842

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6585
SELECT DISTINCT - col1 - + - CAST( + col0 AS DECIMAL ) FROM tab1 WHERE NOT - 50 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT - col1 - + - CAST ( + col0 AS REAL ) FROM tab1 WHERE NOT - 50 <= NULL
----

query I rowsort
SELECT + col1 * - col0 * - 6 FROM tab1
----
2550
25662
4284

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

skipif mysql # not compatible
query I rowsort label-6587
SELECT - SUM ( ALL + - ( - - col0 ) ) FROM tab1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6588
SELECT - SUM( ALL - - ( - - col2 ) ) * ( + + CAST( - COUNT( ALL col1 ) AS SIGNED ) ) AS col2 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-6588
SELECT - SUM ( ALL - - ( - - col2 ) ) * ( + + CAST ( - COUNT ( ALL col1 ) AS INTEGER ) ) AS col2 FROM tab2
----
363

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6589
SELECT + col2 / - - CAST ( NULL AS INTEGER ) * + - 11 col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 98 * ( + - col1 ) AS col1, 99 AS col2 FROM tab1
----
1372
99
4606
99
490
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT ALL - 16 DIV + 22 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - 16 / + 22 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + + 94 * - 24 AS col2 FROM tab2 AS cor0
----
-2279
-2296
-2314

query I rowsort
SELECT ALL col1 + 72 AS col0 FROM tab1 AS cor0
----
119
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - ( - col2 ) / - 56 / - 11 col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + 18 - - col0 AS col0 FROM tab2 AS cor0
----
64
82
93

query II rowsort
SELECT - col1 * + 66 AS col2, + col2 AS col1 FROM tab2
----
-3366
23
-4422
58
-5082
40

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

query II rowsort
SELECT ALL + col1, - col0 AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

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

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

query I rowsort
SELECT col2 / - 3 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col1 ) col2, + 9 * ( + + 57 ) * - + col0 FROM tab0 AS cor0
----
-1
-49761
-21
-44631
-81
-7695

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

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

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

query II rowsort
SELECT + 66, 40 AS col0 FROM tab2 AS cor0
----
66
40
66
40
66
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT ALL - CAST( - 18 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - CAST ( - 18 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
18
18
18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT 76 DIV - 15 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6609
SELECT 76 / - 15 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - ( COUNT( * ) ) FROM tab0 WHERE NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT - ( COUNT ( * ) ) FROM tab0 WHERE NOT col2 <= NULL
----
0

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

query II rowsort
SELECT 19 + + col0 AS col0, 89 FROM tab2 AS cor0
----
65
89
83
89
94
89

query I rowsort
SELECT ALL - + col2 + - + col2 - col1 * 51 AS col2 FROM tab2 AS cor0
----
-2647
-3533
-4007

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

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

query II rowsort
SELECT ALL - col0 + col1 + - - 56 / + 53 AS col2, 80 / + 56 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - 59 ) AS col2 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT 70 * + COUNT( * ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-6617
SELECT 70 * + COUNT ( * ) AS col0 FROM tab0
----
210

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

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

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

query II rowsort
SELECT + col0, + col1 - + - 69 * + 16 FROM tab0 AS cor0
----
15
1185
87
1125
97
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + COUNT( * ) * - + ( 92 ) * + 12 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3312

skipif mysql # not compatible
query I rowsort label-6621
SELECT + COUNT ( * ) * - + ( 92 ) * + 12 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT COUNT( * ) + + 93 AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT COUNT ( * ) + + 93 AS col2 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + - col1 col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 10 * 94 < - col0 + - col1 / - 48 + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT 24 + + 12 AS col1, + COUNT( * ) FROM tab0
----
36
3

skipif mysql # not compatible
query II rowsort label-6625
SELECT 24 + + 12 AS col1, + COUNT ( * ) FROM tab0
----
36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE + + 67 <> - 48
----
-3

skipif mysql # not compatible
query I rowsort label-6626
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE + + 67 <> - 48
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0
----
-6

query I rowsort
SELECT ALL - 88 * + col0 FROM tab0
----
-1320
-7656
-8536

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT COUNT( * ) col2, 75 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6631
SELECT COUNT ( * ) col2, 75 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
75

query I rowsort
SELECT 29 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - - col1 ) + + + col0 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT 4 DIV - col0 * - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6635
SELECT 4 / - col0 * - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 94 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 * - - ( - 45 ) FROM tab1
----
-2295
-3825
-4095

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT ALL 31 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL 31 / + col2 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT SUM( + - 97 ) AS col0 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-6639
SELECT SUM ( + - 97 ) AS col0 FROM tab2
----
-291

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

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

query I rowsort
SELECT DISTINCT - + 99 + - col0 AS col2 FROM tab0 AS cor0
----
-114
-186
-196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL - MIN( ALL - - 74 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - MIN ( ALL - - 74 ) FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - 37 - + + COUNT( * ) AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-6644
SELECT - 37 - + + COUNT ( * ) AS col1 FROM tab0
----
-40

query I rowsort
SELECT ALL - + col0 * - + col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + 70 - + - col2 + - col2 FROM tab2 AS cor0 WHERE NOT col0 > + col0 + - - 67 * col1 * + 3
----
70
70
70

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

query I rowsort
SELECT - + 49 * 16 AS col0 FROM tab0 AS cor0
----
-784
-784
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - SUM( DISTINCT + 63 ) col1 FROM tab0 cor0
----
-63

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

query I rowsort
SELECT DISTINCT + col0 * 17 + + 85 FROM tab2 AS cor0
----
1173
1360
867

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL 25 DIV + col0 * + ( + ( - col0 ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 25 / + col0 * + ( + ( - col0 ) ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - 58 * + 78, + col1 FROM tab2 AS cor0
----
-4524
51
-4524
67
-4524
77

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

query I rowsort
SELECT - ( 16 ) AS col2 FROM tab1 cor0
----
-16
-16
-16

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

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

query I rowsort
SELECT ALL + - col2 * + - 95 FROM tab0 AS cor0
----
4465
9405
950

query I rowsort
SELECT DISTINCT - 21 * - 85 FROM tab0
----
1785

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

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - MIN ( - - 16 ) AS col2 FROM tab2
----
-16

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6659
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT + - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6660
SELECT DISTINCT 80 DIV - MIN( ALL col1 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT 80 / - MIN ( ALL col1 ) FROM tab1
----
-16

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab0 WHERE ( + + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + + col0 + + 63 AS col1 FROM tab2
----
160
204
205

query I rowsort
SELECT col2 + 90 AS col2 FROM tab2
----
113
130
148

query I rowsort
SELECT - 82 + + - col0 AS col2 FROM tab0
----
-169
-179
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL + COUNT( * ) + - MAX( DISTINCT + + 40 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT + + 40 ) FROM tab0 AS cor0
----
-37

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

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

query II rowsort
SELECT ALL col1 AS col2, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 6 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT DISTINCT + 40 DIV + col1 - - + 42 AS col2 FROM tab0
----
42
43
82

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + 40 / + col1 - - + 42 AS col2 FROM tab0
----
42
43
82

query I rowsort
SELECT DISTINCT + + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - MIN( ALL - - 70 ) + + + SUM( ALL col2 ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6672
SELECT - MIN ( ALL - - 70 ) + + + SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT - col1 + 58 DIV - 11 FROM tab1 AS cor0
----
-10
-19
-52

skipif mysql # not compatible
query I rowsort label-6673
SELECT - col1 + 58 / - 11 FROM tab1 AS cor0
----
-10
-19
-52

query I rowsort
SELECT col0 + + + col2 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT - 45 + - SUM( DISTINCT + 83 ) AS col1 FROM tab1 cor0
----
-128

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - 45 + - SUM ( DISTINCT + 83 ) AS col1 FROM tab1 cor0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) - - CAST( NULL AS SIGNED ) * + - SUM( + + col1 ) + - AVG ( DISTINCT + 57 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + - SUM ( + + col1 ) + - AVG ( DISTINCT + 57 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT 31 + + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE 72 * + 66 NOT IN ( - - 96, col2 + - ( 5 ), + col0 + - - ( - 26 ), - 96 * + + ( col0 ) / col0, - + col1 )
----
15
87
97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6681
SELECT DISTINCT - 30 * + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-270
NULL

skipif mysql # not compatible
query II rowsort label-6681
SELECT DISTINCT - 30 * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-270
NULL

query II rowsort
SELECT - - col2 AS col1, - col1 * - + col1 FROM tab0 WHERE NOT NULL < col2 * + - col0 * + + col1
----

query II rowsort
SELECT DISTINCT col0, col1 + + col2 AS col1 FROM tab2
----
46
74
64
117
75
125

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

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-9

query I rowsort
SELECT col2 * - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT + - 30 + + col1 AS col2 FROM tab2 AS cor0
----
21
37
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6687
SELECT DISTINCT + 90 + + - COUNT( * ) + 98 col1, 44 AS col0 FROM tab1 cor0
----
185
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6687
SELECT DISTINCT + 90 + + - COUNT ( * ) + 98 col1, 44 AS col0 FROM tab1 cor0
----
185
44

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

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

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

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

query I rowsort
SELECT - 85 * 3 FROM tab1 WHERE NOT + - col1 / + col2 + col0 * 38 IS NULL
----
-255
-255
-255

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

query I rowsort
SELECT + col2 * + 57 AS col2 FROM tab1
----
3363
3876
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT - col2 DIV 63 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT - col2 / 63 AS col1 FROM tab0
----
-1
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + 57 * COUNT( * ) AS col1 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-6697
SELECT + 57 * COUNT ( * ) AS col1 FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT DISTINCT + SUM( + 72 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
216

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT + SUM ( + 72 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT - - col2 DIV + + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6699
SELECT - - col2 / + + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

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

query I rowsort
SELECT ALL col1 + col0 * - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

query II rowsort
SELECT DISTINCT col2 AS col0, col2 + + 65 FROM tab2
----
23
88
40
105
58
123

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

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

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

query I rowsort
SELECT - col1 * + 84 + + + 13 * + + col1 + col2 AS col1 FROM tab0 AS cor0
----
-1481
-5704
28

query I rowsort
SELECT ALL col2 * + - 16 AS col2 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - + SUM( + col2 ) * 34 FROM tab0 AS cor0
----
-5304

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - + SUM ( + col2 ) * 34 FROM tab0 AS cor0
----
-5304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - 21 - + 41 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + 86 * - 66 + + + col1 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 > + - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( + ( - ( - + 34 ) ) ) + + col1 col1 FROM tab0 cor0
----
130
132
142

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

query I rowsort
SELECT - col2 * 54 + 61 AS col0 FROM tab2 AS cor0
----
-1181
-2099
-3071

query II rowsort
SELECT - 0 + + col2 - + col1, - 43 - col2 - - col1 AS col2 FROM tab2
----
-28
-15
-37
-6
-9
-34

query I rowsort
SELECT DISTINCT 2 * + 93 * - col0 * + col1 * - - col1 FROM tab1
----
-1859256
-37389534
-395250

query I rowsort
SELECT DISTINCT 87 + col1 FROM tab1
----
101
134
92

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 > ( NULL )
----

query I rowsort
SELECT - 5 FROM tab2 WHERE ( + col0 * - col1 ) IN ( 87 + col0 * col1 )
----

query I rowsort
SELECT ALL col1 * 50 FROM tab0
----
1050
4050
50

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT BETWEEN + col2 AND NULL
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT 19 DIV 94 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6722
SELECT 19 / 94 AS col2 FROM tab0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT COUNT( * ) + 49 AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-6724
SELECT COUNT ( * ) + 49 AS col1 FROM tab2
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT - col2 + col2 AS col0 FROM tab2 WHERE NOT 65 - - CAST( + col0 + col2 * - 73 AS SIGNED ) IN ( col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT - col2 + col2 AS col0 FROM tab2 WHERE NOT 65 - - CAST ( + col0 + col2 * - 73 AS INTEGER ) IN ( col2 )
----
0
0
0

query I rowsort
SELECT + 65 FROM tab0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6729
SELECT DISTINCT * FROM tab0 WHERE ( ( + 71 ) ) > + CAST( ( col1 ) AS SIGNED ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6729
SELECT DISTINCT * FROM tab0 WHERE ( ( + 71 ) ) > + CAST ( ( col1 ) AS INTEGER ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col0 + 74 * - 35 AS col0 FROM tab2
----
-4706
-6686
-8215

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + SUM( ALL 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + SUM ( ALL 40 ) FROM tab2
----
120

query I rowsort
SELECT 30 + 54 FROM tab0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT COUNT( DISTINCT ( + 6 ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6733
SELECT COUNT ( DISTINCT ( + 6 ) ) AS col1 FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT DISTINCT - SUM( ALL col2 ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - SUM ( ALL col2 ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT 71 FROM tab2 WHERE + col2 IN ( + col2 * col0 + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - COUNT( * ) FROM tab1 WHERE NULL BETWEEN ( + col0 - 47 ) AND ( ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN ( + col0 - 47 ) AND ( ( col2 ) )
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6742
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS DECIMAL ) ) >= - ( 56 ) + col2
----

skipif mysql # not compatible
query III rowsort label-6742
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS REAL ) ) >= - ( 56 ) + col2
----

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

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

skipif mysql # not compatible
query I rowsort label-6744
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 43 * - 93 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 43 * - 93 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * 49
----

query I rowsort
SELECT DISTINCT - 96 * col0 FROM tab0 WHERE NOT - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * - 67 col1 FROM tab2
----
-737
-737
-737

query I rowsort
SELECT DISTINCT + col2 + + 19 AS col0 FROM tab1
----
115
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 81 BETWEEN - 1 - col0 AND ( col1 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 81 BETWEEN - 1 - col0 AND ( col1 * + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL - COUNT( * ) * + 3 + - 92 AS col0 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL - COUNT ( * ) * + 3 + - 92 AS col0 FROM tab0 AS cor0
----
-101

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

query I rowsort
SELECT col2 + - 28 FROM tab1 AS cor0
----
31
40
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT - COUNT( * ) + - MIN( DISTINCT - 62 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT - COUNT ( * ) + - MIN ( DISTINCT - 62 ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( ( - 53 ) ) AND NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( - ( col1 ) ) IN ( + col2 )
----

query I rowsort
SELECT 69 FROM tab1 WHERE col0 * 96 > ( col2 )
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT + MAX( DISTINCT - col2 ) * COUNT( * ) col1 FROM tab2
----
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6761
SELECT COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( + col2 )
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 62 NOT IN ( 84 / + col0 + + 79 )
----

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

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

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 90 FROM tab0
----
4230
8910
900

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT + + 61 DIV + - col0 + + 73 AS col0 FROM tab1 AS cor0
----
72
73
73

skipif mysql # not compatible
query I rowsort label-6767
SELECT + + 61 / + - col0 + + 73 AS col0 FROM tab1 AS cor0
----
72
73
73

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

query I rowsort
SELECT + + 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

skipif mysql # not compatible
query I rowsort label-6770
SELECT - - ( COUNT ( * ) ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

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

query I rowsort
SELECT - - ( 19 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab2 WHERE - 42 + col2 NOT BETWEEN col2 + - 54 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE - 42 + col2 NOT BETWEEN col2 + - 54 AND col0
----
0

query I rowsort
SELECT + 9 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT IN ( - col1 / col1 + - col2 / + col0 )
----

query II rowsort
SELECT ALL - col1 AS col0, + 68 FROM tab0
----
-1
68
-21
68
-81
68

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

query I rowsort
SELECT + col0 * 42 AS col0 FROM tab1 AS cor0
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col0
----
0

query I rowsort
SELECT col2 * + col2 * - 75 AS col2 FROM tab2 AS cor0
----
-120000
-252300
-39675

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL + 8 * COUNT( * ) * - + 34 + + COUNT( * ) FROM tab1 AS cor0
----
-813

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + 8 * COUNT ( * ) * - + 34 + + COUNT ( * ) FROM tab1 AS cor0
----
-813

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

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE NOT ( col0 ) <= + col1 + 44
----

query I rowsort
SELECT ALL col1 * col2 * - ( + col0 ) * 38 AS col1 FROM tab1 AS cor0
----
-11051768
-2604672
-952850

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

query I rowsort
SELECT col2 * col2 + 53 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= - 80 / 78 * col1 + col2
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6792
SELECT DISTINCT - 89 DIV - 29 AS col0, - 94 FROM tab2
----
3
-94

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT - 89 / - 29 AS col0, - 94 FROM tab2
----
3
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) <= + col0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6795
SELECT + MIN( CAST( 92 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT - col1 * col1 / + col1 IN ( 34 )
----
92

skipif mysql # not compatible
query I rowsort label-6795
SELECT + MIN ( CAST ( 92 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT - col1 * col1 / + col1 IN ( 34 )
----
92

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

query I rowsort
SELECT DISTINCT - col0 * - ( - - col1 ) + ( + 71 ) FROM tab2 AS cor0
----
2417
4999
5096

query I rowsort
SELECT + col2 * 24 + + col2 FROM tab0 AS cor0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL ( + COUNT( * ) ) * - - SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL ( + COUNT ( * ) ) * - - SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL - COUNT( * ) + + 26 + - + COUNT( DISTINCT - 96 ) * - 7 * 87 AS col2 FROM tab1 AS cor0
----
632

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - COUNT ( * ) + + 26 + - + COUNT ( DISTINCT - 96 ) * - 7 * 87 AS col2 FROM tab1 AS cor0
----
632

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( - - 9 ) <= - col1
----
3

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( - - 9 ) <= - col1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 44 + - - 80 ) NOT IN ( - 41 )
----

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

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + 64 + - 97 + + - COUNT ( * ) * + ( - + 15 ) AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT + + COUNT( * ) + + SUM( - + col0 ) FROM tab1 cor0
----
-224

skipif mysql # not compatible
query I rowsort label-6804
SELECT + + COUNT ( * ) + + SUM ( - + col0 ) FROM tab1 cor0
----
-224

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 24 / col2 / col1 BETWEEN - - 57 AND - 10 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT - col2 + + - col2 DIV 39 + ( + 89 ) + + col1 DIV 11 AS col1 FROM tab1 AS cor0
----
-8
24
29

skipif mysql # not compatible
query I rowsort label-6807
SELECT - col2 + + - col2 / 39 + ( + 89 ) + + col1 / 11 AS col1 FROM tab1 AS cor0
----
-8
24
29

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

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

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

query II rowsort
SELECT DISTINCT col1, 48 * + + col2 FROM tab1
----
14
4608
47
3264
5
2832

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT 3 DIV 31 + + 84 FROM tab1
----
84
84
84

skipif mysql # not compatible
query I rowsort label-6811
SELECT 3 / 31 + + 84 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL + col2 + + + col0 * + + 56 + - col1 * col1 FROM tab0
----
-5674
4441
5530

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6813
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) / ( CAST( NULL AS SIGNED ) ) + - 21 + col1 NOT IN ( col0 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-6813
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) / ( CAST ( NULL AS INTEGER ) ) + - 21 + col1 NOT IN ( col0 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT 94 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6814
SELECT 94 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT + + 44 + + 43 FROM tab0 AS cor0
----
87

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 BETWEEN + + 92 AND 31
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 / 51 IS NOT NULL
----

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

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

query I rowsort
SELECT - 26 * - 26 * 4 * col1 FROM tab1 AS cor0
----
127088
13520
37856

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL <= col2 * - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT + COUNT( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 WHERE ( ( - 15 ) NOT BETWEEN NULL AND - 45 )
----
3

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT + COUNT ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 WHERE ( ( - 15 ) NOT BETWEEN NULL AND - 45 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6825
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - CAST( + col0 AS SIGNED ) - 23 / - col2 + col0 * col0 <= NULL )
----

skipif mysql # not compatible
query III rowsort label-6825
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - CAST ( + col0 AS INTEGER ) - 23 / - col2 + col0 * col0 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT col2 + + + col1 DIV col1 * - col1 * col0 FROM tab1 AS cor0 WHERE NOT col1 < - col2
----
-366
-4209
-618

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT col2 + + + col1 / col1 * - col1 * col0 FROM tab1 AS cor0 WHERE NOT col1 < - col2
----
-366
-4209
-618

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

query I rowsort
SELECT 81 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
81
81
81

query I rowsort
SELECT DISTINCT col0 * 45 * + 80 FROM tab0 cor0
----
313200
349200
54000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE ( - col1 * - col1 + - 23 + CAST( NULL AS SIGNED ) * - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE ( - col1 * - col1 + - 23 + CAST ( NULL AS INTEGER ) * - col1 ) IS NULL
----
3

query II rowsort
SELECT ALL + col1, col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6832
SELECT - - col1 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6832
SELECT - - col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT - ( - + col1 ) + - col2 / + 75 FROM tab2 AS cor0 WHERE NOT + col1 * + + col2 + 91 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 99 + + 97 > + 97
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT MAX( DISTINCT - + 76 ) + + COUNT( * ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-6835
SELECT MAX ( DISTINCT - + 76 ) + + COUNT ( * ) FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6836
SELECT ALL + + MAX( ALL + - 63 ) * - 25 AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1575
9

skipif mysql # not compatible
query II rowsort label-6836
SELECT ALL + + MAX ( ALL + - 63 ) * - 25 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1575
9

query I rowsort
SELECT + 80 * + col0 + + ( - ( + + 20 ) ) FROM tab0
----
1180
6940
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT COUNT( * ) + - - 85 AS col0 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6838
SELECT COUNT ( * ) + - - 85 AS col0 FROM tab0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT CAST( 98 AS SIGNED ) * + + col0 + 94 + + 4 FROM tab1 AS cor0
----
5096
8428
9016

skipif mysql # not compatible
query I rowsort label-6839
SELECT CAST ( 98 AS INTEGER ) * + + col0 + 94 + + 4 FROM tab1 AS cor0
----
5096
8428
9016

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NULL IN ( col0, + col0 * col1 )
----

query II rowsort
SELECT - 38 AS col2, + 9 AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col2 FROM tab2 WHERE NULL IS NULL
----
117
125
74

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

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

query I rowsort
SELECT 39 FROM tab2 WHERE ( - 40 ) IS NULL
----

query I rowsort
SELECT + col1 + + ( - + 60 ) * + col0 AS col0 FROM tab1 cor0
----
-3046
-5095
-5413

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

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

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

query I rowsort
SELECT ALL - ( + 94 ) * - + 25 + - - 62 FROM tab2 AS cor0
----
2412
2412
2412

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

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

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

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

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

query I rowsort
SELECT + col0 * - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - 10 * + 53 FROM tab0
----
-530
-530
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT - ( + MAX( + col0 ) ) FROM tab1 WHERE NOT + 2 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-6856
SELECT - ( + MAX ( + col0 ) ) FROM tab1 WHERE NOT + 2 IS NULL
----
-91

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NOT NULL <= NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= + 7
----

query I rowsort
SELECT DISTINCT + 46 * col0 + - + col2 AS col1 FROM tab0 AS cor0
----
3992
4363
643

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT + 99 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
891

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + 99 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
891

query I rowsort
SELECT DISTINCT + 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 90 * 1 * + col0 col2, - col0 FROM tab2
----
-4140
-46
-5760
-64
-6750
-75

query I rowsort
SELECT - col2 - 50 * - 97 * + + col0 AS col0 FROM tab2
----
223077
310360
363692

query I rowsort
SELECT ALL - - col0 + - 86 * col1 FROM tab1 cor0
----
-1153
-345
-3951

query I rowsort
SELECT col1 - + + 75 + + 20 FROM tab0 AS cor0
----
-34
-54
26

query II rowsort
SELECT - col2, + 16 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - 26 * + + col0 FROM tab0 AS cor0
----
196794
244634
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT DISTINCT + - SUM( DISTINCT + 13 ) + MIN( ALL + 53 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT + - SUM ( DISTINCT + 13 ) + MIN ( ALL + 53 ) FROM tab2 AS cor0
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6871
SELECT ALL - 79, ( - - col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE col0 + - col0 NOT BETWEEN 63 AND + col0
----
-79
NULL
-79
NULL
-79
NULL

skipif mysql # not compatible
query II rowsort label-6871
SELECT ALL - 79, ( - - col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE col0 + - col0 NOT BETWEEN 63 AND + col0
----
-79
NULL
-79
NULL
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT - COUNT( * ) - + 62 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - COUNT ( * ) - + 62 FROM tab0
----
-65

query I rowsort
SELECT + 55 + - + col0 FROM tab0
----
-32
-42
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL <> - col1 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL <> - col1 * col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT - 87 * + SUM( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT - 87 * + SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT 2 + COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT 2 + COUNT ( * ) FROM tab2
----
5

query II rowsort
SELECT 74 * - + col0, 91 AS col1 FROM tab1 AS cor0
----
-3774
91
-6290
91
-6734
91

query I rowsort
SELECT col0 + + col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
196
62
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6880
SELECT ALL * FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6880
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6882
SELECT - col2 AS col0, 42 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-6882
SELECT - col2 AS col0, 42 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 NOT BETWEEN 91 AND ( - 70 )
----

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

query I rowsort
SELECT ALL ( - col1 ) * 62 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - 25 * - 5 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6887
SELECT * FROM tab0 WHERE NOT + ( 36 ) <= - CAST( - col1 AS SIGNED ) + + 6
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-6887
SELECT * FROM tab0 WHERE NOT + ( 36 ) <= - CAST ( - col1 AS INTEGER ) + + 6
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL SUM( DISTINCT + 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL SUM ( DISTINCT + 84 ) FROM tab2
----
84

query I rowsort
SELECT - col2 * - + 17 AS col2 FROM tab0
----
1683
170
799

query II rowsort
SELECT ALL 82, 26 AS col0 FROM tab1
----
82
26
82
26
82
26

query II rowsort
SELECT DISTINCT col0, - 91 FROM tab0
----
15
-91
87
-91
97
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT 28 DIV + col2 * + 72 * 71 * + 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT 28 / + col2 * + 72 * 71 * + 63 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT MIN( DISTINCT 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-6893
SELECT MIN ( DISTINCT 13 ) FROM tab0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT col2 DIV + ( + col0 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6894
SELECT col2 / + ( + col0 ) FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col0 * - - col2 * + col0 + + col0 + - 25 AS col0 FROM tab1 AS cor0
----
249722
426335
563174

query I rowsort
SELECT 72 + - + col2 * - col0 AS col2 FROM tab1 AS cor0
----
4968
5087
6260

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + COUNT( * ) + + + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-6897
SELECT + COUNT ( * ) + + + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 24 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 31 AS col1 FROM tab0
----
-118
-128
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col2 FROM tab1
----
-4896
-5015
-6188

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 99 NOT IN ( - 73 * ( - 1 ) + + col0 + - 57 )
----

query I rowsort
SELECT ALL - + 94 + ( + col1 ) + + - col2 * col1 - - - 12 FROM tab2 AS cor0
----
-1228
-3109
-3925

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

query II rowsort
SELECT ALL - col0 + col0 AS col0, - ( + 61 ) * col0 + 98 AS col0 FROM tab2 AS cor0
----
0
-2708
0
-3806
0
-4477

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6907
SELECT - col0 * + col0 DIV col0 - - - col1 * - col2, 2 AS col2 FROM tab0 AS cor0
----
123
2
2
2
3792
2

skipif mysql # not compatible
query II rowsort label-6907
SELECT - col0 * + col0 / col0 - - - col1 * - col2, 2 AS col2 FROM tab0 AS cor0
----
123
2
2
2
3792
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 * - 56 col2 FROM tab2
----
2856

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) * ( + - 34 ) FROM tab1
----
3
-102

skipif mysql # not compatible
query II rowsort label-6909
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) * ( + - 34 ) FROM tab1
----
3
-102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6910
SELECT ALL + CAST( NULL AS DECIMAL ) / 70 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + CAST ( NULL AS REAL ) / 70 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL = - - col0 + + + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT MIN( ALL - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT MIN ( ALL - 60 ) FROM tab1
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 81 col1 FROM tab1
----
4779
5508
7776

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

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT 90 + + + COUNT ( * ) FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT CAST( col2 AS SIGNED ) + col0 + - - col2 * + - col2 AS col2 FROM tab2
----
-1496
-3231
-460

skipif mysql # not compatible
query I rowsort label-6916
SELECT CAST ( col2 AS INTEGER ) + col0 + - - col2 * + - col2 AS col2 FROM tab2
----
-1496
-3231
-460

query I rowsort
SELECT ALL ( - col0 ) + - col2 - col0 AS col0 FROM tab2 AS cor0
----
-115
-168
-208

query I rowsort
SELECT DISTINCT + - col1 + - 18 + + - col0 FROM tab1 AS cor0
----
-108
-156
-83

query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 FROM tab1 AS cor0 WHERE ( - col2 * + col1 * - col2 ) IS NOT NULL
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL COUNT( ALL col1 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL COUNT ( ALL col1 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

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

query I rowsort
SELECT ALL - - 0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

query I rowsort
SELECT - 51 + + + col2 * + + col2 FROM tab1 AS cor0
----
3430
4573
9165

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT + + 28 * - MAX( - col2 ) + COUNT( * ) - ( + 87 ) AS col2, + 44 FROM tab1 AS cor0
----
1568
44

skipif mysql # not compatible
query II rowsort label-6925
SELECT + + 28 * - MAX ( - col2 ) + COUNT ( * ) - ( + 87 ) AS col2, + 44 FROM tab1 AS cor0
----
1568
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 <> - col1 + col0 + 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL ( 49 ) * - col1 * - 9 FROM tab2
----
22491
29547
33957

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT DISTINCT - col2 * 30 DIV col1 FROM tab1
----
-205
-354
-43

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - col2 * 30 / col1 FROM tab1
----
-205
-354
-43

query I rowsort
SELECT + col2 * + col2 * + col1 AS col2 FROM tab0
----
178929
2100
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT ALL + 84 DIV + 57 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6931
SELECT ALL + 84 / + 57 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 84 * + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3864
5376
6300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT 19 * + - COUNT( * ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6934
SELECT 19 * + - COUNT ( * ) AS col2 FROM tab2
----
-57

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - 21 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( + - col2 ) ) NOT BETWEEN col1 AND NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + 91 + + 40 * + col0 + - - col2 - + - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT - CAST( 43 AS SIGNED ) AS col2 FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-6938
SELECT - CAST ( 43 AS INTEGER ) AS col2 FROM tab0
----
-43
-43
-43

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 83 col0 FROM tab0 AS cor0
----
3901
8217
830

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 * + 68 * + 28 ) > col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT - 46 DIV 7 FROM tab1
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-6946
SELECT - 46 / 7 FROM tab1
----
-6
-6
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL + COUNT( * ) + SUM( DISTINCT 21 ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + COUNT ( * ) + SUM ( DISTINCT 21 ) AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT + + col1 * 12 + col0 FROM tab2 AS cor0 WHERE NULL = col0 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6949
SELECT + + col1 * 12 + col0 FROM tab2 AS cor0 WHERE NULL = col0 * - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col0 + - 7 * - - 53 FROM tab0 AS cor0
----
-386
-458
-468

query I rowsort
SELECT DISTINCT + col2 - + 3 * - + 54 - - + col0 AS col0 FROM tab0 AS cor0
----
224
259
358

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

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

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - COUNT( * ) * COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6956
SELECT - COUNT ( * ) * COUNT ( * ) col0 FROM tab1
----
-9

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT + 18 col1, - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
18
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6960
SELECT + 18 col1, - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
18
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT ( - + col0 ) DIV - col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6962
SELECT ( - + col0 ) / - col0 FROM tab1
----
1
1
1

query I rowsort
SELECT + 51 * + col2 AS col0 FROM tab0
----
2397
5049
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 col2, ( + col0 ) AS col1 FROM tab0
----
49
15
49
87
49
97

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

query I rowsort
SELECT ALL + 24 * - col0 FROM tab0
----
-2088
-2328
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 39, + col0 col0 FROM tab2
----
39
46
39
64
39
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6968
SELECT DISTINCT * FROM tab1 WHERE col1 + + col0 + 73 / 47 * - 46 + - - CAST( - col2 AS SIGNED ) - - CAST( - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6968
SELECT DISTINCT * FROM tab1 WHERE col1 + + col0 + 73 / 47 * - 46 + - - CAST ( - col2 AS INTEGER ) - - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT DISTINCT - 98, + MAX( + col1 ) col1 FROM tab1
----
-98
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6969
SELECT DISTINCT - 98, + MAX ( + col1 ) col1 FROM tab1
----
-98
47

query I rowsort
SELECT - col1 * + - ( ( + ( + col1 ) ) ) * - col2 AS col2 FROM tab2
----
-237160
-260362
-59823

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

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

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

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

query I rowsort
SELECT DISTINCT - 1 * + col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6974
SELECT ALL + - 16 DIV - + 56 AS col0, - 66 FROM tab0 AS cor0
----
0
-66
0
-66
0
-66

skipif mysql # not compatible
query II rowsort label-6974
SELECT ALL + - 16 / - + 56 AS col0, - 66 FROM tab0 AS cor0
----
0
-66
0
-66
0
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT DISTINCT - - 19 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - - 19 / - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6977
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2, tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT - - col1 DIV 56 * ( - - 43 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT - - col1 / 56 * ( - - 43 ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 81 ) * + + 30 * + col2 col0 FROM tab2 AS cor0
----
-140940
-55890
-97200

query I rowsort
SELECT ALL - col2 + + - 73 AS col2 FROM tab1 AS cor0
----
-132
-141
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - 75 + + - MIN( + col1 ) * + COUNT( ALL + + 77 ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6981
SELECT - 75 + + - MIN ( + col1 ) * + COUNT ( ALL + + 77 ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT + 80 + - - col1 * - col0 * - 87 AS col0 FROM tab2 cor0
----
204182
428816
437255

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 95 NOT BETWEEN - 33 AND - + col0 / - col0 + col2 + - + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6986
SELECT - CAST( NULL AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) + + 67 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6986
SELECT - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) + + 67 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 36 + - col1 FROM tab0 AS cor0
----
-45
15
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab0 WHERE NULL < - 43
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab0 WHERE NULL < - 43
----
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT col1 * 19 * + col0 FROM tab2 AS cor0
----
44574
93632
95475

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT + 36 * - COUNT( * ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT + 36 * - COUNT ( * ) FROM tab2 AS cor0
----
-108

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( 1 ) <= + - 56
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 >= 71
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 13, 87, col2 - + col2, + ( - ( - - 68 ) ), col1 + - col1 + col2, + col0 * - + col1 * + + col2 / + col1 / ( - col0 ) )
----

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

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

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

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

query I rowsort
SELECT ALL - + 85 - + - 85 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 87 * + + col0 FROM tab2 AS cor0
----
4002
5568
6525

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7000
SELECT - - CAST( col1 AS DECIMAL ) / - 90 * col0 AS col1 FROM tab1 AS cor0 WHERE + col1 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7000
SELECT - - CAST ( col1 AS REAL ) / - 90 * col0 AS col1 FROM tab1 AS cor0 WHERE + col1 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - 44 ) ) IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab2 AS cor0 WHERE col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT + COUNT( * ) * - 23 AS col1 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7004
SELECT + COUNT ( * ) * - 23 AS col1 FROM tab2 cor0
----
-69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT - - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab0 WHERE - ( 81 ) > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab0 WHERE - ( 81 ) > - col0
----
NULL

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

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

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

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

query I rowsort
SELECT + 41 * - + ( - col0 ) FROM tab0
----
3567
3977
615

query I rowsort
SELECT + col1 - + 47 FROM tab2
----
20
30
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT + - COUNT( * ) col0 FROM tab1 WHERE ( NULL ) <= col2 + + ( - - col1 ) + + col2 * + col1 OR NOT + - 92 * 43 * + + 78 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7011
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 WHERE ( NULL ) <= col2 + + ( - - col1 ) + + col2 * + col1 OR NOT + - 92 * 43 * + + 78 IS NULL
----
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7013
SELECT ALL - - COUNT( * ) AS col1, + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL - - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7014
SELECT + col0, 85 - - ( + col0 ) DIV col0 + 32 + - + col1 AS col1 FROM tab0
----
15
37
87
97
97
117

skipif mysql # not compatible
query II rowsort label-7014
SELECT + col0, 85 - - ( + col0 ) / col0 + 32 + - + col1 AS col1 FROM tab0
----
15
37
87
97
97
117

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

query II rowsort
SELECT ALL + - 40 AS col1, col0 + + - 44 AS col0 FROM tab1 AS cor0
----
-40
41
-40
47
-40
7

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

query II rowsort
SELECT DISTINCT + ( + + col2 ) AS col2, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT + COUNT( DISTINCT - col0 ) * CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7019
SELECT + COUNT ( DISTINCT - col0 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
9

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

query II rowsort
SELECT DISTINCT + ( + 24 ) AS col2, - col0 AS col0 FROM tab1
----
24
-51
24
-85
24
-91

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

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

query I rowsort
SELECT + col0 + - - col2 + - 11 FROM tab1 AS cor0
----
133
136
148

query I rowsort
SELECT DISTINCT 6 + + col0 * col0 * + col2 AS col1 FROM tab1 AS cor0
----
249702
426281
563114

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

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * - ( 91 ) - + 11 FROM tab0 AS cor0 WHERE NOT col1 + - 18 * + - 10 + - col0 BETWEEN - - col0 AND NULL
----
-9020

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

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

query I rowsort
SELECT ALL - col2 + + 57 FROM tab1
----
-11
-2
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT 97 DIV + col0 + col2 + col0 FROM tab0 cor0
----
197
68
98

skipif mysql # not compatible
query I rowsort label-7030
SELECT 97 / + col0 + col2 + col0 FROM tab0 cor0
----
197
68
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + col0 > ( - 27 - 9 )
----
87
21
10
97
1
99

query I rowsort
SELECT - col2 + - - 84 FROM tab1 AS cor0
----
-12
16
25

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

query I rowsort
SELECT 15 + - ( - ( + + col0 ) ) AS col0 FROM tab2
----
61
79
90

query I rowsort
SELECT ALL col2 * - 35 + - col1 FROM tab0 WHERE NOT ( 27 <= + 75 + col1 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7037
SELECT CAST( NULL AS SIGNED ) + + MAX( - 32 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT CAST ( NULL AS INTEGER ) + + MAX ( - 32 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT + 97 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7038
SELECT + 97 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT DISTINCT - 71 DIV 17 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - 71 / 17 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT col0 - + 31 FROM tab2 AS cor0
----
15
33
44

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7042
SELECT ALL - COUNT ( * ) col2, + 40 AS col2 FROM tab1 AS cor0
----
-3
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT DISTINCT col1 DIV - - 37 AS col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT col1 / - - 37 AS col2 FROM tab0
----
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7044
SELECT + - 92 * col0 DIV col2 + - col2 FROM tab0 AS cor0
----
-189
-76
-810

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - 92 * col0 / col2 + - col2 FROM tab0 AS cor0
----
-189
-76
-810

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7045
SELECT CAST( col1 AS DECIMAL ), 60 + - + col2 FROM tab2 AS cor0 WHERE NOT NULL <> col0 + - col0
----

skipif mysql # not compatible
query II rowsort label-7045
SELECT CAST ( col1 AS REAL ), 60 + - + col2 FROM tab2 AS cor0 WHERE NOT NULL <> col0 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE - col0 * col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE - col0 * col0 >= NULL
----

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

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

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

query I rowsort
SELECT ALL + - 29 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT DISTINCT + 6 DIV + + 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT + 6 / + + 18 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT + ( + - col2 ) DIV col1 + - 34 + - - 65 + + col1 + - 14 * - col0 DIV col0 FROM tab1
----
39
53
91

skipif mysql # not compatible
query I rowsort label-7052
SELECT + ( + - col2 ) / col1 + - 34 + - - 65 + + col1 + - 14 * - col0 / col0 FROM tab1
----
39
53
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT COUNT( * ) * - + 42 AS col1 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-7053
SELECT COUNT ( * ) * - + 42 AS col1 FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT ALL - MIN( - ( col1 ) ) AS col0, - COUNT( * ) FROM tab2
----
77
-3

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL - MIN ( - ( col1 ) ) AS col0, - COUNT ( * ) FROM tab2
----
77
-3

query II rowsort
SELECT - col0 AS col2, + col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - col0 + 34 AS col0 FROM tab0 AS cor0
----
-53
-63
19

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-96

query I rowsort
SELECT - col2 * + + col2 + col2 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT DISTINCT - ( + 13 ) AS col0 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT + CAST( + col0 AS SIGNED ) + col0 * - 99 FROM tab0
----
-1470
-8526
-9506

skipif mysql # not compatible
query I rowsort label-7060
SELECT + CAST ( + col0 AS INTEGER ) + col0 * - 99 FROM tab0
----
-1470
-8526
-9506

query I rowsort
SELECT DISTINCT - + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7062
SELECT ALL - 44 + - - ( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1, MAX( ALL - + 32 ) AS col1 FROM tab2 cor0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-7062
SELECT ALL - 44 + - - ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1, MAX ( ALL - + 32 ) AS col1 FROM tab2 cor0
----
NULL
-32

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 42 >= - col2
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 0 + - - 91 col1 FROM tab2 cor0
----
91

query I rowsort
SELECT DISTINCT + ( col1 ) - - col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT + + COUNT( * ) * + 66 * - COUNT( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + + COUNT ( * ) * + 66 * - COUNT ( + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT SUM( DISTINCT col2 ) * - - 63 AS col0 FROM tab2
----
7623

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT SUM ( DISTINCT col2 ) * - - 63 AS col0 FROM tab2
----
7623

query I rowsort
SELECT col1 * - col0 - + + col1 AS col2 FROM tab1
----
-430
-4324
-728

query I rowsort
SELECT ALL 14 - + col1 AS col0 FROM tab0
----
-67
-7
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT 92 - - col1 - - CAST( NULL AS SIGNED ) * + 28 + 69 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT 92 - - col1 - - CAST ( NULL AS INTEGER ) * + 28 + 69 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 58 * 25 - + - 95 FROM tab1
----
1545
1545
1545

query I rowsort
SELECT DISTINCT 98 - 30 AS col1 FROM tab2
----
68

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

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL SUM ( ALL 1 ) AS col1 FROM tab0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT MAX ( - 44 ) FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL + COUNT( * ) * + COUNT( * ) * - - 4 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - - 4 AS col2 FROM tab2 AS cor0
----
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col1 * - col1 + col2 + - + 46 AS col2 FROM tab2 AS cor0
----
51
-2624
67
-4477
77
-5935

query I rowsort
SELECT - 2 * ( col0 ) FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - col2 * + + 9 AS col1 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7082
SELECT - CAST( NULL AS DECIMAL ) / col2 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT - CAST ( NULL AS REAL ) / col2 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 * + col0 + col0 FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT 27 DIV COUNT( * ) AS col2 FROM tab0
----
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT DISTINCT 5 DIV MAX( DISTINCT - + 90 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT 5 / MAX ( DISTINCT - + 90 ) FROM tab2
----
0

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

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

query I rowsort
SELECT ALL + + 70 AS col2 FROM tab0 WHERE NOT + + col2 * col2 = + ( col2 )
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 WHERE - 61 IS NULL
----

query I rowsort
SELECT - + col0 * col2 + - - col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-1410
-1740
-19206

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT + col2 DIV - col0 + - 15 + + 85 AS col2 FROM tab1 AS cor0
----
69
70
70

skipif mysql # not compatible
query I rowsort label-7090
SELECT + col2 / - col0 + - 15 + + 85 AS col2 FROM tab1 AS cor0
----
69
70
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + col0 col1 FROM tab2 WHERE NULL BETWEEN + - col0 AND NULL
----

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

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

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

query I rowsort
SELECT - col0 + - 16 * 75 FROM tab2 cor0
----
-1246
-1264
-1275

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT ALL - 49, COUNT( * ) * 66 - - ( - + COUNT( * ) ) + + 62 AS col1 FROM tab2 AS cor0
----
-49
257

skipif mysql # not compatible
query II rowsort label-7097
SELECT ALL - 49, COUNT ( * ) * 66 - - ( - + COUNT ( * ) ) + + 62 AS col1 FROM tab2 AS cor0
----
-49
257

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> col2 * - - 48 * - 20 * + - 82
----

query I rowsort
SELECT DISTINCT + 42 + + + col0 FROM tab1 AS cor0
----
127
133
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT DISTINCT + + col2 * 21 * CAST( NULL AS SIGNED ) - CAST( + - CAST( + CAST( 87 AS SIGNED ) AS SIGNED ) AS SIGNED ) - col2 * 19 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + + col2 * 21 * CAST ( NULL AS INTEGER ) - CAST ( + - CAST ( + CAST ( 87 AS INTEGER ) AS INTEGER ) AS INTEGER ) - col2 * 19 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + - 56 + - 16 AS col0 FROM tab0 cor0
----
-25
-62
27

query I rowsort
SELECT 11 + - col1 AS col1 FROM tab1 AS cor0
----
-3
-36
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT 25 * - - 45 + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
1183

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT 25 * - - 45 + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
1183

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ( - COUNT( * ) ) * - - COUNT( * ) * + - 93 FROM tab1
----
837

skipif mysql # not compatible
query I rowsort label-7106
SELECT ( - COUNT ( * ) ) * - - COUNT ( * ) * + - 93 FROM tab1
----
837

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7108
SELECT - MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 * - + col1 AS col2, col1 col0 FROM tab2
----
-3213
51
-4221
67
-4851
77

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

query I rowsort
SELECT DISTINCT + 93 * 9 * + + col2 AS col2 FROM tab1 AS cor0
----
49383
56916
80352

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7112
SELECT - CAST ( + + col2 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT 29 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( + - 79 ) FROM tab0 AS cor0 WHERE NOT - col2 * col0 IS NULL
----
-79

query I rowsort
SELECT ALL 42 * + 11 * - + 37 FROM tab2
----
-17094
-17094
-17094

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT DISTINCT COUNT( * ) * MIN( - col0 ), 1 col2 FROM tab1
----
-273
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7115
SELECT DISTINCT COUNT ( * ) * MIN ( - col0 ), 1 col2 FROM tab1
----
-273
1

query I rowsort
SELECT ALL + 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT col2 * - CAST( - 79 AS SIGNED ) col2 FROM tab2
----
1817
3160
4582

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7117
SELECT DISTINCT col2 * - CAST ( - 79 AS INTEGER ) col2 FROM tab2
----
1817
3160
4582

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT ALL - col1 + col0 DIV - col0 AS col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - col1 + col0 / - col0 AS col1 FROM tab1
----
-15
-48
-6

query I rowsort
SELECT 39 + col1 AS col2 FROM tab2 AS cor0
----
106
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT DISTINCT + - COUNT( * ) * + 42 + ( + 36 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT + - COUNT ( * ) * + 42 + ( + 36 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT 75 + - + 40 AS col0 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT ALL 88 + col0 + 40 FROM tab0 AS cor0
----
143
215
225

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

query I rowsort
SELECT ALL col1 + ( - col1 ) FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col2 ) col1 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL 4 AS col1, col1 + + col1 FROM tab2
----
4
102
4
134
4
154

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT + - CAST( NULL AS SIGNED ) FROM tab1 WHERE + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7129
SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT CAST( - + col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7130
SELECT CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7131
SELECT SUM( + col0 ) DIV - 27 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-7131
SELECT SUM ( + col0 ) / - 27 FROM tab0
----
-7

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

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

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

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

query I rowsort
SELECT DISTINCT + - 69 + - col2 + - 57 + - col0 * + 12 FROM tab1 AS cor0
----
-1205
-1286
-834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) + + - ( - 81 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) + + - ( - 81 ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL + col0 + - col2 * - col2 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT + 21 + - col0 FROM tab2
----
-25
-43
-54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT DISTINCT - SUM( ALL CAST( - col1 AS SIGNED ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - SUM ( ALL CAST ( - col1 AS INTEGER ) ) FROM tab1
----
66

query I rowsort
SELECT - col2 * + - 66 FROM tab0 AS cor0
----
3102
6534
660

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7142
SELECT ALL 83, + COUNT( * ) + ( - + ( - 36 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
83
39

skipif mysql # not compatible
query II rowsort label-7142
SELECT ALL 83, + COUNT ( * ) + ( - + ( - 36 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
83
39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - COUNT( * ) * ( COUNT( - + 48 ) ) FROM tab1, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7146
SELECT - COUNT ( * ) * ( COUNT ( - + 48 ) ) FROM tab1, tab2 AS cor0
----
-81

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

query I rowsort
SELECT ALL 35 * 45 FROM tab0 AS cor0
----
1575
1575
1575

query II rowsort
SELECT ALL - col2 * col1 - - 69, col1 AS col0 FROM tab0 AS cor0
----
-141
21
-30
1
-3738
81

query I rowsort
SELECT DISTINCT 6 + 4 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT 43 + + COUNT( * ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7151
SELECT 43 + + COUNT ( * ) AS col2 FROM tab2
----
46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NOT 87 BETWEEN ( NULL ) AND col0 + col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 75 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= - ( 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + COUNT( DISTINCT - col2 ) FROM tab1 WHERE NOT col2 >= 47 / - col2 - 45
----
0

skipif mysql # not compatible
query I rowsort label-7158
SELECT + COUNT ( DISTINCT - col2 ) FROM tab1 WHERE NOT col2 >= 47 / - col2 - 45
----
0

query I rowsort
SELECT DISTINCT 30 * + col1 AS col1 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT DISTINCT - 19 * - 92 FROM tab2
----
1748

query I rowsort
SELECT DISTINCT - col1 * + 93 FROM tab1
----
-1302
-4371
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT MIN( ALL 62 ) * 11 FROM tab1
----
682

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT MIN ( ALL 62 ) * 11 FROM tab1
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT - ( + COUNT( * ) ) FROM tab2 WHERE 49 * + col2 NOT BETWEEN col1 + col2 * 99 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7163
SELECT - ( + COUNT ( * ) ) FROM tab2 WHERE 49 * + col2 NOT BETWEEN col1 + col2 * 99 AND NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) / - 85 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) / - 85 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 50 >= NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT 38 IN ( col0 * 88 )
----
23
40
58

query I rowsort
SELECT - 10 - col0 FROM tab1
----
-101
-61
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT ALL - col1 FROM tab2 WHERE NOT - CAST( - 87 AS SIGNED ) BETWEEN col2 + + col0 AND NULL
----
-67
-77

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - col1 FROM tab2 WHERE NOT - CAST ( - 87 AS INTEGER ) BETWEEN col2 + + col0 AND NULL
----
-67
-77

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

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

query I rowsort
SELECT ALL ( col1 ) * 56 AS col1 FROM tab2
----
2856
3752
4312

query I rowsort
SELECT DISTINCT col1 * col1 + - col1 * - ( - 42 ) AS col0 FROM tab1
----
-185
-392
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT - CAST( 18 AS SIGNED ) * 19 AS col1 FROM tab2
----
-342
-342
-342

skipif mysql # not compatible
query I rowsort label-7172
SELECT - CAST ( 18 AS INTEGER ) * 19 AS col1 FROM tab2
----
-342
-342
-342

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 24 ) <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 43 + col0 col2 FROM tab1
----
2622
3015
4179

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - MAX( DISTINCT 20 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7177
SELECT - MAX ( DISTINCT 20 ) AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT - col2 + - 90 AS col0 FROM tab2
----
-113
-130
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT 39 * COUNT( * ) - - COUNT( * ) * + 33 AS col0 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7179
SELECT 39 * COUNT ( * ) - - COUNT ( * ) * + 33 AS col0 FROM tab2
----
216

query I rowsort
SELECT ALL - col2 * 68 FROM tab2
----
-1564
-2720
-3944

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT - 48 DIV col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7181
SELECT - 48 / col0 col2 FROM tab1 AS cor0
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 0 )
----

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

query I rowsort
SELECT - + ( 82 ) FROM tab2 cor0
----
-82
-82
-82

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

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

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

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

query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab1 cor0 WHERE ( col0 ) NOT IN ( - 8 )
----
64

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 41 NOT BETWEEN NULL AND col2 * 20
----

query I rowsort
SELECT - col2 * col0 + - col1 FROM tab1 WHERE NOT 63 / + col1 >= ( - 66 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7192
SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL + ( - MIN( - col0 ) ) * 38 FROM tab2
----
2850

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + ( - MIN ( - col0 ) ) * 38 FROM tab2
----
2850

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 NOT BETWEEN col0 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + COUNT( DISTINCT 5 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7195
SELECT + COUNT ( DISTINCT 5 ) FROM tab2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7196
SELECT + col1 * + CAST( NULL AS DECIMAL ) * ( + 78 ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7196
SELECT + col1 * + CAST ( NULL AS REAL ) * ( + 78 ) col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 29 < NULL
----

query I rowsort
SELECT ALL + 40 FROM tab2 WHERE NOT ( NULL ) BETWEEN 58 AND + col0
----

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab2 WHERE ( 77 + + 58 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT col1 DIV + col0 + - - 21 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT col1 / + col0 + - - 21 FROM tab1
----
21

query I rowsort
SELECT + col2 / - col0 FROM tab2 cor0 WHERE ( col0 * + - 61 ) IN ( col2 )
----

query I rowsort
SELECT - + col2 + - + col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-100
-451
-6608

query I rowsort
SELECT DISTINCT 29 + + + col2 FROM tab2 AS cor0
----
52
69
87

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7206
SELECT DISTINCT - COUNT ( * ) AS col0, + 72 + COUNT ( * ) col0 FROM tab1 cor0
----
-3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL - 75 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - 75 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT DISTINCT + - 29 + + - 96 AS col2 FROM tab1 AS cor0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT DISTINCT 46 * col2 AS col2 FROM tab0 AS cor0 WHERE 9 / + - 84 BETWEEN + ( col1 ) / - CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT 46 * col2 AS col2 FROM tab0 AS cor0 WHERE 9 / + - 84 BETWEEN + ( col1 ) / - CAST ( NULL AS INTEGER ) AND col0
----

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

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

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

skipif mysql # not compatible
query II rowsort label-7211
SELECT DISTINCT CAST ( + - col1 AS INTEGER ), col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT ALL + COUNT( * ) * - 13 col0, 99 AS col1 FROM tab1
----
-39
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7212
SELECT ALL + COUNT ( * ) * - 13 col0, 99 AS col1 FROM tab1
----
-39
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= ( - col2 )
----

query II rowsort
SELECT - col0 * - 59 AS col1, col0 AS col1 FROM tab0
----
5133
87
5723
97
885
15

onlyif mysql # DIV for integer division: 
query II rowsort label-7215
SELECT DISTINCT col2 * - col2 AS col1, - col1 + + col2 DIV 83 AS col1 FROM tab0
----
-100
-21
-2209
-81
-9801
0

skipif mysql # not compatible
query II rowsort label-7215
SELECT DISTINCT col2 * - col2 AS col1, - col1 + + col2 / 83 AS col1 FROM tab0
----
-100
-21
-2209
-81
-9801
0

query II rowsort
SELECT ALL + 80 * 69, + 91 AS col1 FROM tab1
----
5520
91
5520
91
5520
91

query I rowsort
SELECT + 88 - + - 95 * + - col2 * col0 * + col2 AS col0 FROM tab0
----
-3147737
-826412
-90316127

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7218
SELECT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) * - + col1 - - col0 ) IN ( + 4 - 0 )
----

skipif mysql # not compatible
query III rowsort label-7218
SELECT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) * - + col1 - - col0 ) IN ( + 4 - 0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) IN ( + 70 ) AND NOT col2 + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT col0 * + col0 * - col0 - 79 FROM tab0
----
-3454
-658582
-912752

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL - SUM( ALL - 51 ) + 13 AS col1 FROM tab1 WHERE NOT 72 + col0 + 52 * 69 IS NOT NULL AND NULL <= ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - SUM ( ALL - 51 ) + 13 AS col1 FROM tab1 WHERE NOT 72 + col0 + 52 * 69 IS NOT NULL AND NULL <= ( col2 )
----
NULL

query I rowsort
SELECT + 85 FROM tab0 AS cor0 WHERE ( NOT + 59 IS NULL )
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE + col0 + + 84 * col1 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT 47 * COUNT( DISTINCT + 82 ) - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 * - 8 * - + 5 - col0 IS NULL OR 69 IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT 47 * COUNT ( DISTINCT + 82 ) - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 * - 8 * - + 5 - col0 IS NULL OR 69 IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7226
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT AVG ( ALL - col0 ) FROM tab0 WHERE NOT + - col1 * + ( + 37 ) >= NULL
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - 17 * + MIN( - - 60 ) FROM tab2 AS cor0
----
-1020

skipif mysql # not compatible
query I rowsort label-7230
SELECT - 17 * + MIN ( - - 60 ) FROM tab2 AS cor0
----
-1020

query I rowsort
SELECT DISTINCT 54 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - 21 * 53 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT - COUNT( DISTINCT - 75 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - COUNT ( DISTINCT - 75 ) FROM tab1 cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT MAX( 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7236
SELECT MAX ( 92 ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT - - 27 * - 4 FROM tab0 AS cor0
----
-108
-108
-108

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 NOT BETWEEN ( - col0 / - 48 ) AND ( col0 )
----
64
77
40
75
67
58

query II rowsort
SELECT + + col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 + - 10 FROM tab2 AS cor0
----
-51
36
-67
65
-77
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL 95 * COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL 95 * COUNT ( * ) FROM tab1
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col0 AS col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL SUM( + - 93 ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL SUM ( + - 93 ) AS col2 FROM tab0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - ( + col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - ( + col2 ) > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - 89 * col2 + + col1 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT col0 DIV 86 * - col0 * 1 + + + 80 AS col1 FROM tab0 AS cor0
----
-17
-7
80

skipif mysql # not compatible
query I rowsort label-7248
SELECT col0 / 86 * - col0 * 1 + + + 80 AS col1 FROM tab0 AS cor0
----
-17
-7
80

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - + col2 + + 72 IN ( - - 92 * col0 * + col1 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7251
SELECT col0 * CAST( NULL AS SIGNED ) AS col2, + col2 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
-197120
NULL
-291450
NULL
-53958

skipif mysql # not compatible
query II rowsort label-7251
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2, + col2 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
-197120
NULL
-291450
NULL
-53958

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7253
SELECT DISTINCT col1 + - 87 * col2, col1 - - 20 * CAST( NULL AS DECIMAL ) * + 15 AS col0 FROM tab0 AS cor0
----
-4008
NULL
-849
NULL
-8612
NULL

skipif mysql # not compatible
query II rowsort label-7253
SELECT DISTINCT col1 + - 87 * col2, col1 - - 20 * CAST ( NULL AS REAL ) * + 15 AS col0 FROM tab0 AS cor0
----
-4008
NULL
-849
NULL
-8612
NULL

query I rowsort
SELECT ALL + 11 * - ( + col2 ) + 80 FROM tab0 AS cor0
----
-1009
-30
-437

query I rowsort
SELECT ALL + ( + 37 ) AS col0 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT - - 68 + + + col0 + + col0 * + 20 + + col0 DIV - - col1 FROM tab1 AS cor0
----
1142
1870
1980

skipif mysql # not compatible
query I rowsort label-7256
SELECT - - 68 + + + col0 + + col0 * + 20 + + col0 / - - col1 FROM tab1 AS cor0
----
1142
1870
1980

query I rowsort
SELECT - - 53 + - ( - col0 ) FROM tab0 AS cor0
----
140
150
68

query I rowsort
SELECT ALL + col2 - - - 92 + - 56 FROM tab1 AS cor0
----
-52
-80
-89

query I rowsort
SELECT ALL + col0 * - col1 + - 70 + col0 AS col0 FROM tab1
----
-410
-4256
-733

query I rowsort
SELECT DISTINCT 86 - - + col1 + col1 FROM tab0
----
128
248
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7261
SELECT ALL + CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL + CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT ( col0 - 69 ) IN ( + 23, + ( + ( + + col0 ) ) )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL OR NULL < + + 53 / - - 64 * 49
----

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

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

query I rowsort
SELECT ALL 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

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

query II rowsort
SELECT DISTINCT col2 * + 54 AS col2, 89 AS col1 FROM tab1 AS cor0
----
3186
89
3672
89
5184
89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT 77 DIV + 47 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT 77 / + 47 FROM tab2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL - 98 + - + COUNT( * ) + 92 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - 98 + - + COUNT ( * ) + 92 FROM tab2
----
-9

query I rowsort
SELECT ALL 64 FROM tab0 WHERE NULL IS NULL
----
64
64
64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + + COUNT( ALL - - ( - 46 ) ) + 57 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + + COUNT ( ALL - - ( - 46 ) ) + 57 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT + MAX( + 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT + MAX ( + 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL - col1 * + + 37 FROM tab0 AS cor0
----
-2997
-37
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL MAX( DISTINCT - - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL MAX ( DISTINCT - - col2 ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 48 * + - col0 * - col1, - col0 + col0 / + + col2 - - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 48 * + - col0 * - col1, - col0 + col0 / + + col2 - - + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 47 <= NULL
----

query I rowsort
SELECT DISTINCT 70 + + col2 FROM tab1 AS cor0
----
129
138
166

query II rowsort
SELECT DISTINCT + 96 - - - col0 + - 55 * + col0 + - 56 + col0 - col0, col1 - - col0 AS col0 FROM tab2 AS cor0
----
-2536
97
-3544
141
-4160
142

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT ALL + - COUNT( * ) + + ( MAX( 56 ) ) AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL + - COUNT ( * ) + + ( MAX ( 56 ) ) AS col0 FROM tab0 AS cor0
----
53

query I rowsort
SELECT + col1 - - - 19 AS col0 FROM tab0
----
-18
2
62

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab2, tab0 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT - MIN( ALL - + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - MIN ( ALL - + col0 ) FROM tab2 cor0
----
75

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

skipif mysql # not compatible
query I rowsort label-7290
SELECT + 54 + 9 AS col1 FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN + + 3 AND - + col2 + + + col0 + + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 56 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT 30 AS col2 FROM tab0 WHERE NOT - 15 * 77 >= 4 + - col0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT DISTINCT + 46 * CAST( - ( - 33 ) AS SIGNED ) FROM tab2 AS cor0
----
1518

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT + 46 * CAST ( - ( - 33 ) AS INTEGER ) FROM tab2 AS cor0
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL + + COUNT( * ) * + COUNT( + col0 ) AS col0 FROM tab2 AS cor0 WHERE - 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + + COUNT ( * ) * + COUNT ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE - 68 IS NULL
----
0

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

query I rowsort
SELECT - col1 * + - 54 * col0 + 79 FROM tab1 AS cor0
----
23029
231037
38635

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL - + MIN( DISTINCT - + 71 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL - + MIN ( DISTINCT - + 71 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT 71 * - 40 AS col2 FROM tab1 AS cor0
----
-2840
-2840
-2840

onlyif mysql # aggregate syntax: 
query II rowsort label-7299
SELECT ALL - + 46 AS col2, + 70 * - - COUNT( * ) col0 FROM tab1 AS cor0
----
-46
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7299
SELECT ALL - + 46 AS col2, + 70 * - - COUNT ( * ) col0 FROM tab1 AS cor0
----
-46
210

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7302
SELECT DISTINCT + MIN( - col2 ) col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7302
SELECT DISTINCT + MIN ( - col2 ) col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-58
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 70 ) * + col2 >= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT DISTINCT + CAST( 32 AS SIGNED ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT + CAST ( 32 AS INTEGER ) FROM tab2
----
32

query I rowsort
SELECT - col2 + - - 35 + + col0 * - col2 FROM tab0
----
-717
-845
-9667

query II rowsort
SELECT DISTINCT + col1, col0 * + 92 AS col0 FROM tab1 WHERE + + col0 NOT BETWEEN + col1 AND NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 / - col0 <> + 53 - + - col1
----

query I rowsort
SELECT ALL 73 FROM tab0 WHERE NOT NULL > col1 * - col2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT MIN( - - col0 ) + + 47 AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT MIN ( - - col0 ) + + 47 AS col0 FROM tab2 AS cor0
----
93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT SUM( ALL + col1 ) + + - COUNT( DISTINCT - 44 ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7317
SELECT SUM ( ALL + col1 ) + + - COUNT ( DISTINCT - 44 ) AS col1 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT + 71 + - COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7318
SELECT + 71 + - COUNT ( * ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT SUM( ALL - 39 ) + - 73 AS col0 FROM tab2 cor0
----
-190

skipif mysql # not compatible
query I rowsort label-7319
SELECT SUM ( ALL - 39 ) + - 73 AS col0 FROM tab2 cor0
----
-190

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

query I rowsort
SELECT DISTINCT col2 - col1 * - col1 AS col2 FROM tab2
----
2624
4547
5969

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

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

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

query I rowsort
SELECT - col2 * + - 77 AS col0 FROM tab1
----
4543
5236
7392

query I rowsort
SELECT ALL - col2 * + - 99 FROM tab0 AS cor0
----
4653
9801
990

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

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT - CAST ( - COUNT ( ALL 51 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT - + COUNT( ALL - col2 ), + SUM( col0 ) + - 66 AS col0 FROM tab0 AS cor0
----
-3
133

skipif mysql # not compatible
query II rowsort label-7328
SELECT - + COUNT ( ALL - col2 ), + SUM ( col0 ) + - 66 AS col0 FROM tab0 AS cor0
----
-3
133

query II rowsort
SELECT ( 74 ), 65 AS col2 FROM tab2
----
74
65
74
65
74
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 28 + - ( col2 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( - 77 + + CAST( NULL AS SIGNED ) ) IN ( col2, + col1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 77 + + CAST ( NULL AS INTEGER ) ) IN ( col2, + col1 + col1 )
----
0

query I rowsort
SELECT ALL + ( + - 41 ) FROM tab2
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - ( + 11 ) AS col2 FROM tab1
----
-11

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) AS col2 FROM tab1 WHERE NOT + - col0 * + 5 > + col1
----
-51
-85
-91

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

query I rowsort
SELECT DISTINCT 17 * - col0 AS col1 FROM tab1
----
-1445
-1547
-867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7337
SELECT * FROM tab2 cor0 WHERE ( - col0 ) IN ( - CAST( NULL AS SIGNED ), + col0 / 2 )
----

skipif mysql # not compatible
query III rowsort label-7337
SELECT * FROM tab2 cor0 WHERE ( - col0 ) IN ( - CAST ( NULL AS INTEGER ), + col0 / 2 )
----

query II rowsort
SELECT DISTINCT 74 AS col1, col1 FROM tab1 cor0
----
74
14
74
47
74
5

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

query III rowsort
SELECT * FROM tab1 WHERE + 24 > col0 * col0 * + col1
----

query I rowsort
SELECT DISTINCT ( - col0 ) - 49 AS col1 FROM tab2
----
-113
-124
-95

query I rowsort
SELECT + col0 + + col2 + col1 AS col0 FROM tab1
----
149
161
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 - - 57 col2 FROM tab2
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT 21 * - COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7344
SELECT 21 * - COUNT ( * ) FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7348
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 <> - col2
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL < + col1
----

query I rowsort
SELECT 30 * + + ( + col1 ) - - - ( 49 ) * - + col0 * + 24 AS col0 FROM tab0
----
102942
114102
20070

query I rowsort
SELECT col1 - + col0 + col1 FROM tab2
----
56
59
90

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7353
SELECT ALL + 3 / - + col1 col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col1 AS col1, 39 FROM tab1
----
14
39
47
39
5
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT - 81 DIV - + COUNT( * ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 81 / - + COUNT ( * ) FROM tab2 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL + MIN( ALL - + 46 ) col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7357
SELECT ALL + MIN ( ALL - + 46 ) col0 FROM tab0 AS cor0
----
-46

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

query I rowsort
SELECT + 7 * - col2 FROM tab1 cor0
----
-413
-476
-672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7360
SELECT DISTINCT 67 col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
67
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7360
SELECT DISTINCT 67 col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 / - col0 * 69 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 / - col0 * 69 * + col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 * + col1 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + MIN( DISTINCT 84 ) * + - SUM( ALL - - col1 ) + 74 + - ( + - COUNT( * ) ) FROM tab0
----
-8575

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + MIN ( DISTINCT 84 ) * + - SUM ( ALL - - col1 ) + 74 + - ( + - COUNT ( * ) ) FROM tab0
----
-8575

query I rowsort
SELECT ALL 66 * 85 FROM tab2
----
5610
5610
5610

query I rowsort
SELECT ALL col2 * - - col1 + + + 53 AS col2 FROM tab1 AS cor0
----
1397
3249
348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL - col2 + - + col0 AS col1 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT ALL - 46 - 45 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - 53 - 91 FROM tab2
----
-144

query I rowsort
SELECT + 80 + + 99 FROM tab0
----
179
179
179

query I rowsort
SELECT - 14 + - 50 AS col2 FROM tab2 AS cor0
----
-64
-64
-64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7373
SELECT + ( COUNT( * ) ) + - 98 AS col0, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - + 7 AS col2 FROM tab2 AS cor0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-7373
SELECT + ( COUNT ( * ) ) + - 98 AS col0, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + 7 AS col2 FROM tab2 AS cor0
----
-95
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 43, 28 col0 FROM tab1 AS cor0
----
-43
28

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7375
SELECT + - col2 / - col2 col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + + 88 * 72 / + 74
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + + - 22 / + col2 * col2 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT 0 * - MAX( + col0 ) DIV MIN( DISTINCT - - col1 ) * + COUNT( - 62 ) + + - COUNT( * ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7380
SELECT DISTINCT 0 * - MAX ( + col0 ) / MIN ( DISTINCT - - col1 ) * + COUNT ( - 62 ) + + - COUNT ( * ) col2 FROM tab2
----
-3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + + 98 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + COUNT ( * ) / - 10 AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 * - + col2 AS col1 FROM tab0
----
-705
-870
-9603

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

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

query I rowsort
SELECT DISTINCT + ( - - col0 ) * - col0 + - 87 FROM tab2 AS cor0
----
-2203
-4183
-5712

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT - + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + col2 >= - 25 * - + col1 * + - 91
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT - + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + col2 >= - 25 * - + col1 * + - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT DISTINCT CAST( ( + CAST( - col2 AS SIGNED ) ) AS SIGNED ) * 46 * + - col2 AS col1 FROM tab0
----
101614
450846
4600

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT CAST ( ( + CAST ( - col2 AS INTEGER ) ) AS INTEGER ) * 46 * + - col2 AS col1 FROM tab0
----
101614
450846
4600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7390
SELECT ALL 19 DIV - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL 19 / - COUNT ( * ) AS col1 FROM tab1
----
-6

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7394
SELECT 58 / + + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + - 10 AS col2 FROM tab0 cor0 WHERE col1 > - col2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7394
SELECT 58 / + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - 10 AS col2 FROM tab0 cor0 WHERE col1 > - col2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 30 + 25 AS col2 FROM tab0 cor0
----
-2405
-5
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT - COUNT( + + 96 ) * 75 AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7396
SELECT - COUNT ( + + 96 ) * 75 AS col2 FROM tab2
----
-225

query I rowsort
SELECT DISTINCT + col2 * + - col2 + + ( - + ( + + col1 ) ) * + col0 * + + col1 FROM tab1
----
-19212
-205643
-5606

query II rowsort
SELECT ALL - col0, 99 + + - col0 AS col2 FROM tab0
----
-15
84
-87
12
-97
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL ( + MIN( + - col2 ) ) * - COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL ( + MIN ( + - col2 ) ) * - COUNT ( * ) FROM tab0
----
297

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + COUNT( * ) * 64 AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-7402
SELECT + COUNT ( * ) * 64 AS col2 FROM tab2
----
192

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

query I rowsort
SELECT - 16 + + + 70 FROM tab2 WHERE - 31 IS NOT NULL
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7405
SELECT DISTINCT col1 + + col0 DIV - + col1 AS col1 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT col1 + + col0 / - + col1 AS col1 FROM tab0
----
-96
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT + 58 + - 38 * + + 16 - - COUNT( * ) col0 FROM tab0
----
-547

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7406
SELECT DISTINCT + 58 + - 38 * + + 16 - - COUNT ( * ) col0 FROM tab0
----
-547

query I rowsort
SELECT + 55 + col0 AS col0 FROM tab2 AS cor0
----
101
119
130

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 + - - 97 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT - - 74, COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
74
9

skipif mysql # not compatible
query II rowsort label-7409
SELECT - - 74, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
74
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL - + MIN( ALL + - 75 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - + MIN ( ALL + - 75 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT - 25 * - COUNT( * ) AS col1, + SUM( 95 ) col1 FROM tab0
----
75
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7411
SELECT - 25 * - COUNT ( * ) AS col1, + SUM ( 95 ) col1 FROM tab0
----
75
285

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> + - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + COUNT( * ) + 89 FROM tab2 AS cor0 WHERE NOT NULL = col2
----
89

skipif mysql # not compatible
query I rowsort label-7414
SELECT + COUNT ( * ) + 89 FROM tab2 AS cor0 WHERE NOT NULL = col2
----
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 <= 24
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * col0 col2 FROM tab1 AS cor0
----
-4080
-6800
-7280

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7419
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - - CAST( ( 16 ) AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-7419
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - - CAST ( ( 16 ) AS INTEGER ) * col0
----

query I rowsort
SELECT ALL - col1 * + col1 FROM tab2 WHERE + 72 * + col0 IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT DISTINCT col0 FROM tab1 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT col0 FROM tab1 WHERE NULL = - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT - - 13 AS col1, SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
13
185

skipif mysql # not compatible
query II rowsort label-7423
SELECT - - 13 AS col1, SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
13
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - col0 + + 17 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 73 * - col2 * + + col0 col0 FROM tab0 AS cor0
----
51465
63510
701019

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + 22 * MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 22 * MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT + MIN( - 47 ) + - 19 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + MIN ( - 47 ) + - 19 FROM tab1
----
-66

query I rowsort
SELECT - - 71 AS col2 FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT ALL - 92 * 27 + + 94 AS col2 FROM tab2 AS cor0
----
-2390
-2390
-2390

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

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL COUNT ( * ) / 16 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col1 >= col1 + - col1
----
15
87
97

query II rowsort
SELECT - - col0 + col1, - col1 - - col0 - - col0 + - + 20 AS col1 FROM tab2 AS cor0
----
141
31
142
63
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + + 59 + + SUM( DISTINCT - 24 ) AS col1 FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-7435
SELECT + + 59 + + SUM ( DISTINCT - 24 ) AS col1 FROM tab0 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL - MIN( + - ( col0 ) ) * + 28 + + - 10 FROM tab1 AS cor0
----
2538

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - MIN ( + - ( col0 ) ) * + 28 + + - 10 FROM tab1 AS cor0
----
2538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0 WHERE 96 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - ( - 70 ) FROM tab2
----
70

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

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

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2 WHERE NOT ( - 57 * - + col0 + 77 IS NOT NULL )
----

query I rowsort
SELECT + col0 * col1 + + ( + col2 ) * col2 AS col0 FROM tab1 AS cor0
----
3906
8901
9930

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 76 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7443
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7443
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT col1 * + - col1 - + CAST( + 94 AS SIGNED ) FROM tab2
----
-2695
-4583
-6023

skipif mysql # not compatible
query I rowsort label-7444
SELECT col1 * + - col1 - + CAST ( + 94 AS INTEGER ) FROM tab2
----
-2695
-4583
-6023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT DISTINCT 15 DIV - + COUNT( * ) - + 21 AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT 15 / - + COUNT ( * ) - + 21 AS col0 FROM tab2
----
-26

query I rowsort
SELECT + col1 * + - col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL col0 * - ( - col1 ) * + col2 FROM tab2
----
197120
291450
53958

query II rowsort
SELECT col1 AS col0, - 7 * col1 AS col1 FROM tab2 AS cor0
----
51
-357
67
-469
77
-539

query II rowsort
SELECT DISTINCT - col0, + 47 AS col0 FROM tab1 AS cor0
----
-51
47
-85
47
-91
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT SUM( + 25 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7452
SELECT SUM ( + 25 ) FROM tab0 AS cor0
----
75

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

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

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
43
43
43

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

query I rowsort
SELECT ALL + ( + ( - 67 ) ) AS col2 FROM tab1
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT + CAST( 24 AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7457
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT + CAST ( 24 AS INTEGER ) IS NULL
----
-14
-47
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT + 12 DIV - 56 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT + 12 / - 56 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + ( + col0 ), + col1 * + + 69 FROM tab1
----
51
966
85
345
91
3243

onlyif mysql # DIV for integer division: 
query II rowsort label-7461
SELECT ( + - col0 ) AS col1, + col1 + + col2 + - col2 DIV - col2 FROM tab2
----
-46
75
-64
118
-75
126

skipif mysql # not compatible
query II rowsort label-7461
SELECT ( + - col0 ) AS col1, + col1 + + col2 + - col2 / - col2 FROM tab2
----
-46
75
-64
118
-75
126

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, - 63 + + ( + + col1 ) * - col2 col2 FROM tab1
----
51
-1407
85
-358
91
-3259

query I rowsort
SELECT - 80 + + + 81 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + col1 * - 3 col0 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - - col2 = - 78 * + col0 * 22 * col1 * + 89 + 97 - - + 81 * - col0
----

query I rowsort
SELECT ALL + + col1 + - - 74 FROM tab0 AS cor0
----
155
75
95

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col1 FROM tab2 AS cor0 WHERE - col0 + 51 + - 12 BETWEEN + - 59 AND + col2 / + 85 + + - col2 + - col0
----

query I rowsort
SELECT ALL - 23 + - + col1 * + col2 FROM tab1 cor0
----
-1367
-318
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + MIN( DISTINCT - ( - 58 ) ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-7475
SELECT + MIN ( DISTINCT - ( - 58 ) ) FROM tab0
----
58

query II rowsort
SELECT + col1 - - col1 AS col2, + col2 AS col2 FROM tab0
----
162
47
2
99
42
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT + MAX( col0 ) - - COUNT( * ) DIV - - 35 * + MIN( ALL + col1 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7477
SELECT + MAX ( col0 ) - - COUNT ( * ) / - - 35 * + MIN ( ALL + col1 ) col0 FROM tab1
----
91

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

skipif mysql # not compatible
query III rowsort label-7478
SELECT * FROM tab1 WHERE - ( - CAST ( NULL AS REAL ) ) * + + 51 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ALL ( ( - ( + 28 ) ) ) * COUNT( * ) * - ( - COUNT( * ) ) AS col2 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL ( ( - ( + 28 ) ) ) * COUNT ( * ) * - ( - COUNT ( * ) ) AS col2 FROM tab1
----
-252

query I rowsort
SELECT 58 + + 95 FROM tab1
----
153
153
153

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

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

skipif mysql # not compatible
query I rowsort label-7482
SELECT + + COUNT ( * ) + - 9 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL + 29 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT COUNT( * ) * + + MAX( ALL + 11 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT COUNT ( * ) * + + MAX ( ALL + 11 ) FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ( COUNT( * ) ) * - 93 AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-7485
SELECT ( COUNT ( * ) ) * - 93 AS col1 FROM tab0
----
-279

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1 * - col1 + col2 AS col2, + 54 AS col1 FROM tab2 AS cor0
----
-2578
54
-4431
54
-5889
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT - 32 DIV - col2 + - - col2 FROM tab2 cor0
----
24
40
58

skipif mysql # not compatible
query I rowsort label-7490
SELECT - 32 / - col2 + - - col2 FROM tab2 cor0
----
24
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 58 * - + col2 / ( + 13 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2, + col0 * col1 * + + 44 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
10
16881480
47
203522220
99
422532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT COUNT( * ) DIV 76 + - COUNT( * ) FROM tab1 WHERE NOT NULL <> + - 37
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT COUNT ( * ) / 76 + - COUNT ( * ) FROM tab1 WHERE NOT NULL <> + - 37
----
0

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT - + 70 <> + + 54 + + 76 * + 39
----

query I rowsort
SELECT DISTINCT col2 * 84 + + 27 + 88 FROM tab2
----
2047
3475
4987

query I rowsort
SELECT ALL 89 * - 31 FROM tab2
----
-2759
-2759
-2759

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

query I rowsort
SELECT - 98 + + col1 * + + ( - col0 ) + - col1 * - ( 39 ) + - col2 AS col1 FROM tab1 cor0
----
-2610
-362
-387

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7502
SELECT DISTINCT - 40 DIV + + COUNT( + 71 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT - 40 / + + COUNT ( + 71 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 <> - - 88 + - - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7504
SELECT col1 DIV + col2 AS col2, col0 FROM tab0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-7504
SELECT col1 / + col2 AS col2, col0 FROM tab0
----
0
97
1
15
2
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col1 + col0 col0 FROM tab0
----
111
195
195

query I rowsort
SELECT - 23 + - col2 + - col2 FROM tab0 AS cor0
----
-117
-221
-43

query I rowsort
SELECT + col0 * + 53 - + + 29 + + col1 + col1 FROM tab1 AS cor0
----
2702
4486
4888

query I rowsort
SELECT ALL col1 * - - col0 + - - 42 + col2 + - 27 AS col2 FROM tab0 AS cor0
----
1277
1852
211

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

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

query I rowsort
SELECT ALL col1 * - col2 * + 16 - - + 10 AS col1 FROM tab0
----
-1574
-3350
-60902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + - + 52 col0 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT + 92 FROM tab1 WHERE NULL IS NULL
----
92
92
92

query I rowsort
SELECT + col0 + col2 AS col2 FROM tab0 WHERE + 86 IS NOT NULL
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - MAX( ALL col2 ) * - + 64 AS col0 FROM tab0 AS cor0
----
6336

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - MAX ( ALL col2 ) * - + 64 AS col0 FROM tab0 AS cor0
----
6336

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

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT col2 / - - col2 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 15 * - 68 * col1 FROM tab2
----
-52020
-68340
-78540

query I rowsort
SELECT DISTINCT 52 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT MAX( + - ( + - 88 ) ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-7520
SELECT MAX ( + - ( + - 88 ) ) FROM tab2
----
88

query I rowsort
SELECT - + col1 / - + col0 FROM tab0 AS cor0 WHERE NOT NULL < + 79
----

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT COUNT( * ) + COUNT( ALL - + 10 ) + + 58 AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL - + 10 ) + + 58 AS col2 FROM tab2
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7530
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT IN ( + + col0 / + col2 / 34 * - col0, col0, - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT ALL col2 + + + col0 - - + CAST( + col1 AS SIGNED ) FROM tab1
----
149
161
206

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL col2 + + + col0 - - + CAST ( + col1 AS INTEGER ) FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT ALL + + 15, MAX( - 78 ) AS col0 FROM tab0 AS cor0
----
15
-78

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL + + 15, MAX ( - 78 ) AS col0 FROM tab0 AS cor0
----
15
-78

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

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

query II rowsort
SELECT + + 34, col1 FROM tab2 AS cor0
----
34
51
34
67
34
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT 44 * SUM( ALL - col2 ) - + + COUNT( * ) col1 FROM tab2
----
-5327

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7536
SELECT DISTINCT 44 * SUM ( ALL - col2 ) - + + COUNT ( * ) col1 FROM tab2
----
-5327

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

query I rowsort
SELECT ALL - col1 - col2 * + + col1 * - 98 FROM tab2
----
114903
301763
380761

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT 83 * - COUNT( * ) + - 11 FROM tab2
----
-260

skipif mysql # not compatible
query I rowsort label-7540
SELECT 83 * - COUNT ( * ) + - 11 FROM tab2
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL COUNT( - 61 ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL COUNT ( - 61 ) AS col0 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - - 55 - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT - MIN( ALL - col1 ) DIV + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7543
SELECT - MIN ( ALL - col1 ) / + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT + 73 * + COUNT( * ) AS col2 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + 73 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
219

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

skipif mysql # not compatible
query I rowsort label-7545
SELECT + 27 / + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 68 * - col1 + + col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN 16 * + col0 * - 59 AND NULL
----

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

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

query II rowsort
SELECT 54, - col1 * + + col1 AS col1 FROM tab2
----
54
-2601
54
-4489
54
-5929

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

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

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

query II rowsort
SELECT DISTINCT - col2 AS col0, - 23 * col0 FROM tab2 AS cor0
----
-23
-1058
-40
-1472
-58
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - 62 * - ( - MIN( DISTINCT col1 ) ) + 41 * + + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - 62 * - ( - MIN ( DISTINCT col1 ) ) + 41 * + + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT 97 * COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT 97 * COUNT ( * ) FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL + col1 * col2 * - 22 FROM tab0 AS cor0
----
-2178
-4620
-83754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT CAST( - + col0 AS SIGNED ) * - 27 AS col0 FROM tab2 AS cor0
----
1242
1728
2025

skipif mysql # not compatible
query I rowsort label-7556
SELECT CAST ( - + col0 AS INTEGER ) * - 27 AS col0 FROM tab2 AS cor0
----
1242
1728
2025

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

skipif mysql # not compatible
query I rowsort label-7557
SELECT - + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 39 * + 98 * + col2 FROM tab0 AS cor0
----
-179634
-378378
-38220

query II rowsort
SELECT + ( 9 ) * + col0 + - col2, + col1 * - col0 + + + col0 AS col0 FROM tab0 AS cor0
----
773
-1740
774
0
88
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT - col2 DIV - col0 + + + 36 AS col1 FROM tab1 AS cor0
----
36
36
37

skipif mysql # not compatible
query I rowsort label-7560
SELECT - col2 / - col0 + + + 36 AS col1 FROM tab1 AS cor0
----
36
36
37

query I rowsort
SELECT 26 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
26
26
26

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NOT + col0 + - - col0 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7563
SELECT DISTINCT MAX( + 94 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-7563
SELECT DISTINCT MAX ( + 94 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
94
NULL

query I rowsort
SELECT ALL - col1 * - col2 * + col2 * + col0 + - + col1 FROM tab2
----
1240983
16904033
7884723

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col1 FROM tab2
----
-82

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL = col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 59 ) BETWEEN ( NULL ) AND col1 * + + 99 - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL - + MAX( + 0 ) + + + 83 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - + MAX ( + 0 ) + + + 83 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
86

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT - col0 DIV + - col1 + - col0 * - 61 AS col1 FROM tab1 AS cor0
----
3114
5202
5552

skipif mysql # not compatible
query I rowsort label-7572
SELECT - col0 / + - col1 + - col0 * - 61 AS col1 FROM tab1 AS cor0
----
3114
5202
5552

query I rowsort
SELECT col1 * + - col2 + col0 + + 18 AS col2 FROM tab2 AS cor0
----
-1109
-2998
-3793

query I rowsort
SELECT ALL col1 / + 95 AS col1 FROM tab0 cor0 WHERE + col1 * - 6 > NULL
----

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

query I rowsort
SELECT + col2 + 43 FROM tab2 AS cor0
----
101
66
83

query I rowsort
SELECT ALL + - col2 + - 28 FROM tab2 AS cor0
----
-51
-68
-86

query I rowsort
SELECT DISTINCT 50 + col1 + 11 FROM tab1 cor0
----
108
66
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7579
SELECT DISTINCT + - COUNT ( ALL col2 ) * + + 76 col0 FROM tab1 AS cor0
----
-228

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT + 15 * - - COUNT( * ) AS col0 FROM tab0 WHERE + + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT + 15 * - - COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 = NULL
----
0

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

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

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

query II rowsort
SELECT ALL col2 * + 97, col0 - + 22 AS col2 FROM tab2 AS cor0
----
2231
24
3880
42
5626
53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT 38 DIV + col1 FROM tab1 AS cor0 WHERE NOT - col0 >= + col2
----
0
2
7

skipif mysql # not compatible
query I rowsort label-7586
SELECT 38 / + col1 FROM tab1 AS cor0 WHERE NOT - col0 >= + col2
----
0
2
7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT DISTINCT - col1 / - 54 col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab2 cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT + COUNT( * ) DIV + 53 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 76 * - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT + COUNT ( * ) / + 53 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 76 * - - col1 IS NULL
----
0

query I rowsort
SELECT ALL + 3 FROM tab0 WHERE - + col1 * 79 + - 63 >= col1
----

query I rowsort
SELECT + col2 + col0 + + col2 AS col0 FROM tab1
----
203
227
243

query I rowsort
SELECT 23 + + - 72 AS col2 FROM tab0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT - + COUNT( * ) + COUNT( * ) AS col2, 91 AS col1 FROM tab2 AS cor0
----
0
91

skipif mysql # not compatible
query II rowsort label-7593
SELECT - + COUNT ( * ) + COUNT ( * ) AS col2, 91 AS col1 FROM tab2 AS cor0
----
0
91

query I rowsort
SELECT + col2 + 20 FROM tab1 AS cor0
----
116
79
88

query II rowsort
SELECT DISTINCT col2 + 71, col2 FROM tab0 cor0
----
118
47
170
99
81
10

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col1 + 28 FROM tab1 cor0
----
4910
5038
6169

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

skipif mysql # not compatible
query I rowsort label-7597
SELECT + ( + + MIN ( DISTINCT - + 1 ) ) FROM tab0
----
-1

query II rowsort
SELECT ( + 63 ) * - 61, col2 FROM tab2
----
-3843
23
-3843
40
-3843
58

query II rowsort
SELECT DISTINCT + col0 * + 20 * col2, - col1 AS col1 FROM tab2
----
21160
-51
51200
-77
87000
-67

query I rowsort
SELECT 43 * + col2 AS col0 FROM tab1
----
2537
2924
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL + MIN( DISTINCT + 20 ) col1 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7601
SELECT ALL + MIN ( DISTINCT + 20 ) col1 FROM tab2
----
20

query I rowsort
SELECT 61 * 56 FROM tab2
----
3416
3416
3416

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT - COUNT( * ) AS col0, 24 - - + 20 + 93 FROM tab0
----
-3
137

skipif mysql # not compatible
query II rowsort label-7603
SELECT - COUNT ( * ) AS col0, 24 - - + 20 + 93 FROM tab0
----
-3
137

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 18 >= ( col1 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 13 * + 75 AS col2 FROM tab1 WHERE NOT - col2 NOT BETWEEN col0 - + col1 * 80 AND ( col1 )
----
1022
980
989

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

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

query I rowsort
SELECT ALL + 59 AS col1 FROM tab2 WHERE NOT - col2 * + col2 BETWEEN NULL AND ( 44 / + col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT SUM( ALL - 29 ) AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT SUM ( ALL - 29 ) AS col1 FROM tab2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT ALL col0 DIV 89 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL col0 / 89 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 5 AS col2 FROM tab0 WHERE NOT ( + col1 * col0 ) IS NULL
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7611
SELECT ALL * FROM tab0 WHERE + col2 <= ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7611
SELECT ALL * FROM tab0 WHERE + col2 <= ( CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT col1 DIV + ( col2 DIV + col1 ) AS col1 FROM tab1
----
0
2
47

skipif mysql # not compatible
query I rowsort label-7612
SELECT col1 / + ( col2 / + col1 ) AS col1 FROM tab1
----
0
2
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab1 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7614
SELECT 96 DIV + SUM( - CAST( + col1 AS SIGNED ) DIV + 26 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7614
SELECT 96 / + SUM ( - CAST ( + col1 AS INTEGER ) / + 26 ) FROM tab2
----
-19

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

skipif mysql # not compatible
query I rowsort label-7615
SELECT + col2 * col1 + + CAST ( - col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL - COUNT( ALL ( + col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL - COUNT ( ALL ( + col0 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * col2 )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT col2 * - 91 FROM tab1 WHERE CAST( NULL AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7621
SELECT col2 * - 91 FROM tab1 WHERE CAST ( NULL AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT - col2 * col2 - col1 FROM tab1
----
-3486
-4671
-9230

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - 12 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT - 38 * MIN( - CAST( NULL AS SIGNED ) ) - 92 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT - 38 * MIN ( - CAST ( NULL AS INTEGER ) ) - 92 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + 82 + + col0 * - 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 34 AS col2 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT ALL ( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - 2 - 21 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - col0 * + 94 NOT BETWEEN NULL AND - ( ( - ( + col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - col0 * + 94 NOT BETWEEN NULL AND - ( ( - ( + col1 ) ) )
----
0

query I rowsort
SELECT ALL col0 + - col1 FROM tab1 WHERE 85 >= 43
----
37
44
80

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1 WHERE ( NULL ) <> + 82 - - col1
----

query I rowsort
SELECT DISTINCT + - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
1007
2483
4283

query I rowsort
SELECT DISTINCT - 24 + 65 * - 12 AS col2 FROM tab0 AS cor0
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT COUNT( DISTINCT + ( - 41 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7634
SELECT COUNT ( DISTINCT + ( - 41 ) ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 BETWEEN + col0 AND ( NULL )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col1 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
1296
1848
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 57 / 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT DISTINCT - + 75 + col1 DIV col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - + 75 + col1 / col1 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT - - 28 * - 56 + + 78 FROM tab1 AS cor0
----
-1490
-1490
-1490

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7641
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( - 91 AS SIGNED ) * 8 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7641
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( - 91 AS INTEGER ) * 8 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT col1 DIV + col1 + + 3 AS col1 FROM tab2 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-7642
SELECT col1 / + col1 + + 3 AS col1 FROM tab2 cor0
----
4
4
4

query I rowsort
SELECT col0 + - ( col0 ) * + col2 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT DISTINCT 56 + - + col2 FROM tab1
----
-12
-3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - 66 * - - MAX( + col0 ) AS col0 FROM tab1
----
-6006

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - 66 * - - MAX ( + col0 ) AS col0 FROM tab1
----
-6006

query I rowsort
SELECT DISTINCT ( - col2 ) * 7 FROM tab2
----
-161
-280
-406

query I rowsort
SELECT DISTINCT - col1 + + + ( - 80 ) FROM tab0
----
-101
-161
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 33 - col0 )
----

query I rowsort
SELECT - 70 * - 88 * - col1 AS col0 FROM tab0 AS cor0
----
-129360
-498960
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE col0 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col0 + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 70 - + col1 AS col2 FROM tab0 AS cor0
----
-11
49
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - + 23 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-23

query I rowsort
SELECT 26 AS col2 FROM tab0 WHERE + + col1 NOT BETWEEN - col0 + col0 AND ( - col0 )
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT + 41 DIV col2 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7655
SELECT + 41 / col2 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL ( - 95 ) AS col2 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----
0

query II rowsort
SELECT DISTINCT - - col1 AS col2, - 0 * + col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - 57 * - - 93 AS col1 FROM tab0 cor0
----
-5301
-5301
-5301

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 33 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - + col1 <= + col2 * + col0 + 42
----

query I rowsort
SELECT DISTINCT - col1 * + - 34 FROM tab2
----
1734
2278
2618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT DISTINCT COUNT( * ) DIV + + 12 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT COUNT ( * ) / + + 12 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 col1 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 96 * col1 BETWEEN + + 9 / - col1 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( - - col0 * + col0 ) OR NOT ( - ( + 13 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT + + 82 * + COUNT( * ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT + + 82 * + COUNT ( * ) FROM tab0 AS cor0
----
246

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 * - + col1 ) AND ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + 92 + - 23
----
0

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + 92 + - 23
----
0

query I rowsort
SELECT ALL - 71 * + col0 * + 44 + + col2 FROM tab1 AS cor0
----
-159228
-265481
-284216

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT + 87 DIV + col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-7673
SELECT + 87 / + col2 FROM tab0 AS cor0
----
0
1
8

query I rowsort
SELECT ALL - 38 - - col0 FROM tab1
----
13
47
53

query I rowsort
SELECT ALL col0 * + ( 25 ) FROM tab0
----
2175
2425
375

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL NOT IN ( 74 ) )
----

query I rowsort
SELECT DISTINCT - 5 * + col1 FROM tab0
----
-105
-405
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7678
SELECT - col0 - + + CAST( - col0 AS SIGNED ) DIV - 72 + 54 AS col2 FROM tab0
----
-34
-44
39

skipif mysql # not compatible
query I rowsort label-7678
SELECT - col0 - + + CAST ( - col0 AS INTEGER ) / - 72 + 54 AS col2 FROM tab0
----
-34
-44
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT 86 DIV + col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT 86 / + col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE ( NULL IN ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 87 / col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 87 / col0 FROM tab2
----
NULL

query I rowsort
SELECT ( col2 ) + + 5 * col2 FROM tab1
----
354
408
576

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT ALL + col0 + - col0 * col0 DIV - + 3 FROM tab1
----
2493
2851
918

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + col0 + - col0 * col0 / - + 3 FROM tab1
----
2493
2851
918

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT - COUNT( * ) * 28 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - COUNT ( * ) * 28 FROM tab1
----
-84

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + 34 - - col0 AS col2 FROM tab0 AS cor0
----
121
131
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7687
SELECT - col0 + + + col1 - + col1 col1 FROM tab0 WHERE NOT + col2 BETWEEN ( NULL ) AND + CAST( + - col1 AS SIGNED )
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7687
SELECT - col0 + + + col1 - + col1 col1 FROM tab0 WHERE NOT + col2 BETWEEN ( NULL ) AND + CAST ( + - col1 AS INTEGER )
----
-15
-87
-97

query II rowsort
SELECT ALL 99 * - col1 AS col0, col0 AS col1 FROM tab1
----
-1386
51
-4653
91
-495
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT SUM( DISTINCT - + col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7689
SELECT SUM ( DISTINCT - + col0 ) col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT DISTINCT + 33 DIV - COUNT( + col2 ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT + 33 / - COUNT ( + col2 ) AS col0 FROM tab0
----
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col2 NOT IN ( + col2 * - 21 )
----

query I rowsort
SELECT + 22 * 41 AS col0 FROM tab0 cor0 WHERE NOT ( ( NOT ( col2 * + col2 ) IN ( 59 ) ) )
----

query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab1 cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 9 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT col0 DIV + - 46 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7696
SELECT col0 / + - 46 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 * 90 FROM tab0 WHERE NOT NULL IN ( - col0, + col2, + - col0 )
----

query II rowsort
SELECT col0 AS col1, - 46 AS col0 FROM tab1
----
51
-46
85
-46
91
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * + col0 + col2 + col1 col1 FROM tab2
----
2420
5045
5150

query I rowsort
SELECT + col2 + + col0 + + col1 + - 98 / + col1 / + col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( - + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT - + MAX( + + 53 ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT - + MAX ( + + 53 ) FROM tab1 AS cor0
----
-53

query I rowsort
SELECT ALL + - col0 + 53 AS col2 FROM tab0 AS cor0
----
-34
-44
38

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE col0 * + col1 * + + ( - 99 ) + - 93 + + 29 IS NULL
----

query I rowsort
SELECT ALL + + 31 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT 13 + - 39 AS col0 FROM tab1 AS cor0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col1
----

query I rowsort
SELECT 65 + - col2 + - + ( + - col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-2632
-7219
-8284

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - 68 * - 18 + COUNT( * ) col1 FROM tab1 AS cor0
----
1227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7709
SELECT - 68 * - 18 + COUNT ( * ) col1 FROM tab1 AS cor0
----
1227

query I rowsort
SELECT - 45 AS col2 FROM tab0 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT - col0 + - + col2 * + col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + + 16 + + - ( - + 9 ) * + 91 * + - COUNT( * ) FROM tab2 AS cor0
----
-2441

skipif mysql # not compatible
query I rowsort label-7712
SELECT + + 16 + + - ( - + 9 ) * + 91 * + - COUNT ( * ) FROM tab2 AS cor0
----
-2441

query I rowsort
SELECT DISTINCT - + col2 + + 12 - - col0 AS col0 FROM tab1 AS cor0
----
-33
35
38

query I rowsort
SELECT DISTINCT + - 79 AS col1 FROM tab0 cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + col2 col1 FROM tab1 cor0
----
3566
4715
9267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + 56 + + 63 + - + CAST( - col2 AS SIGNED ) FROM tab2
----
142
159
177

skipif mysql # not compatible
query I rowsort label-7716
SELECT + 56 + + 63 + - + CAST ( - col2 AS INTEGER ) FROM tab2
----
142
159
177

query I rowsort
SELECT DISTINCT 96 - col0 FROM tab0
----
-1
81
9

query I rowsort
SELECT DISTINCT 23 * + + 73 AS col1 FROM tab2
----
1679

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + col0 * col1 - + - col0 * col1 ) AND ( + 11 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + col2 + - col0 - + + col2 * - + col2 IS NULL
----
46
64
75

query I rowsort
SELECT + col1 + + 15 * - col2 AS col0 FROM tab1 WHERE ( - - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT 20 DIV - col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT 20 / - col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT - col0 * - ( + col0 ) AS col2 FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * + 18 col2 FROM tab0
----
1728
1728
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL + COUNT( * ) * - - 28 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + COUNT ( * ) * - - 28 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT SUM( - - col1 ) * + - SUM( + col0 ) AS col2 FROM tab1
----
-14982

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT SUM ( - - col1 ) * + - SUM ( + col0 ) AS col2 FROM tab1
----
-14982

query I rowsort
SELECT DISTINCT - 99 * col1 * col0 FROM tab1
----
-42075
-423423
-70686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col2 col1 FROM tab1
----
14
-96
47
-68
5
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( col2 ) / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col0 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT 24 * - 95 * col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( col0 * - - 14 + - 26 + col0 + col1 / + 35 * - + 94 ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7731
SELECT 24 * - 95 * col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( col0 * - - 14 + - 26 + col0 + col1 / + 35 * - + 94 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT SUM( - col1 ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-7732
SELECT SUM ( - col1 ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-309

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT ALL - COUNT( * ) AS col1, + COUNT( DISTINCT 92 ) FROM tab2 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-7733
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( DISTINCT 92 ) FROM tab2 AS cor0
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT + 32 * COUNT( * ) * - - 10 AS col1 FROM tab0 AS cor0
----
960

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT + 32 * COUNT ( * ) * - - 10 AS col1 FROM tab0 AS cor0
----
960

query I rowsort
SELECT ALL - ( 10 ) * - 64 FROM tab0 cor0
----
640
640
640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7737
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + col0, 84 + - - CAST( col1 AS DECIMAL ), 91 )
----

skipif mysql # not compatible
query I rowsort label-7737
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + col0, 84 + - - CAST ( col1 AS REAL ), 91 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 45 * col2 FROM tab0
----
-2115
-4455
-450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7740
SELECT ALL CAST( - + col1 AS SIGNED ) DIV + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CAST ( - + col1 AS INTEGER ) / + col0 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT DISTINCT - 88 + 43 + col1 DIV 19 + - col2 AS col1 FROM tab1
----
-104
-111
-141

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - 88 + 43 + col1 / 19 + - col2 AS col1 FROM tab1
----
-104
-111
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL COUNT( DISTINCT - col0 ) * + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL COUNT ( DISTINCT - col0 ) * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * + + ( - 42 ) AS col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
1680
2436
966

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 + + col1 - col0 <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL MIN( - 2 ) * - SUM( + col2 ) FROM tab0 AS cor0 WHERE ( col2 ) < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL MIN ( - 2 ) * - SUM ( + col2 ) FROM tab0 AS cor0 WHERE ( col2 ) < ( NULL )
----
NULL

query I rowsort
SELECT ALL - col1 * - ( 27 ) * - 34 * + col2 - + - 68 - col2 * - - col1 AS col0 FROM tab1 AS cor0
----
-1235068
-271037
-2937056

query I rowsort
SELECT + 92 + + 96 AS col1 FROM tab0 cor0
----
188
188
188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) <= NULL
----

query I rowsort
SELECT - 34 + - - 6 + - col0 - + col2 + + col1 FROM tab2
----
-46
-55
-94

query I rowsort
SELECT col2 + - 91 FROM tab1
----
-23
-32
5

query II rowsort
SELECT - col0 AS col1, col0 + - - 74 AS col1 FROM tab1
----
-51
125
-85
159
-91
165

query I rowsort
SELECT DISTINCT - + 87 + + + col0 AS col2 FROM tab0 cor0
----
-72
0
10

query I rowsort
SELECT ALL 90 * col0 + - + col2 + ( + + col0 ) * - + col1 * col1 FROM tab1 cor0
----
-192897
-5502
5466

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 * - + col0 * + - 90 * - 59 )
----

query I rowsort
SELECT DISTINCT + 29 + + col0 * 47 * col1 AS col1 FROM tab2 AS cor0
----
110291
231645
236204

query I rowsort
SELECT + - col1 - + - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL + + COUNT( * ) + + 43 AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + + COUNT ( * ) + + 43 AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + - 70 - 59 FROM tab1 AS cor0 WHERE NULL <= col2
----

query II rowsort
SELECT DISTINCT - 36 AS col2, 58 AS col2 FROM tab1 AS cor0
----
-36
58

query I rowsort
SELECT + col0 - - 7 AS col2 FROM tab2 AS cor0
----
53
71
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT ALL col1 - - col2 DIV - - col0 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL col1 - - col2 / - - col0 FROM tab1
----
15
47
5

query I rowsort
SELECT col0 * col1 - - - 5 FROM tab1
----
420
4272
709

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT ALL + 43 - 76 * - col0 + - + col1 DIV col0 * - col2 FROM tab0
----
1418
6655
7415

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + 43 - 76 * - col0 + - + col1 / col0 * - col2 FROM tab0
----
1418
6655
7415

query I rowsort
SELECT DISTINCT - col0 - - - ( - col1 ) AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7765
SELECT ALL col0, - col0 / + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL col0, - col0 / + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + 58 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT - + 25 - + COUNT( * ) + - 72 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-106

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - + 25 - + COUNT ( * ) + - 72 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT + COUNT( * ) * - MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query II rowsort label-7770
SELECT col1 AS col0, 28 DIV col2 col0 FROM tab0 cor0
----
1
0
21
2
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7770
SELECT col1 AS col0, 28 / col2 col0 FROM tab0 cor0
----
1
0
21
2
81
0

query I rowsort
SELECT + + col0 * ( 92 ) FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT MIN( + - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7772
SELECT MIN ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - - 35 * - COUNT( * ) FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7773
SELECT - - 35 * - COUNT ( * ) FROM tab2 AS cor0
----
-105

query I rowsort
SELECT DISTINCT + col1 * + + 96 AS col0 FROM tab0 AS cor0
----
2016
7776
96

query I rowsort
SELECT - col2 * - 13 + - 53 FROM tab2 AS cor0
----
246
467
701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * col0 * + 47 col1 FROM tab2 AS cor0
----
117312
137475
84318

query I rowsort
SELECT ALL - - 61 * - 4 * + col2 * - col0 FROM tab2 AS cor0
----
1061400
258152
624640

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - col0 = - 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT + + col2 DIV + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7779
SELECT + + col2 / + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT MAX( DISTINCT col0 ) + MAX( + 96 ) col1 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7780
SELECT DISTINCT MAX ( DISTINCT col0 ) + MAX ( + 96 ) col1 FROM tab2 AS cor0
----
171

query I rowsort
SELECT ALL + + 89 AS col0 FROM tab2 AS cor0
----
89
89
89

query II rowsort
SELECT col1 * 23, col1 FROM tab2
----
1173
51
1541
67
1771
77

query I rowsort
SELECT DISTINCT col0 - 10 + col0 + - col0 * col1 + - + col0 FROM tab1
----
-350
-4196
-673

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL SUM( col2 ) * + 38 FROM tab1
----
8474

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL SUM ( col2 ) * + 38 FROM tab1
----
8474

query I rowsort
SELECT DISTINCT col2 + + 43 AS col2 FROM tab1
----
102
111
139

query I rowsort
SELECT col0 * - 4 + + - col0 AS col1 FROM tab1
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7787
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT - col2 + + - col2, col1 AS col1 FROM tab1 AS cor0
----
-118
5
-136
47
-192
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT ALL 50 + CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 50 + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 30 + - - col0 FROM tab2 AS cor0
----
16
34
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL 57 + + - COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL 57 + + - COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 8 * - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 68 * - 96 + 44 FROM tab0 AS cor0
----
-6484
-6484
-6484

query I rowsort
SELECT - col1 + 41 * - col0 FROM tab2 AS cor0
----
-1937
-2701
-3142

query I rowsort
SELECT DISTINCT col0 - ( - col2 ) AS col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <= + 91 * + - 47 - - 79 + - 24 - - + col0 + col1 * + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL + 21 * + - COUNT( * ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + 21 * + - COUNT ( * ) AS col2 FROM tab1
----
-63

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + col2 >= ( NULL )
----

query II rowsort
SELECT ALL + col2 AS col1, + col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT - col2 * + 81 FROM tab2
----
-1863
-3240
-4698

query I rowsort
SELECT ALL ( - 24 ) AS col2 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT + MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + 30 NOT BETWEEN NULL AND ( + - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 81 * - - ( - ( + 45 ) ) AS col1 FROM tab0
----
-3645
-3645
-3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT CAST( + + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT CAST ( + + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 57 AS col0 FROM tab0 cor0 WHERE NOT - ( col1 ) * - col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL - SUM( + ( - col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - SUM ( + ( - col1 ) ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT 3 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7812
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * + col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7812
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + 56 AS col0 FROM tab1
----
2856
4760
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT - CAST( - col1 AS SIGNED ) * + 14 AS col2 FROM tab1
----
196
658
70

skipif mysql # not compatible
query I rowsort label-7814
SELECT - CAST ( - col1 AS INTEGER ) * + 14 AS col2 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT + MIN( - col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7815
SELECT DISTINCT + MIN ( - col1 ) col0 FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL 61 + COUNT( ALL - 37 ) AS col1 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 61 + COUNT ( ALL - 37 ) AS col1 FROM tab1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT + 88 DIV + + MIN( ALL col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7818
SELECT + 88 / + + MIN ( ALL col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL 75 * col1 AS col2 FROM tab2
----
3825
5025
5775

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 58 / - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - 38 + - - 69 AS col0 FROM tab2 AS cor0
----
108
82
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 61 * - 29 + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT DISTINCT + col0 - 79 + - + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-16
-34
-5

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + col0 - 79 + - + col0 / + col0 AS col2 FROM tab2 AS cor0
----
-16
-34
-5

query I rowsort
SELECT - 79 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT ALL + col1 - + + 73 AS col1, + 52 FROM tab1
----
-26
52
-59
52
-68
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7826
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7827
SELECT - COUNT( * ) AS col2, - ( + MAX( ALL 64 ) ) AS col1 FROM tab0
----
-3
-64

skipif mysql # not compatible
query II rowsort label-7827
SELECT - COUNT ( * ) AS col2, - ( + MAX ( ALL 64 ) ) AS col1 FROM tab0
----
-3
-64

query I rowsort
SELECT DISTINCT - - 93 FROM tab1 WHERE - col0 BETWEEN NULL AND col0 * - 99 / 92
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 54 - - + col2 + + + col1 + - - 75, + col1 AS col1 FROM tab0 cor0
----
121
1
149
81
52
21

query I rowsort
SELECT ALL - 4 + - - col2 * - col1 FROM tab2 AS cor0
----
-1177
-3084
-3890

query I rowsort
SELECT ALL + - 0 + 43 FROM tab1 cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE 2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT + COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + 18 * - MAX( - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL < 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 18 * - MAX ( - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL < 41
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7836
SELECT DISTINCT + ( 99 ), + col1 DIV + col0 AS col2 FROM tab2
----
99
0
99
1

skipif mysql # not compatible
query II rowsort label-7836
SELECT DISTINCT + ( 99 ), + col1 / + col0 AS col2 FROM tab2
----
99
0
99
1

query I rowsort
SELECT DISTINCT - ( + col1 ) * 49 FROM tab0
----
-1029
-3969
-49

query I rowsort
SELECT 90 FROM tab1 WHERE NOT - 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7839
SELECT ALL + 48 DIV - + col2 AS col1 FROM tab0 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + 48 / - + col2 AS col1 FROM tab0 cor0
----
-1
-4
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT + col1 * + + 18 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT + col1 * + + 18 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - ( col1 ), col2 AS col0 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-7842
SELECT + 37 DIV + col0 + + col2 col1, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7842
SELECT + 37 / + col0 + + col2 col1, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT + ( + 59 ) * - col1 * col0 AS col0 FROM tab0
----
-107793
-5723
-71685

query I rowsort
SELECT DISTINCT + ( + 11 ) + + 17 AS col0 FROM tab0 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ( - SUM( 42 ) ) col2 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7845
SELECT ( - SUM ( 42 ) ) col2 FROM tab0 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT DISTINCT 70, COUNT( * ) AS col1 FROM tab2 AS cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-7846
SELECT DISTINCT 70, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ( - + COUNT( * ) ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7847
SELECT ( - + COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + col0 * + col1 * + 23
----

query II rowsort
SELECT 36, ( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
36
14
36
47
36
5

query I rowsort
SELECT - 8 + - - col1 FROM tab0 AS cor0
----
-7
13
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 + ( 26 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + COUNT( * ) + + - ( + 92 ) * - 14 * - + COUNT( + 32 ) * - + MAX( + col1 ) FROM tab0 AS cor0
----
312987

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + COUNT ( * ) + + - ( + 92 ) * - 14 * - + COUNT ( + 32 ) * - + MAX ( + col1 ) FROM tab0 AS cor0
----
312987

query I rowsort
SELECT - ( + 22 ) FROM tab1, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT - col0 * - 58 + + - col1 + col0 + - col1 + - - col2 * - col1 AS col2 FROM tab0 WHERE - col2 < - 68
----
5622

query I rowsort
SELECT DISTINCT - col1 * + 7 FROM tab1
----
-329
-35
-98

query I rowsort
SELECT ALL col0 + + - 12 FROM tab0
----
3
75
85

query I rowsort
SELECT ALL ( + - 32 ) FROM tab0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - 29 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT - + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7861
SELECT - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7862
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col1 + - 47 < NULL
----

skipif mysql # not compatible
query III rowsort label-7862
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col1 + - 47 < NULL
----

query I rowsort
SELECT DISTINCT + - col1 - + col2 * + + 88 FROM tab1 AS cor0
----
-5197
-6031
-8462

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT ALL - - 54 DIV + + col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL - - 54 / + + col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT DISTINCT - COUNT( * ) DIV + 59 + + - 59 + + COUNT( - col0 ) * 67 * - 9 - + + COUNT( * ) FROM tab2 AS cor0
----
-1871

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT - COUNT ( * ) / + 59 + + - 59 + + COUNT ( - col0 ) * 67 * - 9 - + + COUNT ( * ) FROM tab2 AS cor0
----
-1871

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT + + COUNT( * ) + + MIN( col1 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7866
SELECT + + COUNT ( * ) + + MIN ( col1 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT 32 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
32
32
32

query II rowsort
SELECT + - col1 AS col1, col1 - + col1 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - MAX( + - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - MAX ( + - col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + col0 * 84 + 76 AS col0 FROM tab0 cor0
----
1336
7384
8224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT - col2 * + col1 + + + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0 WHERE NULL < + col1
----

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - col2 * + col1 + + + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0 WHERE NULL < + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( - + col0, col1 * col1, + col2, - col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + + 5 AS col1 FROM tab1
----
-255
-425
-455

query I rowsort
SELECT ALL + 32 * - 37 FROM tab0
----
-1184
-1184
-1184

query I rowsort
SELECT + col2 * col2 * - 21 FROM tab0
----
-205821
-2100
-46389

query I rowsort
SELECT DISTINCT - 99 * + - col1 AS col0 FROM tab2
----
5049
6633
7623

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT DISTINCT 11 DIV col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 11 / col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT ALL - 5 DIV col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - 5 / col1 FROM tab1
----
-1
0
0

query II rowsort
SELECT DISTINCT - + 65 AS col2, - col2 FROM tab1 AS cor0
----
-65
-59
-65
-68
-65
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 > + col0 * col1 * + - 34
----

query I rowsort
SELECT - + col0 * + - col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + - 58 * - col1 FROM tab1 AS cor0
----
2726
290
812

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7884
SELECT MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - MAX( col0 ) AS col0 FROM tab2 WHERE NOT ( - ( - col2 ) ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT - MAX ( col0 ) AS col0 FROM tab2 WHERE NOT ( - ( - col2 ) ) = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7886
SELECT DISTINCT * FROM tab2 WHERE ( NULL >= - col1 + + + CAST( + 68 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7886
SELECT DISTINCT * FROM tab2 WHERE ( NULL >= - col1 + + + CAST ( + 68 AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7887
SELECT - col0 DIV ( + - 89 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7887
SELECT - col0 / ( + - 89 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ( + 24 ) + - MAX( - ( + ( 79 ) ) ) FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-7889
SELECT ( + 24 ) + - MAX ( - ( + ( 79 ) ) ) FROM tab2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT MAX( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT MAX ( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT col1 + + 80 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7892
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( - CAST( - - col0 AS SIGNED ) * + col2 * col0 + - 90 + - - col2 + + + col1 * 88 / col1 / - + col1 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-7892
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( - CAST ( - - col0 AS INTEGER ) * + col2 * col0 + - 90 + - - col2 + + + col1 * 88 / col1 / - + col1 * - col0 )
----

query I rowsort
SELECT DISTINCT - + 92 + - col0 FROM tab1 AS cor0
----
-143
-177
-183

query II rowsort
SELECT ALL 68 + 92 + - col2 AS col0, ( col2 ) AS col0 FROM tab1
----
101
59
64
96
92
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL + 90 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + 90 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT CAST( NULL AS SIGNED ) * 21 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT CAST ( NULL AS INTEGER ) * 21 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 46, col2 * + col0 AS col0 FROM tab0
----
46
705
46
870
46
9603

query II rowsort
SELECT DISTINCT 15, col0 AS col1 FROM tab2
----
15
46
15
64
15
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT + col1 DIV + - col1 + + 80 * - - 20 AS col2 FROM tab0
----
1599

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + col1 / + - col1 + + 80 * - - 20 AS col2 FROM tab0
----
1599

query I rowsort
SELECT col0 * + col1 + + + col1 + - + col0 FROM tab2
----
2351
4941
5017

query I rowsort
SELECT - 17 * + + 0 + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT + - 59 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT + - 59 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - + 15 ) FROM tab1 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 32
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7906
SELECT - - 26 DIV + 37 + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT - - 26 / + 37 + COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT + col2 * col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7909
SELECT ALL col2 * + 56 * + col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE ( NOT ( NULL IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL col2 * + 56 * + col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE ( NOT ( NULL IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 38 * - ( + col1 ) * + col1 AS col0 FROM tab1
----
7448
83942
950

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + col2 * - + col1 * - + 43 = NULL
----

query I rowsort
SELECT - 71 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query II rowsort
SELECT - col1 AS col2, - col1 * + 82 FROM tab0
----
-1
-82
-21
-1722
-81
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7915
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 * - - col2, CAST( NULL AS SIGNED ) - + + 30, + + 45 )
----

skipif mysql # not compatible
query III rowsort label-7915
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 * - - col2, CAST ( NULL AS INTEGER ) - + + 30, + + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT COUNT( * ) + - - COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7916
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT ALL - col2 + - col2 DIV + 82 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL - col2 + - col2 / + 82 FROM tab1 AS cor0
----
-59
-68
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - col1 * - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT - + CAST( + 39 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-44
-53
-86

skipif mysql # not compatible
query I rowsort label-7919
SELECT - + CAST ( + 39 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-44
-53
-86

query I rowsort
SELECT DISTINCT col1 + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT ALL - - col0 + + + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - - 68 + + + col2 + + col0 FROM tab0 AS cor0
----
130
165
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7923
SELECT DISTINCT - 5 DIV - COUNT( * ) - 58 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - 5 / - COUNT ( * ) - 58 FROM tab1
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - 61 + + 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - COUNT( * ) FROM tab1 WHERE - - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7925
SELECT - COUNT ( * ) FROM tab1 WHERE - - col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) FROM tab2
----
51
67
77

query I rowsort
SELECT 0 * + + col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + 51 * - - COUNT( - + col0 ) - - - 22 AS col2 FROM tab2 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-7929
SELECT + 51 * - - COUNT ( - + col0 ) - - - 22 AS col2 FROM tab2 AS cor0
----
131

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 42 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 27 col0 FROM tab1 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col1 <= + - col2 ) OR NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 AS col1, 9 AS col2 FROM tab2 cor0
----
51
9
67
9
77
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7935
SELECT DISTINCT + ( + - col2 ) AS col0, col0 DIV - col2 + col0 * 61 col2 FROM tab1
----
-59
5184
-68
5550
-96
3111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7935
SELECT DISTINCT + ( + - col2 ) AS col0, col0 / - col2 + col0 * 61 col2 FROM tab1
----
-59
5184
-68
5550
-96
3111

query I rowsort
SELECT 17 * - 45 AS col2 FROM tab0
----
-765
-765
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + MIN( + col2 ) * + 43 AS col1 FROM tab0
----
430

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + MIN ( + col2 ) * + 43 AS col1 FROM tab0
----
430

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT - col0 * - - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-7939
SELECT - col0 * - - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7940
SELECT - col1, col0 + 34 * - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + 39 * - + 35 <= - - col2 * + 63 * + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7940
SELECT - col1, col0 + 34 * - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + 39 * - + 35 <= - - col2 * + 63 * + CAST ( col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT DISTINCT col0 DIV col2 + - - col1 * - 24 + + 58 AS col2 FROM tab2 AS cor0
----
-1164
-1549
-1789

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT col0 / col2 + - - col1 * - 24 + + 58 AS col2 FROM tab2 AS cor0
----
-1164
-1549
-1789

query I rowsort
SELECT - - col2 - - - 78 + + col2 * + col1 * - col0 AS col0 FROM tab2 WHERE + - col0 <> + col2
----
-197158
-291470
-54013

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT ( - 82 ) - col0, - 78 / col2 AS col2 FROM tab0 AS cor0 WHERE col1 * - col0 * - CAST( NULL AS SIGNED ) > + - col1
----

skipif mysql # not compatible
query II rowsort label-7943
SELECT ( - 82 ) - col0, - 78 / col2 AS col2 FROM tab0 AS cor0 WHERE col1 * - col0 * - CAST ( NULL AS INTEGER ) > + - col1
----

query I rowsort
SELECT ALL + 73 * 51 AS col2 FROM tab1 AS cor0
----
3723
3723
3723

query I rowsort
SELECT DISTINCT + col0 * + 39 * + - 87 + 70 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-156008
-217082
-254405

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT + SUM( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-7946
SELECT + SUM ( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT DISTINCT col1 - - col1 DIV - 10 FROM tab0 AS cor0
----
1
19
73

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT col1 - - col1 / - 10 FROM tab0 AS cor0
----
1
19
73

query II rowsort
SELECT 83 * - - col0 - - col1 * + col0, ( + col0 ) FROM tab1
----
11830
91
4947
51
7480
85

query I rowsort
SELECT ALL + 95 - - + col2 FROM tab2
----
118
135
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - + col0 ) AS col2, 28 col0 FROM tab0
----
-15
28
-87
28
-97
28

query I rowsort
SELECT ALL 21 * - + col2 FROM tab2
----
-1218
-483
-840

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 12, col1 AS col2 FROM tab2 AS cor0
----
-12
51
-12
67
-12
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL COUNT( * ) * + - COUNT( * ) + + MAX( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - CAST( NULL AS SIGNED ) + col2 IS NULL )
----
66

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + + MAX ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - CAST ( NULL AS INTEGER ) + col2 IS NULL )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7955
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 / + + col0 + col0 * CAST( col0 AS SIGNED ) - - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7955
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 / + + col0 + col0 * CAST ( col0 AS INTEGER ) - - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col1, + col1, + + col0, - ( - col1 ), col0 * - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7957
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + + + col1 * - 94 / - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7957
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + + + col1 * - 94 / - + col2 IS NULL
----

query I rowsort
SELECT + col1 * + 56 - col1 * - 14 * - + ( - col1 ) AS col1 FROM tab1 AS cor0
----
33558
3528
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7959
SELECT + SUM( col1 ) DIV + - COUNT( * ) + + MAX( col2 ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7959
SELECT + SUM ( col1 ) / + - COUNT ( * ) + + MAX ( col2 ) AS col1 FROM tab1
----
74

query I rowsort
SELECT ALL ( + 77 ) FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT + COUNT( * ) DIV - 46 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT + COUNT ( * ) / - 46 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 7 + - 39 * - - 1 AS col1 FROM tab0 WHERE - + 60 >= 39 + - col1
----

query I rowsort
SELECT ( - col0 ) + 33 + - - col1 AS col1 FROM tab0
----
-33
-63
99

query I rowsort
SELECT DISTINCT 81 * col1 AS col1 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT + COUNT( DISTINCT - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 89 col1 FROM tab1 AS cor0
----
-7
21
30

query I rowsort
SELECT 2 * - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + - col2 col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - SUM( DISTINCT + - 5 ) + + - 71 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7969
SELECT - SUM ( DISTINCT + - 5 ) + + - 71 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT ALL col1 + - col2 DIV col1 * col1 col2 FROM tab1 AS cor0
----
-50
-70
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7970
SELECT ALL col1 + - col2 / col1 * col1 col2 FROM tab1 AS cor0
----
-50
-70
0

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL IN ( 92 + + col1 * 27 / + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 + - col0 col1 FROM tab0 AS cor0
----
-15
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT - 58 * - - COUNT( * ) + + 70 FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-7973
SELECT - 58 * - - COUNT ( * ) + + 70 FROM tab1 AS cor0
----
-104

query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + + col0 col2 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT DISTINCT col2 * + col1 * - col1 * + - col2 * CAST( 82 AS SIGNED ) AS col2 FROM tab1
----
148119552
7136050
837582112

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT col2 * + col1 * - col1 * + - col2 * CAST ( 82 AS INTEGER ) AS col2 FROM tab1
----
148119552
7136050
837582112

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT MAX( + + col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT MAX ( + + col1 ) AS col2 FROM tab2 cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT + COUNT( * ) + MIN( ALL - col1 ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL - col1 ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7982
SELECT DISTINCT + col1 * - col2 col2, + CAST( NULL AS SIGNED ) FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7982
SELECT DISTINCT + col1 * - col2 col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT ALL 3 DIV ( - col1 ) FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL 3 / ( - col1 ) FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT + COUNT( * ), - 39 * COUNT( + + col1 ) AS col0 FROM tab0 AS cor0
----
3
-117

skipif mysql # not compatible
query II rowsort label-7984
SELECT + COUNT ( * ), - 39 * COUNT ( + + col1 ) AS col0 FROM tab0 AS cor0
----
3
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT + - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT + - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + COUNT( + + 28 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7986
SELECT + COUNT ( + + 28 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 81 AS col2 FROM tab1 cor0
----
-81
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 70 NOT BETWEEN 89 AND 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT col1 DIV 56 * col2 FROM tab2
----
0
40
58

skipif mysql # not compatible
query I rowsort label-7989
SELECT col1 / 56 * col2 FROM tab2
----
0
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT MAX( DISTINCT - + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7990
SELECT MAX ( DISTINCT - + col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT - - col0 FROM tab0 cor0 WHERE col1 + + + col1 IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE - 72 <= NULL
----

query I rowsort
SELECT + 28 + - 6 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT MIN( DISTINCT + - 89 ) + + MAX( ALL + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7994
SELECT MIN ( DISTINCT + - 89 ) + + MAX ( ALL + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT 55 + - COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-7995
SELECT 55 + - COUNT ( * ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL - - COUNT( 64 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - - COUNT ( 64 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL ( - 55 ) AS col0 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT col2 - 73 FROM tab0 AS cor0
----
-26
-63
26

query I rowsort
SELECT ALL - + 35 - - 36 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT - - CAST( + + 87 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - 63 = + col1
----

skipif mysql # not compatible
query I rowsort label-8000
SELECT - - CAST ( + + 87 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - 63 = + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL MAX( - col2 ) - - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL MAX ( - col2 ) - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT col1 * - - col2 - + 49 * + 99 AS col0, 20 + ( - col1 ) AS col2 FROM tab2
----
-1771
-57
-3678
-31
-965
-47

query I rowsort
SELECT - col0 * + 62 + - col2 + col1 AS col2 FROM tab2
----
-2824
-3931
-4641

query I rowsort
SELECT 8 * - col1 FROM tab1
----
-112
-376
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT 55 DIV - 37 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8005
SELECT 55 / - 37 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL - 31 * + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-1457

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - 31 * + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-1457

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 57 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + - 92 * - COUNT( * ) FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-8008
SELECT + - 92 * - COUNT ( * ) FROM tab2 AS cor0
----
276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN ( + 19 ) AND col2 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 3 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 * + 34, - 41 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL MIN( DISTINCT - CAST( - - 29 AS SIGNED ) ) * - 83 AS col0 FROM tab1 AS cor0
----
2407

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL MIN ( DISTINCT - CAST ( - - 29 AS INTEGER ) ) * - 83 AS col0 FROM tab1 AS cor0
----
2407

query I rowsort
SELECT ALL - ( + col1 ) + 59 FROM tab1 AS cor0
----
12
45
54

query I rowsort
SELECT - col1 + col1 * + 26 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + MAX( ALL 50 ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8015
SELECT + MAX ( ALL 50 ) FROM tab0 AS cor0
----
50

query I rowsort
SELECT col1 + 95 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT ALL SUM( DISTINCT col2 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL SUM ( DISTINCT col2 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 34 + - col1 AS col1 FROM tab1
----
-13
20
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) * - 53 AS col1 FROM tab2 AS cor0 WHERE 51 + - col0 <= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - 53 AS col1 FROM tab2 AS cor0 WHERE 51 + - col0 <= col1
----
NULL

query I rowsort
SELECT 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 97 col1 FROM tab1 WHERE NULL > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT 8 DIV + - 30 * - col0 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8022
SELECT 8 / + - 30 * - col0 + + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - col1 * col2 + - - col2 * + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT + + 42 + 0 * CAST( NULL AS SIGNED ) * - 80 * MIN( + col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT + + 42 + 0 * CAST ( NULL AS INTEGER ) * - 80 * MIN ( + col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL + + COUNT( * ) * + + 80 + COUNT( * ) + - - 95 AS col0 FROM tab2 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + + COUNT ( * ) * + + 80 + COUNT ( * ) + - - 95 AS col0 FROM tab2 AS cor0
----
338

query I rowsort
SELECT - - col1 AS col1 FROM tab1 AS cor0 WHERE col0 + - - col1 <> - col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL MAX( DISTINCT - ( - - col0 ) ) * MAX( - 20 ) FROM tab2
----
920

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL MAX ( DISTINCT - ( - - col0 ) ) * MAX ( - 20 ) FROM tab2
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT + COUNT( * ) * 38 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + COUNT ( * ) * 38 FROM tab1
----
114

query I rowsort
SELECT DISTINCT + 85 * - col2 AS col0 FROM tab2
----
-1955
-3400
-4930

query I rowsort
SELECT DISTINCT + + 49 AS col0 FROM tab0 WHERE 91 + - col2 + - - 46 IS NOT NULL
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT + col2 DIV - 77 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT + col2 / - 77 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 * - + col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT - 69 DIV col2 - + col1 * col1 FROM tab0
----
-1
-447
-6562

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - 69 / col2 - + col1 * col1 FROM tab0
----
-1
-447
-6562

query I rowsort
SELECT + 59 + col0 * col2 FROM tab1
----
4955
5074
6247

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( 87 + col2 / col1 ) < 91
----
91

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT - COUNT( * ) + 47 AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - COUNT ( * ) + 47 AS col2 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL 88 * - COUNT( * ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL 88 * - COUNT ( * ) FROM tab2
----
-264

query I rowsort
SELECT col1 - - 8 * - 69 AS col0 FROM tab2
----
-475
-485
-501

query I rowsort
SELECT DISTINCT col2 * + 14 AS col1 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + COUNT( * ) - 31 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-8043
SELECT + COUNT ( * ) - 31 FROM tab1
----
-28

query I rowsort
SELECT 57 + col2 * + ( - col1 ) FROM tab2
----
-1116
-3023
-3829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT 10 * + 64 + SUM( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT 10 * + 64 + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 24 * + col2 + 24 * + col0 FROM tab1
----
3456
3528
3816

query I rowsort
SELECT DISTINCT ( 45 ) AS col2 FROM tab1
----
45

query I rowsort
SELECT + 3 FROM tab0 WHERE NULL NOT IN ( col0 * col2 )
----

query I rowsort
SELECT + 58 * col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
2958
3886
4466

query I rowsort
SELECT ALL col1 * ( col0 ) AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 - col0 / - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 8 * 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT AVG ( ALL + col1 ) AS col2 FROM tab0 WHERE NULL NOT IN ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( * ) * + COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab1 WHERE NOT + col1 IN ( ( + ( - CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab1 WHERE NOT + col1 IN ( ( + ( - CAST ( NULL AS INTEGER ) ) ) )
----

query I rowsort
SELECT DISTINCT 27 + col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 * + 11 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT 97 IN ( col2 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 + col0 * - 96 AS col2 FROM tab2
----
-4370
-6080
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * + col0 col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query III rowsort label-8062
SELECT ALL * FROM tab1 WHERE + col1 DIV col0 NOT BETWEEN NULL AND + 3 DIV col2
----

skipif mysql # not compatible
query III rowsort label-8062
SELECT ALL * FROM tab1 WHERE + col1 / col0 NOT BETWEEN NULL AND + 3 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - 21 * + ( + SUM( ALL - col0 ) ) AS col0 FROM tab1
----
4767

skipif mysql # not compatible
query I rowsort label-8063
SELECT - 21 * + ( + SUM ( ALL - col0 ) ) AS col0 FROM tab1
----
4767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 17 col1 FROM tab1
----
1003
1156
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT + col1 DIV - col0 + + ( 85 ) FROM tab0 AS cor0
----
80
85
85

skipif mysql # not compatible
query I rowsort label-8065
SELECT + col1 / - col0 + + ( 85 ) FROM tab0 AS cor0
----
80
85
85

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col0 FROM tab2 AS cor0 WHERE ( 77 ) IS NOT NULL
----
2601
4489
5929

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + 95 BETWEEN + col1 * - col2 AND + col2 - col0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8068
SELECT ALL + 16 DIV 76 - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + 16 / 76 - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 14 FROM tab1 AS cor0 WHERE NOT - 52 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT + 83 * 77 AS col2 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - col2 / + 69 + + 56 AND NULL
----
6391
6391

query I rowsort
SELECT 19 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
19
19
19

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL COUNT( * ) * 91 FROM tab1 AS cor0 CROSS JOIN tab2
----
819

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL COUNT ( * ) * 91 FROM tab1 AS cor0 CROSS JOIN tab2
----
819

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 IN ( col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 41 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 91 * - ( + 51 ) FROM tab0 cor0
----
-4641
-4641
-4641

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * col1 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) + + col2 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT col2 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8080
SELECT col2 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8081
SELECT ALL - col0 + CAST( - col1 AS SIGNED ) * col1 FROM tab1 WHERE 63 >= CAST( - 62 AS DECIMAL )
----
-110
-2300
-247

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL - col0 + CAST ( - col1 AS INTEGER ) * col1 FROM tab1 WHERE 63 >= CAST ( - 62 AS REAL )
----
-110
-2300
-247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT CAST( 62 AS SIGNED ) AS col2 FROM tab2
----
62
62
62

skipif mysql # not compatible
query I rowsort label-8082
SELECT CAST ( 62 AS INTEGER ) AS col2 FROM tab2
----
62
62
62

query I rowsort
SELECT DISTINCT + 30 * + col1 FROM tab1
----
1410
150
420

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT - 83 DIV col2 - col1 FROM tab0 AS cor0
----
-1
-29
-82

skipif mysql # not compatible
query I rowsort label-8084
SELECT - 83 / col2 - col1 FROM tab0 AS cor0
----
-1
-29
-82

query I rowsort
SELECT DISTINCT - col2 * 92 AS col2 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT - 7 * - 29 FROM tab1
----
203
203
203

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT COUNT( * ) * COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-8087
SELECT COUNT ( * ) * COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
81

query I rowsort
SELECT ALL - 57 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT 80 * + 49 FROM tab0 cor0
----
3920
3920
3920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 29 ) <> 42 * - 64 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + + col0 ) + - col2 + + 4 * 86 FROM tab0 AS cor0
----
312
342
421

query I rowsort
SELECT + col1 + - col0 + 70 + + 9 FROM tab0 AS cor0
----
-17
13
145

query I rowsort
SELECT ALL col0 - + col1 * + 61 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - col1 ) AND 95
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col0 * col0 ) NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT DISTINCT - - 35 + ( - + col2 ) FROM tab0 AS cor0
----
-12
-64
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 99 + + - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 99 + + - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 32 + - - col0 * 74 * col1 AS col1 FROM tab2 AS cor0
----
173572
364640
371818

query I rowsort
SELECT + + col1 + 57 + 25 AS col0 FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT + 8 + + ( col0 ) FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col2 ) + + col2 IS NULL
----

query I rowsort
SELECT - + col0 + + - 66 FROM tab0 AS cor0
----
-153
-163
-81

query II rowsort
SELECT ALL + ( + col1 ) AS col2, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + 98 * COUNT( * ) + + + 97 AS col0 FROM tab1
----
391

skipif mysql # not compatible
query I rowsort label-8103
SELECT + 98 * COUNT ( * ) + + + 97 AS col0 FROM tab1
----
391

query I rowsort
SELECT - 41 + + 0 AS col0 FROM tab1
----
-41
-41
-41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 + col0 ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL 27 * - + col1 * - col0 FROM tab0
----
2619
32805
49329

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( - col2 ) IN ( - col2 + col0 * + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT + ( - col1 ) DIV - 26 + - + col1 AS col2 FROM tab1 AS cor0
----
-14
-46
-5

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + ( - col1 ) / - 26 + - + col1 AS col2 FROM tab1 AS cor0
----
-14
-46
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT COUNT( * ) * + - 19 * + + 89 - COUNT( ALL col0 ) + MIN( ALL 70 ) AS col1 FROM tab1
----
-5006

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT COUNT ( * ) * + - 19 * + + 89 - COUNT ( ALL col0 ) + MIN ( ALL 70 ) AS col1 FROM tab1
----
-5006

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT DISTINCT - ( + 9 ) - - - col0 DIV + + col0 col2 FROM tab2
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8112
SELECT DISTINCT - ( + 9 ) - - - col0 / + + col0 col2 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT DISTINCT + - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT + - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + 6 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + + MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + + MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT + col0 DIV - - 40 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8116
SELECT + col0 / - - 40 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8117
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * 70 + col1 + + CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-8117
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * 70 + col1 + + CAST ( NULL AS REAL ) AND col1
----

query I rowsort
SELECT - 14 * 59 FROM tab1 AS cor0
----
-826
-826
-826

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8120
SELECT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) = ( + col2 * col0 )
----

skipif mysql # not compatible
query III rowsort label-8120
SELECT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) = ( + col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col0 < + col1
----
-3

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col0 < + col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + ( + SUM( - + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8122
SELECT + ( + SUM ( - + col1 ) ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN 81 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8124
SELECT CAST( - MAX( - + 40 ) AS SIGNED ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8124
SELECT CAST ( - MAX ( - + 40 ) AS INTEGER ) FROM tab2
----
40

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - - col1 + + col1 ) AND NULL
----

query II rowsort
SELECT ALL + col1, + 41 AS col2 FROM tab2
----
51
41
67
41
77
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 68 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8128
SELECT CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8129
SELECT + col2, + col2 + + CAST( + 1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
24
40
41
58
59

skipif mysql # not compatible
query II rowsort label-8129
SELECT + col2, + col2 + + CAST ( + 1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
24
40
41
58
59

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT + 11 * - 35 * + col2 + - ( + 52 ) + - col2 DIV col0 + - col2 AS col0 FROM tab2
----
-15492
-22440
-8930

skipif mysql # not compatible
query I rowsort label-8131
SELECT + 11 * - 35 * + col2 + - ( + 52 ) + - col2 / col0 + - col2 AS col0 FROM tab2
----
-15492
-22440
-8930

query I rowsort
SELECT 23 + 22 + - col2 * ( col1 ) AS col1 FROM tab1
----
-1299
-250
-3151

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL + MIN( - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + MIN ( - col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT + col2 + 95 FROM tab0 AS cor0 WHERE NULL IS NULL
----
105
142
194

query II rowsort
SELECT ALL - 28, + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-28
51
-28
67
-28
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( ( NOT ( CAST( NULL AS SIGNED ) * - col2 ) NOT IN ( 26 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( ( NOT ( CAST ( NULL AS INTEGER ) * - col2 ) NOT IN ( 26 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8137
SELECT - + 45 * COUNT( * ) - + ( + CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE 8 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT - + 45 * COUNT ( * ) - + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE 8 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 WHERE col2 BETWEEN ( - + 27 * + col1 ) AND + col0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 * + + col1 col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - 6 * 16 - + col0 AS col2 FROM tab2
----
-142
-160
-171

query I rowsort
SELECT ALL + 63 * + + col0 FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - 90 - + COUNT( 77 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8142
SELECT - 90 - + COUNT ( 77 ) FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT DISTINCT col1 * 87 * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT col1 * 87 * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + SUM( col1 ) + - MIN( - - 23 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-8145
SELECT + SUM ( col1 ) + - MIN ( - - 23 ) FROM tab0
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( ( + 7 ) - col2 - - + ( - 10 ) )
----

query I rowsort
SELECT col2 + - 58 AS col1 FROM tab1
----
1
10
38

query I rowsort
SELECT DISTINCT 9 + - 1 + - - col0 AS col0 FROM tab1
----
59
93
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - col2 + 31 AS col0, col2 col1 FROM tab0
----
-165
99
-31
47
-66
10

onlyif mysql # DIV for integer division: 
query II rowsort label-8150
SELECT ALL col2 + - col1 DIV 66 AS col0, col0 DIV - + col1 AS col0 FROM tab0
----
10
-4
46
0
99
-97

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL col2 + - col1 / 66 AS col0, col0 / - + col1 AS col0 FROM tab0
----
10
-4
46
0
99
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT MAX( DISTINCT + CAST( + 96 AS SIGNED ) ) AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8151
SELECT MAX ( DISTINCT + CAST ( + 96 AS INTEGER ) ) AS col2 FROM tab2
----
96

query I rowsort
SELECT ALL col0 * - + col2 * - - 74 FROM tab2
----
-189440
-321900
-78292

query I rowsort
SELECT + col2 * + 87 FROM tab0
----
4089
8613
870

query I rowsort
SELECT DISTINCT col1 * ( - + 7 ) * + 71 AS col1 FROM tab2 AS cor0
----
-25347
-33299
-38269

query I rowsort
SELECT + ( + ( ( + col0 ) ) ) * + + col1 + + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT - COUNT( * ) * 88 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8156
SELECT - COUNT ( * ) * 88 FROM tab1 AS cor0
----
-264

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <> - 12
----

query I rowsort
SELECT - + ( 27 ) * + - col1 FROM tab1 AS cor0
----
1269
135
378

query II rowsort
SELECT col1, - col0 * - 59 FROM tab0
----
1
5723
21
5133
81
885

query I rowsort
SELECT DISTINCT 94 * 12 FROM tab0
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL COUNT( * ) * + - MIN( ALL + + ( + col2 ) ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL COUNT ( * ) * + - MIN ( ALL + + ( + col2 ) ) FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT DISTINCT 82 DIV + + ( - col2 ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT 82 / + + ( - col2 ) FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT ALL - 62 DIV + col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - 62 / + col1 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT 31 + - col1 FROM tab1
----
-16
17
26

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2, + 38 AS col1 FROM tab0
----
10
38
47
38
99
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + 32 * + - col2 * - col1 col2 FROM tab2 AS cor0
----
-1013472
-2661120
-3357504

query I rowsort
SELECT - ( - 58 ) FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - col0 + - - col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + col0 * col0 + 23 + - 69 AS col2 FROM tab2 AS cor0
----
2070
4050
5579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT ALL + CAST( - - col2 AS SIGNED ) * + col2 + + 9 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + CAST ( - - col2 AS INTEGER ) * + col2 + + 9 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT 45 + CAST( + + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
103
68
85

skipif mysql # not compatible
query I rowsort label-8175
SELECT 45 + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8176
SELECT - 45 / - + ( - - CAST( NULL AS DECIMAL ) ) + - col0, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8176
SELECT - 45 / - + ( - - CAST ( NULL AS REAL ) ) + - col0, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT - - col2 + - - col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT DISTINCT + + col2 * - 50 + col1 AS col0 FROM tab0 AS cor0
----
-2269
-479
-4949

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + col1 + - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - MIN( ALL + ( 99 ) ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - MIN ( ALL + ( 99 ) ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT COUNT( * ) * - 91 AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8181
SELECT COUNT ( * ) * - 91 AS col1 FROM tab1
----
-273

query II rowsort
SELECT + col2 - + col0, + 81 AS col0 FROM tab0
----
-77
81
2
81
32
81

query I rowsort
SELECT DISTINCT - 19 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 col2 FROM tab2 cor0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 7 * + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT + AVG ( + col0 ) AS col1, COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + 79 NOT BETWEEN NULL AND + 23
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8187
SELECT + AVG ( + col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + 79 NOT BETWEEN NULL AND + 23
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8188
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( col2 ) AS col0, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8188
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col2 ) AS col0, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ALL 6 DIV - col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 6 / - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT DISTINCT ( MAX( DISTINCT col1 ) ), 64 + - + 69 AS col1 FROM tab2 AS cor0
----
77
-5

skipif mysql # not compatible
query II rowsort label-8190
SELECT DISTINCT ( MAX ( DISTINCT col1 ) ), 64 + - + 69 AS col1 FROM tab2 AS cor0
----
77
-5

query I rowsort
SELECT + + 84 * - - col1 FROM tab2 AS cor0
----
4284
5628
6468

query I rowsort
SELECT - - col0 * - 78 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT ALL 38 * - col0 FROM tab0 cor0
----
-3306
-3686
-570

query I rowsort
SELECT DISTINCT - col2 * - col0 * 32 FROM tab2
----
139200
33856
81920

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL SUM( ALL + 48 ) * - - COUNT( col2 ) AS col0 FROM tab1
----
432

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL SUM ( ALL + 48 ) * - - COUNT ( col2 ) AS col0 FROM tab1
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT DISTINCT col1 DIV - - col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT col1 / - - col2 FROM tab0
----
0
1
2

query I rowsort
SELECT - col0 * 88 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1320
-7656
-8536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8198
SELECT COUNT( * ) DIV - + COUNT( * ) AS col0, + 90 + - 78 FROM tab2
----
-1
12

skipif mysql # not compatible
query II rowsort label-8198
SELECT COUNT ( * ) / - + COUNT ( * ) AS col0, + 90 + - 78 FROM tab2
----
-1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT - MIN( ALL col2 ), MAX( ALL col1 ) col1 FROM tab1
----
-59
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8199
SELECT - MIN ( ALL col2 ), MAX ( ALL col1 ) col1 FROM tab1
----
-59
47

query I rowsort
SELECT ALL 7 + + 92 + + - 8 AS col1 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT - col0 * + + 81 * + col1 * + col0 + - 62 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-25546814
-77
-30526937
-67
-8741258
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT - 33 AS col0 FROM tab1 AS cor0 WHERE + col0 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 33 AS col0 FROM tab1 AS cor0 WHERE + col0 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT ALL + 71, + COUNT( * ) AS col1 FROM tab2
----
71
3

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL + 71, + COUNT ( * ) AS col1 FROM tab2
----
71
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8204
SELECT ALL 4, - 39 * + + COUNT( * ) AS col0 FROM tab0
----
4
-117

skipif mysql # not compatible
query II rowsort label-8204
SELECT ALL 4, - 39 * + + COUNT ( * ) AS col0 FROM tab0
----
4
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT DISTINCT col0 + + CAST( - col1 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT col0 + + CAST ( - col1 AS INTEGER ) FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT + SUM( - + 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-8206
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, col2 col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - - 50 + 28 FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col0 + - - col0 * col1 FROM tab0 cor0
----
0
1200
1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) - COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) - COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 46 + + col1 * + + 93 FROM tab2 AS cor0
----
4789
6277
7207

query I rowsort
SELECT 34 - - col1 FROM tab1 AS cor0
----
39
48
81

query I rowsort
SELECT - col2 - + + 44 FROM tab1 cor0
----
-103
-112
-140

query I rowsort
SELECT col0 - + col0 * 45 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT col1 - 14 AS col2 FROM tab2
----
37
53
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT ALL - 1 + + CAST( + col1 AS SIGNED ) FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - 1 + + CAST ( + col1 AS INTEGER ) FROM tab1
----
13
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 - col1 col2 FROM tab0
----
-38
22
42

query I rowsort
SELECT - 44 + col0 FROM tab0
----
-29
43
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + 42 * - 22
----

query I rowsort
SELECT + col2 * - - 81 * + col2 FROM tab1
----
281961
374544
746496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 col0, - col1 AS col1 FROM tab0
----
50
-1
50
-21
50
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 63 / + col2 > NULL
----

query I rowsort
SELECT ALL - col1 * - 20 + 72 FROM tab0 AS cor0 WHERE ( - col1 * + 55 IS NOT NULL )
----
1692
492
92

query I rowsort
SELECT ALL - + ( + 3 ) FROM tab1 cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < ( + - col2 ) - + 70 + col2 + - col1 * - 74 * - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT + MIN( ALL + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8226
SELECT + MIN ( ALL + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 29 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN + + col0 AND + 64
----
46
51
23

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col2 AND - col2 + col0 * - - 94 - + 56
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT 35 FROM tab0 AS cor0 WHERE NOT col0 < + col0 - col2 DIV - col0
----
35

skipif mysql # not compatible
query I rowsort label-8231
SELECT 35 FROM tab0 AS cor0 WHERE NOT col0 < + col0 - col2 / - col0
----
35

query I rowsort
SELECT + col2 * - 72 * + - col0 FROM tab2 AS cor0
----
184320
313200
76176

query I rowsort
SELECT ALL col1 * col0 * + col2 AS col2 FROM tab2 cor0
----
197120
291450
53958

query I rowsort
SELECT + + ( + - 97 ) FROM tab2 AS cor0 WHERE NOT 63 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8235
SELECT DISTINCT - 97 DIV COUNT( * ) * - COUNT( * ) AS col0, - 47 AS col2 FROM tab2 AS cor0
----
96
-47

skipif mysql # not compatible
query II rowsort label-8235
SELECT DISTINCT - 97 / COUNT ( * ) * - COUNT ( * ) AS col0, - 47 AS col2 FROM tab2 AS cor0
----
96
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT - 34 * + COUNT( * ) col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8236
SELECT - 34 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
-102

onlyif mysql # DIV for integer division: 
query II rowsort label-8237
SELECT + + col2 DIV + col1 AS col0, - ( col1 ) col2 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8237
SELECT + + col2 / + col1 AS col0, - ( col1 ) col2 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

query I rowsort
SELECT - 93 FROM tab0 AS cor0 WHERE NOT - 92 IS NULL
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2, 81 )
----

query I rowsort
SELECT 90 + + - col0 AS col0 FROM tab0
----
-7
3
75

query II rowsort
SELECT ALL - 79, 0 AS col2 FROM tab2
----
-79
0
-79
0
-79
0

query I rowsort
SELECT DISTINCT 88 + 18 AS col1 FROM tab0
----
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, 37 FROM tab2 AS cor0
----
51
37
67
37
77
37

query I rowsort
SELECT ALL - 75 * 34 - - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2453
-2463
-2535

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT ( - 41 ) * - + COUNT( * ), - MAX( col2 ) AS col1 FROM tab1 AS cor0
----
123
-96

skipif mysql # not compatible
query II rowsort label-8246
SELECT ( - 41 ) * - + COUNT ( * ), - MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
123
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 11 + - 97 col2 FROM tab0
----
-61
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT - ( + 22 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

query I rowsort
SELECT DISTINCT - + col2 + + - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - + COUNT( DISTINCT + col0 ) + MAX( + - col0 ) col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8251
SELECT - + COUNT ( DISTINCT + col0 ) + MAX ( + - col0 ) col1 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT DISTINCT - + 89 * - - col0 + 93 + col1 * + 57 AS col2 FROM tab0 AS cor0
----
-6453
-8483
3375

query II rowsort
SELECT ALL col1 * - - ( - - 28 ) + + 35 AS col1, - col1 FROM tab1 AS cor0
----
1351
-47
175
-5
427
-14

query I rowsort
SELECT - + 28 FROM tab2 cor0 WHERE NULL IN ( col1 * - + 54 + - - col1 * col1 * + col1, 83, - + col0 )
----

query I rowsort
SELECT ( + + 69 ) AS col0 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT 11 + - MAX( DISTINCT - 24 ) FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT 11 + - MAX ( DISTINCT - 24 ) FROM tab0 cor0
----
35

query I rowsort
SELECT DISTINCT AVG ( - col2 ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8258
SELECT * FROM tab2 AS cor0 WHERE col0 / + col1 + + col1 + - col0 / - + col1 * col0 NOT IN ( col2, - ( - CAST( NULL AS SIGNED ) ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-8258
SELECT * FROM tab2 AS cor0 WHERE col0 / + col1 + + col1 + - col0 / - + col1 * col0 NOT IN ( col2, - ( - CAST ( NULL AS INTEGER ) ), + col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8259
SELECT 72, + col1 DIV + + col2 AS col1 FROM tab0
----
72
0
72
1
72
2

skipif mysql # not compatible
query II rowsort label-8259
SELECT 72, + col1 / + + col2 AS col1 FROM tab0
----
72
0
72
1
72
2

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE 21 / - col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + col2 * + 9 AS col0 FROM tab2
----
207
360
522

query I rowsort
SELECT DISTINCT + ( - 37 ) FROM tab1
----
-37

query I rowsort
SELECT + col1 * - + col2 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8265
SELECT DISTINCT * FROM tab1 WHERE NULL <> + CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8265
SELECT DISTINCT * FROM tab1 WHERE NULL <> + CAST ( col2 AS REAL )
----

query I rowsort
SELECT - 71 * + col2 AS col0 FROM tab1 AS cor0
----
-4189
-4828
-6816

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT SUM( + ( + col2 ) ) DIV + COUNT( * ) col1 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8269
SELECT SUM ( + ( + col2 ) ) / + COUNT ( * ) col1 FROM tab2
----
40

query I rowsort
SELECT ALL 9 + - 44 * + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 065186f3d2bd7965be37b0990c5c2f52

query II rowsort
SELECT - - col0 AS col0, + 70 AS col0 FROM tab2 AS cor0
----
46
70
64
70
75
70

query II rowsort
SELECT col1 AS col0, - col2 + col2 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT 28 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8273
SELECT 28 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8274
SELECT DISTINCT + - 44 DIV - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT + - 44 / - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT DISTINCT - ( + 27 ) + 75 AS col2 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + col0 * + + col2 * col1 AS col1 FROM tab2 cor0
----
197120
291450
53958

query I rowsort
SELECT ALL 93 * + - 57 FROM tab0 cor0 WHERE ( + col2 ) IS NOT NULL
----
-5301
-5301
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT - + ( - - SUM( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - + ( - - SUM ( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - MIN( + 87 ) * + - COUNT( * ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8279
SELECT - MIN ( + 87 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
261

query I rowsort
SELECT 51 * + - col0 FROM tab2
----
-2346
-3264
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT MIN( ALL - + 62 ) AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-8281
SELECT MIN ( ALL - + 62 ) AS col1 FROM tab1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT - col2 DIV 5 col1 FROM tab2
----
-11
-4
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8282
SELECT - col2 / 5 col1 FROM tab2
----
-11
-4
-8

query I rowsort
SELECT col0 * - 73 * 21 * - col1 FROM tab0
----
148701
1862595
2800791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) + 24 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 24 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + - col2 - + col0 AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT ALL + col0 DIV - 96 + + 72 - - col0 + 57 FROM tab0 AS cor0
----
144
216
225

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + col0 / - 96 + + 72 - - col0 + 57 FROM tab0 AS cor0
----
144
216
225

query I rowsort
SELECT ALL col0 * + - col1 AS col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - 12 + MIN( DISTINCT - col2 ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
276

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - 12 + MIN ( DISTINCT - col2 ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8291
SELECT DISTINCT - CAST( - 9 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 37 < - 1 * + 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - col1 AS col1, - 41 + + col1 AS col0 FROM tab0 AS cor0
----
-1
-40
-21
-20
-81
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8294
SELECT ALL * FROM tab2 WHERE NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8294
SELECT ALL * FROM tab2 WHERE NULL > - CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 23 * col2 AS col2 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT DISTINCT - 18 DIV col2 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - 18 / col2 AS col0 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT 69 * - COUNT( * ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT 69 * - COUNT ( * ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT - MIN( ALL 73 ) col0 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8299
SELECT DISTINCT - MIN ( ALL 73 ) col0 FROM tab0
----
-73

query I rowsort
SELECT - col2 * - + ( + 89 ) AS col2 FROM tab0 AS cor0
----
4183
8811
890

query I rowsort
SELECT 94 * - + col0 + col2 + - 88 - + col2 AS col2 FROM tab1 AS cor0
----
-4882
-8078
-8642

query I rowsort
SELECT 79 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8304
SELECT ALL - col2 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8304
SELECT ALL - col2 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT COUNT( * ) + + 44 * + MIN( DISTINCT + 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
317

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT COUNT ( * ) + + 44 * + MIN ( DISTINCT + 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 61 - + col2, CAST( + col1 AS SIGNED ), 78 + - 29 )
----

skipif mysql # not compatible
query I rowsort label-8306
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 61 - + col2, CAST ( + col1 AS INTEGER ), 78 + - 29 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT + - col2 * + + col0 DIV + + col0 + + col0 col0 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8307
SELECT + - col2 * + + col0 / + + col0 + + col0 col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT AVG ( + col0 ) * 21 * - COUNT( * ) col0, 83 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8308
SELECT AVG ( + col0 ) * 21 * - COUNT ( * ) col0, 83 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - 74 + COUNT( * ) AS col1 FROM tab2 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-8309
SELECT - 74 + COUNT ( * ) AS col1 FROM tab2 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT MAX( ALL 95 ) * + 74 + + 8 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
7041

skipif mysql # not compatible
query I rowsort label-8310
SELECT MAX ( ALL 95 ) * + 74 + + 8 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7041

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

query I rowsort
SELECT col1 * col1 + - + ( ( + col0 ) ) * - col1 * 13 + - 73 FROM tab1
----
5477
57737
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query II rowsort
SELECT DISTINCT 83 AS col1, + col0 FROM tab2
----
83
46
83
64
83
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8315
SELECT DISTINCT col2, + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
query II rowsort label-8315
SELECT DISTINCT col2, + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT col2 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND - + 50 * + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT DISTINCT 90, COUNT( * ) AS col2 FROM tab2
----
90
3

skipif mysql # not compatible
query II rowsort label-8318
SELECT DISTINCT 90, COUNT ( * ) AS col2 FROM tab2
----
90
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8319
SELECT * FROM tab0 AS cor0 WHERE 20 + - 19 IN ( col2 + - + CAST( + 94 AS SIGNED ), col2 * - col0, - 88 + - col2, + 31, - col1 + - 9 )
----

skipif mysql # not compatible
query III rowsort label-8319
SELECT * FROM tab0 AS cor0 WHERE 20 + - 19 IN ( col2 + - + CAST ( + 94 AS INTEGER ), col2 * - col0, - 88 + - col2, + 31, - col1 + - 9 )
----

query I rowsort
SELECT col0 - + col0 + + + ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 41 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + 73 FROM tab0 WHERE - col2 <= + - col2
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT + col0 DIV - col1 - + col0 FROM tab0 WHERE NULL IS NULL
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-8323
SELECT + col0 / - col1 - + col0 FROM tab0 WHERE NULL IS NULL
----
-15
-194
-91

query II rowsort
SELECT - 15 + + 9 AS col2, col1 FROM tab0
----
-6
1
-6
21
-6
81

query I rowsort
SELECT - - ( + col2 ) + 81 * - 27 + 75 * - + col1 AS col2 FROM tab0 AS cor0
----
-2163
-3752
-8215

query I rowsort
SELECT DISTINCT + 34 * + + col2 FROM tab2 AS cor0
----
1360
1972
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT - - ( + COUNT( * ) ) * + 4 FROM tab1 AS cor0 WHERE NOT - CAST( 86 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT - - ( + COUNT ( * ) ) * + 4 FROM tab1 AS cor0 WHERE NOT - CAST ( 86 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - - MIN( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - - MIN ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT ALL - col0 AS col0, - 8 FROM tab1
----
-51
-8
-85
-8
-91
-8

query I rowsort
SELECT ALL + 57 * + ( 81 ) AS col0 FROM tab2
----
4617
4617
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL + COUNT( * ) FROM tab0 WHERE + + col1 * - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + + col1 * - col0 IS NULL
----
0

query I rowsort
SELECT 34 * - + col2 FROM tab0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL - SUM( DISTINCT ( + 39 ) ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - SUM ( DISTINCT ( + 39 ) ) AS col2 FROM tab0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, 13 FROM tab1 AS cor0
----
14
13
47
13
5
13

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 AS col1 FROM tab1 cor0
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 66 col0 FROM tab0 AS cor0
----
1
66
21
66
81
66

query I rowsort
SELECT DISTINCT + 90 + - - 72 - + col0 FROM tab1 AS cor0
----
111
71
77

query I rowsort
SELECT DISTINCT 68 + - ( 10 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + + 49 * + + col2 * ( col2 ) < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + 72 ) * + - 56 FROM tab0 cor0
----
-4032

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - 3 ) * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 65 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <= + col2 - - + col1
----

query I rowsort
SELECT + 26 * + col2 FROM tab1
----
1534
1768
2496

query I rowsort
SELECT DISTINCT + 29 - + + col2 AS col2 FROM tab0
----
-18
-70
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8345
SELECT ALL COUNT( * ), + MIN( 38 ) AS col2 FROM tab2
----
3
38

skipif mysql # not compatible
query II rowsort label-8345
SELECT ALL COUNT ( * ), + MIN ( 38 ) AS col2 FROM tab2
----
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + 3 * 79 + + MAX( 84 ) FROM tab0
----
321

skipif mysql # not compatible
query I rowsort label-8346
SELECT + 3 * 79 + + MAX ( 84 ) FROM tab0
----
321

query II rowsort
SELECT - + col0 * - col2 + - - 41, 21 * + col1 AS col1 FROM tab0 AS cor0
----
746
1701
911
441
9644
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL + COUNT( * ) + COUNT( DISTINCT - 52 ) FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + COUNT ( * ) + COUNT ( DISTINCT - 52 ) FROM tab0 cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL MIN( ALL + CAST( NULL AS SIGNED ) ) / MAX( ALL col0 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8349
SELECT ALL MIN ( ALL + CAST ( NULL AS INTEGER ) ) / MAX ( ALL col0 ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - 92 * - COUNT( * ) AS col1 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 92 * - COUNT ( * ) AS col1 FROM tab0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - COUNT( + - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8351
SELECT - COUNT ( + - col1 ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 52 AND NULL
----

query I rowsort
SELECT - col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col0 - ( - 39 ) > + col0
----
51
67
77

query I rowsort
SELECT ALL + col0 * 95 * col1 FROM tab2 AS cor0
----
222870
468160
477375

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + - 10 * + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + - 10 * + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-90

query II rowsort
SELECT ALL 81 AS col0, col1 + 30 AS col2 FROM tab2 AS cor0
----
81
107
81
81
81
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT COUNT( * ) DIV MIN( - col2 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( * ) / MIN ( - col2 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL ( - ( - 53 ) ) * + col0 * - col1 FROM tab1 cor0
----
-22525
-226681
-37842

query I rowsort
SELECT + col1 * ( + - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > + 31
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT CAST( col0 AS SIGNED ) DIV - 32 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8362
SELECT CAST ( col0 AS INTEGER ) / - 32 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT DISTINCT + ( + 85 ) + - col0 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-12
-2
70

query I rowsort
SELECT col0 * - + 79 FROM tab1 WHERE NOT - col1 * - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT + 88 IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 + 17 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 81 ) * + + col0 + - 72 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT MAX( + - 38 ) * + COUNT( * ) * - - 56 AS col2 FROM tab2 AS cor0
----
-6384

skipif mysql # not compatible
query I rowsort label-8368
SELECT MAX ( + - 38 ) * + COUNT ( * ) * - - 56 AS col2 FROM tab2 AS cor0
----
-6384

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT SUM( ALL col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8369
SELECT SUM ( ALL col2 ) FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT - 88, MIN( ALL - 41 ) AS col0 FROM tab2
----
-88
-41

skipif mysql # not compatible
query II rowsort label-8370
SELECT - 88, MIN ( ALL - 41 ) AS col0 FROM tab2
----
-88
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8371
SELECT + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8371
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

query I rowsort
SELECT DISTINCT + ( - - 55 ) - - + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col2 / col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL + COUNT( 67 ) * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + COUNT ( 67 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query II rowsort
SELECT + + col0 * + col2 + 81 * + col1 AS col0, 55 FROM tab2 AS cor0
----
5189
55
8797
55
9777
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT - CAST( + 68 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-108
-126
-91

skipif mysql # not compatible
query I rowsort label-8375
SELECT - CAST ( + 68 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-108
-126
-91

query I rowsort
SELECT DISTINCT 27 + + col0 AS col1 FROM tab1 AS cor0
----
112
118
78

query I rowsort
SELECT col2 * + 51 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT DISTINCT - 30 DIV col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - 30 / col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT - 90 + COUNT( * ) FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT - 90 + COUNT ( * ) FROM tab2 cor0
----
-87

query I rowsort
SELECT ALL - + ( + ( 54 ) ) + col2 * - + col2 AS col2 FROM tab2 AS cor0
----
-1654
-3418
-583

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 cor0 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT DISTINCT 30 - + - 8 DIV + col0 AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT 30 - + - 8 / + col0 AS col2 FROM tab1
----
30

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * - - 61 / col0 * col2 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + - 94 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + ( ( - - col1 ) ) AS col1 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT - MIN( ALL - 36 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - MIN ( ALL - 36 ) FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT ALL + + 21 + + col1 DIV ( - col1 ) + 52 FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + + 21 + + col1 / ( - col1 ) + 52 FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT - + 39 - + col2 AS col2, col0 * + col0 AS col2 FROM tab0 AS cor0
----
-138
9409
-49
7569
-86
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ( MIN( - + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8391
SELECT ( MIN ( - + col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - COUNT( * ) * - - 82 FROM tab1 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8392
SELECT - COUNT ( * ) * - - 82 FROM tab1 cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL + + COUNT( * ) * 7 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + + COUNT ( * ) * 7 AS col1 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT ( - - 35 ) AS col2 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL 6 * col0 * - + col2 FROM tab1 AS cor0
----
-29376
-30090
-37128

query II rowsort
SELECT DISTINCT - col0, 25 AS col2 FROM tab2 AS cor0
----
-46
25
-64
25
-75
25

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 88 - + ( - - col0 ) * + 49 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND + ( col0 ) )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 47 * - 33 <= NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-8400
SELECT DISTINCT + col2, col2, + col1 DIV 45 FROM tab0
----
9 values hashing to a73ab3165dc3ec68d6e7a17996f72345

skipif mysql # not compatible
query III rowsort label-8400
SELECT DISTINCT + col2, col2, + col1 / 45 FROM tab0
----
9 values hashing to a73ab3165dc3ec68d6e7a17996f72345

query II rowsort
SELECT DISTINCT - 42 AS col2, - ( + 31 ) FROM tab1
----
-42
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT - MAX( DISTINCT - + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8402
SELECT - MAX ( DISTINCT - + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8403
SELECT + 52 AS col0, COUNT( * ) AS col2 FROM tab1
----
52
3

skipif mysql # not compatible
query II rowsort label-8403
SELECT + 52 AS col0, COUNT ( * ) AS col2 FROM tab1
----
52
3

query I rowsort
SELECT 87 * + - 36 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 88c837392708b2879e949f7034646367

query I rowsort
SELECT - 24 AS col1 FROM tab1 WHERE NOT 14 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT + COUNT( + + col0 ) + MAX( ALL ( - col0 ) ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT + COUNT ( + + col0 ) + MAX ( ALL ( - col0 ) ) FROM tab2 AS cor0
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 82 BETWEEN + col0 AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 13 FROM tab2 AS cor0 WHERE NOT + col1 IN ( - col1, - col0 )
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT - COUNT( * ) + 11 + - ( 41 ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - COUNT ( * ) + 11 + - ( 41 ) AS col1 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8410
SELECT COUNT( * ) + - - COUNT( - col0 ) DIV + 72 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8410
SELECT COUNT ( * ) + - - COUNT ( - col0 ) / + 72 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT - 28 DIV ( + col2 ) * - 52 FROM tab2
----
0
0
52

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 28 / ( + col2 ) * - 52 FROM tab2
----
0
0
52

query II rowsort
SELECT col2 * - 82 AS col1, col2 FROM tab1 cor0
----
-4838
59
-5576
68
-7872
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 93 * + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL - MAX( + 14 ) * + 7 - + 82 col0 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8415
SELECT ALL - MAX ( + 14 ) * + 7 - + 82 col0 FROM tab0 AS cor0
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8416
SELECT DISTINCT + - COUNT( col0 ) DIV COUNT( * ) + 8 AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT + - COUNT ( col0 ) / COUNT ( * ) + 8 AS col0 FROM tab0 AS cor0
----
7

query II rowsort
SELECT ALL + col2 AS col0, - col1 - - col2 FROM tab0
----
10
-11
47
-34
99
98

query I rowsort
SELECT ALL + 46 + + 24 AS col2 FROM tab2
----
70
70
70

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT - + col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT 13 * - COUNT( * ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT 13 * - COUNT ( * ) FROM tab0
----
-39

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 * col0 + + 53 FROM tab1
----
14
-2548
47
-8228
5
-7172

query I rowsort
SELECT - col0 + 52 FROM tab2 AS cor0
----
-12
-23
6

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + 45 BETWEEN + col0 AND NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 33 * col2 FROM tab1 AS cor0
----
1947
2244
3168

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL - COUNT( DISTINCT - + col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8427
SELECT DISTINCT + MAX( ALL - 18 ), - MIN( - - col2 ) DIV + - ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-18
19

skipif mysql # not compatible
query II rowsort label-8427
SELECT DISTINCT + MAX ( ALL - 18 ), - MIN ( - - col2 ) / + - ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-18
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT - 35 * - + 63 * 60 + - MIN( + - ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 30 * - col2 AND col0
----
132377

skipif mysql # not compatible
query I rowsort label-8428
SELECT - 35 * - + 63 * 60 + - MIN ( + - ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 30 * - col2 AND col0
----
132377

query I rowsort
SELECT ALL + - col1 * - - col2 * - + col0 * - 87 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-1589490
-4968135
-835461

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + 4 DIV - col1 * col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 4 / - col1 * col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + COUNT( * ) * + SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8431
SELECT + COUNT ( * ) * + SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 82 - + col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT - COUNT( * ) * + + COUNT( * ) DIV - - COUNT( * ) * + 1 col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8434
SELECT - COUNT ( * ) * + + COUNT ( * ) / - - COUNT ( * ) * + 1 col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8435
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( + 85 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8435
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( + 85 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8436
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) * + col0 * 73 / + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL ( + CAST ( NULL AS REAL ) ) * + col0 * 73 / + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - COUNT( DISTINCT + 50 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8437
SELECT - COUNT ( DISTINCT + 50 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - ( 55 ) * - col2 * - 1 + + col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT + COUNT( * ) * - - MIN( 43 ) * CAST( + COUNT( DISTINCT - + 87 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8439
SELECT + COUNT ( * ) * - - MIN ( 43 ) * CAST ( + COUNT ( DISTINCT - + 87 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + + ( - + ( - col0 ) ) + - + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 AS col0 FROM tab2 cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT - 91 + - col2 * + 18 + col1 FROM tab1 cor0
----
-1148
-1268
-1805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT - CAST( NULL AS SIGNED ) * - + col2 + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT - CAST ( NULL AS INTEGER ) * - + col2 + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 * - col0 + + col2 + + - 46 NOT BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8447
SELECT - 44 AS col0, + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-44
23
-44
40
-44
58

skipif mysql # not compatible
query II rowsort label-8447
SELECT - 44 AS col0, + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-44
23
-44
40
-44
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8448
SELECT * FROM tab2 cor0 WHERE + 82 - - + CAST( - - 58 AS DECIMAL ) + + col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-8448
SELECT * FROM tab2 cor0 WHERE + 82 - - + CAST ( - - 58 AS REAL ) + + col2 >= NULL
----

query II rowsort
SELECT - ( + col1 ) AS col0, - 3 FROM tab0 cor0
----
-1
-3
-21
-3
-81
-3

query I rowsort
SELECT ALL - col2 - col2 * - col1 FROM tab0
----
0
200
3760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8451
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IN ( + - col0, 99, - col2, - col2 + - col2 - + 39 + - + CAST( NULL AS SIGNED ) / - col2 + + col0 + + 52, 11 )
----

skipif mysql # not compatible
query III rowsort label-8451
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IN ( + - col0, 99, - col2, - col2 + - col2 - + 39 + - + CAST ( NULL AS INTEGER ) / - col2 + + col0 + + 52, 11 )
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + - col1 * + 50 AND col1
----

query I rowsort
SELECT - col1 * - col0 * 18 FROM tab1 AS cor0
----
12852
7650
76986

query I rowsort
SELECT col2 * + ( - 88 ) FROM tab1 AS cor0
----
-5192
-5984
-8448

query I rowsort
SELECT ( - - 74 ) FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT - ( + 61 ) * - col2 * + + 17 FROM tab2 AS cor0
----
23851
41480
60146

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT + + COUNT( DISTINCT + - 20 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT + + COUNT ( DISTINCT + - 20 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - CAST( + col2 AS SIGNED ) * + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) * + CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL < - 85 + - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND + col0 / col1
----

query I rowsort
SELECT - - 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= + 82
----

query II rowsort
SELECT 30 AS col2, col2 AS col0 FROM tab0 AS cor0
----
30
10
30
47
30
99

query I rowsort
SELECT col2 * - 11 FROM tab1 AS cor0
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8464
SELECT + CAST( NULL AS SIGNED ) AS col0, col0 + 34 AS col0 FROM tab2 AS cor0
----
NULL
109
NULL
80
NULL
98

skipif mysql # not compatible
query II rowsort label-8464
SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 + 34 AS col0 FROM tab2 AS cor0
----
NULL
109
NULL
80
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - MAX( DISTINCT + 59 ) * - COUNT( * ) * + 65 * + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
2128425

skipif mysql # not compatible
query I rowsort label-8465
SELECT - MAX ( DISTINCT + 59 ) * - COUNT ( * ) * + 65 * + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
2128425

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - 64 * - SUM( ALL - + col0 ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT - 64 * - SUM ( ALL - + col0 ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT + MIN( ALL + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8467
SELECT + MIN ( ALL + + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT col2 * + col0 / - 13 + + + col2 / - 12 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT ALL + + COUNT( * ) AS col0, - ( - MIN( DISTINCT - + 94 ) ) FROM tab0 cor0
----
3
-94

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL + + COUNT ( * ) AS col0, - ( - MIN ( DISTINCT - + 94 ) ) FROM tab0 cor0
----
3
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT + COUNT( * ) DIV + + COUNT( 57 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8470
SELECT + COUNT ( * ) / + + COUNT ( 57 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL + MIN( ALL - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + MIN ( ALL - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-8472
SELECT + col0 DIV + 5, 43 AS col1 FROM tab1
----
10
43
17
43
18
43

skipif mysql # not compatible
query II rowsort label-8472
SELECT + col0 / + 5, 43 AS col1 FROM tab1
----
10
43
17
43
18
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - COUNT( * ) * - MAX( + col0 ) AS col0 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-8473
SELECT - COUNT ( * ) * - MAX ( + col0 ) AS col0 FROM tab0
----
291

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8474
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - ( + CAST ( NULL AS REAL ) ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 53 * ( col0 ) + + col0 + + col0 / - 30
----

query I rowsort
SELECT DISTINCT + 88 * + - col1 FROM tab1
----
-1232
-4136
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT ALL - + 43 DIV - + 66 * + + col2 + + col2 AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - + 43 / - + 66 * + + col2 + + col2 AS col0 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT ALL + col0 AS col2, 37 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT + + CAST( NULL AS SIGNED ) + col1 * - 71 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT + + CAST ( NULL AS INTEGER ) + col1 * - 71 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + + col1 col0 FROM tab0
----
28
8
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT ALL col2 * + CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT + - 40 * - 69 + + - COUNT( * ) col2 FROM tab0 WHERE - col1 - + col1 IS NULL
----
2760

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8482
SELECT DISTINCT + - 40 * - 69 + + - COUNT ( * ) col2 FROM tab0 WHERE - col1 - + col1 IS NULL
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT MIN( + 8 ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8483
SELECT MIN ( + 8 ) AS col1 FROM tab0
----
8

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NOT col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col0 * col1 col1 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - - 55, + 78, ( - col1 ) )
----

query I rowsort
SELECT + + col1 / + - col0 + + 32 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - + 60 * 23 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL <> 99 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT - col0 DIV + + ( - col1 ) FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT - col0 / + + ( - col1 ) FROM tab2 cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT DISTINCT - 81 DIV - col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - 81 / - col2 AS col1 FROM tab2
----
1
2
3

query I rowsort
SELECT col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 69 AS col0 FROM tab0 cor0
----
-69
-69
-69

query I rowsort
SELECT + + AVG ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----
NULL

query II rowsort
SELECT - col1 + col0 AS col2, col0 AS col2 FROM tab0 AS cor0
----
-66
15
66
87
96
97

query I rowsort
SELECT - + col0 + + 80 FROM tab0 AS cor0
----
-17
-7
65

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE 29 * + col2 + col2 / - 83 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + + COUNT( * ) * + MIN( - + ( - col0 ) ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + + COUNT ( * ) * + MIN ( - + ( - col0 ) ) FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT + col2 + 59 FROM tab1
----
118
127
155

query I rowsort
SELECT DISTINCT + 81 * + col2 AS col2 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT 39 DIV + 46 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT 39 / + 46 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) col1 FROM tab1 WHERE col2 + - col2 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT ALL + CAST( 79 AS SIGNED ) * + COUNT( * ) - 45 * 98 FROM tab0
----
-4173

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + CAST ( 79 AS INTEGER ) * + COUNT ( * ) - 45 * 98 FROM tab0
----
-4173

query I rowsort
SELECT ALL 22 + ( + 21 + + col2 ) AS col2 FROM tab1
----
102
111
139

query III rowsort
SELECT * FROM tab1 WHERE 92 * + col0 IS NULL
----

query I rowsort
SELECT 15 FROM tab0 WHERE 94 * + 66 IS NOT NULL
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - 16 * - COUNT( * ) + 92 FROM tab0
----
140

skipif mysql # not compatible
query I rowsort label-8511
SELECT - 16 * - COUNT ( * ) + 92 FROM tab0
----
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col0 FROM tab1 WHERE NOT + col0 IN ( - col1 )
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT CAST( + col2 AS SIGNED ) + 89 FROM tab2
----
112
129
147

skipif mysql # not compatible
query I rowsort label-8514
SELECT CAST ( + col2 AS INTEGER ) + 89 FROM tab2
----
112
129
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT + 15 * COUNT( * ) AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + 15 * COUNT ( * ) AS col2 FROM tab2
----
45

query I rowsort
SELECT 80 + + ( - col1 ) FROM tab1
----
33
66
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL + CAST( - 98 AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + CAST ( - 98 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
-294

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL >= - 80
----

query I rowsort
SELECT ALL ( - 92 ) - - col0 FROM tab1
----
-1
-41
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 7 * col1 > NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + 94 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT SUM( ALL col2 ) + - 97 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT SUM ( ALL col2 ) + - 97 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col2 - 7 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
3
40
92

query I rowsort
SELECT + 51 * col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT + ( - 20 ) FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ( - SUM( ALL ( - 19 ) ) ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-8526
SELECT ( - SUM ( ALL ( - 19 ) ) ) AS col2 FROM tab0
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT col0 * CAST( + 21 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1827
2037
315

skipif mysql # not compatible
query I rowsort label-8528
SELECT col0 * CAST ( + 21 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1827
2037
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-8529
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT ALL 2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL 2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
162
2
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 * col1 ) IN ( - col1 - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col1 ) + 3 FROM tab0
----
24
4
84

query I rowsort
SELECT - col0 * + 8 + col0 FROM tab2
----
-322
-448
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL - MAX( 96 ) FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - MAX ( 96 ) FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT + 63 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT ALL + col1 + 71 * col0 AS col1 FROM tab0 AS cor0
----
1146
6198
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT + - COUNT( DISTINCT + 10 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8540
SELECT + - COUNT ( DISTINCT + 10 ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT ALL 27 + col0 DIV - 40 FROM tab1 AS cor0
----
25
25
26

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL 27 + col0 / - 40 FROM tab1 AS cor0
----
25
25
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT + COUNT( * ) + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col2 col1 FROM tab0 cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= + col0
----
75
67
58

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( 83 / col2 - + 14 ) > ( col2 * 85 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT + 18 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8546
SELECT + 18 / col2 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col0 * col1 IN ( 55 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT COUNT( * ) DIV + 5 * SUM( 91 * 53 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT COUNT ( * ) / + 5 * SUM ( 91 * 53 ) FROM tab0
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT col2 + 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT MIN( + 18 ) + + 19 AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-8551
SELECT MIN ( + 18 ) + + 19 AS col0 FROM tab1
----
37

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT col2 * - col0 * col0 + - ( - col0 ) AS col0 FROM tab1
----
-249645
-426190
-563017

query I rowsort
SELECT ALL - - 35 + + col0 - 64 * 56 FROM tab0 AS cor0
----
-3452
-3462
-3534

query I rowsort
SELECT ALL - + 61 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL + 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT - col1 FROM tab1 WHERE + - 9 * + 13 IS NULL
----

query I rowsort
SELECT - ( 44 ) FROM tab1
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - col1 + - 7 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL + 35, col0 * + - 70 * ( ( 42 ) ) AS col0 FROM tab1 AS cor0
----
35
-149940
35
-249900
35
-267540

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 33 > - 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8562
SELECT ALL - 19 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( - + 84 AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - 19 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( - + 84 AS INTEGER ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + + + 72 * col2 >= + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + ( - MAX( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8564
SELECT + ( - MAX ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT ALL - col0 AS col0, + 41 FROM tab2 AS cor0
----
-46
41
-64
41
-75
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT COUNT( ALL - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8566
SELECT COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 70 * - + 54 NOT IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 70 * - + 54 NOT IN ( col1 )
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT IN ( ( 59 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT ALL - CAST( + 81 AS SIGNED ) * - + col1 FROM tab1 AS cor0
----
1134
3807
405

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - CAST ( + 81 AS INTEGER ) * - + col1 FROM tab1 AS cor0
----
1134
3807
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * + 26 * - col2 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + MAX( ALL 16 ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8571
SELECT + MAX ( ALL 16 ) AS col2 FROM tab0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT DISTINCT - CAST( 67 AS SIGNED ) * - 65 * - COUNT( * ) FROM tab0
----
-13065

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - CAST ( 67 AS INTEGER ) * - 65 * - COUNT ( * ) FROM tab0
----
-13065

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( + - 15 + - col0 * col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 91 + - col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT DISTINCT + - COUNT( * ) * + - CAST( 88 AS SIGNED ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT + - COUNT ( * ) * + - CAST ( 88 AS INTEGER ) FROM tab1 AS cor0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT ALL - 60 DIV + col1 AS col2 FROM tab0 AS cor0
----
-2
-60
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - 60 / + col1 AS col2 FROM tab0 AS cor0
----
-2
-60
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 44 = + ( 60 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 65 * + 76 AS col2 FROM tab2
----
4940
4940
4940

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT + col2 DIV col2 col1 FROM tab1 WHERE NOT col0 * + - col1 + - + col1 + col0 > ( 2 * col1 )
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8581
SELECT + col2 / col2 col1 FROM tab1 WHERE NOT col0 * + - col1 + - + col1 + col0 > ( 2 * col1 )
----
1
1
1

query I rowsort
SELECT ALL col1 + - 44 AS col2 FROM tab0 cor0
----
-23
-43
37

query II rowsort
SELECT 6 AS col1, - 8 AS col0 FROM tab1 AS cor0
----
6
-8
6
-8
6
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8584
SELECT DISTINCT - ( - + col0 ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - ( - + col0 ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * - - 27 * - - col0 - 60 + - col1 AS col0 FROM tab0 AS cor0
----
204282
253982
5934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT col0 + col0 * - CAST( NULL AS SIGNED ) + + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT col0 + col0 * - CAST ( NULL AS INTEGER ) + + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT - CAST( NULL AS SIGNED ) + col2 + + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT - CAST ( NULL AS INTEGER ) + col2 + + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 + - 54 - - col1 AS col2, + 47 FROM tab2 AS cor0
----
43
47
87
47
88
47

query I rowsort
SELECT + + 50 * - 52 + + col1 FROM tab0 AS cor0
----
-2519
-2579
-2599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = - 3 + + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = - 3 + + CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT + - ( + col2 ) + col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT ALL + 40 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
40
40
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8593
SELECT ALL + CAST( col1 AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 + + ( + col1 ) + 75 )
----

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + CAST ( col1 AS REAL ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 + + ( + col1 ) + 75 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 + col0 * - col1 + + + col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT + 88 + + COUNT( * ) + - COUNT( * ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT + 88 + + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8596
SELECT CAST( + - COUNT( col1 ) AS SIGNED ) * COUNT( * ) DIV + + COUNT( * ) + + + ( ( - 26 ) ) AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8596
SELECT CAST ( + - COUNT ( col1 ) AS INTEGER ) * COUNT ( * ) / + + COUNT ( * ) + + + ( ( - 26 ) ) AS col0 FROM tab2
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 * - col1 col0 FROM tab0
----
-243
-3
-63

query I rowsort
SELECT ALL + col0 + col2 + + - col0 * + 97 FROM tab1 AS cor0
----
-4800
-8101
-8668

query I rowsort
SELECT col2 - - col2 + + + col2 * - - 80 FROM tab0 AS cor0
----
3854
8118
820

query I rowsort
SELECT + + col2 * col2 - - col0 AS col1 FROM tab1 AS cor0
----
3566
4715
9267

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 / + + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 80 ) + - + col0 col2 FROM tab1 AS cor0
----
-131
-165
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT 38 / + 50 AS col0 FROM tab0 WHERE NOT - 74 = ( col1 * + + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-8603
SELECT 38 / + 50 AS col0 FROM tab0 WHERE NOT - 74 = ( col1 * + + ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col1 * - col1 * 26 FROM tab1 AS cor0
----
-5096
-57434
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT CAST( - col1 AS SIGNED ) * + col2 + - + 58 FROM tab0 AS cor0
----
-157
-268
-3865

skipif mysql # not compatible
query I rowsort label-8605
SELECT CAST ( - col1 AS INTEGER ) * + col2 + - + 58 FROM tab0 AS cor0
----
-157
-268
-3865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 35 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + ( + 61 ) IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + ( + 61 ) IS NOT NULL )
----
-3

query I rowsort
SELECT col0 * - 87 + 4 FROM tab2 AS cor0
----
-3998
-5564
-6521

query II rowsort
SELECT DISTINCT - col0 AS col0, 45 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL SUM( ALL - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL SUM ( ALL - col0 ) AS col1 FROM tab0 cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 NOT BETWEEN ( NULL ) AND - 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( 89 * col1 + col2 ) OR NOT NULL > + 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + 96 * - ( - + 49 ) * - 29 - - 19 FROM tab2
----
-46
-136397
-64
-136397
-75
-136397

query III rowsort
SELECT * FROM tab1 WHERE NOT - 38 = + 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN - col0 * - + col2 - - 68 * - + 75 AND - + ( + col0 )
----
15
81
47

query II rowsort
SELECT + 46 AS col0, - col1 + - - 90 AS col1 FROM tab2
----
46
13
46
23
46
39

query I rowsort
SELECT ALL + - col0 + - - col2 AS col2 FROM tab0 WHERE ( NULL ) >= + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT - MAX( + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - MAX ( + col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT - SUM( ALL col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT - SUM ( ALL col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - 51 * 82 AS col1 FROM tab1 AS cor0
----
-4182
-4182
-4182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT - 62 * + + CAST( NULL AS SIGNED ) * - 75 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8622
SELECT - 62 * + + CAST ( NULL AS INTEGER ) * - 75 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8623
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8624
SELECT ALL + 49 * 17 * col0 DIV - + col0 FROM tab1
----
-833
-833
-833

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + 49 * 17 * col0 / - + col0 FROM tab1
----
-833
-833
-833

query I rowsort
SELECT DISTINCT col0 + - + col0 * - - col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT DISTINCT 59 + col0 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT 59 + col0 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL - - col2 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - - col2 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT + ( + - 85 ) - - col1 FROM tab2 AS cor0
----
-18
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT + 99 * + 43 + - + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4254

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8629
SELECT DISTINCT + 99 * + 43 + - + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT DISTINCT + col2 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + col2 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8631
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT + CAST( NULL AS SIGNED ) IN ( + 96 * 18, + 20, + 38 - - 15 + + 51 )
----

skipif mysql # not compatible
query III rowsort label-8631
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT + CAST ( NULL AS INTEGER ) IN ( + 96 * 18, + 20, + 38 - - 15 + + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT COUNT( ALL - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT COUNT ( ALL - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - col2 * + col0 - + col1 AS col1 FROM tab2
----
-1109
-2637
-4417

query I rowsort
SELECT ALL 83 * - + col2 FROM tab2
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT SUM( + - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT SUM ( + - col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT col0 * + 28 AS col0 FROM tab2
----
1288
1792
2100

query I rowsort
SELECT ALL + col0 * - 14 AS col0 FROM tab2
----
-1050
-644
-896

query I rowsort
SELECT DISTINCT 67 * + - col2 AS col2 FROM tab1
----
-3953
-4556
-6432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT ALL - CAST( NULL AS SIGNED ) + - - col2 + - col1 / + 8 * - + 48 * - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL - CAST ( NULL AS INTEGER ) + - - col2 + - col1 / + 8 * - + 48 * - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 26 * - col1 * + - col1 AS col0 FROM tab1
----
-5096
-57434
-650

query I rowsort
SELECT ALL - 93 * - 81 FROM tab1
----
7533
7533
7533

query I rowsort
SELECT DISTINCT - - col0 * col0 + - col2 FROM tab1 AS cor0
----
2505
7166
8213

query II rowsort
SELECT DISTINCT 91 + - ( + 64 ) + + + 2 * - 23 AS col0, + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-19
10
-19
28
-19
94

query I rowsort
SELECT DISTINCT - 43 * + col0 AS col0 FROM tab2
----
-1978
-2752
-3225

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + col1 IN ( col2, col1, + 44 )
----
-59
-68
-96

query I rowsort
SELECT - + 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab0 WHERE - - 52 >= NULL
----

query I rowsort
SELECT - 27 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - ( + 90 ) * - 66 + + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 63 * 27 col2, - 31 * - ( + - ( - 97 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * - - 45, - col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( 41 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT ALL 43 AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-8653
SELECT ALL 43 AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
43
3

query II rowsort
SELECT + 86 AS col1, - 64 FROM tab1 AS cor0
----
86
-64
86
-64
86
-64

query II rowsort
SELECT ALL - - 74 AS col0, 10 AS col1 FROM tab2 AS cor0
----
74
10
74
10
74
10

query I rowsort
SELECT 79 * + - 66 FROM tab2 AS cor0
----
-5214
-5214
-5214

query I rowsort
SELECT + ( + - 94 ) FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8658
SELECT DISTINCT 86 * + 89, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
7654
NULL

skipif mysql # not compatible
query II rowsort label-8658
SELECT DISTINCT 86 * + 89, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
7654
NULL

query I rowsort
SELECT + ( + 7 ) AS col1 FROM tab0
----
7
7
7

query II rowsort
SELECT DISTINCT + + 43, + col2 FROM tab1 WHERE NULL IS NULL
----
43
59
43
68
43
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8661
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) - col1 * - col1 * + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8661
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) - col1 * - col1 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 50 + + 46 AS col1 FROM tab0 cor0
----
-4

query II rowsort
SELECT col2 * col0 AS col0, + 14 + - 65 FROM tab0 AS cor0
----
705
-51
870
-51
9603
-51

query I rowsort
SELECT DISTINCT - + 99 + + col1 AS col0 FROM tab0 AS cor0
----
-18
-78
-98

query I rowsort
SELECT ALL + 50 + + + col2 FROM tab2 AS cor0
----
108
73
90

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE 30 * + + col2 < + 26 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + SUM( + 90 ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8667
SELECT + SUM ( + 90 ) FROM tab2 AS cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL + col2 * col2 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + col2 * col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - ( + - col1 ) col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + col1 * - col1 - - + 81 FROM tab1
----
-115
-2128
56

query I rowsort
SELECT + col1 * - + col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col0 * + col2 - 66 FROM tab0
----
639
804
9537

query I rowsort
SELECT + col0 - col1 * + - ( + col2 ) FROM tab2
----
1219
3144
3961

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT DISTINCT - col2 DIV + 6 FROM tab2
----
-3
-6
-9

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT - col2 / + 6 FROM tab2
----
-3
-6
-9

query I rowsort
SELECT ALL 23 * - 42 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccf517d384495315b48e8280a5acf759

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query I rowsort
SELECT DISTINCT + 58 FROM tab2 WHERE NOT col2 IS NULL
----
58

query I rowsort
SELECT + - 96 * - col1 FROM tab0 AS cor0
----
2016
7776
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 * - - 11 * col0 col1 FROM tab1 AS cor0
----
-25806
-43010
-46046

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT - 23 DIV + + col2 - + - col2 AS col0 FROM tab2 cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-8680
SELECT - 23 / + + col2 - + - col2 AS col0 FROM tab2 cor0
----
22
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT - ( + + SUM( ALL - - 94 ) ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-8681
SELECT - ( + + SUM ( ALL - - 94 ) ) FROM tab0 AS cor0
----
-282

query I rowsort
SELECT - + col2 * 28 * 98 * - col1 FROM tab2 AS cor0
----
10663184
3218712
8451520

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 NOT BETWEEN NULL AND col0
----
15
81
47

query II rowsort
SELECT ALL col2 AS col1, + col2 + - - 72 AS col0 FROM tab2
----
23
95
40
112
58
130

query II rowsort
SELECT col2, 69 * + col1 AS col1 FROM tab0
----
10
1449
47
5589
99
69

onlyif mysql # DIV for integer division: 
query II rowsort label-8686
SELECT DISTINCT col2, col0 DIV - + col1 + - col2 col1 FROM tab1
----
59
-76
68
-69
96
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8686
SELECT DISTINCT col2, col0 / - + col1 + - col2 col1 FROM tab1
----
59
-76
68
-69
96
-99

query I rowsort
SELECT DISTINCT ( + + col1 ) * + col2 / + col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 + + col2 <> 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL 89 * + COUNT( * ) AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL 89 * + COUNT ( * ) AS col0 FROM tab2
----
267

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8689
SELECT + + col2 DIV + - 85 * - CAST( + + ( - 11 ) AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT + + col2 / + - 85 * - CAST ( + + ( - 11 ) AS INTEGER ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - 16 ) * + 17 FROM tab0 AS cor0 WHERE - col1 / + + ( - + col0 ) IS NOT NULL
----
272
272
272

query I rowsort
SELECT ALL - - col2 - ( col0 ) AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + 56 + + ( - col2 ) FROM tab2
----
-2
16
33

query I rowsort
SELECT DISTINCT col0 * + + 7 * col1 * + + 59 - - col0 AS col2 FROM tab0
----
40158
501810
754638

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT - col2 + - - col2 DIV + 83 + 38 FROM tab2
----
-2
-20
15

skipif mysql # not compatible
query I rowsort label-8694
SELECT - col2 + - - col2 / + 83 + 38 FROM tab2
----
-2
-20
15

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE col2 - - - col1 NOT BETWEEN - + 78 AND + + col1
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 34 * col2 IS NULL
----

query I rowsort
SELECT col1 * col1 + + - col1 FROM tab2
----
2550
4422
5852

query I rowsort
SELECT col0 * + - 56 FROM tab2
----
-2576
-3584
-4200

query II rowsort
SELECT DISTINCT 92 AS col2, - col2 * + 76 FROM tab1 cor0
----
92
-4484
92
-5168
92
-7296

query I rowsort
SELECT DISTINCT - - 91 * - col0 AS col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 39, ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT 7 * COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT 7 * COUNT ( * ) FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8704
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 14 * + + 41 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8704
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 14 * + + 41 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - col1 * + col1 + col0 * - ( + col2 ) FROM tab2 AS cor0
----
-133709
-305113
-459093

onlyif mysql # DIV for integer division: 
query II rowsort label-8706
SELECT - col1 * - col1 AS col0, 88 DIV col1 DIV + + 93 * - - 77 AS col1 FROM tab2 cor0
----
2601
0
4489
0
5929
0

skipif mysql # not compatible
query II rowsort label-8706
SELECT - col1 * - col1 AS col0, 88 / col1 / + + 93 * - - 77 AS col1 FROM tab2 cor0
----
2601
0
4489
0
5929
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT DISTINCT 11 * col2 * CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT 11 * col2 * CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * - ( + + col2 ) * - col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT ( - + 17 ) AS col0 FROM tab2
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 63, col2 * + + col2 col2 FROM tab1
----
63
3481
63
4624
63
9216

query I rowsort
SELECT 81 + + 87 AS col1 FROM tab2
----
168
168
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 18 + - - ( + - ( 81 ) ), - col1 AS col2 FROM tab0
----
-63
-1
-63
-21
-63
-81

query I rowsort
SELECT ALL - ( + 11 ) AS col2 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT - 86 FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT - col2 + col1 * - - col1 FROM tab0
----
-98
431
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT col0 + - - col2 + + - col2 AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL + 1 + col2, 49 AS col2 FROM tab1 AS cor0
----
60
49
69
49
97
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 * - 48 = - 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT DISTINCT + col2 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + col2 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( 56 ) AS col2 FROM tab2 cor0
----
56
56
56

query II rowsort
SELECT + 7 AS col1, 23 FROM tab1 cor0
----
7
23
7
23
7
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 57 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8725
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * - + CAST( + + col2 AS DECIMAL ) = + + ( - 44 )
----

skipif mysql # not compatible
query III rowsort label-8725
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * - + CAST ( + + col2 AS REAL ) = + + ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + ( COUNT( * ) ) * 25 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8726
SELECT + ( COUNT ( * ) ) * 25 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT 36 * 56 * ( - col1 ) FROM tab0
----
-163296
-2016
-42336

query I rowsort
SELECT 59 * + - col2 AS col0 FROM tab2
----
-1357
-2360
-3422

query I rowsort
SELECT ( + + 18 ) * - - col0 FROM tab1 AS cor0
----
1530
1638
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 53 * + + 65 col2, col1 AS col0 FROM tab1 AS cor0
----
-161915
47
-17225
5
-48230
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT + ( COUNT( + col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + ( COUNT ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 69 * + ( ( col2 ) ) col0 FROM tab2 AS cor0
----
1587
2760
4002

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 93 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + col0 + + col1 * col2 FROM tab2 cor0
----
-464
115
520

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + col0 + + col1 * col2 FROM tab2 cor0
----
-464
115
520

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT - MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - col0 >= - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT COUNT( * ) DIV + MAX( - + col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT COUNT ( * ) / + MAX ( - + col0 ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 + - 14 + + ( - - col1 ) * + + 56 + - 22 * + 37 col2 FROM tab1
----
-472
1880
32

query I rowsort
SELECT + col2 + col2 * 86 AS col1 FROM tab2
----
2001
3480
5046

query I rowsort
SELECT DISTINCT - col2 + + + 35 * 31 AS col0 FROM tab0
----
1038
1075
986

query II rowsort
SELECT ALL 75 * - + col0, - col1 AS col0 FROM tab0
----
-1125
-81
-6525
-21
-7275
-1

query I rowsort
SELECT DISTINCT - 84 + + col2 FROM tab1 cor0
----
-16
-25
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT - 34 + - - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT - 34 + - - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT 12, - ( + - COUNT( * ) ) + - 51 AS col0 FROM tab0
----
12
-48

skipif mysql # not compatible
query II rowsort label-8744
SELECT 12, - ( + - COUNT ( * ) ) + - 51 AS col0 FROM tab0
----
12
-48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8745
SELECT CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE ( 97 IS NOT NULL )
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8745
SELECT CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE ( 97 IS NOT NULL )
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 18 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT col2 + 66 FROM tab2 cor0
----
106
124
89

query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 WHERE - 53 IS NOT NULL
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT ALL 39 AS col1, - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
39
-51
39
-85
39
-91

skipif mysql # not compatible
query II rowsort label-8749
SELECT ALL 39 AS col1, - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
39
-51
39
-85
39
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 6 col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL + 75 AS col1, - 42 AS col1 FROM tab2
----
75
-42
75
-42
75
-42

query II rowsort
SELECT + 8 AS col1, col0 AS col2 FROM tab0
----
8
15
8
87
8
97

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - + col2 * 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + MAX( DISTINCT - col2 ) col2 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8756
SELECT + MAX ( DISTINCT - col2 ) col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT + col2 * - + 42 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8758
SELECT ALL - 48 * col1 AS col1, CAST( + ( + 66 ) AS SIGNED ) FROM tab1
----
-2256
66
-240
66
-672
66

skipif mysql # not compatible
query II rowsort label-8758
SELECT ALL - 48 * col1 AS col1, CAST ( + ( + 66 ) AS INTEGER ) FROM tab1
----
-2256
66
-240
66
-672
66

query II rowsort
SELECT + col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IS NOT NULL OR ( col1 ) * + 33 BETWEEN + + col0 * - col2 * + 84 * - col2 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - col0 * - col0 FROM tab2
----
-262144
-421875
-97336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, ( - col0 ) AS col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT 41 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 * ( - 18 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT ALL col0 DIV + col1 + - + col1 FROM tab0 AS cor0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL col0 / + col1 + - + col1 FROM tab0 AS cor0
----
-17
-81
96

query I rowsort
SELECT 75 * col2 * + 4 AS col0 FROM tab0 cor0
----
14100
29700
3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT + - 87 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + + col1 ), + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8767
SELECT + - 87 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + + col1 ), + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - COUNT( * ) + + 13 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8768
SELECT - COUNT ( * ) + + 13 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab0 AS cor0
----
-60

query II rowsort
SELECT col2 + + col2 AS col0, - col0 * - - 3 + col0 FROM tab1 AS cor0
----
118
-170
136
-182
192
-102

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 6 * + ( - - col1 ) AND 24
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE - 88 * + 17 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT DISTINCT col1 + - col2 DIV - + col1 FROM tab0 cor0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT col1 + - col2 / - + col1 FROM tab0 cor0
----
100
21
81

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE col2 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT + + col0 - - - col0 + + + col2 + - + col0 DIV + 72 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-8776
SELECT + + col0 - - - col0 + + + col2 + - + col0 / + 72 FROM tab1 AS cor0
----
58
67
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8777
SELECT ALL + col1 * + col1, col2 DIV 16 AS col1 FROM tab2
----
2601
1
4489
3
5929
2

skipif mysql # not compatible
query II rowsort label-8777
SELECT ALL + col1 * + col1, col2 / 16 AS col1 FROM tab2
----
2601
1
4489
3
5929
2

query III rowsort
SELECT * FROM tab1 WHERE + - col2 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + COUNT( * ) * - ( + 6 ) + COUNT( * ) col2 FROM tab2
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT + COUNT ( * ) * - ( + 6 ) + COUNT ( * ) col2 FROM tab2
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 74 * - col0 IS NOT NULL
----

query I rowsort
SELECT + ( - + 74 ) AS col1 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL + COUNT( * ) - - COUNT( * ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + COUNT ( * ) - - COUNT ( * ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 15 * + + col2 AS col0 FROM tab0
----
1485
150
705

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( - col0 NOT BETWEEN + - 39 + col2 AND - 98 * + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( - col0 NOT BETWEEN + - 39 + col2 AND - 98 * + col1 )
----
3

query I rowsort
SELECT ALL ( + col0 ) * + col2 * 6 AS col2 FROM tab0
----
4230
5220
57618

query II rowsort
SELECT ALL + 92 AS col2, + col0 FROM tab0
----
92
15
92
87
92
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT COUNT( ALL - + 20 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8788
SELECT COUNT ( ALL - + 20 ) FROM tab1
----
3

query II rowsort
SELECT - col2 * - - ( - col1 ) AS col2, - col2 AS col2 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL - MIN( 15 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-15

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - MIN ( 15 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-15

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE NULL > col0 + - col1 * + 9
----

query I rowsort
SELECT ALL + + 29 AS col0 FROM tab1 AS cor0 WHERE NOT ( + - 60 ) + + 83 IS NULL
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT ALL + + 18 + - COUNT( * ) col2 FROM tab1 AS cor0 WHERE - col1 BETWEEN col1 / - - 91 + + - CAST( NULL AS SIGNED ) - col0 AND - 19
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8794
SELECT ALL + + 18 + - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE - col1 BETWEEN col1 / - - 91 + + - CAST ( NULL AS INTEGER ) - col0 AND - 19
----
18

query I rowsort
SELECT DISTINCT + 70 + col0 + 60 AS col1 FROM tab1 cor0
----
181
215
221

query II rowsort
SELECT DISTINCT col1 AS col2, 78 + + 12 FROM tab0 AS cor0
----
1
90
21
90
81
90

query III rowsort
SELECT * FROM tab0 WHERE NULL = col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT 52 * COUNT( * ) * + 15 + + 81 AS col2 FROM tab0
----
2421

skipif mysql # not compatible
query I rowsort label-8798
SELECT 52 * COUNT ( * ) * + 15 + + 81 AS col2 FROM tab0
----
2421

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT col1 DIV - + col2 FROM tab1 WHERE NOT col2 * - - col0 + - + 90 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT col1 / - + col2 FROM tab1 WHERE NOT col2 * - - col0 + - + 90 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + - col2 IS NULL
----

query I rowsort
SELECT - 82 + col2 AS col0 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL - COUNT( * ) * 90 AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - COUNT ( * ) * 90 AS col1 FROM tab1
----
-270

query I rowsort
SELECT + 95 AS col0 FROM tab1 WHERE - 92 IS NOT NULL
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT DISTINCT 97 * + col0 DIV col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT 97 * + col0 / col0 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8805
SELECT ALL 39 DIV + col1 * + 65 + 57 * + + col0, + col2 * col0 * - col0 AS col0 FROM tab2
----
2622
-48668
3648
-163840
4275
-326250

skipif mysql # not compatible
query II rowsort label-8805
SELECT ALL 39 / + col1 * + 65 + 57 * + + col0, + col2 * col0 * - col0 AS col0 FROM tab2
----
2622
-48668
3648
-163840
4275
-326250

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 / - col0 >= NULL
----

query I rowsort
SELECT 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8809
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8809
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT + + col0 DIV - col1 - - - col2 AS col0 FROM tab0 AS cor0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-8810
SELECT + + col0 / - col1 - - - col2 AS col0 FROM tab0 AS cor0
----
-14
-196
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT + 12, 59 - + COUNT( * ) col1 FROM tab1 cor0
----
12
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8812
SELECT + 12, 59 - + COUNT ( * ) col1 FROM tab1 cor0
----
12
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT ALL ( - col2 ) * + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL ( - col2 ) * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT + col1 DIV - ( - col1 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8814
SELECT + col1 / - ( - col1 ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8815
SELECT DISTINCT - SUM( + 81 ) DIV 67 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - SUM ( + 81 ) / 67 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
-103

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - 28 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT DISTINCT 74 DIV col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 74 / col1 FROM tab2
----
0
1

query I rowsort
SELECT ALL + 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query II rowsort
SELECT ALL 62 AS col0, + 48 AS col2 FROM tab2
----
62
48
62
48
62
48

query I rowsort
SELECT + 30 * - col2 * col0 + - col1 FROM tab0 AS cor0
----
-21231
-26121
-288091

query I rowsort
SELECT - 22 + + - col2 + - col2 FROM tab2 AS cor0
----
-102
-138
-68

query I rowsort
SELECT - col1 + - 34 FROM tab0 AS cor0
----
-115
-35
-55

query I rowsort
SELECT ALL - col1 + - col0 * col2 - - 11 AS col2 FROM tab0 cor0
----
-775
-880
-9593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 + + col0 * - col0 AS col1, col0 col2 FROM tab0 AS cor0
----
-247
15
-7591
87
-9431
97

query II rowsort
SELECT col0, + col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + - 57 + ( + col0 ) * - - col0 * + ( col1 ) - + col2 - + col1 * - col1 * + - 61 / 40 * + 74
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8827
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( 73, + col2 / + 74, + CAST( + ( + col1 ) AS DECIMAL ), - - col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8827
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( 73, + col2 / + 74, + CAST ( + ( + col1 ) AS REAL ), - - col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 97
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT DISTINCT + 89 AS col2, + COUNT( * ) FROM tab0
----
89
3

skipif mysql # not compatible
query II rowsort label-8829
SELECT DISTINCT + 89 AS col2, + COUNT ( * ) FROM tab0
----
89
3

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - col1 / col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col1 / col2 IS NOT NULL
----
0

query II rowsort
SELECT + 90, col0 + ( col0 ) AS col0 FROM tab1
----
90
102
90
170
90
182

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT DISTINCT - 61 AS col2, - COUNT( * ) + - - ( - + COUNT( * ) ) + COUNT( * ) FROM tab0 AS cor0
----
-61
-3

skipif mysql # not compatible
query II rowsort label-8833
SELECT DISTINCT - 61 AS col2, - COUNT ( * ) + - - ( - + COUNT ( * ) ) + COUNT ( * ) FROM tab0 AS cor0
----
-61
-3

query I rowsort
SELECT - 57 + + + col2 FROM tab0 AS cor0
----
-10
-47
42

query II rowsort
SELECT DISTINCT + col1 AS col0, + 97 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
97
21
97
81
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT - + 33 DIV - col2 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8836
SELECT - + 33 / - col2 AS col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 <= NULL )
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT 26 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8839
SELECT - COUNT( * ) col0, ( 57 ) + - - COUNT( col0 ) * + COUNT( * ) AS col2 FROM tab0
----
-3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8839
SELECT - COUNT ( * ) col0, ( 57 ) + - - COUNT ( col0 ) * + COUNT ( * ) AS col2 FROM tab0
----
-3
66

query I rowsort
SELECT 1 * - 58 FROM tab0 AS cor0
----
-58
-58
-58

query II rowsort
SELECT - 70 + + 41, + col0 - col0 AS col0 FROM tab2
----
-29
0
-29
0
-29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT + - 15 + COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + - 15 + COUNT ( * ) FROM tab1 cor0
----
-12

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + col1 - - col0 * + + 68 * + 83 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + 41 FROM tab1 AS cor0
----
-27
-36
6

query II rowsort
SELECT - col1 - 20, col1 AS col0 FROM tab2 AS cor0
----
-71
51
-87
67
-97
77

query II rowsort
SELECT DISTINCT col0 - - - 28, + col2 FROM tab2 AS cor0
----
18
23
36
40
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL + COUNT( * ) - - 69 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + COUNT ( * ) - - 69 FROM tab1
----
72

query I rowsort
SELECT - col0 * + col1 * - - col0 * + col2 + col1 AS col0 FROM tab0
----
-1589469
-856494
-931490

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT COUNT( * ) + - + 82 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-8850
SELECT COUNT ( * ) + - + 82 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + ( + COUNT( col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + ( + COUNT ( col2 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE - col0 = - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT - col2 <= + 98 + + 57 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT - col2 <= + 98 + + 57 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 81 + + 58 FROM tab0
----
139
139
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL MAX( DISTINCT 55 ) col2 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT ALL MAX ( DISTINCT 55 ) col2 FROM tab2
----
55

query I rowsort
SELECT ALL ( - ( col0 ) ) + - col1 AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + ( + + 69 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT + col1 NOT BETWEEN + + col2 AND - col0 + + 28 ) )
----
69

query II rowsort
SELECT - 76, col2 AS col1 FROM tab1
----
-76
59
-76
68
-76
96

query I rowsort
SELECT ALL - 6 * col0 FROM tab2
----
-276
-384
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL - SUM( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - SUM ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT MAX( DISTINCT - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8861
SELECT MAX ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 44 NOT IN ( + + col1 * + - col0 * + col1, 6 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT DISTINCT - ( CAST( - COUNT( * ) AS SIGNED ) ) * + 12 col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8863
SELECT DISTINCT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) * + 12 col0 FROM tab2 AS cor0
----
36

query I rowsort
SELECT + ( 81 ) AS col1 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL - ( + ( COUNT( * ) ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8865
SELECT ALL - ( + ( COUNT ( * ) ) ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT col2 DIV - col1 + + - col1 AS col2 FROM tab0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-8866
SELECT col2 / - col1 + + - col1 AS col2 FROM tab0
----
-100
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT 72 * - MAX( ALL - CAST( + - 68 AS SIGNED ) ) AS col0 FROM tab0
----
-4896

skipif mysql # not compatible
query I rowsort label-8867
SELECT 72 * - MAX ( ALL - CAST ( + - 68 AS INTEGER ) ) AS col0 FROM tab0
----
-4896

query III rowsort
SELECT * FROM tab0 WHERE NOT 43 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL COUNT( * ) + - - 83 + + 82 AS col0 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL COUNT ( * ) + - - 83 + + 82 AS col0 FROM tab0
----
168

query I rowsort
SELECT ALL 41 + + 28 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT + ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8871
SELECT DISTINCT + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 45 AS col0 FROM tab2 cor0
----
45
45
45

query I rowsort
SELECT + - 46 AS col0 FROM tab1 cor0
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + + MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + + MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT - COUNT( ALL - 81 ) * COUNT( * ) - 24 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - COUNT ( ALL - 81 ) * COUNT ( * ) - 24 FROM tab1
----
-33

query I rowsort
SELECT - col2 + + 79 AS col0 FROM tab2 AS cor0
----
21
39
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT - + 95 * - - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT - + 95 * - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 67 + - - col2 AS col0 FROM tab2 AS cor0
----
107
125
90

query I rowsort
SELECT ALL + col2 + + 88 / + 34 * 38 FROM tab0 AS cor0 WHERE NULL <= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT ALL + - COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 45 * + - col0 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT COUNT( * ) - - 88 AS col2 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT COUNT ( * ) - - 88 AS col2 FROM tab2
----
91

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col2 - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - MIN( DISTINCT - col0 ) * + COUNT( * ) AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - MIN ( DISTINCT - col0 ) * + COUNT ( * ) AS col0 FROM tab1
----
273

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT ( - 95 ) BETWEEN - CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT ( - 95 ) BETWEEN - CAST ( NULL AS INTEGER ) AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT DISTINCT 8 DIV + + col0 + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT 8 / + + col0 + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT DISTINCT - COUNT( * ) AS col0, - 10 * + 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-330

skipif mysql # not compatible
query II rowsort label-8891
SELECT DISTINCT - COUNT ( * ) AS col0, - 10 * + 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-330

query II rowsort
SELECT DISTINCT col2 AS col1, 40 FROM tab0
----
10
40
47
40
99
40

query I rowsort
SELECT 37 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT + - col0 + + col0 + + col1 * - col1 + col0 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-354
-6546
96

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * 20 AS col0 FROM tab0
----
1980
200
940

query II rowsort
SELECT ALL col2 AS col1, col1 + - - col0 AS col2 FROM tab1
----
59
90
68
138
96
65

query I rowsort
SELECT DISTINCT - 0 * + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT col1 * + col1 * + + col0 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT COUNT( * ) + + 28 AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8900
SELECT COUNT ( * ) + + 28 AS col0 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - + 53 + COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - + 53 + COUNT ( * ) FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT DISTINCT + MIN( - col2 ) * + 25 * - - COUNT( * ) + + - ( + ( - - 84 ) ) - + + MAX( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-4383

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + MIN ( - col2 ) * + 25 * - - COUNT ( * ) + + - ( + ( - - 84 ) ) - + + MAX ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-4383

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 - + col2 NOT BETWEEN - 15 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
89

query I rowsort
SELECT DISTINCT ( - 80 ) * + 73 AS col2 FROM tab0
----
-5840

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + COUNT( * ) - + COUNT( * ) + + 30 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8906
SELECT + COUNT ( * ) - + COUNT ( * ) + + 30 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL col2 * + 63 AS col1 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT DISTINCT + col0 + - col0 * + + col0 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8909
SELECT ALL - col0 + ( - CAST( - - col1 AS SIGNED ) ) * col0 - + + col2 DIV - 46 col2, - ( 25 ) * - 85 col0 FROM tab0 AS cor0
----
-1229
2125
-1914
2125
-192
2125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8909
SELECT ALL - col0 + ( - CAST ( - - col1 AS INTEGER ) ) * col0 - + + col2 / - 46 col2, - ( 25 ) * - 85 col0 FROM tab0 AS cor0
----
-1229
2125
-1914
2125
-192
2125

query I rowsort
SELECT ALL - + col0 + 1 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT DISTINCT 24 * col0 FROM tab0 cor0
----
2088
2328
360

query I rowsort
SELECT DISTINCT 9 * - 94 AS col0 FROM tab0
----
-846

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT DISTINCT - 67 DIV COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - 67 / COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT ALL col2 * - + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * 75 + + 38 FROM tab2
----
1763
3038
4388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT DISTINCT + ( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT + ( + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT - col0 + col1 AS col2 FROM tab0 WHERE ( + 14 ) BETWEEN ( 63 / col1 ) AND + col1
----
-66
66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( col2 * 78 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE + col0 + - 51 * - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8921
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE + col0 + - 51 * - col0 <> NULL
----
0

query I rowsort
SELECT + 99 + - col1 AS col0 FROM tab1
----
52
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT - SUM( 10 ) AS col0 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8923
SELECT - SUM ( 10 ) AS col0 FROM tab0
----
-30

query I rowsort
SELECT ALL + 32 FROM tab2 WHERE NOT ( - 62 ) IS NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - 81 * COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - 81 * COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( 47 ) FROM tab2
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * col1 <> ( col2 )
----

query I rowsort
SELECT DISTINCT ( 86 ) * col0 FROM tab0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + 82 * ( + SUM( ALL + col0 ) ) - 9 * - COUNT( * ) col0 FROM tab1
----
18641

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8929
SELECT + 82 * ( + SUM ( ALL + col0 ) ) - 9 * - COUNT ( * ) col0 FROM tab1
----
18641

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT - 43 + col1 IN ( col1 )
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8931
SELECT col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT - COUNT( * ) * 93 FROM tab0 WHERE col0 IN ( + col0 )
----
-279

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT - COUNT ( * ) * 93 FROM tab0 WHERE col0 IN ( + col0 )
----
-279

query I rowsort
SELECT DISTINCT col2 * 15 - - col1 AS col1 FROM tab1
----
1067
1454
890

query I rowsort
SELECT + 13 * + 77 FROM tab0
----
1001
1001
1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT MIN( DISTINCT + ( 97 ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT MIN ( DISTINCT + ( 97 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL - COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ALL 2 + + col2 FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - COUNT( * ) * 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-8938
SELECT - COUNT ( * ) * 68 FROM tab0
----
-204

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 4 + + 23 AS col2 FROM tab0 WHERE 51 + col2 IS NOT NULL
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT + MAX( + col2 ) AS col0 FROM tab1 WHERE - CAST( col2 AS SIGNED ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-8941
SELECT + MAX ( + col2 ) AS col0 FROM tab1 WHERE - CAST ( col2 AS INTEGER ) IS NOT NULL
----
96

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL BETWEEN 11 / - 68 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 94 ) BETWEEN ( col0 / + col0 ) AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT col2 DIV col1 - col1 FROM tab1
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-8944
SELECT col2 / col1 - col1 FROM tab1
----
-46
-8
6

query I rowsort
SELECT ALL - 95 * col2 AS col0 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT + col1 * + col1 - - ( - col2 ) * - 77 FROM tab2
----
4372
8955
9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT ( 13 ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8947
SELECT CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT ( 13 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 > col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL COUNT( ALL 90 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8949
SELECT ALL COUNT ( ALL 90 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE ( + 96 ) <> - CAST( NULL AS SIGNED ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE ( + 96 ) <> - CAST ( NULL AS INTEGER ) + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MAX( DISTINCT + 70 ) AS col1 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8951
SELECT MAX ( DISTINCT + 70 ) AS col1 FROM tab1
----
70

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT + 80 * col2 - + CAST( col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-47
590
7821

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + 80 * col2 - + CAST ( col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-47
590
7821

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8954
SELECT ALL + col0 FROM tab0 cor0 WHERE + ( - ( CAST( col0 AS DECIMAL ) ) ) < ( - 41 + + col1 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + col0 FROM tab0 cor0 WHERE + ( - ( CAST ( col0 AS REAL ) ) ) < ( - 41 + + col1 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT - 87 - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 87 - col1 / col1 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT 93 AS col1 FROM tab2 AS cor0 WHERE - 78 / + 91 NOT IN ( - col1 + col0 )
----
93
93
93

query I rowsort
SELECT - 58 FROM tab1 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 88 FROM tab2 AS cor0 CROSS JOIN tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + COUNT( DISTINCT col2 ) * + SUM( ALL - 53 + - ( + col1 + 3 ) ) FROM tab2 cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-8959
SELECT + COUNT ( DISTINCT col2 ) * + SUM ( ALL - 53 + - ( + col1 + 3 ) ) FROM tab2 cor0
----
-1089

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 99 + col2 NOT BETWEEN 25 AND ( 69 - - 1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT ALL + ( COUNT( * ) ) * MIN( ALL + 92 DIV - col1 ) AS col0 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + ( COUNT ( * ) ) * MIN ( ALL + 92 / - col1 ) AS col0 FROM tab0 AS cor0
----
-276

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - col1 < ( - col0 )
----
97
1
99

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND ( 15 - + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL < ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL < ( + col0 )
----
0

query I rowsort
SELECT ( + 49 ) FROM tab1
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT MAX( + col0 ) * 87 FROM tab2 WHERE NOT - ( col2 ) + - ( 96 ) IS NULL
----
6525

skipif mysql # not compatible
query I rowsort label-8966
SELECT MAX ( + col0 ) * 87 FROM tab2 WHERE NOT - ( col2 ) + - ( 96 ) IS NULL
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( DISTINCT ( ( col0 ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( DISTINCT ( ( col0 ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT DISTINCT 7 DIV - 57 - + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 7 / - 57 - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 94 ) > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT COUNT( * ) * - 0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT COUNT ( * ) * - 0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 * + ( + 74 ) * - col2 FROM tab1 AS cor0
----
-362304
-371110
-457912

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT + col2 DIV - 60 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT + col2 / - 60 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT - 97 DIV COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-10

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 97 / COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 45 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + + ( - col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + COUNT( col2 ) * SUM( DISTINCT col2 ) * COUNT( * ) FROM tab0 AS cor0
----
1404

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + COUNT ( col2 ) * SUM ( DISTINCT col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
1404

query I rowsort
SELECT 23 / col1 + - 17 AS col2 FROM tab0 AS cor0 WHERE col2 = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8979
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) * col1 + col2 AND col0
----

skipif mysql # not compatible
query III rowsort label-8979
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) * col1 + col2 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - ( + ( CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8980
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - ( + ( CAST ( NULL AS INTEGER ) ) ) )
----

query I rowsort
SELECT DISTINCT 84 + + - col0 AS col0 FROM tab2 cor0
----
20
38
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + + col1 <= ( + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + + col1 <= ( + 68 )
----
0

query I rowsort
SELECT + 65 * + - 13 AS col0 FROM tab0
----
-845
-845
-845

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT - col2 DIV ( + + 22 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8984
SELECT - col2 / ( + + 22 ) FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT + 31 + + + col2 + + ( + + col1 ) DIV 76 AS col1 FROM tab0
----
130
41
79

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 31 + + + col2 + + ( + + col1 ) / 76 AS col1 FROM tab0
----
130
41
79

query I rowsort
SELECT col1 * col2 * 4 + + col0 * ( + ( col0 ) * + 8 ) FROM tab2
----
21620
45088
60544

query I rowsort
SELECT 15 + - - 18 + + col0 FROM tab2
----
108
79
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 / - - col0 / - col1 IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + COUNT( * ) + - 89 AS col0 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + COUNT ( * ) + - 89 AS col0 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT col0 * - 80 FROM tab1 AS cor0 WHERE ( - + 33 ) NOT IN ( - 64 )
----
-4080
-6800
-7280

query I rowsort
SELECT DISTINCT + 50 - + col1 FROM tab1
----
3
36
45

query I rowsort
SELECT + - col2 * - col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + - col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + - 7 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 85 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 49 + + 49 + + + col2 + + col0 * 74 AND + 28
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 48 ) <> NULL
----

query I rowsort
SELECT - ( + - 6 ) FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT + + 99 AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col2 - - + col2 col0 FROM tab2
----
-23
0
-40
0
-58
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2, + ( + + ( 56 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT + COUNT( - 86 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + COUNT ( - 86 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - COUNT( * ) * + 49 AS col0 FROM tab2, tab1 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-9003
SELECT - COUNT ( * ) * + 49 AS col0 FROM tab2, tab1 AS cor0
----
-441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, - 37 col0 FROM tab0
----
10
-37
47
-37
99
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL - MAX( ALL + 28 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - MAX ( ALL + 28 ) FROM tab0 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT CAST( + + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9006
SELECT CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + 68 * COUNT( * ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + 68 * COUNT ( * ) FROM tab2 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT COUNT( * ) * 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT COUNT ( * ) * 97 FROM tab2
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 * + - 91 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-8372
-8372
-8372

query I rowsort
SELECT + 24 FROM tab0 AS cor0 WHERE 19 >= NULL
----

query I rowsort
SELECT DISTINCT - ( + 79 ) + col1 AS col2 FROM tab0 cor0
----
-58
-78
2

query I rowsort
SELECT + col0 + + col0 + - col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9014
SELECT ALL - 89 DIV - 49 + - ( - - 20 ) + col0 AS col1, 6 * - - col2 FROM tab2 AS cor0
----
27
138
45
240
56
348

skipif mysql # not compatible
query II rowsort label-9014
SELECT ALL - 89 / - 49 + - ( - - 20 ) + col0 AS col1, 6 * - - col2 FROM tab2 AS cor0
----
27
138
45
240
56
348

query I rowsort
SELECT 54 + + col0 * + - 44 + - col0 FROM tab1 AS cor0
----
-2241
-3771
-4041

query I rowsort
SELECT - 80 + + col2 AS col2 FROM tab2 AS cor0
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT + 90 * COUNT( * ) + + - 32 + + + COUNT( * ) * 58 AS col0 FROM tab2 cor0
----
412

skipif mysql # not compatible
query I rowsort label-9017
SELECT + 90 * COUNT ( * ) + + - 32 + + + COUNT ( * ) * 58 AS col0 FROM tab2 cor0
----
412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT DISTINCT - SUM( + CAST( + col2 AS SIGNED ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - SUM ( + CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 WHERE ( + + col1 ) <= NULL
----

query I rowsort
SELECT ALL 95 * + col2 FROM tab0
----
4465
9405
950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT - 31 FROM tab1 WHERE + col0 / col2 * + CAST( + 2 AS SIGNED ) * - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-9021
SELECT - 31 FROM tab1 WHERE + col0 / col2 * + CAST ( + 2 AS INTEGER ) * - col1 = NULL
----

query II rowsort
SELECT DISTINCT - 84 AS col2, ( - col2 ) AS col2 FROM tab2
----
-84
-23
-84
-40
-84
-58

query II rowsort
SELECT + + col1, - col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( - + ( + col0 ), col1 )
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9024
SELECT ALL COUNT( * ) * - 27 + - COUNT( * ) + + 11 + - 17 DIV 2 * COUNT( * ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL COUNT ( * ) * - 27 + - COUNT ( * ) + + 11 + - 17 / 2 * COUNT ( * ) FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT - 47 - + 94 / + CAST( NULL AS SIGNED ) * CAST( + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 47 - + 94 / + CAST ( NULL AS INTEGER ) * CAST ( + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT DISTINCT - 64 + ( + col1 ) + + 75 DIV col2 AS col2 FROM tab2 AS cor0
----
-10
14
4

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - 64 + ( + col1 ) + + 75 / col2 AS col2 FROM tab2 AS cor0
----
-10
14
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT - - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - - 19 NOT IN ( col1 * 81 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9029
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9029
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL - ( + 43 ) AS col2, - col0 AS col1 FROM tab2 cor0
----
-43
-46
-43
-64
-43
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT ALL - CAST( + 33 AS SIGNED ) FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - CAST ( + 33 AS INTEGER ) FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT - col2 * + ( - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + - 13 <= NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( - - col2 ) NOT BETWEEN col2 AND ( + 16 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9035
SELECT ALL * FROM tab2 WHERE CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-9035
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS REAL ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT MAX( DISTINCT + - 81 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT MAX ( DISTINCT + - 81 ) AS col1 FROM tab2
----
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 83 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT COUNT( * ) * ( + COUNT( * ) ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( * ) * ( + COUNT ( * ) ) AS col1 FROM tab0
----
9

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 + 59 * col1 / 32 + + 63 * + + ( + col1 ) ) < + 33
----

query I rowsort
SELECT + + 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query II rowsort
SELECT - col0 AS col1, + col2 FROM tab0 cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9042
SELECT 74, CAST( 95 AS SIGNED ) AS col0 FROM tab1 cor0
----
74
95
74
95
74
95

skipif mysql # not compatible
query II rowsort label-9042
SELECT 74, CAST ( 95 AS INTEGER ) AS col0 FROM tab1 cor0
----
74
95
74
95
74
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + 64 * - + 64 * - COUNT( * ) + + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
12285

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + 64 * - + 64 * - COUNT ( * ) + + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
12285

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL - + 50 + - COUNT( * ) FROM tab0 cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - + 50 + - COUNT ( * ) FROM tab0 cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT - 80 + + col0 AS col2 FROM tab1 AS cor0 WHERE ( - 74 ) NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 80 + + col0 AS col2 FROM tab1 AS cor0 WHERE ( - 74 ) NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL 74 + - + col2 * col2 * col1 AS col1, 91 FROM tab2 AS cor0
----
-123126
91
-225314
91
-26905
91

query I rowsort
SELECT ALL col2 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT - col0 - - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-23
-75
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL col0 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL col0 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT 5 + 33 * - + 27 + + COUNT( * ) AS col0 FROM tab1
----
-883

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT 5 + 33 * - + 27 + + COUNT ( * ) AS col0 FROM tab1
----
-883

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT DISTINCT ( - MAX( DISTINCT - 27 ) ) * - - COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT ( - MAX ( DISTINCT - 27 ) ) * - - COUNT ( * ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL + 11 - - + ( - - COUNT( * ) ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + 11 - - + ( - - COUNT ( * ) ) FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT col0 + 9 * + + col2 + - col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT col0 + 9 * + + col2 + - col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - - col2 AS col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ( - - 9 ) + - col1 + + col0 FROM tab0
----
-57
105
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT 15 + + MIN( - col1 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9057
SELECT 15 + + MIN ( - col1 ) FROM tab1
----
-32

query I rowsort
SELECT - col2 + - col2 AS col2 FROM tab0 cor0 WHERE ( - col2 * col1 ) IS NOT NULL
----
-198
-20
-94

query I rowsort
SELECT DISTINCT + 2 FROM tab2 cor0 WHERE NULL IS NULL
----
2

query I rowsort
SELECT DISTINCT 5 * + - 59 FROM tab0
----
-295

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9061
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) - + - 22 + - col1 - + + col0 NOT IN ( - + ( - + col2 ) - + ( + - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-9061
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) - + - 22 + - col1 - + + col0 NOT IN ( - + ( - + col2 ) - + ( + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9062
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0, ( 22 ), 38, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9062
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0, ( 22 ), 38, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 45 + + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103
68
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - - ( - 26 ) )
----

query I rowsort
SELECT - - col2 * + 47 FROM tab0 AS cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT - COUNT( DISTINCT + 29 ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9066
SELECT - COUNT ( DISTINCT + 29 ) AS col2 FROM tab1 cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR col0 >= 36 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9068
SELECT DISTINCT * FROM tab2 WHERE col1 * - + col0 - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9068
SELECT DISTINCT * FROM tab2 WHERE col1 * - + col0 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + COUNT( * ) * + - 80 AS col0 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-9070
SELECT + COUNT ( * ) * + - 80 AS col0 FROM tab1
----
-240

query I rowsort
SELECT - - 41 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + col2 * + - col1 + + col1 FROM tab0
----
-189
-3726
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - col0 + + + col1 * 33 FROM tab1 AS cor0
----
5180
5358
7739

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL + MAX( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL + MAX ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + 43 AS col1 FROM tab1 cor0
----
43
43
43

query I rowsort
SELECT DISTINCT - 90 - col1 AS col1 FROM tab2 AS cor0
----
-141
-157
-167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 25 + col0 - - 93 * + col1 * - + col0 col0 FROM tab2
----
-216982
-456640
-465375

query II rowsort
SELECT 49, + col2 FROM tab1
----
49
59
49
68
49
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( - col0 ) AND 69 * + + 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) / + - col0 FROM tab1 WHERE + 96 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) / + - col0 FROM tab1 WHERE + 96 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 14 * - col0 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT - ( col2 ) - - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + col1 ) - - - 46 AS col0 FROM tab2
----
21
31
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 72
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9087
SELECT + + COUNT( * ) AS col1, + MIN( col2 ) AS col2 FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-9087
SELECT + + COUNT ( * ) AS col1, + MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
3
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT DISTINCT + + col1 * + + CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9088
SELECT DISTINCT + + col1 * + + CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 col1, 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 846d0e330beb23c32cb36b3e3873f8e7

query I rowsort
SELECT ( col0 ) * + col1 - + col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT 48 * - + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT 48 * - + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 6 * col1 FROM tab2 AS cor0
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - SUM( + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9093
SELECT - SUM ( + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT + col1 + + 37 AS col1 FROM tab1
----
42
51
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9095
SELECT + - col2 * - col1 + - - 17 + - ( CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) ) * + 84 AS col0, - 11 * + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-7081
NULL
-8032
NULL
2564
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9095
SELECT + - col2 * - col1 + - - 17 + - ( CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) ) * + 84 AS col0, - 11 * + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-7081
NULL
-8032
NULL
2564
NULL

query II rowsort
SELECT - col0 AS col0, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL col0 + - col0 - + - col2 * col1 + col2 FROM tab0
----
198
220
3854

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < ( col0 / + 35 )
----

query I rowsort
SELECT 13 * col2 FROM tab0
----
1287
130
611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col1 * - ( + - col2 ) col2 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT - MIN( DISTINCT - - 5 ) DIV - + MAX( ALL - 29 ) + - + ( + - SUM( ALL + col1 ) ) * 52 FROM tab0 AS cor0
----
5356

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - MIN ( DISTINCT - - 5 ) / - + MAX ( ALL - 29 ) + - + ( + - SUM ( ALL + col1 ) ) * 52 FROM tab0 AS cor0
----
5356

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - 3
----

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT + COUNT( * ) + - + 87 AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9105
SELECT + COUNT ( * ) + - + 87 AS col0 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - ( - COUNT( * ) ) + MAX( DISTINCT + col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9106
SELECT - ( - COUNT ( * ) ) + MAX ( DISTINCT + col1 ) FROM tab0
----
84

query I rowsort
SELECT DISTINCT col1 * col0 - col1 + col1 * + 92 FROM tab2
----
11122
11935
6987

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT - 44 * - - col2 FROM tab1
----
-2596
-2992
-4224

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 27 / + - col0 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + MAX( DISTINCT + 56 ) * - 99 AS col2 FROM tab0
----
-5544

skipif mysql # not compatible
query I rowsort label-9111
SELECT + MAX ( DISTINCT + 56 ) * - 99 AS col2 FROM tab0
----
-5544

query II rowsort
SELECT DISTINCT 79 * + - col2, + 76 * + - col2 / + col0 * + col2 FROM tab0 WHERE NOT ( - + 44 ) * col1 NOT BETWEEN col1 AND + + col1 * + ( + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL MIN( ALL - col0 ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9113
SELECT ALL MIN ( ALL - col0 ) col1 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( + 94 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT MAX( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - 34 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query III rowsort
SELECT col0 AS col1, + col1 AS col0, + - 95 AS col2 FROM tab1
----
9 values hashing to d0b3ca9234e2af5593669036e2031c65

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT + COUNT( * ) + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
90

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT + COUNT ( * ) + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
90

query I rowsort
SELECT ALL - 33 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE 48 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE 48 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - ( - 5 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + col1 * - + 46 FROM tab0 AS cor0
----
-3726
-46
-966

query I rowsort
SELECT - 7 + 60 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # DIV for integer division: 
query II rowsort label-9124
SELECT DISTINCT 42 + + col1 AS col1, + col1 DIV - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 <> + - ( + col2 )
----
47
0
56
0
89
0

skipif mysql # not compatible
query II rowsort label-9124
SELECT DISTINCT 42 + + col1 AS col1, + col1 / - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 <> + - ( + col2 )
----
47
0
56
0
89
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT DISTINCT + COUNT( * ) DIV - 85 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9125
SELECT DISTINCT + COUNT ( * ) / - 85 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 + + 98 AS col1 FROM tab0 AS cor0
----
113
185
195

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT MAX( DISTINCT + + col2 ) + COUNT( * ) * 50 + CAST( - 63 AS SIGNED ) AS col0 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-9128
SELECT MAX ( DISTINCT + + col2 ) + COUNT ( * ) * 50 + CAST ( - 63 AS INTEGER ) AS col0 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT SUM( ALL col1 ) + + 50 AS col0 FROM tab2
----
245

skipif mysql # not compatible
query I rowsort label-9129
SELECT SUM ( ALL col1 ) + + 50 AS col0 FROM tab2
----
245

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - + col2 NOT BETWEEN - col1 AND - col1 AND - col2 + 39 + + 64 IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + - 64 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - - 55 FROM tab0 AS cor0 WHERE ( NULL ) < + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - 68 / - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT MAX( 84 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9134
SELECT MAX ( 84 ) FROM tab0 AS cor0
----
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 48 * - + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 > 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL NOT IN ( + col2 - + ( - + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL NOT IN ( + col2 - + ( - + col2 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT + col1 - - 37 DIV 76 * - 1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9138
SELECT + col1 - - 37 / 76 * - 1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col1, - 13 FROM tab2 AS cor0
----
46
-13
64
-13
75
-13

query I rowsort
SELECT ALL 42 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT ALL + + 32 * - - col2 DIV + col2 + - ( - 15 ) - col0 FROM tab1 AS cor0
----
-38
-4
-44

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + + 32 * - - col2 / + col2 + - ( - 15 ) - col0 FROM tab1 AS cor0
----
-38
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT - MAX( DISTINCT + col0 ) + + - COUNT( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-9142
SELECT - MAX ( DISTINCT + col0 ) + + - COUNT ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-100

query II rowsort
SELECT 50, col0 AS col0 FROM tab0 cor0
----
50
15
50
87
50
97

query II rowsort
SELECT + col1, - col2 * - col1 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9145
SELECT + col2, - 48 * - ( + - col1 ) * + col0 + + + col2 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9145
SELECT + col2, - 48 * - ( + - col1 ) * + col0 + + + col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - + col2 + - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - + col2 + - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT - 1 * MIN( - col1 ) * + 22 FROM tab2 AS cor0
----
1694

skipif mysql # not compatible
query I rowsort label-9147
SELECT - 1 * MIN ( - col1 ) * + 22 FROM tab2 AS cor0
----
1694

onlyif mysql # DIV for integer division: 
query II rowsort label-9148
SELECT ALL col1 + + + col2 DIV - - 9 - 59, col1 FROM tab2 AS cor0
----
-6
51
14
67
22
77

skipif mysql # not compatible
query II rowsort label-9148
SELECT ALL col1 + + + col2 / - - 9 - 59, col1 FROM tab2 AS cor0
----
-6
51
14
67
22
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + 65 - + 56 + ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + 65 - + 56 + ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL + 95 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + 95 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9152
SELECT COUNT( DISTINCT + + col0 ), + COUNT( ALL + - col0 ) DIV + 65 * + COUNT( * ) AS col2 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-9152
SELECT COUNT ( DISTINCT + + col0 ), + COUNT ( ALL + - col0 ) / + 65 * + COUNT ( * ) AS col2 FROM tab0
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT IN ( - - 72 + + ( - - col0 ), col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT + col2 > - col1
----

query I rowsort
SELECT + col1 * + 11 AS col0 FROM tab1
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT - 62 * 32 / CAST( NULL AS SIGNED ) * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT - 62 * 32 / CAST ( NULL AS INTEGER ) * + - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + 28 * - COUNT( * ) col1 FROM tab1
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9158
SELECT + 28 * - COUNT ( * ) col1 FROM tab1
----
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1 * col1 * + col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + - 33 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT MAX( 49 ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9161
SELECT MAX ( 49 ) FROM tab1 AS cor0
----
49

query I rowsort
SELECT ALL + 0 + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col0 * + col0 - - - col2 + + col1 FROM tab2 AS cor0
----
2144
4133
5634

query I rowsort
SELECT ALL - + ( - 70 ) * col0 + - col0 AS col2 FROM tab2 AS cor0
----
3174
4416
5175

query I rowsort
SELECT - 68 * - 27 FROM tab0 AS cor0
----
1836
1836
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL SUM( ( - + col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL SUM ( ( - + col0 ) ) FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT + col2 DIV 12 * 54 AS col0 FROM tab1 AS cor0
----
216
270
432

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + col2 / 12 * 54 AS col0 FROM tab1 AS cor0
----
216
270
432

query II rowsort
SELECT - col0 AS col2, col1 * - col0 AS col0 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-51
-714
-85
-425
-91
-4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT + CAST( NULL AS SIGNED ) + + 52 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT + CAST ( NULL AS INTEGER ) + + 52 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + - col1 + - col0 AS col0 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT 98 + - ( col1 ) FROM tab2
----
21
31
47

query I rowsort
SELECT - col0 + + - 2 AS col2 FROM tab0
----
-17
-89
-99

query I rowsort
SELECT ALL col1 + ( + + col0 ) FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col2 * - 12 FROM tab0
----
-1188
-120
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + - COUNT( * ) col2 FROM tab2 WHERE 22 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9175
SELECT ALL + - COUNT ( * ) col2 FROM tab2 WHERE 22 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT + SUM( ALL + col1 ) + - + 73 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT + SUM ( ALL + col1 ) + - + 73 FROM tab2
----
122

query I rowsort
SELECT - 34 + + col1 AS col2 FROM tab2 AS cor0
----
17
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + ( - - COUNT( * ) ) + + 93 col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT DISTINCT + ( - - COUNT ( * ) ) + + 93 col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9179
SELECT * FROM tab1 WHERE NULL <= + - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9179
SELECT * FROM tab1 WHERE NULL <= + - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT - - col1 - - - 5 FROM tab2 AS cor0
----
46
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + + MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9181
SELECT + + MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9182
SELECT ALL 50 DIV + - 64, col0 + + col0 DIV - col1 + + col2 AS col1 FROM tab0 cor0
----
0
62
0
93
0
99

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL 50 / + - 64, col0 + + col0 / - col1 + + col2 AS col1 FROM tab0 cor0
----
0
62
0
93
0
99

query II rowsort
SELECT DISTINCT - 73 * + col1 AS col1, - 19 FROM tab2 AS cor0
----
-3723
-19
-4891
-19
-5621
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + MIN( - 67 ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-9184
SELECT + MIN ( - 67 ) AS col2 FROM tab1
----
-67

query I rowsort
SELECT col1 * - 17 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 21 <> ( - + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - - col0 ) AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 66 - - + col2 * + + 33 >= + col0
----

query I rowsort
SELECT 38 * - - 67 AS col1 FROM tab1
----
2546
2546
2546

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 86 * - col0 * + col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL SUM( - 54 ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL SUM ( - 54 ) FROM tab0 AS cor0
----
-162

query I rowsort
SELECT DISTINCT col0 + - 58 + - col2 + - 38 * + col0 * 65 AS col2 FROM tab0
----
-214871
-239650
-37140

query I rowsort
SELECT - 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= col2 * CAST( NULL AS SIGNED ) * col1 + - - col1
----

skipif mysql # not compatible
query III rowsort label-9194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= col2 * CAST ( NULL AS INTEGER ) * col1 + - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9195
SELECT DISTINCT 55 * + CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT 55 * + CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + COUNT( * ) * + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT 76 + MIN( ALL + col1 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9197
SELECT 76 + MIN ( ALL + col1 ) FROM tab0 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + col0 ) col2 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL + COUNT( * ) * + - 55 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + COUNT ( * ) * + - 55 FROM tab2
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9200
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * + col1 + - 91 / - 5 col1, 56 FROM tab2
----
NULL
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9200
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * + col1 + - 91 / - 5 col1, 56 FROM tab2
----
NULL
56

query I rowsort
SELECT DISTINCT col0 * + + 69 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT + - col0 * + col1 - col2 + - + 82 FROM tab2 AS cor0
----
-2451
-5050
-5165

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col0 * 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 97 + + - 90 + + col0 AS col2 FROM tab0 AS cor0
----
104
22
94

query I rowsort
SELECT DISTINCT col2 + 24 * - ( + + 20 ) FROM tab2
----
-422
-440
-457

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL COUNT( * ) * - COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9206
SELECT ALL COUNT ( * ) * - COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT 48 col1, - COUNT( * ) * + + 17 FROM tab2
----
48
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9207
SELECT 48 col1, - COUNT ( * ) * + + 17 FROM tab2
----
48
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT col1 DIV + - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9208
SELECT col1 / + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT COUNT( * ) * + COUNT( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9210
SELECT COUNT ( * ) * + COUNT ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL MIN( DISTINCT + - col2 ) col1 FROM tab1 AS cor0 WHERE - col2 - + col0 * + 22 <> col0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9211
SELECT ALL MIN ( DISTINCT + - col2 ) col1 FROM tab1 AS cor0 WHERE - col2 - + col0 * + 22 <> col0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + - col1 * 29 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL 97 - + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 30 + - - col1 AND + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT SUM( - - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT SUM ( - - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - - 75 ) FROM tab2
----
75

query II rowsort
SELECT col1 * + + col1 AS col1, - 21 FROM tab1
----
196
-21
2209
-21
25
-21

query I rowsort
SELECT + 31 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9218
SELECT col0 * - 49 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2254
NULL
-3136
NULL
-3675
NULL

skipif mysql # not compatible
query II rowsort label-9218
SELECT col0 * - 49 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2254
NULL
-3136
NULL
-3675
NULL

query I rowsort
SELECT DISTINCT + - 70 FROM tab1 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE + col2 - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE + col2 - + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - - col0 + + col2 * + col0 col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + col1 / + col0 + col0 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT - 51 + - MAX( - + col1 ) FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT - 51 + - MAX ( - + col1 ) FROM tab1 cor0
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - col1 IS NULL
----

query I rowsort
SELECT - + col2 FROM tab0 cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + col2 * - 67 + - 53 AS col1 FROM tab2
----
-1594
-2733
-3939

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND + col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + + 26 * + - col0 FROM tab1 WHERE - col1 < - - col1
----
-1326
-2210
-2366

query I rowsort
SELECT DISTINCT 71 + col0 FROM tab0 AS cor0
----
158
168
86

query I rowsort
SELECT ALL + col2 * 61 + + 74 + - col0 * col1 AS col1 FROM tab2 cor0
----
-1413
-2414
-869

query III rowsort
SELECT * FROM tab2 WHERE NOT - 86 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT 96 <= - 18
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26

query I rowsort
SELECT ALL - col2 * + 77 FROM tab2 AS cor0
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT + CAST( NULL AS SIGNED ) / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT + CAST ( NULL AS INTEGER ) / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 - - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 <> col2
----

query I rowsort
SELECT DISTINCT 90 * col2 FROM tab2 AS cor0
----
2070
3600
5220

query II rowsort
SELECT DISTINCT 81, col0 * + 74 AS col2 FROM tab2
----
81
3404
81
4736
81
5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT DISTINCT - MIN( - - col1 ) DIV - + MAX( + + col0 ) * + - MAX( - + 10 ) - - 92 AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT - MIN ( - - col1 ) / - + MAX ( + + col0 ) * + - MAX ( - + 10 ) - - 92 AS col1 FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9243
SELECT + + MAX( - + CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9243
SELECT + + MAX ( - + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL - col1 AS col1, ( + - col2 ) FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT ALL + + 15 * + col0 * - - col2 * - - 78 + - 54 FROM tab1 AS cor0 WHERE NOT + col0 / - 70 < + - col0 * - 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT + 66, + CAST( NULL AS SIGNED ) * - 27 AS col1 FROM tab1 AS cor0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-9246
SELECT + 66, + CAST ( NULL AS INTEGER ) * - 27 AS col1 FROM tab1 AS cor0
----
66
NULL
66
NULL
66
NULL

query I rowsort
SELECT col0 * + 32 + + + col2 * + col0 * 73 AS col2 FROM tab1 cor0
----
359040
368815
454636

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT DISTINCT col2 DIV + - ( - 11 ) AS col1 FROM tab2
----
2
3
5

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT col2 / + - ( - 11 ) AS col1 FROM tab2
----
2
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT MIN( ALL - 51 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-9249
SELECT MIN ( ALL - 51 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-51

query I rowsort
SELECT - 22 + 35 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT + col1 / + + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + col1 / + + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 94 + - + col1 FROM tab1 AS cor0
----
47
80
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT - col1 DIV - col0 + + + col2 AS col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-9253
SELECT - col1 / - col0 + + + col2 AS col2 FROM tab0 AS cor0
----
10
52
99

query I rowsort
SELECT + col1 + - - 54 + col2 + + col2 FROM tab2 AS cor0
----
151
211
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT DISTINCT CAST( NULL AS SIGNED ) - 49 - col2 + - - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 49 - col2 + - - col1 AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 - - 63 * - col2, 94 AS col1 FROM tab1 AS cor0
----
-3776
94
-4352
94
-6144
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9257
SELECT col0 AS col2, CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-9257
SELECT col0 AS col2, CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( - + col2 )
----

query II rowsort
SELECT ALL - col1 AS col0, - 57 - - - col1 FROM tab2
----
-51
-108
-67
-124
-77
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT - 55, - COUNT( * ) AS col1 FROM tab2
----
-55
-3

skipif mysql # not compatible
query II rowsort label-9260
SELECT - 55, - COUNT ( * ) AS col1 FROM tab2
----
-55
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE - col2 / - col0 + + col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 40 AS col0, + 0 AS col1 FROM tab2 AS cor0
----
-40
0
-40
0
-40
0

query I rowsort
SELECT DISTINCT ( - + 47 ) + 29 - + 43 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT - col0 * - col0 + + 40 * + + col1 FROM tab0 AS cor0
----
3465
8409
9449

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - ( + + MIN( col2 ) ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9266
SELECT - ( + + MIN ( col2 ) ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 + 21 AS col2 FROM tab1 WHERE NOT 42 <> - col2 / - col0 + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + + col0 + + col1 * col1 * - 11 / + - col1 * col1 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL - MIN( ALL + 78 ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - MIN ( ALL + 78 ) AS col1 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9270
SELECT - - CAST( NULL AS SIGNED ) * - + col1 / + col2 * - 33 AS col1, + col1 * - + col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
-1475
NULL
-150212
NULL
-18816

skipif mysql # not compatible
query II rowsort label-9270
SELECT - - CAST ( NULL AS INTEGER ) * - + col1 / + col2 * - 33 AS col1, + col1 * - + col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
-1475
NULL
-150212
NULL
-18816

query I rowsort
SELECT + - ( - ( - 40 ) ) FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT + CAST( - 99 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9272
SELECT + CAST ( - 99 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 84 BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT DISTINCT - col0 DIV + 88 + - - col0 FROM tab0 cor0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - col0 / + 88 + - - col0 FROM tab0 cor0
----
15
87
96

query I rowsort
SELECT DISTINCT + 1 * - 23 AS col1 FROM tab2
----
-23

query I rowsort
SELECT - 90 * - col0 AS col1 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT ALL col2 + + - 8 + - 63 AS col1 FROM tab2
----
-13
-31
-48

query II rowsort
SELECT DISTINCT + col0, + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col0 * - + col1 + 54, + col1 AS col0 FROM tab2 AS cor0
----
-2292
51
-4874
77
-4971
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9280
SELECT ALL + col1 + + - 3 + 40 + 66 + - ( - CAST( col1 AS SIGNED ) ) * + col1 DIV + - col1 AS col0 FROM tab2 cor0
----
103
103
103

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + col1 + + - 3 + 40 + 66 + - ( - CAST ( col1 AS INTEGER ) ) * + col1 / + - col1 AS col0 FROM tab2 cor0
----
103
103
103

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col2 + - + col0 AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + 21 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT - 85 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 85 / + col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 65 + + col1 * + + 71 * col1 * - ( - + 49 ) AS col2 FROM tab1 AS cor0
----
681949
7685176
87040

query I rowsort
SELECT DISTINCT + - col1 * - + col1 + col1 AS col2 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - - SUM( - + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2, col0, + col1 * ( - col0 ), ( 3 ) * - + col2 + - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT - - SUM ( - + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2, col0, + col1 * ( - col0 ), ( 3 ) * - + col2 + - 52 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT col1 DIV - col0 + + + col1 - - col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9287
SELECT col1 / - col0 + + + col1 - - col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9288
SELECT DISTINCT - CAST( + - MIN( DISTINCT ( + col1 ) ) AS SIGNED ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - CAST ( + - MIN ( DISTINCT ( + col1 ) ) AS INTEGER ) AS col1 FROM tab1
----
5

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE + ( 75 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 98
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( - ( + 80 ) ) AND 4
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - + COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT - + COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - ( + COUNT( * ) ) * - - 1 col2 FROM tab0 WHERE col2 NOT BETWEEN + + 61 AND NULL
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9293
SELECT - ( + COUNT ( * ) ) * - - 1 col2 FROM tab0 WHERE col2 NOT BETWEEN + + 61 AND NULL
----
-2

query I rowsort
SELECT + + col2 * 13 AS col2 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL - col2 * + 69 * - col2 * + - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - col2 * + 69 * - col2 * + - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT + - ( col0 ) * - - col2 * - col2 + + - col1 DIV col2 DIV - 42 FROM tab0 AS cor0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-9296
SELECT + - ( col0 ) * - - col2 * - col2 + + - col1 / col2 / - 42 FROM tab0 AS cor0
----
33135
8700
950697

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, 6 * - col2, - col1 * + 44 * 25, - + col1 + - + 3 + + 20 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT CAST( - 98 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-98

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT CAST ( - 98 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-98

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE - 43 * - + col2 IN ( - col1 + 40, + col2, + col2 * - - col1 + - col2, - - col2, + + 94 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9301
SELECT DISTINCT + CAST( - 93 AS SIGNED ) + col2 + - + col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + CAST ( - 93 AS INTEGER ) + col2 + - + col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + 54 + - MIN( + 83 ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9302
SELECT + 54 + - MIN ( + 83 ) AS col0 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + COUNT( * ) + - - 65 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9303
SELECT + COUNT ( * ) + - - 65 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + - MAX( - ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9304
SELECT + - MAX ( - ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 90 + + + col2 + + - 60 * - col0 FROM tab2 AS cor0
----
2873
3970
4648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT + 75 + - + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + 75 + - + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 72 - - + col1 AS col0 FROM tab0 AS cor0
----
153
73
93

query I rowsort
SELECT ALL + 16 - + + col2 * + + col1 * col0 + - 79 + col0 * - 22 + + col1 * + col1 AS col0 FROM tab2 cor0
----
-192662
-288674
-52432

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ALL MIN( + 10 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL MIN ( + 10 ) AS col1 FROM tab0
----
10

query II rowsort
SELECT DISTINCT + col2, + col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT ALL col2 DIV + 72 * - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL col2 / + 72 * - + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * 21 FROM tab1 cor0 WHERE NOT col0 = col1
----
1071
1785
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col1 + 12 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 82 + + - 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL col2 + - col0 * + + ( col2 ) AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT ALL + col2 - + - 9 FROM tab1 AS cor0 WHERE NOT + col0 + + col1 * - col2 IS NULL
----
105
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT + 73 * SUM( ALL - - 33 ) * - - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + 73 * SUM ( ALL - - 33 ) * - - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - 66 * - 22 < - ( + ( - col2 ) )
----

query I rowsort
SELECT - col2 + - 17 AS col2 FROM tab2
----
-40
-57
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT - 83 + - MAX( + + col2 ) FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-9324
SELECT - 83 + - MAX ( + + col2 ) FROM tab0
----
-182

query I rowsort
SELECT + 44 * - col0 * col0 FROM tab2 WHERE NULL <> + + col0 - + 22 - + col2 * col0 * - + col0
----

query I rowsort
SELECT ALL - col1 + - + col1 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT col1 + - + col1 - CAST( + - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9327
SELECT col1 + - + col1 - CAST ( + - col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT col0 * + + col2 + - col0 FROM tab0 WHERE NULL IS NULL
----
690
783
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 35, + col2 col1 FROM tab1 AS cor0
----
35
59
35
68
35
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT COUNT( * ) - 37 * 21 AS col2 FROM tab0 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT COUNT ( * ) - 37 * 21 AS col2 FROM tab0 AS cor0
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT + col1 DIV ( + 4 * - ( col0 ) ) + 49 AS col2 FROM tab1
----
49
49
49

skipif mysql # not compatible
query I rowsort label-9331
SELECT + col1 / ( + 4 * - ( col0 ) ) + 49 AS col2 FROM tab1
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT ALL 96 DIV col1 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9332
SELECT ALL 96 / col1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ( - 75 ) + 17 AS col0 FROM tab1
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab1 WHERE NOT col2 > ( - 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT DISTINCT 21 - CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9335
SELECT DISTINCT 21 - CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT + ( - CAST( + 10 AS SIGNED ) ) FROM tab2 WHERE CAST( 6 AS SIGNED ) IS NOT NULL
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-9336
SELECT + ( - CAST ( + 10 AS INTEGER ) ) FROM tab2 WHERE CAST ( 6 AS INTEGER ) IS NOT NULL
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + MAX( DISTINCT col0 ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT + MAX ( DISTINCT col0 ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT 79 DIV 14 col2 FROM tab2
----
5
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9338
SELECT 79 / 14 col2 FROM tab2
----
5
5
5

query I rowsort
SELECT - 56 * + col2 + + col2 AS col2 FROM tab0
----
-2585
-5445
-550

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 16 ) + col1 IN ( + col2 * - 36 )
----

query I rowsort
SELECT + 22 * - 27 + - 31 * col2 FROM tab0
----
-2051
-3663
-904

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9342
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 79 FROM tab0 WHERE col1 < + 13
----
79

query I rowsort
SELECT + col2 * + 17 AS col2 FROM tab0
----
1683
170
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT - col2 - col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) * - ( - 17 * + 56 ) BETWEEN NULL AND col0 * col0
----

skipif mysql # not compatible
query I rowsort label-9345
SELECT - col2 - col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - ( - 17 * + 56 ) BETWEEN NULL AND col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT MIN( ALL + col0 ) FROM tab2 WHERE NOT 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT MIN ( ALL + col0 ) FROM tab2 WHERE NOT 15 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 - + col1 * + 64 AS col0 FROM tab0
----
-1257
-5169
33

query I rowsort
SELECT 13 - - 55 FROM tab2
----
68
68
68

query I rowsort
SELECT + col1 / ( 58 * - col1 ) FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> - col2
----

query I rowsort
SELECT 42 * - 66 + + 38 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT SUM( col0 ) FROM tab2 AS cor0 WHERE NOT ( 12 * - col1 ) NOT IN ( col2 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT ( 12 * - col1 ) NOT IN ( col2 / col0 )
----
NULL

query I rowsort
SELECT + 36 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 * - col1 ) IS NULL
----
36
36
36

query I rowsort
SELECT + col1 / - col2 + + 95 FROM tab0 AS cor0 WHERE NOT ( col0 ) * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT col2 DIV - ( - col2 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9355
SELECT col2 / - ( - col2 ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col0 * 73 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT ALL + 96 DIV - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + 96 / - col0 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL 17 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 43 * - col1 + 43 ) AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9359
SELECT * FROM tab2 WHERE NOT - 65 + + ( + CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9359
SELECT * FROM tab2 WHERE NOT - 65 + + ( + CAST ( NULL AS INTEGER ) ) < NULL
----

query I rowsort
SELECT ALL + col2 * + ( col0 * + col2 ) + + 2 FROM tab1
----
295887
420786
470018

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( 76 ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 * - col1 ) IN ( + 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + 81 col2 FROM tab2 AS cor0
----
-2265
-4847
-4944

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT DISTINCT ( - col2 ) * col2 + 8 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT ( - col2 ) * col2 + 8 / + col0 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9366
SELECT DISTINCT + 26 AS col2 FROM tab1 AS cor0 WHERE NOT ( 72 + CAST( NULL AS DECIMAL ) * - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + 26 AS col2 FROM tab1 AS cor0 WHERE NOT ( 72 + CAST ( NULL AS REAL ) * - col1 ) IS NULL
----

query I rowsort
SELECT - 8 + col2 FROM tab1 AS cor0
----
51
60
88

query I rowsort
SELECT - 11 + 73 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - + col0 + - col1 * col1 FROM tab1 AS cor0
----
-110
-2300
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL + COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL + COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 18 + - 42 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL 43 + col0 AS col2 FROM tab1 AS cor0 WHERE col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 64 BETWEEN ( NULL ) AND 18 - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT COUNT( * ) * 9 AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9374
SELECT COUNT ( * ) * 9 AS col2 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT - MIN( + 4 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - MIN ( + 4 ) FROM tab1
----
-4

query I rowsort
SELECT ALL col2 * col1 FROM tab0 WHERE NULL <> ( + 0 )
----

query I rowsort
SELECT 2 * + col0 FROM tab1
----
102
170
182

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 99 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 56 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 WHERE ( + 62 ) IN ( col0 + 9 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 56 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT CAST( - - 24 AS SIGNED ) - CAST( 6 AS SIGNED ) FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-9382
SELECT CAST ( - - 24 AS INTEGER ) - CAST ( 6 AS INTEGER ) FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT + 42 + + + col1 FROM tab2 AS cor0
----
109
119
93

query I rowsort
SELECT ALL + col2 - ( col0 ) AS col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT - 41 - + col1 AS col0 FROM tab2
----
-108
-118
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9386
SELECT - + MIN( + + ( 63 ) ) DIV - 54 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9386
SELECT - + MIN ( + + ( 63 ) ) / - 54 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 88 + - + col1 - col2 FROM tab2 cor0
----
-29
-37
14

query I rowsort
SELECT ( - 37 ) * col0 AS col1 FROM tab2 AS cor0
----
-1702
-2368
-2775

query II rowsort
SELECT + + col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - 21 * + SUM( + - 57 ) + 87 FROM tab0 AS cor0
----
3678

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - 21 * + SUM ( + - 57 ) + 87 FROM tab0 AS cor0
----
3678

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - 8 * - + MIN( ALL + ( 58 ) ) FROM tab1 AS cor0
----
464

skipif mysql # not compatible
query I rowsort label-9391
SELECT - 8 * - + MIN ( ALL + ( 58 ) ) FROM tab1 AS cor0
----
464

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + col1 * - 89 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL - 96 * - + COUNT( ALL - col0 ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL - 96 * - + COUNT ( ALL - col0 ) FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 WHERE + - col0 IS NULL
----
0

query I rowsort
SELECT ALL 85 AS col2 FROM tab2 WHERE NULL NOT IN ( + + col1 * - + col2 - + 96 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT MIN( - ( 57 ) ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT MIN ( - ( 57 ) ) AS col1 FROM tab2
----
-57

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( NOT + - col2 NOT BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT DISTINCT CAST( + 6 AS SIGNED ) * + 93 + + - 99 - - COUNT( * ) AS col2 FROM tab1 cor0
----
462

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT CAST ( + 6 AS INTEGER ) * + 93 + + - 99 - - COUNT ( * ) AS col2 FROM tab1 cor0
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT 4 * - + COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT 4 * - + COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT ALL 62 FROM tab0 WHERE NOT col1 >= col1 * col1
----
62
62

query I rowsort
SELECT ALL + 61 + 64 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to 2973878398e469d83385e7e06bd5af99

query II rowsort
SELECT + col2 AS col1, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL - CAST( NULL AS SIGNED ) + + 60 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL - CAST ( NULL AS INTEGER ) + + 60 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT - + MIN( DISTINCT + + 64 ) + ( - 82 ) * SUM( ALL + col0 ) - - 55 AS col0 FROM tab1 AS cor0
----
-18623

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT - + MIN ( DISTINCT + + 64 ) + ( - 82 ) * SUM ( ALL + col0 ) - - 55 AS col0 FROM tab1 AS cor0
----
-18623

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 44 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT + + COUNT( DISTINCT - + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + + COUNT ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 88 + col1 + - 61 AS col0 FROM tab1
----
32
41
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT DISTINCT 2 DIV col0 * + ( + + 17 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT 2 / col0 * + ( + + 17 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT DISTINCT COUNT( ALL col2 ) + + - 28 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT COUNT ( ALL col2 ) + + - 28 FROM tab1
----
-25

query I rowsort
SELECT col0 * + 72 * + - 63 + + col1 AS col2 FROM tab2
----
-208605
-290227
-340133

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 97 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT ALL col0, + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT COUNT( + - col0 ) + CAST( - - 42 AS SIGNED ) FROM tab1 WHERE ( col0 ) IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-9415
SELECT COUNT ( + - col0 ) + CAST ( - - 42 AS INTEGER ) FROM tab1 WHERE ( col0 ) IS NULL
----
42

query I rowsort
SELECT + 1 * + + col1 - - 27 AS col2 FROM tab1
----
32
41
74

query I rowsort
SELECT ALL - - 11 + + 76 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - col0 * + 44 - - + ( + 72 ) FROM tab0 cor0
----
-3756
-4196
-588

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT col2 * + col1 * + - col2 + + col2 + + col1 * col2 IS NULL )
----

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT NULL = ( - 68 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 25 AND + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col1 * - 6 AS col1 FROM tab2 cor0
----
306
402
462

query I rowsort
SELECT + col2 * 55 + col2 AS col1 FROM tab0 AS cor0
----
2632
5544
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT - 77 * - CAST( - SUM( ALL + col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-9317

skipif mysql # not compatible
query I rowsort label-9425
SELECT - 77 * - CAST ( - SUM ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-9317

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + - COUNT( * ) * + - 51 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + - COUNT ( * ) * + - 51 FROM tab1 AS cor0
----
153

query III rowsort
SELECT ALL * FROM tab0 WHERE 78 * col1 + - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, 53 FROM tab1
----
14
53
47
53
5
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - MIN( col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9429
SELECT - MIN ( col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL + ( - + COUNT( * ) ) * - 85 AS col1 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL + ( - + COUNT ( * ) ) * - 85 AS col1 FROM tab2
----
255

query II rowsort
SELECT DISTINCT col2, ( - col0 ) + + - col2 AS col2 FROM tab1
----
59
-144
68
-159
96
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 WHERE NOT + 71 BETWEEN - + 89 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9432
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 WHERE NOT + 71 BETWEEN - + 89 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL ( MAX( DISTINCT col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL ( MAX ( DISTINCT col1 ) ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT col2 * + col2 + 91 AS col1 FROM tab2 WHERE NOT - + col2 + - CAST( + + col0 AS SIGNED ) >= - 48
----
1691
3455
620

skipif mysql # not compatible
query I rowsort label-9434
SELECT col2 * + col2 + 91 AS col1 FROM tab2 WHERE NOT - + col2 + - CAST ( + + col0 AS INTEGER ) >= - 48
----
1691
3455
620

query I rowsort
SELECT DISTINCT - 70 * + col1 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9436
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), 87 )
----

skipif mysql # not compatible
query IIIIII rowsort label-9436
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), 87 )
----

query I rowsort
SELECT col1 + - col2 + + col0 + - - 31 * + col0 AS col1 FROM tab2
----
1500
2085
2409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 35 ) >= + 45 + col1 - col0
----
87
21
10
97
1
99

query I rowsort
SELECT 38 + col1 + + 19 AS col1 FROM tab0 AS cor0
----
138
58
78

query I rowsort
SELECT - - col0 + - 44 * - col1 AS col2 FROM tab2 AS cor0
----
2290
3023
3452

query I rowsort
SELECT ALL + 40 + col0 AS col1 FROM tab1 AS cor0
----
125
131
91

query I rowsort
SELECT DISTINCT ( + - col0 ) + + 50 AS col1 FROM tab1 AS cor0
----
-1
-35
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT col1 * 78 - - CAST( - + 81 AS SIGNED ) FROM tab0 AS cor0
----
-3
1557
6237

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT col1 * 78 - - CAST ( - + 81 AS INTEGER ) FROM tab0 AS cor0
----
-3
1557
6237

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 10 <= - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 32 + - 17 + col1 AS col1 FROM tab2
----
66
82
92

query I rowsort
SELECT ALL + 2 - + 69 AS col0 FROM tab2
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 61 * + + COUNT( * ) AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-9447
SELECT 61 * + + COUNT ( * ) AS col0 FROM tab0
----
183

query II rowsort
SELECT DISTINCT 32 + + col2 * 31, col1 FROM tab2
----
1272
77
1830
67
745
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 * + + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + 45 + 75 + + 80 * - - COUNT( * ) - + COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
357

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + 45 + 75 + + 80 * - - COUNT ( * ) - + COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
357

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) >= + col2 * 45 - - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT - + MAX( ALL col2 ) - - 64 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - + MAX ( ALL col2 ) - - 64 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT + ( - + col0 ) + - col1 + 21 * + col2 AS col1 FROM tab2 AS cor0
----
1076
386
699

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT - - col2 + + + 26 * - 47 - col1 DIV + - col1 AS col2 FROM tab0 AS cor0
----
-1122
-1174
-1211

skipif mysql # not compatible
query I rowsort label-9454
SELECT - - col2 + + + 26 * - 47 - col1 / + - col1 AS col2 FROM tab0 AS cor0
----
-1122
-1174
-1211

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col2 * + col0 * - + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT COUNT( * ) DIV - - 63 * COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9456
SELECT COUNT ( * ) / - - 63 * COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 59 AS col0 FROM tab2 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, - 7 * 50 col2 FROM tab1 AS cor0
----
-14
-350
-47
-350
-5
-350

query II rowsort
SELECT ALL - 93 * + ( 24 ) AS col0, - ( - 26 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2232
26
-2232
26
-2232
26

query I rowsort
SELECT ALL + col2 * + - 70 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9462
SELECT ( + - CAST( + + COUNT( DISTINCT + col0 ) AS SIGNED ) ), 64 - 37 * - + 90 AS col1 FROM tab0 cor0
----
-3
3394

skipif mysql # not compatible
query II rowsort label-9462
SELECT ( + - CAST ( + + COUNT ( DISTINCT + col0 ) AS INTEGER ) ), 64 - 37 * - + 90 AS col1 FROM tab0 cor0
----
-3
3394

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + - 62 * - 48 * - COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0
----
-26784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9463
SELECT ALL + - 62 * - 48 * - COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
-26784

query III rowsort
SELECT * FROM tab0 WHERE NOT - 26 / col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL < + + col1
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL < + + col1
----
0

query II rowsort
SELECT DISTINCT col1 + + col1, col1 FROM tab0 AS cor0
----
162
81
2
1
42
21

query I rowsort
SELECT - - col0 + - 87 FROM tab1 AS cor0
----
-2
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * 5 + + 53 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + MIN( ALL + 44 ) FROM tab2 cor0
----
44

skipif mysql # not compatible
query I rowsort label-9470
SELECT + MIN ( ALL + 44 ) FROM tab2 cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT ALL + col0 * + + col1 + - 30 + col0 DIV + col1 + - 20 AS col2 FROM tab0 AS cor0
----
1165
144
1781

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + col0 * + + col1 + - 30 + col0 / + col1 + - 20 AS col2 FROM tab0 AS cor0
----
1165
144
1781

query II rowsort
SELECT + ( - + ( 85 ) ) AS col2, col2 FROM tab2 cor0
----
-85
23
-85
40
-85
58

query I rowsort
SELECT ALL 34 + - col0 + + col0 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT IN ( 43, + col1 * + 75 + - 83, - col2 * + + 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 77 + + - 46 AS col2 FROM tab2 cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT col2 + + - col2 - - 6 DIV - 84 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT col2 + + - col2 - - 6 / - 84 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + + + col2 - col0 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT DISTINCT col1 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT 44 NOT IN ( ( + 5 ) * 34, col0 )
----

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT col1 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT 44 NOT IN ( ( + 5 ) * 34, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT ALL + 53 * - CAST( - + 88 AS SIGNED ) FROM tab1
----
4664
4664
4664

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + 53 * - CAST ( - + 88 AS INTEGER ) FROM tab1
----
4664
4664
4664

query I rowsort
SELECT ALL + col1 - + - col1 * - col0 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT + ( - col1 ) + + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 97 + col1 - col2 FROM tab2
----
-60
-69
-88

query I rowsort
SELECT ALL + 41 * - ( - + col0 ) * col1 AS col2 FROM tab0
----
3977
49815
74907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + 68 + + + 16 AS col1 FROM tab0 AS cor0 WHERE + ( + col1 ) + - col2 * + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col2 * 72 * + col1 * + col2 - col0
----

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT DISTINCT - col0 * 47 DIV - 94 AS col0 FROM tab0
----
43
48
7

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - col0 * 47 / - 94 AS col0 FROM tab0
----
43
48
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT - 52 * - 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to feb60a8bbeb80675cb8b2c002c8f7931

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - MIN( - 16 ) + + 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-9491
SELECT - MIN ( - 16 ) + + 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT DISTINCT - 29 FROM tab1 AS cor0 WHERE NOT - col0 * + - 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 91 * + ( 3 ) + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT + MIN( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9495
SELECT + MIN ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT - col1 AS col1, 31 AS col0 FROM tab0 AS cor0
----
-1
31
-21
31
-81
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT COUNT( * ), - 49 + + 46 * + 6 AS col0 FROM tab2 AS cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-9498
SELECT COUNT ( * ), - 49 + + 46 * + 6 AS col0 FROM tab2 AS cor0
----
3
227

query I rowsort
SELECT + 23 * + - col2 FROM tab2 AS cor0
----
-1334
-529
-920

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 65 + + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col0 AS col2, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT DISTINCT CAST( + 19 AS SIGNED ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT CAST ( + 19 AS INTEGER ) FROM tab1
----
19

query I rowsort
SELECT - col2 * + + col0 * + col1 AS col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + - col0 - + 19 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
-106
-116
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ( MAX( DISTINCT - ( - + col0 ) ) ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9505
SELECT ( MAX ( DISTINCT - ( - + col0 ) ) ) AS col2 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + 52 + - + col0 AS col1 FROM tab2
----
-12
-23
6

query I rowsort
SELECT + col1 * - - 86 AS col0 FROM tab0 AS cor0
----
1806
6966
86

query I rowsort
SELECT - 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT col0 * col2 * - - 88 + 4 AS col2 FROM tab2 AS cor0
----
225284
382804
93108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + 7 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT DISTINCT - 0 + - col0 + + CAST( NULL AS SIGNED ) * - 45 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT - 0 + - col0 + + CAST ( NULL AS INTEGER ) * - 45 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + 7 + 78 AS col2 FROM tab0 AS cor0
----
100
172
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + SUM( DISTINCT - 19 ) AS col1 FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9514
SELECT + SUM ( DISTINCT - 19 ) AS col1 FROM tab1 cor0
----
-19

query I rowsort
SELECT DISTINCT - col0 * col2 * + - col0 - col2 FROM tab2 AS cor0
----
163800
326192
48645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL CAST( NULL AS SIGNED ) * + ( - + MAX( DISTINCT + - 26 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL CAST ( NULL AS INTEGER ) * + ( - + MAX ( DISTINCT + - 26 ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + COUNT( + - 41 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9517
SELECT + COUNT ( + - 41 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9518
SELECT + CAST( NULL AS SIGNED ), + COUNT( - col1 ) col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9518
SELECT + CAST ( NULL AS INTEGER ), + COUNT ( - col1 ) col1 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL + COUNT( * ) - SUM( + 1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + COUNT ( * ) - SUM ( + 1 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT DISTINCT + col0 DIV ( 67 ) * 59 - - col1 AS col2 FROM tab2
----
126
51
77

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT + col0 / ( 67 ) * 59 - - col1 AS col2 FROM tab2
----
126
51
77

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col0 NOT BETWEEN + - col2 * - col1 + - 16 * 40 * + - 86 AND col0 - - 63 * 18 / - col1 / - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( NULL NOT IN ( 98 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 65 * + col2 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT - - SUM( DISTINCT - 9 ) * - + ( + 75 ) FROM tab1 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT - - SUM ( DISTINCT - 9 ) * - + ( + 75 ) FROM tab1 AS cor0
----
675

query I rowsort
SELECT + + col1 * + + col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9526
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * col0 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9526
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * col0 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 13 < - 57 * + 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT - 46 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 46 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-138

query I rowsort
SELECT ( - 76 ) AS col1 FROM tab2 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - MAX( ALL - col0 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT - MAX ( ALL - col0 ) col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9531
SELECT - CAST( NULL AS DECIMAL ) + + + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9531
SELECT - CAST ( NULL AS REAL ) + + + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + SUM( + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9532
SELECT + SUM ( + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT - + 16 * + col1 AS col1 FROM tab1 cor0
----
-224
-752
-80

query I rowsort
SELECT col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col1 FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL - ( 43 ) * + col1 AS col0 FROM tab2 AS cor0
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9538
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / - 81 <= - CAST( + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9538
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / - 81 <= - CAST ( + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( ( NULL ) NOT IN ( - col1 + - 52 + + col0 * - col0 * + + col0 ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 81 NOT BETWEEN - col0 AND - col1 + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - COUNT( * ) * COUNT( * ) + + 50 + - COUNT( * ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-9541
SELECT - COUNT ( * ) * COUNT ( * ) + + 50 + - COUNT ( * ) FROM tab1
----
38

query II rowsort
SELECT ALL col0, - 7 AS col1 FROM tab0
----
15
-7
87
-7
97
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 98 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9545
SELECT col2 + - col1, col1 + + + col1 + + ( CAST( NULL AS SIGNED ) ) * + + col2 + + 33 AS col2 FROM tab1 AS cor0 WHERE + 76 = - col0
----

skipif mysql # not compatible
query II rowsort label-9545
SELECT col2 + - col1, col1 + + + col1 + + ( CAST ( NULL AS INTEGER ) ) * + + col2 + + 33 AS col2 FROM tab1 AS cor0 WHERE + 76 = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9547
SELECT - col0 DIV col2 DIV - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9547
SELECT - col0 / col2 / - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 18 + 65 FROM tab1
----
83

query I rowsort
SELECT - - 58 - - col1 + + 77 * - col1 * - ( - col1 ) + - col0 + 70 AS col0 FROM tab1 AS cor0
----
-15001
-170009
-1877

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT DISTINCT - + 67 * col0 * col2 DIV + - col2 + col1 FROM tab2 AS cor0
----
3133
4365
5092

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT - + 67 * col0 * col2 / + - col2 + col1 FROM tab2 AS cor0
----
3133
4365
5092

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab2 AS cor0 WHERE - 80 = col2
----

query II rowsort
SELECT ALL col1 - - 39, - 55 + - col0 AS col1 FROM tab2
----
106
-130
116
-119
90
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - - ( col2 ) col0 FROM tab1 WHERE - col0 IS NULL
----

query II rowsort
SELECT + col1, ( + + col1 ) * ( col2 ) - ( - 76 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT + SUM( DISTINCT + col0 ) * - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1
----
2043

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + SUM ( DISTINCT + col0 ) * - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1
----
2043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT - MIN( - - CAST( + ( - - col0 ) AS SIGNED ) ) * + COUNT( * ) FROM tab2 WHERE NOT col1 IS NULL
----
-138

skipif mysql # not compatible
query I rowsort label-9556
SELECT - MIN ( - - CAST ( + ( - - col0 ) AS INTEGER ) ) * + COUNT ( * ) FROM tab2 WHERE NOT col1 IS NULL
----
-138

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col2 + - col0 - - 84 ) IS NOT NULL
----

query I rowsort
SELECT 22 * + - col1 AS col0 FROM tab0
----
-1782
-22
-462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9560
SELECT DISTINCT CAST( ( + col0 ) AS SIGNED ), + CAST( col0 AS SIGNED ) col0 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9560
SELECT DISTINCT CAST ( ( + col0 ) AS INTEGER ), + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 82 * - - col1 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 AS col2 FROM tab1 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT DISTINCT + col1 * - - 82 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + MIN( - - 92 ) + + 86 AS col0 FROM tab0 WHERE NOT - - col0 NOT IN ( col1 * 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT + MIN ( - - 92 ) + + 86 AS col0 FROM tab0 WHERE NOT - - col0 NOT IN ( col1 * 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL + ( + 49 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-441

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + ( + 49 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-441

query I rowsort
SELECT - + col1 + + col2 * - col2 AS col2 FROM tab1 cor0
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT ALL + + COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9569
SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + col2 NOT BETWEEN ( col0 + col0 ) AND ( NULL )
----

query I rowsort
SELECT col0 + + - col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9572
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - col0 ) IN ( 85, + col0 / + 68, + 56 )
----

skipif mysql # not compatible
query III rowsort label-9572
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 ) IN ( 85, + col0 / + 68, + 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9573
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + + ( - col0 ) NOT BETWEEN ( + col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9573
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + + ( - col0 ) NOT BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT col0 / + 68 / + CAST( + - CAST( NULL AS SIGNED ) 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-9574
SELECT col0 / + 68 / + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT ALL col2 + - col0 DIV + + col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL col2 + - col0 / + + col2 FROM tab2
----
21
39
57

query II rowsort
SELECT ALL col2, col1 + ( col1 ) FROM tab2 WHERE NOT NULL BETWEEN + + 38 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL + MIN( + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + MIN ( + col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + col0 + + + 78 + col1 AS col2 FROM tab2 AS cor0
----
175
219
220

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT 49 - ( + 6 ) DIV + col2 + + 95 AS col2 FROM tab1 AS cor0
----
144
144
144

skipif mysql # not compatible
query I rowsort label-9579
SELECT 49 - ( + 6 ) / + col2 + + 95 AS col2 FROM tab1 AS cor0
----
144
144
144

query I rowsort
SELECT - + 38 AS col2 FROM tab2 AS cor0 WHERE col1 / - col0 / - col1 * + col0 * - + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 41 ) >= NULL
----

query I rowsort
SELECT ALL - col0 * col0 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
10656
75711
931492

query I rowsort
SELECT ALL + col1 - - 34 AS col1 FROM tab1 AS cor0
----
39
48
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + COUNT( * ) * ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9587
SELECT + COUNT ( * ) * ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - ( - - ( + col2 ) ) AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + 54 AS col2 FROM tab1 AS cor0
----
54
54
54

query II rowsort
SELECT - 65, col2 AS col0 FROM tab2
----
-65
23
-65
40
-65
58

query II rowsort
SELECT ALL col0 AS col2, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + ( - + ( - col0 ) ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT 91 * - 59 / + - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT 91 * - 59 / + - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT SUM( 96 ) AS col2 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-9596
SELECT SUM ( 96 ) AS col2 FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT SUM( ALL + 18 ) * + 3 col1 FROM tab0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT SUM ( ALL + 18 ) * + 3 col1 FROM tab0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT MIN( + + 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT MIN ( + + 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9599
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9599
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 37 + + 92 BETWEEN NULL AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + + 41 ) AS col2 FROM tab1
----
-41

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE - 30 / - 60 * col1 + - col0 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT DISTINCT 19 + + CAST( NULL AS SIGNED ) + COUNT( * ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT 19 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT + COUNT( * ) + 88 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + COUNT ( * ) + 88 FROM tab2 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT DISTINCT + + col0 + - - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT + + col0 + - - col1 / col0 AS col0 FROM tab2 AS cor0
----
47
65
75

query I rowsort
SELECT DISTINCT col0 * col2 / col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT - col2 * + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9607
SELECT - col2 * + col0 / col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL col0 DIV - + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL col0 / - + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN - col2 - - + col0 AND NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col1 + + 81 AS col0 FROM tab1
----
128
86
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 69 col2 FROM tab0
----
116
168
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT COUNT( * ) + - 35 AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9613
SELECT COUNT ( * ) + - 35 AS col1 FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - 5 + - - COUNT( * ) AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9614
SELECT - 5 + - - COUNT ( * ) AS col0 FROM tab2
----
-2

query I rowsort
SELECT 72 + + - 20 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col0 + + + 30 = ( ( col0 ) ) * - - col2 + - + 73 - - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 / 74 col1 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND + + col1 * - 52 )
----

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + ( + col0 ) col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - 61 * 56 + col1 FROM tab1 WHERE NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT 99 - + col0 - + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
-45
-48
-60

skipif mysql # not compatible
query I rowsort label-9621
SELECT 99 - + col0 - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
-45
-48
-60

query I rowsort
SELECT ALL - - 62 AS col2 FROM tab1 cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT + col2 * - col2 + + 22 + - col2 DIV 98 * col1 FROM tab1 cor0
----
-3459
-4602
-9194

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + col2 * - col2 + + 22 + - col2 / 98 * col1 FROM tab1 cor0
----
-3459
-4602
-9194

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT ALL + col2 DIV ( 35 ) DIV 82 + - 48 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + col2 / ( 35 ) / 82 + - 48 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

query II rowsort
SELECT ALL ( - 93 ) AS col1, ( + col0 ) AS col0 FROM tab2 AS cor0
----
-93
46
-93
64
-93
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + - MIN( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9626
SELECT + - MIN ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col0 * col2 + - col1 / + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT - SUM( ALL - 69 ) FROM tab2, tab0 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-9628
SELECT - SUM ( ALL - 69 ) FROM tab2, tab0 AS cor0
----
621

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NOT NULL >= col2 / + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT - ( - - SUM( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT - ( - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * 41 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + + col0 + - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - SUM( ALL + 75 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9633
SELECT - SUM ( ALL + 75 ) FROM tab2
----
-225

query I rowsort
SELECT - 9 * + - col1 AS col2 FROM tab2
----
459
603
693

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col0 NOT IN ( col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + - SUM( ALL + - 54 ) AS col0 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9636
SELECT + - SUM ( ALL + - 54 ) AS col0 FROM tab2 AS cor0
----
162

query II rowsort
SELECT ALL col2, - 69 * - ( - + col1 ) + col0 * + 75 FROM tab1 AS cor0
----
59
6030
68
3582
96
2859

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT + + SUM( + 55 ) AS col0 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT + + SUM ( + 55 ) AS col0 FROM tab0 AS cor0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 90 ) col2 FROM tab0 AS cor0
----
90

query II rowsort
SELECT col1, + col0 * - 32 FROM tab1
----
14
-1632
47
-2912
5
-2720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
50

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT SUM( + col2 ) * + COUNT( * ) + 65 AS col2 FROM tab1 AS cor0
----
734

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT SUM ( + col2 ) * + COUNT ( * ) + 65 AS col2 FROM tab1 AS cor0
----
734

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT DISTINCT + col1 + - col1 DIV + col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT + col1 + - col1 / + col2 FROM tab2 AS cor0
----
49
66
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - 78 FROM tab1 AS cor0
----
51
-78
85
-78
91
-78

query I rowsort
SELECT ( col1 ) * col0 * + + col0 AS col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT + ( - 38 ) FROM tab1
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT COUNT( * ) * - MAX( - col0 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT COUNT ( * ) * - MAX ( - col0 ) AS col2 FROM tab0
----
45

query III rowsort
SELECT * FROM tab1 WHERE ( 75 ) > 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - MIN( DISTINCT + col0 ) + COUNT( * ) AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( - ( col0 ) + - col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT - MIN ( DISTINCT + col0 ) + COUNT ( * ) AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( - ( col0 ) + - col1 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9652
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) * - 44 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) * - 44 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9653
SELECT DISTINCT col1 * col2 DIV 91 * + + col1 * - - col0 AS col2, col0 FROM tab1
----
1275
85
149695
91
9996
51

skipif mysql # not compatible
query II rowsort label-9653
SELECT DISTINCT col1 * col2 / 91 * + + col1 * - - col0 AS col2, col0 FROM tab1
----
1275
85
149695
91
9996
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9654
SELECT ALL CAST( NULL AS DECIMAL ) + + col1 - - + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL CAST ( NULL AS REAL ) + + col1 - - + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 32 + + - ( - col2 ) FROM tab2 AS cor0
----
55
72
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT COUNT( DISTINCT col0 ) DIV + + 42 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( DISTINCT col0 ) / + + 42 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 52 * 87 col0 FROM tab1 AS cor0
----
4524
4524
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT 72 AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-9658
SELECT 72 AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT - + MIN( col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9659
SELECT DISTINCT - + MIN ( col2 ) col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - + ( - 85 ) FROM tab0 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT - - CAST( NULL AS SIGNED ) * + MAX( ALL - + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT - - CAST ( NULL AS INTEGER ) * + MAX ( ALL - + col1 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col2 AS col1, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT + 4 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT + 4 / - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9664
SELECT DISTINCT - CAST( NULL AS SIGNED ), col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9664
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col1 FROM tab1 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT + 97 AS col0, COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
97
9

skipif mysql # not compatible
query II rowsort label-9666
SELECT + 97 AS col0, COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
97
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 79 / - col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN ( col2 ) AND 92
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9669
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - + col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-9669
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 94 * - col0 col1, + col2 AS col1 FROM tab1
----
-4794
96
-7990
59
-8554
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 - - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + col0 * 87 * col1 col1 FROM tab2
----
12246120
25724160
26230500

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 / col0 AND NULL
----

query I rowsort
SELECT + ( ( - col0 ) ) + - 30 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-115
-121
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 82 * + 58 * 30 col2 FROM tab0 AS cor0
----
142680
142680
142680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * - + col1 col1 FROM tab2 AS cor0
----
2193
2881
3311

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - 93 * 42 FROM tab2
----
-3906
-3906
-3906

query I rowsort
SELECT DISTINCT 80 * + col2 AS col1 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT DISTINCT + 14 + - col1 - - + col0 FROM tab2 AS cor0
----
1
22
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col2 ) * - ( + col1 ) + - col1 + col2 IS NULL
----

query I rowsort
SELECT ALL - col0 * + - 35 + - col0 AS col0 FROM tab2 cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3

query I rowsort
SELECT + + 49 * - 82 FROM tab1 cor0
----
-4018
-4018
-4018

query I rowsort
SELECT DISTINCT - col2 * col1 + + - col2 + - + 73 FROM tab1 AS cor0
----
-1513
-3337
-427

query I rowsort
SELECT ALL + 60 - + - col1 FROM tab2
----
111
127
137

query I rowsort
SELECT DISTINCT - col0 - ( col1 ) FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - 22 * col0 * + 20 AS col1 FROM tab0
----
-38280
-42680
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT MIN( DISTINCT - + 83 ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT MIN ( DISTINCT - + 83 ) AS col0 FROM tab1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT col2 + + CAST( + col2 AS SIGNED ) + + - 69 * ( - - col0 ) FROM tab0
----
-5983
-6495
-941

skipif mysql # not compatible
query I rowsort label-9690
SELECT col2 + + CAST ( + col2 AS INTEGER ) + + - 69 * ( - - col0 ) FROM tab0
----
-5983
-6495
-941

query I rowsort
SELECT 33 * - - ( col0 ) + + col2 FROM tab0
----
2881
3300
542

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT - COUNT( * ) * - 23 col1 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9692
SELECT DISTINCT - COUNT ( * ) * - 23 col1 FROM tab2
----
69

query I rowsort
SELECT DISTINCT - - col0 - + 20 + + col2 AS col2 FROM tab2 AS cor0
----
113
49
84

query I rowsort
SELECT DISTINCT col2 - - + col2 + - + col0 * + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 73 >= + col0 + - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL - MAX( DISTINCT - col0 ) * + 75 FROM tab0
----
1125

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - MAX ( DISTINCT - col0 ) * + 75 FROM tab0
----
1125

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col0 <> NULL
----

query I rowsort
SELECT ALL + + ( - 42 ) * + - col1 AS col2 FROM tab0 AS cor0
----
3402
42
882

query I rowsort
SELECT + 89 FROM tab1 cor0 WHERE NOT - 30 * 0 IS NULL
----
89
89
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9699
SELECT - - col0 + - + col1 + CAST( + - col1 AS DECIMAL ) / + - 42 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + + col2 AND + col0 * - col0
----

skipif mysql # not compatible
query I rowsort label-9699
SELECT - - col0 + - + col1 + CAST ( + - col1 AS REAL ) / + - 42 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + + col2 AND + col0 * - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9700
SELECT + 78 / - col1 / - CAST( NULL AS DECIMAL ) / - col1 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT + 78 / - col1 / - CAST ( NULL AS REAL ) / - col1 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT + col1 DIV 42 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9701
SELECT + col1 / 42 AS col2 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT ALL - 86 DIV - + ( - col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - 86 / - + ( - col0 ) FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 14 AS col1, + col1 col1 FROM tab2
----
14
51
14
67
14
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT ALL + col0 DIV col2 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT ALL + col0 / col2 col2 FROM tab2
----
1
1
2

query II rowsort
SELECT 5, col2 FROM tab1
----
5
59
5
68
5
96

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col0 ) + - - col1 col0, 37 FROM tab0
----
108
37
96
37
98
37

query II rowsort
SELECT DISTINCT + 11 AS col2, - col2 * col1 FROM tab0
----
11
-210
11
-3807
11
-99

query I rowsort
SELECT DISTINCT - col2 + - 53 AS col0 FROM tab2
----
-111
-76
-93

query I rowsort
SELECT + col0 * - 16 AS col2 FROM tab1 AS cor0
----
-1360
-1456
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + 69 + + + col0 col2 FROM tab0
----
146
253
362

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) > NULL
----

query I rowsort
SELECT + - ( 81 ) + - col1 AS col1 FROM tab2 AS cor0
----
-132
-148
-158

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 cor0 WHERE ( + col2 ) > + col1 * - - col1 + 36
----

query II rowsort
SELECT ALL + + col1 + - col1 AS col1, - col1 + 71 + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
0
-1606
0
-3360
0
-509

query I rowsort
SELECT ALL + ( - col2 ) - - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-113
-178
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 + - 32 * - col0 col0 FROM tab2 AS cor0
----
3588
6144
8025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + 48 col0 FROM tab0 AS cor0
----
-1
-38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL COUNT( DISTINCT + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL COUNT ( DISTINCT + - col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 * + col2 - col2 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9722
SELECT ALL - 62 DIV COUNT( DISTINCT - col2 ) - - - 21 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - 62 / COUNT ( DISTINCT - col2 ) - - - 21 FROM tab2
----
-41

query III rowsort
SELECT * FROM tab0 WHERE - 4 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col2 * col2 + + col0 / - + col1
----

query I rowsort
SELECT + col2 + + + col1 AS col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT + - ( - 56 ) / - col2 + 7 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT 21 * + COUNT( * ) col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9727
SELECT 21 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT DISTINCT + + 65, COUNT( * ) * + - 1 AS col0 FROM tab2 AS cor0
----
65
-3

skipif mysql # not compatible
query II rowsort label-9728
SELECT DISTINCT + + 65, COUNT ( * ) * + - 1 AS col0 FROM tab2 AS cor0
----
65
-3

query I rowsort
SELECT DISTINCT + 33 * - - 10 AS col2 FROM tab1 AS cor0
----
330

query I rowsort
SELECT + col0 * + ( - 14 ) FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT col0 * - col1 - col2 FROM tab1 cor0
----
-4345
-484
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT DISTINCT - COUNT( - - 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 = - - CAST( + - 66 AS SIGNED ) - col0
----
-2

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT - COUNT ( - - 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 = - - CAST ( + - 66 AS INTEGER ) - col0
----
-2

query I rowsort
SELECT + 4 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL - CAST( - col2 AS SIGNED ) + - - ( - - 83 ) FROM tab2
----
106
123
141

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - CAST ( - col2 AS INTEGER ) + - - ( - - 83 ) FROM tab2
----
106
123
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + MIN( ALL - col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9735
SELECT + MIN ( ALL - col0 ) col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - - MIN( col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT - - MIN ( col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 19 + - + 51 AS col0 FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 + - col0 * + 94 >= + col2 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 + - col0 * + 94 >= + col2 * - col1
----
3

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col1 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT + col1 DIV - 24 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT + col1 / - 24 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL - + ( 99 ) * 78 * - + COUNT( * ) + + 15 * - MIN( ALL - 50 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9743
SELECT ALL - + ( 99 ) * 78 * - + COUNT ( * ) + + 15 * - MIN ( ALL - 50 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70248

query I rowsort
SELECT + ( - ( ( + col2 ) ) ) FROM tab1 WHERE - col0 + - 4 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL + + COUNT( * ) / - AVG ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + + COUNT ( * ) / - AVG ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 - col0 col1 FROM tab0 AS cor0
----
-31
-41
41

query I rowsort
SELECT DISTINCT - - col1 + 28 FROM tab0 AS cor0
----
109
29
49

query I rowsort
SELECT - - 1 / + + col2 * col2 + col1 FROM tab2 cor0 WHERE NULL > col1 * + + col0 * + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL + - MIN( + 31 ) FROM tab2 AS cor0 WHERE + col1 + 88 IS NOT NULL
----
-31

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + - MIN ( + 31 ) FROM tab2 AS cor0 WHERE + col1 + 88 IS NOT NULL
----
-31

query I rowsort
SELECT DISTINCT + col2 + + - col1 * + 8 FROM tab0 AS cor0
----
-158
-601
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL = ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT ALL - - 52 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-9753
SELECT ALL - - 52 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
52
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT 0 + + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9755
SELECT 0 + + - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT ( + - 44 ) AS col1 FROM tab1 WHERE - - col1 * + col1 <= - + 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT - 84 DIV - 12 + + - 68 FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-9757
SELECT - 84 / - 12 + + - 68 FROM tab2
----
-61
-61
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9758
SELECT + col0 * ( + - col1 ) + - CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9758
SELECT + col0 * ( + - col1 ) + - CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - - 69 FROM tab1
----
-120
-154
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT DISTINCT col2 - + col0 DIV - 59 FROM tab0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT col2 - + col0 / - 59 FROM tab0
----
100
11
47

onlyif mysql # DIV for integer division: 
query II rowsort label-9761
SELECT + 42 DIV + 57 + + col1 * - 16 + col2 AS col2, - 73 * 39 + - col1 col1 FROM tab2
----
-1014
-2914
-1192
-2924
-793
-2898

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9761
SELECT + 42 / + 57 + + col1 * - 16 + col2 AS col2, - 73 * 39 + - col1 col1 FROM tab2
----
-1014
-2914
-1192
-2924
-793
-2898

query I rowsort
SELECT - col2 * - + 78 FROM tab1
----
4602
5304
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col1 FROM tab1
----
71

query I rowsort
SELECT DISTINCT - ( - - 27 ) FROM tab1 AS cor0 WHERE NOT col0 * - col1 / - - col2 IS NULL
----
-27

query I rowsort
SELECT ALL + ( ( - 51 ) ) FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - + 31 * + - 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL + - 10 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + - 10 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL 34 * + col2 FROM tab0 cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT MAX( 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT MAX ( 93 ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL + 92 * - 11 FROM tab1 AS cor0
----
-1012
-1012
-1012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9772
SELECT DISTINCT + CAST( + MIN( DISTINCT ( + CAST( col1 AS SIGNED ) ) ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-9772
SELECT DISTINCT + CAST ( + MIN ( DISTINCT ( + CAST ( col1 AS INTEGER ) ) ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
5
NULL

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT 30 IN ( - col0 )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 49 + + 61 col2 FROM tab1 AS cor0
----
2952
3393
4765

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT COUNT( * ) * - + 24 AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9775
SELECT COUNT ( * ) * - + 24 AS col2 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT 78 * - + COUNT( * ) FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-9776
SELECT 78 * - + COUNT ( * ) FROM tab2
----
-234

query I rowsort
SELECT 96 * + col2 * - 11 * + 32 * - 98 FROM tab0
----
155645952
327849984
33116160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 col0 FROM tab1
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 + + col2 col1, - 2 * + + col1 FROM tab1 AS cor0 WHERE - 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9780
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col2 + + 56 + + CAST( NULL AS DECIMAL ) + - - 87 / - col0 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9780
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 + + 56 + + CAST ( NULL AS REAL ) + - - 87 / - col0 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT DISTINCT + col2 * + 83 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT ALL 82 * - + col1 FROM tab1
----
-1148
-3854
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL - + MAX( ALL - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - + MAX ( ALL - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 - - 80 AS col2 FROM tab0 AS cor0
----
-17
-7
65

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT 18 * - col1 IS NULL AND NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + + col1 FROM tab1
----
59
90
68
138
96
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL = + col1 * - + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 * + - 33 + col0 > + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9790
SELECT ALL * FROM tab0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9790
SELECT ALL * FROM tab0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 92 + col2 * + col0 FROM tab1
----
4988
5107
6280

query I rowsort
SELECT ALL + col2 + 49 FROM tab2
----
107
72
89

query I rowsort
SELECT + 38 + col0 FROM tab2
----
102
113
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT DISTINCT - COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + 28 + COUNT( * ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9795
SELECT + 28 + COUNT ( * ) AS col2 FROM tab2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT + col2 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 - col0 * - col0 > ( 17 )
----

skipif mysql # not compatible
query I rowsort label-9796
SELECT + col2 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 - col0 * - col0 > ( 17 )
----

query I rowsort
SELECT - 22 AS col2 FROM tab0 WHERE ( 72 / col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT col2 FROM tab1 WHERE NOT - col2 * 31 + ( + CAST( NULL AS SIGNED ) ) * col2 NOT BETWEEN 18 - col0 AND ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9799
SELECT col2 FROM tab1 WHERE NOT - col2 * 31 + ( + CAST ( NULL AS INTEGER ) ) * col2 NOT BETWEEN 18 - col0 AND ( CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * + 13 + col2 FROM tab2
----
322
560
812

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE col1 * 12 IS NULL
----

query I rowsort
SELECT DISTINCT + 66 * 50 + col0 AS col2 FROM tab0
----
3315
3387
3397

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT MIN( ALL col2 ) * - 24 AS col0 FROM tab2
----
-552

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT MIN ( ALL col2 ) * - 24 AS col0 FROM tab2
----
-552

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) - col0 / col1 NOT IN ( col1 + - col2 * - 94 )
----

query III rowsort
SELECT * FROM tab1 WHERE 93 / - 65 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT ALL 31 * - ( + COUNT( * ) DIV + 56 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL 31 * - ( + COUNT ( * ) / + 56 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 74
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT 68 DIV 20 - COUNT( - 44 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT 68 / 20 - COUNT ( - 44 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( ( - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 11 NOT IN ( col2 + - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - 60 - COUNT( DISTINCT + 35 ) AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 60 - COUNT ( DISTINCT + 35 ) AS col2 FROM tab2
----
-61

query I rowsort
SELECT + col1 + + 95 FROM tab0
----
116
176
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col0 + col1 / col0 ) AND NULL
----

query I rowsort
SELECT + 85 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT SUM( DISTINCT + col0 ) * 80 FROM tab1
----
18160

skipif mysql # not compatible
query I rowsort label-9816
SELECT SUM ( DISTINCT + col0 ) * 80 FROM tab1
----
18160

query I rowsort
SELECT 5 * + col1 AS col2 FROM tab2
----
255
335
385

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > - 56
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 83 * col1 ) <> ( col1 ) * - col2 + - 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 53 FROM tab0 WHERE - 47 * 82 < - 97
----
53
53
53

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL - ( 36 ) * + COUNT( * ) col1 FROM tab0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9822
SELECT ALL - ( 36 ) * + COUNT ( * ) col1 FROM tab0
----
-108

query I rowsort
SELECT + 39 + + col1 AS col2 FROM tab0 AS cor0
----
120
40
60

query I rowsort
SELECT ALL col0 + ( - col1 ) FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 - + col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 0 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 - - col2 col1 FROM tab2
----
115
132
150

query I rowsort
SELECT col1 - 31 AS col2 FROM tab1
----
-17
-26
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT col0 - + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT col0 - + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT DISTINCT - 70 * SUM( DISTINCT - col2 * 91 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - 70 * SUM ( DISTINCT - col2 * 91 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col0 + + 59 * 47 FROM tab0 AS cor0
----
2870
3988
4600

query I rowsort
SELECT ALL + + 50 + + col1 AS col1 FROM tab0 AS cor0
----
131
51
71

query I rowsort
SELECT 72 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4248
4896
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9835
SELECT ALL + + MAX( 1 ) DIV 63 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + + MAX ( 1 ) / 63 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 - - col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2139
-4136
-5683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT col0 * - col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT - COUNT( col0 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9838
SELECT - COUNT ( col0 ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 * 35 AS col1 FROM tab2 cor0
----
1610
2240
2625

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + - MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9841
SELECT + - MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col0 * 97 AS col2 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL 65 * - COUNT( * ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL 65 * - COUNT ( * ) FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT ALL + 81 DIV + col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + 81 / + col1 FROM tab1
----
1
16
5

query III rowsort
SELECT * FROM tab1 WHERE NOT - 28 * 26 < + 82
----

query I rowsort
SELECT ALL + 52 * col1 + + col2 FROM tab0 WHERE NOT + ( - col1 ) + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9847
SELECT * FROM tab2 WHERE NOT - col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9847
SELECT * FROM tab2 WHERE NOT - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 8 + col0 ) IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE ( + 97 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT - + SUM( - 30 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT - + SUM ( - 30 ) FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9851
SELECT * FROM tab1 cor0 WHERE NOT ( - CAST( - col0 AS SIGNED ) / - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9851
SELECT * FROM tab1 cor0 WHERE NOT ( - CAST ( - col0 AS INTEGER ) / - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT DISTINCT + + col0 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + + col0 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - - ( + - 93 ) AS col1 FROM tab1 cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 40 ) + + col0 + 75 col0 FROM tab0 AS cor0
----
130
202
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL 83 - CAST( NULL AS SIGNED ) * SUM( ALL + 69 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL 83 - CAST ( NULL AS INTEGER ) * SUM ( ALL + 69 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

query I rowsort
SELECT col2 * - 62 + - + col2 AS col1 FROM tab2 cor0
----
-1449
-2520
-3654

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT + ( col2 ) + - col2 DIV - col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9859
SELECT + ( col2 ) + - col2 / - col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( + + 52 ) * + - col0 + col1 * col0 FROM tab2 AS cor0
----
4738
8256
8925

query II rowsort
SELECT ALL - col2 AS col1, + 86 FROM tab2 AS cor0
----
-23
86
-40
86
-58
86

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + 15 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 82 * col2 AS col1 FROM tab2
----
1886
3280
4756

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE 66 BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 57 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 89 * col0 FROM tab2
----
-4094
-5696
-6675

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col2 * ( + 79 ) * + 68 )
----

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9871
SELECT ALL COUNT( * ) DIV - 21 + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL COUNT ( * ) / - 21 + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col2 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 47 * 98 + + col2 - + col0 FROM tab2 AS cor0
----
4582
4583
4589

query II rowsort
SELECT col0 + + 79 AS col2, + col1 * + col2 + 26 FROM tab0 AS cor0
----
166
236
176
125
94
3833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT + CAST( NULL AS SIGNED ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT + CAST ( NULL AS INTEGER ) + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9876
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - 29 col2 FROM tab1 AS cor0
----
51
-29
85
-29
91
-29

query II rowsort
SELECT ALL + 50, col2 AS col0 FROM tab1 AS cor0
----
50
59
50
68
50
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT ALL + col0 * - 4 + col0 + + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-261
-291
-40

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL + col0 * - 4 + col0 + + + col1 / col0 AS col1 FROM tab0 AS cor0
----
-261
-291
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - - col1 + col2 )
----

query I rowsort
SELECT - - ( + + 76 ) FROM tab2 cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT MAX( col1 ) * - 51 FROM tab1 AS cor0 WHERE NOT ( col2 / col2 ) NOT BETWEEN 91 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT MAX ( col1 ) * - 51 FROM tab1 AS cor0 WHERE NOT ( col2 / col2 ) NOT BETWEEN 91 AND ( NULL )
----
NULL

query I rowsort
SELECT - col2 * + - col0 AS col1 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab2 cor0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9886
SELECT 81 AS col0, COUNT( * ) + + COUNT( + ( + 1 ) ) FROM tab2 AS cor0
----
81
6

skipif mysql # not compatible
query II rowsort label-9886
SELECT 81 AS col0, COUNT ( * ) + + COUNT ( + ( + 1 ) ) FROM tab2 AS cor0
----
81
6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + + 14 * + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL COUNT( * ) * - + SUM( - 18 ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL COUNT ( * ) * - + SUM ( - 18 ) FROM tab1
----
162

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT ( + 43 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > - col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT DISTINCT col0 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT col0 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT MAX( - 77 ) + + 80 AS col2 FROM tab1, tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT MAX ( - 77 ) + + 80 AS col2 FROM tab1, tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT 80 AS col0, 46 * - COUNT( * ) * + + 69 AS col1 FROM tab1
----
80
-9522

skipif mysql # not compatible
query II rowsort label-9893
SELECT 80 AS col0, 46 * - COUNT ( * ) * + + 69 AS col1 FROM tab1
----
80
-9522

query I rowsort
SELECT - ( 33 ) AS col1 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT ALL + + col1 + - col0 * 80 FROM tab2 AS cor0 WHERE NOT ( col2 * col2 ) <> - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT - CAST( + + AVG ( DISTINCT + col1 ) AS SIGNED ) * 7 AS col1 FROM tab1 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - CAST ( + + AVG ( DISTINCT + col1 ) AS INTEGER ) * 7 AS col1 FROM tab1 AS cor0
----
-154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + 80 AND ( col0 + + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - 41 ) * - col2 FROM tab0 cor0
----
-1927
-4059
-410

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 NOT IN ( - ( + col0 ) / + + 34 * col2 / col1 - + col0 - - col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 JOIN tab1 AS cor1 ON NULL <= NULL WHERE NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9901
SELECT DISTINCT AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2, + COUNT( + col0 ) FROM tab0 AS cor0 WHERE + 8 IN ( col1 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9901
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( + col0 ) FROM tab0 AS cor0 WHERE + 8 IN ( col1 )
----
NULL
0

query I rowsort
SELECT DISTINCT - ( + - 93 ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL 93 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT + + col0 DIV 75 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT + + col0 / 75 AS col1 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT DISTINCT + col1 DIV - 64 + - - col1 AS col0 FROM tab0 cor0
----
1
21
80

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + col1 / - 64 + - - col1 AS col0 FROM tab0 cor0
----
1
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + ( + 56 ) + + COUNT( col2 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-9907
SELECT + ( + 56 ) + + COUNT ( col2 ) FROM tab0
----
59

query III rowsort
SELECT * FROM tab1 WHERE 81 + - - col2 + - 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9909
SELECT DISTINCT + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - + 92 + + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 + + 57 AS col1 FROM tab1
----
-11
-2
-39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + + - 0 BETWEEN + col1 / + + col2 / + - col0 AND + col0 + - 46
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( - + col2 ) ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + SUM( 78 ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9915
SELECT + SUM ( 78 ) AS col1 FROM tab0 AS cor0
----
234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9916
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 93 * + ( - - 13 ) + + - CAST( col1 AS DECIMAL ) AND + 42
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9916
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 93 * + ( - - 13 ) + + - CAST ( col1 AS REAL ) AND + 42
----
-59
-68
-96

query I rowsort
SELECT + - 20 FROM tab0 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT ALL + + 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + col2 * col2 - + - 38 AS col2 FROM tab2 cor0
----
1638
3402
567

query II rowsort
SELECT - col2 AS col0, col2 FROM tab1 AS cor0 WHERE NOT - col1 + col2 BETWEEN + + col2 AND NULL
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - ( + + 16 ) AS col1 FROM tab1 cor0
----
-16
-16
-16

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT + col2 = col1 * - - col1 + ( + 62 )
----
51
85
91

query I rowsort
SELECT DISTINCT + 93 * + - 99 AS col1 FROM tab0
----
-9207

query I rowsort
SELECT DISTINCT + ( - + 27 ) FROM tab2
----
-27

query I rowsort
SELECT ALL - col1 * + col0 * - - 53 AS col1 FROM tab2
----
-124338
-261184
-266325

query II rowsort
SELECT DISTINCT - col2, - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + ( - + col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + ( - + col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT COUNT( * ) * - + 52 AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9929
SELECT COUNT ( * ) * - + 52 AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL + MAX( + 25 ) * + - COUNT( * ) * 27 AS col0 FROM tab2
----
-2025

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + MAX ( + 25 ) * + - COUNT ( * ) * 27 AS col0 FROM tab2
----
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT - + MAX( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT - + MAX ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 * - col2 col1 FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT DISTINCT + SUM( ALL + col2 ) DIV 8 AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT + SUM ( ALL + col2 ) / 8 AS col1 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + col0 * col1 FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT CAST( NULL AS SIGNED ) * - + 2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 60 * + CAST( - + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9936
SELECT CAST ( NULL AS INTEGER ) * - + 2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 60 * + CAST ( - + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9937
SELECT DISTINCT - COUNT( * ) AS col1, 94 FROM tab0 AS cor0
----
-3
94

skipif mysql # not compatible
query II rowsort label-9937
SELECT DISTINCT - COUNT ( * ) AS col1, 94 FROM tab0 AS cor0
----
-3
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT DISTINCT - COUNT( * ) * 92 + - + 72 FROM tab1 AS cor0
----
-348

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT - COUNT ( * ) * 92 + - + 72 FROM tab1 AS cor0
----
-348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT + 13 - col2 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9939
SELECT + 13 - col2 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - 2 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-42
-60

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT + 25 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9943
SELECT DISTINCT - COUNT( * ) DIV + COUNT( - - ( col0 ) ) AS col0, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT - COUNT ( * ) / + COUNT ( - - ( col0 ) ) AS col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, + col0 col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - 59 * + - col1 + + ( - col2 ) FROM tab2 AS cor0
----
2986
3895
4503

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND 5 * col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + + MIN( - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT + + MIN ( - 0 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col0 AS col2, + col2 * + 3 + + 11 AS col0 FROM tab1 AS cor0
----
-51
299
-85
188
-91
215

query II rowsort
SELECT + col2, - col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT - - COUNT( ALL - - 55 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9951
SELECT DISTINCT - - COUNT ( ALL - - 55 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( + col0 ) + + 94 FROM tab0 AS cor0
----
-3
7
79

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 / ( + - 89 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= + 47
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT ALL col2 + - + col0 * - 7 AS col2 FROM tab1
----
453
654
705

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + col1 * + col2 >= NULL
----

query II rowsort
SELECT + 23 AS col1, - 13 - + 92 + + col2 AS col1 FROM tab0 AS cor0
----
23
-58
23
-6
23
-95

query I rowsort
SELECT DISTINCT + col1 * - col1 * - col2 + - - col2 + + col1 AS col1 FROM tab0 AS cor0
----
199
308495
4441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT ALL 37 DIV - COUNT( * ) + ( 25 ) col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9960
SELECT ALL 37 / - COUNT ( * ) + ( 25 ) col1 FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT - 31 + - col0 FROM tab2 AS cor0
----
-106
-77
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN - 44 AND + - col0 * col2 * col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9963
SELECT 98 + - CAST( + + col1 AS SIGNED ) DIV col2 DIV col0 * - col0 + - 57 + + 15 FROM tab0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-9963
SELECT 98 + - CAST ( + + col1 AS INTEGER ) / col2 / col0 * - col0 + - 57 + + 15 FROM tab0
----
56
56
56

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NULL < - col2
----

query II rowsort
SELECT ALL + 43 * 25 AS col1, + col1 AS col2 FROM tab0
----
1075
1
1075
21
1075
81

query I rowsort
SELECT ( + col2 ) + + - col0 * + col1 - - + col2 * + col1 * - - col1 * col0 AS col0 FROM tab1
----
125009
13665083
958998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 76 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 76 FROM tab0
----
NULL

query I rowsort
SELECT 39 * - 1 AS col0 FROM tab0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - 99 * - 15 FROM tab0
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT - COUNT( * ) * + - 72 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT - COUNT ( * ) * + - 72 FROM tab2
----
216

query I rowsort
SELECT col0 * 53 AS col1 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT ALL - 16 DIV COUNT( * ) AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - 16 / COUNT ( * ) AS col1 FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT MAX( - + col1 ) col1, + 62 AS col1 FROM tab2 AS cor0
----
-51
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9973
SELECT MAX ( - + col1 ) col1, + 62 AS col1 FROM tab2 AS cor0
----
-51
62

query I rowsort
SELECT + ( 29 ) AS col0 FROM tab2 AS cor0
----
29
29
29

query II rowsort
SELECT + col1 AS col0, + 69 AS col1 FROM tab0 AS cor0
----
1
69
21
69
81
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 * + col0 - - - col1 FROM tab0 AS cor0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9980
SELECT + - 75 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT + - 75 + - - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT SUM( DISTINCT 69 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9981
SELECT SUM ( DISTINCT 69 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-207

query II rowsort
SELECT DISTINCT - 90, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT ( - - SUM( - 25 ) ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT ( - - SUM ( - 25 ) ) FROM tab1 AS cor0
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) * + col2 * - col2 <> NULL
----

query I rowsort
SELECT DISTINCT 53 / - col2 FROM tab1 WHERE + col2 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( - - col0 - - 17 ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 19 AS col1, col2 AS col1 FROM tab0
----
19
10
19
47
19
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * 35 <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 / + - 33 + 46 col1 FROM tab0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT ALL + 26, - 53 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL - COUNT( * ) + - 48 col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9991
SELECT ALL - COUNT ( * ) + - 48 col0 FROM tab2
----
-51

query I rowsort
SELECT ALL + + ( 23 ) + col1 AS col2 FROM tab0 AS cor0
----
104
24
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 + + + 40 * col1 col1 FROM tab2 AS cor0
----
3098
5640
7030

query I rowsort
SELECT - col2 + + col1 * + col1 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
237120
260304
59800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT - SUM( - CAST( + col1 AS SIGNED ) ) + - COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-9995
SELECT - SUM ( - CAST ( + col1 AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT DISTINCT + 63 + col1 FROM tab1 AS cor0
----
110
68
77

query I rowsort
SELECT DISTINCT col0 + + - col1 - + 18 * + col0 AS col1 FROM tab0 cor0
----
-1500
-1650
-336

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + + col2 + 63
----

query I rowsort
SELECT 72 * + + col0 + 59 AS col2 FROM tab1 AS cor0
----
3731
6179
6611

