hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

query III rowsort
SELECT * FROM tab0 WHERE ( 11 ) NOT BETWEEN - col0 + + 81 AND col1 + ( col0 )
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT col0 - col2 DIV + col1 AS col1 FROM tab0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT col0 - col2 / + col1 AS col1 FROM tab0
----
-2
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + COUNT( * ) FROM tab1 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3
SELECT + COUNT ( * ) FROM tab1 WHERE ( NULL ) = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 53 + 45 col1 FROM tab2
----
1264
2165
3119

query I rowsort
SELECT col1 * - 23 AS col0 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT + SUM( DISTINCT + col2 ) FROM tab2 WHERE ( + col0 * - col1 ) IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT + SUM ( DISTINCT + col2 ) FROM tab2 WHERE ( + col0 * - col1 ) IS NOT NULL
----
121

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT ALL col2 DIV 2 FROM tab1
----
29
34
48

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL col2 / 2 FROM tab1
----
29
34
48

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

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
46
64
75

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

query I rowsort
SELECT 58 * col0 AS col2 FROM tab2
----
2668
3712
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-13
SELECT ALL + COUNT( + 5 ) + - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + COUNT ( + 5 ) + - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 7 * 32 FROM tab2 WHERE NOT 79 IS NULL
----
224
224
224

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT - 90 * COUNT( * ) AS col2 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-16
SELECT - 90 * COUNT ( * ) AS col2 FROM tab2
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT 88 * + col1 FROM tab1
----
1232
4136
440

query I rowsort
SELECT 26 * col2 FROM tab2
----
1040
1508
598

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT ALL + col1 DIV 94 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL + col1 / 94 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT col2 * col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT col2 * col1 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT DISTINCT - CAST( - 13 AS SIGNED ) FROM tab0 WHERE NOT 18 * + col0 + + col1 < col0
----
13

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) FROM tab0 WHERE NOT 18 * + col0 + + col1 < col0
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 89 ) * 48 IS NOT NULL
----

query I rowsort
SELECT - ( + col1 ) * - col0 AS col2 FROM tab0 WHERE + col2 * 48 IS NOT NULL
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT + CAST( + 39 AS SIGNED ) AS col0 FROM tab2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-25
SELECT + CAST ( + 39 AS INTEGER ) AS col0 FROM tab2
----
39
39
39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL - 23 + col0 DIV + 34 FROM tab1 AS cor0
----
-21
-21
-22

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL - 23 + col0 / + 34 FROM tab1 AS cor0
----
-21
-21
-22

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-32
SELECT ALL + col0 / - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL + col0 / - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT COUNT( ALL CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-33
SELECT COUNT ( ALL CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT - SUM( 13 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - SUM ( 13 ) FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT 18 + COUNT( * ) FROM tab2 WHERE NULL BETWEEN ( - col2 * + 76 ) AND ( col2 - 44 * col0 )
----
18

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT 18 + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN ( - col2 * + 76 ) AND ( col2 - 44 * col0 )
----
18

query I rowsort
SELECT - - ( col0 ) * + col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-37
SELECT DISTINCT COUNT ( - 89 ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * 33 AS col1 FROM tab0 AS cor0
----
-2871
-3201
-495

query I rowsort
SELECT DISTINCT + + 43 * + col1 AS col0 FROM tab2 cor0
----
2193
2881
3311

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

skipif mysql # not compatible
query I rowsort label-40
SELECT COUNT ( * ) / + 53 FROM tab0 AS cor0
----
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - ( - 48 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> ( col0 * + 32 )
----

query I rowsort
SELECT ALL + 16 + - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-45
SELECT col1 * + + col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT DISTINCT col0 * - CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT col0 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + 85 - + col1 AS col1 FROM tab2 WHERE NOT 48 * + ( - col0 * ( 50 ) ) IS NULL
----
18
34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT ALL + 24 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + 24 / - + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL + COUNT( * ) * 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + COUNT ( * ) * 50 FROM tab2
----
150

query I rowsort
SELECT 12 AS col1 FROM tab0 WHERE NOT + 1 NOT IN ( col2 - col2 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-52
SELECT COUNT ( * ) / - 12 FROM tab2
----
0

query I rowsort
SELECT + col0 * - - 90 AS col2 FROM tab1
----
4590
7650
8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT DISTINCT + + CAST( - + col1 AS SIGNED ) * - col1 FROM tab1 cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT + + CAST ( - + col1 AS INTEGER ) * - col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT ALL + - col0 * - 23 * - col2 FROM tab0 AS cor0
----
-16215
-20010
-220869

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL + col1 DIV col2 * 62 + + col2 + 5 AS col0 FROM tab2 cor0
----
107
125
152

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + col1 / col2 * 62 + + col2 + 5 AS col0 FROM tab2 cor0
----
107
125
152

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT + CAST( - 98 AS SIGNED ) FROM tab1 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-58
SELECT + CAST ( - 98 AS INTEGER ) FROM tab1 AS cor0
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 / 1 IN ( col1 * col2 - 16 ) AND NOT + col1 NOT IN ( - col2 * - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN - col1 * col2 AND ( 6 )
----

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

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

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

query I rowsort
SELECT ALL 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - 27 * + col1 FROM tab0 WHERE NOT col1 / - 19 NOT IN ( 46 + col0 * + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT CAST( - - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-66
SELECT CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + + col0 + 90 * + col0 AS col2 FROM tab0 AS cor0
----
1365
7917
8827

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

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

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

skipif mysql # not compatible
query I rowsort label-70
SELECT + COUNT ( DISTINCT 54 ) AS col1 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-71
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * 22 + - col2 BETWEEN ( col1 ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-71
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 22 + - col2 BETWEEN ( col1 ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE ( - 22 ) > CAST( - 33 AS SIGNED )
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-72
SELECT col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE ( - 22 ) > CAST ( - 33 AS INTEGER )
----
196
2209
25

query I rowsort
SELECT DISTINCT + col0 - - 8 + + col0 + 23 + - col1 AS col0 FROM tab1
----
119
166
196

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

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

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col2 IS NULL AND NULL NOT BETWEEN - col0 * - col2 AND NULL
----

query I rowsort
SELECT col1 - + ( col2 ) - col0 * col0 AS col0 FROM tab0
----
-191
-7558
-9507

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) = + - col1 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL - + col0 + + col1 AS col0 FROM tab1 WHERE col2 <= + + col1
----

query I rowsort
SELECT col0 * - + 95 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT + MAX( DISTINCT - 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-87
SELECT + MAX ( DISTINCT - 29 ) FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL col2 * + + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL + + col2 * + col0 + 93 AS col0 FROM tab1 AS cor0
----
4989
5108
6281

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 33 - + 70 + + + col1 ) NOT IN ( ( - col1 ) * - 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT - 54 * - COUNT( * ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - 54 * - COUNT ( * ) FROM tab2 AS cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 7 NOT BETWEEN + col1 AND ( + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 7 NOT BETWEEN + col1 AND ( + 42 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-94
SELECT 13, col1 + + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
13
-6
13
46
13
8

skipif mysql # not compatible
query II rowsort label-94
SELECT 13, col1 + + col2 / - col1 AS col0 FROM tab1 AS cor0
----
13
-6
13
46
13
8

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 81 NOT IN ( - 42 * 60 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - 14 - col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-100
SELECT SUM( ALL - col1 ) DIV - + COUNT( - col1 ), + 73 AS col2 FROM tab0
----
34
73

skipif mysql # not compatible
query II rowsort label-100
SELECT SUM ( ALL - col1 ) / - + COUNT ( - col1 ), + 73 AS col2 FROM tab0
----
34
73

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT + col2 DIV - 89 + - col1 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-101
SELECT + col2 / - 89 + - col1 FROM tab1
----
-15
-47
-5

query I rowsort
SELECT ALL - ( 8 ) * - - col0 FROM tab1 WHERE NOT + col0 IS NULL
----
-408
-680
-728

query I rowsort
SELECT DISTINCT - ( + 97 ) * col2 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT col1 * - - col1 + - col2 + + col1 + + - ( col0 ) FROM tab2
----
2583
4423
5902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-105
SELECT - CAST( NULL AS SIGNED ) + + MIN( ALL 96 ) AS col1 FROM tab2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - col0 / - CAST ( + col0 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT - MIN( + 53 ) AS col1 FROM tab1 AS cor0 WHERE NULL = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - MIN ( + 53 ) AS col1 FROM tab1 AS cor0 WHERE NULL = col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL - 55 + col0 + - - 70 - - - col2 + - CAST( - col1 AS SIGNED ) * - col0 * col2 col2 FROM tab0 cor0
----
-18178
-57122
-9590

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-108
SELECT ALL - 55 + col0 + - - 70 - - - col2 + - CAST ( - col1 AS INTEGER ) * - col0 * col2 col2 FROM tab0 cor0
----
-18178
-57122
-9590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT ALL CAST( - 73 AS SIGNED ) * - - 14 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to db9c2b36c1f748aa1496a1aa5a03492d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-109
SELECT ALL CAST ( - 73 AS INTEGER ) * - - 14 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to db9c2b36c1f748aa1496a1aa5a03492d

query I rowsort
SELECT + 80 - - - 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT + COUNT( * ) + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-114
SELECT DISTINCT col0 AS col1, col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 68 IS NULL
----

skipif mysql # not compatible
query II rowsort label-114
SELECT DISTINCT col0 AS col1, col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 68 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 50 / col2 * 16 * + col0 - - 58 * + col0 ) NOT BETWEEN NULL AND - 0 * + ( 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT col2 * + + col1 + + - 63 FROM tab0
----
147
36
3744

query I rowsort
SELECT ALL - - 73 FROM tab1 WHERE NOT NULL IN ( - - 6, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT ( - - COUNT( * ) ) - + ( 79 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT ( - - COUNT ( * ) ) - + ( 79 ) FROM tab2
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab2
----
93
93
93

query III rowsort
SELECT * FROM tab0 WHERE ( - - 65 ) <= + col2
----
97
1
99

query I rowsort
SELECT col0 * + 59 * - col2 FROM tab1
----
-288864
-295885
-365092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-123
SELECT DISTINCT CAST( + SUM( ALL - 2 ) AS SIGNED ) AS col2, - ( - + CAST( + - 99 AS SIGNED ) ), + 64 AS col1 FROM tab1
----
-6
-99
64

skipif mysql # not compatible
query III rowsort label-123
SELECT DISTINCT CAST ( + SUM ( ALL - 2 ) AS INTEGER ) AS col2, - ( - + CAST ( + - 99 AS INTEGER ) ), + 64 AS col1 FROM tab1
----
-6
-99
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-124
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT ALL - col2, 17 AS col0 FROM tab0 AS cor0
----
-10
17
-47
17
-99
17

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE + 97 NOT IN ( col1, - col1 )
----
46
64
75

query I rowsort
SELECT ALL ( col2 ) FROM tab2 AS cor0 WHERE NOT 96 / 28 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - COUNT( ALL + + 5 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - COUNT ( ALL + + 5 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - 66 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-131
SELECT * FROM tab0 WHERE NOT - CAST( + 83 AS SIGNED ) > - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-131
SELECT * FROM tab0 WHERE NOT - CAST ( + 83 AS INTEGER ) > - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL MIN( + - 1 ) FROM tab2 AS cor0 WHERE 9 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL MIN ( + - 1 ) FROM tab2 AS cor0 WHERE 9 = NULL
----
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE - 30 IN ( 67 )
----

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

query II rowsort
SELECT + 24 * + col2 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
1416
-5
1632
-47
2304
-14

query I rowsort
SELECT DISTINCT col1 * - - col0 + 15 * - + col1 FROM tab0 cor0
----
0
1512
82

query II rowsort
SELECT - ( + ( - + col2 ) ) * ( col0 ), + col1 FROM tab0
----
705
81
870
21
9603
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 58 + + ( + - col2 ) * - col2 * + + col0 NOT BETWEEN col2 AND col0 + 72 * col0
----

query I rowsort
SELECT + 15 * + col2 FROM tab2
----
345
600
870

query II rowsort
SELECT col2, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT + col1 DIV + 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-142
SELECT + col1 / + 96 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL + COUNT( * ) + - MIN( DISTINCT - 80 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT - 80 ) FROM tab2
----
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + - 90 col0 FROM tab1
----
-22
-31
6

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT - 46 * MIN( - 94 ) AS col1 FROM tab1 AS cor0
----
4324

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - 46 * MIN ( - 94 ) AS col1 FROM tab1 AS cor0
----
4324

query I rowsort
SELECT ALL + col0 * - col2 + 15 * 6 AS col0 FROM tab0 AS cor0
----
-615
-780
-9513

query I rowsort
SELECT ALL + col2 - - - col0 AS col2 FROM tab0
----
-77
2
32

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-153
SELECT DISTINCT + 22 * + COUNT ( ALL col2 ) col2 FROM tab2 AS cor0
----
66

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

skipif mysql # not compatible
query I rowsort label-154
SELECT col0 / + - col1 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE col1 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-157
SELECT ALL + col0 + + col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND + 12
----

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + col0 + + col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND + 12
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE - + col1 + - col0 + - col2 / + - col1 + - 20 IS NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 22 * + col1 * col1 * - 88 + 73 + - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 9 ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT - - 85 AS col1 FROM tab1 AS cor0
----
85
85
85

query II rowsort
SELECT 86 * - col2 AS col2, - 66 * col1 * + col1 * - col1 * + + 27 FROM tab0 AS cor0
----
-4042
947027862
-8514
1782
-860
16503102

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 20 * - col1 + - + 68 > col1 + - + col2 + + + col1 + 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL - col1 AS col1, - col1 - + 65 - + + 2 / + col2 + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 93 + + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3
25
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ALL + MIN( - 44 ) * - 24 FROM tab2 cor0 WHERE NOT 91 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + MIN ( - 44 ) * - 24 FROM tab2 cor0 WHERE NOT 91 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - ( + 91 ) * + 72 + 13 - - ( - col2 ) * - 31 FROM tab0 AS cor0
----
-3470
-5082
-6229

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

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT - - 59 AS col2, + 26 + + - 65 + - MIN( + 73 ) AS col2 FROM tab1 AS cor0
----
59
-112

skipif mysql # not compatible
query II rowsort label-174
SELECT - - 59 AS col2, + 26 + + - 65 + - MIN ( + 73 ) AS col2 FROM tab1 AS cor0
----
59
-112

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-177
SELECT col0 AS col1, - 37 * col1 FROM tab1 WHERE + ( + CAST( + - ( + col1 ) AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query II rowsort label-177
SELECT col0 AS col1, - 37 * col1 FROM tab1 WHERE + ( + CAST ( + - ( + col1 ) AS INTEGER ) ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-178
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

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

query I rowsort
SELECT col1 + - + ( + col2 ) AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + ( col0 ) + + + 1 AS col2 FROM tab2
----
47
65
76

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN 12 AND ( col0 * - 94 - + col2 + - 49 + + 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - 61 * ( - col2 ) + + col2 AS col1, + col0 FROM tab0 AS cor0
----
2914
15
6138
97
620
87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT + col1 DIV 72 - col2 - - col1 * - col1 * - - col0 FROM tab1
----
-10092
-201087
-2184

skipif mysql # not compatible
query I rowsort label-187
SELECT + col1 / 72 - col2 - - col1 * - col1 * - - col0 FROM tab1
----
-10092
-201087
-2184

query I rowsort
SELECT col2 - 35 AS col1 FROM tab1
----
24
33
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL - MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT - col0 * 23 + - 74 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
-1247
51
-2029
85
-2167
91

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT DISTINCT + + 96 DIV + col1 + + col2 - col2 AS col0 FROM tab1 cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT + + 96 / + col1 + + col2 - col2 AS col0 FROM tab1 cor0
----
19
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL MAX( col0 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL MAX ( col0 ) AS col2 FROM tab1 cor0
----
91

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 68 < NULL
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-199
SELECT ALL ( - + 2 ) / - col0 + 76 col2 FROM tab0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT DISTINCT 56 DIV + col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT 56 / + col2 AS col0 FROM tab0
----
0
1
5

query II rowsort
SELECT col1, 69 FROM tab2
----
51
69
67
69
77
69

query I rowsort
SELECT DISTINCT ( 88 ) * + 35 + + col0 FROM tab2 WHERE 66 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT - 34 DIV + 78 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-203
SELECT - 34 / + 78 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 85 + col1 AS col0, - col0 col0 FROM tab2 AS cor0
----
-18
-75
-34
-46
-8
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT - + 51 + 44 DIV + 98 FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-205
SELECT - + 51 + 44 / + 98 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT col1 * + 7 AS col1 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
357
469
539

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

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

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 >= ( - 93 )
----

query I rowsort
SELECT + - 47 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + + 24 * 74 * + - col2 AS col2 FROM tab1 cor0
----
-104784
-120768
-170496

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-212
SELECT * FROM tab1 WHERE ( NOT 41 * + - col0 / + + col0 * 71 * col2 * - - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-212
SELECT * FROM tab1 WHERE ( NOT 41 * + - col0 / + + col0 * 71 * col2 * - - CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT COUNT( * ) * - 39 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-213
SELECT COUNT ( * ) * - 39 FROM tab2
----
-117

query I rowsort
SELECT + col2 + + 69 AS col1 FROM tab2 AS cor0
----
109
127
92

query I rowsort
SELECT DISTINCT 20 - + ( - col1 ) FROM tab2 AS cor0
----
71
87
97

query II rowsort
SELECT ALL - 29 - col1 * + + col0 * col0 AS col2, - col0 FROM tab1
----
-36154
-85
-36443
-51
-389236
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL < 89
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL < 89
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 32, + col0 + + col2 col1 FROM tab2 cor0
----
-1280
104
-1856
133
-736
69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <> - - 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 28 * col2 col2 FROM tab2 AS cor0
----
1120
1624
644

query I rowsort
SELECT ALL col1 * + ( + col0 ) + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1262
1837
196

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

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

query I rowsort
SELECT + + col1 * + ( - 59 ) AS col1 FROM tab2 cor0
----
-3009
-3953
-4543

onlyif mysql # DIV for integer division: 
query II rowsort label-224
SELECT + col0 DIV + 36 col0, col0 FROM tab2 AS cor0
----
1
46
1
64
2
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-224
SELECT + col0 / + 36 col0, col0 FROM tab2 AS cor0
----
1
46
1
64
2
75

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

onlyif mysql # DIV for integer division: 
query II rowsort label-226
SELECT - 61 DIV + col1, + col2 FROM tab2 AS cor0
----
-1
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-226
SELECT - 61 / + col1, + col2 FROM tab2 AS cor0
----
-1
23
0
40
0
58

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

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - MAX ( ALL 89 ) AS col2 FROM tab1 cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ALL + col1 DIV 40 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + col1 / 40 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, - col0 * - - col0 col0 FROM tab2
----
46
-2116
64
-4096
75
-5625

query I rowsort
SELECT DISTINCT - 14 * - col1 * - ( - 58 ) AS col0 FROM tab1 AS cor0
----
11368
38164
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL - ( - 16 ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-48

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 15 col1 FROM tab0
----
-1485
-150
-705

query I rowsort
SELECT 42 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + 85 * col2 * - 6 FROM tab1
----
-30090
-34680
-48960

query II rowsort
SELECT - col2 AS col1, + col2 + 78 FROM tab0
----
-10
88
-47
125
-99
177

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

query I rowsort
SELECT ALL - ( + col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * + col1 ) >= col0 + - col0
----
-3

skipif mysql # not compatible
query I rowsort label-242
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * + col1 ) >= col0 + - col0
----
-3

query I rowsort
SELECT ALL + - 13 + - col0 AS col0 FROM tab2 AS cor0
----
-59
-77
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
6

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

query I rowsort
SELECT 72 + - + 80 AS col1 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - + col2 + + 40 * - col1 FROM tab1 cor0
----
-1948
-259
-656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-248
SELECT DISTINCT - SUM( - + col2 ) DIV + + 97 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT - SUM ( - + col2 ) / + + 97 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE + col1 * - - col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-250
SELECT 47 * + + COUNT( * ) * + ( - CAST( - 37 AS SIGNED ) ) + - SUM( ALL + 50 ) AS col1 FROM tab1
----
5067

skipif mysql # not compatible
query I rowsort label-250
SELECT 47 * + + COUNT ( * ) * + ( - CAST ( - 37 AS INTEGER ) ) + - SUM ( ALL + 50 ) AS col1 FROM tab1
----
5067

query III rowsort
SELECT * FROM tab0 WHERE - 54 / + + 99 - + col2 IS NULL
----

query II rowsort
SELECT col1 + - col0, col0 AS col0 FROM tab2
----
-8
75
13
64
5
46

query I rowsort
SELECT col1 + - ( + 46 ) FROM tab2
----
21
31
5

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT col2 + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT ALL - MAX( DISTINCT - col1 ) * - - MIN( ALL + ( - col1 ) ) * ( - - 43 ) AS col2 FROM tab2
----
-168861

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL - MAX ( DISTINCT - col1 ) * - - MIN ( ALL + ( - col1 ) ) * ( - - 43 ) AS col2 FROM tab2
----
-168861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-256
SELECT COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-256
SELECT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT - SUM( + - col1 ) * + ( - - COUNT( * ) ) * + COUNT( * ) AS col0, MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
1755
75

skipif mysql # not compatible
query II rowsort label-257
SELECT - SUM ( + - col1 ) * + ( - - COUNT ( * ) ) * + COUNT ( * ) AS col0, MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
1755
75

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT - 1 + + SUM( ALL + col0 ) FROM tab2 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT - 1 + + SUM ( ALL + col0 ) FROM tab2 AS cor0
----
184

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 col2 FROM tab1 AS cor0 WHERE 20 * + - col0 IS NULL
----

query I rowsort
SELECT ALL 79 + + 1 + - col1 * + 71 FROM tab2 AS cor0
----
-3541
-4677
-5387

query I rowsort
SELECT 62 * - col0 AS col1 FROM tab0
----
-5394
-6014
-930

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

query II rowsort
SELECT + - col0, - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT col2 * + ( col2 ) + - col1 FROM tab1 AS cor0
----
3476
4577
9202

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

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

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab0
----
-66

query II rowsort
SELECT 70 * + + 86 + - - 41, - col1 + - + 55 * + col0 + + 11 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
6061
-2808
6061
-4669
6061
-5041

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

query I rowsort
SELECT DISTINCT + col0 * col1 + - + 78 - + - col2 + - - col0 + - 23 * col1 * col0 AS col0 FROM tab2 cor0
----
-108390
-110495
-51621

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT + 79 DIV 52 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-272
SELECT + 79 / 52 AS col1 FROM tab0 AS cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-273
SELECT - 27 * COUNT ( * ) + + CAST ( COUNT ( ( ( - col2 ) ) ) AS INTEGER ) AS col0 FROM tab2
----
-78

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

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

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

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

query I rowsort
SELECT ALL + col2 + ( + col0 ) * 40 * + 25 AS col0 FROM tab0 AS cor0
----
15047
87010
97099

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 + + + col2 + + - 28 * + - col1 AS col1 FROM tab2 AS cor0
----
1428
1876
2156

query II rowsort
SELECT - col0, col0 * + col2 AS col2 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT ALL - 24 - - + 12 FROM tab1 AS cor0
----
-12
-12
-12

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

query I rowsort
SELECT DISTINCT + + col0 * + col2 + + 59 FROM tab1 AS cor0
----
4955
5074
6247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * col0 - + col2 col2 FROM tab1
----
3780
6401
6848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-287
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 71 * + 74 AS col0 FROM tab2
----
NULL
5254

skipif mysql # not compatible
query II rowsort label-287
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 71 * + 74 AS col0 FROM tab2
----
NULL
5254

query I rowsort
SELECT ALL + col1 * - 16 * - col0 AS col2 FROM tab1
----
11424
6800
68432

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 65 IS NULL
----

query I rowsort
SELECT - - 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + - MAX( + col0 ) FROM tab0 AS cor0 WHERE NOT col1 / + 94 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-295
SELECT + - MAX ( + col0 ) FROM tab0 AS cor0 WHERE NOT col1 / + 94 IS NULL
----
-97

query I rowsort
SELECT - + col0 * + - ( + col1 ) - - 12 FROM tab1 AS cor0
----
4289
437
726

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

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

query I rowsort
SELECT col2 + - 85 AS col2 FROM tab1
----
-17
-26
11

query I rowsort
SELECT + 86 + - + ( - 80 ) AS col2 FROM tab0 AS cor0
----
166
166
166

query I rowsort
SELECT 14 * col2 * - ( col2 ) * - col0 FROM tab0
----
121800
13309758
463890

query I rowsort
SELECT ( + - 12 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT 63 * - CAST( - 57 AS SIGNED ) FROM tab1
----
3591
3591
3591

skipif mysql # not compatible
query I rowsort label-302
SELECT 63 * - CAST ( - 57 AS INTEGER ) FROM tab1
----
3591
3591
3591

query I rowsort
SELECT col0 - + 98 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
4849
5002
6181

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT ALL - 15 + + - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-18
3

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL - 15 + + - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-18
3

query I rowsort
SELECT - + col1 + col2 + - 67 * 47 FROM tab1 AS cor0
----
-3067
-3095
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL MAX( ( - col0 ) ) + + 57 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL MAX ( ( - col0 ) ) + + 57 AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + MIN( DISTINCT + + 93 ) FROM tab2 AS cor0 WHERE - col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT + MIN ( DISTINCT + + 93 ) FROM tab2 AS cor0 WHERE - col1 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT + + 44 * + COUNT( ALL - 48 ) - ( - MAX( ALL - + col2 ) ) AS col2 FROM tab2 cor0
----
109

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT + + 44 * + COUNT ( ALL - 48 ) - ( - MAX ( ALL - + col2 ) ) AS col2 FROM tab2 cor0
----
109

query I rowsort
SELECT ALL col0 - + 70 FROM tab1 AS cor0
----
-19
15
21

query I rowsort
SELECT DISTINCT col2 - ( - col1 ) AS col2 FROM tab1
----
110
115
64

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

query I rowsort
SELECT ALL col0 * + - col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE col2 > NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-316
SELECT COUNT ( DISTINCT + + col2 ) FROM tab2
----
3

query I rowsort
SELECT - - col2 * + col0 * + ( col2 ) FROM tab1 cor0
----
295885
420784
470016

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 >= NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-320
SELECT ALL - MAX ( col0 ) col1 FROM tab1 AS cor0
----
-91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-322
SELECT - 90, 7 - - COUNT( * ) AS col2 FROM tab2
----
-90
10

skipif mysql # not compatible
query II rowsort label-322
SELECT - 90, 7 - - COUNT ( * ) AS col2 FROM tab2
----
-90
10

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-324
SELECT col2, + ( - + col1 ) + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-324
SELECT col2, + ( - + col1 ) + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT + col0, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

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

query I rowsort
SELECT ALL + + ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT MIN( ALL 16 ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-330
SELECT MIN ( ALL 16 ) FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ( + + CAST( - 2 AS SIGNED ) ) AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-331
SELECT ( + + CAST ( - 2 AS INTEGER ) ) AS col1 FROM tab1
----
-2
-2
-2

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

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

query I rowsort
SELECT DISTINCT - ( - 10 ) AS col0 FROM tab2 AS cor0
----
10

query I rowsort
SELECT + 16 + - col1 + col1 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT DISTINCT + COUNT( - 52 ), - 48 + + + 82 AS col0 FROM tab2 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-336
SELECT DISTINCT + COUNT ( - 52 ), - 48 + + + 82 AS col0 FROM tab2 AS cor0
----
3
34

query I rowsort
SELECT DISTINCT col1 * ( - 35 ) FROM tab0
----
-2835
-35
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col1 + + ( + col2 ), 81 + - - col1 AS col2 FROM tab0 AS cor0
----
100
82
128
162
31
102

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - - col2 + 18 * col1 * + col2 NOT BETWEEN - - col0 AND - col1 / - 78 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT - + COUNT( * ) + + - 41 AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT - + COUNT ( * ) + + - 41 AS col0 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL col1 + - 3 FROM tab1 AS cor0
----
11
2
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-344
SELECT + + 70 DIV MAX( + + col2 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-344
SELECT + + 70 / MAX ( + + col2 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT 54 - - + COUNT( * ) FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-345
SELECT 54 - - + COUNT ( * ) FROM tab1 cor0
----
57

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

skipif mysql # not compatible
query I rowsort label-346
SELECT 0 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col0 + - + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0 WHERE - col2 >= + + 74 - + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT + col1 - + col0 DIV - col2 AS col1 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-349
SELECT + col1 - + col0 / - col2 AS col1 FROM tab0
----
1
29
81

onlyif mysql # DIV for integer division: 
query I rowsort label-350
SELECT DISTINCT + col1 - - - 54 DIV - + 37 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT + col1 - - - 54 / - + 37 AS col0 FROM tab2
----
52
68
78

query I rowsort
SELECT ALL col0 - + ( + + 23 ) FROM tab2
----
23
41
52

query I rowsort
SELECT + ( - - col2 ) - - col1 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT ( col0 ) - - - col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL 28 * 0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL - MAX( DISTINCT - - 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL - MAX ( DISTINCT - - 98 ) FROM tab2
----
-98

query II rowsort
SELECT + col2 * 69, + col1 AS col2 FROM tab1
----
4071
5
4692
47
6624
14

query I rowsort
SELECT ALL + col2 * 33 AS col2 FROM tab1 AS cor0
----
1947
2244
3168

query I rowsort
SELECT ALL + col1 * - 67 FROM tab1
----
-3149
-335
-938

query I rowsort
SELECT + + col1 * - col0 FROM tab2 WHERE NOT - col2 BETWEEN + col2 / - col0 + - - ( + col0 ) * + col2 AND + - col2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + ( 64 ) AS col1 FROM tab1
----
64
64
64

query I rowsort
SELECT ALL - - 75 AS col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT 45 * - col1 FROM tab1 AS cor0
----
-2115
-225
-630

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <> - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT 17 + - + COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-364
SELECT 17 + - + COUNT ( * ) FROM tab0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) * col1 + + + 73 col1 FROM tab1
----
-123
-2136
48

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * + col0 + - 62 col2 FROM tab1
----
2029
3423
3669

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

skipif mysql # not compatible
query I rowsort label-368
SELECT COUNT ( * ) * 86 + + 3 FROM tab2
----
261

query II rowsort
SELECT - - 20 + 38 * + col0 * + col1 * - ( - + col1 ) * col0, col0 FROM tab2 AS cor0
----
209141228
46
922837012
64
959523770
75

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT ALL + ( 89 ) + - col1 DIV - col2 + ( - - col1 ) + + col1 * col0 FROM tab0 AS cor0
----
1386
187
1939

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + ( 89 ) + - col1 / - col2 + ( - - col1 ) + + col1 * col0 FROM tab0 AS cor0
----
1386
187
1939

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

query I rowsort
SELECT ALL col1 + + + 73 AS col1 FROM tab1 AS cor0
----
120
78
87

query I rowsort
SELECT + 0 - - + 89 + col0 * + 62 * - 59 + + col0 FROM tab0
----
-318070
-354640
-54766

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT COUNT( * ) * - - 50 + + 45 col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-375
SELECT COUNT ( * ) * - - 50 + + 45 col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT 76 + ( + col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-2525
-7149
-8205

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT + col0 DIV + + 93 + - col0 AS col2 FROM tab0 cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-378
SELECT + col0 / + + 93 + - col0 AS col2 FROM tab0 cor0
----
-15
-87
-96

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

query I rowsort
SELECT + 68 * + - 47 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT ALL 26 DIV - 14 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL 26 / - 14 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-383
SELECT + COUNT( ALL 87 ), 15 AS col1 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-383
SELECT + COUNT ( ALL 87 ), 15 AS col1 FROM tab0 AS cor0
----
3
15

query II rowsort
SELECT ALL + 42, col1 FROM tab1
----
42
14
42
47
42
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 77
----

query I rowsort
SELECT ALL + - ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 9 + + 2 = - 14
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 95 ) + + col2 col2 FROM tab0 AS cor0
----
-48
-85
4

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

skipif mysql # not compatible
query I rowsort label-391
SELECT - 30 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT - + 34 * - + COUNT( + col2 ) * COUNT( * ) - - + COUNT( * ) * COUNT( * ) * + COUNT( + col0 ) + - - COUNT( * ) AS col1 FROM tab0 cor0
----
336

skipif mysql # not compatible
query I rowsort label-392
SELECT - + 34 * - + COUNT ( + col2 ) * COUNT ( * ) - - + COUNT ( * ) * COUNT ( * ) * + COUNT ( + col0 ) + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
336

query I rowsort
SELECT + 77 * + 70 * - + 20 * - 12 * + 8 * 7 FROM tab0
----
72441600
72441600
72441600

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT DISTINCT col1 DIV + - 58 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT col1 / + - 58 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT - MAX( - ( ( + 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-395
SELECT - MAX ( - ( ( + CAST ( NULL AS INTEGER ) ) ) ) col0 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT col1 + + 33 AS col2 FROM tab0
----
114
34
54

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-399
SELECT ALL + col0 * CAST( - col0 AS SIGNED ) - - col1 * - col2 + col1 DIV - ( col2 ) AS col0 FROM tab0 AS cor0
----
-4033
-7781
-9508

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + col0 * CAST ( - col0 AS INTEGER ) - - col1 * - col2 + col1 / - ( col2 ) AS col0 FROM tab0 AS cor0
----
-4033
-7781
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-400
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT - 80 + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * - + 2
----
-80

skipif mysql # not compatible
query I rowsort label-401
SELECT - 80 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * - + 2
----
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL COUNT( * ) + + + 23 col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-403
SELECT ALL COUNT ( * ) + + + 23 col1 FROM tab2 AS cor0
----
26

query I rowsort
SELECT - 70 * - 68 + + col0 + - 87 + + - col0 + - + col0 - + - 25 * col0 AS col1 FROM tab2 AS cor0
----
5777
6209
6473

query II rowsort
SELECT - col2 - col2, col0 FROM tab1 AS cor0
----
-118
85
-136
91
-192
51

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-406
SELECT - COUNT ( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT COUNT( * ) * 37 col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-408
SELECT COUNT ( * ) * 37 col1 FROM tab0 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-409
SELECT - CAST( NULL AS SIGNED ), + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
NULL
174
NULL
194
NULL
30

skipif mysql # not compatible
query II rowsort label-409
SELECT - CAST ( NULL AS INTEGER ), + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
NULL
174
NULL
194
NULL
30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-410
SELECT DISTINCT + + SUM ( + col2 ) col1 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT col2 DIV 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-411
SELECT col2 / 79 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-413
SELECT SUM( - - 76 ) / - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT SUM ( - - 76 ) / - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT + COUNT( * ) * 20 * + + 38 AS col2 FROM tab1 cor0
----
2280

skipif mysql # not compatible
query I rowsort label-414
SELECT + COUNT ( * ) * 20 * + + 38 AS col2 FROM tab1 cor0
----
2280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ( COUNT( * ) ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-418
SELECT ( COUNT ( * ) ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - 6 + col0 AS col1 FROM tab0 AS cor0
----
81
9
91

query I rowsort
SELECT - col2 FROM tab0 WHERE - - col2 * + col0 + + + 24 IS NOT NULL
----
-10
-47
-99

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

query I rowsort
SELECT DISTINCT - - col2 * - col2 + col2 * + col2 * + - col2 FROM tab0 WHERE NOT + 58 * - 94 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT ( - 1 ) + + col1 AS col1 FROM tab0
----
0
20
80

query II rowsort
SELECT + col0 * + col0, col0 AS col0 FROM tab1
----
2601
51
7225
85
8281
91

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

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

query I rowsort
SELECT ALL 97 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL = + 23 * - 84
----

query I rowsort
SELECT DISTINCT - 49 * - 72 + ( - 93 ) - - col1 FROM tab2 AS cor0
----
3486
3502
3512

query I rowsort
SELECT col0 * + col0 - + + col2 AS col1 FROM tab2
----
2093
4056
5567

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE - col0 IS NOT NULL
----
59
68
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-432
SELECT ALL + 52 / - + ( + CAST( NULL AS SIGNED ) ) + - MIN( ALL CAST( CAST( - ( + col1 ) AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL + 52 / - + ( + CAST ( NULL AS INTEGER ) ) + - MIN ( ALL CAST ( CAST ( - ( + col1 ) AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + 85 * + - col2 IS NOT NULL
----

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

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

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

query II rowsort
SELECT ALL - - col0, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT ( - col0 ) DIV + col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-440
SELECT ( - col0 ) / + col0 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-441
SELECT ALL * FROM tab2 WHERE 75 / + + CAST( - col2 AS SIGNED ) >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-441
SELECT ALL * FROM tab2 WHERE 75 / + + CAST ( - col2 AS INTEGER ) >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1, - col0 * + col1 * + - col2 AS col1 FROM tab0
----
1
9603
21
18270
81
57105

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

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

query I rowsort
SELECT - + col1 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT COUNT( * ) + + - 87 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 8
----
-87

skipif mysql # not compatible
query I rowsort label-445
SELECT COUNT ( * ) + + - 87 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 8
----
-87

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

query II rowsort
SELECT DISTINCT 84, col0 AS col2 FROM tab0 AS cor0
----
84
15
84
87
84
97

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + MIN( + 44 ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + MIN ( + 44 ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT - + ( col2 ) * 27 + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 50 / - - col0 IS NOT NULL
----

query I rowsort
SELECT - + col1 * + - col1 + + col2 AS col0 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT 36 DIV - 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-451
SELECT 36 / - 96 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - 62 + + ( MAX( 23 ) ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-452
SELECT - 62 + + ( MAX ( 23 ) ) FROM tab0
----
-39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT ALL col2 + 71 - - col0 DIV + - 89 FROM tab2 cor0
----
111
129
94

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL col2 + 71 - - col0 / + - 89 FROM tab2 cor0
----
111
129
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 56 * col2 >= 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + - 90 AS col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT 61 * + MIN( ( - - col1 ) ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-458
SELECT 61 * + MIN ( ( - - col1 ) ) FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-459
SELECT ALL 52 AS col1, + CAST( col1 AS SIGNED ) FROM tab2
----
52
51
52
67
52
77

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL 52 AS col1, + CAST ( col1 AS INTEGER ) FROM tab2
----
52
51
52
67
52
77

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

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

query I rowsort
SELECT ALL - 49 * + + col2 FROM tab2
----
-1127
-1960
-2842

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

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

query I rowsort
SELECT ALL col2 - ( - + col1 ) * - ( - + 91 ) * col2 FROM tab2 cor0
----
106766
280320
353684

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-464
SELECT + 41 + + + ( CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT + 41 + + + ( CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 67 ) * - 69 NOT BETWEEN ( col0 ) AND + col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT COUNT( * ) * 78 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT COUNT ( * ) * 78 FROM tab0
----
234

query III rowsort
SELECT * FROM tab1 WHERE - 7 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + 55 ) col1 FROM tab1 WHERE NOT ( NULL ) > ( - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT ( SUM ( col0 ) ) AS col0 FROM tab1
----
227

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT + 54 + + ( ( CAST( - SUM( ALL col0 ) AS SIGNED ) ) ) / MAX( col1 * 40 ) FROM tab1 WHERE NOT + 43 + + col2 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT + 54 + + ( ( CAST ( - SUM ( ALL col0 ) AS INTEGER ) ) ) / MAX ( col1 * 40 ) FROM tab1 WHERE NOT + 43 + + col2 / col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( 90 ) AS col2 FROM tab1
----
90
90
90

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

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

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL col2 + + 87 FROM tab0
----
134
186
97

query III rowsort
SELECT * FROM tab0 WHERE NOT 93 * + col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT MIN ( DISTINCT + ( - col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT - col1 + + 64 AS col2 FROM tab2
----
-13
-3
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT SUM( ALL col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT SUM ( ALL col0 ) AS col1 FROM tab1
----
227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT SUM( + col0 ) + - COUNT( * ) * COUNT( * ) FROM tab2
----
176

skipif mysql # not compatible
query I rowsort label-482
SELECT SUM ( + col0 ) + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
176

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> - ( + col2 ) - + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < - col1 / 64 + + col1
----

query I rowsort
SELECT ALL - 71 FROM tab2 WHERE NOT NULL >= - col0 * - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + 30 ) BETWEEN - 92 AND + col2 * - 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-487
SELECT col0 + + ( col0 ) DIV - 67 AS col2 FROM tab2
----
46
64
74

skipif mysql # not compatible
query I rowsort label-487
SELECT col0 + + ( col0 ) / - 67 AS col2 FROM tab2
----
46
64
74

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-491
SELECT - MAX( col2 ) * 80 + - COUNT( * ) DIV - 42 FROM tab2 AS cor0
----
-4640

skipif mysql # not compatible
query I rowsort label-491
SELECT - MAX ( col2 ) * 80 + - COUNT ( * ) / - 42 FROM tab2 AS cor0
----
-4640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-492
SELECT ALL MAX( + 87 ) DIV + 63 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL MAX ( + 87 ) / + 63 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT - 3 DIV - 30 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT - 3 / - 30 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT MAX( DISTINCT - col2 ) * + 85 FROM tab2 AS cor0 WHERE NOT col2 * col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT MAX ( DISTINCT - col2 ) * + 85 FROM tab2 AS cor0 WHERE NOT col2 * col2 <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - 58 * - ( + COUNT( * ) ) + ( + MIN( ALL + col2 ) ) * - COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 49 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT - 58 * - ( + COUNT ( * ) ) + ( + MIN ( ALL + col2 ) ) * - COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 49 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( 19 )
----

query I rowsort
SELECT + 76 + 23 * + col2 FROM tab2 AS cor0
----
1410
605
996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT + COUNT( * ) DIV - MIN( + col2 ) + - 34 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-500
SELECT + COUNT ( * ) / - MIN ( + col2 ) + - 34 FROM tab0 AS cor0
----
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT - col1 * + col0 + - col0 DIV + ( - col1 ) FROM tab2 AS cor0 WHERE + 45 <= col0
----
-2346
-4928
-5024

skipif mysql # not compatible
query I rowsort label-502
SELECT - col1 * + col0 + - col0 / + ( - col1 ) FROM tab2 AS cor0 WHERE + 45 <= col0
----
-2346
-4928
-5024

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT DISTINCT - - 54 + col2 DIV - col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - - 54 + col2 / - col0 FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + + ( - ( col2 ) ) col1 FROM tab2 AS cor0
----
39
57
74

query I rowsort
SELECT DISTINCT - - col0 * - col0 - col1 AS col0 FROM tab1 cor0
----
-2615
-7230
-8328

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 96
----

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

query I rowsort
SELECT ALL col0 - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL col2 FROM tab0 WHERE + col2 + ( - col2 ) > ( - 47 )
----
10
47
99

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

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

query I rowsort
SELECT ALL - 71 + col1 + - 86 AS col0 FROM tab0
----
-136
-156
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT - 45 + - + CAST( col2 AS SIGNED ) * - col2 FROM tab0
----
2164
55
9756

skipif mysql # not compatible
query I rowsort label-513
SELECT - 45 + - + CAST ( col2 AS INTEGER ) * - col2 FROM tab0
----
2164
55
9756

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT ( - - COUNT( * ) ) - - ( 45 ) * 78 FROM tab2
----
3513

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT ( - - COUNT ( * ) ) - - ( 45 ) * 78 FROM tab2
----
3513

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

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

query I rowsort
SELECT ALL - col0 - - col0 * 95 AS col0 FROM tab2
----
4324
6016
7050

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT MIN( ALL col0 ) FROM tab0 WHERE + col1 / col1 + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT MIN ( ALL col0 ) FROM tab0 WHERE + col1 / col1 + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL 60 * + col2 FROM tab1
----
3540
4080
5760

query I rowsort
SELECT - col1 * 74 FROM tab0
----
-1554
-5994
-74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( col1 ) col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT COUNT( 0 ) AS col1 FROM tab2 WHERE - col0 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-524
SELECT COUNT ( 0 ) AS col1 FROM tab2 WHERE - col0 + col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < 49 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - col2 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + ( - - col1 ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT + 47 * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-528
SELECT + 47 * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT DISTINCT 79 + - col2 FROM tab0 WHERE - ( + col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + 65 AS col0 FROM tab0
----
3055
6435
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-532
SELECT + 62 DIV col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-532
SELECT + 62 / col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
2

query II rowsort
SELECT - 69, col0 AS col2 FROM tab1 cor0
----
-69
51
-69
85
-69
91

query II rowsort
SELECT DISTINCT + - col0 AS col1, - ( + col2 ) FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL - ( + COUNT( * ) ) * - 26 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL - ( + COUNT ( * ) ) * - 26 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-537
SELECT - - 84 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-537
SELECT - - 84 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT DISTINCT + col0 + + 31 FROM tab0 AS cor0 WHERE NOT - 11 IS NULL
----
118
128
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 35 + + 95 ) = + col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + col1 * 85 AS col2 FROM tab2 AS cor0 WHERE NOT ( 95 - + ( + col1 ) ) < + col1 * - col2 + col1
----
4386
5762
6622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT DISTINCT - - ( + + COUNT( * ) ) DIV + 50 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - - ( + + COUNT ( * ) ) / + 50 FROM tab2 cor0
----
0

query I rowsort
SELECT ( col0 ) * - ( + col1 ) AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT MAX( DISTINCT + 24 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-543
SELECT MAX ( DISTINCT + 24 ) AS col2 FROM tab0
----
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT ( CAST( col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-545
SELECT ( CAST ( col2 AS INTEGER ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT 73 * - col2 + - 53 * + col0 FROM tab1 WHERE NOT 25 IS NULL
----
-8812
-9711
-9787

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT COUNT( * ) + 56 AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT COUNT ( * ) + 56 AS col1 FROM tab1
----
59

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 + + col2 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT ALL col2 + CAST( + 84 AS SIGNED ) FROM tab1 AS cor0
----
143
152
180

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL col2 + CAST ( + 84 AS INTEGER ) FROM tab1 AS cor0
----
143
152
180

query I rowsort
SELECT 18 + + col0 FROM tab1
----
103
109
69

query I rowsort
SELECT + col0 * - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-425
-4277
-714

query I rowsort
SELECT ALL + ( - 71 ) + + + 95 FROM tab2 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( 64 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL COUNT( * ) + - ( MAX( + ( + col2 ) ) ) FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL COUNT ( * ) + - ( MAX ( + ( + col2 ) ) ) FROM tab2 cor0
----
-55

query I rowsort
SELECT DISTINCT + 61 - - col2 AS col1 FROM tab2 AS cor0
----
101
119
84

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

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

query I rowsort
SELECT ALL - 11 + - 76 + + + 18 AS col1 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - COUNT( * ) - 65 AS col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-563
SELECT - COUNT ( * ) - 65 AS col0 FROM tab0
----
-68

query II rowsort
SELECT 4 - - + 65 AS col1, - col2 FROM tab2
----
69
-23
69
-40
69
-58

query I rowsort
SELECT DISTINCT col2 * - ( + 38 ) - - + col0 AS col0 FROM tab0
----
-1771
-293
-3665

onlyif mysql # DIV for integer division: 
query II rowsort label-566
SELECT DISTINCT col1 col2, col0 DIV - + col2 AS col0 FROM tab1
----
14
0
47
-1
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-566
SELECT DISTINCT col1 col2, col0 / - + col2 AS col0 FROM tab1
----
14
0
47
-1
5
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, ( + col2 ) col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col0 )
----

query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab0 cor0
----
-210
-3807
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 69 ) AS col2, + col0 + + - 27 * - col2 + - - col0 + - col2 - 98 col0 FROM tab2
----
69
1070
69
1560
69
592

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT DISTINCT COUNT( 85 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT COUNT ( 85 ) FROM tab1
----
3

query I rowsort
SELECT - + col2 * col0 + - + col1 + col1 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT - COUNT( * ) * 71 AS col1 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - COUNT ( * ) * 71 AS col1 FROM tab1 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT ALL + + CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + + CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT - 0 FROM tab1 cor0 WHERE NOT ( 12 BETWEEN + ( + - 20 ) AND + 21 )
----

query I rowsort
SELECT + 42 * - ( + ( - + col0 ) ) FROM tab1 AS cor0
----
2142
3570
3822

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

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

query I rowsort
SELECT DISTINCT - 56 * - - 27 AS col0 FROM tab2 AS cor0
----
-1512

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
-14
-47
-5

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

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

query II rowsort
SELECT ALL 31 * + - col2, 55 AS col0 FROM tab1 AS cor0
----
-1829
55
-2108
55
-2976
55

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

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

query II rowsort
SELECT DISTINCT col0, 53 AS col2 FROM tab2
----
46
53
64
53
75
53

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 24 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + + 66 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-591
SELECT + + 66 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-593
SELECT DISTINCT - CAST( - col0 AS SIGNED ) DIV + + col1 + col0 + col2 FROM tab1 AS cor0
----
150
160
161

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) / + + col1 + col0 + col2 FROM tab1 AS cor0
----
150
160
161

query I rowsort
SELECT ALL + col1 + + 71 AS col1 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT ALL 34 - + col0 FROM tab1
----
-17
-51
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + MIN( DISTINCT + - col1 ) - COUNT( ALL - col2 ) AS col0 FROM tab1 WHERE ( NOT + col2 = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT + MIN ( DISTINCT + - col1 ) - COUNT ( ALL - col2 ) AS col0 FROM tab1 WHERE ( NOT + col2 = NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT - COUNT( + 51 ) * + + 73 - 71 * - + 46 FROM tab1
----
3047

skipif mysql # not compatible
query I rowsort label-597
SELECT - COUNT ( + 51 ) * + + 73 - 71 * - + 46 FROM tab1
----
3047

query I rowsort
SELECT - col2 + - 16 AS col2 FROM tab0 cor0
----
-115
-26
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-599
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( + - col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( + - col2 AS REAL ) )
----

query I rowsort
SELECT DISTINCT + 52 + - col1 * - + 10 AS col1 FROM tab0 AS cor0
----
262
62
862

query I rowsort
SELECT + + col2 + - col1 AS col1 FROM tab2 cor0
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 10
----

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

skipif mysql # not compatible
query I rowsort label-603
SELECT - CAST ( - 20 AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
23

query II rowsort
SELECT + col0, col0 FROM tab2 AS cor0 WHERE col2 + + col0 IS NOT NULL
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL + COUNT( 66 ) * - CAST( NULL AS SIGNED ) + + 9 * CAST( NULL AS SIGNED ) + - ( 69 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + COUNT ( 66 ) * - CAST ( NULL AS INTEGER ) + + 9 * CAST ( NULL AS INTEGER ) + - ( 69 ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - + ( 55 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT COUNT( * ) - - 59 AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT COUNT ( * ) - - 59 AS col1 FROM tab2
----
62

query I rowsort
SELECT 53 AS col1 FROM tab1 WHERE + ( - + 31 ) * - 25 * + col2 * + 76 + col1 NOT IN ( col2 )
----
53
53
53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT ALL CAST( - - 72 AS SIGNED ) - - col0 + col2 AS col2 FROM tab1
----
216
219
231

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL CAST ( - - 72 AS INTEGER ) - - col0 + col2 AS col2 FROM tab1
----
216
219
231

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ( COUNT( * ) ) * - 35 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-611
SELECT ( COUNT ( * ) ) * - 35 FROM tab2
----
-105

query II rowsort
SELECT DISTINCT - col2 + - col2 AS col2, + col1 FROM tab1 AS cor0 WHERE NOT col1 / - col1 IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 77 + + col1 >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - - 98
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT ALL - 99 * MIN( - + CAST( - col0 AS SIGNED ) ) + 96 AS col0 FROM tab0 AS cor0
----
-1389

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - 99 * MIN ( - + CAST ( - col0 AS INTEGER ) ) + 96 AS col0 FROM tab0 AS cor0
----
-1389

query I rowsort
SELECT ALL 95 + 80 AS col2 FROM tab0 cor0
----
175
175
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT col2 * + 73 FROM tab0
----
3431
7227
730

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 82 * - - col2 NOT IN ( + 3, + col0, - 18, + col0 )
----

query I rowsort
SELECT col0 * ( + col0 ) FROM tab2
----
2116
4096
5625

query II rowsort
SELECT ALL col2 + - + col2 - - 7 AS col2, - col2 AS col0 FROM tab0
----
7
-10
7
-47
7
-99

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

query I rowsort
SELECT + col0 + + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
41
51
83

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

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

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - AVG ( col1 ) - + COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT ALL 6 + - ( - ( - - col1 ) ) + + col1 * - col0 - - col2 + - 77 DIV - ( + 21 ) AS col1 FROM tab1 cor0
----
-352
-4153
-595

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL 6 + - ( - ( - - col1 ) ) + + col1 * - col0 - - col2 + - 77 / - ( + 21 ) AS col1 FROM tab1 cor0
----
-352
-4153
-595

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 * - col1 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT ALL + 36 - - ( 77 ) AS col1, MIN( ALL + - 27 ) AS col0 FROM tab2 AS cor0
----
113
-27

skipif mysql # not compatible
query II rowsort label-632
SELECT ALL + 36 - - ( 77 ) AS col1, MIN ( ALL + - 27 ) AS col0 FROM tab2 AS cor0
----
113
-27

query II rowsort
SELECT - - col1 * - + col1 - + col2 AS col0, col0 FROM tab1 AS cor0
----
-2277
91
-292
51
-84
85

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-636
SELECT COUNT( - col1 ) FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-636
SELECT COUNT ( - col1 ) FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
3

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

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

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

query I rowsort
SELECT - 60 * - ( + col2 ) FROM tab1 AS cor0
----
3540
4080
5760

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 col1, + 80 - 17 FROM tab0 AS cor0
----
-37
63
-37
63
-37
63

query III rowsort
SELECT DISTINCT 77 AS col1, col0 AS col0, 10 + + + col0 * - - 7 AS col2 FROM tab2
----
9 values hashing to d53e432cf6fd6f72ed7e3cbb0336c0e8

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT COUNT( * ) + + 63 AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-646
SELECT COUNT ( * ) + + 63 AS col1 FROM tab0
----
66

query I rowsort
SELECT ALL col2 * 90 FROM tab0
----
4230
8910
900

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

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

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

query II rowsort
SELECT ALL - 77, col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT MIN( 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-651
SELECT MIN ( 40 ) FROM tab1
----
40

query I rowsort
SELECT DISTINCT + - col0 * - 80 + - col0 FROM tab1 cor0
----
4029
6715
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL + 56 - + + COUNT( * ) AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + 56 - + + COUNT ( * ) AS col0 FROM tab0
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-654
SELECT - col2 + + 72 DIV + - 82 * + ( + - col0 ), + 70 AS col2 FROM tab0
----
-10
70
-47
70
-99
70

skipif mysql # not compatible
query II rowsort label-654
SELECT - col2 + + 72 / + - 82 * + ( + - col0 ), + 70 AS col2 FROM tab0
----
-10
70
-47
70
-99
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT ALL - ( + col2 ) * + CAST( - 89 AS SIGNED ) * - col2 + - + col0 FROM tab0
----
-196616
-872386
-8987

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - ( + col2 ) * + CAST ( - 89 AS INTEGER ) * - col2 + - + col0 FROM tab0
----
-196616
-872386
-8987

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

query I rowsort
SELECT 67 + - + 20 AS col2 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT + - 75 FROM tab2 AS cor0
----
-75

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 15 NOT IN ( col2 * - 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL > + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT ALL - col1 DIV + col2 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - col1 / + col2 AS col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT 73 * - 57 FROM tab1
----
-4161
-4161
-4161

query I rowsort
SELECT ( - ( - col1 ) ) FROM tab2 WHERE NOT NULL = 31
----

query I rowsort
SELECT ( - ( 72 ) ) * + - col1 AS col0 FROM tab1
----
1008
3384
360

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab2
----
30

query I rowsort
SELECT DISTINCT - ( - - col2 ) * - 74 AS col0 FROM tab1
----
4366
5032
7104

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

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

query I rowsort
SELECT + 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

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

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

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

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

query I rowsort
SELECT ALL + + col0 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1200
-1740
0

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

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

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

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

query II rowsort
SELECT DISTINCT col0 + col2, + 82 AS col2 FROM tab2 AS cor0
----
104
82
133
82
69
82

query I rowsort
SELECT ALL - - col0 + 61 AS col1 FROM tab2 AS cor0
----
107
125
136

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 75 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 88 FROM tab1
----
-102
-135
-93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * col0 col0 FROM tab0
----
2697
3007
465

query III rowsort
SELECT * FROM tab1 WHERE 3 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT ALL - - 10 + - - 0 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL - - 10 + - - 0 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 50 + + col0 FROM tab1 cor0
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT 70 + + 74 + SUM( col2 ) AS col0 FROM tab2 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-691
SELECT 70 + + 74 + SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
265

query I rowsort
SELECT ALL - 55 * - col2 + + + col1 + - col2 + col2 FROM tab0 AS cor0
----
2666
5446
571

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + - col0 * 66 AS col2 FROM tab1 cor0
----
-3366
-5610
-6006

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 65 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - COUNT( ALL + 89 ) * + 60 AS col1 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - COUNT ( ALL + 89 ) * + 60 AS col1 FROM tab0 AS cor0
----
-180

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT ALL - col0 * + CAST( - col1 AS SIGNED ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - col0 * + CAST ( - col1 AS INTEGER ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL - 96 FROM tab2 WHERE - 10 * - - col1 + - 22 IS NOT NULL
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT DISTINCT col2 DIV - ( + col1 ) * + 3 col2 FROM tab2
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-705
SELECT ALL + col2 DIV 96 AS col2, + col2 + col1 + + col0 FROM tab1
----
0
149
0
206
1
161

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL + col2 / 96 AS col2, + col2 + col1 + + col0 FROM tab1
----
0
149
0
206
1
161

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + + 71 / - 5 + + 52 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN - 34 + + 49 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT ALL + col2 DIV - 66 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + col2 / - 66 FROM tab0
----
-1
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT - col2, - 56 AS col2 FROM tab0 AS cor0
----
-10
-56
-47
-56
-99
-56

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

skipif mysql # not compatible
query II rowsort label-714
SELECT - COUNT ( * ), - 5 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
NULL

query II rowsort
SELECT DISTINCT - + 43 AS col1, - 36 FROM tab2 AS cor0
----
-43
-36

query I rowsort
SELECT - + ( col0 ) + 32 FROM tab0 AS cor0
----
-55
-65
17

query I rowsort
SELECT DISTINCT - + col0 * - - col0 + + col0 + + - 5 * + 37 AS col2 FROM tab1 AS cor0
----
-2735
-7325
-8375

query I rowsort
SELECT + 32 + + col2 * + 92 AS col0 FROM tab0 AS cor0
----
4356
9140
952

query I rowsort
SELECT DISTINCT + + ( + - 70 ) * + - col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN ( - col2 ) AND col0
----
3570
5390

query I rowsort
SELECT DISTINCT + col1 + + 36 FROM tab2
----
103
113
87

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT - 49 DIV - col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-721
SELECT - 49 / - col0 FROM tab0
----
0
0
3

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

query I rowsort
SELECT ALL + ( - col2 ) + 53 AS col0 FROM tab2 AS cor0
----
-5
13
30

query I rowsort
SELECT ALL 60 AS col1 FROM tab0 AS cor0 WHERE NOT 10 IN ( - + col2 / - - 36 * - - col2 )
----
60
60
60

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - col1 IN ( 27 * + col0 + col0 )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0, - col0 + + - 86 col1, + col0 AS col2 FROM tab2 cor0
----
9 values hashing to 152e6aa6934d8460d0cc89196557faaa

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL - 91 * COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - 91 * COUNT ( * ) FROM tab1 AS cor0
----
-273

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

query I rowsort
SELECT - 21 * - 93 FROM tab2
----
1953
1953
1953

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT 24 DIV + 6 col2 FROM tab0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-731
SELECT 24 / + 6 col2 FROM tab0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab2 WHERE 70 NOT BETWEEN NULL AND - - col1
----
46
51
23
75
67
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT SUM( ALL + ( + - 1 ) ) * COUNT( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT SUM ( ALL + ( + - 1 ) ) * COUNT ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - col0 + col1 + + 20 FROM tab2 AS cor0
----
117
161
162

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT - + COUNT( * ) + - - 70 FROM tab2 WHERE + ( col2 ) * + col0 IS NOT NULL
----
67

skipif mysql # not compatible
query I rowsort label-736
SELECT - + COUNT ( * ) + - - 70 FROM tab2 WHERE + ( col2 ) * + col0 IS NOT NULL
----
67

query I rowsort
SELECT ALL 35 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

query I rowsort
SELECT col2 + - col1 * + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT COUNT( * ) * + 30 + + 83 DIV + - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-740
SELECT COUNT ( * ) * + 30 + + 83 / + - COUNT ( * ) FROM tab1
----
63

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

query II rowsort
SELECT DISTINCT 20 + - + 16 AS col1, col1 FROM tab0 AS cor0
----
4
1
4
21
4
81

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

skipif mysql # not compatible
query I rowsort label-743
SELECT + + CAST ( - AVG ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT ALL 74 DIV + col1 + + col0 - + col0 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 74 / + col1 + + col0 - + col0 FROM tab1 AS cor0
----
1
14
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-746
SELECT ALL ( + - CAST( + + 63 AS SIGNED ) ) - 95 AS col2 FROM tab0 AS cor0
----
-158
-158
-158

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL ( + - CAST ( + + 63 AS INTEGER ) ) - 95 AS col2 FROM tab0 AS cor0
----
-158
-158
-158

query I rowsort
SELECT ( - col2 ) * - col1 AS col1 FROM tab1 WHERE - + col2 IS NOT NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query II rowsort label-748
SELECT ALL - col1 - - + col0 DIV - col1, + col2 + + 77 + - 40 DIV + + 90 AS col2 FROM tab0
----
-25
87
-81
124
-98
176

skipif mysql # not compatible
query II rowsort label-748
SELECT ALL - col1 - - + col0 / - col1, + col2 + + 77 + - 40 / + + 90 AS col2 FROM tab0
----
-25
87
-81
124
-98
176

query II rowsort
SELECT ALL col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT 58 * - col2 FROM tab1
----
-3422
-3944
-5568

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT ALL 82 col1, - COUNT( + col0 ) col2 FROM tab2
----
82
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-752
SELECT ALL 82 col1, - COUNT ( + col0 ) col2 FROM tab2
----
82
-3

query I rowsort
SELECT 50 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
137
147
65

query II rowsort
SELECT + col1 AS col2, col0 * + - 97 * col1 * - + col2 FROM tab1 AS cor0
----
14
6648768
47
28211092
5
2432275

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL + AVG ( DISTINCT - - col0 ) + SUM( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0 WHERE + 36 + - col2 * col0 + 77 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + AVG ( DISTINCT - - col0 ) + SUM ( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0 WHERE + 36 + - col2 * col0 + 77 IS NULL
----
NULL

query I rowsort
SELECT ALL + 84 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT - 12 * MIN( DISTINCT - 67 ) AS col2 FROM tab1 AS cor0
----
804

skipif mysql # not compatible
query I rowsort label-759
SELECT - 12 * MIN ( DISTINCT - 67 ) AS col2 FROM tab1 AS cor0
----
804

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT ALL + - SUM( col0 ) AS col2, + 57 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-185
60

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL + - SUM ( col0 ) AS col2, + 57 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-185
60

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT SUM( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-761
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
223

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( 31 ) col1 FROM tab2
----
-1581
-2077
-2387

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-768
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-768
SELECT ALL + COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + - 79 + - col1 FROM tab0 WHERE NULL IS NULL
----
-100
-160
-80

query I rowsort
SELECT col1 + + col1 + + col1 AS col0 FROM tab1
----
141
15
42

query I rowsort
SELECT 42 + 71 FROM tab2
----
113
113
113

query I rowsort
SELECT ALL + 22 + + col1 AS col1 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL - MAX( ALL - 96 ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL - MAX ( ALL - 96 ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
288

query II rowsort
SELECT col0 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0
----

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

query I rowsort
SELECT + 0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + 4 * + 3 * col0 + - 49 FROM tab2
----
503
719
851

query I rowsort
SELECT DISTINCT col2 * - 85 + - + col1 AS col0 FROM tab2
----
-2006
-3477
-4997

query I rowsort
SELECT ALL - + 77 * col2 FROM tab2 AS cor0
----
-1771
-3080
-4466

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

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

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

query I rowsort
SELECT DISTINCT col1 - - 42 * 81 + - col1 AS col2 FROM tab2 AS cor0
----
3402

query I rowsort
SELECT DISTINCT col2 + - + 75 AS col0 FROM tab0 AS cor0
----
-28
-65
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT DISTINCT - CAST( - - 42 AS SIGNED ) - ( - - 73 ) AS col2 FROM tab1
----
-115

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT - CAST ( - - 42 AS INTEGER ) - ( - - 73 ) AS col2 FROM tab1
----
-115

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT + col2 * col0 * + ( + CAST( NULL AS SIGNED ) ) * + 32 * + 58 + - - col2 + + ( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + col2 * col0 * + ( + CAST ( NULL AS INTEGER ) ) * + 32 * + 58 + - - col2 + + ( col1 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * 83 AS col1 FROM tab0
----
1245
7221
8051

query I rowsort
SELECT ALL - 94 - + 9 * + ( - col0 ) AS col1 FROM tab0
----
41
689
779

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

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT col1 / - + col2 AS col2 FROM tab2
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * - col2 col1 FROM tab1
----
-1020
-1440
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL COUNT( * ) * SUM( - 1 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL COUNT ( * ) * SUM ( - 1 ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL - - 97 * SUM( + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL - - 97 * SUM ( + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT ( - ( - - CAST( + col0 AS SIGNED ) ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-795
SELECT ( - ( - - CAST ( + col0 AS INTEGER ) ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL MIN( - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL MIN ( - col1 ) FROM tab1
----
-47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 - - ( col2 ) col1 FROM tab1
----
115
124
152

query I rowsort
SELECT ALL - - col2 - - 16 AS col2 FROM tab0 WHERE NOT + 23 <= - col2
----
115
26
63

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + col0 + - - col1 + 94 * + + 76 * - + 60 col1 FROM tab1 WHERE NULL NOT BETWEEN - - 71 * + col2 AND NULL
----

query I rowsort
SELECT ALL + 74 FROM tab2 WHERE NULL >= + col2
----

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

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

query I rowsort
SELECT DISTINCT + + col1 + 99 FROM tab0 AS cor0
----
100
120
180

query I rowsort
SELECT col2 * + 23 FROM tab2
----
1334
529
920

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

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

query I rowsort
SELECT DISTINCT + + ( ( + - col1 ) ) + - + col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

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

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

query I rowsort
SELECT ALL + - 9 + + col1 FROM tab0 AS cor0
----
-8
12
72

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-812
SELECT ALL - CAST( - 52 AS SIGNED ) + - col1 * - CAST( col2 AS SIGNED ) AS col1, col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
151
-1
262
0
3859
-3

skipif mysql # not compatible
query II rowsort label-812
SELECT ALL - CAST ( - 52 AS INTEGER ) + - col1 * - CAST ( col2 AS INTEGER ) AS col1, col2 / - col0 AS col1 FROM tab0 AS cor0
----
151
-1
262
0
3859
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-813
SELECT + 16 + - col0 AS col1, CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
-71
10
-81
99
1
47

skipif mysql # not compatible
query II rowsort label-813
SELECT + 16 + - col0 AS col1, CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
-71
10
-81
99
1
47

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

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

query I rowsort
SELECT ALL - col0 * + + ( - col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT ( - - col1 ) * + col1 AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT ALL col0 * + CAST( + 56 AS SIGNED ) col1 FROM tab1 cor0
----
2856
4760
5096

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-817
SELECT ALL col0 * + CAST ( + 56 AS INTEGER ) col1 FROM tab1 cor0
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL MIN( 15 ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL MIN ( 15 ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT DISTINCT + col0 DIV 78 + col0 AS col2 FROM tab0 AS cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + col0 / 78 + col0 AS col2 FROM tab0 AS cor0
----
15
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL + COUNT( * ) * + - COUNT( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL + COUNT ( * ) * + - COUNT ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 27 col2 FROM tab2 AS cor0
----
-27
-27
-27

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT 33 - - + col2 FROM tab1 AS cor0
----
101
129
92

query I rowsort
SELECT 72 * - 58 * col0 - + + 96 - - + 37 + + 47 AS col1 FROM tab2
----
-192108
-267276
-313212

query III rowsort
SELECT * FROM tab0 WHERE 81 < + ( - col2 ) * 97 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT 46 DIV 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT 46 / 91 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 * 59 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col1 + + col2 + - 15 BETWEEN - + col1 AND col2 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT col1 + + col2 + - 15 BETWEEN - + col1 AND col2 * - col2
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT + 27 DIV col2 + col0 - - - 43 AS col0 FROM tab2 cor0
----
21
32
4

skipif mysql # not compatible
query I rowsort label-833
SELECT + 27 / col2 + col0 - - - 43 AS col0 FROM tab2 cor0
----
21
32
4

query I rowsort
SELECT DISTINCT - col0 * + ( + - col2 ) FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT 6 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT 6 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT MAX( - 38 ) FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT MAX ( - 38 ) FROM tab1 cor0
----
-38

query I rowsort
SELECT - ( ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - + col0 * + col1 * col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col0 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - 84 col0, col0 FROM tab0 AS cor0
----
3948
15
8316
97
840
87

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT - + COUNT( * ) * + + MIN( - col1 ) col2 FROM tab2 WHERE + col2 + - + col0 * + col2 * 14 + + - col0 IS NOT NULL
----
231

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * - col1 * - + 92 col0 FROM tab2
----
178296
234232
269192

query I rowsort
SELECT + col2 + 46 FROM tab2
----
104
69
86

query I rowsort
SELECT - col1 + + - col2 * ( + + 41 ) FROM tab0
----
-2008
-4060
-431

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

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

query I rowsort
SELECT ALL + col2 + - + 56 AS col2 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT - - COUNT( * ) + + + 35 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - - COUNT ( * ) + + + 35 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL - - MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - - MIN ( - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL col1 + col1 + - 66 + col0 AS col0 FROM tab0 AS cor0
----
111
33
63

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 WHERE + 49 NOT BETWEEN NULL AND - col1
----
-3

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 WHERE + 49 NOT BETWEEN NULL AND - col1
----
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT - COUNT ( * ) + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + - 59 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * col1 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT 74 * + MAX( - 32 ) AS col2 FROM tab0
----
-2368

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT 74 * + MAX ( - 32 ) AS col2 FROM tab0
----
-2368

query II rowsort
SELECT 3, col0 FROM tab2
----
3
46
3
64
3
75

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col2, 63 AS col2 FROM tab2 AS cor0
----
-23
63
-40
63
-58
63

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT + + COUNT( DISTINCT - col2 ) * 56 AS col2 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-862
SELECT + + COUNT ( DISTINCT - col2 ) * 56 AS col2 FROM tab0 AS cor0
----
168

query I rowsort
SELECT + - col0 * + - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + - col1 * + + 1 + - col1 * + + col1 FROM tab1 AS cor0
----
-210
-2256
-30

query I rowsort
SELECT DISTINCT - col1 / col0 + col0 - col1 + + ( - + col1 ) FROM tab2 AS cor0 WHERE NOT + 33 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 92 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT + + 36 FROM tab0 cor0
----
36

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT + - ( + 45 ) + - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + - ( + 45 ) + - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-48

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT - ( - 60 ) AS col2, + COUNT( * ) * - ( MIN( - - 71 ) ) * COUNT( ALL - col0 ) AS col1 FROM tab1
----
60
-639

skipif mysql # not compatible
query II rowsort label-874
SELECT - ( - 60 ) AS col2, + COUNT ( * ) * - ( MIN ( - - 71 ) ) * COUNT ( ALL - col0 ) AS col1 FROM tab1
----
60
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL MIN( DISTINCT + col2 ) col1 FROM tab2
----
23

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

query I rowsort
SELECT 6 * + + col0 * col2 AS col1 FROM tab2
----
15360
26100
6348

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

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

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

query I rowsort
SELECT - col2 + + - 99 + - col1 FROM tab0
----
-130
-199
-227

query II rowsort
SELECT ALL + col2 + col2, + col1 AS col2 FROM tab1 cor0
----
118
5
136
47
192
14

query I rowsort
SELECT ALL - col0 + 42 AS col2 FROM tab2 cor0
----
-22
-33
-4

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

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

query I rowsort
SELECT - 37 - + + 28 FROM tab1 AS cor0
----
-65
-65
-65

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-885
SELECT + COUNT( * ), - 33 * + COUNT( * ) col1 FROM tab2 AS cor0
----
3
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-885
SELECT + COUNT ( * ), - 33 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
3
-99

query II rowsort
SELECT + - col0 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT DISTINCT + ( - + col2 ) * + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
102400
24334
252300

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

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

skipif mysql # not compatible
query II rowsort label-889
SELECT ALL + col0 AS col2, + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - COUNT( + 53 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-890
SELECT - COUNT ( + 53 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 92 * col1 FROM tab2
----
4692
6164
7084

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT 76 * 5 DIV + 92 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-892
SELECT 76 * 5 / + 92 FROM tab0
----
4
4
4

query I rowsort
SELECT - col0 * - + 41 FROM tab0 AS cor0
----
3567
3977
615

query I rowsort
SELECT col2 * - - 76 AS col1 FROM tab0 AS cor0
----
3572
7524
760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT + ( - 68 ) * - + 0 DIV - 45 + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-895
SELECT + ( - 68 ) * - + 0 / - 45 + + COUNT ( * ) FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL - MIN( DISTINCT + 58 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL - MIN ( DISTINCT + 58 ) FROM tab0 AS cor0
----
-58

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

query I rowsort
SELECT ALL + 19 * - - 13 FROM tab0 AS cor0
----
247
247
247

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( ( + col1 ) + + col1, ( - + 34 ), + + 20 + + + 63, 1, + ( - + col2 ) / + + col2 + - col1, + col0 + 84 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 71 DIV col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-902
SELECT 71 / col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT DISTINCT + SUM( DISTINCT col1 ) + + + COUNT( * ) * - 51 AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT + SUM ( DISTINCT col1 ) + + + COUNT ( * ) * - 51 AS col1 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT 65 AS col1 FROM tab1 cor0
----
65
65
65

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

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

query II rowsort
SELECT ALL + 79 + ( - col2 ) AS col2, + ( - 41 ) FROM tab2 AS cor0
----
21
-41
39
-41
56
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - + 99 + + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-907
SELECT - + 99 + + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT DISTINCT - col0 + col0 + - - col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT ALL - + col2 + - - CAST( - 23 AS SIGNED ) * - - col0 FROM tab2 AS cor0
----
-1081
-1512
-1783

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL - + col2 + - - CAST ( - 23 AS INTEGER ) * - - col0 FROM tab2 AS cor0
----
-1081
-1512
-1783

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( + col0 / + col1, col2, - col1, + - 30, + col2, - col0, col2 + - col2 + + - col2 ) AND ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - 56 - + col0 FROM tab0
----
-143
-153
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-913
SELECT + COUNT( * ) DIV - MAX( col0 ) + + - 44 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-913
SELECT + COUNT ( * ) / - MAX ( col0 ) + + - 44 FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 >= col0
----
0

query II rowsort
SELECT ALL + 50, + col0 FROM tab1
----
50
51
50
85
50
91

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

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

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

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

query I rowsort
SELECT + ( + 15 ) FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT ( + + col2 ) * + + 25 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT ALL + + col0 + - 87 FROM tab0 AS cor0
----
-72
0
10

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

query I rowsort
SELECT + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 / col1 * - ( col2 ) * - col1 col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 + + 70 IS NOT NULL
----

query I rowsort
SELECT - col1 * ( + - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + col1 * 92
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-928
SELECT - - CAST ( + ( col0 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col0 - 45 * 0 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT ALL + 23, ( + col1 ) + col2 AS col1 FROM tab1
----
23
110
23
115
23
64

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE - + col0 * 92 + - col1 * - + col0 * - ( + 14 ) IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT - 68 DIV + 73 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-932
SELECT - 68 / + 73 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - ( - + MAX( DISTINCT 59 ) ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-933
SELECT - ( - + MAX ( DISTINCT 59 ) ) FROM tab2
----
59

query I rowsort
SELECT 66 * + + col1 AS col1 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT ALL 46 AS col2, + COUNT( * ) AS col1 FROM tab0
----
46
3

skipif mysql # not compatible
query II rowsort label-935
SELECT ALL 46 AS col2, + COUNT ( * ) AS col1 FROM tab0
----
46
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-936
SELECT DISTINCT ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col2 * + + ( - col1 ) * + 92 FROM tab0 AS cor0
----
19320
350244
9108

query I rowsort
SELECT DISTINCT + ( + 97 ) FROM tab1 WHERE - 38 + + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab0 WHERE 33 IS NULL
----

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab0 WHERE 33 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col2 * 32 IS NOT NULL
----
46
64
75

query I rowsort
SELECT 47 * col1 FROM tab0
----
3807
47
987

query I rowsort
SELECT - 29 * + col1 FROM tab0
----
-2349
-29
-609

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-943
SELECT * FROM tab2 WHERE NOT - 74 <> col1 * - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-943
SELECT * FROM tab2 WHERE NOT - 74 <> col1 * - CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT - 40 AS col0 FROM tab1 WHERE NOT - 60 <= NULL
----

query I rowsort
SELECT col0 + - 4 AS col1 FROM tab1
----
47
81
87

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

query I rowsort
SELECT col0 FROM tab0 WHERE col0 <= NULL
----

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

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

query I rowsort
SELECT ALL + col1 * + ( + 24 ) FROM tab1
----
1128
120
336

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-951
SELECT ALL - col2 * CAST( + col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL - col2 * CAST ( + col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL 33 * col2 AS col1 FROM tab1
----
1947
2244
3168

query III rowsort
SELECT * FROM tab2 WHERE NOT 53 * - 24 IS NOT NULL
----

query I rowsort
SELECT - ( 58 ) FROM tab2
----
-58
-58
-58

query I rowsort
SELECT DISTINCT 23 * - col2 AS col0 FROM tab0
----
-1081
-2277
-230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col2 FROM tab2 WHERE NOT col0 / + col1 = ( col0 )
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-957
SELECT ALL * FROM tab1 WHERE NOT ( col1 / CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-957
SELECT ALL * FROM tab1 WHERE NOT ( col1 / CAST ( NULL AS INTEGER ) ) > NULL
----

query I rowsort
SELECT + 12 + + 74 AS col0 FROM tab0
----
86
86
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT + COUNT( * ) + + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT + COUNT ( * ) + + 84 FROM tab1
----
87

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( - col0 )
----

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

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

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

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

query I rowsort
SELECT ALL col2 * col0 + - col1 AS col1 FROM tab2
----
1007
2483
4283

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 6 col0 FROM tab2
----
29
46
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 > NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-970
SELECT - MIN ( 85 ) AS col1 FROM tab1
----
-85

query I rowsort
SELECT 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + 62 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

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

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

query I rowsort
SELECT - 73 * col1 FROM tab0 AS cor0
----
-1533
-5913
-73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT ALL col0 * - col0 FROM tab1 AS cor0 WHERE ( + col1 + 31 ) NOT IN ( CAST( 92 AS SIGNED ) * col1 + col1 )
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL col0 * - col0 FROM tab1 AS cor0 WHERE ( + col1 + 31 ) NOT IN ( CAST ( 92 AS INTEGER ) * col1 + col1 )
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT DISTINCT - ( 90 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT - ( 90 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-270

query I rowsort
SELECT 65 / 69 AS col0 FROM tab2 AS cor0 WHERE NOT ( 67 - 51 ) <= NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT + ( - COUNT( * ) ) * + 98 AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + ( - COUNT ( * ) ) * + 98 AS col1 FROM tab1
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT DISTINCT COUNT( ALL + 2 ) DIV + COUNT( ALL - col0 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT COUNT ( ALL + 2 ) / + COUNT ( ALL - col0 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT + 32 * + col2 - + col0 FROM tab1 WHERE NOT ( col2 - - ( col0 ) ) NOT IN ( 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - + SUM( 34 ) FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-986
SELECT - + SUM ( 34 ) FROM tab2 cor0
----
-102

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 BETWEEN - 84 AND col1
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) >= - ( col2 ) + - 39
----
0

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) >= - ( col2 ) + - 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT DISTINCT - 25 DIV ( COUNT( * ) * - COUNT( * ) ) FROM tab0 WHERE NOT ( - ( - col2 ) + col2 ) < + 64
----
6

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - 25 / ( COUNT ( * ) * - COUNT ( * ) ) FROM tab0 WHERE NOT ( - ( - col2 ) + col2 ) < + 64
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT - 51 DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-991
SELECT - 51 / col0 FROM tab1
----
-1
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + 18 col1 FROM tab0 AS cor0
----
117
28
65

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT - 15 DIV col2 DIV col2 + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-994
SELECT - 15 / col2 / col2 + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 0 * + + col2 col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT - + COUNT( * ) DIV 45 + 81 + 64 * 78 AS col0 FROM tab0 AS cor0
----
5073

skipif mysql # not compatible
query I rowsort label-996
SELECT - + COUNT ( * ) / 45 + 81 + 64 * 78 AS col0 FROM tab0 AS cor0
----
5073

query I rowsort
SELECT DISTINCT 49 + + 29 AS col2 FROM tab0 AS cor0
----
78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT col1 DIV 44 FROM tab1 AS cor0 WHERE ( - 31 ) + + col2 * - 52 NOT BETWEEN 61 + + col2 AND ( NULL )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-999
SELECT col1 / 44 FROM tab1 AS cor0 WHERE ( - 31 ) + + col2 * - 52 NOT BETWEEN 61 + + col2 AND ( NULL )
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE - col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 - - 41 + + 52 AS col0 FROM tab2
----
116
133
151

query I rowsort
SELECT ALL + ( + col1 ) * 6 + + col0 AS col0 FROM tab1
----
115
135
373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 31 col2 FROM tab1
----
1581
2635
2821

query I rowsort
SELECT ( + + col0 ) * - + col0 + + col0 FROM tab0
----
-210
-7482
-9312

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1006
SELECT ALL * FROM tab1 WHERE NOT col1 + + + ( 77 ) * CAST( NULL AS SIGNED ) NOT IN ( - 75 )
----

skipif mysql # not compatible
query III rowsort label-1006
SELECT ALL * FROM tab1 WHERE NOT col1 + + + ( 77 ) * CAST ( NULL AS INTEGER ) NOT IN ( - 75 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 62 ) <= ( - col0 )
----

query I rowsort
SELECT DISTINCT + col2 - - - col0 + - col0 * - - 34 * 3 FROM tab1
----
-5157
-8696
-9305

query I rowsort
SELECT col1 * 64 * - 86 * - col2 FROM tab1
----
1623680
17590784
7397376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 0 NOT IN ( + 18 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 44 * + 59 AS col2, + col0 + col0 AS col0 FROM tab0
----
2596
174
2596
194
2596
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT MAX( 79 ) AS col1 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-1013
SELECT MAX ( 79 ) AS col1 FROM tab2
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 - + 85 AS col2, + col2 * + col2 - - col0 col1 FROM tab2 cor0
----
-18
3439
-34
575
-8
1664

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - col0 / 98 > ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT DISTINCT - + ( + - SUM( + 60 ) ) AS col1 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT - + ( + - SUM ( + 60 ) ) AS col1 FROM tab0 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT - 8 DIV + + 68 * + + 6 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1017
SELECT - 8 / + + 68 * + + 6 AS col0 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NOT + col0 + - col2 IS NULL )
----
14
47
5

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

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

query I rowsort
SELECT 10 FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON + 98 * + 56 * 79 <> + 48 + - 48 * + 93
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - 17 * - ( col0 ) FROM tab0
----
1479
1649
255

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT COUNT( * ) * - + 70 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT COUNT ( * ) * - + 70 FROM tab2
----
-210

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

query I rowsort
SELECT ALL - + col1 * col0 + - col2 FROM tab2 AS cor0 WHERE NOT col2 / - - ( + + col1 ) IS NULL
----
-2369
-4968
-5083

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT DISTINCT + 97 * - COUNT( DISTINCT + col1 ) AS col2, 70 AS col2 FROM tab2 AS cor0
----
-291
70

skipif mysql # not compatible
query II rowsort label-1028
SELECT DISTINCT + 97 * - COUNT ( DISTINCT + col1 ) AS col2, 70 AS col2 FROM tab2 AS cor0
----
-291
70

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

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

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL col1 / - + col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1031
SELECT - MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
10

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

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL MIN ( - col1 ) AS col0 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <> - ( + 41 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col1 + - col1 AS col2 FROM tab0
----
10
-42
47
-162
99
-2

query I rowsort
SELECT DISTINCT + 56 + + - col1 FROM tab0 cor0
----
-25
35
55

query II rowsort
SELECT ALL + 25, col0 - + - 13 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
25
157
25
160
25
172

query I rowsort
SELECT + 77 + + - col2 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT COUNT( * ) + + 55 + + 19 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT COUNT ( * ) + + 55 + + 19 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - col0 * col0 * 11 FROM tab0 AS cor0
----
-103499
-2475
-83259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT - + 28 + CAST( + CAST( + SUM( ALL col1 ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1041
SELECT - + 28 + CAST ( + CAST ( + SUM ( ALL col1 ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT COUNT( * ) * - ( - 15 ) + + COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT COUNT ( * ) * - ( - 15 ) + + COUNT ( * ) AS col2 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1043
SELECT ALL + COUNT( col1 ), 95 - + - 54 AS col1 FROM tab2
----
3
149

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL + COUNT ( col1 ), 95 - + - 54 AS col1 FROM tab2
----
3
149

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT - 76 + - 6 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * + col1 * 72 AS col0 FROM tab0
----
15120
274104
7128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + col1 / - col0 * - col1 + - + 57 + + 54
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT COUNT( * ) DIV COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1047
SELECT COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT + 23 + col0 FROM tab0 AS cor0
----
110
120
38

query I rowsort
SELECT ALL + + 12 - col1 * 57 FROM tab1 AS cor0
----
-2667
-273
-786

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT DISTINCT 46 + - + col0 DIV col1 FROM tab1
----
29
43
45

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT 46 + - + col0 / col1 FROM tab1
----
29
43
45

query I rowsort
SELECT - col1 + + col1 * - + 94 AS col1 FROM tab1
----
-1330
-4465
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - - COUNT( * ) + - 68 col1 FROM tab0 WHERE NULL IS NOT NULL
----
-68

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 NOT IN ( col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + + ( + ( - COUNT( * ) ) ) FROM tab1 AS cor0 WHERE NOT - col0 * + col2 NOT BETWEEN + col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT + + ( + ( - COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE NOT - col0 * + col2 NOT BETWEEN + col2 AND col0
----
0

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

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

query I rowsort
SELECT 5 * - ( 30 ) FROM tab2
----
-150
-150
-150

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 * + 83 * + 30 / col0 ) IN ( - col2 )
----

query I rowsort
SELECT DISTINCT ( + col1 ) + - + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-21
-54
-82

query I rowsort
SELECT ALL + col1 * + col0 * + - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT + ( col1 ) * col2 * + + col2 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1063
SELECT ALL - CAST( NULL AS DECIMAL ) / - 71 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL - CAST ( NULL AS REAL ) / - 71 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
199

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

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

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

query I rowsort
SELECT DISTINCT + 29 * - col1 FROM tab0 WHERE NULL <> + col1 - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 67 + - col1 NOT IN ( + col1 * - col2 / - col1 - - 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT DISTINCT + 25 DIV - 32 * col0 DIV - 36 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT + 25 / - 32 * col0 / - 36 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - col1, + col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT - 69 DIV + 27 + + col0 * + col0 AS col0 FROM tab1
----
2599
7223
8279

skipif mysql # not compatible
query I rowsort label-1073
SELECT - 69 / + 27 + + col0 * + col0 AS col0 FROM tab1
----
2599
7223
8279

query I rowsort
SELECT ALL 66 FROM tab0 WHERE NULL IN ( 62 * + + col2 + - - col0, col1 )
----

query I rowsort
SELECT col0 * + + col2 * col2 + - - col2 + - col1 FROM tab0 AS cor0
----
33101
8689
950795

query I rowsort
SELECT ALL + col1 + 33 FROM tab1 AS cor0
----
38
47
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1077
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * CAST( + col1 AS SIGNED ) > + + 65 + + + col2
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-1077
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * CAST ( + col1 AS INTEGER ) > + + 65 + + + col2
----
51
14
96
91
47
68

query I rowsort
SELECT + col1 * + - ( + col0 ) + - col1 - col1 AS col0 FROM tab2 AS cor0
----
-2448
-5082
-5159

query II rowsort
SELECT DISTINCT 90 + ( - + 1 ), 84 AS col2 FROM tab2
----
89
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT MAX( ALL - + 32 ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT MAX ( ALL - + 32 ) AS col2 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + ( + + MIN( 4 ) ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1082
SELECT + ( + + MIN ( 4 ) ) FROM tab2
----
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 <= ( + col1 / - - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1084
SELECT ALL - ( ( + CAST( NULL AS DECIMAL ) ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - ( ( + CAST ( NULL AS REAL ) ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL - col1 AS col2, 50 FROM tab2
----
-51
50
-67
50
-77
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT ALL 34, + COUNT( * ) AS col0 FROM tab1
----
34
3

skipif mysql # not compatible
query II rowsort label-1086
SELECT ALL 34, + COUNT ( * ) AS col0 FROM tab1
----
34
3

query III rowsort
SELECT - col1, - col0 + - - 40 * + - 61 AS col2, + col0 AS col0 FROM tab1
----
9 values hashing to 8bd82ca4929a0327f6d8139b6abcb872

query I rowsort
SELECT ALL + 6 FROM tab2 WHERE - 9 IS NOT NULL
----
6
6
6

query II rowsort
SELECT DISTINCT + col2 * - col2 - + + 72, 11 - - + 92 AS col2 FROM tab0 AS cor0
----
-172
103
-2281
103
-9873
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT + col0 DIV + + col1 + + - 95 FROM tab0 AS cor0
----
-91
-95
2

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT + col0 / + + col1 + + - 95 FROM tab0 AS cor0
----
-91
-95
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL + SUM( - + 97 ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + SUM ( - + 97 ) FROM tab2 AS cor0
----
-291

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

query I rowsort
SELECT ALL 82 * + - 58 AS col2 FROM tab1
----
-4756
-4756
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - COUNT( * ) * SUM( ALL col0 ) col2 FROM tab2
----
-555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1096
SELECT - COUNT ( * ) * SUM ( ALL col0 ) col2 FROM tab2
----
-555

query I rowsort
SELECT col2 * + - 50 * + + 90 * + col0 AS col0 FROM tab0
----
-3172500
-3915000
-43213500

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1099
SELECT + col0 DIV + col2 AS col1, 15 AS col1 FROM tab2
----
1
15
1
15
2
15

skipif mysql # not compatible
query II rowsort label-1099
SELECT + col0 / + col2 AS col1, 15 AS col1 FROM tab2
----
1
15
1
15
2
15

query I rowsort
SELECT ALL 81 + + col2 FROM tab1
----
140
149
177

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 16 + ( - + col2 ) FROM tab0 AS cor0
----
-115
-26
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 85 IS NULL AND NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 8 + - + ( col1 ) FROM tab1 AS cor0
----
-39
-6
3

query I rowsort
SELECT + col2 * + 39 + - 62 + + 27 + + 66 - - - col1 FROM tab0 AS cor0
----
1783
3891
400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1106
SELECT ALL * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) < - 51
----

skipif mysql # not compatible
query III rowsort label-1106
SELECT ALL * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) < - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT - COUNT( * ) + COUNT( ALL - - col1 ) col2 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL + COUNT( * ) * + 61 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
558

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + COUNT ( * ) * + 61 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
558

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

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

query I rowsort
SELECT - ( + col0 ) - + + col1 AS col1 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT DISTINCT COUNT( - - col2 ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( col1 + + 34 * + - col0 + - 63 )
----
3

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT COUNT ( - - col2 ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( col1 + + 34 * + - col0 + - 63 )
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / 2 / + + 60 * col2 IS NOT NULL
----

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

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

query I rowsort
SELECT - - 57 FROM tab0 cor0
----
57
57
57

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

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

query II rowsort
SELECT + 35, col2 FROM tab0
----
35
10
35
47
35
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 6 * - + col0 AS col1 FROM tab2
----
-46
-276
-64
-384
-75
-450

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

skipif mysql # not compatible
query II rowsort label-1119
SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL ( - + 6 ) AS col0 FROM tab1
----
-6
-6
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL + COUNT( * ) * - 36 * + MIN( + + col2 ) AS col1 FROM tab0
----
-1080

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL + COUNT ( * ) * - 36 * + MIN ( + + col2 ) AS col1 FROM tab0
----
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT ALL + ( + + SUM( - 2 ) ) DIV 46 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1123
SELECT ALL + ( + + SUM ( - 2 ) ) / 46 col0 FROM tab2
----
0

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

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

query I rowsort
SELECT + col0 * + - 43 AS col0 FROM tab0 AS cor0 WHERE NOT - 82 IS NULL
----
-3741
-4171
-645

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

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

query II rowsort
SELECT DISTINCT + col1 + - 21 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
30
-23
46
-58
56
-40

query I rowsort
SELECT ALL + col0 + + 3 + + col1 AS col2 FROM tab2 AS cor0
----
100
144
145

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

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT ALL + + 63 + - - col2 + - col1 * + - col2 AS col1 FROM tab1 AS cor0
----
1503
3327
417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT DISTINCT - + CAST( MIN( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT - + CAST ( MIN ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL col0 AS col1, ( col1 ) * col1 AS col1 FROM tab2
----
46
2601
64
5929
75
4489

query I rowsort
SELECT 33 + + - ( + 42 ) FROM tab0
----
-9
-9
-9

query I rowsort
SELECT col1 + + 16 FROM tab1
----
21
30
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1137
SELECT COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1137
SELECT COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT + 65 DIV col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 65 / col2 FROM tab0
----
0
1
6

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

query I rowsort
SELECT + col1 + 22 FROM tab0 AS cor0 WHERE NULL IS NULL
----
103
23
43

query II rowsort
SELECT DISTINCT - col2 * + col1 * + col0 AS col0, + col2 FROM tab0 cor0
----
-18270
10
-57105
47
-9603
99

query I rowsort
SELECT col2 + 42 FROM tab2
----
100
65
82

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * + + 97 + - + 98 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 36 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - col0 * + - 89 + + + ( - - col2 ) * - - col1 FROM tab1 AS cor0
----
11295
5883
7860

query I rowsort
SELECT DISTINCT - 80 FROM tab0 AS cor0 WHERE NOT col0 / col0 * - + ( 57 ) * - 10 IS NOT NULL
----

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

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

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab1 WHERE NOT NULL >= - - col0 + - 40 / - + 25
----

query II rowsort
SELECT ALL - col1 AS col2, 7 AS col1 FROM tab0
----
-1
7
-21
7
-81
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL MAX( - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL MAX ( - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT + 4 * - 82 AS col2 FROM tab0
----
-328
-328
-328

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + 80 AND NULL
----

query I rowsort
SELECT ALL 63 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + COUNT( * ) + - - SUM( col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-1155
SELECT + COUNT ( * ) + - - SUM ( col0 ) FROM tab0
----
202

query I rowsort
SELECT - 70 + + col1 AS col2 FROM tab0
----
-49
-69
11

query I rowsort
SELECT + 49 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

query I rowsort
SELECT ALL col1 * - - col2 FROM tab2 AS cor0
----
1173
3080
3886

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

query I rowsort
SELECT DISTINCT - + col2 + - col2 + - 98 AS col0 FROM tab1 cor0
----
-216
-234
-290

query I rowsort
SELECT ALL + ( 40 ) * - ( - col1 ) + + 79 FROM tab2 AS cor0
----
2119
2759
3159

onlyif mysql # aggregate syntax: 
query II rowsort label-1163
SELECT ALL + ( - COUNT( * ) ) + - + MIN( + 45 ) AS col1, + COUNT( * ) col0 FROM tab0 AS cor0
----
-48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1163
SELECT ALL + ( - COUNT ( * ) ) + - + MIN ( + 45 ) AS col1, + COUNT ( * ) col0 FROM tab0 AS cor0
----
-48
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT - - col2 + - 48 - - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-25
-8
10

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT - - col2 + - 48 - - col2 / + col0 AS col1 FROM tab2 AS cor0
----
-25
-8
10

query II rowsort
SELECT ALL - 56 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-56
59
-56
68
-56
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT col2 DIV 23 AS col0 FROM tab1 AS cor0
----
2
2
4

skipif mysql # not compatible
query I rowsort label-1168
SELECT col2 / 23 AS col0 FROM tab1 AS cor0
----
2
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + SUM( DISTINCT col0 ) * 55 FROM tab2
----
10175

skipif mysql # not compatible
query I rowsort label-1169
SELECT + SUM ( DISTINCT col0 ) * 55 FROM tab2
----
10175

query I rowsort
SELECT - 70 * 10 * - col1 FROM tab0
----
14700
56700
700

query I rowsort
SELECT DISTINCT + 75 * col1 AS col1 FROM tab1
----
1050
3525
375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) - col0 + - + col1 col2 FROM tab1
----
-31
-70
31

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

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
0

query I rowsort
SELECT + + col2 + + col0 AS col0 FROM tab1 cor0
----
144
147
159

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 44 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 73 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL 15 DIV - + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL 15 / - + col2 AS col2 FROM tab1
----
0
0
0

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 IS NOT NULL
----

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

query I rowsort
SELECT + ( 41 ) * 77 AS col1 FROM tab0 AS cor0
----
3157
3157
3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1184
SELECT + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT + col2 DIV + 56 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1185
SELECT + col2 / + 56 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - col1 * - - col1 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT COUNT( + - ( - + col1 ) ) * - - COUNT( * ) + + 15 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT COUNT ( + - ( - + col1 ) ) * - - COUNT ( * ) + + 15 FROM tab2
----
24

query II rowsort
SELECT ALL - col2 * - + 49 AS col0, col1 AS col0 FROM tab1
----
2891
5
3332
47
4704
14

query II rowsort
SELECT ALL + 28 AS col0, - 92 FROM tab0, tab1 AS cor0
----
18 values hashing to d17739254fab4c53834fae67829ddc8d

query I rowsort
SELECT DISTINCT col0 + + - col1 * col1 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT ALL - col0 * + 48 AS col1 FROM tab1 AS cor0
----
-2448
-4080
-4368

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL MIN( - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL MIN ( - col2 ) FROM tab1
----
-96

query I rowsort
SELECT + - 9 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT - col1 + + + 65 FROM tab2 AS cor0
----
-12
-2
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col0
----

query I rowsort
SELECT col2 * - col0 + + - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT - col2 + + - col1 * col1 FROM tab2 AS cor0
----
-2624
-4547
-5969

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

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

query I rowsort
SELECT ALL + 55 FROM tab0 AS cor0 WHERE col1 NOT IN ( col0 )
----
55
55
55

query I rowsort
SELECT - + col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1 * - 97 + + 49
----

query I rowsort
SELECT + 3 + + col0 AS col1 FROM tab2 AS cor0
----
49
67
78

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

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

query I rowsort
SELECT 2 + col1 FROM tab1
----
16
49
7

query I rowsort
SELECT ALL - - col0 * col1 FROM tab1 WHERE NOT + - 25 IS NOT NULL
----

query I rowsort
SELECT 92 + - 23 FROM tab1
----
69
69
69

query II rowsort
SELECT ALL col0, + col1 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT ALL 33 AS col2, + MAX( DISTINCT col1 ) AS col1 FROM tab2
----
33
77

skipif mysql # not compatible
query II rowsort label-1209
SELECT ALL 33 AS col2, + MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
33
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1210
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1211
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1211
SELECT ALL CAST ( NULL AS REAL ) AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL 25 * - + SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
-4875

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 25 * - + SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
-4875

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT col0 * col1 DIV - ( + col1 ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1217
SELECT col0 * col1 / - ( + col1 ) FROM tab1 AS cor0
----
-51
-85
-91

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

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

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

query I rowsort
SELECT - col1 + - 88 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - + 60 AND + + col0 * + + col1 / - col0 + - + 19
----
-102
-135
-93

query I rowsort
SELECT ALL + col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT 56 AS col1, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 / col0 * + - col2 BETWEEN - 75 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23, - 43 col2 FROM tab0
----
23
-43
23
-43
23
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL MAX( ALL 39 ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL MAX ( ALL 39 ) AS col0 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT + COUNT( * ) col0, + COUNT( * ) FROM tab2
----
3
3

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

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

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

query I rowsort
SELECT ALL + 30 + - 81 AS col1 FROM tab0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL - 86 * - SUM( - + 47 ) AS col1 FROM tab0
----
-12126

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - 86 * - SUM ( - + 47 ) AS col1 FROM tab0
----
-12126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1231
SELECT ALL + 77 * col2 * - 66 AS col1, CAST( ( + col1 ) AS SIGNED ) FROM tab1 cor0
----
-299838
5
-345576
47
-487872
14

skipif mysql # not compatible
query II rowsort label-1231
SELECT ALL + 77 * col2 * - 66 AS col1, CAST ( ( + col1 ) AS INTEGER ) FROM tab1 cor0
----
-299838
5
-345576
47
-487872
14

query I rowsort
SELECT DISTINCT + + 24 + - col1 FROM tab1 AS cor0
----
-23
10
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1233
SELECT ALL - MIN( ALL - CAST( NULL AS SIGNED ) ) + - 97 - COUNT( * ) / MAX( - 80 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1233
SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 97 - COUNT ( * ) / MAX ( - 80 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - 94 * - + COUNT( col1 ) + - COUNT( * ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-1234
SELECT - 94 * - + COUNT ( col1 ) + - COUNT ( * ) FROM tab2
----
279

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT DISTINCT + - 96 * - col2 + + + 19 * - CAST( 21 AS SIGNED ) + - 96 AS col2 FROM tab0 cor0
----
4017
465
9009

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT + - 96 * - col2 + + + 19 * - CAST ( 21 AS INTEGER ) + - 96 AS col2 FROM tab0 cor0
----
4017
465
9009

query I rowsort
SELECT DISTINCT + ( - col2 ) + + + col2 FROM tab2 AS cor0
----
0

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

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

query II rowsort
SELECT ALL - col1 + 8, + col2 AS col2 FROM tab1 AS cor0
----
-39
68
-6
96
3
59

query I rowsort
SELECT + col1 - - + col2 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT - col1 * col2 - - 95 AS col1 FROM tab2
----
-1078
-2985
-3791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + + 7 * + ( - - col1 ) col2 FROM tab2
----
386
498
568

query I rowsort
SELECT col1 * 6 + 41 FROM tab1
----
125
323
71

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

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

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

query II rowsort
SELECT ALL 41 * + - 73, - col2 AS col1 FROM tab2 AS cor0 WHERE - 96 + - col2 IS NOT NULL
----
-2993
-23
-2993
-40
-2993
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - SUM( ALL 83 ) FROM tab1 WHERE NOT 7 NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT - SUM ( ALL 83 ) FROM tab1 WHERE NOT 7 NOT BETWEEN col2 AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL - 54 * - - col0 - - - col0 AS col2 FROM tab1 AS cor0
----
-2805
-4675
-5005

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1254
SELECT ALL 88 * + CAST ( NULL AS INTEGER ) * + + 6 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 2 FROM tab2 cor0 WHERE NOT + col0 IN ( col0 )
----

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1258
SELECT DISTINCT - ( - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - ( - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - SUM( - col2 ) * + COUNT( * ) * + COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
1404

skipif mysql # not compatible
query I rowsort label-1259
SELECT - SUM ( - col2 ) * + COUNT ( * ) * + COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
1404

query I rowsort
SELECT - 40 + - - 56 FROM tab2
----
16
16
16

query I rowsort
SELECT col2 + 9 FROM tab1
----
105
68
77

query I rowsort
SELECT ALL 28 + - ( + 52 ) FROM tab2 AS cor0
----
-24
-24
-24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <> ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1264
SELECT col0 + col2 * - ( col0 ) + + + col1 DIV - - col0, col2 AS col1 FROM tab1
----
-4845
96
-4930
59
-6097
68

skipif mysql # not compatible
query II rowsort label-1264
SELECT col0 + col2 * - ( col0 ) + + + col1 / - - col0, col2 AS col1 FROM tab1
----
-4845
96
-4930
59
-6097
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT - col1 + col2 DIV + col1 FROM tab1 cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-1266
SELECT - col1 + col2 / + col1 FROM tab1 cor0
----
-46
-8
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT + 84 + 31 + + 87 AS col1, + COUNT( * ) * - 78 FROM tab2 AS cor0
----
202
-234

skipif mysql # not compatible
query II rowsort label-1267
SELECT + 84 + 31 + + 87 AS col1, + COUNT ( * ) * - 78 FROM tab2 AS cor0
----
202
-234

query I rowsort
SELECT DISTINCT + 26 + + col1 + 38 AS col0 FROM tab0 AS cor0
----
145
65
85

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

query I rowsort
SELECT ALL 60 + - col0 AS col1 FROM tab2 AS cor0
----
-15
-4
14

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT + - 31, SUM( ALL 81 ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-31
243

skipif mysql # not compatible
query II rowsort label-1272
SELECT + - 31, SUM ( ALL 81 ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-31
243

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

query I rowsort
SELECT DISTINCT + 19 - - col2 * col2 FROM tab0
----
119
2228
9820

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 33 NOT BETWEEN + - col1 * + col2 / - - col0 * + + ( - 71 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT DISTINCT CAST( - - col2 AS SIGNED ) - col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + ( + - col2 ) * + 62 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT col1 * + + col2 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT - 45 * - + col2 FROM tab0
----
2115
4455
450

query I rowsort
SELECT ALL col0 * - - 26 AS col0 FROM tab0
----
2262
2522
390

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1281
SELECT CAST( NULL AS DECIMAL ) * CAST( 95 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT CAST ( NULL AS REAL ) * CAST ( 95 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT - MIN( ALL 55 ) DIV + MAX( - 14 ) + - 86 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-1282
SELECT - MIN ( ALL 55 ) / + MAX ( - 14 ) + - 86 FROM tab2
----
-83

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + SUM ( + col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT SUM( - 98 ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT SUM ( - 98 ) FROM tab1
----
-294

query I rowsort
SELECT ALL - 65 FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT MIN( - 54 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT MIN ( - 54 ) FROM tab2 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT + + 28 * col2 DIV + ( 48 ) FROM tab0 cor0
----
27
5
57

skipif mysql # not compatible
query I rowsort label-1289
SELECT + + 28 * col2 / + ( 48 ) FROM tab0 cor0
----
27
5
57

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

query I rowsort
SELECT col1 * 53 FROM tab0
----
1113
4293
53

query I rowsort
SELECT - col1 * - - ( + 21 ) AS col2 FROM tab2
----
-1071
-1407
-1617

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL > - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT ALL - 3 * - + col0 DIV + - col1 AS col2 FROM tab0
----
-12
-291
0

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - 3 * - + col0 / + - col1 AS col2 FROM tab0
----
-12
-291
0

query II rowsort
SELECT DISTINCT col1 * - col2, - 83 AS col1 FROM tab1
----
-1344
-83
-295
-83
-3196
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - COUNT( * ) * - + 50 * - - 98 col2 FROM tab2
----
14700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1296
SELECT - COUNT ( * ) * - + 50 * - - 98 col2 FROM tab2
----
14700

query II rowsort
SELECT ALL + + col2 AS col2, 95 FROM tab0 cor0 WHERE - col2 <> + 6
----
10
95
47
95
99
95

query I rowsort
SELECT ALL + col1 + 69 * 97 FROM tab0 AS cor0
----
6694
6714
6774

query I rowsort
SELECT DISTINCT 7 + - col0 AS col1 FROM tab2 AS cor0
----
-39
-57
-68

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

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

query I rowsort
SELECT ALL - col0 * col2 * - col1 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT + 46 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT - COUNT( * ) * - 93 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT - COUNT ( * ) * - 93 FROM tab1
----
279

query I rowsort
SELECT DISTINCT + 98 + - col0 AS col2 FROM tab2
----
23
34
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT ALL + - ( - 34 ) DIV - ( - col2 ) FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + - ( - 34 ) / - ( - col2 ) FROM tab0 AS cor0
----
0
0
3

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

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

query I rowsort
SELECT + + col1 * + col0 + - col0 - + 90 AS col1 FROM tab2 cor0
----
2210
4774
4860

query I rowsort
SELECT DISTINCT + + col1 + 58 + - 44 + + + col1 FROM tab0 AS cor0
----
16
176
56

query I rowsort
SELECT + - 80 * + col0 + + 58 + - 63 - + 16 FROM tab2 AS cor0
----
-3701
-5141
-6021

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT - col2 - - + col0 * col0 DIV + - col1 FROM tab1 AS cor0
----
-1504
-244
-281

skipif mysql # not compatible
query I rowsort label-1311
SELECT - col2 - - + col0 * col0 / + - col1 FROM tab1 AS cor0
----
-1504
-244
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT - 23 + COUNT( * ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1312
SELECT - 23 + COUNT ( * ) AS col0 FROM tab2
----
-20

query I rowsort
SELECT ALL ( + 97 ) - 25 AS col0 FROM tab1
----
72
72
72

query I rowsort
SELECT DISTINCT - 9 * + col1 FROM tab1
----
-126
-423
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1315
SELECT ALL + COUNT( * ) DIV - MAX( - 63 ), - SUM( DISTINCT + 84 ) AS col1 FROM tab0
----
0
-84

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL + COUNT ( * ) / - MAX ( - 63 ), - SUM ( DISTINCT + 84 ) AS col1 FROM tab0
----
0
-84

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

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT 70 * - + COUNT ( * ) / COUNT ( * ) FROM tab2
----
-70

query I rowsort
SELECT ALL - col1 * 96 FROM tab0
----
-2016
-7776
-96

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

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

query II rowsort
SELECT DISTINCT ( - col0 ) * + 98 AS col0, col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1470
62
-8526
97
-9506
196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 51 * - - col2 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1321
SELECT + MAX ( DISTINCT col1 ) col0 FROM tab0
----
81

query I rowsort
SELECT + + 4 * - 97 * - + col1 FROM tab2 AS cor0
----
19788
25996
29876

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT col2 DIV + + col1 + + 93 AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT col2 / + + col1 + + 93 AS col1 FROM tab2 AS cor0
----
93

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

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

query I rowsort
SELECT DISTINCT - 45 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
-17
-35
49

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

query II rowsort
SELECT + 24 * - col2 AS col2, 63 * + - 81 FROM tab0 AS cor0
----
-1128
-5103
-2376
-5103
-240
-5103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT - col1 + + 72 AS col2 FROM tab0 AS cor0
----
-9
51
71

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + 35
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1335
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT CAST( SUM( - 20 ) AS SIGNED ) AS col1 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT CAST ( SUM ( - 20 ) AS INTEGER ) AS col1 FROM tab2
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-1337
SELECT col2 + + col2 * col2 AS col2, col1 DIV ( - 10 ) col1 FROM tab1
----
3540
0
4692
-4
9312
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1337
SELECT col2 + + col2 * col2 AS col2, col1 / ( - 10 ) col1 FROM tab1
----
3540
0
4692
-4
9312
-1

query I rowsort
SELECT ALL ( + col2 ) + + col1 AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT - - SUM( DISTINCT 88 ) AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT - - SUM ( DISTINCT 88 ) AS col1 FROM tab0 AS cor0
----
88

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT ALL 63 DIV col2 + - + col2 * + - 21 AS col0 FROM tab2 AS cor0
----
1219
485
841

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL 63 / col2 + - + col2 * + - 21 AS col0 FROM tab2 AS cor0
----
1219
485
841

query I rowsort
SELECT - + col0 * - + 71 + + - ( 50 ) FROM tab2 AS cor0
----
3216
4494
5275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT 91 / CAST( NULL AS SIGNED ) + - + 30 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT 91 / CAST ( NULL AS INTEGER ) + - + 30 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + + 54 * - + col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * + - 90 * + - 92 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT 91 * - - col1 FROM tab0
----
1911
7371
91

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + 17 col1 FROM tab2
----
85
85
85

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

query I rowsort
SELECT 86 * col0 * - - col0 * 11 FROM tab2 AS cor0 WHERE NULL = + 13 + col1
----

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

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

query I rowsort
SELECT ALL - 59 + - 42 FROM tab1 AS cor0
----
-101
-101
-101

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 40 * - 42 * 48 FROM tab2
----
-80640

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT + 77 * COUNT( * ) AS col1 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-1361
SELECT + 77 * COUNT ( * ) AS col1 FROM tab0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1362
SELECT ALL col1 / CAST( NULL AS SIGNED ) col2, - col2 * col1 AS col2 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1362
SELECT ALL col1 / CAST ( NULL AS INTEGER ) col2, - col2 * col1 AS col2 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT 46 * + MIN( + col2 ) AS col2 FROM tab1
----
2714

skipif mysql # not compatible
query I rowsort label-1363
SELECT 46 * + MIN ( + col2 ) AS col2 FROM tab1
----
2714

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT + 4 DIV + - col2 * col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1364
SELECT + 4 / + - col2 * col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * + col2 * - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT MAX( + col0 ) DIV - COUNT( * ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1366
SELECT MAX ( + col0 ) / - COUNT ( * ) AS col2 FROM tab0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab2 WHERE NOT - 70 < col2
----

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

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

query I rowsort
SELECT DISTINCT + col2 + + ( + + col1 ) FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 42 >= + 83
----

query I rowsort
SELECT 42 + col1 AS col0 FROM tab1 AS cor0
----
47
56
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT MIN( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 72 + - col0 * - - col2 + + 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1379
SELECT + 41 AS col1, col2 + + col1 + - 65 + + col1 DIV + col2 FROM tab1
----
41
-1
41
45
41
50

skipif mysql # not compatible
query II rowsort label-1379
SELECT + 41 AS col1, col2 + + col1 + - 65 + + col1 / + col2 FROM tab1
----
41
-1
41
45
41
50

query I rowsort
SELECT ALL + col0 * - 82 FROM tab0
----
-1230
-7134
-7954

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1383
SELECT ALL 21, SUM( - ( 58 ) ) AS col1 FROM tab1
----
21
-174

skipif mysql # not compatible
query II rowsort label-1383
SELECT ALL 21, SUM ( - ( 58 ) ) AS col1 FROM tab1
----
21
-174

query I rowsort
SELECT + 82 * 91 AS col2 FROM tab2
----
7462
7462
7462

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT 57, - 22 * + MIN( ALL - 56 ) AS col1 FROM tab0 AS cor0
----
57
1232

skipif mysql # not compatible
query II rowsort label-1385
SELECT 57, - 22 * + MIN ( ALL - 56 ) AS col1 FROM tab0 AS cor0
----
57
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + - COUNT( * ) * - 64 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1386
SELECT + - COUNT ( * ) * - 64 FROM tab0 AS cor0
----
192

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 76 * col2 - - + col2 + + - ( col2 ) ) = col1
----

query II rowsort
SELECT DISTINCT + col1 * + col0 * 80 AS col0, - 92 * + 47 AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT 10 + - col0 AS col0 FROM tab2 AS cor0
----
-36
-54
-65

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

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

query I rowsort
SELECT - ( 19 ) + - 50 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - + 31 + + col0 * 53 AS col0 FROM tab0 cor0
----
4580
5110
764

query I rowsort
SELECT col1 * - ( + ( + - ( - 91 ) ) ) * col0 + + col0 FROM tab1 AS cor0
----
-38590
-389116
-64923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1395
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0, 45 AS col1 FROM tab0 AS cor0
----
NULL
45
NULL
45
NULL
45

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0, 45 AS col1 FROM tab0 AS cor0
----
NULL
45
NULL
45
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT 85 + - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT 85 + - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + col2 ) IS NULL
----

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

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

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

query I rowsort
SELECT ALL 74 + 8 AS col0 FROM tab1 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + + col2 col1 FROM tab0
----
752
880
9702

onlyif mysql # DIV for integer division: 
query II rowsort label-1402
SELECT 95 DIV - col2 + + col1, col1 + col0 AS col0 FROM tab0
----
1
98
12
108
79
96

skipif mysql # not compatible
query II rowsort label-1402
SELECT 95 / - col2 + + col1, col1 + col0 AS col0 FROM tab0
----
1
98
12
108
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT MAX( DISTINCT - + 71 ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-1403
SELECT MAX ( DISTINCT - + 71 ) AS col2 FROM tab1
----
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT SUM( + - 21 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1405
SELECT SUM ( + - 21 ) FROM tab0
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-1406
SELECT col0 col1, - 42 DIV - col0 * - col0 * + - col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1406
SELECT col0 col1, - 42 / - col0 * - col0 * + - col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT - + col2 + - 2 * - + col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT CAST( NULL AS SIGNED ) - MIN( + 22 ) AS col0 FROM tab1 AS cor0 WHERE 2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT CAST ( NULL AS INTEGER ) - MIN ( + 22 ) AS col0 FROM tab1 AS cor0 WHERE 2 IS NULL
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 + - ( col1 - 62 ) * + ( - col2 * col1 ) AS col0 FROM tab0
----
-6038
-8589
72414

query I rowsort
SELECT ( - ( col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - COUNT( * ) col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2
----
56
56
56

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

query I rowsort
SELECT - col0 * + col1 + + col2 FROM tab2
----
-2323
-4888
-4967

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

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

query I rowsort
SELECT + col1 + 57 AS col2 FROM tab1
----
104
62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT - COUNT( * ) + 74 * 82 FROM tab2
----
6065

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT - COUNT ( * ) + 74 * 82 FROM tab2
----
6065

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 25 * + 31 + col1 FROM tab2 WHERE NULL IS NULL
----
-698
-708
-724

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 96 col2 FROM tab2
----
119
136
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ( SUM( - 95 ) ) FROM tab1 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-1425
SELECT ( SUM ( - 95 ) ) FROM tab1 cor0
----
-285

query I rowsort
SELECT + 98 * 31 FROM tab0 AS cor0
----
3038
3038
3038

query I rowsort
SELECT ALL 56 * - col2 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-230
1102
320

query III rowsort
SELECT * FROM tab1 WHERE ( - ( ( ( - 8 ) ) ) ) = + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT COUNT( * ) * - 37 + + COUNT( * ) AS col0 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-1430
SELECT COUNT ( * ) * - 37 + + COUNT ( * ) AS col0 FROM tab1
----
-108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 50 BETWEEN col2 / 27 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT + col2 * + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + col2 * + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-1173
-3080
-3886

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

query I rowsort
SELECT ALL ( col0 ) / ( + 39 ) AS col1 FROM tab2 AS cor0 WHERE col0 BETWEEN col0 AND 29
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT ( + COUNT( * ) ) DIV - 11 + - 41 FROM tab0 AS cor0 WHERE 68 + col2 IS NOT NULL
----
-41

skipif mysql # not compatible
query I rowsort label-1435
SELECT ( + COUNT ( * ) ) / - 11 + - 41 FROM tab0 AS cor0 WHERE 68 + col2 IS NOT NULL
----
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT 15 * + 69 + COUNT( * ) FROM tab1 cor0
----
1038

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT 15 * + 69 + COUNT ( * ) FROM tab1 cor0
----
1038

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1439
SELECT ALL + 19 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + 19 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1440
SELECT DISTINCT - + col0 * - col0 + CAST( + col0 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-990
5742
9312

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - + col0 * - col0 + CAST ( + col0 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-990
5742
9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT ALL 54 FROM tab0 AS cor0 WHERE NULL IN ( - col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL 54 FROM tab0 AS cor0 WHERE NULL IN ( - col0 * CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT + + col0 - 53 AS col2 FROM tab1 AS cor0
----
-2
32
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + MAX( - 94 ) * 82 - + COUNT( * ) AS col2 FROM tab1
----
-7711

skipif mysql # not compatible
query I rowsort label-1444
SELECT + MAX ( - 94 ) * 82 - + COUNT ( * ) AS col2 FROM tab1
----
-7711

query I rowsort
SELECT ALL col1 - - + 66 * col1 FROM tab1
----
3149
335
938

query I rowsort
SELECT ALL AVG ( ALL - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + - 83 FROM tab2
----
3818
5312
6225

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 <> ( 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT - 63 * + COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - 63 * + COUNT ( * ) FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL + COUNT( DISTINCT col1 ) * + 48 AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL + COUNT ( DISTINCT col1 ) * + 48 AS col0 FROM tab1
----
144

query I rowsort
SELECT DISTINCT - 19 * col1 AS col0 FROM tab1
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT MIN( ALL col1 ) FROM tab0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT MIN ( ALL col1 ) FROM tab0 WHERE ( NULL ) > NULL
----
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col2 IN ( - col1 * 37 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT ALL + MAX( - 23 ) DIV - COUNT( * ) col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1454
SELECT ALL + MAX ( - 23 ) / - COUNT ( * ) col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE col2 IN ( col1 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT - col1 DIV 86 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - col1 / 86 AS col0 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 98 >= + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 72 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-1702
-2944
-4251

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - - 59, col2 AS col0 FROM tab2 AS cor0
----
59
23
59
40
59
58

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

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

query I rowsort
SELECT col1 * ( 73 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 91 ) * 68 <> ( + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1472
SELECT + CAST( NULL AS DECIMAL ) / 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT + CAST ( NULL AS REAL ) / 24 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL 23 * + - col0 * col1 AS col2 FROM tab2
----
-113344
-115575
-53958

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 10 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT SUM( - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT SUM ( - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT + 36 + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT + 36 + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 + 73 ) NOT IN ( col2 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT + col2 DIV + 80 + - 48 AS col0 FROM tab1
----
-47
-48
-48

skipif mysql # not compatible
query I rowsort label-1483
SELECT + col2 / + 80 + - 48 AS col0 FROM tab1
----
-47
-48
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1487
SELECT DISTINCT - - col0 / 48 * + col0 + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT - - col0 / 48 * + col0 + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - - COUNT( * ) + + 17 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1488
SELECT - - COUNT ( * ) + + 17 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL + col2 + 8 AS col2 FROM tab2 AS cor0
----
31
48
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 37 + + col2 col2 FROM tab2 AS cor0
----
60
77
95

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

query I rowsort
SELECT DISTINCT + 93 + - col2 FROM tab1 cor0
----
-3
25
34

query I rowsort
SELECT - col1 + + + 11 AS col0 FROM tab0 cor0
----
-10
-70
10

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 70 - col1 - - 57 * - + col0 FROM tab1
----
-474
-720
3799

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + 81 * - - COUNT( DISTINCT - col1 ) * - COUNT( col0 ) AS col0 FROM tab2
----
-729

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 81 * - - COUNT ( DISTINCT - col1 ) * - COUNT ( col0 ) AS col0 FROM tab2
----
-729

query I rowsort
SELECT DISTINCT 60 * + col2 AS col0 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT 66 AS col0 FROM tab2 WHERE ( + + col2 * - 45 * + 70 * - 49 / col1 + + col2 ) IS NOT NULL
----
66
66
66

query I rowsort
SELECT - 47 - col2 AS col2 FROM tab0
----
-146
-57
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab1 WHERE NOT ( - col1 * + 57 + + + col2 * col1 ) NOT BETWEEN ( + col1 * - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - col0 FROM tab2
----
2116
4096
5625

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( col2 / + 79 * 71 ) < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT DISTINCT - 99 DIV - col0 AS col1 FROM tab0 WHERE - 83 * 8 + - col2 + - 14 NOT IN ( + 90 * + 32 )
----
1
6

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT - 99 / - col0 AS col1 FROM tab0 WHERE - 83 * 8 + - col2 + - 14 NOT IN ( + 90 * + 32 )
----
1
6

query I rowsort
SELECT 53 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 2 * - col2 col0 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( NULL ) BETWEEN ( 16 ) AND ( NULL ) )
----

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

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

query I rowsort
SELECT + col0 * - - col0 + - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - MAX( - - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1514
SELECT - MAX ( - - col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL 0 * + + col1 + - col2 + + ( + 52 ) * 68 AS col2 FROM tab0 cor0
----
3437
3489
3526

query I rowsort
SELECT DISTINCT - + 3 + col1 + + 17 FROM tab2 AS cor0
----
65
81
91

query I rowsort
SELECT col0 / 47 FROM tab0 AS cor0 WHERE NULL < 28 / col2 + - + 54
----

query II rowsort
SELECT ALL - col1, - col2 AS col1 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT ALL + col0 * - - 81 + - - col1 + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
4255
6954
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT DISTINCT - + SUM( - col0 ) + + COUNT( * ) * COUNT( * ) + - - 17 FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - + SUM ( - col0 ) + + COUNT ( * ) * COUNT ( * ) + - - 17 FROM tab0 cor0
----
225

query I rowsort
SELECT - col1 * + 77 * - ( + col0 ) FROM tab0 cor0
----
140679
7469
93555

query I rowsort
SELECT - 22 - - 36 AS col0 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT 93 + - COUNT( * ) DIV 71 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 93 + - COUNT ( * ) / 71 FROM tab2 AS cor0
----
93

query II rowsort
SELECT ALL - 46 + + col2, col0 FROM tab2 AS cor0
----
-23
46
-6
64
12
75

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

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

query I rowsort
SELECT DISTINCT col1 + + 14 FROM tab1 AS cor0
----
19
28
61

query I rowsort
SELECT ( - col2 ) - - 17 AS col2 FROM tab2 AS cor0
----
-23
-41
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + SUM( - - ( - col1 ) ) - + 31 FROM tab2 cor0
----
-226

skipif mysql # not compatible
query I rowsort label-1528
SELECT + SUM ( - - ( - col1 ) ) - + 31 FROM tab2 cor0
----
-226

query I rowsort
SELECT - 39 + - col1 AS col2 FROM tab0
----
-120
-40
-60

query II rowsort
SELECT + col0 AS col1, + col0 + - - col2 AS col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col1 - + col2 + + 73 FROM tab2
----
101
110
82

query I rowsort
SELECT ( col1 ) + - + col2 AS col0 FROM tab0
----
-98
11
34

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

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

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

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

query I rowsort
SELECT ALL - col2 * 4 FROM tab0 WHERE NOT + col0 + + - 72 + + + col1 * - - col1 = - - col1 * + + col2
----
-188
-396
-40

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - col2 * - + col1 + + col1 col0 FROM tab2 AS cor0
----
-147763
-186461
-56253

query I rowsort
SELECT DISTINCT - 32 * + 94 AS col1 FROM tab1 AS cor0
----
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT SUM( 33 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1540
SELECT DISTINCT SUM ( 33 ) col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + 45 + + 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55

query I rowsort
SELECT DISTINCT + + 31 + + col0 FROM tab2 AS cor0
----
106
77
95

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

query I rowsort
SELECT 93 AS col2 FROM tab2 cor0
----
93
93
93

query II rowsort
SELECT ALL + 87 AS col2, 97 FROM tab1 AS cor0
----
87
97
87
97
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - + SUM( - 71 ) AS col2 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1546
SELECT - + SUM ( - 71 ) AS col2 FROM tab0 AS cor0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT col2 + - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) + - col0 IN ( col0 )
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1547
SELECT col2 + - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) + - col0 IN ( col0 )
----
116
46
80

query I rowsort
SELECT DISTINCT 3 * + - 61 AS col1 FROM tab0 AS cor0
----
-183

query I rowsort
SELECT + col2 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT ALL - col1 * - col2 * 68 FROM tab2
----
209440
264248
79764

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL > - + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL - COUNT( 37 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - COUNT ( 37 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT - 27 DIV - col0 + - 84 AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - 27 / - col0 + - 84 AS col1 FROM tab2 AS cor0
----
-84

query II rowsort
SELECT 3 AS col2, - col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + 69 - + 24 AS col1 FROM tab0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT ALL - col2 * col0 - + - col0 DIV + - col2 FROM tab2
----
-1060
-2561
-4351

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL - col2 * col0 - + - col0 / + - col2 FROM tab2
----
-1060
-2561
-4351

query III rowsort
SELECT * FROM tab1 WHERE - + col2 <= - col0 * + col1 + + 52 + + + col1 + - col2 * 87
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT + col2 + - 18 * + CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-391
-680
-986

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1560
SELECT DISTINCT + col2 + - 18 * + CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-391
-680
-986

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

query I rowsort
SELECT ALL col0 - - + col0 AS col2 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT + col0 * + 84 FROM tab1 cor0
----
4284
7140
7644

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT ALL + - col1 + 93 DIV - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + - col1 + 93 / - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT ALL + ( + + col2 ) - + - 42 + col1 FROM tab1
----
106
152
157

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

query II rowsort
SELECT col1 * - - 63, col1 AS col0 FROM tab2
----
3213
51
4221
67
4851
77

query I rowsort
SELECT ALL - col0 * - + col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col2 * - + 67 AS col1 FROM tab0
----
-3149
-6633
-670

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1573
SELECT 98 + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT MIN( DISTINCT col2 ) col2 FROM tab2
----
23

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

query I rowsort
SELECT ALL + col2 * - 35 FROM tab2 AS cor0
----
-1400
-2030
-805

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

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

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

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

query I rowsort
SELECT ALL + - col0 * - + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT 47 DIV - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT 47 / - col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT + 6 * - 26 AS col0 FROM tab1
----
-156
-156
-156

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1583
SELECT 88 DIV + 31, 20 AS col2 FROM tab0
----
2
20
2
20
2
20

skipif mysql # not compatible
query II rowsort label-1583
SELECT 88 / + 31, 20 AS col2 FROM tab0
----
2
20
2
20
2
20

query I rowsort
SELECT + col0 + 98 FROM tab2
----
144
162
173

query II rowsort
SELECT ALL + 19, col1 + + + col0 AS col0 FROM tab0
----
19
108
19
96
19
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT IN ( col2, 80 ) )
----

query I rowsort
SELECT DISTINCT + ( - ( + 96 ) ) + 87 - col0 FROM tab2 cor0
----
-55
-73
-84

query I rowsort
SELECT ALL + + 13 + + 13 AS col2 FROM tab1 cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT ALL + CAST( col0 AS SIGNED ) + 59 + + col0 AS col0 FROM tab0
----
233
253
89

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL + CAST ( col0 AS INTEGER ) + 59 + + col0 AS col0 FROM tab0
----
233
253
89

query I rowsort
SELECT ALL 74 + col2 FROM tab0 AS cor0
----
121
173
84

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT DISTINCT + 6 DIV - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + 6 / - COUNT ( * ) FROM tab2 AS cor0
----
-2

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

skipif mysql # not compatible
query I rowsort label-1596
SELECT - CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + ( - + 94 ) FROM tab0 AS cor0
----
-94

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1599
SELECT DISTINCT COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
9

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1602
SELECT + 60, col0 AS col2 FROM tab1 WHERE NOT + col2 + + + col2 BETWEEN - CAST( + - col2 AS SIGNED ) + - col2 AND NULL
----

skipif mysql # not compatible
query II rowsort label-1602
SELECT + 60, col0 AS col2 FROM tab1 WHERE NOT + col2 + + + col2 BETWEEN - CAST ( + - col2 AS INTEGER ) + - col2 AND NULL
----

query I rowsort
SELECT + 54 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) + + col0 FROM tab1 AS cor0 WHERE - 40 <= 72
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) + + col0 FROM tab1 AS cor0 WHERE - 40 <= 72
----
37
44
80

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

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

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

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

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

query I rowsort
SELECT - 84 * + + col0 AS col0 FROM tab0 AS cor0
----
-1260
-7308
-8148

query I rowsort
SELECT ALL 37 + - - col1 + - + col1 FROM tab1
----
37
37
37

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

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

query I rowsort
SELECT DISTINCT col2 * - col2 + + + 0 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - COUNT( * ) + + - 10 AS col2 FROM tab0 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1614
SELECT - COUNT ( * ) + + - 10 AS col2 FROM tab0 cor0
----
-13

query II rowsort
SELECT - 29 AS col0, ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT - col1 + - + 80 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-1616
SELECT - col1 + - + 80 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - + col1 * - col1 + + + col0 AS col1 FROM tab1 AS cor0
----
110
2300
247

query I rowsort
SELECT + col0 * 74 + - col0 AS col1 FROM tab2 AS cor0
----
3358
4672
5475

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

query I rowsort
SELECT + col2 + + 37 FROM tab1
----
105
133
96

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

skipif mysql # not compatible
query II rowsort label-1621
SELECT DISTINCT + col0 AS col1, CAST ( col0 AS INTEGER ) FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 4 * + COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 4 * + COUNT ( * ) AS col0 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT MIN( ALL - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1623
SELECT MIN ( ALL - col1 ) FROM tab1
----
-47

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + 69 FROM tab2 AS cor0
----
-1104
-3011
-3817

query I rowsort
SELECT + 76 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT + + col1 + + 20 + + + col1 DIV 81 AS col1 FROM tab2 AS cor0
----
71
87
97

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + + col1 + + 20 + + + col1 / 81 AS col1 FROM tab2 AS cor0
----
71
87
97

query I rowsort
SELECT DISTINCT - + col2 + + 20 FROM tab1 AS cor0
----
-39
-48
-76

query I rowsort
SELECT ALL - 74 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query III rowsort
SELECT * FROM tab0 WHERE ( ( - col2 ) BETWEEN - col2 + - + col2 * - + col1 * + col0 * + 61 AND - 38 + + 83 )
----

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

query II rowsort
SELECT DISTINCT 95 AS col2, col0 * - col2 * - col1 FROM tab0
----
95
18270
95
57105
95
9603

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

query II rowsort
SELECT - - col2 * - col2 AS col0, col2 FROM tab1 AS cor0
----
-3481
59
-4624
68
-9216
96

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT col0 + - ( col0 ) IS NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL CAST ( + COUNT ( ALL + + 53 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT + + 24 * 66 * col2 FROM tab1 AS cor0
----
107712
152064
93456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1638
SELECT ALL + 40 col0, CAST( NULL AS SIGNED ) * + - col1 FROM tab1 AS cor0
----
40
NULL
40
NULL
40
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1638
SELECT ALL + 40 col0, CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 AS cor0
----
40
NULL
40
NULL
40
NULL

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1 AS cor0 WHERE col1 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + COUNT( DISTINCT - + 28 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + COUNT ( DISTINCT - + 28 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL + - 88 / + + col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 52 * + 98 * - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT + MIN( DISTINCT + col1 ) AS col2, 54 * + COUNT( * ) FROM tab0
----
1
162

skipif mysql # not compatible
query II rowsort label-1644
SELECT + MIN ( DISTINCT + col1 ) AS col2, 54 * + COUNT ( * ) FROM tab0
----
1
162

query I rowsort
SELECT - col1 + + + col1 * - 34 * + + 74 AS col2 FROM tab0
----
-203877
-2517
-52857

onlyif mysql # DIV for integer division: 
query II rowsort label-1646
SELECT DISTINCT + col1, 9 * - - col1 * ( + col0 ) - - ( col1 ) * 96 DIV - 93 FROM tab0
----
1
872
21
16422
81
10852

skipif mysql # not compatible
query II rowsort label-1646
SELECT DISTINCT + col1, 9 * - - col1 * ( + col0 ) - - ( col1 ) * 96 / - 93 FROM tab0
----
1
872
21
16422
81
10852

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 + - col2 col0 FROM tab0 AS cor0
----
-52
0
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) * - MIN( ALL 48 ) AS col0 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) * - MIN ( ALL 48 ) AS col0 FROM tab2 AS cor0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col1 + - - 20, - col2 + - col2 col2 FROM tab2 AS cor0
----
20
-116
20
-46
20
-80

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT + CAST( + 43 AS SIGNED ) FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-1656
SELECT + CAST ( + 43 AS INTEGER ) FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL 7 + - 54 AS col1 FROM tab0 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 21 + 34 col0 FROM tab0 AS cor0
----
-1667
-407
13

query II rowsort
SELECT ALL - col2 - col0 AS col0, 28 FROM tab0
----
-196
28
-62
28
-97
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 - ( + col1 ) col2 FROM tab1
----
-51
-60
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 - + col2 + + - col0 col1 FROM tab1
----
-100
-112
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 + col2 col1 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT ALL + col0 * - - col0 FROM tab0
----
225
7569
9409

query II rowsort
SELECT DISTINCT + col1 * + 40 AS col1, + col1 AS col0 FROM tab2 cor0
----
2040
51
2680
67
3080
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT COUNT( * ) + - 49 AS col2 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT COUNT ( * ) + - 49 AS col2 FROM tab0 cor0
----
-46

query I rowsort
SELECT DISTINCT - + 14 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
1044
2546
4336

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 WHERE NULL = + + col1 * + col1 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 WHERE NULL = + + col1 * + col1 + - col0
----
0

query I rowsort
SELECT DISTINCT + 27 * - col0 FROM tab2
----
-1242
-1728
-2025

query I rowsort
SELECT DISTINCT 98 * + 22 AS col1 FROM tab2
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL + + COUNT( * ) * - - 97 AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + + COUNT ( * ) * - - 97 AS col2 FROM tab1 AS cor0
----
291

query I rowsort
SELECT + 43 * - + col2 FROM tab1 AS cor0
----
-2537
-2924
-4128

query II rowsort
SELECT col2 AS col1, - col0 + - col1 FROM tab2 cor0
----
23
-97
40
-141
58
-142

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT + - COUNT( - 25 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + - COUNT ( - 25 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * + 63 AS col0 FROM tab0 AS cor0
----
1323
5103
63

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

query II rowsort
SELECT col0, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL col2 * 76 AS col2 FROM tab1
----
4484
5168
7296

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * 5 > + col0
----

query II rowsort
SELECT ALL - col0 AS col0, + 30 AS col2 FROM tab2
----
-46
30
-64
30
-75
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - + ( SUM( - 6 ) ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1682
SELECT - + ( SUM ( - 6 ) ) FROM tab0 cor0
----
18

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * + col1 col2 FROM tab2 AS cor0
----
3468
4556
5236

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

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

query I rowsort
SELECT ALL + col2 + - 62 FROM tab2 AS cor0
----
-22
-39
-4

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) >= - - 63
----

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

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + + AVG ( - CAST ( NULL AS INTEGER ) ) + - + 66 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT + col1 + + - col0 + 96 DIV + 44 AS col2 FROM tab1 AS cor0
----
-35
-42
-78

skipif mysql # not compatible
query I rowsort label-1690
SELECT + col1 + + - col0 + 96 / + 44 AS col2 FROM tab1 AS cor0
----
-35
-42
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1691
SELECT DISTINCT - - 77 + 36 AS col0, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
113
NULL

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT - - 77 + 36 AS col0, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
113
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL + CAST( NULL AS SIGNED ) + - 34 * + AVG ( ALL + col0 ) - + 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + CAST ( NULL AS INTEGER ) + - 34 * + AVG ( ALL + col0 ) - + 66 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col1 ) * - col1 + col2 > ( + ( + ( - col2 ) ) + + col1 * ( + - 14 ) )
----

query I rowsort
SELECT - + 28 + + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2629
-7253
-8309

query I rowsort
SELECT DISTINCT - col1 + col0 + + 2 AS col1 FROM tab0 AS cor0
----
-64
68
98

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

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

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

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 - - col1 * + + col1 col1 FROM tab0
----
541
8770
9802

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

query III rowsort
SELECT * FROM tab0 WHERE + 45 NOT BETWEEN - col0 + col1 / + ( - 50 ) AND - - 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 12 AS col2, 40 * 29 * + 56 FROM tab0
----
12
64960
12
64960
12
64960

query I rowsort
SELECT DISTINCT - + col0 * 68 + + col2 AS col0 FROM tab2 WHERE NOT + + col2 = - col2
----
-3105
-4312
-5042

query I rowsort
SELECT DISTINCT col1 - - 2 * - + col1 * 71 * + col0 FROM tab2
----
-333081
-699699
-713483

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT COUNT( * ) * - 8 col0 FROM tab2
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1706
SELECT COUNT ( * ) * - 8 col0 FROM tab2
----
-24

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 26 AS col0, ( + - ( - col0 ) ) * + + col0 * - - col1 AS col2 FROM tab0 AS cor0
----
-26
158949
-26
18225
-26
9409

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * - col1 + + + 82 IS NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT + MAX ( DISTINCT - col1 ) FROM tab2
----
-51

query II rowsort
SELECT + col0 * - + 89, + col1 FROM tab2
----
-4094
51
-5696
77
-6675
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + 97 / col1 < col2 + 71 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-1716
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 97 / col1 < col2 + 71 * + 23
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + - col0 <> col0
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + 41 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 33 + col0 * - - col2 AND ( NULL )
----

query I rowsort
SELECT ALL - + col0 * col1 AS col2 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT + 2 * col0 AS col1 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab0 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - 20 * - COUNT( - 59 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 20 * - COUNT ( - 59 ) FROM tab0
----
60

query I rowsort
SELECT ALL - col2 * + 71 FROM tab0
----
-3337
-7029
-710

onlyif mysql # DIV for integer division: 
query II rowsort label-1726
SELECT ALL col1 AS col1, col2 DIV + 29 FROM tab1
----
14
3
47
2
5
2

skipif mysql # not compatible
query II rowsort label-1726
SELECT ALL col1 AS col1, col2 / + 29 FROM tab1
----
14
3
47
2
5
2

query II rowsort
SELECT - 2 AS col2, col2 * + col2 FROM tab2
----
-2
1600
-2
3364
-2
529

query I rowsort
SELECT ALL + ( - 65 ) AS col1 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT + col1 + - - 93 FROM tab2 AS cor0
----
144
160
170

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 95, + 44 col0 FROM tab1 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col0 + - col0 FROM tab0
----
675
696
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL - 91 + - ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT ALL - 91 + - ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL + col0 * col1 FROM tab0 AS cor0 WHERE ( - - col1 * + col1 + - + col0 IS NULL )
----

query II rowsort
SELECT ALL col1 - - col1 AS col0, + col2 * col2 FROM tab0 AS cor0
----
162
2209
2
9801
42
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1736
SELECT ALL + + 64, - MAX( - + 94 ) col0 FROM tab2 AS cor0
----
64
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1736
SELECT ALL + + 64, - MAX ( - + 94 ) col0 FROM tab2 AS cor0
----
64
94

query I rowsort
SELECT col0 - + - ( + - 72 ) AS col0 FROM tab2 AS cor0
----
-26
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT - COUNT( * ) * - - 91 - - 31 FROM tab2
----
-242

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - COUNT ( * ) * - - 91 - - 31 FROM tab2
----
-242

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

query I rowsort
SELECT ALL 3 * + col2 - + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT col1 * - - col1 * - + col0 + + col2 FROM tab0
----
-38357
-98368
2

query I rowsort
SELECT ALL - col1 + col0 FROM tab1 WHERE NOT + col1 BETWEEN + 59 + + 34 - - 73 AND - col0 + - - 71
----
37
44
80

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

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 79 * + col0 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT 30 * + CAST( - - AVG ( - 7 ) AS SIGNED ) + + - 47 AS col2 FROM tab2 AS cor0
----
-257

skipif mysql # not compatible
query I rowsort label-1745
SELECT 30 * + CAST ( - - AVG ( - 7 ) AS INTEGER ) + + - 47 AS col2 FROM tab2 AS cor0
----
-257

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

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

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

query I rowsort
SELECT ( - + 94 ) FROM tab2
----
-94
-94
-94

query I rowsort
SELECT 37 AS col1 FROM tab2 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - 84 * - MIN( - col0 ) FROM tab1 cor0
----
-7644

skipif mysql # not compatible
query I rowsort label-1750
SELECT - 84 * - MIN ( - col0 ) FROM tab1 cor0
----
-7644

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

query I rowsort
SELECT col2 * col0 + - ( col0 ) + - ( col2 ) * + + col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1753
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab2 AS cor0 WHERE NOT - col0 = + + 91
----
17
23
24

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

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

query I rowsort
SELECT ALL col0 * - + col0 + - col0 * + 91 - + col1 AS col2 FROM tab2 AS cor0
----
-12517
-6353
-9997

query I rowsort
SELECT 88 * - 3 * + col0 * 6 FROM tab2 AS cor0
----
-101376
-118800
-72864

query I rowsort
SELECT 2 + + 33 * 86 FROM tab0
----
2840
2840
2840

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

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

skipif mysql # not compatible
query III rowsort label-1760
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) * 12 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 * + - 25 * - - 53 + + col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-107310
15
-1228
97
-27738
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col0 < NULL
----

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

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + + col2 * + 93 FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT 98 + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
539
6659
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + - - col0 col0 FROM tab2 AS cor0
----
112
130
141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + 0 - - COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + 0 - - COUNT ( * ) AS col2 FROM tab0
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT - 77 AS col0, MIN( ALL - + col1 ) FROM tab0
----
-77
-81

skipif mysql # not compatible
query II rowsort label-1771
SELECT - 77 AS col0, MIN ( ALL - + col1 ) FROM tab0
----
-77
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1772
SELECT ALL 56 col2, col1 + - CAST( NULL AS SIGNED ) * ( + col0 ) + - col1 AS col2 FROM tab0
----
56
NULL
56
NULL
56
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1773
SELECT ALL 67, col1 DIV 46 col0 FROM tab2
----
67
1
67
1
67
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1773
SELECT ALL 67, col1 / 46 col0 FROM tab2
----
67
1
67
1
67
1

query II rowsort
SELECT col1 AS col1, - 18 FROM tab1
----
14
-18
47
-18
5
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1776
SELECT ALL - CAST( - + col0 AS SIGNED ) col0, 45 + + col1 + + col2 FROM tab1 cor0
----
51
155
85
109
91
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1776
SELECT ALL - CAST ( - + col0 AS INTEGER ) col0, 45 + + col1 + + col2 FROM tab1 cor0
----
51
155
85
109
91
160

query I rowsort
SELECT + 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
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-1781
SELECT DISTINCT - + ( - + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT 97 * 82 + 0 * - COUNT( * ) FROM tab0 AS cor0
----
7954

skipif mysql # not compatible
query I rowsort label-1783
SELECT 97 * 82 + 0 * - COUNT ( * ) FROM tab0 AS cor0
----
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL + MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + MAX ( ALL - col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL + col1 * col1 * - - col1 * + col2 AS col2 FROM tab1
----
263424
7059964
7375

onlyif mysql # aggregate syntax: 
query II rowsort label-1786
SELECT - COUNT( * ) AS col0, 36 AS col2 FROM tab0
----
-3
36

skipif mysql # not compatible
query II rowsort label-1786
SELECT - COUNT ( * ) AS col0, 36 AS col2 FROM tab0
----
-3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT 71 * + MIN( - - 30 ) FROM tab0
----
2130

skipif mysql # not compatible
query I rowsort label-1787
SELECT 71 * + MIN ( - - 30 ) FROM tab0
----
2130

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL + SUM( DISTINCT + - 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + SUM ( DISTINCT + - 23 ) FROM tab1
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT MAX( DISTINCT - 66 ) * + - COUNT( ( + col2 ) ) AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT MAX ( DISTINCT - 66 ) * + - COUNT ( ( + col2 ) ) AS col2 FROM tab2
----
198

query I rowsort
SELECT ALL 92 * col0 AS col1 FROM tab1 AS cor0
----
4692
7820
8372

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + + + 92 * + col0 AS col1 FROM tab2 AS cor0
----
4278
5952
6975

query I rowsort
SELECT ALL + col2 + + - col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT 48 * col1 * + col2 AS col2 FROM tab1
----
14160
153408
64512

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

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 FROM tab2 cor0
----
1109
2637
4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 80 col1, 91 AS col2 FROM tab1 AS cor0 WHERE + 17 + + - col2 <> - col1
----
80
91
80
91
80
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT COUNT( * ) * - + 80 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT COUNT ( * ) * - + 80 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - CAST ( + + 44 AS INTEGER ) FROM tab0 cor0 WHERE NULL IS NULL
----
-44

query II rowsort
SELECT - - 97 - + 93, col0 AS col2 FROM tab1 AS cor0
----
4
51
4
85
4
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 8 + col2 + + 93 + + ( + - 3 ) + + + 27 col2 FROM tab0 AS cor0
----
135
172
224

query I rowsort
SELECT + col1 - + 42 FROM tab2 AS cor0
----
25
35
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT + 63 * col0 DIV + col0 + + - col2 FROM tab1 AS cor0
----
-33
-5
4

skipif mysql # not compatible
query I rowsort label-1808
SELECT + 63 * col0 / + col0 + + - col2 FROM tab1 AS cor0
----
-33
-5
4

query II rowsort
SELECT col0 AS col2, col0 + - 77 + + ( - - col0 ) * - 59 FROM tab0
----
15
-947
87
-5123
97
-5703

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1812
SELECT MIN ( ALL 36 ) AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT COUNT( * ) + ( ( - - 14 ) ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-1813
SELECT COUNT ( * ) + ( ( - - 14 ) ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT - MAX( - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - MAX ( - col0 ) FROM tab1
----
51

query II rowsort
SELECT + 0 AS col0, 52 AS col1 FROM tab2 AS cor0
----
0
52
0
52
0
52

query II rowsort
SELECT DISTINCT - col0, - col2 * 1 * - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-46
-48668
-64
-163840
-75
-326250

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - col2 + + + 80 / 29 + + 3 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT + MIN( + col2 ) + + - MIN( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT + MIN ( + col2 ) + + - MIN ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - 48 + + - ( - col1 ) FROM tab1 cor0
----
-1
-34
-43

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

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

query I rowsort
SELECT - - col1 + 68 AS col0 FROM tab2 AS cor0
----
119
135
145

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT + col0 + - col2 + + col1 DIV col0 FROM tab0
----
-2
-27
77

skipif mysql # not compatible
query I rowsort label-1824
SELECT + col0 + - col2 + + col1 / col0 FROM tab0
----
-2
-27
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * - col1 col1 FROM tab0
----
-105
-405
-5

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

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

query I rowsort
SELECT ALL - ( - 33 ) + + 50 FROM tab2 AS cor0
----
83
83
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT MIN( col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - + col2 * - 73 - - - 15 + - + 41 FROM tab1 AS cor0
----
4251
4908
6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 80 ) - - - col2 col0 FROM tab1 cor0
----
-16
12
21

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - ( 90 ) * - 66 + + + 45 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT - + COUNT( * ) * - 18 AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT - + COUNT ( * ) * - 18 AS col1 FROM tab1 cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1838
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS DECIMAL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS REAL ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE + col1 * col1 > ( - 88 * + CAST( + - ( col0 ) AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE + col1 * col1 > ( - 88 * + CAST ( + - ( col0 ) AS INTEGER ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT - + col1 NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + col1 NOT BETWEEN NULL AND + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 col1 FROM tab0
----
1215
1827
97

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

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

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

query I rowsort
SELECT ALL - + col2 / col1 FROM tab0 WHERE NULL <> 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT ALL 76 DIV - COUNT( * ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL 76 / - COUNT ( * ) AS col1 FROM tab1
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-1846
SELECT - 43 * - 8 col1, col1 DIV col2 DIV - 72 FROM tab1
----
344
0
344
0
344
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1846
SELECT - 43 * - 8 col1, col1 / col2 / - 72 FROM tab1
----
344
0
344
0
344
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT ALL + + SUM( ALL + 42 ) AS col2, 42 AS col1 FROM tab1 cor0
----
126
42

skipif mysql # not compatible
query II rowsort label-1848
SELECT ALL + + SUM ( ALL + 42 ) AS col2, 42 AS col1 FROM tab1 cor0
----
126
42

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab0
----
3

query I rowsort
SELECT AVG ( - col1 ) AS col1 FROM tab1 WHERE NOT 56 / - - 76 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT ALL + 76 DIV + + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + 76 / + + col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + - col2 + + 60 AS col1 FROM tab2 AS cor0
----
2
20
37

query I rowsort
SELECT DISTINCT col0 + - - col2 * col0 * col0 AS col2 FROM tab1 AS cor0
----
249747
426360
563199

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL col0 * - 56 AS col0 FROM tab0 cor0
----
-4872
-5432
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT DISTINCT - 1 * 3 AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 18 + 26 NOT BETWEEN NULL AND + col1
----
-3
0

skipif mysql # not compatible
query II rowsort label-1856
SELECT DISTINCT - 1 * 3 AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 18 + 26 NOT BETWEEN NULL AND + col1
----
-3
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1857
SELECT DISTINCT + 17 DIV - col2 * + col2 AS col2, + 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-1857
SELECT DISTINCT + 17 / - col2 * + col2 AS col2, + col1 col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT - 98 * + col2 + - 20 AS col2 FROM tab2 AS cor0
----
-2274
-3940
-5704

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL - col2 DIV 3 - + - 45 * - + ( - + col2 ) FROM tab1 AS cor0
----
2636
3038
4288

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - col2 / 3 - + - 45 * - + ( - + col2 ) FROM tab1 AS cor0
----
2636
3038
4288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT + COUNT( * ) * + 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-1861
SELECT + COUNT ( * ) * + 93 FROM tab0
----
279

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - 48 * - MIN( ALL - col1 ) AS col2 FROM tab1
----
-2256

skipif mysql # not compatible
query I rowsort label-1863
SELECT - 48 * - MIN ( ALL - col1 ) AS col2 FROM tab1
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL SUM( + 82 ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL SUM ( + 82 ) FROM tab1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT MIN( DISTINCT - col2 ) + + COUNT( * ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-1865
SELECT MIN ( DISTINCT - col2 ) + + COUNT ( * ) AS col1 FROM tab2
----
-55

query I rowsort
SELECT + col0 + + + col1 + + col2 * - 34 * - 41 + 70 AS col2 FROM tab1
----
133959
82406
95000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90 col2, + 36 FROM tab2
----
90
36
90
36
90
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT DISTINCT + 76 + - COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + 76 + - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT COUNT( * ) - - 93 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT COUNT ( * ) - - 93 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - - 3 * - MIN( DISTINCT - + 14 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1871
SELECT - - 3 * - MIN ( DISTINCT - + 14 ) FROM tab0 AS cor0
----
42

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 0 * - + col0 + + col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1, + col1 FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - 0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1877
SELECT + col0 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT + col0 / + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col2 * - 35 FROM tab1
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT + MAX( ALL + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1880
SELECT + MAX ( ALL + col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT - SUM( 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-1885
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL + 87 + - 50 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - 80 IS NOT NULL
----
37
37
37

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + 87 + - 50 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 80 IS NOT NULL
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN ( - col0 / 11 ) AND - 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 + + 41 * - col0 ) NOT BETWEEN ( NULL ) AND + 73
----

query I rowsort
SELECT + 10 + - 90 AS col1 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + 20 * - col0 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT ALL 99 * 46 AS col1 FROM tab1
----
4554
4554
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT MAX( ALL + col1 ) AS col2 FROM tab1 WHERE NULL = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT MAX ( ALL + col1 ) AS col2 FROM tab1 WHERE NULL = - col2
----
NULL

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

query I rowsort
SELECT DISTINCT 17 * 33 FROM tab2
----
561

query I rowsort
SELECT col2 + + 89 FROM tab0
----
136
188
99

query I rowsort
SELECT 30 + ( ( - col2 ) ) AS col1 FROM tab1
----
-29
-38
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( * ) + - COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT 41 * + ( COUNT( * ) ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-1900
SELECT 41 * + ( COUNT ( * ) ) FROM tab1
----
123

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 AS col1 FROM tab1
----
430
4324
728

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT + col1 + 86 DIV col2 AS col1 FROM tab2
----
54
68
79

skipif mysql # not compatible
query I rowsort label-1902
SELECT + col1 + 86 / col2 AS col1 FROM tab2
----
54
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL 65 + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL 65 + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT + MAX( + col2 ) + - 92 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1904
SELECT + MAX ( + col2 ) + - 92 FROM tab1
----
4

query I rowsort
SELECT ALL - 27 AS col1 FROM tab1
----
-27
-27
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ( - 3 ) + + col1 DIV col1 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1907
SELECT ( - 3 ) + + col1 / col1 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE col0 <> ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE col0 <> ( col0 )
----
0

query I rowsort
SELECT DISTINCT 89 * - col1 + - col2 FROM tab1 AS cor0
----
-1342
-4251
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT ALL col1 DIV col1 - - 54 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL col1 / col1 - - 54 FROM tab2 AS cor0
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <> - col1 / + 10
----

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE col2 / col1 + - col2 IN ( col1 / col2 + - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab2
----
-3

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT - - SUM( + 46 ) * - 78 FROM tab2 AS cor0
----
-10764

skipif mysql # not compatible
query I rowsort label-1916
SELECT - - SUM ( + 46 ) * - 78 FROM tab2 AS cor0
----
-10764

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 69 - col1 * 85 ) IN ( - col0 / ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 58 FROM tab0 cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 AS cor0 WHERE - 47 IS NOT NULL
----
23
40
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT 83 * + COUNT( * ) * 84 col2 FROM tab0
----
20916

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1925
SELECT 83 * + COUNT ( * ) * 84 col2 FROM tab0
----
20916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT DISTINCT col1 * - CAST( + 65 AS SIGNED ) AS col1 FROM tab2
----
-3315
-4355
-5005

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT col1 * - CAST ( + 65 AS INTEGER ) AS col1 FROM tab2
----
-3315
-4355
-5005

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT - 48 + - 50 * COUNT( ALL + col0 * 28 ) FROM tab2 WHERE - 86 + + 72 * col2 = NULL OR NOT ( NULL ) < NULL
----
-48

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT - 48 + - 50 * COUNT ( ALL + col0 * 28 ) FROM tab2 WHERE - 86 + + 72 * col2 = NULL OR NOT ( NULL ) < NULL
----
-48

query I rowsort
SELECT - col1 * + 51 FROM tab2
----
-2601
-3417
-3927

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

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

query I rowsort
SELECT DISTINCT col0 * - 87 FROM tab2 cor0
----
-4002
-5568
-6525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + CAST( - 92 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + CAST ( - 92 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT - - MIN( DISTINCT 69 ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - - MIN ( DISTINCT 69 ) FROM tab1 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - 17 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 17 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-14

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

query I rowsort
SELECT DISTINCT + col2 * + 84 + - 53 * - col0 FROM tab0 AS cor0
----
13457
4743
5451

query I rowsort
SELECT + 96 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1393
-8342
-9213

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - ( - COUNT( * ) ) + + 93 * - COUNT( * ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-1938
SELECT - ( - COUNT ( * ) ) + + 93 * - COUNT ( * ) FROM tab2
----
-276

query I rowsort
SELECT + 35 + col0 - - col0 FROM tab2
----
127
163
185

query I rowsort
SELECT DISTINCT col0 * + col1 * col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL COUNT( * ) + + SUM( + col0 ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL COUNT ( * ) + + SUM ( + col0 ) AS col2 FROM tab2
----
188

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

skipif mysql # not compatible
query I rowsort label-1942
SELECT - COUNT ( + + col1 ) / 26 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 47
----

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

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

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

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

query I rowsort
SELECT ALL + - col2 * - - 31 AS col1 FROM tab1 AS cor0
----
-1829
-2108
-2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col2 + - + 53 * - col1 col2 FROM tab2 cor0
----
2634
3418
3977

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1949
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1949
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1950
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + ( col2 ) * - CAST( - col0 - + 8 AS SIGNED ) AND 29
----

skipif mysql # not compatible
query III rowsort label-1950
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + ( col2 ) * - CAST ( - col0 - + 8 AS INTEGER ) AND 29
----

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

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

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

query I rowsort
SELECT ALL - col1 * + col0 * ( - - 11 ) AS col2 FROM tab2
----
-25806
-54208
-55275

query III rowsort
SELECT * FROM tab0 WHERE 48 <> ( + 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col0 ) + 74 FROM tab2
----
120
138
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + col0 * - col0 + + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + col0 * - col0 + + col2 IS NULL
----
-3

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

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

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

query I rowsort
SELECT + col1 + + col0 * - - 13 FROM tab2 AS cor0
----
1042
649
909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1960
SELECT ALL 70 AS col1, COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
0

skipif mysql # not compatible
query II rowsort label-1960
SELECT ALL 70 AS col1, COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT - ( SUM( col0 ) ) + 24 * - COUNT( * ) FROM tab1 AS cor0
----
-299

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - ( SUM ( col0 ) ) + 24 * - COUNT ( * ) FROM tab1 AS cor0
----
-299

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

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT - 40 * + 18 - - col1 + - - col1 * 96 + - col2 FROM tab0 cor0
----
-722
1307
7090

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 44 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL + ( - CAST( + - CAST( + 54 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + ( - CAST ( + - CAST ( + 54 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
54
54
54

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

skipif mysql # not compatible
query I rowsort label-1970
SELECT - 0 / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 33 + + col0 + - col2 >= ( NULL )
----

query I rowsort
SELECT 53 FROM tab2 WHERE NOT ( NULL >= ( - col0 ) )
----

query II rowsort
SELECT 58 AS col1, - col2 FROM tab1
----
58
-59
58
-68
58
-96

query I rowsort
SELECT + col2 * 99 FROM tab2 WHERE NOT + + col1 + + 83 < 96
----
2277
3960
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 * - col2 / col1 + col2 + col0 * + col0 - 16 BETWEEN ( NULL ) AND 83 * + col0
----

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 * - col2 / col1 + col2 + col0 * + col0 - 16 BETWEEN ( NULL ) AND 83 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL col1 * 57 * - col0 * CAST( + + col1 AS SIGNED ) * 42 col0 FROM tab2
----
-286432524
-805999950
-908417664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1977
SELECT ALL col1 * 57 * - col0 * CAST ( + + col1 AS INTEGER ) * 42 col0 FROM tab2
----
-286432524
-805999950
-908417664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1978
SELECT + - COUNT( * ) AS col1, CAST( + AVG ( DISTINCT 97 ) AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1978
SELECT + - COUNT ( * ) AS col1, CAST ( + AVG ( DISTINCT 97 ) AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + MIN( ALL + 45 ) FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-1979
SELECT + MIN ( ALL + 45 ) FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT - COUNT( * ) AS col0, + 10 AS col1 FROM tab2 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-1980
SELECT - COUNT ( * ) AS col0, + 10 AS col1 FROM tab2 AS cor0
----
-3
10

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

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

query I rowsort
SELECT - col1 + 52 FROM tab1 AS cor0
----
38
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1983
SELECT col1 DIV - col0 + + CAST( + - 69 AS SIGNED ) + + col0 + + col2 * + - 42 * col0 + col0 * + CAST( 8 + 14 * col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-136698
-139724
-172514

skipif mysql # not compatible
query I rowsort label-1983
SELECT col1 / - col0 + + CAST ( + - 69 AS INTEGER ) + + col0 + + col2 * + - 42 * col0 + col0 * + CAST ( 8 + 14 * col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-136698
-139724
-172514

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT MIN( DISTINCT + ( - - col1 ) ) + - 39 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1985
SELECT MIN ( DISTINCT + ( - - col1 ) ) + - 39 FROM tab0 cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT col0 * + CAST( - 12 AS SIGNED ) FROM tab1
----
-1020
-1092
-612

skipif mysql # not compatible
query I rowsort label-1986
SELECT col0 * + CAST ( - 12 AS INTEGER ) FROM tab1
----
-1020
-1092
-612

query I rowsort
SELECT col2 * + + 58 FROM tab0
----
2726
5742
580

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

query I rowsort
SELECT ALL - col2 * - 30 - - 71 + 73 AS col2 FROM tab0
----
1554
3114
444

query I rowsort
SELECT ALL 31 FROM tab2 WHERE NOT ( - col0 ) IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT DISTINCT col1 DIV col0 * + 39 * 40 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1991
SELECT DISTINCT col1 / col0 * + 39 * 40 col2 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT ALL 27 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 27 / + - col0 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT + - 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col1 ) ) col2 FROM tab0
----
1
21
81

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1998
SELECT - COUNT ( + 95 ) col2 FROM tab1 AS cor0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1999
SELECT col2 / - - col1 FROM tab1 cor0
----
1
11
6

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

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

query II rowsort
SELECT + col2 AS col2, - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2005
SELECT ALL + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) * - col0 * - + 27 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * - col0 * - + 27 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - 41 AS col2 FROM tab2 AS cor0
----
-105
-116
-87

query I rowsort
SELECT ALL + - ( 35 ) FROM tab0 cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2008
SELECT col1 + - ( 63 ) + - CAST( NULL AS SIGNED ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT col1 + - ( 63 ) + - CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 32 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT col1 - + 63 AS col2 FROM tab1
----
-16
-49
-58

query I rowsort
SELECT col0 * + col1 * col1 * - - 33 FROM tab0
----
1266111
3201
3247695

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + col2 + + - 97 AS col0 FROM tab0 AS cor0
----
-50
-87
2

query I rowsort
SELECT + col0 - + - 53 AS col1 FROM tab0 AS cor0
----
140
150
68

query I rowsort
SELECT ALL - 88 - - ( - 57 ) FROM tab1 AS cor0
----
-145
-145
-145

query I rowsort
SELECT DISTINCT + 73 - + - col0 FROM tab1 cor0
----
124
158
164

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NOT - - col1 - + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT + + 54 + + COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2018
SELECT + + 54 + + COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT + 75 + - 52 FROM tab1 cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT col1 * + ( - + 13 ) + - ( + - 67 ) * + col2 - + - ( + + 57 ) FROM tab0
----
2153
454
6677

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col1 ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - 76 + - COUNT( * ) - 98 * + + 16 FROM tab1
----
-1647

skipif mysql # not compatible
query I rowsort label-2023
SELECT - 76 + - COUNT ( * ) - 98 * + + 16 FROM tab1
----
-1647

query I rowsort
SELECT DISTINCT + col2 * - 66 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 89 * + col2 * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 89 * + col2 * - col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT - + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2027
SELECT - + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col2 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2029
SELECT - CAST( + 69 AS SIGNED ) AS col2, col2 FROM tab2 AS cor0
----
-69
23
-69
40
-69
58

skipif mysql # not compatible
query II rowsort label-2029
SELECT - CAST ( + 69 AS INTEGER ) AS col2, col2 FROM tab2 AS cor0
----
-69
23
-69
40
-69
58

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 + + + col1 NOT BETWEEN NULL AND + ( col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT 50 * + col2 * - ( col0 ) - 33 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 AS col0, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col0
----

query II rowsort
SELECT - + col0 AS col0, - 32 FROM tab0 AS cor0
----
-15
-32
-87
-32
-97
-32

query I rowsort
SELECT ALL + - ( - + 8 ) FROM tab0 cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + ( + + col2 ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL - + col1 + col2 * + 81 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 + - + col0 AND + - col0
----

query I rowsort
SELECT + + 95 + + 3 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - 67 + - + COUNT( * ) AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-2041
SELECT - 67 + - + COUNT ( * ) AS col0 FROM tab0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT ALL 55 DIV + COUNT( * ) AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL 55 / + COUNT ( * ) AS col0 FROM tab1
----
18

query I rowsort
SELECT ALL + col2 / + + col0 FROM tab0 WHERE NOT - col1 + - 81 IS NOT NULL
----

query I rowsort
SELECT + 74 * + 31 FROM tab0
----
2294
2294
2294

query II rowsort
SELECT + ( + 25 ), 55 AS col2 FROM tab1
----
25
55
25
55
25
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT + 11 * + CAST( + MAX( DISTINCT + col2 ) AS SIGNED ) + - COUNT( * ) FROM tab2
----
635

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + 11 * + CAST ( + MAX ( DISTINCT + col2 ) AS INTEGER ) + - COUNT ( * ) FROM tab2
----
635

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT - + ( - MIN( + col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2048
SELECT - + ( - MIN ( + col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2049
SELECT ALL col1 col1, 38 DIV col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
2
47
0
5
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2049
SELECT ALL col1 col1, 38 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
2
47
0
5
7

query I rowsort
SELECT 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + + ( + 96 ) * col0 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 * + 72 AS col0 FROM tab2
----
-1707
-2957
-4243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 + + col1 col0 FROM tab2 AS cor0
----
111
127
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 59 NOT BETWEEN NULL AND + col1
----
2

skipif mysql # not compatible
query I rowsort label-2054
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 59 NOT BETWEEN NULL AND + col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT - 85 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-2055
SELECT - 85 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-255

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT - 19 col0, - COUNT( - 39 ) AS col2 FROM tab1 AS cor0
----
-19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2057
SELECT - 19 col0, - COUNT ( - 39 ) AS col2 FROM tab1 AS cor0
----
-19
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 74 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT COUNT( DISTINCT col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT COUNT ( DISTINCT col2 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 12 * 78 FROM tab0
----
936

query II rowsort
SELECT - col1 AS col2, 67 FROM tab2
----
-51
67
-67
67
-77
67

query I rowsort
SELECT + 79 * + col0 * col0 * - col2 AS col2 FROM tab1
----
-19725984
-33675725
-44485532

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + - col1 + ( col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 <> 77 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 89, - 15 AS col0 FROM tab1
----
89
-15
89
-15
89
-15

query II rowsort
SELECT ALL col0 AS col1, - col1 AS col2 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT + - col0 * + + 83 FROM tab1 AS cor0
----
-4233
-7055
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL + 37 * - col1 AS col1 FROM tab0 cor0
----
-2997
-37
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT DISTINCT + col1 + + - CAST( NULL AS SIGNED ) * + 73 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + col1 + + - CAST ( NULL AS INTEGER ) * + 73 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 NOT BETWEEN + - 25 AND - - col2
----
97
1
99

query I rowsort
SELECT ALL col0 + + - col0 * + + col1 AS col1 FROM tab0 cor0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT DISTINCT + - col2 DIV col0 + col1 + - - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT + - col2 / col0 + col1 + - - col1 / col0 AS col2 FROM tab1 AS cor0
----
13
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT CAST( ( + + col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT CAST ( ( + + col0 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col0 * 46 + + + ( col0 ) * - + col2 FROM tab2 AS cor0
----
-900
1058
384

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT - - 89 DIV + 30 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - - 89 / + 30 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL + + col0 - + + ( - 17 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + 4 + + 1 AND + col1 * col1 / + 70
----

query I rowsort
SELECT col2 * - 84 AS col2 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 FROM tab0
----
-420
-6480
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2084
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2084
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT COUNT( * ) + 78 AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2085
SELECT COUNT ( * ) + 78 AS col0 FROM tab1
----
81

query I rowsort
SELECT - - col0 + - - 83 FROM tab0 AS cor0
----
170
180
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2087
SELECT ALL COUNT( + - CAST( - 55 AS SIGNED ) ), 97 AS col0 FROM tab1 AS cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL COUNT ( + - CAST ( - 55 AS INTEGER ) ), 97 AS col0 FROM tab1 AS cor0
----
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2088
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 46 * + 90 + + + col1 FROM tab2 AS cor0
----
-4063
-4073
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT - - COUNT( * ) * - 16 FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT - - COUNT ( * ) * - 16 FROM tab0 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT - + MAX( ALL col0 ) col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2091
SELECT - + MAX ( ALL col0 ) col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <> + 11 + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2094
SELECT - CAST( - + col0 AS SIGNED ) DIV col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2094
SELECT - CAST ( - + col0 AS INTEGER ) / col2 FROM tab2 AS cor0
----
1
1
2

query II rowsort
SELECT DISTINCT col0, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col0 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT - 94 AS col1, 27 AS col1 FROM tab1
----
-94
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL - - 73 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * - col0 = - col2
----

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - - 73 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL SUM( ALL + 19 ) col0 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT ALL SUM ( ALL + 19 ) col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT - 75 * SUM( 98 ) FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT - 75 * SUM ( 98 ) FROM tab1 WHERE NOT NULL = NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 68 BETWEEN - 53 * - col1 AND NULL
----
15
81
47
87
21
10

query II rowsort
SELECT ALL col0, + col0 + ( - col0 ) FROM tab2
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - + 80, 67 AS col2 FROM tab1 AS cor0
----
-80
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT col2 DIV - col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2104
SELECT col2 / - col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT - ( - + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2105
SELECT - ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - + COUNT( * ) - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

skipif mysql # not compatible
query I rowsort label-2107
SELECT - + COUNT ( * ) - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT DISTINCT 46 + + 65 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT 46 + + 65 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 * - col0 ) AND 27 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 * - col0 ) AND 27 + + col0
----
0

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab1 AS cor0 WHERE + col0 * - col0 IS NULL
----

query I rowsort
SELECT - 26 + - + 36 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT 41 * + 83 + - 29 AS col2 FROM tab2 AS cor0
----
3374
3374
3374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 + - col2 * + 44 + - - col2 * - 37 col0 FROM tab0 AS cor0
----
-3746
-749
-7958

query I rowsort
SELECT ALL ( + col1 ) + col2 AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT col1 + 80 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT + col2 FROM tab0 WHERE ( NULL ) BETWEEN col2 * col2 AND ( CAST( 2 AS SIGNED ) / + ( - + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-2116
SELECT + col2 FROM tab0 WHERE ( NULL ) BETWEEN col2 * col2 AND ( CAST ( 2 AS INTEGER ) / + ( - + col1 ) )
----

query I rowsort
SELECT ALL col0 + + - 69 * + - col2 AS col2 FROM tab0
----
3258
6928
777

query I rowsort
SELECT DISTINCT col2 * + - ( - col0 ) AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL col0 + + - col2 + + col0 * - 33 * + 89 * col1 AS col1 FROM tab2 AS cor0
----
-14473512
-14758408
-6890179

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2121
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 - + + col0 * + - col2 * col0 - + ( 41 ), + CAST( NULL AS DECIMAL ) * - + 25, col0 + + col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-2121
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 - + + col0 * + - col2 * col0 - + ( 41 ), + CAST ( NULL AS REAL ) * - + 25, col0 + + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - col1 * - col1 / + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - col1 * - col1 / + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT - 37 DIV 48 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2123
SELECT - 37 / 48 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2124
SELECT - col1, + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( col0 AS SIGNED ) + + ( - + 12 ) * CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2124
SELECT - col1, + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( col0 AS INTEGER ) + + ( - + 12 ) * CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - 62 - col2 FROM tab0 AS cor0
----
5384
5915
883

query I rowsort
SELECT DISTINCT - col0 * + + 72 FROM tab0
----
-1080
-6264
-6984

query I rowsort
SELECT 85 FROM tab0 WHERE NOT col1 NOT BETWEEN - 3 - col1 - - + 47 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2130
SELECT + MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - + COUNT( * ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2131
SELECT - + COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT - + COUNT( + 86 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2134
SELECT - + COUNT ( + 86 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 27 * - - 71 + + col1 - col2 + + col0 * - 81 FROM tab2 AS cor0
----
-1781
-3230
-4149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT - + MAX( + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2137
SELECT - + MAX ( + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT ALL - + col2 DIV + col0 - col0 AS col1 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - + col2 / + col0 - col0 AS col1 FROM tab0 AS cor0
----
-18
-87
-98

query I rowsort
SELECT DISTINCT 12 * + col0 * 34 - + col2 AS col0 FROM tab2
----
18745
26072
30542

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL COUNT( + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL COUNT ( + col2 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 * + + 11 col2 FROM tab0
----
-990
-990
-990

query I rowsort
SELECT DISTINCT + col1 * ( - 13 ) AS col0 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT ALL col1 * 61 * col1 FROM tab0
----
26901
400221
61

query III rowsort
SELECT * FROM tab1 WHERE + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( ( col1 ) ) + + col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT 44 + + COUNT( ALL + + col1 ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-2146
SELECT 44 + + COUNT ( ALL + + col1 ) AS col1 FROM tab0
----
47

query I rowsort
SELECT - 65 * col2 FROM tab0 cor0
----
-3055
-6435
-650

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2148
SELECT + - col1 AS col1, CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2148
SELECT + - col1 AS col1, CAST ( NULL AS REAL ) * col0 AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2149
SELECT DISTINCT COUNT( * ) DIV + + ( - 65 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT COUNT ( * ) / + + ( - 65 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + + 27 FROM tab2 WHERE - + col2 * col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 61 * + + 70 * - 0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * + - 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2153
SELECT 3 * - 43 AS col1, col0 DIV + col2 FROM tab2 AS cor0
----
-129
1
-129
1
-129
2

skipif mysql # not compatible
query II rowsort label-2153
SELECT 3 * - 43 AS col1, col0 / + col2 FROM tab2 AS cor0
----
-129
1
-129
1
-129
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT MAX( ALL col1 ) * 67 col0 FROM tab2
----
5159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2154
SELECT DISTINCT MAX ( ALL col1 ) * 67 col0 FROM tab2
----
5159

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT DISTINCT + COUNT( * ) AS col2, 40 FROM tab1 WHERE NOT + col0 * - col2 * - col1 IS NOT NULL
----
0
40

skipif mysql # not compatible
query II rowsort label-2155
SELECT DISTINCT + COUNT ( * ) AS col2, 40 FROM tab1 WHERE NOT + col0 * - col2 * - col1 IS NOT NULL
----
0
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL + MAX( 18 ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + MAX ( 18 ) AS col1 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + COUNT( * ) * - 58 AS col2 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-2158
SELECT + COUNT ( * ) * - 58 AS col2 FROM tab1
----
-174

query I rowsort
SELECT 51 * + - col0 + + col1 FROM tab2
----
-2295
-3187
-3758

query I rowsort
SELECT DISTINCT - + ( - ( - - 32 ) ) + 99 AS col0 FROM tab1 AS cor0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT 48 + + SUM( - - col2 ) FROM tab1 AS cor0
----
271

skipif mysql # not compatible
query I rowsort label-2161
SELECT 48 + + SUM ( - - col2 ) FROM tab1 AS cor0
----
271

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + + 8 + + 33 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 20 * col2 FROM tab0
----
1980
200
940

query I rowsort
SELECT + col1 * + col0 - - col2 + + + 25 AS col2 FROM tab2
----
2394
4993
5108

query I rowsort
SELECT + col0 - + 58 FROM tab0
----
-43
29
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT + - COUNT( * ) - - - ( 70 ) AS col1, 20 AS col0 FROM tab2 AS cor0
----
-73
20

skipif mysql # not compatible
query II rowsort label-2168
SELECT + - COUNT ( * ) - - - ( 70 ) AS col1, 20 AS col0 FROM tab2 AS cor0
----
-73
20

query I rowsort
SELECT - - col0 - + col1 + - col0 - - 44 FROM tab1 AS cor0
----
-3
30
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT + COUNT( * ) + 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + COUNT ( * ) + 14 FROM tab1 AS cor0
----
17

query II rowsort
SELECT DISTINCT - - 52, + 11 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - MIN( + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - MIN ( + col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT 27 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2174
SELECT 27 / + + col0 AS col2 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2176
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2176
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT - COUNT( * ) * + - 50 AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - COUNT ( * ) * + - 50 AS col0 FROM tab1 AS cor0
----
150

query I rowsort
SELECT DISTINCT + + col2 * + + 48 AS col1 FROM tab0 cor0
----
2256
4752
480

query I rowsort
SELECT - 69 * - col2 FROM tab1 cor0
----
4071
4692
6624

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 56 = - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT DISTINCT - - 75 * + MIN( DISTINCT - - 30 ) * + 98 col2 FROM tab0 AS cor0
----
220500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT DISTINCT - - 75 * + MIN ( DISTINCT - - 30 ) * + 98 col2 FROM tab0 AS cor0
----
220500

query I rowsort
SELECT ALL + col0 * - + col1 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ( - col0 ) * - + ( - 22 ) FROM tab0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT - MAX( ALL - + col2 ) AS col1, + COUNT( * ) + 22 FROM tab0
----
10
25

skipif mysql # not compatible
query II rowsort label-2186
SELECT - MAX ( ALL - + col2 ) AS col1, + COUNT ( * ) + 22 FROM tab0
----
10
25

query I rowsort
SELECT + ( - - col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - 83 * + + col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query I rowsort
SELECT + col1 + + + col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT ALL - col1 AS col0, + 5 FROM tab2
----
-51
5
-67
5
-77
5

query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 AS col1 FROM tab0 WHERE NOT - col1 + - + col2 + - col0 IS NULL
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - MIN( DISTINCT + col2 ) * - COUNT( * ) + + 53 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-2192
SELECT - MIN ( DISTINCT + col2 ) * - COUNT ( * ) + + 53 FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * + col2 col1 FROM tab1
----
1152
708
816

onlyif mysql # aggregate syntax: 
query II rowsort label-2194
SELECT + 17 AS col0, - COUNT( * ) * ( - 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
17
135

skipif mysql # not compatible
query II rowsort label-2194
SELECT + 17 AS col0, - COUNT ( * ) * ( - 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
17
135

query I rowsort
SELECT ALL - col0 * + col2 + - col0 * + col1 + + col1 + col1 AS col1 FROM tab2 cor0
----
-3302
-7334
-9241

query I rowsort
SELECT ALL + col2 - - ( col0 ) FROM tab2
----
104
133
69

query I rowsort
SELECT - col2 + - col0 + - ( - col1 ) FROM tab1
----
-112
-133
-139

query I rowsort
SELECT col0 + + - col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL + 19 - - - 73 AS col1 FROM tab1
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col0 FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2201
SELECT ALL + col2 - col0 AS col1, CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-77
-21
2
-1
32
-81

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL + col2 - col0 AS col1, CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-77
-21
2
-1
32
-81

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + - col0 * + col1 IN ( + 99 * - + col1, 51, - 42 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT col0 DIV - - col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2203
SELECT col0 / - - col0 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + COUNT( * ) + - 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-2204
SELECT + COUNT ( * ) + - 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

query I rowsort
SELECT - - col1 * 91 AS col0 FROM tab2 AS cor0
----
4641
6097
7007

query II rowsort
SELECT ALL + col2, - 28 FROM tab1 AS cor0
----
59
-28
68
-28
96
-28

query II rowsort
SELECT - col1 AS col0, 82 FROM tab0 AS cor0 WHERE NOT 44 + - col1 IN ( - col1, - col0 + - - ( - - ( 99 ) ) + + col2 - - col1 )
----
-1
82
-21
82
-81
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 * - - col2 col0 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * col0 )
----

query I rowsort
SELECT DISTINCT ( + - 83 ) FROM tab1 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 52 <> 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT + ( + - CAST( + - 36 AS SIGNED ) ) AS col0 FROM tab2
----
36
36
36

skipif mysql # not compatible
query I rowsort label-2212
SELECT + ( + - CAST ( + - 36 AS INTEGER ) ) AS col0 FROM tab2
----
36
36
36

query I rowsort
SELECT 13 * - 0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - col0 ) OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 62 + + col0 FROM tab2
----
-16
13
2

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + 14 * + 73 + + 66 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT - COUNT( * ) FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT - COUNT ( * ) FROM tab2 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT ALL CAST( - + 23 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL CAST ( - + 23 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL + ( 82 ) FROM tab2
----
82
82
82

query I rowsort
SELECT 27 + col2 AS col1 FROM tab1 AS cor0
----
123
86
95

query I rowsort
SELECT - col0 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT + - MIN( DISTINCT - col1 ) + + ( + SUM( - + 21 ) ) AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2223
SELECT + - MIN ( DISTINCT - col1 ) + + ( + SUM ( - + 21 ) ) AS col1 FROM tab1 AS cor0
----
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 1 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - 47 col1, + col1 + + col1 AS col2 FROM tab1 AS cor0
----
38
10
4
28
44
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + COUNT( * ) * 8 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + COUNT ( * ) * 8 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT + CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE ( - col2 ) + 39 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2227
SELECT + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE ( - col2 ) + 39 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - col1 >= + col0
----

query I rowsort
SELECT ALL ( - 56 ) + + - col2 * + col1 * - - ( + ( + col1 ) ) AS col0 FROM tab0
----
-155
-308423
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL - MIN( DISTINCT - ( - - 47 ) ) FROM tab0 WHERE + ( + CAST( NULL AS SIGNED ) ) + + col2 + - CAST( NULL AS SIGNED ) - + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - MIN ( DISTINCT - ( - - 47 ) ) FROM tab0 WHERE + ( + CAST ( NULL AS INTEGER ) ) + + col2 + - CAST ( NULL AS INTEGER ) - + col2 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * - + 37 col0 FROM tab1
----
2886

query I rowsort
SELECT 24 FROM tab1 WHERE NULL IS NULL
----
24
24
24

query I rowsort
SELECT ALL 88 * - - col0 - col0 - + 22 AS col1 FROM tab2
----
3980
5546
6503

query I rowsort
SELECT - 28 * 9 AS col2 FROM tab2
----
-252
-252
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT 56 * - COUNT( * ) * - + 23 AS col2 FROM tab1
----
3864

skipif mysql # not compatible
query I rowsort label-2235
SELECT 56 * - COUNT ( * ) * - + 23 AS col2 FROM tab1
----
3864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col0 col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT SUM( DISTINCT - 35 ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-2237
SELECT SUM ( DISTINCT - 35 ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + COUNT( ALL + + 23 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2238
SELECT + COUNT ( ALL + + 23 ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 47 * - col1 FROM tab1
----
-2209
-235
-658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + - col0 + - 16 AS col2 FROM tab1 AS cor0
----
-101
-107
-67

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + 79 AND - col2 / col1
----
15
87
97

query I rowsort
SELECT - - ( - col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT - 67 * - 90 + col2 + - 77 <> + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 = + + col2 + - col2 + - - col0 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2246
SELECT - CAST( NULL AS SIGNED ), - 61 AS col2 FROM tab2
----
NULL
-61
NULL
-61
NULL
-61

skipif mysql # not compatible
query II rowsort label-2246
SELECT - CAST ( NULL AS INTEGER ), - 61 AS col2 FROM tab2
----
NULL
-61
NULL
-61
NULL
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT ALL 60 AS col0, + 49 + - + MIN( DISTINCT - col0 ) AS col0 FROM tab1
----
60
140

skipif mysql # not compatible
query II rowsort label-2247
SELECT ALL 60 AS col0, + 49 + - + MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
60
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT COUNT( ALL - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2248
SELECT COUNT ( ALL - col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1 WHERE NOT + - col2 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT 47 DIV - 93 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT 47 / - 93 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + COUNT( * ) * - 75 * - - COUNT( * ) AS col0 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT + COUNT ( * ) * - 75 * - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL - - col2 + - 5 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
42
5
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2254
SELECT 78 + - ( + COUNT( * ) ) AS col1, 7 AS col1 FROM tab1
----
75
7

skipif mysql # not compatible
query II rowsort label-2254
SELECT 78 + - ( + COUNT ( * ) ) AS col1, 7 AS col1 FROM tab1
----
75
7

query I rowsort
SELECT + + col0 * + - col0 + 99 AS col1 FROM tab2 AS cor0
----
-2017
-3997
-5526

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + 50 + COUNT( * ) FROM tab0 cor0
----
53

skipif mysql # not compatible
query I rowsort label-2256
SELECT + 50 + COUNT ( * ) FROM tab0 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL COUNT( ALL ( + col0 ) ) * MIN( + + col2 ) * COUNT( * ) FROM tab1
----
531

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL COUNT ( ALL ( + col0 ) ) * MIN ( + + col2 ) * COUNT ( * ) FROM tab1
----
531

query I rowsort
SELECT + - ( - col0 ) + + - col1 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT 35 * - 26 + 22 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT 35 * - 26 + 22 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2260
SELECT - SUM ( col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT + CAST( - ( - - ( MIN( + + col2 ) ) ) AS SIGNED ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2261
SELECT + CAST ( - ( - - ( MIN ( + + col2 ) ) ) AS INTEGER ) FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - + SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2262
SELECT - + SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT - 5, col0 FROM tab2 AS cor0
----
-5
46
-5
64
-5
75

query II rowsort
SELECT - col2 AS col1, 72 AS col1 FROM tab2 AS cor0
----
-23
72
-40
72
-58
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT ALL + 23 * 52 AS col1, - COUNT( * ) FROM tab0
----
1196
-3

skipif mysql # not compatible
query II rowsort label-2265
SELECT ALL + 23 * 52 AS col1, - COUNT ( * ) FROM tab0
----
1196
-3

query I rowsort
SELECT ALL 38 * + 62 AS col2 FROM tab2
----
2356
2356
2356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col1 * - - col0 col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE NOT + col2 > NULL
----

query II rowsort
SELECT ALL + ( - + 89 ), + col2 FROM tab2
----
-89
23
-89
40
-89
58

query I rowsort
SELECT - 55 AS col2 FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL >= 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT ALL CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col2 FROM tab0 WHERE NOT - 76 BETWEEN NULL AND + 97
----

query I rowsort
SELECT DISTINCT 90 + col1 AS col1 FROM tab1
----
104
137
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT - MIN( - ( - 57 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - MIN ( - ( - 57 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + + col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + + col0 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - 59 + 39 + - 37 + 43 AS col2 FROM tab1 AS cor0
----
-105
-65
-99

query I rowsort
SELECT - 96 + + col0 FROM tab0 cor0
----
-81
-9
1

query I rowsort
SELECT + col1 * - col0 + + + col1 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2283
SELECT * FROM tab2 WHERE col0 + - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2283
SELECT * FROM tab2 WHERE col0 + - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - COUNT( * ) * COUNT( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2284
SELECT - COUNT ( * ) * COUNT ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT - 56 + - col1 DIV CAST( + 28 AS SIGNED ) + - 86 + + 4 AS col1 FROM tab1 AS cor0
----
-138
-139

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT - 56 + - col1 / CAST ( + 28 AS INTEGER ) + - 86 + + 4 AS col1 FROM tab1 AS cor0
----
-138
-139

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE - col0 * - col1 * + - ( - 63 ) IS NULL
----

query I rowsort
SELECT - col2 - - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 + + col2 / + 7 + col1 / - col2 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 + + col2 / + 7 + col1 / - col2 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - 31 ) * + col0 - - col2 FROM tab2
----
-1403
-1944
-2267

query I rowsort
SELECT ALL - - 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL 95 * + 97 AS col1 FROM tab1
----
9215
9215
9215

query I rowsort
SELECT DISTINCT - col2 + - - ( col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2295
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( - col2 AS SIGNED ) + col2 + - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2295
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) + col2 + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT - col2 DIV 9 - + col0 FROM tab1 AS cor0
----
-61
-91
-98

skipif mysql # not compatible
query I rowsort label-2296
SELECT - col2 / 9 - + col0 FROM tab1 AS cor0
----
-61
-91
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL + + col1 * + + col0 + + CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2297
SELECT ALL + + col1 * + + col0 + + CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
2369
4968
5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 6 * - 47 + 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1, + 34 AS col2 FROM tab0
----
-1
34
-21
34
-81
34

query I rowsort
SELECT col2 * - 14 AS col0 FROM tab2
----
-322
-560
-812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab1
----
5
5
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col2 AND + - 71 * - col0 - + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 33 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 33 * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 39 * - 0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = - col0
----

query II rowsort
SELECT + 5 + + col1, + col1 * col0 AS col1 FROM tab0
----
26
1827
6
97
86
1215

query I rowsort
SELECT ALL - col0 * + - col2 AS col1 FROM tab0 WHERE NULL = - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * - - col2 col1 FROM tab0 cor0
----
2632
5544
560

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 12
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT 14 * + - 79 + - + CAST( NULL AS SIGNED ) + 81 * + COUNT( + - col2 ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2312
SELECT DISTINCT 14 * + - 79 + - + CAST ( NULL AS INTEGER ) + 81 * + COUNT ( + - col2 ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + MAX( - ( col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + MAX ( - ( col2 ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ( - 66 ) + - + col2 + + col1 FROM tab2
----
-29
-38
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT + col0 + + col0 - + ( + 71 ) DIV - col1 FROM tab1
----
107
183
184

skipif mysql # not compatible
query I rowsort label-2315
SELECT + col0 + + col0 - + ( + 71 ) / - col1 FROM tab1
----
107
183
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT + col1 * + - ( + + col0 ) + col0 DIV + + col1 AS col1 FROM tab1
----
-408
-4276
-711

skipif mysql # not compatible
query I rowsort label-2316
SELECT + col1 * + - ( + + col0 ) + col0 / + + col1 AS col1 FROM tab1
----
-408
-4276
-711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL 39 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL 39 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL BETWEEN NULL AND + col2 )
----

query I rowsort
SELECT 40 * - - col1 + + + 68 + - 38 FROM tab2
----
2070
2710
3110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2320
SELECT ALL 14 - CAST( - - 80 AS SIGNED ) + 82 AS col1, col0 AS col0 FROM tab0 AS cor0
----
16
15
16
87
16
97

skipif mysql # not compatible
query II rowsort label-2320
SELECT ALL 14 - CAST ( - - 80 AS INTEGER ) + 82 AS col1, col0 AS col0 FROM tab0 AS cor0
----
16
15
16
87
16
97

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 72 + + 92 FROM tab1
----
20
20
20

query I rowsort
SELECT DISTINCT ( 24 ) * 36 + - col0 AS col0 FROM tab0
----
767
777
849

query I rowsort
SELECT DISTINCT - 13 - col0 FROM tab0
----
-100
-110
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT COUNT( * ) + + 88 FROM tab1 WHERE NULL BETWEEN NULL AND ( + col2 )
----
88

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT COUNT ( * ) + + 88 FROM tab1 WHERE NULL BETWEEN NULL AND ( + col2 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT + MAX( col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT + MAX ( col0 ) col1 FROM tab0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2327
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + col0 > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col0 > col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 73 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 72 ) + col0 * + 63 col0 FROM tab2
----
2970
4104
4797

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT - col2 + 57 DIV + col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2330
SELECT - col2 + 57 / + col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 51 + col1 AS col2 FROM tab2
----
102
118
128

query I rowsort
SELECT col2 + 76 FROM tab0
----
123
175
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col0 FROM tab1 WHERE + col0 < 38
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 50 * col1 ) IN ( col0 + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 84 ) NOT BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col1 FROM tab2 WHERE 43 * + col2 IS NOT NULL
----
61

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 + 94 * - 98 ) <= - 30 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - ( COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - col1 * 10 FROM tab2 cor0
----
-510
-670
-770

query I rowsort
SELECT + 84 * 45 FROM tab2 AS cor0
----
3780
3780
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL CAST( NULL AS SIGNED ) / ( COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL CAST ( NULL AS INTEGER ) / ( COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + COUNT( * ) * 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2343
SELECT + COUNT ( * ) * 81 FROM tab0 AS cor0
----
243

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / col0 + - 10 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT SUM( - 48 ) + + COUNT( - col2 ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT DISTINCT SUM ( - 48 ) + + COUNT ( - col2 ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT 96 + COUNT( * ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2346
SELECT DISTINCT 96 + COUNT ( * ) col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col1 + + 82 AS col1 FROM tab0 AS cor0
----
103
163
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2348
SELECT - col0 * col0 + CAST( - col2 AS SIGNED ) DIV - 77 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9408

skipif mysql # not compatible
query I rowsort label-2348
SELECT - col0 * col0 + CAST ( - col2 AS INTEGER ) / - 77 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9408

query I rowsort
SELECT ALL + 62 + 28 AS col1 FROM tab2 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab2 AS cor0 WHERE 61 + + col2 >= col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - COUNT( * ) + MIN( - 0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2351
SELECT - COUNT ( * ) + MIN ( - 0 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + - col1 col2 FROM tab0 AS cor0
----
-19
-79
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT + - COUNT( * ) + + CAST( 76 AS SIGNED ) * + 70 AS col0 FROM tab0 AS cor0
----
5317

skipif mysql # not compatible
query I rowsort label-2353
SELECT + - COUNT ( * ) + + CAST ( 76 AS INTEGER ) * + 70 AS col0 FROM tab0 AS cor0
----
5317

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT COUNT( * ) + 1 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-2354
SELECT COUNT ( * ) + 1 FROM tab2 cor0
----
4

query I rowsort
SELECT ALL + col0 + - 90 FROM tab0 AS cor0
----
-3
-75
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT - CAST( + col1 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2356
SELECT - CAST ( + col1 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 41 * col1 AS col2 FROM tab0 AS cor0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2359
SELECT ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2361
SELECT * FROM tab1 WHERE + col0 + 27 <> ( + CAST( NULL AS SIGNED ) / 28 )
----

skipif mysql # not compatible
query III rowsort label-2361
SELECT * FROM tab1 WHERE + col0 + 27 <> ( + CAST ( NULL AS INTEGER ) / 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT ( MIN( ALL col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT ( MIN ( ALL col2 ) ) FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col0 = NULL
----

query I rowsort
SELECT 66 AS col0 FROM tab0 WHERE col0 >= 54
----
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT + ( - + SUM( DISTINCT + col2 ) ) - + 96 FROM tab1
----
-319

skipif mysql # not compatible
query I rowsort label-2366
SELECT + ( - + SUM ( DISTINCT + col2 ) ) - + 96 FROM tab1
----
-319

query I rowsort
SELECT + - col2 - + col0 * col2 FROM tab0 cor0
----
-752
-880
-9702

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL + + MAX( - 39 ) AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + + MAX ( - 39 ) AS col0 FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT + - 49 + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-39
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 - + 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 AS col0, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2375
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 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-2376
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL CAST( - MAX( 62 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL CAST ( - MAX ( 62 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query II rowsort
SELECT + 47 AS col2, - 23 FROM tab2 AS cor0
----
47
-23
47
-23
47
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT - CAST( - - 18 AS SIGNED ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - CAST ( - - 18 AS INTEGER ) FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) = ( + ( col1 ) / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col1, col2 * - 5 * - col2 AS col2 FROM tab2 AS cor0
----
51
2645
67
16820
77
8000

query II rowsort
SELECT DISTINCT - col0 AS col2, + 44 * + - 22 FROM tab2 cor0
----
-46
-968
-64
-968
-75
-968

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT COUNT( * ) * 19 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT COUNT ( * ) * 19 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - SUM( 46 ) AS col0 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-2386
SELECT - SUM ( 46 ) AS col0 FROM tab2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT + CAST( + 22 AS SIGNED ) FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort label-2387
SELECT + CAST ( + 22 AS INTEGER ) FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT MIN( DISTINCT - 12 ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT MIN ( DISTINCT - 12 ) AS col1 FROM tab2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + - ( + + ( - col0 ) ) * - 51 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + - ( + + ( - col0 ) ) * - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - MIN( DISTINCT + 13 ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2390
SELECT - MIN ( DISTINCT + 13 ) AS col1 FROM tab1
----
-13

query I rowsort
SELECT DISTINCT - col1 - + ( col0 ) FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col1 * + - 76 FROM tab1 AS cor0
----
1064
3572
380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2393
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( + CAST( ( - col0 ) AS SIGNED ) <> + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2393
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( + CAST ( ( - col0 ) AS INTEGER ) <> + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 5, + col0 * + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT DISTINCT - col1 + - col0 + + 34 DIV + col1 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT - col1 + - col0 + + 34 / + col1 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL COUNT( * ) + + 99 AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL COUNT ( * ) + + 99 AS col2 FROM tab1
----
102

query I rowsort
SELECT 59 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - 51 + 75 FROM tab1 cor0 WHERE - 32 NOT IN ( + 64 * - 81 + + col1 - - col1 )
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT COUNT( * ) + - - SUM( DISTINCT - col2 ) * - + 97 + + 19 col1 FROM tab1 AS cor0
----
21653

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2399
SELECT DISTINCT COUNT ( * ) + - - SUM ( DISTINCT - col2 ) * - + 97 + + 19 col1 FROM tab1 AS cor0
----
21653

query I rowsort
SELECT 36 FROM tab1 AS cor0 WHERE ( + - col1 ) BETWEEN - - 32 - - - col1 AND + 51
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 29 - - + col1 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT - col0 * + col1 - - col2 FROM tab2 cor0
----
-2323
-4888
-4967

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT - - 42 DIV + 73 - - ( col0 ) + 59 * + col2 + + 93 * + col0 AS col1 FROM tab1 AS cor0
----
10458
11471
12566

skipif mysql # not compatible
query I rowsort label-2404
SELECT - - 42 / + 73 - - ( col0 ) + 59 * + col2 + + 93 * + col0 AS col1 FROM tab1 AS cor0
----
10458
11471
12566

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL col1, + col1, - col1 AS col0 FROM tab0
----
9 values hashing to fda466f1a3667aee83702c5849da76d1

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + ( 42 ) + + MAX( DISTINCT - - col1 ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-2407
SELECT + ( 42 ) + + MAX ( DISTINCT - - col1 ) FROM tab0
----
123

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT + - 75 NOT BETWEEN + - col2 / 3 AND ( col1 * + col2 )
----

query I rowsort
SELECT col0 * col2 + 80 FROM tab2
----
1138
2640
4430

query I rowsort
SELECT ALL 34 - + col1 AS col0 FROM tab0
----
-47
13
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 61 - col2 FROM tab2
----
21
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT - 78 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 78 * + col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL + col0 AS col1, - 4 FROM tab0
----
15
-4
87
-4
97
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT DISTINCT + col0 * col0 * + col1 + - col1 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
105570
310464
371850

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + col0 * col0 * + col1 + - col1 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
105570
310464
371850

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT + + MAX( + 3 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2416
SELECT + + MAX ( + 3 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * + + col0 * 66 + - col2 + - col2 FROM tab0 AS cor0
----
14756
499534
620796

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - MIN( col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2418
SELECT - MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 49 ) * + + col0 + + - col1 col1 FROM tab2
----
2203
3059
3608

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 23 + + + col1 < ( + ( + col0 ) + + + 12 * - 8 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 90 * - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * col0 + - 26 FROM tab1 AS cor0
----
2575
7199
8255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 77, col1 * + - col1 col1 FROM tab2 AS cor0
----
3927
-2601
5159
-4489
5929
-5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * 80 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-2425
SELECT ALL * FROM tab2 WHERE NOT + - col1 NOT IN ( + 2 * col0 DIV 52 * - + col1 )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-2425
SELECT ALL * FROM tab2 WHERE NOT + - col1 NOT IN ( + 2 * col0 / 52 * - + col1 )
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + MAX( ALL col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + MAX ( ALL col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2427
SELECT + 17 * - CAST( + 90 AS SIGNED ) AS col2, + 46 + + col2 * - col0 + - col0 FROM tab0
----
-1530
-674
-1530
-911
-1530
-9654

skipif mysql # not compatible
query II rowsort label-2427
SELECT + 17 * - CAST ( + 90 AS INTEGER ) AS col2, + 46 + + col2 * - col0 + - col0 FROM tab0
----
-1530
-674
-1530
-911
-1530
-9654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL - COUNT( DISTINCT CAST( + 41 AS SIGNED ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - COUNT ( DISTINCT CAST ( + 41 AS INTEGER ) ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + 59 + - ( col0 ) FROM tab2
----
-16
-5
13

query I rowsort
SELECT ALL + ( - col0 ) + + 30 AS col1 FROM tab0 AS cor0
----
-57
-67
15

query I rowsort
SELECT + ( - + col0 ) FROM tab0 AS cor0 WHERE - 1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2432
SELECT * FROM tab0 AS cor0 WHERE ( + + col2 ) * - - CAST( - - col1 AS SIGNED ) NOT IN ( - ( + - ( 7 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2432
SELECT * FROM tab0 AS cor0 WHERE ( + + col2 ) * - - CAST ( - - col1 AS INTEGER ) NOT IN ( - ( + - ( 7 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2433
SELECT * FROM tab0 WHERE ( NOT ( + - col0 * - col0 * + CAST( + + 21 AS SIGNED ) = ( 46 * - col0 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2433
SELECT * FROM tab0 WHERE ( NOT ( + - col0 * - col0 * + CAST ( + + 21 AS INTEGER ) = ( 46 * - col0 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT + - ( COUNT( ALL 69 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2434
SELECT + - ( COUNT ( ALL 69 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col2 + + 55 FROM tab0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT - 58 + COUNT( col0 ) AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 58 + COUNT ( col0 ) AS col0 FROM tab0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT + + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT + + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL - CAST( NULL AS SIGNED ) + 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - CAST ( NULL AS INTEGER ) + 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT + 17 + COUNT( * ) AS col0, COUNT( * ) * - 55 * + MAX( + col0 ) FROM tab1 cor0
----
20
-15015

skipif mysql # not compatible
query II rowsort label-2439
SELECT + 17 + COUNT ( * ) AS col0, COUNT ( * ) * - 55 * + MAX ( + col0 ) FROM tab1 cor0
----
20
-15015

query I rowsort
SELECT ALL + 54 + col1 AS col1 FROM tab0 cor0 WHERE ( NULL ) = + + col1
----

query II rowsort
SELECT + col1 + + 66 * + col0, + 25 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1071
25
5763
25
6403
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * + 88 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 * - col0 + + - col0 col1 FROM tab1 WHERE NULL < + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT DISTINCT + CAST( + - 50 AS SIGNED ) - 1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + CAST ( + - 50 AS INTEGER ) - 1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT MIN( + 33 ) * - + 5 AS col1 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT MIN ( + 33 ) * - + 5 AS col1 FROM tab0
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL + CAST( NULL AS SIGNED ) / + - COUNT( + + 86 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + CAST ( NULL AS INTEGER ) / + - COUNT ( + + 86 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 86 AS col1 FROM tab2
----
3956
5504
6450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2450
SELECT ALL ( + CAST( - 5 AS SIGNED ) ) DIV - 27 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL ( + CAST ( - 5 AS INTEGER ) ) / - 27 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT COUNT( * ) AS col0, + 33 FROM tab0
----
3
33

skipif mysql # not compatible
query II rowsort label-2451
SELECT COUNT ( * ) AS col0, + 33 FROM tab0
----
3
33

query I rowsort
SELECT - col1 * - col1 * + col2 AS col1 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT MAX ( + col1 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL - col0 AS col2, 41 + - + 60 * + + col2 / + col2 * + col0 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 21 * + - col0 * 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + MAX( ALL + + 92 ) FROM tab0 cor0
----
92

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + MAX ( ALL + + 92 ) FROM tab0 cor0
----
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 * - 7 * col1 <= + col0 * 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2457
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT 42 AS col2, - col2 * + col0 AS col1 FROM tab0
----
42
-705
42
-870
42
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 < + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + 51 / + ( - 91 ) FROM tab1 AS cor0 WHERE NOT NULL > 77 + - - ( + 74 )
----

query II rowsort
SELECT - col2 AS col2, col2 * + col1 FROM tab1 cor0
----
-59
295
-68
3196
-96
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + 86 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + 86 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 57 AS col0, 4 col0 FROM tab2 cor0
----
57
4
57
4
57
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2464
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) * 71 / 89 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2464
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) * 71 / 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 2 + col0 * - col0 AND NULL
----

query I rowsort
SELECT col0 * - ( - col0 ) * - col0 * col1 AS col2 FROM tab1
----
-1857114
-3070625
-35417837

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN - col2 * + + ( col0 ) + + - col0 AND + + 85 + 21 )
----

query III rowsort
SELECT * FROM tab1 WHERE + + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 26 + + col0 * 16 AS col0 FROM tab2 cor0
----
1050
1226
762

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + - + 14 + 34 + + col0 FROM tab1 AS cor0
----
110
158
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + SUM( ALL - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2472
SELECT + SUM ( ALL - col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2474
SELECT + 9 + + CAST( NULL AS SIGNED ), 21 + col0 FROM tab2 WHERE - 12 + + col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-2474
SELECT + 9 + + CAST ( NULL AS INTEGER ), 21 + col0 FROM tab2 WHERE - 12 + + col0 > NULL
----

query I rowsort
SELECT + 0 * - ( + col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - 3 FROM tab2
----
153
201
231

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL COUNT( * ) * + + COUNT( * ) col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2478
SELECT ALL COUNT ( * ) * + + COUNT ( * ) col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL col0 + - + 9 FROM tab2 cor0
----
37
55
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) * - 90 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2480
SELECT DISTINCT - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) * - 90 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-810

query I rowsort
SELECT + col2 - + - 40 + - 20 * - + ( - col2 ) * - col2 + - col1 FROM tab1 AS cor0
----
184442
69714
92541

query I rowsort
SELECT - col2 - - 51 + + 90 AS col2 FROM tab0 AS cor0
----
131
42
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT + col2 + - + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2483
SELECT + col2 + - + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT DISTINCT + - MAX( col2 ) - + 67 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-166
3

skipif mysql # not compatible
query II rowsort label-2484
SELECT DISTINCT + - MAX ( col2 ) - + 67 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-166
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <> + - ( col1 ) - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL ( - MAX( + + col2 ) ) + - ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL ( - MAX ( + + col2 ) ) + - ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT col0 + - ( + col1 ) * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT col0 + - ( + col1 ) * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 66 + - 6 FROM tab0 WHERE - - col2 BETWEEN + 83 * - 67 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 * col2 AS col2 FROM tab0
----
-1000
-103823
-970299

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 WHERE NOT - 31 <> + col1 + 66
----

query I rowsort
SELECT ALL + + 27 AS col0 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2493
SELECT + 15 * - COUNT( * ), - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-45
-3

skipif mysql # not compatible
query II rowsort label-2493
SELECT + 15 * - COUNT ( * ), - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-45
-3

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 85 <> col1 * col0 - - col1 AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - COUNT( * ) * - COUNT( * ) * + + 88 FROM tab1 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-2495
SELECT - COUNT ( * ) * - COUNT ( * ) * + + 88 FROM tab1 AS cor0
----
792

query II rowsort
SELECT col1 AS col2, 80 FROM tab0 AS cor0
----
1
80
21
80
81
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + col1 col0 FROM tab1 AS cor0
----
103
61
70

query I rowsort
SELECT - col0 + col0 * + col1 * + - col2 FROM tab0 AS cor0
----
-18357
-57120
-9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT 11 + + ( 13 ) + CAST( 38 AS SIGNED ) FROM tab1 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-2499
SELECT 11 + + ( 13 ) + CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
62
62
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT COUNT( * ) + - COUNT( ALL col1 ) + 40 AS col0 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-2501
SELECT COUNT ( * ) + - COUNT ( ALL col1 ) + 40 AS col0 FROM tab2
----
40

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 <> - + ( + 63 )
----

query II rowsort
SELECT ALL - col0 AS col2, 7 FROM tab0
----
-15
7
-87
7
-97
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT ALL 45 DIV + col1 AS col2 FROM tab0
----
0
2
45

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL 45 / + col1 AS col2 FROM tab0
----
0
2
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT SUM( DISTINCT 57 ) col1 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2506
SELECT DISTINCT SUM ( DISTINCT 57 ) col1 FROM tab2
----
57

query II rowsort
SELECT DISTINCT - 58, + col2 * + - col0 + - - 96 AS col2 FROM tab2
----
-58
-2464
-58
-4254
-58
-962

query I rowsort
SELECT DISTINCT - col2 + + ( 15 ) FROM tab0
----
-32
-84
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL MAX( DISTINCT + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL MAX ( DISTINCT + col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - COUNT( DISTINCT - - 0 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2510
SELECT - COUNT ( DISTINCT - - 0 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT - col0 AS col1, 52 + - + 23 FROM tab0 AS cor0
----
-15
29
-87
29
-97
29

query I rowsort
SELECT DISTINCT + col0 + + 14 FROM tab0 AS cor0
----
101
111
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT - + COUNT( * ) + + + SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT - + COUNT ( * ) + + + SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL - col1 - col1 + - - col1 * + 90 FROM tab0 AS cor0
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT MIN( ALL - ( - col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT MIN ( ALL - ( - col0 ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + col1 - - col2 + - 4 FROM tab2
----
113
121
70

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT 28 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 99 )
----

query I rowsort
SELECT + 2 + 60 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT 85 * COUNT( * ) AS col0, 85 FROM tab1 AS cor0
----
255
85

skipif mysql # not compatible
query II rowsort label-2521
SELECT 85 * COUNT ( * ) AS col0, 85 FROM tab1 AS cor0
----
255
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 78 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + - col0 - col2 AS col1 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL < NULL
----
0

query II rowsort
SELECT - 16 AS col1, 91 + - 37 FROM tab1
----
-16
54
-16
54
-16
54

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 85 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 24 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 99 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL + col2 AS col1 FROM tab1 WHERE + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + col2 AS col1 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT - 59 DIV - ( + COUNT( * ) ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - 59 / - ( + COUNT ( * ) ) FROM tab1
----
19

query I rowsort
SELECT ALL + 20 * + col1 AS col1 FROM tab2
----
1020
1340
1540

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0 WHERE NOT col1 <= + + ( + col2 )
----
21
81

query II rowsort
SELECT DISTINCT + col1 + - col0 AS col2, - 50 FROM tab2 AS cor0
----
-8
-50
13
-50
5
-50

query I rowsort
SELECT ALL 35 + - + col0 FROM tab1 AS cor0
----
-16
-50
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( col2 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col1 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT - COUNT( * ) * - 7 * 65 AS col2 FROM tab1
----
1365

skipif mysql # not compatible
query I rowsort label-2539
SELECT - COUNT ( * ) * - 7 * 65 AS col2 FROM tab1
----
1365

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 11 FROM tab2
----
253
440
638

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT ALL + col0 DIV 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + col0 / 39 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT + 76 AS col2, - col2 FROM tab0
----
76
-10
76
-47
76
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT DISTINCT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT + col0 + + + 71 - col0 + + ( + ( col0 ) ) + + 80 + - - 20 FROM tab0
----
186
258
268

query I rowsort
SELECT - 73 + - col1 AS col2 FROM tab1
----
-120
-78
-87

query II rowsort
SELECT DISTINCT 79, + col1 FROM tab0
----
79
1
79
21
79
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT DISTINCT CAST( 66 AS SIGNED ) + col0 + - + col2 + - 70 AS col0 FROM tab2
----
13
19
20

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT CAST ( 66 AS INTEGER ) + col0 + - + col2 + - 70 AS col0 FROM tab2
----
13
19
20

query I rowsort
SELECT DISTINCT - - 39 + + ( 40 ) * - - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-7801
-88321
-961

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT - col0 + - col1 DIV - + ( col1 ) FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-2552
SELECT - col0 + - col1 / - + ( col1 ) FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT ALL + 21 + + col2 AS col1 FROM tab2 AS cor0
----
44
61
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2554
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, CAST( NULL AS SIGNED ) + + - COUNT( DISTINCT - + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2554
SELECT ALL CAST ( NULL AS REAL ) AS col1, CAST ( NULL AS INTEGER ) + + - COUNT ( DISTINCT - + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL

query II rowsort
SELECT + col2, - 15 + - col0 * + - col0 - + col2 * + + col1 FROM tab2
----
23
928
40
1001
58
1724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2556
SELECT ALL - 55, CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT ALL - 55, CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
-55
NULL

query I rowsort
SELECT ALL - ( + 32 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2558
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 / 64 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - CAST ( NULL AS REAL ) * col2 / 64 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col1 ) + + ( + 5 ) + 47 AS col2 FROM tab2
----
103
119
129

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 25 > col2 * + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT MAX( + col2 ) DIV + COUNT( ALL - ( - col2 ) ) + COUNT( ALL col1 ) + + + 80 AS col2 FROM tab1 cor0
----
115

skipif mysql # not compatible
query I rowsort label-2562
SELECT MAX ( + col2 ) / + COUNT ( ALL - ( - col2 ) ) + COUNT ( ALL col1 ) + + + 80 AS col2 FROM tab1 cor0
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT + COUNT( * ) AS col0, - MIN( ALL + col0 ) AS col1 FROM tab2 cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-2563
SELECT + COUNT ( * ) AS col0, - MIN ( ALL + col0 ) AS col1 FROM tab2 cor0
----
3
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - - MAX( ALL - - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2564
SELECT - - MAX ( ALL - - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT COUNT( * ) * - - 77 AS col0 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT COUNT ( * ) * - - 77 AS col0 FROM tab0 AS cor0
----
231

query I rowsort
SELECT + 73 AS col1 FROM tab0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab2
----
46
46
46

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL < - - col0 * + col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT MAX( 23 ) FROM tab1 WHERE + col2 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT MAX ( 23 ) FROM tab1 WHERE + col2 IS NOT NULL
----
23

query II rowsort
SELECT + ( - col1 ) AS col2, col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT - 1 * + ( + 96 ) FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT + CAST( NULL AS SIGNED ) * - 22, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2572
SELECT + CAST ( NULL AS INTEGER ) * - 22, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 61 * + - 6 + + + col2 FROM tab0 AS cor0
----
-267
-319
-356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col2 * - col1 * + 63 - - col2 col0 FROM tab2
----
-51
-73876
-67
-244760
-77
-194000

query I rowsort
SELECT - - col0 * + - ( col1 ) * - + col2 + + col1 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT + col1 + - col2 DIV - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
21
81

skipif mysql # not compatible
query I rowsort label-2576
SELECT + col1 + - col2 / - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
21
81

query I rowsort
SELECT col2 + + 4 AS col1 FROM tab0 cor0
----
103
14
51

query I rowsort
SELECT DISTINCT - 68 + + + col2 * + - 97 AS col2 FROM tab0 AS cor0
----
-1038
-4627
-9671

query II rowsort
SELECT ALL - col2 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / + col1, col0, + col1 + - + col2 - - col0 - - - 50 * - col2 / - - 46 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT + + MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2581
SELECT + + MIN ( col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT 84 * COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT 84 * COUNT ( * ) FROM tab2
----
252

query I rowsort
SELECT + 72 * - col0 AS col0 FROM tab2
----
-3312
-4608
-5400

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 / - col0 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= ( - + 84 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT COUNT( * ) - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT COUNT ( * ) - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 44 + col1 AS col0 FROM tab0 AS cor0
----
125
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT COUNT( * ) - + + 47 AS col0 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT COUNT ( * ) - + + 47 AS col0 FROM tab2
----
-44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 62 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + - 76 FROM tab2 AS cor0
----
-1748
-3040
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL - MAX( DISTINCT - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - MAX ( DISTINCT - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - col1 ) <> - + 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT col0 AS col2, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2596
SELECT ALL + - 60, COUNT( * ) AS col2 FROM tab2 WHERE + 53 + + CAST( NULL AS SIGNED ) <= + 67
----
-60
0

skipif mysql # not compatible
query II rowsort label-2596
SELECT ALL + - 60, COUNT ( * ) AS col2 FROM tab2 WHERE + 53 + + CAST ( NULL AS INTEGER ) <= + 67
----
-60
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2597
SELECT CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-2597
SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT SUM( 62 ) AS col1 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-2598
SELECT SUM ( 62 ) AS col1 FROM tab0
----
186

query II rowsort
SELECT col1 AS col0, - col0 AS col1 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL - col1 * - - ( + - 20 ) * + col2 FROM tab0
----
1980
4200
76140

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT DISTINCT MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT MIN ( + col0 ) FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT DISTINCT + 85, - 3 * - COUNT( * ) AS col2 FROM tab0 cor0
----
85
9

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT + 85, - 3 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
85
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + 3 + + col2 col2 FROM tab0 AS cor0
----
-196
-53
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT MAX( DISTINCT - 86 ) AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT MAX ( DISTINCT - 86 ) AS col0 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT 49 + col1 AS col1 FROM tab0
----
130
50
70

query I rowsort
SELECT + 0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - ( - - col1 ) + col2 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 / - col1 * + 80 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - 14 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 60 * + - col1 >= NULL
----

query I rowsort
SELECT ALL 74 + - - col0 FROM tab0 AS cor0
----
161
171
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + - col0 * + - col2 col0, col0 * - col2 FROM tab1
----
-249696
-4896
-426275
-5015
-563108
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT col1 + + - 6 + + col2 DIV - 66 AS col2 FROM tab2
----
45
61
71

skipif mysql # not compatible
query I rowsort label-2615
SELECT col1 + + - 6 + + col2 / - 66 AS col2 FROM tab2
----
45
61
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - MIN( DISTINCT + col2 ) * - CAST( NULL AS SIGNED ) * - COUNT( ALL 19 ) + + MIN( ALL - ( col2 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - MIN ( DISTINCT + col2 ) * - CAST ( NULL AS INTEGER ) * - COUNT ( ALL 19 ) + + MIN ( ALL - ( col2 ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT COUNT( * ) + + - 1 col2 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2617
SELECT COUNT ( * ) + + - 1 col2 FROM tab2
----
2

query I rowsort
SELECT + col0 + - col1 + - col0 - - col2 AS col0 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT ALL + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 + 24 FROM tab1
----
120
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 NOT BETWEEN - ( - CAST( - + 72 AS SIGNED ) ) * + 74 + - col2 AND - col1
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 NOT BETWEEN - ( - CAST ( - + 72 AS INTEGER ) ) * + 74 + - col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT - COUNT( * ) * 62 AS col2 FROM tab0 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT - COUNT ( * ) * 62 AS col2 FROM tab0 cor0
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT + COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2623
SELECT + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT ALL - col1 * + - col2 AS col2, - col1 AS col0 FROM tab1
----
1344
-14
295
-5
3196
-47

query I rowsort
SELECT ALL - 30 * - + 48 AS col2 FROM tab2
----
1440
1440
1440

onlyif mysql # DIV for integer division: 
query II rowsort label-2626
SELECT DISTINCT + col1 DIV col0 AS col0, 88 * - ( + + col1 ) FROM tab0
----
0
-1848
0
-88
5
-7128

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT + col1 / col0 AS col0, 88 * - ( + + col1 ) FROM tab0
----
0
-1848
0
-88
5
-7128

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT col0 DIV col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2627
SELECT col0 / col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * + 96 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2629
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * + 96 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT - SUM( + ( + ( col1 ) ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - SUM ( + ( + ( col1 ) ) ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL MAX( ALL col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL MAX ( ALL col1 ) FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + + 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 17 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + - 89 AS col1 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL - col1 * + col1 * col0 AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT + + SUM( ALL col1 ) * - MAX( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-9991

skipif mysql # not compatible
query I rowsort label-2638
SELECT + + SUM ( ALL col1 ) * - MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-9991

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2639
SELECT 40 DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2639
SELECT 40 / - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-33
-33
-33

query I rowsort
SELECT - 60 * + + 53 + 0 * col1 + - 78 FROM tab0 AS cor0
----
-3258
-3258
-3258

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2642
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( 54 AS DECIMAL ) + + 35 + + + 34 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2642
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( 54 AS REAL ) + + 35 + + + 34 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col1 ) ) col0 FROM tab0 cor0 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 - + col2 + + + col1 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT ALL - ( - - col2 ) AS col1 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) + + - col0 < + - col1
----

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - ( - - col2 ) AS col1 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) + + - col0 < + - col1
----

query I rowsort
SELECT ALL + col1 * - col1 * + col2 AS col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT col1 - - + CAST( ( + col0 ) AS SIGNED ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT col1 - - + CAST ( ( + col0 ) AS INTEGER ) FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE - col1 * - - 46 - + col1 NOT IN ( col1, - col1, - 47 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT - COUNT( ALL + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT - COUNT ( ALL + col0 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * + + col2 FROM tab2
----
-1288
-2368
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT col2 * - 79 - + - 50 * + CAST( + ( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-12671
-4463
-5140

skipif mysql # not compatible
query I rowsort label-2652
SELECT col2 * - 79 - + - 50 * + CAST ( + ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
-12671
-4463
-5140

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT + - COUNT( * ) * 78 FROM tab0 WHERE NOT col2 NOT IN ( + 40, 43, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + - COUNT ( * ) * 78 FROM tab0 WHERE NOT col2 NOT IN ( + 40, 43, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NULL NOT IN ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT - MIN( ALL - col1 ) * - + 87 col2 FROM tab0 AS cor0
----
-7047

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT - MIN ( ALL - col1 ) * - + 87 col2 FROM tab0 AS cor0
----
-7047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 + - col0 NOT IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT + 30 DIV + - 18 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2658
SELECT + 30 / + - 18 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL ( + COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2659
SELECT ALL ( + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL + MIN( ALL - 14 ) col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2660
SELECT ALL + MIN ( ALL - 14 ) col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL + col2 * col1 * + col2 + 78 FROM tab1 AS cor0
----
129102
17483
217406

query I rowsort
SELECT ALL - - col0 * - - 63 + + 80 FROM tab1 AS cor0
----
3293
5435
5813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT col2 FROM tab0 cor0 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2663
SELECT col2 FROM tab0 cor0 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - col1 * - - col2 + + + col0 * 44 AS col2 FROM tab0 AS cor0
----
4038
4367
4467

query II rowsort
SELECT - + 71 * + col0 AS col0, - col0 FROM tab0 WHERE NOT + 36 * - 92 / + - col0 IS NULL
----
-1065
-15
-6177
-87
-6887
-97

query I rowsort
SELECT DISTINCT 50 * - col1 FROM tab1
----
-2350
-250
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT DISTINCT + col0 + 10 DIV - 29 * + 4 + col0 * + col1 FROM tab2
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT + col0 + 10 / - 29 * + 4 + col0 * + col1 FROM tab2
----
2392
4992
5100

onlyif mysql # DIV for integer division: 
query II rowsort label-2668
SELECT col1 DIV col1 AS col2, - 93 * - 69 FROM tab1
----
1
6417
1
6417
1
6417

skipif mysql # not compatible
query II rowsort label-2668
SELECT col1 / col1 AS col2, - 93 * - 69 FROM tab1
----
1
6417
1
6417
1
6417

query I rowsort
SELECT 94 + + - col1 AS col2 FROM tab1 cor0
----
47
80
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col0 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT + - ( + + 40 ) + ( 19 ) + - 61 AS col0 FROM tab0 cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + 60 + - ( + - 45 ) * - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9f0ace34a06b88c673d41f9852ed3407

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT + 44 * COUNT( * ) + + - ( ( - + ( COUNT( * ) ) ) ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + 44 * COUNT ( * ) + + - ( ( - + ( COUNT ( * ) ) ) ) FROM tab2 AS cor0
----
135

query I rowsort
SELECT ALL 75 + 54 + 36 * 85 FROM tab1 AS cor0
----
3189
3189
3189

query I rowsort
SELECT ALL + col0 * - 88 + - col1 - + 3 AS col2 FROM tab1 AS cor0
----
-4505
-7488
-8058

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 91 + col0 AS col1 FROM tab0 AS cor0
----
106
178
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + COUNT( * ) + + + MIN( DISTINCT + + col2 ) * COUNT( * ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + COUNT ( * ) + + + MIN ( DISTINCT + + col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT DISTINCT + 2 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - col0 * - + col1 + - ( + + col2 ) + - - 4 + col2 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
4281
-47
429
-5
718
-14

query I rowsort
SELECT - + col0 + + + col1 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 NOT BETWEEN - col1 AND + col2 * + - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 49 FROM tab1 WHERE + + ( col2 ) IS NOT NULL
----
-49
-49
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2684
SELECT DISTINCT - 84 AS col2, + col1 * col2 DIV + - col1 FROM tab1
----
-84
-59
-84
-68
-84
-96

skipif mysql # not compatible
query II rowsort label-2684
SELECT DISTINCT - 84 AS col2, + col1 * col2 / + - col1 FROM tab1
----
-84
-59
-84
-68
-84
-96

query I rowsort
SELECT ALL 96 * + + col2 + - col0 FROM tab2 cor0
----
2162
3776
5493

query I rowsort
SELECT - - 12 * - - col0 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
3550620
5049408
5640192

query I rowsort
SELECT ALL 19 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> - col2
----

query II rowsort
SELECT col0, 17 FROM tab1 cor0
----
51
17
85
17
91
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT - ( - 86 ) DIV + - col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT - ( - 86 ) / + - col0 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 / + col0, + 64 + - - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT + 79 - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 79 - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query I rowsort
SELECT ALL + 47 * + col1 + - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-149
3745
890

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + 18 * - ( - - 10 ) FROM tab2 AS cor0
----
-180
-180
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - - col1, col0 * - col0 + 9 col2 FROM tab1 AS cor0
----
196
-2592
2209
-8272
25
-7216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT DISTINCT - MIN( - col1 ) + - 31 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 61 / - CAST( + + col0 AS SIGNED ) - - - col0 >= - - col0 )
----
46

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT - MIN ( - col1 ) + - 31 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 61 / - CAST ( + + col0 AS INTEGER ) - - - col0 >= - - col0 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2697
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2697
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + + COUNT( * ) + + ( - SUM( ALL - 19 ) ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2699
SELECT + + COUNT ( * ) + + ( - SUM ( ALL - 19 ) ) FROM tab0 AS cor0
----
60

query I rowsort
SELECT - - col1 + + 60 AS col1 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2701
SELECT * FROM tab0 cor0 WHERE NOT ( 18 + + CAST( NULL AS SIGNED ) / col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-2701
SELECT * FROM tab0 cor0 WHERE NOT ( 18 + + CAST ( NULL AS INTEGER ) / col0 IS NULL )
----

query I rowsort
SELECT - 7 + + col2 FROM tab0 cor0
----
3
40
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 - col0 AND + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( col2 ) * + col2 + - col0 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( col2 ) * + col2 + - col0 * + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col2 FROM tab2
----
83
83
83

query I rowsort
SELECT DISTINCT - ( + 21 ) AS col0 FROM tab2
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2708
SELECT + col0, 85 + - + col0 DIV + col0 AS col1 FROM tab1
----
51
84
85
84
91
84

skipif mysql # not compatible
query II rowsort label-2708
SELECT + col0, 85 + - + col0 / + col0 AS col1 FROM tab1
----
51
84
85
84
91
84

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - 55 + + 4 IS NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN NULL AND - 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT + col2 DIV 62 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2711
SELECT + col2 / 62 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT - col2 * + 65 AS col0 FROM tab1 AS cor0 WHERE + col1 = - col2 + + - col2
----

query II rowsort
SELECT - col2, - col0 + - - col2 * + col0 AS col0 FROM tab2 cor0
----
-23
1012
-40
2496
-58
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT ALL - + col0 DIV col2 DIV - 97 + + 90 + - + col2 FROM tab2 AS cor0
----
32
50
67

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - + col0 / col2 / - 97 + + 90 + - + col2 FROM tab2 AS cor0
----
32
50
67

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE + - col0 IS NULL AND NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 - + 32 FROM tab1 AS cor0
----
19
53
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2717
SELECT + 27 + + + COUNT( * ) col1, ( + 67 ) + COUNT( - - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
30
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2717
SELECT + 27 + + + COUNT ( * ) col1, ( + 67 ) + COUNT ( - - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + SUM( - col1 ) FROM tab0 cor0 WHERE - col1 = col2 * + 72 / 77 + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT + SUM ( - col1 ) FROM tab0 cor0 WHERE - col1 = col2 * + 72 / 77 + - 24
----
NULL

query I rowsort
SELECT ALL - col1 * col1 - col0 + 81 - - col0 AS col2 FROM tab2 AS cor0
----
-2520
-4408
-5848

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + COUNT( * ) + - COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT + COUNT ( * ) + - COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 * - - col0 col2 FROM tab0 AS cor0
----
-1335
-7743
-8633

query I rowsort
SELECT DISTINCT col2 * + 66 + + ( + 29 ) - - col0 FROM tab0 cor0
----
3146
6660
776

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 AS col1, 8 * 58 col1 FROM tab0
----
9
464
9
464
9
464

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT + 18 * + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2727
SELECT + 18 * + COUNT ( * ) FROM tab2
----
54

query I rowsort
SELECT DISTINCT ( 40 ) AS col1 FROM tab2
----
40

query II rowsort
SELECT col0, - col1 * - 14 * - col0 AS col0 FROM tab1
----
51
-9996
85
-5950
91
-59878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT 99 - + ( + - COUNT( * ) ) FROM tab2 WHERE NOT col1 * + + CAST( NULL AS SIGNED ) <= - 26
----
99

skipif mysql # not compatible
query I rowsort label-2730
SELECT 99 - + ( + - COUNT ( * ) ) FROM tab2 WHERE NOT col1 * + + CAST ( NULL AS INTEGER ) <= - 26
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2731
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + 76 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + 76 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 * + - col1 NOT BETWEEN - + col0 * - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2732
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 * + - col1 NOT BETWEEN - + col0 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2733
SELECT DISTINCT - + COUNT( * ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2733
SELECT DISTINCT - + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT ALL - - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 14 BETWEEN col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + 65 - + 57 * COUNT( * ) FROM tab0 WHERE NOT NULL <> ( 4 * - col2 + - + col2 )
----
65

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 65 - + 57 * COUNT ( * ) FROM tab0 WHERE NOT NULL <> ( 4 * - col2 + - + col2 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2737
SELECT ALL * FROM tab2 AS cor0 WHERE 46 / + - col1 * CAST( - - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2737
SELECT ALL * FROM tab2 AS cor0 WHERE 46 / + - col1 * CAST ( - - col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 72 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 72 IS NOT NULL
----
0

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT COUNT( * ) * + COUNT( * ) * 8 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2740
SELECT COUNT ( * ) * + COUNT ( * ) * 8 AS col1 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT COUNT( DISTINCT 55 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2741
SELECT COUNT ( DISTINCT 55 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT + 5 + ( + + col1 ) + 55 FROM tab0
----
141
61
81

query II rowsort
SELECT DISTINCT + col2 * col0 + - ( - - 33 ) / - 59 * col0, - 22 FROM tab1 WHERE ( NOT NULL > col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2744
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2, - 2 FROM tab1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2744
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2, - 2 FROM tab1
----
NULL
-2

query I rowsort
SELECT - col1 * col1 * col1 + + col1 FROM tab2
----
-132600
-300696
-456456

query I rowsort
SELECT + 59 + + 61 FROM tab1 AS cor0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL COUNT( * ) - - + MIN( + 32 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL COUNT ( * ) - - + MIN ( + 32 ) FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT + COUNT( ALL - 90 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2748
SELECT + COUNT ( ALL - 90 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 31 col0 FROM tab1
----
-1581
-2635
-2821

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 19 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 92 + + 98 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT - 93 AS col0 FROM tab0 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + MIN( + 82 ) FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-2753
SELECT + MIN ( + 82 ) FROM tab2 cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT - 77 * + CAST( - col2 AS SIGNED ) FROM tab0
----
3619
7623
770

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 77 * + CAST ( - col2 AS INTEGER ) FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT + SUM( col0 ) AS col0, 25 AS col2 FROM tab2
----
185
25

skipif mysql # not compatible
query II rowsort label-2755
SELECT + SUM ( col0 ) AS col0, 25 AS col2 FROM tab2
----
185
25

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2756
SELECT * FROM tab1 WHERE NOT + col0 * - + CAST( + - col0 AS DECIMAL ) = + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2756
SELECT * FROM tab1 WHERE NOT + col0 * - + CAST ( + - col0 AS REAL ) = + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 * - col2, + col0 AS col2 FROM tab0
----
100
87
2209
15
9801
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL - - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT - 21 DIV ( - + 14 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 21 / ( - + 14 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL >= 1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2761
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL >= 1
----
0

query I rowsort
SELECT DISTINCT 29 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + + 99 ) * + - ( + - 79 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-7821

query I rowsort
SELECT + + 78 + + - col0 FROM tab1 cor0
----
-13
-7
27

query I rowsort
SELECT + col1 * + + 3 * - - 37 + - 62 + - - col0 * + col2 * + - col1 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1235412
-16896667
-7876275

query I rowsort
SELECT + - col2 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1
----

query II rowsort
SELECT DISTINCT col1 * - 72 * + - col1 + - ( + 32 ) * + - col0 AS col2, col1 AS col2 FROM tab0
----
3176
1
34536
21
472872
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 < - col1 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + COUNT( col1 ) * + SUM( ALL 39 ) AS col2 FROM tab0
----
351

skipif mysql # not compatible
query I rowsort label-2770
SELECT + COUNT ( col1 ) * + SUM ( ALL 39 ) AS col2 FROM tab0
----
351

query III rowsort
SELECT DISTINCT col1, + col2 AS col2, + - col0 FROM tab2
----
9 values hashing to 56969d3dc7cd30808e226727850d654d

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT COUNT( * ) * + - 32 * 54 AS col2 FROM tab1
----
-5184

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT COUNT ( * ) * + - 32 * 54 AS col2 FROM tab1
----
-5184

query I rowsort
SELECT col0 + + - col0 * + 77 / col2 * + - col2 FROM tab2 WHERE + + ( + + col0 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0, 85 + - + col2 FROM tab1
----
51
-11
85
26
91
17

query I rowsort
SELECT DISTINCT - 20 * - col2 * + - col2 * + col1 FROM tab2
----
-2464000
-4507760
-539580

query I rowsort
SELECT DISTINCT 52 * + col2 + + ( + col2 ) FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT 22 - - COUNT( + + 23 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2777
SELECT 22 - - COUNT ( + + 23 ) FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT + - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

query III rowsort
SELECT col2 * - col1 AS col2, + 98 AS col2, - + col0 + + - col1 + col1 * - col1 * - 28 * + col1 AS col2 FROM tab1
----
9 values hashing to 65320c31b41610a06fb3cd04d92c8364

query II rowsort
SELECT DISTINCT - ( + - 45 ) AS col1, col0 FROM tab0 AS cor0
----
45
15
45
87
45
97

query I rowsort
SELECT ALL - + 61 * - - 73 / + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + - 24 * - col2, - ( + col2 ) AS col1 FROM tab2 cor0
----
1392
-58
552
-23
960
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2783
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 NOT BETWEEN - 10 AND - - col0 * - 13 / CAST( NULL AS SIGNED ) + - + col1 + - 55 + - col2 / + col0
----

skipif mysql # not compatible
query III rowsort label-2783
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 NOT BETWEEN - 10 AND - - col0 * - 13 / CAST ( NULL AS INTEGER ) + - + col1 + - 55 + - col2 / + col0
----

query I rowsort
SELECT ALL + 7 * + col1 * - 94 + - + ( - ( + + col0 ) ) FROM tab2 AS cor0
----
-33512
-44011
-50602

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT - col1 DIV 61 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - col1 / 61 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL ( + - MAX( ALL + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL ( + - MAX ( ALL + col0 ) ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2788
SELECT * FROM tab2 WHERE NOT + 91 <= - ( - 15 ) + + col0 * CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2788
SELECT * FROM tab2 WHERE NOT + 91 <= - ( - 15 ) + + col0 * CAST ( - - col0 AS INTEGER )
----

query II rowsort
SELECT col2, - col2 * - - col0 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT - col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * - - col0 IS NULL
----

query II rowsort
SELECT col0, + col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL - + MAX( - 22 ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - + MAX ( - 22 ) FROM tab0 AS cor0
----
22

query II rowsort
SELECT ALL col0 AS col0, 97 * - col2 FROM tab2 AS cor0
----
46
-2231
64
-3880
75
-5626

query I rowsort
SELECT col0 + + col1 - - 94 FROM tab2 AS cor0 WHERE NOT ( 43 * + col2 * - col1 * + col1 + + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - MAX( DISTINCT - + 60 ) * + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2797
SELECT - MAX ( DISTINCT - + 60 ) * + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT DISTINCT - 61 * + - CAST( + ( col2 ) AS SIGNED ) * - - col0 AS col0 FROM tab1 cor0
----
298656
305915
377468

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - 61 * + - CAST ( + ( col2 ) AS INTEGER ) * - - col0 AS col0 FROM tab1 cor0
----
298656
305915
377468

query I rowsort
SELECT DISTINCT + 32 * - col1 FROM tab0 cor0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL ( COUNT( * ) ) FROM tab1 WHERE ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL ( COUNT ( * ) ) FROM tab1 WHERE ( + col1 ) IS NULL
----
0

query I rowsort
SELECT ALL col2 - - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
198
20
94

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab0 WHERE NOT - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL COUNT( * ) FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( col0 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( col0 + - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT MAX( ALL + 68 ) AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-2804
SELECT MAX ( ALL + 68 ) AS col1 FROM tab0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT CAST( SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT CAST ( SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL SUM( + ( 20 ) ) * + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL SUM ( + ( 20 ) ) * + COUNT ( * ) FROM tab1
----
180

query I rowsort
SELECT ( 75 ) AS col2 FROM tab0
----
75
75
75

query I rowsort
SELECT col1 + - 60 FROM tab1
----
-13
-46
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT + COUNT( * ) * - COUNT( - col0 ) + CAST( NULL AS SIGNED ) * - 55 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + COUNT ( * ) * - COUNT ( - col0 ) + CAST ( NULL AS INTEGER ) * - 55 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 77 AS col1 FROM tab1 WHERE ( 55 ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL ( + col0 ) * + col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL + 64 AS col1 FROM tab1
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 90 * col2 NOT BETWEEN col0 / 11 + 1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL SUM( - col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2814
SELECT ALL SUM ( - col2 ) col1 FROM tab1
----
-223

query I rowsort
SELECT + 58 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + 72 * MAX( 1 ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + 72 * MAX ( 1 ) AS col0 FROM tab1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT + col2 * + col2 + + col2 DIV + col0 AS col1 FROM tab0
----
100
2212
9802

skipif mysql # not compatible
query I rowsort label-2817
SELECT + col2 * + col2 + + col2 / + col0 AS col1 FROM tab0
----
100
2212
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT 75 * - COUNT( * ) AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-2818
SELECT 75 * - COUNT ( * ) AS col0 FROM tab1
----
-225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 74 IS NULL
----

query I rowsort
SELECT - col0 * + ( + col2 ) + - 26 AS col1 FROM tab1
----
-4922
-5041
-6214

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2822
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2823
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * col0 <= col1
----

skipif mysql # not compatible
query III rowsort label-2823
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col0 <= col1
----

query I rowsort
SELECT DISTINCT + col1 + - 67 FROM tab0 AS cor0
----
-46
-66
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 / + col2 IS NULL
----

query I rowsort
SELECT AVG ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( col1 )
----
NULL

query I rowsort
SELECT ALL - col0 * - 16 - ( col2 + col0 ) AS col2 FROM tab2 AS cor0
----
1067
667
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT SUM( ALL 8 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2828
SELECT SUM ( ALL 8 ) FROM tab2 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL + 80 DIV - 34 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 80 / - 34 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + 6 + + COUNT( * ) FROM tab2 WHERE NOT 10 NOT BETWEEN 66 * 1 + col2 AND ( NULL )
----
6

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 6 + + COUNT ( * ) FROM tab2 WHERE NOT 10 NOT BETWEEN 66 * 1 + col2 AND ( NULL )
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 + + col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2832
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) + 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2832
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) + 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 < col1 * + 87
----

query I rowsort
SELECT ALL - - 47 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT col0 + - 85 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > 70
----

query I rowsort
SELECT ALL 57 * col1 AS col0 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + 27 * MIN( col0 ) AS col0 FROM tab1 AS cor0
----
1377

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 27 * MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
1377

query I rowsort
SELECT col2 * + 19 FROM tab1 AS cor0
----
1121
1292
1824

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 * + 19 + - 22 >= col2 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT 3 DIV - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT 3 / - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * 15 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT ( - + col0 ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT MIN( DISTINCT + 95 ) AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT MIN ( DISTINCT + 95 ) AS col2 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL 22 * - SUM( - 81 ) col2 FROM tab2
----
5346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2845
SELECT ALL 22 * - SUM ( - 81 ) col2 FROM tab2
----
5346

query I rowsort
SELECT ALL 89 + + 30 * col2 AS col0 FROM tab2 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT + 3 + col2 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( ( col2 ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT + 3 + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( ( col2 ) ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) * 0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * 0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL COUNT( DISTINCT 16 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL COUNT ( DISTINCT 16 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 74 * + - col1 FROM tab0 AS cor0
----
-1554
-5994
-74

query I rowsort
SELECT DISTINCT - col0 * + - col0 * + col1 AS col0 FROM tab0 cor0
----
158949
18225
9409

query I rowsort
SELECT + 7 * - col0 FROM tab1 AS cor0
----
-357
-595
-637

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + ( - col1 ) NOT BETWEEN - col1 * - col2 - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * ( col0 ) - + col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT - + 24 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT col0 * - col2 * - 38 AS col1 FROM tab1 AS cor0
----
186048
190570
235144

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 BETWEEN 23 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT + ( + 10 ) DIV - - ( 73 ) * col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT + ( + 10 ) / - - ( 73 ) * col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 + col2 FROM tab2 WHERE NOT ( 99 <= NULL )
----

query I rowsort
SELECT DISTINCT 70 FROM tab0 WHERE - col1 = NULL
----

query I rowsort
SELECT DISTINCT + 13 * - - col1 + ( col2 ) FROM tab2 AS cor0
----
1041
686
929

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col0 <> ( - 87 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + 51 FROM tab0 AS cor0 WHERE ( NULL ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - - col0 col1 FROM tab1 AS cor0
----
117
123
83

query I rowsort
SELECT - ( - 21 ) + + col0 * - col0 FROM tab0 AS cor0
----
-204
-7548
-9388

query I rowsort
SELECT DISTINCT + - col0 * + col0 + - - 60 FROM tab1 AS cor0
----
-2541
-7165
-8221

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - COUNT( * ) + - - 72 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - COUNT ( * ) + - - 72 FROM tab0 AS cor0
----
69

query I rowsort
SELECT + col1 * + 22 + + 59 AS col1 FROM tab2 AS cor0
----
1181
1533
1753

query I rowsort
SELECT ALL + col0 * + col1 + col0 + 48 FROM tab2 cor0
----
2440
5040
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL - - MIN( DISTINCT - 58 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - - MIN ( DISTINCT - 58 ) FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - COUNT( DISTINCT col0 ) FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT - COUNT ( DISTINCT col0 ) FROM tab0 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + + 49 * col0 / - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 - + - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + 69 * 45 >= + col2 + col2 AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL COUNT( col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL COUNT ( col0 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + - 77 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - MIN( + + col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - MIN ( + + col0 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2885
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 + + CAST( NULL AS DECIMAL ) NOT BETWEEN + col1 AND 9
----

skipif mysql # not compatible
query I rowsort label-2885
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 + + CAST ( NULL AS REAL ) NOT BETWEEN + col1 AND 9
----

query II rowsort
SELECT DISTINCT 9 AS col0, + col0 * col1 + 61 - col2 AS col2 FROM tab1
----
9
427
9
4270
9
679

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT 15, col2 AS col2 FROM tab1
----
15
59
15
68
15
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + COUNT( DISTINCT - col0 ) FROM tab1 WHERE NOT + col0 - - + 30 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2889
SELECT + COUNT ( DISTINCT - col0 ) FROM tab1 WHERE NOT + col0 - - + 30 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 19 * + col0 FROM tab0 AS cor0
----
1653
1843
285

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col2 * - 12 )
----

query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) * + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
158949
18225
9409

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 * col2 + - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 40 AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT DISTINCT 41 / - - 48 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 41 / - - 48 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 95 > 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NOT + 70 IS NOT NULL )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 30 ) col1 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT + col1 + - 92 FROM tab2 WHERE - col2 + 12 IS NULL
----

query II rowsort
SELECT + col0 AS col1, - col2 + - col1 AS col1 FROM tab0
----
15
-128
87
-31
97
-100

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 41 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col1 * + ( 26 ) FROM tab0
----
2106
26
546

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 + ( - 18 ) ) NOT IN ( - col1 * 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT col0 * + + col1 + col2 + + - CAST( NULL AS SIGNED ) * + 26 * - - 14 + + col2 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT col0 * + + col1 + col2 + + - CAST ( NULL AS INTEGER ) * + 26 * - - 14 + + col2 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 26 * + col1 col1 FROM tab2 AS cor0
----
1372
1817
2066

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT ALL + 79 AS col1, COUNT( * ) FROM tab2 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL + 79 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
79
3

query III rowsort
SELECT * FROM tab0 WHERE - col1 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) * + col0 col0, - ( + + col0 ) AS col2 FROM tab0
----
1215
-15
1827
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT col0 * - CAST( + - col0 AS SIGNED ) AS col0 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-2910
SELECT col0 * - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - col2 + + col1 + col0 AS col1 FROM tab1
----
-31
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2912
SELECT * FROM tab2 cor0 WHERE 3 + + - ( - CAST( col2 AS SIGNED ) ) NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2912
SELECT * FROM tab2 cor0 WHERE 3 + + - ( - CAST ( col2 AS INTEGER ) ) NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 85 col0 FROM tab0 AS cor0
----
4
64
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col1, col2 + + 53 col1 FROM tab1 AS cor0
----
-425
112
-4277
121
-714
149

query I rowsort
SELECT ALL - - 28 + - ( - col2 ) FROM tab2 cor0
----
51
68
86

query I rowsort
SELECT col0 - 62 + - col0 + + 30 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL col0 + - 13 * col1 FROM tab1 AS cor0
----
-131
-520
20

query I rowsort
SELECT + + col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 36 * + 78 + col1 FROM tab2
----
2859
2875
2885

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 7 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 - - 89 * + col0 + - col1 FROM tab2
----
2539
2722
2870

query I rowsort
SELECT col0 * - col2 * + col1 + - col0 FROM tab0
----
-18357
-57120
-9700

query I rowsort
SELECT 69 + + col1 + - col2 - col0 - col0 FROM tab2
----
-22
-72
5

query I rowsort
SELECT 59 + + 59 AS col2 FROM tab0
----
118
118
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 63 - col1 col1 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL SUM( ALL - ( col0 ) ) * - - 57 FROM tab0
----
-11343

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL SUM ( ALL - ( col0 ) ) * - - 57 FROM tab0
----
-11343

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE + col0 = + col0 * - col0
----

query I rowsort
SELECT ALL ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT COUNT( col0 ) AS col1 FROM tab1 AS cor0 WHERE + 12 IS NOT NULL AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT COUNT ( col0 ) AS col1 FROM tab1 AS cor0 WHERE + 12 IS NOT NULL AND NOT NULL IS NULL
----
0

query I rowsort
SELECT + 8 * 97 AS col1 FROM tab2
----
776
776
776

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 7 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT - - CAST( + 33 AS SIGNED ) * 16 AS col2 FROM tab1 AS cor0 WHERE NOT 69 * - - 18 IS NULL
----
528
528
528

skipif mysql # not compatible
query I rowsort label-2932
SELECT - - CAST ( + 33 AS INTEGER ) * 16 AS col2 FROM tab1 AS cor0 WHERE NOT 69 * - - 18 IS NULL
----
528
528
528

query I rowsort
SELECT col0 * + 19 + - - col1 FROM tab2 AS cor0
----
1293
1492
925

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 79 NOT IN ( - col0 * + + col1 * + 56 + + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL - + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST( - 65 AS SIGNED ), 48 )
----

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST ( - 65 AS INTEGER ), 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT CAST( NULL AS SIGNED ) / + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT CAST ( NULL AS INTEGER ) / + + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <> - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2938
SELECT ALL - COUNT( * ), + MAX( + 77 ) - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL - COUNT ( * ), + MAX ( + 77 ) - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1
----
-3
NULL

query I rowsort
SELECT ALL ( col1 ) + - 74 AS col2 FROM tab2
----
-23
-7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - MIN( DISTINCT - 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - MIN ( DISTINCT - 17 ) FROM tab1
----
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 26 = - 93
----

query II rowsort
SELECT DISTINCT + - 62 * + col2 + + 47 AS col1, col1 FROM tab0 AS cor0
----
-2867
81
-573
21
-6091
1

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 + - col0 FROM tab2 AS cor0
----
2509
4339
5801

query I rowsort
SELECT - ( + 6 ) + - 34 AS col1 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL 80 + - - col0 * - col0 AS col0 FROM tab0
----
-145
-7489
-9329

query I rowsort
SELECT col1 + + - col0 + + col0 FROM tab1
----
14
47
5

query I rowsort
SELECT + col0 + + 70 AS col2 FROM tab0 AS cor0
----
157
167
85

query I rowsort
SELECT DISTINCT 89 + + col1 FROM tab1 AS cor0
----
103
136
94

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE + col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2, ( + 0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + + col2 NOT BETWEEN + col1 * + col0 * + col0 + 42 AND ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 - - col1, col2 * ( - + col1 ) AS col0 FROM tab2 AS cor0
----
117
-3080
125
-3886
74
-1173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT ALL - col2 DIV 42 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - col2 / 42 AS col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col0 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 36 col0 FROM tab1
----
2124
2448
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * 91 col2 FROM tab1
----
4186
4186
4186

query II rowsort
SELECT ALL - col2 * - 14, + col2 AS col0 FROM tab1
----
1344
96
826
59
952
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT 38 * + + COUNT( * ) AS col2 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-2959
SELECT 38 * + + COUNT ( * ) AS col2 FROM tab2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL + COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL + COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL - COUNT( + + col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - COUNT ( + + col0 ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT + + COUNT( * ) + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + + COUNT ( * ) + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL + ( + - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2965
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT IN ( CAST( NULL AS SIGNED ) / 13, - col2 * + col2, + col0 * + col1 * - 15 )
----

skipif mysql # not compatible
query III rowsort label-2965
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT IN ( CAST ( NULL AS INTEGER ) / 13, - col2 * + col2, + col0 * + col1 * - 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - 42 ) NOT BETWEEN - col0 AND + 50
----

query II rowsort
SELECT col0, col0 + + 78 * + - col1 AS col2 FROM tab1
----
51
-1041
85
-305
91
-3575

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT + 0 AS col0, 93 - + COUNT( - col1 ) - + 26 + - COUNT( * ) AS col0 FROM tab1
----
0
61

skipif mysql # not compatible
query II rowsort label-2968
SELECT + 0 AS col0, 93 - + COUNT ( - col1 ) - + 26 + - COUNT ( * ) AS col0 FROM tab1
----
0
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL + 93 * + + COUNT( * ) FROM tab0 cor0 WHERE NOT col2 IS NULL
----
279

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + 93 * + + COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 IS NULL
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + - 78 * - col0 col1, + 75 AS col1 FROM tab2 cor0
----
199680
75
339300
75
82524
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT + + col1 DIV + 61 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + + col1 / + 61 AS col2 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 55 BETWEEN col0 AND NULL
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 = + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 69 - + - col0 IS NOT NULL
----

query II rowsort
SELECT - - 30 AS col2, ( - 29 ) * + col1 FROM tab0 AS cor0
----
30
-2349
30
-29
30
-609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT - CAST( + SUM( DISTINCT - - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2976
SELECT - CAST ( + SUM ( DISTINCT - - col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - SUM( DISTINCT + 99 ) AS col2 FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - SUM ( DISTINCT + 99 ) AS col2 FROM tab2 cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 10 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT + ( ( 25 ) ) AS col2, MIN( col0 ) FROM tab1 cor0
----
25
51

skipif mysql # not compatible
query II rowsort label-2979
SELECT + ( ( 25 ) ) AS col2, MIN ( col0 ) FROM tab1 cor0
----
25
51

query III rowsort
SELECT * FROM tab0 WHERE + col0 / col0 * + 62 IS NOT NULL OR NULL > - col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT 37 DIV - col0 * - col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2982
SELECT 37 / - col0 * - col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col2 AS col2, - 70 col1 FROM tab2
----
104
-70
133
-70
69
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col1 + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col1 + col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col0 IN ( col2, col2, + + col1 * - col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + COUNT( * ) + - 42 + + + COUNT( * ) AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-2987
SELECT + COUNT ( * ) + - 42 + + + COUNT ( * ) AS col1 FROM tab1
----
-36

query I rowsort
SELECT DISTINCT 87 + + 51 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT + COUNT( * ) * - - 99 * + 69 AS col1, - 61 + + COUNT( * ) FROM tab1
----
20493
-58

skipif mysql # not compatible
query II rowsort label-2989
SELECT + COUNT ( * ) * - - 99 * + 69 AS col1, - 61 + + COUNT ( * ) FROM tab1
----
20493
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT + 10 * - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + 10 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
90

query I rowsort
SELECT DISTINCT + ( - - 39 ) AS col0 FROM tab1
----
39

query I rowsort
SELECT DISTINCT 44 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab2 cor0
----
80

query I rowsort
SELECT ALL + 8 + + 61 AS col0 FROM tab1 cor0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT + 25 * - 29 - - col0 DIV + + 67 FROM tab0 AS cor0
----
-724
-725

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + 25 * - 29 - - col0 / + + 67 FROM tab0 AS cor0
----
-724
-725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2997
SELECT ALL * FROM tab0 AS cor0 WHERE - 93 + + + col2 + + col2 * + col2 NOT IN ( + CAST( + - col2 AS SIGNED ), col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2997
SELECT ALL * FROM tab0 AS cor0 WHERE - 93 + + + col2 + + col2 * + col2 NOT IN ( + CAST ( + - col2 AS INTEGER ), col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 33 - - 21 AS col0 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT - + col2 + + col1 - + col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL col0 * - 13 FROM tab2
----
-598
-832
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT 63 * + COUNT( * ) AS col2 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT 63 * + COUNT ( * ) AS col2 FROM tab1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ( CAST( + 87 AS SIGNED ) ) AS col2 FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-3002
SELECT ( CAST ( + 87 AS INTEGER ) ) AS col2 FROM tab1
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + COUNT( * ) FROM tab2 WHERE NOT + + col2 + + col2 BETWEEN - col1 AND - 71
----
3

skipif mysql # not compatible
query I rowsort label-3004
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + + col2 + + col2 BETWEEN - col1 AND - 71
----
3

query I rowsort
SELECT ALL + ( col0 ) + + 63 * + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + MIN( + ( 95 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + MIN ( + ( 95 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
95

query I rowsort
SELECT ALL + col1 * + + 28 AS col1 FROM tab0
----
2268
28
588

query I rowsort
SELECT ALL + 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query II rowsort
SELECT col2 * col0 AS col1, - col2 + - ( - col2 ) FROM tab2
----
1058
0
2560
0
4350
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + - + col0 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 AS cor0 WHERE NOT 7 / - - 12 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT ALL + 34 + col2 + col2 DIV 23 AS col0 FROM tab1 AS cor0
----
104
134
95

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL + 34 + col2 + col2 / 23 AS col0 FROM tab1 AS cor0
----
104
134
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT + + 85 + + col0 + col1 + - col1 * col0 + 40 DIV 98 * - - col0 DIV + - 70 AS col2 FROM tab0 cor0
----
-1034
-1634
86

skipif mysql # not compatible
query I rowsort label-3016
SELECT + + 85 + + col0 + col1 + - col1 * col0 + 40 / 98 * - - col0 / + - 70 AS col2 FROM tab0 cor0
----
-1034
-1634
86

query I rowsort
SELECT DISTINCT - col1 * - col2 + - 99 AS col2 FROM tab0 AS cor0
----
0
111
3708

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - 80 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT + - 15 + ( - - CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) + col0 + - 95 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT + - 15 + ( - - CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) + col0 + - 95 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3021
SELECT + COUNT( * ) + + COUNT( * ) DIV + MIN( ALL - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3021
SELECT + COUNT ( * ) + + COUNT ( * ) / + MIN ( ALL - col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col2 + + col2 + - - col0 FROM tab2 AS cor0
----
144
191
92

query II rowsort
SELECT DISTINCT - + ( - 29 ) AS col1, - 12 AS col2 FROM tab2 AS cor0
----
29
-12

query I rowsort
SELECT + - col1 + + col2 * - col2 AS col2 FROM tab1 cor0
----
-3486
-4671
-9230

query I rowsort
SELECT + 15 * + + 16 * - col2 * + - col2 AS col0 FROM tab2
----
126960
384000
807360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3026
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col0 + - - 30 NOT IN ( CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-3026
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col0 + - - 30 NOT IN ( CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT + 11 AS col0 FROM tab0 WHERE ( col1 / - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3028
SELECT * FROM tab2 WHERE ( NOT - col2 * + - ( - col1 ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3028
SELECT * FROM tab2 WHERE ( NOT - col2 * + - ( - col1 ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= - + col1 * col0 - ( + ( - 27 ) ) * + col1 * - col2 * - - col1 + - 10 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3030
SELECT DISTINCT * 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-3030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + - col1 + + - col1 - + + 45 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 72 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL - - 39 + col0 * 22 * - 54 AS col2 FROM tab0 AS cor0
----
-103317
-115197
-17781

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT + SUM( - 61 ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + SUM ( - 61 ) FROM tab1 AS cor0
----
-183

query I rowsort
SELECT DISTINCT - 40 + + 77 AS col1 FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3036
SELECT - CAST( - + col0 AS SIGNED ) * - + 6 - + - col1, - col1 * + col2 + + + col2 + 1 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-501
NULL
-581
NULL
-9
NULL

skipif mysql # not compatible
query II rowsort label-3036
SELECT - CAST ( - + col0 AS INTEGER ) * - + 6 - + - col1, - col1 * + col2 + + + col2 + 1 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-501
NULL
-581
NULL
-9
NULL

query I rowsort
SELECT + - 71 * - col0 AS col1 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT ALL + + col1 * 73 FROM tab1 AS cor0
----
1022
3431
365

query I rowsort
SELECT DISTINCT - col0 * - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT + ( 7 ) BETWEEN + col1 AND col1 )
----
1
21
81

query I rowsort
SELECT DISTINCT - ( - 98 ) * col0 * - col0 * - col2 FROM tab0
----
1036350
7417620
91286118

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab1
----
46

query I rowsort
SELECT DISTINCT ( 65 ) AS col2 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL - ( + - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - ( + - COUNT ( * ) ) FROM tab0
----
3

query I rowsort
SELECT ALL + col0 * - - col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - 84 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + - + 52 - - 83 FROM tab0 WHERE NOT 60 IS NOT NULL
----
31

skipif mysql # not compatible
query I rowsort label-3048
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 52 - - 83 FROM tab0 WHERE NOT 60 IS NOT NULL
----
31

query II rowsort
SELECT + col0, - 25 * col1 FROM tab2
----
46
-1275
64
-1925
75
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT - SUM( - + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3050
SELECT - SUM ( - + col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT + - 5 + - MIN( - col1 ) + + 26 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT + - 5 + - MIN ( - col1 ) + + 26 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL - + CAST( NULL AS SIGNED ) + + col2 * - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col2 * - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT DISTINCT col1 DIV 20 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT col1 / 20 FROM tab1 AS cor0
----
0
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > - - col1
----
75
67
58

query I rowsort
SELECT DISTINCT col1 + - + col1 * + + 80 AS col2 FROM tab0 AS cor0
----
-1659
-6399
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT ALL + 88 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + 88 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3057
SELECT DISTINCT - CAST( - col0 AS SIGNED ) DIV + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) / + col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT - COUNT( DISTINCT col0 ) + 53 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-3058
SELECT - COUNT ( DISTINCT col0 ) + 53 FROM tab1
----
50

query III rowsort
SELECT * FROM tab2 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + - - col1 > + 24 * - 27
----
3

skipif mysql # not compatible
query I rowsort label-3060
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + - - col1 > + 24 * - 27
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3061
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + CAST ( NULL AS REAL ) + - - col2 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL - col0 + - + 55 + 27 * ( - - 11 ) AS col2 FROM tab1 AS cor0
----
151
157
191

onlyif mysql # aggregate syntax: 
query II rowsort label-3065
SELECT + COUNT( * ) AS col1, - 5 AS col1 FROM tab0
----
3
-5

skipif mysql # not compatible
query II rowsort label-3065
SELECT + COUNT ( * ) AS col1, - 5 AS col1 FROM tab0
----
3
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT - 76 * + - CAST( NULL AS SIGNED ) - CAST( 29 AS SIGNED ) - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT - 76 * + - CAST ( NULL AS INTEGER ) - CAST ( 29 AS INTEGER ) - + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 16 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3068
SELECT * FROM tab0 AS cor0 WHERE NOT 49 * - col1 * CAST( + ( - col2 ) AS SIGNED ) * + col1 + + - col2 = col1 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3068
SELECT * FROM tab0 AS cor0 WHERE NOT 49 * - col1 * CAST ( + ( - col2 ) AS INTEGER ) * + col1 + + - col2 = col1 * + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 * + col1 * - col0 + - 36 AS col2 FROM tab0 cor0
----
158913
18189
9373

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3072
SELECT - COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT ALL 7 + + col1 FROM tab1 cor0
----
12
21
54

query I rowsort
SELECT ALL col2 + 44 FROM tab0 AS cor0
----
143
54
91

query I rowsort
SELECT ALL - + col1 + + col1 + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3076
SELECT - 88 + + col0 DIV - 82, 68 AS col2 FROM tab2 cor0
----
-88
68
-88
68
-88
68

skipif mysql # not compatible
query II rowsort label-3076
SELECT - 88 + + col0 / - 82, 68 AS col2 FROM tab2 cor0
----
-88
68
-88
68
-88
68

query I rowsort
SELECT - 98 + - col2 * 48 + - - col0 AS col1 FROM tab1 AS cor0
----
-2845
-3271
-4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT + + CAST( MIN( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3078
SELECT + + CAST ( MIN ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL - MAX( DISTINCT - 66 ) AS col2 FROM tab0 WHERE NOT NULL < + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - MAX ( DISTINCT - 66 ) AS col2 FROM tab0 WHERE NOT NULL < + - col1
----
NULL

query I rowsort
SELECT 81 * - col1 FROM tab1
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL SUM( ALL ( + col0 ) ) * 99 col0 FROM tab2
----
18315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3083
SELECT ALL SUM ( ALL ( + col0 ) ) * 99 col0 FROM tab2
----
18315

query I rowsort
SELECT - - 21 FROM tab2 WHERE + col1 NOT BETWEEN NULL AND - col2
----
21
21
21

query I rowsort
SELECT 98 * - ( - col1 ) FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT 28 + - SUM( - col0 ) AS col0 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT 28 + - SUM ( - col0 ) AS col0 FROM tab2
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT + COUNT( * ) DIV + 93 - - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3087
SELECT + COUNT ( * ) / + 93 - - COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3088
SELECT + col2 + - col1 * - col2 + - 13 AS col1, + ( - + CAST( + col1 AS SIGNED ) ) col2 FROM tab1 cor0
----
1427
-14
3251
-47
341
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3088
SELECT + col2 + - col1 * - col2 + - 13 AS col1, + ( - + CAST ( + col1 AS INTEGER ) ) col2 FROM tab1 cor0
----
1427
-14
3251
-47
341
-5

query I rowsort
SELECT ALL col0 - - + 2 AS col2 FROM tab0 AS cor0
----
17
89
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT - 14 + - - MIN( ALL ( + col0 ) ) / + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 14 + - - MIN ( ALL ( + col0 ) ) / + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + - 43 + + col0 + + col0 + + + col2 + - 79 DIV col1 * - col1 + col0 FROM tab2 AS cor0
----
169
266
307

skipif mysql # not compatible
query I rowsort label-3091
SELECT + - 43 + + col0 + + col0 + + + col2 + - 79 / col1 * - col1 + col0 FROM tab2 AS cor0
----
169
266
307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT ALL - CAST( - col1 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - CAST ( - col1 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col0 FROM tab0 WHERE 1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3095
SELECT - 9 DIV - SUM( - 75 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 9 / - SUM ( - 75 ) AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col2 * - - 11, ( + col2 ) * - + col1 + col1 AS col0 FROM tab0 AS cor0
----
-1089
-98
-110
-189
-517
-3726

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab0 cor0
----
43

query I rowsort
SELECT ALL + ( + 0 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT COUNT( * ), + 95 * + 66 AS col0 FROM tab2
----
3
6270

skipif mysql # not compatible
query II rowsort label-3101
SELECT COUNT ( * ), + 95 * + 66 AS col0 FROM tab2
----
3
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT SUM( DISTINCT 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3102
SELECT SUM ( DISTINCT 49 ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT MAX( - col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3103
SELECT MAX ( - col1 ) col2 FROM tab0
----
-1

query II rowsort
SELECT ALL - col1 AS col2, col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3105
SELECT - SUM( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT - SUM ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 * + 30 + + col0 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT 8 * + col1 + + + col0 * - col0 + col1 FROM tab2 AS cor0
----
-1657
-3403
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND col2
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 < NULL
----

query I rowsort
SELECT ALL col1 + - 82 AS col0 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT col0 * ( 26 ) + - 11 FROM tab0 AS cor0
----
2251
2511
379

query I rowsort
SELECT ALL - - 47 AS col1 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL COUNT( * ) * - 48 col2 FROM tab1
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3113
SELECT ALL COUNT ( * ) * - 48 col2 FROM tab1
----
-144

query I rowsort
SELECT ALL col2 - + + col1 - + col0 * + 24 + col1 - - col0 FROM tab1
----
-1077
-1896
-2025

query I rowsort
SELECT 50 + - col0 + 83 FROM tab1
----
42
48
82

query I rowsort
SELECT ALL + col2 * - + 49 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE + 20 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE + 20 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL 86 + COUNT( DISTINCT ( ( - + col0 ) ) ) * 85 AS col0 FROM tab0
----
341

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL 86 + COUNT ( DISTINCT ( ( - + col0 ) ) ) * 85 AS col0 FROM tab0
----
341

query I rowsort
SELECT DISTINCT 25 * - col1 FROM tab1
----
-1175
-125
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3120
SELECT DISTINCT + COUNT( * ), CAST( + - 66 AS SIGNED ) AS col1 FROM tab2
----
3
-66

skipif mysql # not compatible
query II rowsort label-3120
SELECT DISTINCT + COUNT ( * ), CAST ( + - 66 AS INTEGER ) AS col1 FROM tab2
----
3
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT - 78 DIV + + 47 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3121
SELECT - 78 / + + 47 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3122
SELECT DISTINCT + col2, + col1 DIV + - 87 FROM tab0 AS cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-3122
SELECT DISTINCT + col2, + col1 / + - 87 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT col2 * + 10 * + 35 FROM tab0 AS cor0
----
16450
34650
3500

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT - COUNT( * ) * - - SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT - COUNT ( * ) * - - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
555

query II rowsort
SELECT DISTINCT - col1, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT col2, + 49 FROM tab1 cor0
----
59
49
68
49
96
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 27 col0 FROM tab0 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 43, col2 col0 FROM tab1 AS cor0
----
43
59
43
68
43
96

query II rowsort
SELECT + 5 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
5
-51
5
-67
5
-77

query I rowsort
SELECT DISTINCT 78 * - col2 * col2 FROM tab0
----
-172302
-764478
-7800

query II rowsort
SELECT ( - col1 ), col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 NOT IN ( + 28, - col2 * col2 )
----

query I rowsort
SELECT + col1 + col0 * + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL + ( - + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + ( - + COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col2 BETWEEN + col2 * - + col2 AND ( NULL )
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - 3 * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3138
SELECT - 3 * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col1 * + 40 * + + col0 AS col2 FROM tab1 AS cor0
----
-17000
-171080
-28560

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - MIN( DISTINCT - + col2 ) * - - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3140
SELECT - MIN ( DISTINCT - + col2 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL 27 + + CAST( + + col1 AS SIGNED ) FROM tab1 WHERE NOT NULL > + - col2 / + col0 + - col0 * 62 * ( - col0 ) + - col0
----

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL 27 + + CAST ( + + col1 AS INTEGER ) FROM tab1 WHERE NOT NULL > + - col2 / + col0 + - col0 * 62 * ( - col0 ) + - col0
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * - 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT - col1 * + - col2 DIV + col2 + - - col0 col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3144
SELECT - col1 * + - col2 / + col2 + - - col0 col1 FROM tab0
----
108
96
98

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + COUNT( * ) * - + COUNT( * ) + - COUNT( * ) * 49 AS col2 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3146
SELECT + COUNT ( * ) * - + COUNT ( * ) + - COUNT ( * ) * 49 AS col2 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 - 79 AS col2 FROM tab2 AS cor0
----
-15
-33
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT + COUNT( * ) AS col1, COUNT( * ) + + 50 * - 19 * + SUM( ALL + col0 ) FROM tab2 AS cor0
----
3
-175747

skipif mysql # not compatible
query II rowsort label-3149
SELECT + COUNT ( * ) AS col1, COUNT ( * ) + + 50 * - 19 * + SUM ( ALL + col0 ) FROM tab2 AS cor0
----
3
-175747

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT + SUM( ALL + 40 ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-3150
SELECT + SUM ( ALL + 40 ) FROM tab1 AS cor0
----
120

query I rowsort
SELECT ALL - + col1 - + col1 * + - col2 AS col0 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT - COUNT( * ) * 38 AS col0 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - COUNT ( * ) * 38 AS col0 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT ALL + col1 - - + col1 AS col0 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT + col0 * - col0 FROM tab1 WHERE - col1 IS NOT NULL
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 6 AS col2 FROM tab1
----
6
6
6

query I rowsort
SELECT DISTINCT 35 - + col1 AS col1 FROM tab2
----
-16
-32
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT 37 DIV + col0 col0 FROM tab0 WHERE NOT - 36 BETWEEN NULL AND ( + - 24 ) * + + col2 AND NULL IS NULL
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT DISTINCT 37 / + col0 col0 FROM tab0 WHERE NOT - 36 BETWEEN NULL AND ( + - 24 ) * + + col2 AND NULL IS NULL
----
0
2

query I rowsort
SELECT + col0 * - col2 - - 34 * - col0 FROM tab1
----
-6630
-7905
-9282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT - col1 - CAST( NULL AS SIGNED ) * - 38 * + 11 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT - col1 - CAST ( NULL AS INTEGER ) * - 38 * + 11 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab2
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 col0 FROM tab1 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( + ( + - col2 ) ) ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3163
SELECT + 9 * + - 31, - col1 DIV + col1 col2 FROM tab2 AS cor0
----
-279
-1
-279
-1
-279
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3163
SELECT + 9 * + - 31, - col1 / + col1 col2 FROM tab2 AS cor0
----
-279
-1
-279
-1
-279
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT + 12 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT + 12 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN 36 AND NULL
----

query I rowsort
SELECT + col0 * 65 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND + col1 + col1
----

query I rowsort
SELECT DISTINCT - 45 * col1 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + - COUNT( * ) * - MAX( + - col1 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3168
SELECT + - COUNT ( * ) * - MAX ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3169
SELECT - - col2 * - 59 / - + col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT - - col2 * - 59 / - + col2 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 27 * + col0 - col2, + col1 AS col2 FROM tab1 cor0
----
-1473
14
-2354
5
-2525
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 55 col0, - col2 + - + col2 + + + col0 FROM tab2 AS cor0
----
-55
-16
-55
-41
-55
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT ALL 30 DIV - + COUNT( * ) + - + COUNT( * ) * - - 33 FROM tab0 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 30 / - + COUNT ( * ) + - + COUNT ( * ) * - - 33 FROM tab0 AS cor0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT DISTINCT - - 4 * - - col0 DIV - 86 AS col0 FROM tab0 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - - 4 * - - col0 / - 86 AS col0 FROM tab0 cor0
----
-4
0

query I rowsort
SELECT - - 8 AS col1 FROM tab2 WHERE NOT ( NOT 37 * col1 IS NULL )
----

query II rowsort
SELECT ALL - col1 * + col0, + col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL NOT BETWEEN col2 AND + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3177
SELECT ALL COUNT( * ) DIV + - 63 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL COUNT ( * ) / + - 63 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT MAX( - - col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT MAX ( - - col2 ) col1 FROM tab0
----
99

query I rowsort
SELECT ALL col2 + 40 * - + col0 + col2 + + col0 AS col1 FROM tab1
----
-1797
-3197
-3413

query I rowsort
SELECT col0 + + - 13 FROM tab0 AS cor0
----
2
74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT ALL + MIN( - 0 ) + + MIN( col0 ) col1, 65 + + 58 AS col1 FROM tab0 AS cor0
----
15
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3181
SELECT ALL + MIN ( - 0 ) + + MIN ( col0 ) col1, 65 + + 58 AS col1 FROM tab0 AS cor0
----
15
123

query I rowsort
SELECT DISTINCT - col1 + - col2 * + - col2 FROM tab2 cor0
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL COUNT( * ) + + 91 AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL COUNT ( * ) + + 91 AS col2 FROM tab2 AS cor0
----
94

query II rowsort
SELECT ALL col1 AS col1, + 96 FROM tab1 AS cor0
----
14
96
47
96
5
96

query I rowsort
SELECT ALL col2 + - 11 FROM tab0 cor0
----
-1
36
88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - 93 + - 83 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT + COUNT( * ) + + 96 * + CAST( + ( + + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + COUNT ( * ) + + 96 * + CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT CAST( - + COUNT( * ) AS SIGNED ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3188
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
-3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 cor1 ON ( ( NULL ) IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= ( ( col0 ) + - col0 * - col2 + + - col2 )
----

query I rowsort
SELECT DISTINCT - + ( + col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL + col0 * - col1 / + CAST( NULL AS SIGNED ) + - 88 + col0 * 9 / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + col0 * - col1 / + CAST ( NULL AS INTEGER ) + - 88 + col0 * 9 / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( - col0 NOT IN ( - col2 ) )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3193
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( - col0 NOT IN ( - col2 ) )
----
3

query I rowsort
SELECT DISTINCT + - col2 * + col2 + ( 82 ) * + + col0 + col1 FROM tab2 AS cor0
----
2853
3294
3725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3195
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col1, + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3195
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col1, + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT + col0 * 3 + - - col1 + + - col2 FROM tab1 AS cor0
----
201
252
71

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL > 63
----

query I rowsort
SELECT - 78 * - col1 + - col2 FROM tab0
----
-21
1628
6271

query I rowsort
SELECT DISTINCT - 33 - + - col2 AS col0 FROM tab2
----
-10
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - COUNT( - 42 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3200
SELECT - COUNT ( - 42 ) col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * - col0 col1 FROM tab2
----
-1564
-2176
-2550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + - col1 + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3203
SELECT DISTINCT col2 AS col0, 68 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT DISTINCT col2 AS col0, 68 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT 26, + col0 AS col2 FROM tab2 AS cor0
----
26
46
26
64
26
75

query II rowsort
SELECT - 75 AS col2, + 18 FROM tab2 AS cor0
----
-75
18
-75
18
-75
18

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - col1 * 66 < NULL ) )
----

query I rowsort
SELECT - col1 * - 14 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT COUNT( + 11 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT COUNT ( + 11 ) FROM tab1
----
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT - 57 * - + 22 AS col0 FROM tab1, tab2 AS cor0
----
1254

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3211
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col2 * + + col2 < 84 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3211
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col2 * + + col2 < 84 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT DISTINCT - col2 DIV + col1 * + col1 + - 42 * + - col2 + col1 FROM tab2 AS cor0
----
1017
1757
2503

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - col2 / + col1 * + col1 + - 42 * + - col2 + col1 FROM tab2 AS cor0
----
1017
1757
2503

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 9 + - 45 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT + col2 + + CAST( - + col1 AS SIGNED ) FROM tab1 cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-3214
SELECT + col2 + + CAST ( - + col1 AS INTEGER ) FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT ALL col1 * + + col0 * col0 * + 27 * + 7 AS col2 FROM tab1 AS cor0
----
6827625
6882246
73560123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3216
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + + 50 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3216
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + + 50 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT + 7 + + + col1 DIV ( - col1 ) DIV + 61 AS col0 FROM tab2 cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 7 + + + col1 / ( - col1 ) / + 61 AS col0 FROM tab2 cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3218
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 19 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3218
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + 91 - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
94

skipif mysql # not compatible
query I rowsort label-3219
SELECT + 91 - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
94

query I rowsort
SELECT DISTINCT + 73 * - - 69 FROM tab0
----
5037

query III rowsort
SELECT * FROM tab2 WHERE - + col2 >= 31 * col1 + + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT 38 + + - CAST( - 17 AS SIGNED ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT 38 + + - CAST ( - 17 AS INTEGER ) FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT + + SUM( DISTINCT + 97 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + + SUM ( DISTINCT + 97 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
97

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - COUNT( + - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3225
SELECT - COUNT ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + ( + 38 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + ( + 38 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT DISTINCT + + col2 DIV + + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + + col2 / + + col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 67 col0 FROM tab2
----
113
131
142

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT + 36 + + col2 DIV - col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT + 36 + + col2 / - col2 FROM tab2 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT + 18 DIV - ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3232
SELECT + 18 / - ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) + + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) + + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 74 - + 54 FROM tab2 AS cor0
----
-128
-128
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT DISTINCT - ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 * - col1 col0, 8 FROM tab2
----
3315
8
4355
8
5005
8

query II rowsort
SELECT col0 * + - col2 AS col2, 48 AS col1 FROM tab0
----
-705
48
-870
48
-9603
48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT 11 * - COUNT( * ) AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3239
SELECT 11 * - COUNT ( * ) AS col2 FROM tab1
----
-33

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 97 AS col2 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0 AS cor0 WHERE NOT + 61 NOT BETWEEN + 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL - COUNT( * ) * + 57 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - COUNT ( * ) * + 57 FROM tab2 AS cor0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT - 24 * + - ( COUNT( * ) ) AS col2 FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT - 24 * + - ( COUNT ( * ) ) AS col2 FROM tab1 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT - COUNT( - + ( col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT - COUNT ( - + ( col2 ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col1 AS col1, + col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT MIN( CAST( + - col2 AS SIGNED ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3249
SELECT MIN ( CAST ( + - col2 AS INTEGER ) ) FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + + col0 col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL - 29 FROM tab1 cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) * - 60 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 60 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT 18 / + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * 90 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT 18 / + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 90 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * col0 + + + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT col0 + 26 DIV col1 FROM tab1
----
52
90
91

skipif mysql # not compatible
query I rowsort label-3258
SELECT col0 + 26 / col1 FROM tab1
----
52
90
91

query I rowsort
SELECT - 1 * 79 + - col1 FROM tab2
----
-130
-146
-156

query I rowsort
SELECT ALL - 78 + 7 + - ( + + 54 ) FROM tab2 AS cor0
----
-125
-125
-125

query I rowsort
SELECT DISTINCT + 40 * + + col2 + - + col1 FROM tab0 AS cor0
----
1799
379
3959

query I rowsort
SELECT ALL + 87 + - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT ALL + CAST( 83 AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
25
43
60

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + CAST ( 83 AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
25
43
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT ALL - MAX( + CAST( 19 AS SIGNED ) ) * - - COUNT( * ) + - 69 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-240

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - MAX ( + CAST ( 19 AS INTEGER ) ) * - - COUNT ( * ) + - 69 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-240

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 5
----

query I rowsort
SELECT ALL 66 * + col1 * + + col0 FROM tab2
----
154836
325248
331650

query I rowsort
SELECT DISTINCT + col0 * 49 + - 39 FROM tab1
----
2460
4126
4420

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT DISTINCT 68 AS col0, COUNT( * ) FROM tab1
----
68
3

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT 68 AS col0, COUNT ( * ) FROM tab1
----
68
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT 57 AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
57
3

skipif mysql # not compatible
query II rowsort label-3269
SELECT 57 AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
57
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL MAX( ALL col2 ) * COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL MAX ( ALL col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT + COUNT( * ) DIV - 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3271
SELECT + COUNT ( * ) / - 42 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + ( SUM( DISTINCT - + 30 ) ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3272
SELECT + ( SUM ( DISTINCT - + 30 ) ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - MAX( - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3273
SELECT - MAX ( - col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL + 89 FROM tab1 WHERE col1 NOT IN ( + col2, - 82, + 41, + col2 )
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - SUM( - 35 ) col2 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3275
SELECT - SUM ( - 35 ) col2 FROM tab2
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - col1 AS col1, ( - + col0 ) col1 FROM tab2
----
-2601
-46
-4489
-75
-5929
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL col1 * + ( col2 ) * 63 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL col1 * + ( col2 ) * 63 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3278
SELECT DISTINCT - COUNT( * ) DIV CAST( + MIN( - 49 ) AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - COUNT ( * ) / CAST ( + MIN ( - 49 ) AS INTEGER ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + ( - - col1 ) AS col0 FROM tab2
----
51
67
77

query II rowsort
SELECT + - col1 AS col2, - 91 AS col0 FROM tab0 AS cor0
----
-1
-91
-21
-91
-81
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT - MIN( DISTINCT 4 ) AS col0 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - MIN ( DISTINCT 4 ) AS col0 FROM tab0 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - + ( + - COUNT( DISTINCT - + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3282
SELECT - + ( + - COUNT ( DISTINCT - + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= ( + col2 ) - + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT - 87 DIV - + ( + col0 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3284
SELECT - 87 / - + ( + col0 ) FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3285
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) < - - 78 * - col2 + + 51
----

skipif mysql # not compatible
query III rowsort label-3285
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) < - - 78 * - col2 + + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - 12 + + - ( + COUNT( * ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 12 + + - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

query I rowsort
SELECT 5 * + - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT IN ( - 54 )
----
-105
-405
-5

query I rowsort
SELECT ALL - 34 * - 95 + + - col1 AS col0 FROM tab0 cor0
----
3149
3209
3229

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT - MAX( ( - col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - MAX ( ( - col2 ) ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT + ( col1 ) * + col0 + + ( + col1 ) FROM tab1 AS cor0
----
430
4324
728

query II rowsort
SELECT DISTINCT col2 + + col1, col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

query I rowsort
SELECT ALL col1 * - 41 * 68 FROM tab1 AS cor0
----
-131036
-13940
-39032

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT ( COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3295
SELECT DISTINCT ( COUNT ( * ) ) col2 FROM tab2
----
3

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE ( NOT - ( + - ( + 39 ) ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3297
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + + CAST( + CAST( - col1 AS DECIMAL ) AS SIGNED ) + + col1 * - + col2 + + col0 AND - - col2
----

skipif mysql # not compatible
query III rowsort label-3297
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + + CAST ( + CAST ( - col1 AS REAL ) AS INTEGER ) + + col1 * - + col2 + + col0 AND - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col2 * col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT 58 + - - 84 * - - COUNT( * ) AS col0 FROM tab1
----
310

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT 58 + - - 84 * - - COUNT ( * ) AS col0 FROM tab1
----
310

query I rowsort
SELECT 41 * ( + col0 ) - + col0 AS col2 FROM tab0 AS cor0
----
3480
3880
600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3301
SELECT ALL + CAST( NULL AS DECIMAL ) / - 9 - - col0 / - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT ALL + CAST ( NULL AS REAL ) / - 9 - - col0 / - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - + col0 + - 24 * - col1 * - col1 FROM tab2 cor0
----
-107878
-142437
-62521

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 + 10 / 78 AND + col0
----

query I rowsort
SELECT 28 - col1 AS col1 FROM tab0
----
-53
27
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT ALL + ( 59 ) DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + ( 59 ) / + col2 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 76 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 48 + 72 )
----

query I rowsort
SELECT + ( + 66 ) AS col2 FROM tab0
----
66
66
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 65 * - 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT + CAST( col1 AS SIGNED ) * col1 FROM tab0 WHERE NOT col2 + - col0 IS NULL
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-3310
SELECT + CAST ( col1 AS INTEGER ) * col1 FROM tab0 WHERE NOT col2 + - col0 IS NULL
----
1
441
6561

query I rowsort
SELECT 83 + 93 AS col0 FROM tab0
----
176
176
176

query I rowsort
SELECT ALL + 61 AS col2 FROM tab2 WHERE NOT + col0 < - col2 - + col0 * 81
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 46 ) col1 FROM tab1
----
-46
-46
-46

query III rowsort
SELECT * FROM tab0 WHERE NULL < 26 + col1
----

query I rowsort
SELECT DISTINCT col0 + - 33 FROM tab0
----
-18
54
64

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT IN ( col2 / 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT MIN( DISTINCT ( col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3317
SELECT MIN ( DISTINCT ( col2 ) ) AS col0 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 92
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 39 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col2 * + col1 FROM tab1 WHERE col0 * col1 <= ( - 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT COUNT( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT COUNT ( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
0

query I rowsort
SELECT - col0 FROM tab2 WHERE col2 IN ( 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT - ( col2 ) + 69 AS col1 FROM tab2 WHERE 54 * col2 <> CAST( + 17 AS SIGNED )
----
11
29
46

skipif mysql # not compatible
query I rowsort label-3323
SELECT - ( col2 ) + 69 AS col1 FROM tab2 WHERE 54 * col2 <> CAST ( + 17 AS INTEGER )
----
11
29
46

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 36
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 AND col2 * col1 + col0 * 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN 1 AND 20
----

query I rowsort
SELECT 61 + 83 FROM tab2
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT COUNT( 36 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3328
SELECT COUNT ( 36 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - 79 * - 25 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3330
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col0 + - CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query III rowsort label-3330
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col0 + - CAST ( NULL AS INTEGER ) / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col2 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3332
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - ( 85 ) AS SIGNED ) * + col0 > col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3332
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - ( 85 ) AS INTEGER ) * + col0 > col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( 20 ) ) <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT SUM( ALL 85 ) + + 91 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT SUM ( ALL 85 ) + + 91 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) = NULL
----
NULL

query I rowsort
SELECT 56 * + col0 AS col2 FROM tab0
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT ALL - 72 DIV col0 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - 72 / col0 AS col1 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT MIN( - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3338
SELECT MIN ( - col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( 55 * 14 ) NOT BETWEEN ( NULL ) AND ( col2 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 52 = + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 * col1 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - col0 * 10 + - 74 FROM tab1 cor0
----
-584
-924
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( 81 / + col2 ) BETWEEN NULL AND - col0
----
-3

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( 81 / + col2 ) BETWEEN NULL AND - col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT COUNT( 87 ) * - 59 + + COUNT( * ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-3346
SELECT COUNT ( 87 ) * - 59 + + COUNT ( * ) FROM tab0
----
-174

query I rowsort
SELECT col0 FROM tab0 WHERE NULL NOT BETWEEN col0 * ( + col1 ) AND col0 * + col0
----

query I rowsort
SELECT + col0 + 77 - 59 FROM tab2
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT COUNT( * ) + 38 AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3349
SELECT COUNT ( * ) + 38 AS col2 FROM tab2
----
41

query I rowsort
SELECT - 19 + col1 FROM tab0 WHERE - 4 IS NOT NULL
----
-18
2
62

query I rowsort
SELECT - 56 + col0 AS col1 FROM tab0
----
-41
31
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT - CAST( + col0 AS SIGNED ) + + col1 AS col1 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3352
SELECT - CAST ( + col0 AS INTEGER ) + + col1 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL + 84 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col2 / col1 ) OR + col2 + col2 * col0 IS NOT NULL
----
84
84
84

query I rowsort
SELECT ALL + 74 + - 87 AS col2 FROM tab2 AS cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + 77 > + col0
----

query I rowsort
SELECT 10 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 * - 20 FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 ) AND col1 * - 38 + col0 / - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL + CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 80 - + + col1 + col0 AS col2 FROM tab1 AS cor0
----
117
124
160

query I rowsort
SELECT col2 - 49 FROM tab0
----
-2
-39
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3361
SELECT ALL 61 DIV + COUNT( ALL 60 ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL 61 / + COUNT ( ALL 60 ) AS col2 FROM tab0
----
20

query I rowsort
SELECT ALL + 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT DISTINCT + ( - + ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + ( - + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT - + CAST( NULL AS SIGNED ) / - - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - + CAST ( NULL AS INTEGER ) / - - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - 65, col1 AS col1 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT + - 51 DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT + - 51 / col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + - col2 * - 77 AS col0 FROM tab2 AS cor0
----
1771
3080
4466

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT + - col2 * 75 IN ( - col0 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT SUM( ALL + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3370
SELECT SUM ( ALL + col0 ) AS col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT DISTINCT - + COUNT( * ) DIV + 91 AS col0 FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - + COUNT ( * ) / + 91 AS col0 FROM tab2 WHERE NULL >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 * - col0 - + 50 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col1 ) NOT BETWEEN + col1 * + 47 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 >= 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 * + - 48 FROM tab2 AS cor0
----
1104
1920
2784

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 40 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3379
SELECT DISTINCT + ( - COUNT( * ) ) + - + COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + ( - COUNT ( * ) ) + - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + + col0 + col1 - + col2 * - col2 FROM tab1 AS cor0
----
3571
4762
9281

query II rowsort
SELECT col1 + + col0 * + 30 AS col1, col1 FROM tab1 AS cor0
----
1544
14
2555
5
2777
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT + col1 + + col2 * + 62 + - 25 DIV col2 col1 FROM tab0 AS cor0
----
2995
6139
639

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3383
SELECT + col1 + + col2 * + 62 + - 25 / col2 col1 FROM tab0 AS cor0
----
2995
6139
639

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 = - 18 * + - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + MIN( ALL - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3385
SELECT + MIN ( ALL - col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT DISTINCT 29 DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT 29 / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT ( - COUNT( * ) ) + + + 51 AS col0 FROM tab0 cor0 WHERE - col2 > NULL
----
51

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT ( - COUNT ( * ) ) + + + 51 AS col0 FROM tab0 cor0 WHERE - col2 > NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT COUNT( * ) * + 16 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3388
SELECT COUNT ( * ) * + 16 FROM tab2 AS cor0
----
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 93 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 - + col1 + + 41 ) IN ( - 57 )
----

query II rowsort
SELECT ALL 35 * + col2 + + - ( 9 ), 93 AS col2 FROM tab0
----
1636
93
341
93
3456
93

query I rowsort
SELECT col1 * 31 - + 23 FROM tab2
----
1558
2054
2364

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT DISTINCT - MAX( - col0 ) AS col0, MAX( + 22 ) FROM tab0
----
15
22

skipif mysql # not compatible
query II rowsort label-3394
SELECT DISTINCT - MAX ( - col0 ) AS col0, MAX ( + 22 ) FROM tab0
----
15
22

query I rowsort
SELECT - col2 * - 70 - + col1 + 76 * col2 * - + col1 * + col0 + col2 AS col1 FROM tab0
----
-1387831
-4336724
-722800

query I rowsort
SELECT + col2 - + - 48 AS col0 FROM tab1
----
107
116
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT + col2 + CAST( + 81 AS SIGNED ) AS col0 FROM tab2 cor0
----
104
121
139

skipif mysql # not compatible
query I rowsort label-3397
SELECT + col2 + CAST ( + 81 AS INTEGER ) AS col0 FROM tab2 cor0
----
104
121
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL - COUNT( * ) * + ( - - 39 ) - 87 AS col2 FROM tab0 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL - COUNT ( * ) * + ( - - 39 ) - 87 AS col2 FROM tab0 cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3399
SELECT + CAST( NULL AS SIGNED ) * + - 73, - col2 col2 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3399
SELECT + CAST ( NULL AS INTEGER ) * + - 73, - col2 col2 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3401
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = ( + CAST( + col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3401
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = ( + CAST ( + col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 96 FROM tab1 cor0 WHERE NOT 91 IS NULL
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 + - 26 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT + - MIN( + col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + - MIN ( + col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * + - COUNT( * ) * COUNT( * ) FROM tab1 WHERE 23 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE 23 + + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3407
SELECT - 49 AS col1, + col0 * 79 DIV + ( - ( + - col2 ) ) AS col1 FROM tab1
----
-49
105
-49
113
-49
41

skipif mysql # not compatible
query II rowsort label-3407
SELECT - 49 AS col1, + col0 * 79 / + ( - ( + - col2 ) ) AS col1 FROM tab1
----
-49
105
-49
113
-49
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + SUM( + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3408
SELECT + SUM ( + col0 ) FROM tab1
----
227

query I rowsort
SELECT col0 * + 84 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT col1 + - + col2 * col0 AS col1 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - ( + - COUNT( * ) ) + + 21 AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3411
SELECT - ( + - COUNT ( * ) ) + + 21 AS col1 FROM tab0
----
24

query I rowsort
SELECT DISTINCT - 41 FROM tab2 WHERE + ( - 98 ) BETWEEN + col0 AND col1
----

query II rowsort
SELECT col0 * 4 + col1, 67 AS col1 FROM tab1
----
218
67
345
67
411
67

query II rowsort
SELECT ALL col2 * ( + 12 ) + + + 67 * col2 + col0 AS col1, - col0 FROM tab2 AS cor0
----
1863
-46
3224
-64
4657
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 90 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT - - 92 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
92

query I rowsort
SELECT DISTINCT - 36 * col1 * + col0 + + 24 - col0 * + col0 AS col0 FROM tab1
----
-162229
-22501
-28281

query III rowsort
SELECT * FROM tab0 WHERE + ( - - col0 ) NOT BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col2 FROM tab1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + + + col2 + + - ( - + ( - - col2 ) ) col1, 42 + + 8 AS col0 FROM tab2 AS cor0
----
157
50
183
50
97
50

query I rowsort
SELECT + 6 + + 76 * + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-178290
-374522
-381894

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + COUNT( * ) - + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + COUNT ( * ) - + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
2

query III rowsort
SELECT * FROM tab1 WHERE 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT ALL + col0 + + - col0 + + 0 + + 21 DIV - + ( - col2 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + col0 + + - col0 + + 0 + + 21 / - + ( - col2 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 83 >= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL SUM( DISTINCT - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL SUM ( DISTINCT - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - 40 * ( - + COUNT( * ) ) - + + 24 * + + 17 + + - COUNT( * ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - 40 * ( - + COUNT ( * ) ) - + + 24 * + + 17 + + - COUNT ( * ) FROM tab1
----
-291

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NULL <> + col0
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT CAST( NULL AS SIGNED ) / - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT CAST ( NULL AS INTEGER ) / - - COUNT ( * ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + 74 col0 FROM tab2
----
-2042
-4022
-5551

query I rowsort
SELECT ALL col2 * + 90 FROM tab1 WHERE NOT + col2 + 0 IS NULL
----
5310
6120
8640

query I rowsort
SELECT ALL col1 * - 27 * - col0 AS col1 FROM tab2
----
133056
135675
63342

query I rowsort
SELECT DISTINCT - 60 * - 88 * 45 + + 34 - col1 FROM tab1
----
237587
237620
237629

query I rowsort
SELECT + col2 + - 82 FROM tab0 WHERE + ( col2 ) <> + col0
----
-35
-72
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 38 NOT IN ( + col2 )
----

query I rowsort
SELECT - 38 * - col0 AS col0 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT + COUNT( - 88 ), 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
23

skipif mysql # not compatible
query II rowsort label-3440
SELECT + COUNT ( - 88 ), 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
23

query I rowsort
SELECT 18 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3442
SELECT * FROM tab2 WHERE NOT ( + col1 * col1 * - - ( + + CAST( NULL AS SIGNED ) ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3442
SELECT * FROM tab2 WHERE NOT ( + col1 * col1 * - - ( + + CAST ( NULL AS INTEGER ) ) ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 / - 29 NOT IN ( 3, - 75 - col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 71 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 71 IS NOT NULL
----
0

query II rowsort
SELECT ALL + + col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT - 73 * col1 DIV + + col2 + 21 - + col1 + col0 - col2 - - col1 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
2224
4820
4987

skipif mysql # not compatible
query I rowsort label-3446
SELECT - 73 * col1 / + + col2 + 21 - + col1 + col0 - col2 - - col1 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
2224
4820
4987

query II rowsort
SELECT + + col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / + + 35 AND NULL
----

query I rowsort
SELECT ALL 81 * 27 FROM tab0 WHERE col2 > - col0 + col1 - - + col1 * - - col1 * + col0 * ( + col2 ) * ( - + col0 ) + col1 + + 96
----
2187
2187
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT + SUM( ALL + - 90 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-270

skipif mysql # not compatible
query I rowsort label-3450
SELECT + SUM ( ALL + - 90 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE ( + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE ( + - col2 ) IS NULL
----
0

query II rowsort
SELECT ALL + col1 + + col2 AS col2, col1 * 45 FROM tab1
----
110
630
115
2115
64
225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 + + + col1 IN ( col1, col1 + col1 )
----

query I rowsort
SELECT - - ( - col1 ) * + + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT COUNT( * ) * + 94 AS col2 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT COUNT ( * ) * + 94 AS col2 FROM tab2 AS cor0
----
282

query I rowsort
SELECT ALL - col2 + + 54 FROM tab0 AS cor0
----
-45
44
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 col1 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT col2 - - col1 + ( col0 ) FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT COUNT( * ) * 74 AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT COUNT ( * ) * 74 AS col2 FROM tab2
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - col2, 19 col0 FROM tab1
----
-1344
19
-295
19
-3196
19

query II rowsort
SELECT col2, col2 AS col0 FROM tab2 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT - col2 DIV - - col2 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3462
SELECT - col2 / - - col2 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT ( - + ( + SUM( col2 ) ) ) DIV + COUNT( * ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3463
SELECT ( - + ( + SUM ( col2 ) ) ) / + COUNT ( * ) AS col1 FROM tab2
----
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 / 11 AS col1 FROM tab0 WHERE NOT NULL IN ( - col0, 85 )
----

query I rowsort
SELECT + + col0 * + col1 + + - col1 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT + col0 DIV - 67 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT + col0 / - 67 AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT - COUNT( * ) * + ( + 13 ), - 47 col0 FROM tab2
----
-39
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3468
SELECT - COUNT ( * ) * + ( + 13 ), - 47 col0 FROM tab2
----
-39
-47

query I rowsort
SELECT 76 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 20 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT ALL - 3 DIV - ( + - ( + col1 ) ) + - - ( - col0 ) DIV - ( - - 7 ) FROM tab0 AS cor0
----
10
12
2

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - 3 / - ( + - ( + col1 ) ) + - - ( - col0 ) / - ( - - 7 ) FROM tab0 AS cor0
----
10
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * - + 77
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * - + 77
----
0

query I rowsort
SELECT ALL - ( - 21 ) AS col2 FROM tab1 cor0
----
21
21
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) <> col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - 26 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, + 16 FROM tab1
----
14
16
47
16
5
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3479
SELECT COUNT( * ) DIV 8 AS col0 FROM tab2 WHERE + col0 = ( - 15 DIV - - CAST( NULL AS SIGNED ) * + col2 + - + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT COUNT ( * ) / 8 AS col0 FROM tab2 WHERE + col0 = ( - 15 / - - CAST ( NULL AS INTEGER ) * + col2 + - + 81 )
----
0

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1
----
-95

query I rowsort
SELECT ALL - ( - - 28 ) FROM tab1
----
-28
-28
-28

query III rowsort
SELECT * FROM tab0 WHERE - 57 >= 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + COUNT( * ) + 17 AS col1 FROM tab0 WHERE NULL IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-3483
SELECT + COUNT ( * ) + 17 AS col1 FROM tab0 WHERE NULL IS NULL
----
20

query II rowsort
SELECT ALL - col1 AS col0, - 33 * + col1 + + col0 AS col2 FROM tab1
----
-14
-411
-47
-1460
-5
-80

query I rowsort
SELECT DISTINCT col2 * + - col0 + 77 FROM tab2
----
-2483
-4273
-981

query I rowsort
SELECT DISTINCT - ( + - 67 ) AS col0 FROM tab0
----
67

query I rowsort
SELECT ALL col1 + - 16 AS col0 FROM tab1
----
-11
-2
31

query I rowsort
SELECT col0 + 75 AS col0 FROM tab2
----
121
139
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT 75 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
75
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < - 79 * + col0
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + 92 FROM tab0 cor0
----
-1
92
-21
92
-81
92

query I rowsort
SELECT 90 * + col0 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT 82 * col2 * + col0 FROM tab2
----
209920
356700
86756

query I rowsort
SELECT ALL - 35 * + - col1 AS col1 FROM tab2
----
1785
2345
2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) * + ( + COUNT( * ) ) + + 48 AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) * + ( + COUNT ( * ) ) + + 48 AS col1 FROM tab2 AS cor0
----
57

query I rowsort
SELECT + 88 * col2 + + - col0 FROM tab0 AS cor0
----
4121
793
8615

query I rowsort
SELECT ALL - + col2 - col0 AS col0 FROM tab1 cor0
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL + col0 + + col2 DIV - col0 FROM tab0 AS cor0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + col0 + + col2 / - col0 FROM tab0 AS cor0
----
12
87
96

query I rowsort
SELECT ALL + col1 * + 71 - + col0 * - - col1 FROM tab2 cor0
----
-268
1275
539

query I rowsort
SELECT ALL + 62 + - + col0 FROM tab0 AS cor0
----
-25
-35
47

query I rowsort
SELECT DISTINCT - col0 * + + 43 * - + ( + - col1 ) FROM tab1
----
-18275
-183911
-30702

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT COUNT( * ) * 39 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-3503
SELECT COUNT ( * ) * 39 FROM tab1
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT + 49 AS col0 FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) + - + 53 IS NULL )
----
49

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + 49 AS col0 FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) + - + 53 IS NULL )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL SUM( col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL SUM ( col2 ) AS col2 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT CAST( NULL AS SIGNED ) * + SUM( ALL - - 51 ) * COUNT( * ) * - 56 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT CAST ( NULL AS INTEGER ) * + SUM ( ALL - - 51 ) * COUNT ( * ) * - 56 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - 25, col0 AS col0 FROM tab1
----
-25
51
-25
85
-25
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT ALL col2 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL col2 / - - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 col1 FROM tab1 cor0
----
92

query I rowsort
SELECT DISTINCT + + 99 AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ( + - MIN( DISTINCT + + ( + col0 ) ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3512
SELECT ( + - MIN ( DISTINCT + + ( + col0 ) ) ) FROM tab1 cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 + - 99 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * + 12 AS col0 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT - col1 <= + 90 * - + 59 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3517
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col2 + - 4 FROM tab2
----
-27
-44
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-3519
SELECT DISTINCT - - ( col2 ) AS col1, + col2 DIV + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-3519
SELECT DISTINCT - - ( col2 ) AS col1, + col2 / + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
-1
47
-1
99
-1

query I rowsort
SELECT DISTINCT + + 52 + + + col0 + - col0 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1396
3248
347

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( * ) + - - 44 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3521
SELECT COUNT ( * ) + - - 44 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ALL - 3 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - 3 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT col0 * - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + MAX( ALL + col2 ) * + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + MAX ( ALL + col2 ) * + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + 13 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 13 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3527
SELECT col0 DIV - col1 AS col1, col1 * - col0 + - - 77 col2 FROM tab1 AS cor0
----
-1
-4200
-17
-348
-3
-637

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3527
SELECT col0 / - col1 AS col1, col1 * - col0 + - - 77 col2 FROM tab1 AS cor0
----
-1
-4200
-17
-348
-3
-637

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT DISTINCT col1 DIV - - col2 + + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-75
2
33

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT col1 / - - col2 + + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-75
2
33

query I rowsort
SELECT - col1 * - - col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL IS NULL ) OR ( - 93 ) BETWEEN + 83 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 FROM tab0 WHERE col0 * - 86 IS NULL
----

query I rowsort
SELECT ALL - 69 * + - col2 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT - ( - + 43 ) FROM tab2
----
43
43
43

query I rowsort
SELECT DISTINCT - col2 + + 0 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT col0 * - col0 DIV - col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT col0 * - col0 / - col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT DISTINCT + col0 * + + CAST( NULL AS SIGNED ) / - 22 - + 94 + - - CAST( 33 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT + col0 * + + CAST ( NULL AS INTEGER ) / - 22 - + 94 + - - CAST ( 33 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 13 FROM tab1 AS cor0
----
38
72
78

query I rowsort
SELECT DISTINCT - 85 * + + col2 + + col0 * 24 FROM tab0 AS cor0
----
-3635
-6087
1238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + CAST( - - 73 AS SIGNED ) + + + col0 FROM tab0 AS cor0
----
160
170
88

skipif mysql # not compatible
query I rowsort label-3539
SELECT + CAST ( - - 73 AS INTEGER ) + + + col0 FROM tab0 AS cor0
----
160
170
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + - COUNT( * ) + - 94 AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + - COUNT ( * ) + - 94 AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - col0 * - 98 FROM tab0 AS cor0
----
1470
8526
9506

query I rowsort
SELECT ALL + 34 * + 90 * + col0 + - - col1 * + + col2 FROM tab1 AS cor0
----
157404
260395
281656

query II rowsort
SELECT col2 AS col1, 41 FROM tab2 AS cor0
----
23
41
40
41
58
41

query I rowsort
SELECT ALL + + 97 AS col0 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - + SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3547
SELECT - + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL + col2, - col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3549
SELECT DISTINCT + - col1 col0, + 59 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3549
SELECT DISTINCT + - col1 col0, + 59 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 72 IN ( + + 54, - 81, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3551
SELECT ALL ( - - 84 ), CAST( 9 AS SIGNED ) * - 30 + - + 27 + - COUNT( * ) AS col0 FROM tab2
----
84
-300

skipif mysql # not compatible
query II rowsort label-3551
SELECT ALL ( - - 84 ), CAST ( 9 AS INTEGER ) * - 30 + - + 27 + - COUNT ( * ) AS col0 FROM tab2
----
84
-300

query II rowsort
SELECT col2 * + - 64 AS col1, + col2 FROM tab2
----
-1472
23
-2560
40
-3712
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - ( + MAX( DISTINCT + col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3553
SELECT - ( + MAX ( DISTINCT + col0 ) ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT - COUNT( DISTINCT + + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3554
SELECT - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT + col0 DIV + 39 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3555
SELECT + col0 / + 39 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL - SUM( + col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL - SUM ( + col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-182

query I rowsort
SELECT ALL + + col1 * - + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT DISTINCT - 62 * - - 42 + + + 98 * + - CAST( + ( - col1 ) AS SIGNED ) * - - col1 + col0 FROM tab0 AS cor0
----
-2409
40701
640389

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT - 62 * - - 42 + + + 98 * + - CAST ( + ( - col1 ) AS INTEGER ) * - - col1 + col0 FROM tab0 AS cor0
----
-2409
40701
640389

query I rowsort
SELECT DISTINCT col1 + - + col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT SUM( + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT SUM ( + col0 ) FROM tab0
----
199

query I rowsort
SELECT col0 FROM tab1 WHERE + + 84 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3562
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + col2 col2 FROM tab2 WHERE NOT ( + col0 - - col2 * + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3562
SELECT DISTINCT CAST ( NULL AS REAL ) / + col2 col2 FROM tab2 WHERE NOT ( + col0 - - col2 * + col1 ) IS NULL
----
NULL

query I rowsort
SELECT 59 + - col0 FROM tab0
----
-28
-38
44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 = - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + + - col2 + col2 * + 86 AS col0 FROM tab0
----
4010
8512
937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL + COUNT( * ) - + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + COUNT ( * ) - + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT COUNT( + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3567
SELECT COUNT ( + + col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 + - col0 + + col2 AS col2 FROM tab0
----
-56
113
3

query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab2 cor0
----
-98

query I rowsort
SELECT - col1 * 89 AS col0 FROM tab1 AS cor0
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT - 77, + COUNT( * ) * + + 74 col1 FROM tab1
----
-77
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3571
SELECT - 77, + COUNT ( * ) * + + 74 col1 FROM tab1
----
-77
222

query II rowsort
SELECT DISTINCT 5 AS col1, 57 AS col1 FROM tab0
----
5
57

query II rowsort
SELECT + ( - + col0 ) AS col1, - 66 AS col1 FROM tab2
----
-46
-66
-64
-66
-75
-66

query I rowsort
SELECT ALL - ( - 77 ) FROM tab2
----
77
77
77

query I rowsort
SELECT ( ( + + ( + col0 ) ) ) FROM tab1 WHERE NOT + - col2 + - 77 / - - col1 + - + 30 * + 45 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 * col1 + + col1 / + + col2 + ( + + ( col1 ) ) / - 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col0 FROM tab0
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0, col1 * col0 FROM tab1
----
51
714
85
425
91
4277

query I rowsort
SELECT DISTINCT - 13 * - 24 AS col1 FROM tab1 AS cor0
----
312

query I rowsort
SELECT col2 * + - 35 AS col0 FROM tab1 AS cor0
----
-2065
-2380
-3360

query I rowsort
SELECT col1 * - 72 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT + SUM( ALL + + 62 ) * + - 63 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-35154

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + SUM ( ALL + + 62 ) * + - 63 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-35154

query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col0 < - col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + - col0 ) IN ( 97, - col1 * - + 75, + col1 )
----

query I rowsort
SELECT + + 7 + + ( 46 ) FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT + col1 + + + 69 + + col0 * - 21 FROM tab2 AS cor0
----
-1198
-1439
-846

query I rowsort
SELECT ALL 62 * col1 - + col1 + + col2 AS col0 FROM tab1 AS cor0
----
2935
364
950

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + + col0 * - 29 / + col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - ( + 46 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - ( + 46 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL - MIN( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - MIN ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT DISTINCT - + ( - 71 ) * - - col2 + col0 + - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - + ( - 71 ) * - - col2 + col0 + - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 92 col1 FROM tab2
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT ALL - 46, COUNT( * ) * - SUM( DISTINCT col2 ) * - - 41 + - - COUNT( * ) AS col2 FROM tab0
----
-46
-19185

skipif mysql # not compatible
query II rowsort label-3597
SELECT ALL - 46, COUNT ( * ) * - SUM ( DISTINCT col2 ) * - - 41 + - - COUNT ( * ) AS col2 FROM tab0
----
-46
-19185

query II rowsort
SELECT + 72 * - ( - - col1 ), col0 FROM tab2
----
-3672
46
-4824
75
-5544
64

query I rowsort
SELECT ALL + 2 + + 21 + + col0 AS col1 FROM tab2
----
69
87
98

query I rowsort
SELECT 36 - - + col1 FROM tab2
----
103
113
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + 31 + - COUNT( * ) AS col1 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-3601
SELECT + 31 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
28

query I rowsort
SELECT - 11 * + col1 + + - col2 AS col2 FROM tab0 AS cor0
----
-110
-241
-938

query I rowsort
SELECT + col2 + 84 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT - 91 + - col2 AS col1 FROM tab0 AS cor0
----
-101
-138
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT col0 FROM tab2 AS cor0 WHERE - 72 * - CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3605
SELECT col0 FROM tab2 AS cor0 WHERE - 72 * - CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 16 + - + 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-100

query I rowsort
SELECT DISTINCT + 37 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 + + col0 + - col2, - col1, ( + ( - col0 ) ) * + 37 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3608
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) >= CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3608
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) >= CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - 61 * + + COUNT( * ) AS col0 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 61 * + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT + MAX( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + MAX ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col2 <= - col2 / + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 27 * 51 IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-3612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 27 * 51 IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT MIN( DISTINCT + + 47 ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-3614
SELECT MIN ( DISTINCT + + 47 ) AS col1 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - MAX( ALL - 57 ) + + + COUNT( * ) - 33 - - 96 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3615
SELECT - MAX ( ALL - 57 ) + + + COUNT ( * ) - 33 - - 96 FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL COUNT( ALL - col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL COUNT ( ALL - col0 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + + 17 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT SUM( - - 27 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT SUM ( - - 27 ) FROM tab1
----
81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 50 IS NOT NULL
----

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT - col2 + - 43 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT - col2 + - 43 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT - col0 + - CAST( - col0 AS SIGNED ) col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3623
SELECT - col0 + - CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT 18 + - - COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3624
SELECT 18 + - - COUNT ( * ) FROM tab1
----
21

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT ( - + COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT ( - + COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT 59 * COUNT( * ), 32 + + + 14 AS col2 FROM tab1
----
177
46

skipif mysql # not compatible
query II rowsort label-3627
SELECT 59 * COUNT ( * ), 32 + + + 14 AS col2 FROM tab1
----
177
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL 17 * + COUNT( * ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL 17 * + COUNT ( * ) AS col0 FROM tab1
----
51

query I rowsort
SELECT ALL - 58 + - - col2 FROM tab0
----
-11
-48
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL col2 + CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL col2 + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT SUM( ALL 34 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3631
SELECT SUM ( ALL 34 ) FROM tab0
----
102

query I rowsort
SELECT + 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT DISTINCT + col0 DIV 32 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + col0 / 32 FROM tab1
----
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT - COUNT( * ) DIV 66 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - COUNT ( * ) / 66 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + + col2 * + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

query I rowsort
SELECT + col2 * + 17 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - 35 * - COUNT( * ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3637
SELECT - 35 * - COUNT ( * ) FROM tab1 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 = NULL
----

query II rowsort
SELECT + + 26, col0 AS col2 FROM tab0 AS cor0
----
26
15
26
87
26
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT + - 63 DIV + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3640
SELECT + - 63 / + col0 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT - 67 - 34, - col0 AS col0 FROM tab0 cor0 WHERE - col2 IN ( + col1, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3642
SELECT ALL MAX( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL MAX ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT MIN( ALL + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT MIN ( ALL + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT - SUM( ( - 26 ) ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - SUM ( ( - 26 ) ) AS col2 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT + ( + CAST( + 54 AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
54
54
54

skipif mysql # not compatible
query I rowsort label-3645
SELECT + ( + CAST ( + 54 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - - SUM( col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3646
SELECT - - SUM ( col0 ) FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT ALL - - CAST( NULL AS SIGNED ) + - 87 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 87 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + col0 ) * - + col1 - - col0 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT ALL + col2 * + 11 AS col2 FROM tab0
----
1089
110
517

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 25 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col1, 86, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - 60 + + + col0 FROM tab0
----
-45
27
37

query I rowsort
SELECT + - 13 * - + col1 FROM tab0 AS cor0
----
1053
13
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 34 col2 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + - col2 * - col0 + - col1 + 5 AS col0 FROM tab2 AS cor0
----
1012
2488
4288

query I rowsort
SELECT DISTINCT + col0 - + 94 FROM tab0 AS cor0
----
-7
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT + MIN( col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3658
SELECT + MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 27 - ( + + 7 ) AS col1 FROM tab2
----
20

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL IN ( + + col2, - col1, - + 45, + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 - - col1 - - 58 + - ( - - 48 ) FROM tab0
----
106
108
118

query I rowsort
SELECT DISTINCT - 92 + - - col1 + - + col0 AS col1 FROM tab1
----
-129
-136
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT 28 + - 46 - - col0 DIV col1 + + col0 AS col2 FROM tab2
----
28
46
58

skipif mysql # not compatible
query I rowsort label-3664
SELECT 28 + - 46 - - col0 / col1 + + col0 AS col2 FROM tab2
----
28
46
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * - 52 col1 FROM tab0
----
-2392
-2392
-2392

query I rowsort
SELECT 36 * 56 FROM tab0
----
2016
2016
2016

query I rowsort
SELECT - 99 * + col0 + 18 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 92 * + SUM( col0 ) FROM tab1 cor0
----
20884

skipif mysql # not compatible
query I rowsort label-3668
SELECT 92 * + SUM ( col0 ) FROM tab1 cor0
----
20884

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND NULL
----

query II rowsort
SELECT col0, + col0 AS col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL 61 * + + SUM( 82 ) AS col2 FROM tab0 cor0
----
15006

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL 61 * + + SUM ( 82 ) AS col2 FROM tab0 cor0
----
15006

query I rowsort
SELECT - col0 * 41 FROM tab2 AS cor0 WHERE NOT col2 > - 41 + + ( col0 )
----

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab1 WHERE + 84 >= 70
----
46

query I rowsort
SELECT DISTINCT - 1 * + + col0 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3675
SELECT CAST( NULL AS SIGNED ) * - col2 col2, - 57 - col0 AS col1 FROM tab2
----
NULL
-103
NULL
-121
NULL
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3675
SELECT CAST ( NULL AS INTEGER ) * - col2 col2, - 57 - col0 AS col1 FROM tab2
----
NULL
-103
NULL
-121
NULL
-132

query I rowsort
SELECT DISTINCT + + ( ( - - col0 ) ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 69 * + 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 69 + + 58 + + col0 BETWEEN + - 77 AND 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 96 * col2, col0 FROM tab2 AS cor0
----
-2208
46
-3840
64
-5568
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + ( COUNT( * ) ) * - AVG ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 74 <= 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT + ( COUNT ( * ) ) * - AVG ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 74 <= 83 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3681
SELECT ALL - 67 DIV - COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - 67 / - COUNT ( * ) FROM tab1 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col0, + ( - col2 ) FROM tab2
----
4
-23
4
-40
4
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL 9, 42 - + COUNT( * ) AS col0 FROM tab2
----
9
39

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL 9, 42 - + COUNT ( * ) AS col0 FROM tab2
----
9
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3684
SELECT DISTINCT + ( MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) ), 2 AS col1 FROM tab0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3684
SELECT DISTINCT + ( MAX ( DISTINCT - CAST ( NULL AS REAL ) ) ), 2 AS col1 FROM tab0
----
NULL
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 94, - col2 * col2 + 51 col1 FROM tab2
----
94
-1549
94
-3313
94
-478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT SUM( DISTINCT - col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT SUM ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 12 * + ( + ( - COUNT( * ) ) ) + - + 21 + - - ( - COUNT( * ) ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-3687
SELECT 12 * + ( + ( - COUNT ( * ) ) ) + - + 21 + - - ( - COUNT ( * ) ) FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL col2 AS col0, + 16 FROM tab0 AS cor0
----
10
16
47
16
99
16

query I rowsort
SELECT DISTINCT + 1 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - 63 + - col2 FROM tab2
----
-103
-121
-86

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3694
SELECT ALL - 16 + + + CAST( NULL AS DECIMAL ) + - 50 + - 23 * + SUM( - col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - 16 + + + CAST ( NULL AS REAL ) + - 50 + - 23 * + SUM ( - col0 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / - col0 * 39 col0 FROM tab1 AS cor0 WHERE - col1 * col2 >= + 51 * col1
----

query I rowsort
SELECT ALL + - ( + col1 ) - - 51 AS col1 FROM tab2 AS cor0
----
-16
-26
0

query I rowsort
SELECT DISTINCT - 22 + - + col2 FROM tab2 AS cor0
----
-45
-62
-80

query I rowsort
SELECT DISTINCT + 93 - - 12 AS col1 FROM tab1 AS cor0 WHERE + ( col1 ) NOT BETWEEN + - col0 + + 38 + + 12 AND 0
----
105

query I rowsort
SELECT col2 + + + 30 + + 89 FROM tab1 AS cor0
----
178
187
215

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3700
SELECT CAST( NULL AS DECIMAL ) + + col1 + - + 38 + col2 * - - col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3700
SELECT CAST ( NULL AS REAL ) + + col1 + - + 38 + col2 * - - col1 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( + col1 + 14 * col1 * + col0 * + - col2 * + col1, col2, ( + col0 ), + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3702
SELECT ALL CAST( - - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) AS SIGNED ) - + CAST( - 95 AS SIGNED ) * - CAST( AVG ( + col1 ) AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3702
SELECT ALL CAST ( - - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) AS INTEGER ) - + CAST ( - 95 AS INTEGER ) * - CAST ( AVG ( + col1 ) AS INTEGER ) col1 FROM tab0
----
NULL

query II rowsort
SELECT - col0 AS col2, col2 * + 20 FROM tab1
----
-51
1920
-85
1180
-91
1360

query I rowsort
SELECT DISTINCT + col2 * - 47 AS col2 FROM tab2
----
-1081
-1880
-2726

query I rowsort
SELECT - 69 * - col1 AS col0 FROM tab1
----
3243
345
966

query I rowsort
SELECT ALL ( + 39 ) AS col1 FROM tab1
----
39
39
39

query I rowsort
SELECT + col1 * + 35 AS col0 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT ALL - 76 AS col1 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT ALL 61 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT MIN( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3710
SELECT MIN ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT - 57 DIV - SUM( DISTINCT col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT - 57 / - SUM ( DISTINCT col1 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT - MIN( + 66 ) AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3713
SELECT - MIN ( + 66 ) AS col1 FROM tab2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3714
SELECT * FROM tab2 WHERE NOT CAST( + ( + + ( + 69 ) ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3714
SELECT * FROM tab2 WHERE NOT CAST ( + ( + + ( + 69 ) ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-47

query I rowsort
SELECT - col0 + - 29 AS col1 FROM tab2 AS cor0
----
-104
-75
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT DISTINCT - CAST( 10 AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT - CAST ( 10 AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT col0 + - 83 FROM tab1 cor0
----
-32
2
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT CAST( 98 AS SIGNED ) * - 16 + - + COUNT( DISTINCT - + 73 ) AS col1 FROM tab1 AS cor0
----
-1569

skipif mysql # not compatible
query I rowsort label-3720
SELECT CAST ( 98 AS INTEGER ) * - 16 + - + COUNT ( DISTINCT - + 73 ) AS col1 FROM tab1 AS cor0
----
-1569

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL COUNT( * ) * + 33 * + COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL COUNT ( * ) * + 33 * + COUNT ( * ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - 88
----

query I rowsort
SELECT - ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT + + col0 / - CAST( NULL AS SIGNED ) * - + ( - + 26 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + + col0 / - CAST ( NULL AS INTEGER ) * - + ( - + 26 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - - + ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab2 WHERE - + col0 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL + col2 AS col2, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + COUNT( * ) * + COUNT( * ) + + 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
114

skipif mysql # not compatible
query I rowsort label-3730
SELECT + COUNT ( * ) * + COUNT ( * ) + + 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
114

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - 68 - + 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + col0 col2 FROM tab1 AS cor0
----
104
64
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT DISTINCT - - col2 DIV + ( - 64 ) + + 2 * - 40 AS col0 FROM tab1 AS cor0
----
-80
-81

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - - col2 / + ( - 64 ) + + 2 * - 40 AS col0 FROM tab1 AS cor0
----
-80
-81

query I rowsort
SELECT + col0 * + 30 * + col0 AS col0 FROM tab1 AS cor0
----
216750
248430
78030

query I rowsort
SELECT - 59 * + - col1 + - 44 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1195
15
4735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT + col1 * + col0 + 96 AS col1 FROM tab2 WHERE NOT - 22 * + CAST( + + col1 AS SIGNED ) IS NULL
----
2442
5024
5121

skipif mysql # not compatible
query I rowsort label-3737
SELECT + col1 * + col0 + 96 AS col1 FROM tab2 WHERE NOT - 22 * + CAST ( + + col1 AS INTEGER ) IS NULL
----
2442
5024
5121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT ALL CAST( - SUM( 6 ) AS SIGNED ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL CAST ( - SUM ( 6 ) AS INTEGER ) FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - COUNT( * ) - 52 + + 16 FROM tab1 WHERE NOT NULL IS NULL
----
-36

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( * ) - 52 + + 16 FROM tab1 WHERE NOT NULL IS NULL
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + MAX( ALL - - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3740
SELECT + MAX ( ALL - - col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT + COUNT( * ) * 20, - 99 AS col0 FROM tab2
----
60
-99

skipif mysql # not compatible
query II rowsort label-3741
SELECT + COUNT ( * ) * 20, - 99 AS col0 FROM tab2
----
60
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + col2 * + - col1 * col0 * - - 90 AS col0 FROM tab0
----
-1644300
-5139450
-864270

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - col2 / + - 72 + col2 > + - col1 + - 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 77 + 21 * + col2 + + col0 col2 FROM tab1 AS cor0
----
-2100
939
989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT - + CAST( NULL AS SIGNED ) * + ( + col2 ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT - + CAST ( NULL AS INTEGER ) * + ( + col2 ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT - col2 + col0 * - CAST( + - ( + 12 ) AS SIGNED ) * + 52 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
31728
52981
56716

skipif mysql # not compatible
query I rowsort label-3747
SELECT - col2 + col0 * - CAST ( + - ( + 12 ) AS INTEGER ) * + 52 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
31728
52981
56716

query I rowsort
SELECT col1 * - 32 * - col0 + col2 + - col2 AS col2 FROM tab1
----
13600
136864
22848

query II rowsort
SELECT ALL col1 AS col1, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3750
SELECT DISTINCT + col0 col0, col2, - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
9 values hashing to 201ed14d510d8e1592e1ff00f3965a91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3750
SELECT DISTINCT + col0 col0, col2, - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
9 values hashing to 201ed14d510d8e1592e1ff00f3965a91

query I rowsort
SELECT ( - 29 ) + - col2 AS col2 FROM tab0
----
-128
-39
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + col1 + col1 + - - col0 col0 FROM tab1
----
14
79
47
185
5
95

query I rowsort
SELECT 91 + + col2 + + col1 AS col0 FROM tab1
----
155
201
206

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + ( - COUNT( * ) ) * - 21 - + SUM( DISTINCT + 68 ) col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3757
SELECT + ( - COUNT ( * ) ) * - 21 - + SUM ( DISTINCT + 68 ) col0 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT 65 - + - 97 + + - col1 + 55 FROM tab1
----
170
203
212

query I rowsort
SELECT col0 * col1 - 93 + - + 94 * + col2 FROM tab2
----
-520
1075
91

query II rowsort
SELECT ( col0 ), col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + SUM( ALL - ( 97 ) ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + SUM ( ALL - ( 97 ) ) FROM tab0 AS cor0
----
-291

query II rowsort
SELECT - 88 AS col1, - 96 FROM tab2
----
-88
-96
-88
-96
-88
-96

query I rowsort
SELECT ALL - 63 * + + col0 FROM tab1
----
-3213
-5355
-5733

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN + + col0 AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= - 55 - + col1 + 40
----

query I rowsort
SELECT - col1 * + - col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT 38 * 96 AS col1 FROM tab1 AS cor0
----
3648
3648
3648

query I rowsort
SELECT DISTINCT - 35 * - col0 AS col0 FROM tab1
----
1785
2975
3185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 38
----

query I rowsort
SELECT ALL + col0 * col0 + - 62 FROM tab0
----
163
7507
9347

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT MAX( ALL - col1 ) + - 23 col0 FROM tab2
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3771
SELECT DISTINCT MAX ( ALL - col1 ) + - 23 col0 FROM tab2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT 30 + COUNT( * ) DIV MAX( col0 ) col0 FROM tab2
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3772
SELECT DISTINCT 30 + COUNT ( * ) / MAX ( col0 ) col0 FROM tab2
----
30

query I rowsort
SELECT col2 * 27 FROM tab0
----
1269
2673
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / + 42 - + 22 * col1 col1 FROM tab0 WHERE NOT NULL <= + 9
----

query I rowsort
SELECT + 92 * + col2 AS col2 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT DISTINCT 36 * 92 AS col1 FROM tab2
----
3312

query I rowsort
SELECT 18 * 92 FROM tab2
----
1656
1656
1656

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 39 FROM tab1 WHERE 34 IS NOT NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT 34 * COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT 34 * COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( 97 + col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3781
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( 97 + col1 ) IS NULL
----
-3

query I rowsort
SELECT - col2 * + col2 + + 71 AS col0 FROM tab0
----
-2138
-29
-9730

query I rowsort
SELECT ALL - 73 * ( + col1 * + 39 ) FROM tab2
----
-145197
-190749
-219219

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( 82 ) - ( 57 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT CAST( NULL AS SIGNED ) + 22 * 81 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT CAST ( NULL AS INTEGER ) + 22 * 81 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * + 41 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL col2 * + col2 + + 93 AS col2 FROM tab1 WHERE 69 BETWEEN 66 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL col2 * + col2 + + 93 AS col2 FROM tab1 WHERE 69 BETWEEN 66 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * col2 + - 49 AS col1 FROM tab1 AS cor0
----
-1393
-3245
-344

query I rowsort
SELECT + 95 + col0 * - 91 AS col2 FROM tab2 AS cor0 WHERE - 43 NOT IN ( col0 )
----
-4091
-5729
-6730

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - MAX( ALL col1 ) + + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3792
SELECT - MAX ( ALL col1 ) + + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 6 - col1 < - col1 * col0
----

query I rowsort
SELECT col0 + - ( + 85 + - col1 ) FROM tab0 AS cor0
----
11
13
23

query I rowsort
SELECT ( + col2 ) + 73 AS col0 FROM tab0 AS cor0
----
120
172
83

query I rowsort
SELECT ALL col2 * 37 FROM tab0 cor0 WHERE NULL <> ( col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT COUNT( * ) * 24 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3797
SELECT COUNT ( * ) * 24 AS col1 FROM tab2
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 31 ) <> ( NULL )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT 85 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3800
SELECT 85 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT + COUNT( * ) DIV MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT + COUNT ( * ) / MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT DISTINCT + + ( + col1 ) DIV 2 FROM tab1 AS cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + + ( + col1 ) / 2 FROM tab1 AS cor0
----
2
23
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT + 21 DIV COUNT( * ) AS col2 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 21 / COUNT ( * ) AS col2 FROM tab2 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT + - MAX( col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3804
SELECT + - MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 93 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE col1 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE col1 >= ( NULL )
----
NULL

query I rowsort
SELECT ALL col1 * - + col0 * - col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT + SUM( + 87 ) col0 FROM tab0 WHERE col1 * col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3809
SELECT DISTINCT + SUM ( + 87 ) col0 FROM tab0 WHERE col1 * col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT + ( - + MIN( DISTINCT - 6 ) ) * COUNT( * ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + ( - + MIN ( DISTINCT - 6 ) ) * COUNT ( * ) AS col0 FROM tab2
----
18

query I rowsort
SELECT col1 * + ( + ( col0 ) ) * + col1 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT + + ( + MIN( col0 ) ) col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3813
SELECT DISTINCT + + ( + MIN ( col0 ) ) col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / 90 + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT COUNT( col2 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL COUNT( - + 93 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL COUNT ( - + 93 ) FROM tab2
----
3

query I rowsort
SELECT + + 77 + - 89 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE + 68 <= NULL
----

query I rowsort
SELECT ( 85 ) FROM tab1 WHERE + col0 IS NOT NULL
----
85
85
85

query I rowsort
SELECT - col1 * col2 * - + col1 FROM tab1
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT 46 - 7 col2 FROM tab2 WHERE ( + - col0 / + col0 + - CAST( col1 - - col2 AS SIGNED ) ) NOT IN ( - col1 )
----
39
39
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3821
SELECT 46 - 7 col2 FROM tab2 WHERE ( + - col0 / + col0 + - CAST ( col1 - - col2 AS INTEGER ) ) NOT IN ( - col1 )
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT COUNT( * ) FROM tab0 cor0 JOIN tab1 AS cor1 ON - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( * ) FROM tab0 cor0 JOIN tab1 AS cor1 ON - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + 71 FROM tab2
----
46
71
64
71
75
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3824
SELECT * FROM tab0 AS cor0 WHERE col2 * + CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3824
SELECT * FROM tab0 AS cor0 WHERE col2 * + CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT CAST( col0 AS SIGNED ) ) + 30 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT CAST ( col0 AS INTEGER ) ) + 30 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
39

query I rowsort
SELECT DISTINCT col1 + + 85 AS col1 FROM tab2 AS cor0 WHERE col0 + + col1 > NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + 64 FROM tab0 AS cor0
----
151
161
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT ALL + 68 DIV + 73 + - 76 col0 FROM tab2 cor0
----
-76
-76
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT ALL + 68 / + 73 + - 76 col0 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + 77 + + col1 AS col2 FROM tab2 AS cor0
----
128
144
154

query I rowsort
SELECT ALL col2 + 71 FROM tab2 cor0
----
111
129
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT CAST( - col1 AS SIGNED ) + col1 + - - col0 - + col0 * - col1 FROM tab1
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-3832
SELECT CAST ( - col1 AS INTEGER ) + col1 + - - col0 - + col0 * - col1 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + 99 + + COUNT( * ) + - + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 99 + + COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
99

query I rowsort
SELECT ALL 78 * + + 30 FROM tab1
----
2340
2340
2340

query I rowsort
SELECT DISTINCT col0 - + + col2 - + 14 + col1 * - col0 FROM tab2
----
-2337
-4918
-5022

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + 17 * col2 ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT COUNT( DISTINCT - 61 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT COUNT ( DISTINCT - 61 ) FROM tab1
----
1

query I rowsort
SELECT ALL - col0 + ( + col0 ) AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 35 col1 FROM tab0 WHERE col1 IS NOT NULL
----
-1645
-3465
-350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3840
SELECT * FROM tab2 WHERE - col2 BETWEEN - col1 AND CAST( 84 AS SIGNED ) * 10 + + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3840
SELECT * FROM tab2 WHERE - col2 BETWEEN - col1 AND CAST ( 84 AS INTEGER ) * 10 + + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + col0 + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + + 3 + - + col0 FROM tab1
----
-34
-41
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-3843
SELECT col0 DIV + - col2 AS col1, col0 AS col2 FROM tab1
----
-1
85
-1
91
0
51

skipif mysql # not compatible
query II rowsort label-3843
SELECT col0 / + - col2 AS col1, col0 AS col2 FROM tab1
----
-1
85
-1
91
0
51

query I rowsort
SELECT DISTINCT col0 + + col0 + - + col0 + ( + col0 ) FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL + 13 + - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL + 13 + - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT - 50 * + + col0 AS col1 FROM tab0
----
-4350
-4850
-750

query I rowsort
SELECT DISTINCT 51 * - + col0 FROM tab2
----
-2346
-3264
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT DISTINCT + col0 * - 49 * + CAST( + - ( 80 ) AS SIGNED ) FROM tab1
----
199920
333200
356720

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT + col0 * - 49 * + CAST ( + - ( 80 ) AS INTEGER ) FROM tab1
----
199920
333200
356720

onlyif mysql # DIV for integer division: 
query II rowsort label-3849
SELECT ALL - col0, + 12 DIV 50 AS col2 FROM tab2 cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL - col0, + 12 / 50 AS col2 FROM tab2 cor0
----
-46
0
-64
0
-75
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 35 * col1 + - col1 * - + col1 * + 55 + + col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col1 * + - 80
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL - COUNT( * ) * COUNT( DISTINCT 18 ) AS col2 FROM tab0 AS cor0 WHERE + col1 + - + 75 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT 18 ) AS col2 FROM tab0 AS cor0 WHERE + col1 + - + 75 + + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT - + COUNT( * ), COUNT( col1 ) - COUNT( * ) * + 30 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3854
SELECT - + COUNT ( * ), COUNT ( col1 ) - COUNT ( * ) * + 30 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----
0
0

query I rowsort
SELECT col1 * - - 12 FROM tab1 AS cor0
----
168
564
60

query I rowsort
SELECT DISTINCT + ( - + 12 ) * + + col0 FROM tab0 AS cor0
----
-1044
-1164
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT col1 * CAST( - - 16 AS SIGNED ) FROM tab2 AS cor0
----
1072
1232
816

skipif mysql # not compatible
query I rowsort label-3857
SELECT col1 * CAST ( - - 16 AS INTEGER ) FROM tab2 AS cor0
----
1072
1232
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT MIN( - CAST( NULL AS SIGNED ) ) / + 85 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) / + 85 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 73 * - + col1 AS col2 FROM tab2 AS cor0
----
-224840
-283678
-85629

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ( MAX( col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3860
SELECT ( MAX ( col0 ) ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT ( 73 ) * + 6 FROM tab1
----
438

query II rowsort
SELECT DISTINCT - 33 AS col1, + col1 + - - col2 * - + 56 AS col1 FROM tab0
----
-33
-2551
-33
-539
-33
-5543

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NOT 77 + - - ( col1 ) IS NULL )
----
1
21
81

query I rowsort
SELECT DISTINCT + 8 FROM tab0 WHERE NULL BETWEEN - col1 AND ( + - col0 * - col0 )
----

query I rowsort
SELECT ALL + 44 FROM tab2 WHERE ( + + col2 * + col0 + col2 ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * 86 FROM tab0
----
4042
8514
860

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1 WHERE ( + + col2 ) >= + 27
----
-10

query I rowsort
SELECT col1 * + col2 + + 39 AS col0 FROM tab1 cor0
----
1383
3235
334

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT + SUM( - - 91 ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3871
SELECT + SUM ( - - 91 ) FROM tab1 AS cor0
----
273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN col0 * + col0 AND - col2 + - ( ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 4 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + + col0 col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT ( + ( MIN( DISTINCT + CAST( - - col0 AS SIGNED ) ) ) ) * - 29 FROM tab1 AS cor0
----
-1479

skipif mysql # not compatible
query I rowsort label-3878
SELECT ( + ( MIN ( DISTINCT + CAST ( - - col0 AS INTEGER ) ) ) ) * - 29 FROM tab1 AS cor0
----
-1479

query I rowsort
SELECT ALL 42 + - col0 FROM tab0 cor0 WHERE 0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT ALL + + col2 + + 0 DIV + - col2 * - - 20 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + + col2 + + 0 / + - col2 * - - 20 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE col0 - col0 + + - col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - - col0 <> ( + 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT ( + + col0 ) AS col1, + col1 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
51
663
85
340
91
4186

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3884
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( NULL AS DECIMAL ) * col2 + col2
----

skipif mysql # not compatible
query III rowsort label-3884
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( NULL AS REAL ) * col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ( - 62 ) * + - COUNT( * ) col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3885
SELECT ( - 62 ) * + - COUNT ( * ) col0 FROM tab2 AS cor0
----
186

query II rowsort
SELECT col1 AS col2, col1 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT - col0 AS col1, col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 - 94 col2 FROM tab0
----
-19
-19
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query II rowsort
SELECT DISTINCT - col0 - col0 + + 97, col0 FROM tab1 WHERE NOT 42 IS NULL
----
-5
51
-73
85
-85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT COUNT( DISTINCT + col1 ) * + COUNT( * ) + MAX( 93 + - col2 ) FROM tab0 WHERE - + col0 + + - col2 * - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( DISTINCT + col1 ) * + COUNT ( * ) + MAX ( 93 + - col2 ) FROM tab0 WHERE - + col0 + + - col2 * - + col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - - SUM( DISTINCT col1 ) + - COUNT( + + 44 ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - - SUM ( DISTINCT col1 ) + - COUNT ( + + 44 ) AS col2 FROM tab1 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 64 <= - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
52

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 IN ( + 62, - col1 + - col0 * + 26 + 35 * 26 + + 32 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + SUM( - - col0 ) * + - 64 * - 91 FROM tab1
----
1322048

skipif mysql # not compatible
query I rowsort label-3900
SELECT + SUM ( - - col0 ) * + - 64 * - 91 FROM tab1
----
1322048

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3902
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT 25, + 2 FROM tab1 AS cor0 WHERE NOT col2 * - 31 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 + + - col1 <> NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - + 85 FROM tab0
----
1785
6885
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3906
SELECT COUNT( * ) DIV + + MIN( DISTINCT - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT COUNT ( * ) / + + MIN ( DISTINCT - col1 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT 61 * - col2 * + CAST( + 1 AS SIGNED ) AS col0 FROM tab2
----
-1403
-2440
-3538

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT 61 * - col2 * + CAST ( + 1 AS INTEGER ) AS col0 FROM tab2
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - MAX( col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3908
SELECT - MAX ( col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT col0 * + - 58 FROM tab0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3910
SELECT 78 / + col2 + + col1 + + + col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT 78 / + col2 + + col1 + + + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 63 / 76 col2, - col2 col0 FROM tab1 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT + col0 + - 69 FROM tab0
----
-54
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT - 1 + COUNT( - 64 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - 1 + COUNT ( - 64 ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL ( - + 36 ) + + col2 AS col1 FROM tab1 cor0
----
23
32
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 79 * - - col1 * - ( + col2 ) + col0 AND + 14 * + col1
----

query I rowsort
SELECT ALL + + col1 + - + 80 AS col2 FROM tab0 AS cor0
----
-59
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL + MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL + MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT 99 DIV + 6 AS col1 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-3919
SELECT 99 / + 6 AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT 48 * + ( - col1 ) AS col2 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT - col2 * - + col2 * col1 + + col1 FROM tab2 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * + + 22 * + col2 * 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * + + 22 * + col2 * 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + + col1 / + - col1 = + + col0 AND NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - + 87 col1 FROM tab2 cor0
----
133
151
162

onlyif mysql # DIV for integer division: 
query II rowsort label-3925
SELECT - 74 + + 42 + 17 DIV - col1, - 29 AS col0 FROM tab2 AS cor0
----
-32
-29
-32
-29
-32
-29

skipif mysql # not compatible
query II rowsort label-3925
SELECT - 74 + + 42 + 17 / - col1, - 29 AS col0 FROM tab2 AS cor0
----
-32
-29
-32
-29
-32
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT DISTINCT - COUNT( * ), COUNT( * ) + - 39 AS col0 FROM tab1 AS cor0
----
-3
-36

skipif mysql # not compatible
query II rowsort label-3926
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) + - 39 AS col0 FROM tab1 AS cor0
----
-3
-36

query I rowsort
SELECT ALL - 56 FROM tab1 WHERE NOT + + 76 + ( - 88 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT + 19 DIV - + col0, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-3928
SELECT + 19 / - + col0, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL + CAST( - col2 AS SIGNED ) * + col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + CAST ( - col2 AS INTEGER ) * + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT DISTINCT - COUNT( * ) - - COUNT( * ), + 8 AS col1 FROM tab0
----
0
8

skipif mysql # not compatible
query II rowsort label-3930
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ), + 8 AS col1 FROM tab0
----
0
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT MIN( ALL - - ( - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3932
SELECT MIN ( ALL - - ( - col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + col0 + col2 * 86 <= + - col1 / - + col0 * 70 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN col0 * - - col1 + + - col2 + - + 46 / + 10 * 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT MIN( - + ( + col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT MIN ( - + ( + col1 ) ) AS col1 FROM tab0
----
-81

query II rowsort
SELECT ALL - - ( - 6 ), col2 AS col1 FROM tab1 cor0
----
-6
59
-6
68
-6
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL - SUM( ALL + CAST( + col2 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT ALL - SUM ( ALL + CAST ( + col2 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-156

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + - 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3940
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3940
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT + + SUM( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT + + SUM ( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-66

query II rowsort
SELECT ALL + col2 AS col1, 50 + ( + col1 ) * - col1 FROM tab1 AS cor0
----
59
25
68
-2159
96
-146

query I rowsort
SELECT DISTINCT + - 79 * col2 AS col1 FROM tab0 AS cor0
----
-3713
-7821
-790

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ALL + + 51 DIV + 28 + - col0 col0 FROM tab0 cor0
----
-14
-86
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3944
SELECT ALL + + 51 / + 28 + - col0 col0 FROM tab0 cor0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT - col1 * + - ( col0 ) * - - col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 88 col2 FROM tab2 AS cor0
----
-4488
-5896
-6776

query I rowsort
SELECT - col2 * - col0 - - col1 FROM tab2 AS cor0
----
1109
2637
4417

query II rowsort
SELECT - + 19, 93 AS col1 FROM tab1 AS cor0
----
-19
93
-19
93
-19
93

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT + + 27 + + 42 + - - 70 IN ( col1 + 54 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT MAX( + 64 ) / AVG ( DISTINCT col1 ) * + ( + - 12 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT MAX ( + 64 ) / AVG ( DISTINCT col1 ) * + ( + - 12 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 73 ) FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL 86 * + MIN( DISTINCT - 32 ) + COUNT( * ) FROM tab1
----
-2749

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL 86 * + MIN ( DISTINCT - 32 ) + COUNT ( * ) FROM tab1
----
-2749

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3954
SELECT ALL + col0 DIV col0 * + col0 + 13 AS col0, - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
59
NULL
77
NULL
88
NULL

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL + col0 / col0 * + col0 + 13 AS col0, - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
59
NULL
77
NULL
88
NULL

query I rowsort
SELECT col0 * + 5 + - - col0 AS col1 FROM tab2 AS cor0
----
276
384
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT + 52 * - 79 + + SUM( DISTINCT + 85 ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-4026

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + 52 * - 79 + + SUM ( DISTINCT + 85 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-4026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 - 0 + - CAST( NULL AS SIGNED ) * + col1 * - 2 + 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 - 0 + - CAST ( NULL AS INTEGER ) * + col1 * - 2 + 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 93 ) AS col1 FROM tab1
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT - 72 * CAST( NULL AS SIGNED ) + + 68 * MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - 72 * CAST ( NULL AS INTEGER ) + + 68 * MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) * AVG ( ALL col1 ) * + COUNT( * ) + + + ( 37 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * AVG ( ALL col1 ) * + COUNT ( * ) + + + ( 37 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - COUNT( * ) * - 21 FROM tab0, tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-3961
SELECT - COUNT ( * ) * - 21 FROM tab0, tab0 cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT 22 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col0 - col1 * col2 + - + col1 ) IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT 22 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 - col1 * col2 + - + col1 ) IS NOT NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + MIN( DISTINCT - ( + 3 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3963
SELECT + MIN ( DISTINCT - ( + 3 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT ALL - 50 * - 52 * 35 AS col2, - MAX( + - ( col2 ) ) + - 50 FROM tab0 AS cor0
----
91000
-40

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL - 50 * - 52 * 35 AS col2, - MAX ( + - ( col2 ) ) + - 50 FROM tab0 AS cor0
----
91000
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT - MIN( col0 ) + SUM( ALL + col1 ) + - COUNT( * ) FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - MIN ( col0 ) + SUM ( ALL + col1 ) + - COUNT ( * ) FROM tab1 cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT + COUNT( * ) - - - CAST( 43 AS SIGNED ) AS col2 FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3966
SELECT + COUNT ( * ) - - - CAST ( 43 AS INTEGER ) AS col2 FROM tab2 cor0
----
-40

query I rowsort
SELECT DISTINCT 34 - - col0 FROM tab2
----
109
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + COUNT( * ) - + 42 AS col0 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-3968
SELECT + COUNT ( * ) - + 42 AS col0 FROM tab2
----
-39

query I rowsort
SELECT + ( - 22 ) FROM tab1
----
-22
-22
-22

query I rowsort
SELECT ALL - col1 * + + 47 FROM tab1
----
-2209
-235
-658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 57 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL col1, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT MAX( col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3975
SELECT MAX ( col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT col2 * - + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT + + col2, col1 + + col0 + - col2 FROM tab2 AS cor0
----
23
74
40
101
58
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 + + 20 / + + col0 > ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 + + 20 / + + col0 > ( - col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE NOT + col0 <> - 21 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL - col1 AS col0 FROM tab0 cor0 WHERE 52 BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - col1 AS col0 FROM tab0 cor0 WHERE 52 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 73 col2 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3982
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + col1 + - 85 * + + col2 AS col1 FROM tab1 AS cor0
----
-5010
-5733
-8146

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 / + - 96 AND + + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 75 * 62 * col2 * - - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT + COUNT( DISTINCT 64 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + COUNT ( DISTINCT 64 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + 7 + - - col0 AS col0 FROM tab0
----
104
22
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT DISTINCT CAST( + col2 AS SIGNED ) + 42 AS col2 FROM tab2
----
100
65
82

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + 42 AS col2 FROM tab2
----
100
65
82

query I rowsort
SELECT ( - col2 ) + 85 FROM tab2
----
27
45
62

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - col1 IS NULL
----

query I rowsort
SELECT ALL - + 13 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN - 23 AND - + 66
----

query I rowsort
SELECT + 3 + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-11
-2
-44

query I rowsort
SELECT DISTINCT + + 70 * ( - 75 ) AS col2 FROM tab0 AS cor0
----
-5250

query II rowsort
SELECT ALL + - col1 + - + col0 AS col1, - col2 FROM tab1 cor0
----
-138
-68
-65
-96
-90
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 77 <> + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL MAX( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL MAX ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT + + SUM( - col1 ), - 45 AS col1 FROM tab2 AS cor0
----
-195
-45

skipif mysql # not compatible
query II rowsort label-3998
SELECT + + SUM ( - col1 ), - 45 AS col1 FROM tab2 AS cor0
----
-195
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3999
SELECT 77 col2, CAST( - col1 AS SIGNED ) FROM tab2 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3999
SELECT 77 col2, CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 92 * + col0 * - 16 FROM tab0
----
-128064
-142784
-22080

onlyif mysql # DIV for integer division: 
query II rowsort label-4001
SELECT DISTINCT col0 * col1 DIV - col2 AS col2, 24 * + - col0 FROM tab1
----
-62
-2184
-7
-1224
-7
-2040

skipif mysql # not compatible
query II rowsort label-4001
SELECT DISTINCT col0 * col1 / - col2 AS col2, 24 * + - col0 FROM tab1
----
-62
-2184
-7
-1224
-7
-2040

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT ALL - col2 DIV - 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - col2 / - 82 FROM tab2
----
0
0
0

query I rowsort
SELECT + 80 * + col0 FROM tab0
----
1200
6960
7760

query I rowsort
SELECT ALL col1 * - 73 FROM tab0
----
-1533
-5913
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4005
SELECT - 81 * + - col1 AS col0, ( CAST( + 30 AS SIGNED ) ) col1 FROM tab1 WHERE NOT - col1 IS NULL
----
1134
30
3807
30
405
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4005
SELECT - 81 * + - col1 AS col0, ( CAST ( + 30 AS INTEGER ) ) col1 FROM tab1 WHERE NOT - col1 IS NULL
----
1134
30
3807
30
405
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4006
SELECT ALL COUNT( * ) AS col2, ( + 26 ) AS col0 FROM tab1
----
3
26

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL COUNT ( * ) AS col2, ( + 26 ) AS col0 FROM tab1
----
3
26

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT ALL 65 * + 27 * + 87 FROM tab1
----
152685
152685
152685

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 + + col0 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT - 46 DIV - 74 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT - 46 / - 74 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col2 * + 96 - col0, - col0 AS col1 FROM tab1 AS cor0
----
5579
-85
6437
-91
9165
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT ( - - SUM( ALL + - 44 ) ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT ( - - SUM ( ALL + - 44 ) ) FROM tab2 AS cor0
----
-132

query II rowsort
SELECT col0, col1 + 54 AS col2 FROM tab2
----
46
105
64
131
75
121

query I rowsort
SELECT 77 * col1 AS col2 FROM tab0
----
1617
6237
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT CAST( col1 AS SIGNED ) * - col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4015
SELECT CAST ( col1 AS INTEGER ) * - col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + + 87
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col2 + - col1 col0 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4020
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) * - 76 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) * - 76 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT - 80 DIV - + col0 + - + 50 + - 19 + + 54 col1 FROM tab0 AS cor0
----
-10
-15
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT - 80 / - + col0 + - + 50 + - 19 + + 54 col1 FROM tab0 AS cor0
----
-10
-15
-15

query I rowsort
SELECT ALL + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - + 6 AS col2 FROM tab1 AS cor0
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col0
----

query I rowsort
SELECT + + col1 * + + col2 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col0 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT col2 DIV - col2 + col2 + col2 FROM tab0 AS cor0
----
19
197
93

skipif mysql # not compatible
query I rowsort label-4027
SELECT col2 / - col2 + col2 + col2 FROM tab0 AS cor0
----
19
197
93

query I rowsort
SELECT - 42 + col2 AS col2 FROM tab0 cor0
----
-32
5
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT ALL + 97 + - col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + 97 + - col2 / + col1 AS col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT DISTINCT MAX( 92 ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT MAX ( 92 ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT + 83 DIV + + ( - col0 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT + 83 / + + ( - col0 ) FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col0 AS col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT DISTINCT + 86 AS col1, - 92 + + 43 + - - 98 AS col2 FROM tab2 AS cor0
----
86
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4034
SELECT - CAST( NULL AS SIGNED ) / + ( + + CAST( NULL AS SIGNED ) ) / 65 * + 73 + + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT - CAST ( NULL AS INTEGER ) / + ( + + CAST ( NULL AS INTEGER ) ) / 65 * + 73 + + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 42 * col1 * - 20 AS col0 FROM tab0 AS cor0
----
-17640
-68040
-840

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + + ( - 33 ) AS col2 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 34 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 - - 77 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + 35 + COUNT( * ) * - + 70 FROM tab1, tab2 AS cor0
----
-595

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 35 + COUNT ( * ) * - + 70 FROM tab1, tab2 AS cor0
----
-595

query I rowsort
SELECT + 89 * - 10 AS col2 FROM tab1 WHERE NOT col0 * + - col1 IS NULL
----
-890
-890
-890

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT ALL - ( - + 7 ) * ( + COUNT( * ) ) AS col2, COUNT( * ) AS col2 FROM tab0
----
21
3

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL - ( - + 7 ) * ( + COUNT ( * ) ) AS col2, COUNT ( * ) AS col2 FROM tab0
----
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT - SUM( + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4043
SELECT - SUM ( + col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT col1 DIV - + col0 * + 52 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT col1 / - + col0 * + 52 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4045
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col2 * - - 83 FROM tab2 AS cor0
----
1909
3320
4814

query II rowsort
SELECT col0, 87 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT col1 + + 5 DIV + col1 * + + col1 AS col2 FROM tab0
----
21
6
81

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT col1 + + 5 / + col1 * + + col1 AS col2 FROM tab0
----
21
6
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 97 col0, col1 * col2 FROM tab1
----
-97
1344
-97
295
-97
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4050
SELECT SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT - col2, - col1 AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT ALL + - col2 + - - col0 AS col0 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT ALL + col0 * + 63 AS col2 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT ALL + col1 DIV col2 + - col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + col1 / col2 + - col2 FROM tab0 AS cor0
----
-46
-8
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - - col2, + col2, col0, 99, + col2, - 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + ( + + 85 ) AS col2 FROM tab0 AS cor0
----
132
184
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT - MAX( col0 ) + - - CAST( NULL AS SIGNED ) / + 15 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4057
SELECT - MAX ( col0 ) + - - CAST ( NULL AS INTEGER ) / + 15 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT ALL 75, COUNT( * ) AS col2 FROM tab1
----
75
3

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL 75, COUNT ( * ) AS col2 FROM tab1
----
75
3

query II rowsort
SELECT DISTINCT col2, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ( - - ( - COUNT( * ) ) ) + + 96 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4060
SELECT ( - - ( - COUNT ( * ) ) ) + + 96 FROM tab2
----
93

query III rowsort
SELECT * FROM tab1 WHERE - 24 - col0 IS NULL
----

query II rowsort
SELECT ALL col2 AS col2, + 3 * - 42 * col2 FROM tab2
----
23
-2898
40
-5040
58
-7308

onlyif mysql # DIV for integer division: 
query II rowsort label-4063
SELECT ALL - col2, ( - col1 ) DIV + 81 - + 85 col1 FROM tab1
----
-59
-85
-68
-85
-96
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4063
SELECT ALL - col2, ( - col1 ) / + 81 - + 85 col1 FROM tab1
----
-59
-85
-68
-85
-96
-85

query II rowsort
SELECT DISTINCT - + 34 AS col0, col2 FROM tab0 AS cor0
----
-34
10
-34
47
-34
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 6 + - - col1 + + 9 col2 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT DISTINCT + 98 * - 29 - + 24 AS col0 FROM tab0 AS cor0
----
-2866

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - ( - - MIN( DISTINCT - - 41 ) ) col0 FROM tab0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4067
SELECT DISTINCT - ( - - MIN ( DISTINCT - - 41 ) ) col0 FROM tab0
----
-41

query I rowsort
SELECT ALL + ( + 68 ) FROM tab2
----
68
68
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / 6 <= 36
----
0

skipif mysql # not compatible
query I rowsort label-4070
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / 6 <= 36
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 49 <= NULL
----

query I rowsort
SELECT ( - + 94 ) * - 97 * col1 + - col2 FROM tab1 AS cor0
----
127556
428478
45531

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL + MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT + - CAST( col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4074
SELECT + - CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT COUNT( DISTINCT + 21 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4076
SELECT COUNT ( DISTINCT + 21 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 40 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 92 * col1 NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT + col1 * + col1 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
22557225
29218112
6101946

query I rowsort
SELECT ALL col0 * - + col1 + 70 AS col1 FROM tab2 cor0
----
-2276
-4858
-4955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT + 52 + + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4082
SELECT + 52 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
55

query I rowsort
SELECT + - 36 AS col2 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 66 + + + col1 col1 FROM tab1 WHERE ( + + 90 / + - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 12 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 74 * - col0 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - SUM( ALL + 78 ) * + 7 AS col0 FROM tab0
----
-1638

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - SUM ( ALL + 78 ) * + 7 AS col0 FROM tab0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT + MAX( + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT + MAX ( + col0 ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT 11 * ( 15 ) + + 38 AS col2 FROM tab2
----
203

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4090
SELECT + ( - - col1 ) - - - CAST( NULL AS DECIMAL ) / - - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT + ( - - col1 ) - - - CAST ( NULL AS REAL ) / - - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT 53 + - 28 FROM tab1
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 >= + - col1 * col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 3 + + col1 + + + col1 + - col1 + + col2 + col2 FROM tab1 AS cor0
----
126
186
209

query II rowsort
SELECT + col2 AS col0, - col1 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT 65 * - + col1 AS col0 FROM tab1 AS cor0
----
-3055
-325
-910

query I rowsort
SELECT 10 * 98 AS col2 FROM tab2 AS cor0
----
980
980
980

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + COUNT( * ) * - ( - + SUM( - + col2 ) ) * - COUNT( * ) + 9 + - 46 - - + 59 - COUNT( * ) + + 33 + COUNT( * ) * - + 31 FROM tab2 AS cor0
----
1048

skipif mysql # not compatible
query I rowsort label-4098
SELECT + COUNT ( * ) * - ( - + SUM ( - + col2 ) ) * - COUNT ( * ) + 9 + - 46 - - + 59 - COUNT ( * ) + + 33 + COUNT ( * ) * - + 31 FROM tab2 AS cor0
----
1048

query I rowsort
SELECT col0 * - 1 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 + - 36 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + col2 + + + col1 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT 54 + - col0 AS col0 FROM tab1
----
-31
-37
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + + col1 col1 FROM tab1
----
110
68
77

query I rowsort
SELECT col0 + ( 53 ) AS col1 FROM tab2
----
117
128
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1, 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4108
SELECT DISTINCT + ( col2 ) AS col2, CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT + ( col2 ) AS col2, CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT 36 * + MAX( + - ( + - col2 ) ) * - + COUNT( * ) AS col2 FROM tab1
----
-10368

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT 36 * + MAX ( + - ( + - col2 ) ) * - + COUNT ( * ) AS col2 FROM tab1
----
-10368

query I rowsort
SELECT ALL + - 51 + - - 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 14 IS NOT NULL
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT DISTINCT - col1 DIV - col1 + - 11 * + col2 FROM tab1 AS cor0
----
-1055
-648
-747

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - col1 / - col1 + - 11 * + col2 FROM tab1 AS cor0
----
-1055
-648
-747

query I rowsort
SELECT ALL + col1 + - 68 - + - 7 * - col2 FROM tab1 AS cor0
----
-476
-497
-726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col2 col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT 47 * 43 * - + 24 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-48501

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT 47 * 43 * - + 24 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-48501

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 - - - 2 * + + ( ( - + col1 ) ) AS col2 FROM tab2 cor0
----
153
201
231

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col2 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab2 cor0
----
102
134
154

query I rowsort
SELECT ALL ( + 15 ) AS col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT + 39 + - col1 + - 66 FROM tab2 AS cor0
----
-104
-78
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4121
SELECT * FROM tab2 AS cor0 WHERE col0 / - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4121
SELECT * FROM tab2 AS cor0 WHERE col0 / - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT col1 + + + col2 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT col1 DIV col2 DIV - col0 * + - col0 + - - 37 FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-4123
SELECT col1 / col2 / - col0 * + - col0 + - - 37 FROM tab0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 91 col1 FROM tab2
----
4641
6097
7007

query I rowsort
SELECT ALL + 10 * 8 AS col2 FROM tab1
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 * + - 78, col0 col0 FROM tab2
----
7722
46
7722
64
7722
75

query I rowsort
SELECT - ( col1 ) * - col2 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4128
SELECT - COUNT( * ) DIV - 36 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT - COUNT ( * ) / - 36 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT + COUNT( * ) DIV - + 54 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + COUNT ( * ) / - + 54 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 * - 90 FROM tab0
----
4230
8910
900

query I rowsort
SELECT + 56 - + ( + + col2 ) FROM tab0 AS cor0 WHERE NOT ( NOT + - 28 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT ALL + 40 DIV + 68 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL + 40 / + 68 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT + + COUNT( * ) * - 6 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + + COUNT ( * ) * - 6 FROM tab2 cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ( - - CAST( - ( + col0 ) AS SIGNED ) ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4134
SELECT ( - - CAST ( - ( + col0 ) AS INTEGER ) ) AS col0 FROM tab2
----
-46
-64
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - + 74 + - - col0 + - col1 + - col1
----

query I rowsort
SELECT ALL - - 24 AS col1 FROM tab1 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT SUM( DISTINCT 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT SUM ( DISTINCT 34 ) FROM tab1 AS cor0
----
34

query I rowsort
SELECT + ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT - + MIN( ALL + + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - + MIN ( ALL + + col2 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - col2 * + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT MAX( - + ( - + col1 ) ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4142
SELECT MAX ( - + ( - + col1 ) ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT SUM( ALL + - 0 ) FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT SUM ( ALL + - 0 ) FROM tab2, tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + 15 ) ) col1 FROM tab0
----
15
15
15

query II rowsort
SELECT 29, col2 AS col2 FROM tab1
----
29
59
29
68
29
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT ALL + 97 DIV + - 14 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + 97 / + - 14 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL + + CAST( 33 AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + + CAST ( 33 AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
30

query I rowsort
SELECT - ( + 95 ) FROM tab2 cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL - + col1 + + + col0 * - CAST( NULL AS SIGNED ) - + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - + col1 + + + col0 * - CAST ( NULL AS INTEGER ) - + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT - 22, + col2 AS col2, + col1 FROM tab0 cor0
----
9 values hashing to 19f5e46e69d88f35127c9f0701b06124

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT DISTINCT - 72 AS col0, COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
-72
0

skipif mysql # not compatible
query II rowsort label-4152
SELECT DISTINCT - 72 AS col0, COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
-72
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + col0 NOT BETWEEN NULL AND + - 64 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 - - - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN + - col2 * 30 * col2 + + ( col0 ) AND 81 - - col1 / - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4156
SELECT + SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col0 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 - - - col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col2 + - - 0 FROM tab0 AS cor0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 1 * col1 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - + col0 - + ( + - col0 ) - + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + col0 - + - col1 * + 46 AS col1 FROM tab0 AS cor0
----
-51
3711
879

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + MAX( + - 58 ) FROM tab1 AS cor0 WHERE - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT + MAX ( + - 58 ) FROM tab1 AS cor0 WHERE - col1 >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT + col0 * - 48 * + + 44 * - + ( col2 ) AS col0 FROM tab1
----
10340352
10591680
13069056

query I rowsort
SELECT - 37 * col1 FROM tab1
----
-1739
-185
-518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * + - 29 col2 FROM tab2
----
-1102
-1102
-1102

query I rowsort
SELECT + 4 * + col1 AS col0 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - MIN( + 34 ) FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4169
SELECT - MIN ( + 34 ) FROM tab0 cor0
----
-34

query I rowsort
SELECT ALL col2 * + 57 - ( 72 ) AS col0 FROM tab2 AS cor0
----
1239
2208
3234

query I rowsort
SELECT DISTINCT col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT COUNT( - 44 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT COUNT ( - 44 ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4173
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4173
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 29 FROM tab2 WHERE NOT + 13 NOT BETWEEN + 30 + - + col2 AND + col2
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT ALL CAST( NULL AS SIGNED ) / - - MIN( ALL - col1 ) * - COUNT( * ) / - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL CAST ( NULL AS INTEGER ) / - - MIN ( ALL - col1 ) * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 * + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT - SUM( ALL - + col2 ) + - + 67 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-4177
SELECT - SUM ( ALL - + col2 ) + - + 67 FROM tab1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4178
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

query II rowsort
SELECT - 26, - 71 AS col0 FROM tab0
----
-26
-71
-26
-71
-26
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT ( COUNT( * ) ) * + CAST( - 51 AS SIGNED ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4180
SELECT ( COUNT ( * ) ) * + CAST ( - 51 AS INTEGER ) FROM tab2
----
-153

query II rowsort
SELECT + + 32 - + + col1 * - col2, col1 FROM tab2 cor0 WHERE NULL BETWEEN + ( col2 ) AND NULL
----

query I rowsort
SELECT - + 45 + - 70 - + 31 AS col2 FROM tab2 AS cor0
----
-146
-146
-146

query I rowsort
SELECT + col2 + - 11 * + 55 AS col2 FROM tab0 AS cor0
----
-506
-558
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 - - - 97 + + + col1 * - - 47 * + 52 FROM tab0 AS cor0
----
197786
2346
51206

query I rowsort
SELECT + + 76 + + col1 FROM tab0 AS cor0
----
157
77
97

query I rowsort
SELECT ALL - 25 AS col1 FROM tab2 AS cor0 WHERE 39 IS NOT NULL
----
-25
-25
-25

query I rowsort
SELECT ALL + - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - MAX( 66 ) FROM tab0, tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4189
SELECT - MAX ( 66 ) FROM tab0, tab1 AS cor0
----
-66

query II rowsort
SELECT ( col2 ) AS col0, - ( - 17 ) FROM tab1
----
59
17
68
17
96
17

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT - 72 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-4192
SELECT - ( - col1 ) AS col0, col2 + col0 + col0 + - - 97 DIV - col1 AS col0 FROM tab0
----
1
196
21
180
81
76

skipif mysql # not compatible
query II rowsort label-4192
SELECT - ( - col1 ) AS col0, col2 + col0 + col0 + - - 97 / - col1 AS col0 FROM tab0
----
1
196
21
180
81
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4193
SELECT COUNT( * ) * COUNT( ALL + CAST( - 60 AS DECIMAL ) ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4193
SELECT COUNT ( * ) * COUNT ( ALL + CAST ( - 60 AS REAL ) ) AS col2 FROM tab0
----
9

query I rowsort
SELECT 89 * 35 FROM tab2
----
3115
3115
3115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT DISTINCT - col2 * CAST( 94 AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
-5541
-6345
-9010

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - col2 * CAST ( 94 AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
-5541
-6345
-9010

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + - 52 * MIN( DISTINCT + 79 ) FROM tab0 AS cor0
----
-4108

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + - 52 * MIN ( DISTINCT + 79 ) FROM tab0 AS cor0
----
-4108

query I rowsort
SELECT ALL + 85 * - + col2 AS col1 FROM tab0 AS cor0
----
-3995
-8415
-850

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL 69 AS col0, + 22 FROM tab0 AS cor0
----
69
22
69
22
69
22

query I rowsort
SELECT - 86 + col0 FROM tab0 AS cor0
----
-71
1
11

query I rowsort
SELECT - col0 + + 26 AS col2 FROM tab0 AS cor0
----
-61
-71
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT + 96 DIV col2 * - 0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT + 96 / col2 * - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT DISTINCT 66 DIV - 1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT 66 / - 1 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT DISTINCT ( - + col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col0 FROM tab0 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 28 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - ( + 69 ), col1 FROM tab1
----
-69
14
-69
47
-69
5

query I rowsort
SELECT - ( - + col2 ) * - + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT - 95 * 4 + + ( - COUNT( * ) ) FROM tab0 WHERE + - col0 IS NOT NULL
----
-383

skipif mysql # not compatible
query I rowsort label-4209
SELECT - 95 * 4 + + ( - COUNT ( * ) ) FROM tab0 WHERE + - col0 IS NOT NULL
----
-383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4210
SELECT DISTINCT ( SUM( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT ( SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + 31 + + MIN( + col0 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + 31 + + MIN ( + col0 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT - 81 + col2 FROM tab0 AS cor0
----
-34
-71
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT DISTINCT - + CAST( - - col0 AS SIGNED ) + + + 3 * + col2 FROM tab2 AS cor0
----
23
56
99

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - + CAST ( - - col0 AS INTEGER ) + + + 3 * + col2 FROM tab2 AS cor0
----
23
56
99

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 34 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE + 77 <= - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT 32 + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-4216
SELECT 32 + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

query I rowsort
SELECT + 78 * - 86 FROM tab1 AS cor0
----
-6708
-6708
-6708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT + 17 + col1 FROM tab0 AS cor0
----
18
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 39 ) col2 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT + + col1 DIV col0 + - 60 * + - col0 AS col2 FROM tab1 AS cor0
----
3060
5100
5460

skipif mysql # not compatible
query I rowsort label-4221
SELECT + + col1 / col0 + - 60 * + - col0 AS col2 FROM tab1 AS cor0
----
3060
5100
5460

query I rowsort
SELECT + 0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT + - 23, + 9 + - 10 + + col1 + + CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab2 cor0
----
-23
-1008
-23
-2484
-23
-4284

skipif mysql # not compatible
query II rowsort label-4223
SELECT + - 23, + 9 + - 10 + + col1 + + CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab2 cor0
----
-23
-1008
-23
-2484
-23
-4284

query I rowsort
SELECT DISTINCT + col0 * - - col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - + col2 * + 89 FROM tab2 AS cor0
----
-2047
-3560
-5162

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT col0 + + col2 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col2 + + col1 * 28 col2 FROM tab1
----
51
488
85
199
91
1384

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + ( - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - ( - col0 ) FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT 0 * + col1 FROM tab1 WHERE NOT NULL BETWEEN + 26 AND + 80 * - col1 + + + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col2 FROM tab1
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL IS NOT NULL ) ) )
----

query I rowsort
SELECT col1 * + col1 + + + 32 FROM tab2 AS cor0
----
2633
4521
5961

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 / - col2 * col2 <> + - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4235
SELECT ALL - CAST( + 92 AS SIGNED ), col1 AS col1 FROM tab2
----
-92
51
-92
67
-92
77

skipif mysql # not compatible
query II rowsort label-4235
SELECT ALL - CAST ( + 92 AS INTEGER ), col1 AS col1 FROM tab2
----
-92
51
-92
67
-92
77

query I rowsort
SELECT DISTINCT col0 * - 57 + + + col0 AS col1 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT DISTINCT + 43 + - + col2 + + 3 FROM tab0 AS cor0
----
-1
-53
36

onlyif mysql # DIV for integer division: 
query II rowsort label-4238
SELECT DISTINCT - + col1 DIV + 77, col0 * - col0 + + ( + 94 ) AS col2 FROM tab2 AS cor0
----
-1
-4002
0
-2022
0
-5531

skipif mysql # not compatible
query II rowsort label-4238
SELECT DISTINCT - + col1 / + 77, col0 * - col0 + + ( + 94 ) AS col2 FROM tab2 AS cor0
----
-1
-4002
0
-2022
0
-5531

query II rowsort
SELECT 13 * col1, - col0 AS col1 FROM tab0 AS cor0
----
1053
-15
13
-97
273
-87

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab0 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL + - ( ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + - ( ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( + 80 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT + COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL 50 * + 80 FROM tab0
----
4000
4000
4000

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT - 19 DIV - + col0 + col2 * - col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 19 / - + col0 + col2 * - col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT 75 + - 8 FROM tab2
----
67
67
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 / + col2 * - col1 <= NULL
----

query I rowsort
SELECT ALL + 1 + 13 AS col0 FROM tab2 AS cor0
----
14
14
14

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 81 IN ( col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( col0 ) + - 62 * - 1 AS col2 FROM tab0
----
-25
-35
47

query III rowsort
SELECT * FROM tab0 WHERE 19 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT + CAST( NULL AS SIGNED ) / 57 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT + CAST ( NULL AS INTEGER ) / 57 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT - 54 DIV 46 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 54 / 46 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4255
SELECT - CAST( + ( + col1 ) AS SIGNED ) DIV col2 col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT - CAST ( + ( + col1 ) AS INTEGER ) / col2 col2 FROM tab0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN - ( col2 ) AND ( NULL )
----

query I rowsort
SELECT + 27 * - col0 FROM tab2
----
-1242
-1728
-2025

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 73 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 90 ) + + col2 FROM tab2 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( col2 - - 64 * 34 AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( col2 - - 64 * 34 AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 AS col2 FROM tab2 WHERE NULL IS NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT MIN( DISTINCT col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4262
SELECT MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - 10 + ( col1 + - col1 ) * 67 FROM tab1
----
-10

query III rowsort
SELECT * FROM tab0 WHERE ( - 66 ) > ( - 22 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 51 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ( ( ( COUNT( ALL + col2 ) ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4266
SELECT ( ( ( COUNT ( ALL + col2 ) ) ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT 32 + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT 32 + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
41

query I rowsort
SELECT ALL ( col1 ) - - col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT col1 AS col0 FROM tab1 WHERE ( + 2 + CAST( NULL AS SIGNED ) ) BETWEEN - col0 AND ( + 1 )
----

skipif mysql # not compatible
query I rowsort label-4269
SELECT col1 AS col0 FROM tab1 WHERE ( + 2 + CAST ( NULL AS INTEGER ) ) BETWEEN - col0 AND ( + 1 )
----

query I rowsort
SELECT - col2 * 83 + 33 FROM tab0
----
-3868
-797
-8184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT col1 + - CAST( NULL AS SIGNED ) * + 14 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT col1 + - CAST ( NULL AS INTEGER ) * + 14 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col0 + col2 AS col0 FROM tab1
----
-366
-4209
-618

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) NOT IN ( 56 + + 15 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 95 * - col0 + 69 * 7 AS col1 FROM tab1
----
-4362
-7592
-8162

query I rowsort
SELECT col1 FROM tab0 WHERE ( - col2 ) * - col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 * + col1 BETWEEN NULL AND - 92
----
-3

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 * + col1 BETWEEN NULL AND - 92
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT - MAX( col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4277
SELECT - MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + col2 * 33 AS col2 FROM tab1 cor0
----
1947
2244
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL CAST( + 25 AS SIGNED ) * 86 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > + 71 * ( + 3 / 33 ) + col1
----
2150
2150

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL CAST ( + 25 AS INTEGER ) * 86 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > + 71 * ( + 3 / 33 ) + col1
----
2150
2150

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT + 88 DIV + col2 FROM tab2 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4280
SELECT + 88 / + col2 FROM tab2 cor0
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 79 * + 61 FROM tab0 WHERE 33 IN ( + 41 )
----

query I rowsort
SELECT col1 + - 40 FROM tab1
----
-26
-35
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( + col2 ) col0 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 + 22 AS col0 FROM tab2 AS cor0
----
-29
-45
-55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + 92 <> ( col2 + + ( - ( col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL - CAST( 15 AS SIGNED ) + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-3496
-4639
-9231

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - CAST ( 15 AS INTEGER ) + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-3496
-4639
-9231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4289
SELECT * FROM tab2 AS cor0 WHERE ( col2 + ( CAST( NULL AS SIGNED ) ) * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4289
SELECT * FROM tab2 AS cor0 WHERE ( col2 + ( CAST ( NULL AS INTEGER ) ) * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT + 26 * ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4290
SELECT + 26 * ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT - MIN( ALL col1 ) * + 98 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4291
SELECT - MIN ( ALL col1 ) * + 98 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - + COUNT( + 44 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + COUNT ( + 44 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + MIN( - 56 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + MIN ( - 56 ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT 39 * + col0 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab0 WHERE ( 99 ) <> + 25
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL + 7 * - CAST( AVG ( DISTINCT col1 ) AS SIGNED ) FROM tab1 WHERE NOT ( 17 + - col1 ) >= col2
----
-154

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 7 * - CAST ( AVG ( DISTINCT col1 ) AS INTEGER ) FROM tab1 WHERE NOT ( 17 + - col1 ) >= col2
----
-154

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL COUNT( * ) + MAX( DISTINCT - 50 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL COUNT ( * ) + MAX ( DISTINCT - 50 ) FROM tab0
----
-47

query I rowsort
SELECT ( 14 ) * 21 + col0 AS col0 FROM tab0
----
309
381
391

query I rowsort
SELECT + col0 * - + col2 + + col0 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT col1 + col1 FROM tab0 WHERE + col1 NOT BETWEEN col2 + 86 AND NULL
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 62 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - + ( + 5 ) AS col0 FROM tab1
----
-235
-25
-70

query I rowsort
SELECT - col2 * 94 AS col0 FROM tab1 cor0
----
-5546
-6392
-9024

query I rowsort
SELECT ( ( 58 ) ) AS col0 FROM tab1 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT + - COUNT( ALL - + ( + ( col1 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4308
SELECT + - COUNT ( ALL - + ( + ( col1 ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + + COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4310
SELECT + + COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4311
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + CAST( + col2 AS SIGNED ) NOT BETWEEN ( + col1 ) AND + 23 * col2 + col2
----
91
47
68

skipif mysql # not compatible
query III rowsort label-4311
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + CAST ( + col2 AS INTEGER ) NOT BETWEEN ( + col1 ) AND + 23 * col2 + col2
----
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT + 35 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-4312
SELECT + 35 / + col1 AS col1 FROM tab1 AS cor0
----
0
2
7

query I rowsort
SELECT DISTINCT ( 51 ) AS col2 FROM tab2 cor0 WHERE NOT col2 < 40 * ( col1 + ( col1 + col0 ) ) + - col2
----

query II rowsort
SELECT DISTINCT + col0, - 69 AS col1 FROM tab0 cor0
----
15
-69
87
-69
97
-69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * 9 * - 14 < + col0 * col2
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE col1 - + - col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - col1 + - col1 + col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT - ( col0 ) * - - col2 * + CAST( - 82 AS SIGNED ) FROM tab0
----
57810
71340
787446

skipif mysql # not compatible
query I rowsort label-4319
SELECT - ( col0 ) * - - col2 * + CAST ( - 82 AS INTEGER ) FROM tab0
----
57810
71340
787446

onlyif mysql # DIV for integer division: 
query II rowsort label-4320
SELECT ALL - col1 DIV - col1 AS col0, 83 FROM tab0
----
1
83
1
83
1
83

skipif mysql # not compatible
query II rowsort label-4320
SELECT ALL - col1 / - col1 AS col0, 83 FROM tab0
----
1
83
1
83
1
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT ALL - ( + + MAX( ( + col1 ) ) ) DIV - COUNT( * ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - ( + + MAX ( ( + col1 ) ) ) / - COUNT ( * ) AS col1 FROM tab0
----
27

query I rowsort
SELECT - col1 * - + 81 + + col2 FROM tab0
----
1711
180
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT COUNT( * ) + + + ( MAX( ALL col1 ) ) col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4323
SELECT DISTINCT COUNT ( * ) + + + ( MAX ( ALL col1 ) ) col2 FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 54 FROM tab1 cor0
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT - 30 DIV 89 + col0 col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4328
SELECT - 30 / 89 + col0 col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + MAX( ALL + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + MAX ( ALL + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - col1 + + 45 AS col0 FROM tab1
----
-2
31
40

query I rowsort
SELECT DISTINCT + - 51 + - - 15 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-36

query III rowsort
SELECT * FROM tab0 WHERE 9 * col1 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 13 + + 77 AS col1 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - + 66 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - + 66 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL + COUNT( * ) + + 22 AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + COUNT ( * ) + + 22 AS col2 FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - 3 * + col1 + - - col2 + col2 + + + ( - col1 ) + 77 FROM tab1 cor0
----
175
213
25

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col0 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT ALL col2 * - 95 FROM tab2 AS cor0
----
-2185
-3800
-5510

query I rowsort
SELECT ALL 9 - + - col1 AS col1 FROM tab2
----
60
76
86

query I rowsort
SELECT - 57 + - - 26 FROM tab2
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4341
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> col1 + - CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-4341
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> col1 + - CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT col0 + + 68 * + - 16 + - 96 FROM tab1
----
-1093
-1099
-1133

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= ( - + col1 )
----

query I rowsort
SELECT col0 * - col2 * + col2 + ( - + ( col0 ) ) * + col1 AS col1 FROM tab2
----
-107328
-257325
-26680

query II rowsort
SELECT ALL - col2 AS col2, - 45 AS col1 FROM tab0
----
-10
-45
-47
-45
-99
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL - MAX( 56 ) AS col2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - MAX ( 56 ) AS col2 FROM tab0
----
-56

query II rowsort
SELECT col0, col2 + - col0 * - + col2 * 20 FROM tab0
----
15
14147
87
17410
97
192159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT ALL 88 + - - col2 - + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4348
SELECT ALL 88 + - - col2 - + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - - ( col2 ) FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - COUNT( * ) - + 77 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4350
SELECT - COUNT ( * ) - + 77 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT - + COUNT( * ) + - - SUM( - col0 ) FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - + COUNT ( * ) + - - SUM ( - col0 ) FROM tab2 AS cor0
----
-188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * + 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 61 * - col2 FROM tab1
----
-3599
-4148
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + SUM( DISTINCT + + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + SUM ( DISTINCT + + col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE 78 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT + - col0 / - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT + 4 DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT + 4 / - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT + + col0 DIV ( - 61 ) AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4358
SELECT + + col0 / ( - 61 ) AS col1 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND + + 42
----
75
67
58

query I rowsort
SELECT ALL 79 * - col0 + + + col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT ALL col1 DIV - col0 AS col2, col1 * 87 col1 FROM tab1 AS cor0
----
0
1218
0
4089
0
435

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4361
SELECT ALL col1 / - col0 AS col2, col1 * 87 col1 FROM tab1 AS cor0
----
0
1218
0
4089
0
435

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT DISTINCT - ( + ( + col0 ) ) * col1 * - col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT - 32 AS col2, - COUNT( * ) * + - MIN( ALL + + col2 ) AS col2 FROM tab1
----
-32
177

skipif mysql # not compatible
query II rowsort label-4364
SELECT - 32 AS col2, - COUNT ( * ) * + - MIN ( ALL + + col2 ) AS col2 FROM tab1
----
-32
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT MIN( ALL + 36 ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT MIN ( ALL + 36 ) AS col2 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL - COUNT( * ) * - + 41 AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - COUNT ( * ) * - + 41 AS col1 FROM tab0
----
123

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL <= + + 55
----

query II rowsort
SELECT col1 AS col1, - col1 AS col2 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT COUNT( * ) FROM tab2 WHERE NOT + + col2 + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4369
SELECT COUNT ( * ) FROM tab2 WHERE NOT + + col2 + col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT MAX( + 58 ) AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT MAX ( + 58 ) AS col1 FROM tab1
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT DISTINCT + col2 * - + col1 + - 42 FROM tab0 AS cor0
----
-141
-252
-3849

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT MIN( - 83 ) FROM tab2 AS cor0 WHERE col2 * + col2 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT MIN ( - 83 ) FROM tab2 AS cor0 WHERE col2 * + col2 BETWEEN NULL AND + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 85 / - col0 + - 72 IS NOT NULL AND NOT ( - col2 ) BETWEEN ( col1 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 85 / - col0 + - 72 IS NOT NULL AND NOT ( - col2 ) BETWEEN ( col1 ) AND NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + 18 * - COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + 18 * - COUNT ( * ) FROM tab2 AS cor0
----
-54

query I rowsort
SELECT - + col0 * - 38 FROM tab0 WHERE NULL IS NULL
----
3306
3686
570

query I rowsort
SELECT ALL + ( col2 ) + col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL - MIN( - - col2 ) + 35 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - MIN ( - - col2 ) + 35 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + + 82 * + col2 + col1 * + 0 AS col2 FROM tab1 AS cor0
----
4838
5576
7872

query I rowsort
SELECT DISTINCT + - 79 / col2 FROM tab2 AS cor0 WHERE - 5 BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL + + 78 * + 34 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
2649

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + + 78 * + 34 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2649

query I rowsort
SELECT ALL - col1 + - 81 FROM tab0 AS cor0
----
-102
-162
-82

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL - + 65 + - - 11 + + 57 * - COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - + 65 + - - 11 + + 57 * - COUNT ( * ) FROM tab2 AS cor0
----
-225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 + - - 52 + + + 13 * - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - col1 * - col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT - ( 75 ) - - + col0 - + - 64 * ( + 48 ) + col0 * + 94 * + ( - col0 ) AS col0 FROM tab0
----
-18138
-708402
-881352

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT + COUNT( DISTINCT - col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL 52 + col0 FROM tab0
----
139
149
67

query I rowsort
SELECT - 95 * + - col1 + - 89 FROM tab1
----
1241
386
4376

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4392
SELECT col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - col2 + - 53 NOT IN ( + ( + col2 ) )
----

query I rowsort
SELECT DISTINCT - 39 FROM tab1 cor0 WHERE NOT col0 <= NULL
----

query II rowsort
SELECT ALL col0, 85 FROM tab2 AS cor0
----
46
85
64
85
75
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= ( col0 )
----
15
81
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + - MAX( + + 23 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + - MAX ( + + 23 ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT - CAST( NULL AS SIGNED ) * + 20 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT - CAST ( NULL AS INTEGER ) * + 20 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 9 col2 FROM tab0
----
-10
9
-47
9
-99
9

query I rowsort
SELECT col0 * + 66 FROM tab1 AS cor0
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL + MIN( ALL + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL + MIN ( ALL + + col0 ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - 57 AS col0, - col2 FROM tab0 cor0
----
-57
-10
-57
-47
-57
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT ALL 79 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4407
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col1 + + CAST( NULL AS SIGNED ) / - col1 + + - col2 + 64
----

skipif mysql # not compatible
query III rowsort label-4407
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - col1 + + CAST ( NULL AS INTEGER ) / - col1 + + - col2 + 64
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 * - col1 + col0 AS col0, col1 AS col2 FROM tab0 WHERE NOT + col0 * 74 IN ( + col1, 58 + - - col2 )
----
528
21
6576
81
98
1

query II rowsort
SELECT ALL + + 37 AS col1, - 5 AS col2 FROM tab1 WHERE - - ( + col2 ) / col2 / + col1 * col2 IS NOT NULL
----
37
-5
37
-5
37
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-4411
SELECT ALL + col0 * 76 AS col1, col1 DIV + col1 + - ( col1 ) col1 FROM tab1
----
3876
-13
6460
-4
6916
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4411
SELECT ALL + col0 * 76 AS col1, col1 / + col1 + - ( col1 ) col1 FROM tab1
----
3876
-13
6460
-4
6916
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT 33 + - col2 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4413
SELECT col0 / - - col0 + - col0 + - ( - + CAST( NULL AS SIGNED ) ) AS col1, ( ( + - 66 ) ) AS col2 FROM tab2
----
NULL
-66
NULL
-66
NULL
-66

skipif mysql # not compatible
query II rowsort label-4413
SELECT col0 / - - col0 + - col0 + - ( - + CAST ( NULL AS INTEGER ) ) AS col1, ( ( + - 66 ) ) AS col2 FROM tab2
----
NULL
-66
NULL
-66
NULL
-66

query I rowsort
SELECT - col0 + - - col0 + - col2 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 9 + + col2 + 33 * + - 27 * - + col0 * + col0 + col1 FROM tab1
----
2317610
6437548
7378495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL + col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + + - col2 * - col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT 69 * - 89 + - 30 FROM tab1
----
-6171

query I rowsort
SELECT DISTINCT - col0 + - 72 AS col0 FROM tab0 AS cor0
----
-159
-169
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4420
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT DISTINCT + 1 + - 15 AS col2, COUNT( * ) FROM tab2 cor0
----
-14
3

skipif mysql # not compatible
query II rowsort label-4421
SELECT DISTINCT + 1 + - 15 AS col2, COUNT ( * ) FROM tab2 cor0
----
-14
3

query I rowsort
SELECT 91 AS col1 FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NULL
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 - + 90 + + 93 FROM tab0
----
102
13
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + col2 col1 FROM tab0 AS cor0
----
125
177
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT col2 DIV - col0 * + 14 + + 96 AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT col2 / - col0 * + 14 + + 96 AS col1 FROM tab2 AS cor0
----
96

query I rowsort
SELECT DISTINCT - - col2 * + col2 - - 58 FROM tab1 AS cor0 WHERE - col2 * - col2 + + 74 IS NOT NULL
----
3539
4682
9274

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT col0 DIV col2 + - 30 AS col2 FROM tab0 AS cor0
----
-22
-30
-30

skipif mysql # not compatible
query I rowsort label-4428
SELECT col0 / col2 + - 30 AS col2 FROM tab0 AS cor0
----
-22
-30
-30

query I rowsort
SELECT 1 * - col2 FROM tab1 cor0 WHERE + col0 NOT IN ( + 38 )
----
-59
-68
-96

query I rowsort
SELECT - + col2 + + + col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL col2 - col2 - + - 87 AS col0 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + col1 - - - ( + - col0 ) - + col0 * - col1 * col1 FROM tab1 AS cor0
----
10061
201157
2215

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT - ( - + MAX( - 54 ) ) * + COUNT( * ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-4433
SELECT - ( - + MAX ( - 54 ) ) * + COUNT ( * ) FROM tab1
----
-162

query I rowsort
SELECT DISTINCT + col2 - + - 19 AS col2 FROM tab1
----
115
78
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT 6 DIV + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT 6 / + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 58 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4437
SELECT + 28 AS col0, + col2 / - CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + - 85 )
----

skipif mysql # not compatible
query II rowsort label-4437
SELECT + 28 AS col0, + col2 / - CAST ( NULL AS REAL ) * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - SUM( 99 ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4438
SELECT - SUM ( 99 ) FROM tab2
----
-297

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= + 55
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT + 68 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT COUNT( DISTINCT col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4443
SELECT COUNT ( DISTINCT col0 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL MAX( DISTINCT + 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL MAX ( DISTINCT + 50 ) FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - COUNT( * ) * + 28 col2 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4445
SELECT - COUNT ( * ) * + 28 col2 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT COUNT( ALL col2 ) FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT COUNT ( ALL col2 ) FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 - - col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
196
62
97

query II rowsort
SELECT ALL col0 AS col2, 34 FROM tab0
----
15
34
87
34
97
34

query I rowsort
SELECT ALL ( - + 17 ) FROM tab2
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( + 10 ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - + 5 AS col1 FROM tab0
----
10
82
92

query II rowsort
SELECT DISTINCT - col2 + - col2 * col0 + - 21, col1 FROM tab2
----
-1102
51
-2621
77
-4429
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4454
SELECT 5 + - + ( + col0 ) DIV - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
5
5
6

skipif mysql # not compatible
query I rowsort label-4454
SELECT 5 + - + ( + col0 ) / - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
5
5
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4455
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col0 col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4455
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col0 col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= col0
----

query I rowsort
SELECT - 89 + + col2 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT - col1 * + 43 AS col0 FROM tab1 AS cor0
----
-2021
-215
-602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4459
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - + col2, CAST( NULL AS SIGNED ) + - 19 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4459
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - + col2, CAST ( NULL AS INTEGER ) + - 19 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT col1 * + + col0 AS col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4461
SELECT - ( - COUNT( CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT - ( - COUNT ( CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT 59 * + col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT 59 * + col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 69 - - col2 * + col2 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
2140
15
31
87
9732
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4464
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 * 10 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT ALL - CAST ( NULL AS REAL ) + + col2 * 10 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 - ( + + col2 ) col1 FROM tab0 AS cor0
----
2162
90
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT col2 DIV - col1 - col0 AS col2 FROM tab0 AS cor0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT col2 / - col1 - col0 AS col2 FROM tab0 AS cor0
----
-15
-196
-87

query II rowsort
SELECT ALL + ( + - col1 ) AS col0, - col1 * + 12 AS col1 FROM tab2 AS cor0
----
-51
-612
-67
-804
-77
-924

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT - ( + MIN( col1 ) ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT - ( + MIN ( col1 ) ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - + 94 * + col2 AS col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

query I rowsort
SELECT ALL - - 68 AS col2 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT + SUM( ALL + + 3 ) + - + SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT + SUM ( ALL + + 3 ) + - + SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
204

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 12 > 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT - - SUM( ALL - CAST( + - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4474
SELECT - - SUM ( ALL - CAST ( + - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4475
SELECT 50 AS col1 FROM tab0 WHERE + col0 * CAST( ( + 96 ) AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-4475
SELECT 50 AS col1 FROM tab0 WHERE + col0 * CAST ( ( + 96 ) AS REAL ) < NULL
----

query I rowsort
SELECT ALL col2 * + + 78 AS col1 FROM tab0
----
3666
7722
780

query I rowsort
SELECT DISTINCT + col1 + 81 AS col2 FROM tab2
----
132
148
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT CAST( NULL AS SIGNED ) + MAX( - 24 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT CAST ( NULL AS INTEGER ) + MAX ( - 24 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + 96 + - COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4479
SELECT + 96 + - COUNT ( * ) FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT COUNT( * ) + - + MIN( ALL + col1 ) + - - MIN( DISTINCT + col2 ) col0 FROM tab1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4480
SELECT COUNT ( * ) + - + MIN ( ALL + col1 ) + - - MIN ( DISTINCT + col2 ) col0 FROM tab1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT ALL + col1 + - - 12 DIV ( - + col1 ) AS col2 FROM tab1
----
14
3
47

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + col1 + - - 12 / ( - + col1 ) AS col2 FROM tab1
----
14
3
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT 58 * col1 DIV + col1 + - 34 + - col1 + col2 + - col1 FROM tab1
----
-2
73
92

skipif mysql # not compatible
query I rowsort label-4482
SELECT 58 * col1 / + col1 + - 34 + - col1 + col2 + - col1 FROM tab1
----
-2
73
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT - 37 * + - COUNT( * ) + - - 96 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT - 37 * + - COUNT ( * ) + - - 96 FROM tab1
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT + CAST( NULL AS SIGNED ) - + 16 + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT + CAST ( NULL AS INTEGER ) - + 16 + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( NOT col0 - col2 >= col2 )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT + 18 + + + 52 * + - CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 18 + + + 52 * + - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL - 91 * + + 68 AS col1, col0 FROM tab1 AS cor0
----
-6188
51
-6188
85
-6188
91

query I rowsort
SELECT DISTINCT - + 96 * - 67 + + col0 AS col1 FROM tab0 AS cor0
----
6447
6519
6529

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT ALL COUNT( * ) col2, ( + COUNT( * ) ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4490
SELECT ALL COUNT ( * ) col2, ( + COUNT ( * ) ) FROM tab0 cor0
----
3
3

query II rowsort
SELECT 68 AS col2, + col1 + + - 16 AS col0 FROM tab1 cor0
----
68
-11
68
-2
68
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4492
SELECT - + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + SUM( 50 ) AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4493
SELECT + SUM ( 50 ) AS col0 FROM tab2
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT COUNT( - 33 ) AS col2, + SUM( col0 ) + COUNT( * ) FROM tab1
----
3
230

skipif mysql # not compatible
query II rowsort label-4494
SELECT COUNT ( - 33 ) AS col2, + SUM ( col0 ) + COUNT ( * ) FROM tab1
----
3
230

query II rowsort
SELECT DISTINCT 57 * 73 AS col1, - col1 FROM tab1
----
4161
-14
4161
-47
4161
-5

query I rowsort
SELECT DISTINCT col1 * + + col1 * col1 * - - col0 FROM tab1
----
10625
139944
9447893

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT ALL + 51, + COUNT( * ) AS col2 FROM tab1
----
51
3

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL + 51, + COUNT ( * ) AS col2 FROM tab1
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT COUNT( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4498
SELECT COUNT ( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
9

query I rowsort
SELECT DISTINCT + 47 + - 45 AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL - + 43 + - col2 FROM tab2 AS cor0
----
-101
-66
-83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL 97 + - + COUNT( * ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL 97 + - + COUNT ( * ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT - col1 + - 88 FROM tab2 AS cor0
----
-139
-155
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT + - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL col2 AS col1, 26 AS col1 FROM tab1 AS cor0
----
59
26
68
26
96
26

query III rowsort
SELECT * FROM tab0 WHERE + 40 > col1 + - - 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col0 ) col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT + col2 + - col1 * col2 * - col0 FROM tab0
----
18280
57152
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT COUNT( * ) + + 68 col0 FROM tab2 cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4509
SELECT DISTINCT COUNT ( * ) + + 68 col0 FROM tab2 cor0
----
71

query I rowsort
SELECT ALL + col1 * + 22 - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col2 - - - 86 FROM tab0
----
-39
-76
13

query II rowsort
SELECT + + 73 * + + col1 * + col0, + col1 AS col2 FROM tab1 AS cor0
----
31025
5
312221
47
52122
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - + MIN( + col2 ) * + + 35 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NULL
----
-2065

skipif mysql # not compatible
query I rowsort label-4513
SELECT - + MIN ( + col2 ) * + + 35 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NULL
----
-2065

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 <> NULL
----

query I rowsort
SELECT + ( + + 51 ) FROM tab0 AS cor0
----
51
51
51

query II rowsort
SELECT ALL + 67 AS col0, + col1 FROM tab0 AS cor0
----
67
1
67
21
67
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT MAX( ( - + ( 23 ) ) ) * ( - + 97 ) FROM tab1 cor0
----
2231

skipif mysql # not compatible
query I rowsort label-4517
SELECT MAX ( ( - + ( 23 ) ) ) * ( - + 97 ) FROM tab1 cor0
----
2231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4518
SELECT ALL - - CAST( col1 AS SIGNED ) - + col1 / + - col2, col2 AS col2 FROM tab0 AS cor0 WHERE 26 * - - 70 + - + 7 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4518
SELECT ALL - - CAST ( col1 AS INTEGER ) - + col1 / + - col2, col2 AS col2 FROM tab0 AS cor0 WHERE 26 * - - 70 + - + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + + MAX( col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4519
SELECT + + MAX ( col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT ( + MIN( + - col0 ) ) * 36 FROM tab2 AS cor0
----
-2700

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT ( + MIN ( + - col0 ) ) * 36 FROM tab2 AS cor0
----
-2700

query II rowsort
SELECT ALL col2 * - col0, 75 AS col0 FROM tab2
----
-1058
75
-2560
75
-4350
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT ALL col1 DIV 68 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL col1 / 68 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL col0 AS col2, 72 + + col0 + col2, + - col1 AS col1 FROM tab2
----
9 values hashing to 498bdcba87d3058c99c4f97485f1d18d

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - MIN( ALL - ( + 6 ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4524
SELECT - MIN ( ALL - ( + 6 ) ) AS col2 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT + 28 DIV col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4525
SELECT + 28 / col2 FROM tab0 AS cor0
----
0
0
2

query II rowsort
SELECT ALL + + col2 AS col1, col2 * - col0 FROM tab0 AS cor0
----
10
-870
47
-705
99
-9603

query I rowsort
SELECT DISTINCT + - col0 * - col2 * + 16 + + - 79 FROM tab2 AS cor0
----
16849
40881
69521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT col2 < + col2
----
14
47
5

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0, tab1 AS cor0
----
-67

query I rowsort
SELECT ALL - col0 * col0 + col1 * + ( + 29 ) + + col2 AS col1 FROM tab2 AS cor0
----
-1823
-3624
-614

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4531
SELECT * FROM tab2 AS cor0 WHERE NULL < ( col0 * CAST( - + col0 AS SIGNED ) / + col0 / - 43 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-4531
SELECT * FROM tab2 AS cor0 WHERE NULL < ( col0 * CAST ( - + col0 AS INTEGER ) / + col0 / - 43 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col2 + + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT COUNT( * ) * - MIN( ALL - - 95 ) + - CAST( NULL AS SIGNED ) * COUNT( * ) + COUNT( ALL - - 83 ) AS col2 FROM tab2 AS cor0 WHERE - col2 * - col0 < - - ( + col2 ) * + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT COUNT ( * ) * - MIN ( ALL - - 95 ) + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + COUNT ( ALL - - 83 ) AS col2 FROM tab2 AS cor0 WHERE - col2 * - col0 < - - ( + col2 ) * + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL MIN( + + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL MIN ( + + col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col1 AND + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT DISTINCT CAST( 85 AS SIGNED ) + - CAST( - + 46 AS SIGNED ) AS col0 FROM tab2 cor0
----
131

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT CAST ( 85 AS INTEGER ) + - CAST ( - + 46 AS INTEGER ) AS col0 FROM tab2 cor0
----
131

query I rowsort
SELECT ALL + - 90 FROM tab2 WHERE NOT + 37 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - 71 * col2 FROM tab2
----
-1633
-2840
-4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT MAX( DISTINCT + 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT MAX ( DISTINCT + 13 ) FROM tab0
----
13

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < col0 + 62
----

query I rowsort
SELECT ALL - 61 * - ( - col1 ) + + col2 AS col1 FROM tab1 cor0
----
-246
-2799
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + SUM( - 72 ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-4544
SELECT + SUM ( - 72 ) FROM tab1
----
-216

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4546
SELECT ALL col1 * 70 DIV - + col0 AS col2 FROM tab1 AS cor0
----
-19
-36
-4

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL col1 * 70 / - + col0 AS col2 FROM tab1 AS cor0
----
-19
-36
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 col0 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL 85 - - col1 * col2 AS col2 FROM tab0 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 85 - - col1 * col2 AS col2 FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - col0
----

query I rowsort
SELECT DISTINCT 43 * col2 AS col2 FROM tab2
----
1720
2494
989

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT SUM( - 40 ) AS col1 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT SUM ( - 40 ) AS col1 FROM tab1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT - CAST( MAX( + ( col0 ) ) AS SIGNED ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4552
SELECT - CAST ( MAX ( + ( col0 ) ) AS INTEGER ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + MAX( - - 30 ) FROM tab1 WHERE NOT ( col1 * - 96 * + 66 + + col1 + + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT + MAX ( - - 30 ) FROM tab1 WHERE NOT ( col1 * - 96 * + 66 + + col1 + + col2 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT + CAST( + - 38 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif mysql # not compatible
query I rowsort label-4554
SELECT + CAST ( + - 38 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT - 35 * COUNT( 9 ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - 35 * COUNT ( 9 ) FROM tab2
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4556
SELECT * FROM tab2 cor0 WHERE NOT - 23 NOT BETWEEN ( + 22 / col1 ) AND ( + + col2 ) / - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4556
SELECT * FROM tab2 cor0 WHERE NOT - 23 NOT BETWEEN ( + 22 / col1 ) AND ( + + col2 ) / - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE NOT NULL < ( col2 )
----

query I rowsort
SELECT ALL - - col2 * + col2 + - - col0 + - col1 AS col2 FROM tab0 AS cor0
----
166
2143
9897

query I rowsort
SELECT 94 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + col1 * col1 IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT + MAX( ALL + 49 ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + MAX ( ALL + 49 ) AS col0 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT - - 4 * COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - - 4 * COUNT ( * ) FROM tab2 AS cor0
----
12

query II rowsort
SELECT DISTINCT 43, + 54 AS col1 FROM tab0
----
43
54

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 WHERE NULL < + col1 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col0 * 78 + + col2 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col0 * 78 + + col2 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4567
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - - col2 * ( - 44 ) <= + + col1
----

skipif mysql # not compatible
query III rowsort label-4567
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - - col2 * ( - 44 ) <= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - + col2 BETWEEN NULL AND col2 )
----

query I rowsort
SELECT 34 * col2 * - + 76 * 77 FROM tab2 AS cor0
----
-11540144
-4576264
-7958720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL + 19 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + 19 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
10
47
99

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE + - col1 BETWEEN NULL AND col1 * 36 * + col0 * + col1 * col0
----

query II rowsort
SELECT DISTINCT - col0 + - 41 + 68 + + 19 * - - col1 AS col2, col0 - 32 - col1 FROM tab1
----
242
5
37
48
829
12

query II rowsort
SELECT - col1 + + - col0 AS col2, - 82 FROM tab2
----
-141
-82
-142
-82
-97
-82

query II rowsort
SELECT col2 + + col0, ( col1 ) FROM tab2 AS cor0
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - COUNT( * ) + + - 73 AS col1 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4579
SELECT - COUNT ( * ) + + - 73 AS col1 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT 69 AS col2, + ( + col2 ) + - - col2 + - col2 FROM tab0
----
69
10
69
47
69
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT + + CAST( NULL AS SIGNED ) * + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT + + CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT + MIN( DISTINCT col0 ) * ( + 72 ) AS col2 FROM tab0 AS cor0
----
1080

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + MIN ( DISTINCT col0 ) * ( + 72 ) AS col2 FROM tab0 AS cor0
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - 28 * + COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4585
SELECT - 28 * + COUNT ( * ) FROM tab2 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 60 * + + 54 * - col2 col2 FROM tab1 AS cor0
----
-191160
-220320
-311040

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - MAX( - - 73 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-73

skipif mysql # not compatible
query I rowsort label-4587
SELECT - MAX ( - - 73 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-73

query I rowsort
SELECT DISTINCT - + 14 FROM tab1 cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT CAST( col2 AS SIGNED ) + + - 12 AS col2 FROM tab0
----
-2
35
87

skipif mysql # not compatible
query I rowsort label-4589
SELECT CAST ( col2 AS INTEGER ) + + - 12 AS col2 FROM tab0
----
-2
35
87

query I rowsort
SELECT ALL + ( + ( + - col0 ) ) + + 55 AS col1 FROM tab1 WHERE ( - 2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 3 + + + 97 AS col1 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT + + 1 * - col1 FROM tab1 AS cor0 WHERE NOT col0 * - col1 IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + - 92 + col1 * + - 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 7, + 65 * + - col1 )
----

query I rowsort
SELECT ALL ( - 23 ) FROM tab0
----
-23
-23
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4596
SELECT + 21 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4596
SELECT + 21 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT - CAST( 91 AS SIGNED ) FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-4597
SELECT - CAST ( 91 AS INTEGER ) FROM tab0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - col2 * + + 69 FROM tab2
----
-1587
-2760
-4002

query I rowsort
SELECT DISTINCT - col1 + + + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - 1 - - ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL - CAST( NULL AS SIGNED ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - CAST ( NULL AS INTEGER ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT DISTINCT 64 - - 52 DIV 73 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT 64 - - 52 / 73 FROM tab0
----
64

query I rowsort
SELECT 65 * + col1 * 77 FROM tab0
----
105105
405405
5005

query I rowsort
SELECT col2 * - ( - - 82 ) FROM tab1
----
-4838
-5576
-7872

query II rowsort
SELECT ALL - col1 AS col0, + 93 FROM tab1 WHERE NOT col1 IS NULL
----
-14
93
-47
93
-5
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4606
SELECT * FROM tab2 WHERE 9 < CAST( - + col2 AS DECIMAL ) / 99 * - + 26 * + - col1
----

skipif mysql # not compatible
query III rowsort label-4606
SELECT * FROM tab2 WHERE 9 < CAST ( - + col2 AS REAL ) / 99 * - + 26 * + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL col2 - - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL col2 - - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 34 AS col1, col0 + - 61 col1 FROM tab1
----
-34
-10
-34
24
-34
30

query III rowsort
SELECT * FROM tab1 WHERE NULL = col2 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * - col1 * 20 + col0 col0 FROM tab2
----
46966
61715
70904

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE 59 BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE 59 BETWEEN col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL + + COUNT( * ) * + COUNT( * ) * - 22 AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) * - 22 AS col1 FROM tab1 AS cor0
----
-198

query II rowsort
SELECT DISTINCT - col1, col0 - + - col2 AS col1 FROM tab1 AS cor0
----
-14
147
-47
159
-5
144

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT ALL ( col0 ) * col0 DIV - 65 FROM tab0
----
-116
-144
-3

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL ( col0 ) * col0 / - 65 FROM tab0
----
-116
-144
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT ALL + col1 DIV + col2 - + 86 AS col0 FROM tab0 AS cor0
----
-84
-85
-86

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + col1 / + col2 - + 86 AS col0 FROM tab0 AS cor0
----
-84
-85
-86

query I rowsort
SELECT ALL + 62 AS col1 FROM tab2 cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query II rowsort label-4617
SELECT DISTINCT - - col0 DIV - col0 AS col2, 97 AS col1 FROM tab2 AS cor0
----
-1
97

skipif mysql # not compatible
query II rowsort label-4617
SELECT DISTINCT - - col0 / - col0 AS col2, 97 AS col1 FROM tab2 AS cor0
----
-1
97

query I rowsort
SELECT 97 * + - col0 FROM tab1 AS cor0
----
-4947
-8245
-8827

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * + col1 * + 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT + - col1 DIV - 96 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4620
SELECT + - col1 / - 96 col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + 59 AS col1, + col2 * col1 FROM tab1
----
59
1344
59
295
59
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT - CAST( col2 AS SIGNED ) + - 66 AS col0 FROM tab2 WHERE NOT + 93 BETWEEN - - col1 + - - col2 + - - 76 + col0 AND - col1 * - col2 + + col1
----
-106
-124
-89

skipif mysql # not compatible
query I rowsort label-4622
SELECT - CAST ( col2 AS INTEGER ) + - 66 AS col0 FROM tab2 WHERE NOT + 93 BETWEEN - - col1 + - - col2 + - - 76 + col0 AND - col1 * - col2 + + col1
----
-106
-124
-89

query II rowsort
SELECT col0, col1 + - col0 AS col2 FROM tab2
----
46
5
64
13
75
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT - 66 + - SUM( col1 ) col0 FROM tab2
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4624
SELECT DISTINCT - 66 + - SUM ( col1 ) col0 FROM tab2
----
-261

query I rowsort
SELECT col1 + + ( + col2 ) + ( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL - ( - CAST( + + COUNT( col0 ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - ( - CAST ( + + COUNT ( col0 ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4627
SELECT DISTINCT - - 8 * - + col1 + + + ( - col0 ) + col2 col0 FROM tab0 WHERE + CAST( + 43 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4627
SELECT DISTINCT - - 8 * - + col1 + + + ( - col0 ) + col2 col0 FROM tab0 WHERE + CAST ( + 43 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT COUNT( * ) + + 19 AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4628
SELECT COUNT ( * ) + + 19 AS col0 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL + + col0 + ( + 48 ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col0 * - 95 + ( - col0 ) AS col1 FROM tab0
----
-1440
-8352
-9312

query I rowsort
SELECT ALL + + 7 - - 2 * - ( + col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
-34
-44
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT - 82 - 26 - - - col0 * + CAST( NULL AS SIGNED ) * + col1 * - + col2 / - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 82 - 26 - - - col0 * + CAST ( NULL AS INTEGER ) * + col1 * - + col2 / - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4634
SELECT DISTINCT + col2 * + ( col2 ) + + CAST( NULL AS DECIMAL ) / + 73 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT + col2 * + ( col2 ) + + CAST ( NULL AS REAL ) / + 73 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col1 - + + col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - COUNT( * ) * - MAX( col2 ) AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - COUNT ( * ) * - MAX ( col2 ) AS col1 FROM tab2
----
174

query I rowsort
SELECT ALL 29 * - - 88 AS col1 FROM tab2
----
2552
2552
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COUNT( DISTINCT - 95 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COUNT ( DISTINCT - 95 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT - 53 * + COUNT( * ) FROM tab0 WHERE NOT - - col1 * - + 38 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - 53 * + COUNT ( * ) FROM tab0 WHERE NOT - - col1 * - + 38 IS NOT NULL
----
0

query I rowsort
SELECT ALL 56 * - 38 * - col1 FROM tab1
----
100016
10640
29792

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL + MAX( - 39 ) col2 FROM tab0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4641
SELECT ALL + MAX ( - 39 ) col2 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT - ( + + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4642
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - ( + + col0 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col2 + col2 AS col0 FROM tab2 AS cor0
----
23
46
40
80
58
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - col0 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - + COUNT( ALL col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4647
SELECT - + COUNT ( ALL col2 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4648
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * + col2 + + - 93 - + col0 = + col2
----

skipif mysql # not compatible
query III rowsort label-4648
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + col2 + + - 93 - + col0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4649
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT SUM( - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT SUM ( - col1 ) AS col1 FROM tab0
----
-103

query II rowsort
SELECT - + col1, 66 AS col2 FROM tab1 AS cor0
----
-14
66
-47
66
-5
66

query I rowsort
SELECT DISTINCT + + 85 AS col1 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL + 19 AS col1 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT + 73 * col2 FROM tab1 AS cor0
----
4307
4964
7008

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - - col2 + + - 7 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 33 * - + col2 BETWEEN + + 0 * col0 + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4657
SELECT - col1, - CAST( col1 AS SIGNED ) * 19 AS col0 FROM tab1 AS cor0
----
-14
-266
-47
-893
-5
-95

skipif mysql # not compatible
query II rowsort label-4657
SELECT - col1, - CAST ( col1 AS INTEGER ) * 19 AS col0 FROM tab1 AS cor0
----
-14
-266
-47
-893
-5
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT DISTINCT + col1 DIV - 65 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT + col1 / - 65 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT + col2 + - + ( + - col1 ) AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT + COUNT( * ) DIV - 71 + + COUNT( - col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4660
SELECT + COUNT ( * ) / - 71 + + COUNT ( - col1 ) col0 FROM tab2
----
3

query I rowsort
SELECT + 14 + 41 + + col0 FROM tab2
----
101
119
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4662
SELECT + + ( - SUM( ALL + 27 ) ) AS col0, - CAST( NULL AS SIGNED ) * - + 74 FROM tab2 AS cor0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-4662
SELECT + + ( - SUM ( ALL + 27 ) ) AS col0, - CAST ( NULL AS INTEGER ) * - + 74 FROM tab2 AS cor0
----
-81
NULL

query II rowsort
SELECT - col2 * + col2 AS col0, 72 * - - col0 FROM tab0 AS cor0
----
-100
6264
-2209
1080
-9801
6984

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-4664
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT ALL + 63 AS col1, + MAX( - col1 ) - ( - 45 ) FROM tab0
----
63
44

skipif mysql # not compatible
query II rowsort label-4665
SELECT ALL + 63 AS col1, + MAX ( - col1 ) - ( - 45 ) FROM tab0
----
63
44

query I rowsort
SELECT DISTINCT - - col0 + + 21 * + - 82 FROM tab2 AS cor0
----
-1647
-1658
-1676

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT col2 + + - 90 DIV + col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
1
46
99

skipif mysql # not compatible
query I rowsort label-4667
SELECT col2 + + - 90 / + col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
1
46
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - COUNT( * ) + ( + 42 ) AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - COUNT ( * ) + ( + 42 ) AS col0 FROM tab2 AS cor0
----
39

query I rowsort
SELECT - + 97 AS col2 FROM tab1 AS cor0 WHERE NULL = - col1 - - - col2
----

query I rowsort
SELECT ALL col0 + - - col2 FROM tab1 cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - COUNT( * ) + COUNT( * ) + + 22 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4671
SELECT - COUNT ( * ) + COUNT ( * ) + + 22 FROM tab1 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + col2 * - col0 * - ( + - col1 ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL + COUNT( * ), SUM( + 58 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL + COUNT ( * ), SUM ( + 58 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
24

query II rowsort
SELECT col1, - col1 + + - 35 + - col1 + + - col1 FROM tab1 cor0
----
14
-77
47
-176
5
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 73 * + 83 AS col2 FROM tab1
----
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT MIN( - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT MIN ( - + col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL + - ( - 76 ) * + col0 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT ALL - col0 * - - col2 + - + 71 AS col0 FROM tab1 AS cor0
----
-4967
-5086
-6259

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT DISTINCT - col0 DIV + 74 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - col0 / + 74 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT ALL + 34 DIV + col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + 34 / + col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - ( ( 44 ) ) * + - col1 * - + col1 FROM tab2 AS cor0
----
-114444
-197516
-260876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 81 col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4685
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 57 * + col0 FROM tab1
----
2907
4845
5187

query II rowsort
SELECT DISTINCT 71 AS col2, col0 FROM tab0
----
71
15
71
87
71
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT ALL 75 DIV col1 FROM tab0
----
0
3
75

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL 75 / col1 FROM tab0
----
0
3
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT DISTINCT - CAST( 23 AS SIGNED ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - CAST ( 23 AS INTEGER ) AS col1 FROM tab0
----
-23

query I rowsort
SELECT + + 25 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4691
SELECT - col0 AS col2, CAST( + col0 AS SIGNED ) * 53 * + CAST( - col2 AS SIGNED ) + col2 AS col2 FROM tab2
----
-46
-56051
-64
-135640
-75
-230492

skipif mysql # not compatible
query II rowsort label-4691
SELECT - col0 AS col2, CAST ( + col0 AS INTEGER ) * 53 * + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab2
----
-46
-56051
-64
-135640
-75
-230492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL - CAST( - CAST( + - col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL - CAST ( - CAST ( + - col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 56 + - col0 FROM tab0
----
-31
-41
41

query II rowsort
SELECT + col2 + 86 * + - col0 * 71 * - - col2 + + 12 AS col1, + col1 + col0 FROM tab2 WHERE col0 <> NULL
----

query I rowsort
SELECT col1 + - ( + col2 ) + - col1 * + 83 AS col2 FROM tab0
----
-1732
-181
-6689

query I rowsort
SELECT DISTINCT - ( - 80 ) + 1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT + 89 + + col0 FROM tab2 AS cor0
----
135
153
164

query I rowsort
SELECT 94 + - 69 AS col2 FROM tab1 AS cor0
----
25
25
25

query II rowsort
SELECT DISTINCT - col0 AS col1, ( col1 ) FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN + + col0 AND + ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT ALL 48 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL 48 / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - 67 + MIN( - col0 ) AS col2 FROM tab2
----
-142

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - 67 + MIN ( - col0 ) AS col2 FROM tab2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col0 FROM tab0
----
156

query II rowsort
SELECT ALL - col2 + + + col2 AS col2, - col1 AS col1 FROM tab2
----
0
-51
0
-67
0
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT - + COUNT( ALL + - 35 ) DIV 16 + 46 AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4705
SELECT - + COUNT ( ALL + - 35 ) / 16 + 46 AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT MIN( DISTINCT - - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4706
SELECT MIN ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT + SUM( ALL - + col0 ) DIV - 63 FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4707
SELECT + SUM ( ALL - + col0 ) / - 63 FROM tab2 cor0
----
2

query I rowsort
SELECT DISTINCT 34 * - col2 FROM tab2 AS cor0
----
-1360
-1972
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col0 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND col0
----

query II rowsort
SELECT DISTINCT + ( - col1 ) AS col1, col0 + col0 - + 87 * + col1 FROM tab0 AS cor0
----
-1
107
-21
-1653
-81
-7017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 16 col0, col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL + COUNT( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + COUNT ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT COUNT( * ) * 65 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( * ) * 65 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL col0, col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ( col2 ) FROM tab2 WHERE NOT col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 88 + + + ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4717
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT col2 + + - col0 FROM tab1 WHERE NOT NULL <= + col1 / + col2 + + + 24 + 8 * col2
----

query I rowsort
SELECT - col1 * + 38 FROM tab2
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4720
SELECT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 99 col2 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT 30 + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----
30

skipif mysql # not compatible
query I rowsort label-4722
SELECT 30 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 + - 94 col2 FROM tab0
----
-125

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= 93
----

query I rowsort
SELECT + col2 FROM tab2 WHERE - 12 * + col0 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND - 87
----
63

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col1 NOT IN ( - col0 / + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * 86 AS col1 FROM tab1
----
4386
7310
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 - - 67 ) < ( + col2 )
----

query I rowsort
SELECT - col2 + col1 * 4 AS col1 FROM tab1
----
-39
-40
120

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT - COUNT( * ) + COUNT( + col2 + + 99 * col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT - COUNT ( * ) + COUNT ( + col2 + + 99 * col1 ) FROM tab0
----
0

query I rowsort
SELECT - col0 + + 90 FROM tab0 WHERE NOT ( - 3 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT ALL - col0 DIV 29 AS col0 FROM tab0 WHERE ( - col1 + col1 * col1 ) NOT BETWEEN 95 + col0 AND col0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - col0 / 29 AS col0 FROM tab0 WHERE ( - col1 + col1 * col1 ) NOT BETWEEN 95 + col0 AND col0
----
-3
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - COUNT( * ) * 22 AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-4737
SELECT - COUNT ( * ) * 22 AS col1 FROM tab2
----
-66

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( 98 )
----

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) * 18 FROM tab1 WHERE - col1 IN ( col1 + - 71 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4740
SELECT DISTINCT * FROM tab1 WHERE 17 + - CAST( NULL AS DECIMAL ) IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-4740
SELECT DISTINCT * FROM tab1 WHERE 17 + - CAST ( NULL AS REAL ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT ( ( - CAST( NULL AS SIGNED ) ) ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ( ( - CAST ( NULL AS INTEGER ) ) ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 9 FROM tab0
----
-12
-72
8

query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col1 >= - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 98 ) >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) * + 66 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 66 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT - CAST( NULL AS SIGNED ) + col1 * + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT - CAST ( NULL AS INTEGER ) + col1 * + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + ( - COUNT( 33 ) ) FROM tab1 WHERE NOT - col1 + ( + col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + ( - COUNT ( 33 ) ) FROM tab1 WHERE NOT - col1 + ( + col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= ( - 21 * col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT BETWEEN ( - col0 ) AND + col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4752
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) IN ( 40 * CAST( - col2 * + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4752
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) IN ( 40 * CAST ( - col2 * + col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col0 FROM tab1 AS cor0 WHERE + 42 = 56
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT - 72 DIV col2 AS col2 FROM tab1 WHERE NOT - 98 + + col1 BETWEEN ( col0 ) AND ( - 65 + + CAST( 63 AS SIGNED ) )
----
-1
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - 72 / col2 AS col2 FROM tab1 WHERE NOT - 98 + + col1 BETWEEN ( col0 ) AND ( - 65 + + CAST ( 63 AS INTEGER ) )
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT 31 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
40

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT 31 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 1 col2 FROM tab2 AS cor0 WHERE NOT + col1 + 48 NOT BETWEEN - col1 AND + col1 * col0
----
23
40
58

query I rowsort
SELECT ALL - + ( + ( + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 84 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 84 <> col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - + SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4760
SELECT - + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - 37 * + 44 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1628
-1628
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT - MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT - MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4763
SELECT ALL * FROM tab1 WHERE NULL = 45 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4763
SELECT ALL * FROM tab1 WHERE NULL = 45 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT 16 * + - CAST( COUNT( * ) AS SIGNED ) * 49 FROM tab1
----
-2352

skipif mysql # not compatible
query I rowsort label-4764
SELECT 16 * + - CAST ( COUNT ( * ) AS INTEGER ) * 49 FROM tab1
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT + COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col2 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col2 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( NULL ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT SUM( col0 ) + - COUNT( * ) FROM tab1 WHERE ( NULL ) BETWEEN - ( + col0 ) * - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT SUM ( col0 ) + - COUNT ( * ) FROM tab1 WHERE ( NULL ) BETWEEN - ( + col0 ) * - col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN col2 AND ( + col0 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN col2 AND ( + col0 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
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-4770
SELECT + COUNT ( col1 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * + 41 * 4 FROM tab2 AS cor0
----
3772
6560
9512

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + 19 * MIN( + 50 ) FROM tab0 cor0 WHERE NOT ( + col2 ) * col2 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 19 * MIN ( + 50 ) FROM tab0 cor0 WHERE NOT ( + col2 ) * col2 + - col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4773
SELECT + + 20 * col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT + + 20 * col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT DISTINCT - col1 + - col1 + - CAST( NULL AS SIGNED ) + 85 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - col1 + - col1 + - CAST ( NULL AS INTEGER ) + 85 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + 98 + + COUNT( * ) + + + 31 AS col1 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 98 + + COUNT ( * ) + + + 31 AS col1 FROM tab1 AS cor0
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4776
SELECT CAST( NULL AS DECIMAL ) * 67 FROM tab0 cor0 WHERE 29 NOT BETWEEN + col2 AND - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT CAST ( NULL AS REAL ) * 67 FROM tab0 cor0 WHERE 29 NOT BETWEEN + col2 AND - col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT + CAST( + 53 AS SIGNED ) + + col2 + col0 FROM tab0 AS cor0
----
115
150
249

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + CAST ( + 53 AS INTEGER ) + + col2 + col0 FROM tab0 AS cor0
----
115
150
249

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + col0 + - 51 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4779
SELECT - CAST( NULL AS SIGNED ) col2, 7 AS col1 FROM tab0 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4779
SELECT - CAST ( NULL AS INTEGER ) col2, 7 AS col1 FROM tab0 AS cor0
----
NULL
7
NULL
7
NULL
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT - 77, MAX( DISTINCT + 25 ) AS col2 FROM tab0 AS cor0
----
-77
25

skipif mysql # not compatible
query II rowsort label-4780
SELECT - 77, MAX ( DISTINCT + 25 ) AS col2 FROM tab0 AS cor0
----
-77
25

query I rowsort
SELECT ALL - 77 * + col0 * - + 51 * col1 + + 29 * 33 AS col2 FROM tab1
----
1669932
16796736
2804835

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT COUNT( DISTINCT - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT COUNT ( DISTINCT - - col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 62 * col2 + + 31 AS col0 FROM tab2
----
1457
2511
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT DISTINCT - COUNT( * ) - - - 30 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT - COUNT ( * ) - - - 30 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT + ( - - COUNT( + 88 ) ) + - + COUNT( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + ( - - COUNT ( + 88 ) ) + - + COUNT ( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col1 * - + 33 - - - col1 * + col0 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( 18 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - MAX( ALL col1 ) * 68 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, + 63 * col0 * ( col2 ) * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT - MAX ( ALL col1 ) * 68 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, + 63 * col0 * ( col2 ) * col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4791
SELECT + COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4792
SELECT ALL - - 73, 57 * + COUNT( * ) * ( + - 3 ) AS col0 FROM tab1 AS cor0
----
73
-513

skipif mysql # not compatible
query II rowsort label-4792
SELECT ALL - - 73, 57 * + COUNT ( * ) * ( + - 3 ) AS col0 FROM tab1 AS cor0
----
73
-513

query I rowsort
SELECT + ( - - 97 ) AS col2 FROM tab2 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - + MIN( ALL - + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4794
SELECT - + MIN ( ALL - + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - col0
----

query II rowsort
SELECT ALL - 55 AS col1, - 15 AS col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
-55
-15
-55
-15
-55
-15

query I rowsort
SELECT DISTINCT + col2 + - + col2 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - ( - 47 ) AS col0 FROM tab2
----
23
47
40
47
58
47

query I rowsort
SELECT 26 + col0 AS col1 FROM tab1
----
111
117
77

query I rowsort
SELECT 96 * + + col0 + - col2 * col0 * col0 FROM tab1
----
-244800
-418115
-554372

query I rowsort
SELECT 80 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 82 * + 85 - - col1 + + col1 AS col2, + 2 FROM tab1 AS cor0
----
-6876
2
-6942
2
-6960
2

query I rowsort
SELECT DISTINCT - - 47 + + - 81 * 25 FROM tab1 AS cor0
----
-1978

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( - - 28 * 13 ) <= col1
----

query I rowsort
SELECT - col1 + + + col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT ALL + CAST( - ( col2 ) AS SIGNED ) + 24 FROM tab1 AS cor0
----
-35
-44
-72

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + CAST ( - ( col2 ) AS INTEGER ) + 24 FROM tab1 AS cor0
----
-35
-44
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 99 col1 FROM tab2 AS cor0
----
24
35
53

query I rowsort
SELECT - - col0 + col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 44 * 18 - - 45 + + 24 / 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 + - - col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4812
SELECT ALL - + 70 + ( + - 19 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * CAST( NULL AS DECIMAL ) IS NOT NULL
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - + 70 + ( + - 19 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * CAST ( NULL AS REAL ) IS NOT NULL
----
-89
-89
-89

query I rowsort
SELECT ALL - + col0 * - col1 * + 90 + + - 59 + + col2 - - + col0 * + col1 AS col0 FROM tab2 AS cor0
----
213450
448429
457274

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < 19
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4815
SELECT ALL + 51 AS col2, - 24 * - MAX( + + col1 ) * COUNT( * ) / - SUM( ALL - ( - 64 ) ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL + 51 AS col2, - 24 * - MAX ( + + col1 ) * COUNT ( * ) / - SUM ( ALL - ( - 64 ) ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
51
NULL

query I rowsort
SELECT + ( + col0 ) + + 72 * + 41 FROM tab2
----
2998
3016
3027

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT + MIN( + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + MIN ( + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + ( - + 88 ) * COUNT( * ) AS col1 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( - + 88 ) * COUNT ( * ) AS col1 FROM tab0
----
-264

query I rowsort
SELECT + col0 * + 53 FROM tab1
----
2703
4505
4823

query II rowsort
SELECT + col0, - col2 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
15
-47
87
-10
97
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - col0, 17 + - 8 + 23 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT 35 * ( - col0 ) + col1 IS NOT NULL
----

query I rowsort
SELECT + ( + 30 ) * - + col2 FROM tab1 AS cor0 WHERE NOT 19 - - col0 IS NOT NULL AND - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + col0 * + - 90 + - ( 9 ) ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT MIN( ALL - ( + 97 ) ) AS col0 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-4826
SELECT MIN ( ALL - ( + 97 ) ) AS col0 FROM tab2
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4828
SELECT * FROM tab0 WHERE NOT + - CAST( - 46 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4828
SELECT * FROM tab0 WHERE NOT + - CAST ( - 46 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col2 FROM tab1 cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT col0 DIV + - col1 + - - col0 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-4831
SELECT col0 / + - col1 + - - col0 FROM tab0 AS cor0
----
0
15
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT - 67 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 67 / col2 AS col2 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL - SUM( ALL col0 ) * + - 23 FROM tab2 cor0
----
4255

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - SUM ( ALL col0 ) * + - 23 FROM tab2 cor0
----
4255

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT 85 AS col1, COUNT( * ) FROM tab0
----
85
3

skipif mysql # not compatible
query II rowsort label-4834
SELECT 85 AS col1, COUNT ( * ) FROM tab0
----
85
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4835
SELECT DISTINCT + AVG ( DISTINCT - - CAST( NULL AS DECIMAL ) ) * + + SUM( ALL + - 81 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT + AVG ( DISTINCT - - CAST ( NULL AS REAL ) ) * + + SUM ( ALL + - 81 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL col2 * + col0 * - - col0 * col2 FROM tab0
----
497025
756900
92217609

query I rowsort
SELECT DISTINCT + col1 * 42 AS col1 FROM tab2
----
2142
2814
3234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4839
SELECT CAST( + col1 AS SIGNED ) DIV + ( + col2 ) + col0 AS col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-4839
SELECT CAST ( + col1 AS INTEGER ) / + ( + col2 ) + col0 AS col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT ALL - col0 DIV - - 32 AS col1 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - col0 / - - 32 AS col1 FROM tab2
----
-1
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <= + 56 + + + 96
----

query I rowsort
SELECT DISTINCT + 63 * + col2 * col1 + - col1 FROM tab0
----
13209
239760
6236

query II rowsort
SELECT ALL 12 + - + col2 + - 27 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
-111
-96
-74
-59
-83
-68

query I rowsort
SELECT ( + 58 ) + - col1 AS col0 FROM tab2
----
-19
-9
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT + 8 AS col2, COUNT( * ) AS col1 FROM tab1 cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-4846
SELECT + 8 AS col2, COUNT ( * ) AS col1 FROM tab1 cor0
----
8
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL CAST( NULL AS SIGNED ) / 54 - - ( + 88 ) + 20 + - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL CAST ( NULL AS INTEGER ) / 54 - - ( + 88 ) + 20 + - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4848
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + 13 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4848
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + 13 AND NULL
----

query II rowsort
SELECT - col1 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NULL <= col0 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT CAST( - 88 AS SIGNED ) - + + col0 FROM tab2 AS cor0
----
-134
-152
-163

skipif mysql # not compatible
query I rowsort label-4851
SELECT CAST ( - 88 AS INTEGER ) - + + col0 FROM tab2 AS cor0
----
-134
-152
-163

query I rowsort
SELECT DISTINCT col2 - - 65 AS col2 FROM tab1
----
124
133
161

query I rowsort
SELECT - col1 + + + 53 AS col1 FROM tab0
----
-28
32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT NULL <> - 2 * + ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL <> - 2 * + ( + 74 )
----
0

query I rowsort
SELECT 8 AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
8
8
8

query I rowsort
SELECT - 68 * + col0 + col2 FROM tab2
----
-3105
-4312
-5042

query I rowsort
SELECT - col1 * col2 + - + col1 FROM tab1 cor0
----
-1358
-300
-3243

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + ( + - col0 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT col0, - col1 * + col0 FROM tab2
----
46
-2346
64
-4928
75
-5025

query II rowsort
SELECT + - col0, + col1 * - col0 AS col1 FROM tab0 cor0
----
-15
-1215
-87
-1827
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + COUNT( * ) * - + 94 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + COUNT ( * ) * - + 94 FROM tab2 AS cor0
----
-282

query I rowsort
SELECT - col2 - - col0 / col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - + col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT ALL + + col2 * 62 FROM tab1 AS cor0
----
3658
4216
5952

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT - 39 DIV - col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 39 / - col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <> - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + col1 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT CAST( NULL AS SIGNED ) / - - 88 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT CAST ( NULL AS INTEGER ) / - - 88 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 14 + - col2 NOT IN ( - 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL IN ( 39 + col0 / - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4872
SELECT - col0 DIV + + 26 + + + CAST( - + 29 AS SIGNED ) + + + 30 FROM tab0
----
-2
-2
1

skipif mysql # not compatible
query I rowsort label-4872
SELECT - col0 / + + 26 + + + CAST ( - + 29 AS INTEGER ) + + + 30 FROM tab0
----
-2
-2
1

query I rowsort
SELECT col1 * + 11 + + col2 FROM tab1
----
114
250
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + ( 77 ) + + 86 * - 88 * + 64 - + col0 * + 58 + 68 col1 FROM tab2 AS cor0
----
-486824
-487842
-488490

query I rowsort
SELECT DISTINCT + + col1 + + + 26 AS col0 FROM tab1 AS cor0
----
31
40
73

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 79 + - col2 col0 FROM tab1
----
-79
-79
-79

query I rowsort
SELECT col2 + - 50 + - + 70 AS col0 FROM tab1 AS cor0
----
-24
-52
-61

query I rowsort
SELECT - - 93 + + 44 AS col0 FROM tab0 AS cor0
----
137
137
137

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + + COUNT( - - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 - - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT + + COUNT ( - - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 - - col0 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) IN ( - col2 / - col1 * - ( - col0 ) )
----

query I rowsort
SELECT ALL col1 + - col1 + - + ( - col2 ) * 61 FROM tab2 AS cor0 WHERE + col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN col1 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - + COUNT( * ) - + MAX( 26 ) FROM tab2 AS cor0 WHERE - col0 * - 55 IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-4885
SELECT - + COUNT ( * ) - + MAX ( 26 ) FROM tab2 AS cor0 WHERE - col0 * - 55 IS NOT NULL
----
-29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 + - 91 + - - col0 * col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - + col2 * + col2 col0 FROM tab1
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL COUNT( ALL 99 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL COUNT ( ALL 99 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT 89 AS col2, + 82 AS col2 FROM tab1 WHERE + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4891
SELECT + 14 AS col1, CAST( - + 68 AS SIGNED ) FROM tab2
----
14
-68
14
-68
14
-68

skipif mysql # not compatible
query II rowsort label-4891
SELECT + 14 AS col1, CAST ( - + 68 AS INTEGER ) FROM tab2
----
14
-68
14
-68
14
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT + CAST( - 26 AS SIGNED ) FROM tab2
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-4892
SELECT + CAST ( - 26 AS INTEGER ) FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL ( MAX( - - 93 ) ) - + - 71 FROM tab0
----
164

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL ( MAX ( - - 93 ) ) - + - 71 FROM tab0
----
164

query II rowsort
SELECT DISTINCT 59, 23 AS col1 FROM tab2
----
59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - 26 col1 FROM tab2
----
23
-26
40
-26
58
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4897
SELECT ALL ( + 66 ) AS col2, + col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL ( + 66 ) AS col2, + col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
66
NULL
66
NULL
66
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + MAX( + - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4899
SELECT DISTINCT + MAX ( + - col1 ) col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - col0 AS col0, + 22 FROM tab1 AS cor0
----
-51
22
-85
22
-91
22

query I rowsort
SELECT DISTINCT - 70 * + col2 FROM tab0 AS cor0
----
-3290
-6930
-700

query I rowsort
SELECT - + 69 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-69
-69
-69

query I rowsort
SELECT ALL - ( + col0 ) * + col2 + - col1 * - + ( - col0 ) FROM tab2 AS cor0
----
-3404
-7488
-9375

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 + - 62 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT + col0 + + col2 DIV - + col0 FROM tab1 WHERE NOT + 10 IS NULL
----
50
85
91

skipif mysql # not compatible
query I rowsort label-4905
SELECT + col0 + + col2 / - + col0 FROM tab1 WHERE NOT + 10 IS NULL
----
50
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + SUM( ( 44 ) ) AS col2 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-4906
SELECT + SUM ( ( 44 ) ) AS col2 FROM tab1
----
132

query I rowsort
SELECT ALL + + 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + col2 * 70 + - 35 + + col2 AS col2 FROM tab0 AS cor0
----
3302
675
6994

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT - col1 DIV - - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4909
SELECT - col1 / - - col1 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL ( + col2 ) + 72 AS col0, ( + col1 ) * - col0 + + - col0 - + 6 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - 54 * + + col1 FROM tab2 cor0
----
-2731
-3560
-4118

query I rowsort
SELECT ALL + ( - 60 ) * + col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

query I rowsort
SELECT - - col2 AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col0 * ( col1 ) AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT - - col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT DISTINCT + MAX( - col2 ) FROM tab0 WHERE NOT + 16 = - + ( - - 46 ) * - col1 + col1 + CAST( NULL AS SIGNED ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + MAX ( - col2 ) FROM tab0 WHERE NOT + 16 = - + ( - - 46 ) * - col1 + col1 + CAST ( NULL AS INTEGER ) - 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT + 26 DIV - col0 * - 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT + 26 / - col0 * - 96 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - SUM( ALL col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4919
SELECT - SUM ( ALL col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT 63 + + - col1 AS col0 FROM tab0
----
-18
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 90 IN ( + col1, - col1 - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 * + ( - + col1 ) + col2 col2 FROM tab1 cor0
----
-1178
-396
-4209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT + 73 + + 10 * - - CAST( NULL AS SIGNED ) * MIN( ALL - 19 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT + 73 + + 10 * - - CAST ( NULL AS INTEGER ) * MIN ( ALL - 19 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4925
SELECT - - col1 + + - CAST( NULL AS DECIMAL ) - + 81 + - col0 * col1 * - col0 * ( - ( col0 ) ) / - ( col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT - - col1 + + - CAST ( NULL AS REAL ) - + 81 + - col0 * col1 * - col0 * ( - ( col0 ) ) / - ( col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT CAST( NULL AS SIGNED ) + ( col1 ) + - 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT CAST ( NULL AS INTEGER ) + ( col1 ) + - 66 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - COUNT( * ) * - MAX( - 38 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-4927
SELECT - COUNT ( * ) * - MAX ( - 38 ) FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4928
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( + - CAST( 78 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4928
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( + - CAST ( 78 AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + MIN( - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT + MIN ( - - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col1 * - + col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + 3 * - - ( + COUNT( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE ( - ( - ( - col0 ) ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 3 * - - ( + COUNT ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE ( - ( - ( - col0 ) ) ) IS NULL
----
0

query I rowsort
SELECT + col0 - + 30 FROM tab1 AS cor0
----
21
55
61

query II rowsort
SELECT 70 - + 52 AS col1, - col1 FROM tab1 AS cor0
----
18
-14
18
-47
18
-5

query I rowsort
SELECT DISTINCT 30 * 3 + - + 58 + + col1 FROM tab2 AS cor0
----
109
83
99

query I rowsort
SELECT DISTINCT - + 41 * - col0 - + - 79 + - + col2 AS col0 FROM tab1 AS cor0
----
2074
3505
3742

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL COUNT( * ) - 90 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL COUNT ( * ) - 90 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT + col2 - + - 96 AS col1 FROM tab1 cor0
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT + MAX( col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + MAX ( col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT col0 * + + 46 IN ( col0 + - - 24, col2 )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + + col0 FROM tab1 WHERE NOT 33 + 88 <= - + col2
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT col0 * - 23 FROM tab0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4943
SELECT * FROM tab1 WHERE NOT - CAST( - col1 AS SIGNED ) + 6 NOT BETWEEN + col2 - + 22 AND - ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-4943
SELECT * FROM tab1 WHERE NOT - CAST ( - col1 AS INTEGER ) + 6 NOT BETWEEN + col2 - + 22 AND - ( + col0 )
----

query I rowsort
SELECT ALL 36 * col2 FROM tab2
----
1440
2088
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + + col2 - col0 AS col1 FROM tab2 WHERE NOT + 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - 60 col1 FROM tab2
----
1380
2400
3480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 > 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + - 57 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 40 * - 57 AS col2 FROM tab2 AS cor0
----
-2280
-2280
-2280

query I rowsort
SELECT - col2 * - col1 + + col2 AS col0 FROM tab1 cor0
----
1440
3264
354

query I rowsort
SELECT + 55 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab0 AS cor0 WHERE NOT - ( 15 ) * - + 46 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col1, 56 AS col2 FROM tab1 AS cor0
----
14
56
47
56
5
56

query I rowsort
SELECT DISTINCT + - col2 + + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT - + MAX( DISTINCT + - ( + - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4958
SELECT - + MAX ( DISTINCT + - ( + - col1 ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT - col0, col1 * - col1 AS col0 FROM tab0 AS cor0
----
-15
-6561
-87
-441
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT COUNT( * ) + - MAX( - col2 ) AS col0 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT COUNT ( * ) + - MAX ( - col2 ) AS col0 FROM tab2 cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT 35 / - 73 * col0 + col0 * - 55 - - col2 FROM tab1 WHERE + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col0 + + col2 * + col1
----

query I rowsort
SELECT DISTINCT + col1 + + 94 AS col0 FROM tab1
----
108
141
99

query I rowsort
SELECT col1 * - 86 FROM tab1
----
-1204
-4042
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL - 2 + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 2 + COUNT ( * ) FROM tab0
----
1

query II rowsort
SELECT + - 57 * + col2 + 23 + + ( - + col2 ) AS col1, col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3399
85
-3921
91
-5545
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + + SUM( - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4968
SELECT + + SUM ( - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - - 61 - 58 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT 13 - + + 37 + - col0 AS col0 FROM tab1
----
-109
-115
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT DISTINCT + 80 - + - 88 DIV col0 * 47 FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + 80 - + - 88 / col0 * 47 FROM tab2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT 61 + + COUNT( * ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4972
SELECT 61 + + COUNT ( * ) FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL ( - COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL ( - COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + + 53 + col1 AS col1 FROM tab1 cor0
----
100
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT - CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT - CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col0 AS col0, 36 FROM tab2 AS cor0
----
46
36
64
36
75
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT - + ( + CAST( + MAX( col1 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4977
SELECT - + ( + CAST ( + MAX ( col1 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT + 91 + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 + - col2 DIV + + col1 * 49 ) > col1
----
190

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 91 + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 + - col2 / + + col1 * 49 ) > col1
----
190

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 66 AS col1 FROM tab2
----
-1518
-2640
-3828

query II rowsort
SELECT DISTINCT col1 * + 13 AS col0, - col2 AS col0 FROM tab2
----
1001
-40
663
-23
871
-58

query I rowsort
SELECT + col2 * - col2 + ( + - col1 ) * + - 96 FROM tab0 cor0
----
-9705
1916
5567

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT ALL - CAST( + 64 AS SIGNED ) AS col0 FROM tab1 cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - CAST ( + 64 AS INTEGER ) AS col0 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT ( 0 ) * col2 + + 95 FROM tab0 AS cor0
----
95
95
95

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - SUM( ALL - 38 ) AS col1 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - SUM ( ALL - 38 ) AS col1 FROM tab1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 21 * 44 + + 46 * + 13 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1522

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 / + 46 + - - col0 + - col2 / 69 * col1 IS NULL
----

query I rowsort
SELECT ALL 82 AS col0 FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL + - COUNT( * ) + + - 18 - - 59 AS col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + - COUNT ( * ) + + - 18 - - 59 AS col0 FROM tab2 AS cor0
----
38

query I rowsort
SELECT - 2 * ( 91 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4995
SELECT + CAST( NULL AS DECIMAL ) * + MAX( ALL + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT + CAST ( NULL AS REAL ) * + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT 32 * COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4997
SELECT 32 * COUNT ( * ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT + col1 * - col1 * + 89 FROM tab2 AS cor0
----
-231489
-399521
-527681

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + 39 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - 47 NOT IN ( + - 7 )
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - 47 NOT IN ( + - 7 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - ( col1 ) - - + col2 - + col1 col2 FROM tab1
----
51
68
85
49
91
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT 39 * + COUNT( * ) col0 FROM tab2
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5002
SELECT 39 * + COUNT ( * ) col0 FROM tab2
----
117

query I rowsort
SELECT ALL 22 * 1 / col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT ( - - ( CAST( NULL AS SIGNED ) ) ) * - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT ( - - ( CAST ( NULL AS INTEGER ) ) ) * - - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 / - col1 > + col2 + - 38 - ( + col1 )
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT 33 * - 55 FROM tab1 AS cor0
----
-1815

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - + ( ( + - MIN( ALL - col1 ) ) ) + + + 72 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5007
SELECT - + ( ( + - MIN ( ALL - col1 ) ) ) + + + 72 FROM tab2 AS cor0
----
-5

query II rowsort
SELECT ALL - 87 - + col2 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-110
46
-127
64
-145
75

query I rowsort
SELECT ALL - col1 * - + ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - ( + - MIN( ALL 99 ) ) - + COUNT( * ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - ( + - MIN ( ALL 99 ) ) - + COUNT ( * ) FROM tab1 cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5012
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5012
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + + col1 ) * - - 26 AS col0 FROM tab2 AS cor0
----
1326
1742
2002

query I rowsort
SELECT DISTINCT - + 83 AS col2 FROM tab1 AS cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 * - 15 col0 FROM tab2 AS cor0
----
1440
1440
1440

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 * + + col2 + + - 36 - + col2 + + + col2 * - col2 * - col2 * - 28 col0 FROM tab2 AS cor0
----
-1793156
-341356
-5464796

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / - col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 99 - - col2 + - + 57 IS NOT NULL
----

query I rowsort
SELECT ALL + + 81 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1614
-6546
16

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - 66
----

query I rowsort
SELECT ALL - 46 AS col1 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL + 54 * SUM( col0 ) FROM tab1 AS cor0
----
12258

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + 54 * SUM ( col0 ) FROM tab1 AS cor0
----
12258

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT ALL + col1 DIV - + col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + col1 / - + col1 AS col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT col2 AS col1, 93 + + col1 - - col1 FROM tab2
----
23
195
40
247
58
227

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT ALL - 9 DIV - 75 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - 9 / - 75 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col1 AS col1, col2 + col2 FROM tab0
----
1
198
21
20
81
94

query II rowsort
SELECT + + 62, + col0 AS col2 FROM tab1 AS cor0
----
62
51
62
85
62
91

query II rowsort
SELECT DISTINCT - - 5 AS col2, 64 FROM tab2 AS cor0
----
5
64

query I rowsort
SELECT ALL + - col1 * 20 AS col1 FROM tab1 AS cor0
----
-100
-280
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT - col1 * CAST( + col2 AS SIGNED ) - - - col2 FROM tab1 cor0
----
-1440
-3264
-354

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - col1 * CAST ( + col2 AS INTEGER ) - - - col2 FROM tab1 cor0
----
-1440
-3264
-354

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 93 NOT BETWEEN + + col2 / - - col1 + + - 85 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT CAST( - 58 AS SIGNED ) AS col1 FROM tab1
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-5033
SELECT CAST ( - 58 AS INTEGER ) AS col1 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT + 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT DISTINCT MIN( - CAST( col1 AS SIGNED ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT MIN ( - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL col1 + col1 + + col0 AS col0 FROM tab1
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - MIN( - + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5037
SELECT - MIN ( - + col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL COUNT( DISTINCT + col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5038
SELECT ALL COUNT ( DISTINCT + col1 ) col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 76 + 83 * - + 0 FROM tab1
----
76

query I rowsort
SELECT col2 * + + col0 + + - col0 AS col1 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT DISTINCT + 3 + 59 AS col2 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5042
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col2 / ( - - 65 ) + 76 * CAST( NULL AS SIGNED ) < - 94
----

skipif mysql # not compatible
query III rowsort label-5042
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col2 / ( - - 65 ) + 76 * CAST ( NULL AS INTEGER ) < - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT - 49 + - 74 + - 72 + - ( - COUNT( - 81 ) ) AS col1 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - 49 + - 74 + - 72 + - ( - COUNT ( - 81 ) ) AS col1 FROM tab2 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT CAST( NULL AS SIGNED ) + + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT CAST ( NULL AS INTEGER ) + + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 - + col2 col1 FROM tab1
----
-104
-67
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT - COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5046
SELECT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
-3
3

query II rowsort
SELECT ALL 37 AS col1, + 79 * - col1 AS col1 FROM tab1
----
37
-1106
37
-3713
37
-395

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - 61 * col1
----

query I rowsort
SELECT DISTINCT 61 + 60 AS col1 FROM tab2
----
121

query I rowsort
SELECT + ( 23 ) AS col0 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL + COUNT( ALL col1 ) + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + COUNT ( ALL col1 ) + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * + col1 + - 20 ) = NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 * + col1 FROM tab1 AS cor0
----
-200951
-2066
-9900

query I rowsort
SELECT DISTINCT - col2 + 49 + + 5 FROM tab1 cor0
----
-14
-42
-5

query I rowsort
SELECT DISTINCT 44 * + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3564
44
924

query I rowsort
SELECT DISTINCT + col0 * col0 + - 79 - - col0 AS col2 FROM tab2 cor0
----
2083
4081
5621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - col2 + + - col2 col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 2 col1, col2 - 41 FROM tab0
----
2
-31
2
58
2
6

query I rowsort
SELECT col2 * + - ( col0 ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT col1 * + 49 AS col2 FROM tab1
----
2303
245
686

query I rowsort
SELECT DISTINCT + + 47 FROM tab0 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL - COUNT( DISTINCT 55 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - COUNT ( DISTINCT 55 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT + + COUNT( * ) * 98 + - COUNT( * ) AS col1 FROM tab1 cor0
----
291

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT + + COUNT ( * ) * 98 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL - COUNT( * ) * 92 FROM tab2 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - COUNT ( * ) * 92 FROM tab2 cor0
----
-276

query I rowsort
SELECT - col1 * - + ( + - col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - SUM( ALL - - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5067
SELECT - SUM ( ALL - - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT 98 * - + 30 * col0 FROM tab1 AS cor0
----
-149940
-249900
-267540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5069
SELECT + CAST( NULL AS SIGNED ) col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5069
SELECT + CAST ( NULL AS INTEGER ) col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT ALL COUNT( * ) AS col2, - 88 FROM tab2 AS cor0
----
3
-88

skipif mysql # not compatible
query II rowsort label-5070
SELECT ALL COUNT ( * ) AS col2, - 88 FROM tab2 AS cor0
----
3
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col1 FROM tab2
----
14
14
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT + MAX( + 81 ) AS col0, COUNT( * ) FROM tab1
----
81
3

skipif mysql # not compatible
query II rowsort label-5072
SELECT + MAX ( + 81 ) AS col0, COUNT ( * ) FROM tab1
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT - - 20 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - 20 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT ALL COUNT( * ) DIV 3 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL COUNT ( * ) / 3 AS col1 FROM tab1
----
1

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + - col1 = + col2 + + col1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + ( - - 90 ) DIV + 53 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5076
SELECT + ( - - 90 ) / + 53 AS col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 92 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT ALL - + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL - + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5079
SELECT DISTINCT col2, + col2 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5079
SELECT DISTINCT col2, + col2 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - 9 + - - ( + + 30 ) FROM tab2, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL SUM( + - 74 ) col1 FROM tab1
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5081
SELECT ALL SUM ( + - 74 ) col1 FROM tab1
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT ALL + - col1 DIV ( + col1 ) + col2 * - + col2 * - col1 FROM tab1 AS cor0
----
129023
17404
217327

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + - col1 / ( + col1 ) + col2 * - + col2 * - col1 FROM tab1 AS cor0
----
129023
17404
217327

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5084
SELECT - 11 AS col0, - CAST( col2 AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-11
NULL
-11
NULL
-11
NULL

skipif mysql # not compatible
query II rowsort label-5084
SELECT - 11 AS col0, - CAST ( col2 AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-11
NULL
-11
NULL
-11
NULL

query I rowsort
SELECT ALL col1 * + - col1 / + 30 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT DISTINCT + col2 - - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5086
SELECT DISTINCT + col2 - - - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 - + 83 AS col2 FROM tab0 cor0
----
-2
-62
-82

query I rowsort
SELECT 54 * - 99 * 77 - + ( col0 ) AS col2 FROM tab0
----
-411657
-411729
-411739

query I rowsort
SELECT ALL - col1 - col1 + + - col0 AS col1 FROM tab1
----
-185
-79
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT + MIN( DISTINCT + - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + MIN ( DISTINCT + - col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-5091
SELECT 31 + - 57 + - col0 - ( + col1 ) * + + ( - col2 ) * + - col0 * - 70 AS col0, - col1 - + + col2 - + col2 + col2 - + col2 DIV - col2 FROM tab1 AS cor0
----
1755139
-63
20358403
-114
4798003
-109

skipif mysql # not compatible
query II rowsort label-5091
SELECT 31 + - 57 + - col0 - ( + col1 ) * + + ( - col2 ) * + - col0 * - 70 AS col0, - col1 - + + col2 - + col2 + col2 - + col2 / - col2 FROM tab1 AS cor0
----
1755139
-63
20358403
-114
4798003
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT MIN( + 53 ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-5092
SELECT MIN ( + 53 ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
53
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT - 25 + - COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-34

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - 25 + - COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT col1 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT col1 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1 + + 37
----
0

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1 + + 37
----
0

query I rowsort
SELECT - col2 * - - 91 FROM tab2 AS cor0
----
-2093
-3640
-5278

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 * 31 * + - 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 14 * + - col1 FROM tab1 cor0
----
-196
-658
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT MAX( DISTINCT 58 ) AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT MAX ( DISTINCT 58 ) AS col0 FROM tab0 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= 40 * 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT MIN( DISTINCT - 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5103
SELECT MIN ( DISTINCT - 66 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE - 3 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE - 3 IS NOT NULL
----
3

query II rowsort
SELECT ALL col2, + 28 FROM tab2
----
23
28
40
28
58
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT DISTINCT + COUNT( * ) AS col1, 82 col2 FROM tab2
----
3
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5106
SELECT DISTINCT + COUNT ( * ) AS col1, 82 col2 FROM tab2
----
3
82

query I rowsort
SELECT + 84 + + 83 FROM tab2
----
167
167
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT MIN( + 19 ) AS col2 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5108
SELECT MIN ( + 19 ) AS col2 FROM tab0 AS cor0
----
19

query II rowsort
SELECT + col1, - 11 AS col2 FROM tab1 AS cor0
----
14
-11
47
-11
5
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT DISTINCT col1 + + - col2 + - col0 DIV + + col0 col0 FROM tab1
----
-22
-55
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5112
SELECT DISTINCT col1 + + - col2 + - col0 / + + col0 col0 FROM tab1
----
-22
-55
-83

query I rowsort
SELECT ALL + col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - - col0 + ( + + col2 ) FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT 25 + - + 79 AS col2 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL >= - ( + 70 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 50
----

query I rowsort
SELECT + 98 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
98
98
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col0 + 49 / + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT MIN( ALL 4 ) - - COUNT( * ) * - 70 FROM tab1
----
-206

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT MIN ( ALL 4 ) - - COUNT ( * ) * - 70 FROM tab1
----
-206

query I rowsort
SELECT DISTINCT - 24 * col0 FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT col2 * + 75 FROM tab1
----
4425
5100
7200

query I rowsort
SELECT DISTINCT 8 * + 49 AS col1 FROM tab0
----
392

query II rowsort
SELECT col1 AS col0, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - 31 * - col0 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 20 * + col2 + - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL + MAX( ALL col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5127
SELECT ALL + MAX ( ALL col2 ) col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - ( + ( - - col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT ALL col0 DIV + col2 col0 FROM tab2 AS cor0 WHERE NOT 11 + - 88 IS NULL
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5129
SELECT ALL col0 / + col2 col0 FROM tab2 AS cor0 WHERE NOT 11 + - 88 IS NULL
----
1
1
2

query I rowsort
SELECT + col0 * + 80 AS col1 FROM tab0 cor0
----
1200
6960
7760

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 * - 21 IS NOT NULL
----

query I rowsort
SELECT - + ( - 53 ) AS col0 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT - + col2 * + 5 AS col1 FROM tab1 AS cor0
----
-295
-340
-480

query I rowsort
SELECT col0 * - - 18 AS col1 FROM tab1
----
1530
1638
918

query II rowsort
SELECT col2 AS col0, + col0 * col2 FROM tab2
----
23
1058
40
2560
58
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col0 FROM tab1 WHERE NOT - col0 NOT BETWEEN 83 AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5138
SELECT CAST( NULL AS SIGNED ) AS col0, - 82 FROM tab1
----
NULL
-82
NULL
-82
NULL
-82

skipif mysql # not compatible
query II rowsort label-5138
SELECT CAST ( NULL AS INTEGER ) AS col0, - 82 FROM tab1
----
NULL
-82
NULL
-82
NULL
-82

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE - 43 / col0 / - col1 * + col2 NOT BETWEEN ( NULL ) AND - col2 / + + col2
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + SUM( + - col1 ) + COUNT( - 36 ) AS col2 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5140
SELECT + SUM ( + - col1 ) + COUNT ( - 36 ) AS col2 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT ALL 32 * + 71 AS col2 FROM tab1
----
2272
2272
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT MIN( + 29 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
29

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT MIN ( + 29 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL 79 * 69 * 43 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
703179

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 79 * 69 * 43 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
703179

query I rowsort
SELECT ALL - col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT ALL + col1 - + col2 + + 98 FROM tab0 AS cor0
----
0
109
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5146
SELECT ALL + - CAST( - 69 AS SIGNED ) + + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + - CAST ( - 69 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
60

query I rowsort
SELECT - ( - col2 ) * col1 - col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT DISTINCT col1 - - - 31 FROM tab0
----
-10
-30
50

query I rowsort
SELECT - 80 + - col1 AS col1 FROM tab0
----
-101
-161
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * + col2 * - col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL BETWEEN col1 AND NULL )
----

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 WHERE NOT + + 44 - + - col2 > - 51 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5153
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) / + 5 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) / + 5 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( + 15 ) AS col2 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT - 44 * - + 49 AS col1 FROM tab2 AS cor0
----
2156
2156
2156

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col2 - - + col0 + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5157
SELECT - - ( - CAST( NULL AS DECIMAL ) ) / + + 59 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT - - ( - CAST ( NULL AS REAL ) ) / + + 59 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - + + col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 15 / + col1 = - col0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 11 + + ( - 14 ) FROM tab1 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT - 82 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-82
1
-82
21
-82
81

query I rowsort
SELECT + + ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 + 90 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - + col1 col0 FROM tab1 AS cor0 WHERE NOT col0 + 40 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL CAST( + MAX( ALL - col0 ) AS SIGNED ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL CAST ( + MAX ( ALL - col0 ) AS INTEGER ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT - COUNT( * ) + + - 96 DIV + + COUNT( * ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-5167
SELECT - COUNT ( * ) + + - 96 / + + COUNT ( * ) FROM tab0
----
-35

query I rowsort
SELECT DISTINCT 57 + + col1 + - - col1 * - 89 FROM tab0
----
-1791
-31
-7071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - COUNT( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5170
SELECT - COUNT ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5171
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 3 AND - 33 * ( col2 ) * + - col2 - ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5171
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 3 AND - 33 * ( col2 ) * + - col2 - ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT - col0 + col2 - col0 + - ( - 8 ) + - CAST( - 58 AS SIGNED ) + 50 / - + ( - 4 ) - + col0 + - + col1 * - 43 * ( - col1 ) + - ( - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL = + col0 / - col2
----

skipif mysql # not compatible
query I rowsort label-5172
SELECT - col0 + col2 - col0 + - ( - 8 ) + - CAST ( - 58 AS INTEGER ) + 50 / - + ( - 4 ) - + col0 + - + col1 * - 43 * ( - col1 ) + - ( - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL = + col0 / - col2
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE 15 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT MAX( ALL + + 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT MAX ( ALL + + 35 ) FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * - - col0 + + 26 col1 FROM tab2 AS cor0
----
-2182
-3046
-3574

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL - + 90 - + 1 + col0 AS col1 FROM tab0 cor0
----
-4
-76
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT DISTINCT + - col0 DIV + ( 87 ) + + + 23 DIV + col0 FROM tab0 cor0
----
-1
1

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + - col0 / + ( 87 ) + + + 23 / + col0 FROM tab0 cor0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL + - ( + 33 ) * + - MAX( - + col1 ) FROM tab2 AS cor0 WHERE + 79 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + - ( + 33 ) * + - MAX ( - + col1 ) FROM tab2 AS cor0 WHERE + 79 IS NULL
----
NULL

query II rowsort
SELECT col2 * + col1 AS col1, col2 FROM tab2
----
1173
23
3080
40
3886
58

query II rowsort
SELECT DISTINCT + col1, + col2 * col0 AS col0 FROM tab2
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL - ( + 37 ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - ( + 37 ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL + MAX( col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + MAX ( col2 ) AS col1 FROM tab0 cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * - col1 > + - col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5186
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5187
SELECT ALL + 38 * - col2 + - - 52 * + 36 / - ( + col2 ) + - - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT ALL + 38 * - col2 + - - 52 * + 36 / - ( + col2 ) + - - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 24 + + col2 * - 60 AS col1 FROM tab1 AS cor0
----
-3516
-4056
-5736

query I rowsort
SELECT + col1 * + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-531441
-9261

query I rowsort
SELECT DISTINCT + col1 * - ( - col1 ) FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL - - col0 * - col1 + + CAST( NULL AS SIGNED ) * + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - - col0 * - col1 + + CAST ( NULL AS INTEGER ) * + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 42
----

query II rowsort
SELECT DISTINCT 11 + + ( + - col1 ), + col1 FROM tab2 cor0 WHERE NOT ( - col1 * - + col2 + 79 * - 49 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT MAX( ALL 11 ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5194
SELECT MAX ( ALL 11 ) AS col2 FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab1 WHERE - 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT ALL - col1 DIV + - col1 + - col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - col1 / + - col1 + - col0 FROM tab0
----
-14
-86
-96

query II rowsort
SELECT DISTINCT 90, + col0 + + col0 AS col0 FROM tab1
----
90
102
90
170
90
182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL 4 + MAX( DISTINCT - 79 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL 4 + MAX ( DISTINCT - 79 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + col1 + - 20 AS col1 FROM tab1 AS cor0
----
-15
-6
27

query I rowsort
SELECT DISTINCT + col0 - + + ( + 96 ) AS col0 FROM tab0 AS cor0
----
-81
-9
1

query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE - ( col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE - ( col2 ) <= NULL
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT 47 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT - CAST( + 50 AS SIGNED ) col1 FROM tab0
----
-50
-50
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT - CAST ( + 50 AS INTEGER ) col1 FROM tab0
----
-50
-50
-50

query I rowsort
SELECT ALL + 31 * 22 AS col1 FROM tab1
----
682
682
682

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT 6 DIV col2 - - 27 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-5208
SELECT 6 / col2 - - 27 FROM tab1
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - COUNT( + col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - COUNT ( + col2 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT col1 * + 58 - + 34 AS col1 FROM tab0
----
1184
24
4664

query I rowsort
SELECT 34 + + col0 FROM tab1
----
119
125
85

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT ALL ( col2 ) * - CAST( - col1 * col2 AS SIGNED ) + col2 FROM tab1
----
129120
17464
217396

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL ( col2 ) * - CAST ( - col1 * col2 AS INTEGER ) + col2 FROM tab1
----
129120
17464
217396

query I rowsort
SELECT ALL + col1 + col2 FROM tab1 WHERE - 71 NOT BETWEEN 2 * col2 + 51 AND ( - 15 )
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT MAX( - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT MAX ( - 32 ) FROM tab1
----
-32

query I rowsort
SELECT - 31 AS col2 FROM tab0 WHERE NULL >= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col0 + + 69 * 59 <= 13 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT COUNT( - 87 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5219
SELECT COUNT ( - 87 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT COUNT( * ) + ( + 12 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5220
SELECT COUNT ( * ) + ( + 12 ) FROM tab2
----
15

query III rowsort
SELECT * FROM tab2 WHERE - 31 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT + 24 AS col1 FROM tab1 WHERE NOT CAST( + col0 AS SIGNED ) + CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + 24 AS col1 FROM tab1 WHERE NOT CAST ( + col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT COUNT( DISTINCT + 45 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5223
SELECT COUNT ( DISTINCT + 45 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT DISTINCT ( - ( - MAX( DISTINCT col2 ) ) ) + + SUM( col2 + + col2 * - col0 ) * COUNT( * ) FROM tab1 WHERE NOT CAST( + 8 AS SIGNED ) - 53 IS NULL
----
-47532

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT ( - ( - MAX ( DISTINCT col2 ) ) ) + + SUM ( col2 + + col2 * - col0 ) * COUNT ( * ) FROM tab1 WHERE NOT CAST ( + 8 AS INTEGER ) - 53 IS NULL
----
-47532

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ( COUNT( * ) ) * ( COUNT( * ) ) + 64 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-5225
SELECT ( COUNT ( * ) ) * ( COUNT ( * ) ) + 64 FROM tab1
----
73

query I rowsort
SELECT col0 * ( 74 ) + col0 FROM tab2
----
3450
4800
5625

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT ( - 20 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT SUM( DISTINCT ( + col2 ) ) * 6 FROM tab2 AS cor0
----
726

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT SUM ( DISTINCT ( + col2 ) ) * 6 FROM tab2 AS cor0
----
726

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 19 col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5232
SELECT * FROM tab1 AS cor0 WHERE NOT 81 BETWEEN - CAST( NULL AS SIGNED ) / col2 AND ( + 13 ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5232
SELECT * FROM tab1 AS cor0 WHERE NOT 81 BETWEEN - CAST ( NULL AS INTEGER ) / col2 AND ( + 13 ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * col0 BETWEEN + col2 * 42 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 38 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 38 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL MIN( + 56 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
56

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL MIN ( + 56 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
56

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - 36 FROM tab1 WHERE 11 > ( col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col2 IN ( + 94 )
----

query I rowsort
SELECT ALL + + col0 + 22 FROM tab2 AS cor0
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + 58 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 ) AND - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + MIN( DISTINCT col2 ) + 40 * 65 FROM tab2 AS cor0
----
2623

skipif mysql # not compatible
query I rowsort label-5245
SELECT + MIN ( DISTINCT col2 ) + 40 * 65 FROM tab2 AS cor0
----
2623

query I rowsort
SELECT - 34 + - col1 AS col2 FROM tab2 AS cor0
----
-101
-111
-85

query I rowsort
SELECT 91 + 13 FROM tab0 cor0
----
104
104
104

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT 7 DIV - col1 AS col1 FROM tab0 AS cor0
----
-7
0

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT 7 / - col1 AS col1 FROM tab0 AS cor0
----
-7
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5250
SELECT DISTINCT - 16 DIV SUM( ALL col2 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - 16 / SUM ( ALL col2 ) AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT 49 NOT BETWEEN NULL AND ( + col1 + col1 / - col0 )
----

query I rowsort
SELECT col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT 1 + + + 94 DIV col0 AS col0 FROM tab0
----
1
2
7

skipif mysql # not compatible
query I rowsort label-5253
SELECT 1 + + + 94 / col0 AS col0 FROM tab0
----
1
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE 51 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE 51 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT SUM( DISTINCT + - ( - col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT SUM ( DISTINCT + - ( - col0 ) ) FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 28 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 45 + col2 <= NULL
----

query I rowsort
SELECT ( + 44 ) AS col1 FROM tab2
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT + col0 * - - CAST( NULL AS SIGNED ) * + 26 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT + col0 * - - CAST ( NULL AS INTEGER ) * + 26 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT DISTINCT - ( 78 ) + - col0 DIV - col1 AS col2 FROM tab1
----
-61
-75
-77

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - ( 78 ) + - col0 / - col1 AS col2 FROM tab1
----
-61
-75
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT - ( + + col1 ) DIV col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5261
SELECT - ( + + col1 ) / col2 AS col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT 63 * - - col0 * + 43 FROM tab1 AS cor0
----
138159
230265
246519

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col2 - col2 NOT BETWEEN ( col2 ) AND NULL
----
14
47
5

query I rowsort
SELECT col0 * + col1 FROM tab2 AS cor0 WHERE + col2 * - col2 IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5265
SELECT ALL CAST( SUM( CAST( NULL AS DECIMAL ) ) AS SIGNED ) + 39 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - ( 52 ) >= CAST( NULL AS SIGNED ) * - col1 AND NOT ( + col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) / - 58 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL CAST ( SUM ( CAST ( NULL AS REAL ) ) AS INTEGER ) + 39 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - ( 52 ) >= CAST ( NULL AS INTEGER ) * - col1 AND NOT ( + col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) / - 58 AND NULL
----
NULL

query I rowsort
SELECT - col0 * - - col2 + - col0 + 55 * + col1 FROM tab2
----
-740
1611
1701

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT COUNT( DISTINCT - - 44 ) DIV + ( 22 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT COUNT ( DISTINCT - - 44 ) / + ( 22 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 20 * - - 34 FROM tab2 AS cor0
----
-680
-680
-680

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE + col1 * - + 20 > + 93
----

query II rowsort
SELECT DISTINCT col1 AS col2, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0 AS cor0 WHERE NOT 58 + + - col2 <> ( col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE col2 + + col0 > ( 2 / 32 )
----
46
64
75

query I rowsort
SELECT + 87 * + 43 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3741
3741
3741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col1 FROM tab0 AS cor0 WHERE NOT 49 IS NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - SUM( - + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5276
SELECT - SUM ( - + col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + 84 DIV + - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5277
SELECT + 84 / + - col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * - 1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL COUNT( DISTINCT + - 75 ) * - SUM( ALL - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL COUNT ( DISTINCT + - 75 ) * - SUM ( ALL - col2 ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 73 - + + 92 + - col0 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5281
SELECT + ( + 39 ) AS col0, CAST( NULL AS SIGNED ) * - + ( col2 ) col2 FROM tab2
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5281
SELECT + ( + 39 ) AS col0, CAST ( NULL AS INTEGER ) * - + ( col2 ) col2 FROM tab2
----
39
NULL
39
NULL
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT CAST( - - 82 AS SIGNED ) AS col0 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5282
SELECT CAST ( - - 82 AS INTEGER ) AS col0 FROM tab0
----
82
82
82

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL + + col1 DIV 39 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + + col1 / 39 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
0
0
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 93 + + 84 AS col2 FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - - MIN( ALL 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - - MIN ( ALL 72 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT col1 * ( - col1 ) + - 66 FROM tab2
----
-2667
-4555
-5995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + + 41 + + col0 * + 45 + - col2 FROM tab0 AS cor0
----
3949
4307
4766

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <> - col1
----

query II rowsort
SELECT - col2 AS col0, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5293
SELECT DISTINCT + - COUNT( ALL + 52 ) - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + - COUNT ( ALL + 52 ) - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + col0 AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ( + 84 ) * COUNT( * ) AS col2 FROM tab2 cor0
----
252

skipif mysql # not compatible
query I rowsort label-5295
SELECT ( + 84 ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
252

query I rowsort
SELECT DISTINCT col0 + col1 * - + col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT - + MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT - + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 63 + + col0 + + + 80 + col0 AS col1 FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT - col1 DIV 22 - 4 col0 FROM tab1
----
-4
-4
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5299
SELECT - col1 / 22 - 4 col0 FROM tab1
----
-4
-4
-6

query I rowsort
SELECT DISTINCT - ( - 68 ) FROM tab2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT DISTINCT col2 AS col1, CAST( col0 AS SIGNED ) FROM tab1
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-5301
SELECT DISTINCT col2 AS col1, CAST ( col0 AS INTEGER ) FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - - col0 * + col2 + col0 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5303
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + CAST( NULL AS DECIMAL ) ) BETWEEN + + col0 * - col0 * 70 AND - 22
----

skipif mysql # not compatible
query III rowsort label-5303
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + CAST ( NULL AS REAL ) ) BETWEEN + + col0 * - col0 * 70 AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT + MAX( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL <= + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + MAX ( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL <= + 82
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT 74 * MAX( DISTINCT col0 ) AS col0 FROM tab0
----
7178

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT 74 * MAX ( DISTINCT col0 ) AS col0 FROM tab0
----
7178

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL + col0 DIV col1 + - col2 AS col1 FROM tab1 AS cor0
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + col0 / col1 + - col2 AS col1 FROM tab1 AS cor0
----
-42
-67
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + - col1 + + + 52 col2 FROM tab1 AS cor0
----
20
53
62

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col1 NOT IN ( col1 )
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5310
SELECT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - - 63 * + 3 + col2 FROM tab2 AS cor0
----
12136
14233
8717

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 3 > - col2 * - col0
----

query II rowsort
SELECT + col0 AS col1, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT - SUM( DISTINCT + 39 ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - SUM ( DISTINCT + 39 ) AS col0 FROM tab0
----
-39

query I rowsort
SELECT + col0 + - + 6 - col2 * - col2 FROM tab2
----
1658
3433
569

query II rowsort
SELECT DISTINCT col1, 96 * - col1 FROM tab0
----
1
-96
21
-2016
81
-7776

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) / ( col1 ) / - col2 + - col1 IN ( col0 / 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL - CAST( NULL AS SIGNED ) + 37 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - CAST ( NULL AS INTEGER ) + 37 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - - 94 FROM tab0
----
104
141
193

query II rowsort
SELECT col2, col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - col0 * + col0 > - + col0 - + col0 * col0
----

query I rowsort
SELECT + 0 * col2 FROM tab1
----
0
0
0

query II rowsort
SELECT + 53, col2 + + 52 + + - col0 AS col1 FROM tab1 cor0
----
53
26
53
29
53
97

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE + 82 + col2 / - col2 = NULL
----

query I rowsort
SELECT ALL - AVG ( DISTINCT - 64 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( + ( ( - + col1 ) ) ) + col2 - + col0 AS col2 FROM tab0
----
-49
-98
1

query II rowsort
SELECT DISTINCT - 35 AS col0, - 80 * - 66 AS col1 FROM tab0
----
-35
5280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) / col2 = + col2
----

query I rowsort
SELECT + col2 * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col2 * - - col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 71 * 46 FROM tab2
----
3266

query I rowsort
SELECT 73 * + 91 FROM tab0
----
6643
6643
6643

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT + + COUNT( * ) - 27 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + + COUNT ( * ) - 27 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT - - MIN( + - 36 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT - - MIN ( + - 36 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL 10 * + SUM( 62 ) FROM tab2
----
1860

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL 10 * + SUM ( 62 ) FROM tab2
----
1860

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 99 + + - 42 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT DISTINCT + COUNT( * ) * - 68 / 81 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + COUNT ( * ) * - 68 / 81 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT DISTINCT - 63 AS col2, + 87 * + 54 * - MAX( ALL 13 ) AS col2 FROM tab0 AS cor0
----
-63
-61074

skipif mysql # not compatible
query II rowsort label-5344
SELECT DISTINCT - 63 AS col2, + 87 * + 54 * - MAX ( ALL 13 ) AS col2 FROM tab0 AS cor0
----
-63
-61074

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - + ( - MIN( DISTINCT - + col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5345
SELECT - + ( - MIN ( DISTINCT - + col1 ) ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 53 * + 23 > NULL
----

query I rowsort
SELECT + col2 * + col0 * - + 74 FROM tab0 AS cor0
----
-52170
-64380
-710622

query II rowsort
SELECT ALL + 12, col0 AS col1 FROM tab2 AS cor0
----
12
46
12
64
12
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT COUNT( * ) col0 FROM tab1 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-5349
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT DISTINCT col1 * - col1 * - col0 FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT - col1 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT + 96 DIV - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5353
SELECT + 96 / - col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT SUM( - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5354
SELECT SUM ( - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ALL 62 + + + 40 * + col2 AS col2 FROM tab1
----
2422
2782
3902

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + COUNT( ALL ( + 69 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5357
SELECT + COUNT ( ALL ( + 69 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / col1 * - col1 + 68 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT MAX( DISTINCT col1 ) FROM tab1 AS cor0 WHERE col1 < ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT MAX ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE col1 < ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT 98 * - 91 + + COUNT( * ) * - + 48 AS col1 FROM tab1 AS cor0
----
-9062

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT 98 * - 91 + + COUNT ( * ) * - + 48 AS col1 FROM tab1 AS cor0
----
-9062

query I rowsort
SELECT DISTINCT - - ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query II rowsort
SELECT - + col2 AS col1, 49 FROM tab0 AS cor0
----
-10
49
-47
49
-99
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT + 52 + + - 15 DIV + 16 + - col0 FROM tab2 AS cor0
----
-12
-23
6

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + 52 + + - 15 / + 16 + - col0 FROM tab2 AS cor0
----
-12
-23
6

query I rowsort
SELECT + + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 = + col1
----

query I rowsort
SELECT ALL - + col1 + col0 - - col1 * - 32 * - col1 FROM tab1 AS cor0
----
6309
70732
880

query I rowsort
SELECT + 40 - - 26 AS col1 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT + 43 - + + col2 AS col0 FROM tab0 AS cor0
----
-4
-56
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 * + + col2 / col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 25 - - col2 FROM tab1 AS cor0
----
121
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL - 58 * 69 - - col1 / - + 26 + CAST( NULL AS SIGNED ) * + + 24 * 10 / - col2 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - 58 * 69 - - col1 / - + 26 + CAST ( NULL AS INTEGER ) * + + 24 * 10 / - col2 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - + 82 * - col1 * - - 47 FROM tab1
----
-1637950
-16483558
-2751756

query I rowsort
SELECT + - 43 * col1 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-2021
-215
-602

query I rowsort
SELECT DISTINCT 68 - - col1 FROM tab0
----
149
69
89

query I rowsort
SELECT DISTINCT - ( - + 37 ) * - + 30 AS col1 FROM tab2 WHERE NOT - col0 * + 71 = ( + - col1 ) + - col0 + - col2
----
-1110

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab2
----
-52

query I rowsort
SELECT 42 * - col2 * + - col2 AS col1 FROM tab0
----
411642
4200
92778

query I rowsort
SELECT 18 FROM tab2 AS cor0 WHERE NOT ( - 78 ) / - + col0 * + col0 * + 99 * - col0 + + - col1 - - 73 IS NULL
----
18
18
18

query I rowsort
SELECT + + col1 * + - col2 * + - col1 * - - col0 FROM tab2 AS cor0
----
15178240
19527150
2751858

query I rowsort
SELECT DISTINCT - 89 * + col2 FROM tab2 AS cor0
----
-2047
-3560
-5162

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( NOT ( ( + 69 >= NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 8 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-8

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT 67 DIV 36 + - + col2 AS col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5385
SELECT 67 / 36 + - + col2 AS col2 FROM tab0 AS cor0
----
-46
-9
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 * - + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= + col1 * + + col1 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 98 * ( col0 ) FROM tab2 AS cor0
----
4508
6272
7350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 22 col1 FROM tab2 AS cor0
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT - + COUNT( * ) DIV + - 96 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - + COUNT ( * ) / + - 96 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 * - 19 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + MAX( ALL - + 48 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL AND col2 / + col1 NOT IN ( - col1 )
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5393
SELECT + MAX ( ALL - + 48 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL AND col2 / + col1 NOT IN ( - col1 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5394
SELECT - 81 AS col1, - col0 * - col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
-81
NULL
-81
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5394
SELECT - 81 AS col1, - col0 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
-81
NULL
-81
NULL
-81
NULL

query I rowsort
SELECT DISTINCT - col0 + + 81 AS col2 FROM tab0
----
-16
-6
66

query I rowsort
SELECT ALL + col2 * - 2 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT - col1 - - - col1 - + col2 * + 40 AS col1 FROM tab1
----
-2370
-2814
-3868

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5398
SELECT * FROM tab2 WHERE CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5398
SELECT * FROM tab2 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT - + 47 DIV - col2 + + ( + + 95 ) + + 39 AS col2 FROM tab0 AS cor0
----
134
135
138

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - + 47 / - col2 + + ( + + 95 ) + + 39 AS col2 FROM tab0 AS cor0
----
134
135
138

query I rowsort
SELECT - + col0 * + col1 + - col2 FROM tab1 AS cor0
----
-4345
-484
-810

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT ALL col1 - - + col0 * + + col0 AS col2 FROM tab2 cor0
----
2167
4173
5692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 - + - 50 col1 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL - + col2 * + + 45 - + col0 FROM tab1 AS cor0
----
-2740
-3151
-4371

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - + + col1 + - col0 + col0 * 89 * col2 * col2 FROM tab0
----
2948904
774105
84611838

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT - - 43 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - 43 + + col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 7 col1 FROM tab0 AS cor0 WHERE NOT + 93 * - col1 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT MAX( ALL col0 ) DIV + 97 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT MAX ( ALL col0 ) / + 97 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL - MIN( + + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL - MIN ( + + col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT + - 62 * + 21 * - COUNT( * ), - 12 AS col1 FROM tab2 cor0
----
3906
-12

skipif mysql # not compatible
query II rowsort label-5411
SELECT + - 62 * + 21 * - COUNT ( * ), - 12 AS col1 FROM tab2 cor0
----
3906
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5412
SELECT ALL + 0 + SUM( ALL - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + 0 + SUM ( ALL - + CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + 3, + col1 + - - 62, - - 77 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + 48 + 41 IS NOT NULL )
----

query I rowsort
SELECT ALL col0 * - - col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT - 74 * - 20 * - 99 FROM tab0 AS cor0
----
-146520
-146520
-146520

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT DISTINCT MIN( + 20 ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT MIN ( + 20 ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL + + 25 FROM tab2 AS cor0 WHERE NOT - 53 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT ( COUNT( * ) ) DIV - COUNT( DISTINCT - ( 5 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5420
SELECT ( COUNT ( * ) ) / - COUNT ( DISTINCT - ( 5 ) ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 34 / - + col1 AND - 7
----

query II rowsort
SELECT + 15 AS col1, 86 FROM tab1
----
15
86
15
86
15
86

query I rowsort
SELECT - + col1 FROM tab1 WHERE + 98 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 82 + + col2 * + col1 + + col2 FROM tab2
----
1278
3202
4026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT - col1 * + CAST( + + ( col1 ) AS SIGNED ) + - ( - col0 ) FROM tab2
----
-2555
-4414
-5865

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - col1 * + CAST ( + + ( col1 ) AS INTEGER ) + - ( - col0 ) FROM tab2
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT + + 3 + + 0 + 65 + - CAST( NULL AS SIGNED ) * + col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT + + 3 + + 0 + 65 + - CAST ( NULL AS INTEGER ) * + col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT - col0 + + 39 - + 78 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - col0 + + 39 - + 78 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col1 + - - 39 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - - 34 + + col1 AS col2 FROM tab1 AS cor0
----
39
48
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - ( - 72 ) col2 FROM tab2 AS cor0
----
118
136
147

query I rowsort
SELECT ALL col2 - - 89 FROM tab1 AS cor0
----
148
157
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT MAX( + col2 ) * + COUNT( * ) AS col1 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5432
SELECT MAX ( + col2 ) * + COUNT ( * ) AS col1 FROM tab0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT + + col1 AS col1 FROM tab1 WHERE ( - CAST( - + 98 AS SIGNED ) IS NOT NULL )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5433
SELECT + + col1 AS col1 FROM tab1 WHERE ( - CAST ( - + 98 AS INTEGER ) IS NOT NULL )
----
14
47
5

query I rowsort
SELECT DISTINCT + + ( col0 ) * + col2 * - 58 FROM tab0 AS cor0
----
-40890
-50460
-556974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * + 67 AS col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * + 67 AS col1 FROM tab2 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ( - COUNT( * ) ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5436
SELECT ( - COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL 95 + col0 + + + col2 + + - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL 95 + col0 + + + col2 + + - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 / col0 + + - col1 + + col1 * + + col2 FROM tab1 AS cor0 WHERE - 82 - - col0 IS NULL
----

query I rowsort
SELECT + col1 - + col1 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5443
SELECT ALL ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col1 * 21 * + 84 / + 12 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT + SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5446
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + CAST( NULL AS SIGNED ) + - - col0 - + ( + + col1 ) NOT BETWEEN NULL AND + col0 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-5446
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + CAST ( NULL AS INTEGER ) + - - col0 - + ( + + col1 ) NOT BETWEEN NULL AND + col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT ( - col2 <> ( - + 21 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT ( - col2 <> ( - + 21 ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 1 >= ( - - 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 82 * + col1 + - 41 <= - ( - 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL + + MIN( DISTINCT - ( + 90 ) ) AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + + MIN ( DISTINCT - ( + 90 ) ) AS col0 FROM tab0 AS cor0
----
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + 45 IS NOT NULL
----

query II rowsort
SELECT + col0, + col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT 58 AS col2 FROM tab2 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + COUNT( + 55 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5455
SELECT + COUNT ( + 55 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col1, col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ( col0 ) + + 47 + 70 * + - col1 FROM tab1 AS cor0
----
-218
-3152
-882

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 50 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( + 85 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + COUNT( * ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT + COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL 79 * COUNT( * ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL 79 * COUNT ( * ) FROM tab1
----
237

query I rowsort
SELECT DISTINCT + col2 - + - col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL col1 - 89 AS col1 FROM tab2
----
-12
-22
-38

query I rowsort
SELECT DISTINCT + col2 * + - col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - + 2 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT col0 + + 70 * + 79 + + col1 AS col0 FROM tab1
----
5595
5620
5668

query I rowsort
SELECT - col2 + 8 AS col0 FROM tab0
----
-2
-39
-91

query II rowsort
SELECT + col2 * + + col1 + + 39 AS col1, 0 + col0 AS col1 FROM tab0 AS cor0
----
138
97
249
87
3846
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5469
SELECT ALL - - COUNT( * ) DIV 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - - COUNT ( * ) / 62 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 IN ( - col0 - col1, + 72 * + col2, - col2 * 93 + + col2 - 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 < - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 < - col0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5473
SELECT + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5474
SELECT + CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5474
SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT 6 * - + col1 AS col2 FROM tab1
----
-282
-30
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL COUNT( DISTINCT 94 ) * - - 73 AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL COUNT ( DISTINCT 94 ) * - - 73 AS col2 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT - 66 * COUNT( * ) AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - 66 * COUNT ( * ) AS col1 FROM tab2
----
-198

query II rowsort
SELECT col0, col0 + + col2 + + col0 + - - col1 FROM tab1
----
51
212
85
234
91
297

query II rowsort
SELECT DISTINCT + 21 AS col2, - col2 FROM tab0
----
21
-10
21
-47
21
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5480
SELECT - - 71 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
71
-3

skipif mysql # not compatible
query II rowsort label-5480
SELECT - - 71 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
71
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab0 AS cor0
----
72

query I rowsort
SELECT + ( - - 10 ) * - - 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f45d34a1cba3c01966ab2c7c538c0bc5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE + col2 * - 58 + - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE + col2 * - 58 + - col2 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - + ( - 70 ) AS col0, 16 * + col2 FROM tab0 AS cor0
----
70
1584
70
160
70
752

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL + COUNT( * ) + ( 54 ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + COUNT ( * ) + ( 54 ) AS col2 FROM tab0 AS cor0
----
57

query II rowsort
SELECT + - col2 * + ( + 93 ) AS col1, + ( + col1 ) + - - col1 FROM tab0 AS cor0
----
-4371
162
-9207
2
-930
42

query I rowsort
SELECT - 52 * 14 AS col0 FROM tab1 AS cor0
----
-728
-728
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT + ( - ( + - COUNT( * ) ) ) * + 54 AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-5488
SELECT + ( - ( + - COUNT ( * ) ) ) * + 54 AS col2 FROM tab0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL 43 * - + COUNT( ALL + - col1 ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL 43 * - + COUNT ( ALL + - col1 ) FROM tab2
----
-129

query I rowsort
SELECT DISTINCT 61 + - col0 AS col0 FROM tab2
----
-14
-3
15

query I rowsort
SELECT DISTINCT + 27 * + - col1 AS col0 FROM tab0
----
-2187
-27
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5492
SELECT COUNT( * ) DIV + - 5 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT COUNT ( * ) / + - 5 AS col0 FROM tab2
----
0

query I rowsort
SELECT - - ( ( + 86 ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + SUM( col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5494
SELECT + SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + MAX( ALL 39 ) FROM tab0 cor0 WHERE NOT 43 * + 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + MAX ( ALL 39 ) FROM tab0 cor0 WHERE NOT 43 * + 82 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT DISTINCT + MAX( 72 ) col1, - SUM( + - col1 ) FROM tab1 AS cor0
----
72
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5496
SELECT DISTINCT + MAX ( 72 ) col1, - SUM ( + - col1 ) FROM tab1 AS cor0
----
72
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 54 * + ( - MAX( DISTINCT + 76 ) ) FROM tab1 cor0
----
-4104

skipif mysql # not compatible
query I rowsort label-5497
SELECT 54 * + ( - MAX ( DISTINCT + 76 ) ) FROM tab1 cor0
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + COUNT( * ) * 42 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5498
SELECT + COUNT ( * ) * 42 FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL ( - - col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - - 12 * 51 FROM tab1 AS cor0
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL COUNT( + col0 ) * - 0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL COUNT ( + col0 ) * - 0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL - 0 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - 0 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 49 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL 34 DIV 47 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL 34 / 47 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0, tab1 cor0
----
-19

query I rowsort
SELECT ALL + 98 AS col2 FROM tab2
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT DISTINCT - col1 DIV + - 98 * 10 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - col1 / + - 98 * 10 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 80 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - COUNT( * ) + + + 35 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - COUNT ( * ) + + + 35 FROM tab1 AS cor0
----
32

query I rowsort
SELECT + - col0 * col1 + + 66 FROM tab0 AS cor0
----
-1149
-1761
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT DISTINCT + + CAST( - 90 AS SIGNED ) + - + 18 AS col2 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + + CAST ( - 90 AS INTEGER ) + - + 18 AS col2 FROM tab0 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT + CAST( CAST( + + col1 AS SIGNED ) AS SIGNED ) + - 47 AS col0 FROM tab1 AS cor0
----
-33
-42
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT + CAST ( CAST ( + + col1 AS INTEGER ) AS INTEGER ) + - 47 AS col0 FROM tab1 AS cor0
----
-33
-42
0

query II rowsort
SELECT DISTINCT + col1, 10 * 68 FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
14
680
47
680
5
680

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2 * - + 32
----

query I rowsort
SELECT + - 32 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1568
3332
497

query I rowsort
SELECT ALL ( + - col0 ) - + col1 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT + col1 * + col0 + + - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT + col1 * + col0 + + - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5520
SELECT ALL + col1 * + CAST( NULL AS DECIMAL ) / + 81 AS col2, ( col1 ) + - 49 AS col1 FROM tab1
----
NULL
-2
NULL
-35
NULL
-44

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL + col1 * + CAST ( NULL AS REAL ) / + 81 AS col2, ( col1 ) + - 49 AS col1 FROM tab1
----
NULL
-2
NULL
-35
NULL
-44

query I rowsort
SELECT ALL - ( - 96 ) * - col2 + - - col2 AS col0 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT + ( 18 ) * - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5522
SELECT + ( 18 ) * - COUNT ( * ) FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT MAX( - - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5523
SELECT MAX ( - - col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + ( COUNT( * ) ) * - 37 FROM tab0 WHERE NOT 90 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + ( COUNT ( * ) ) * - 37 FROM tab0 WHERE NOT 90 IS NOT NULL
----
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + - col1 AS col0, - 95 FROM tab2 AS cor0
----
-51
-95
-67
-95
-77
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + COUNT( DISTINCT + 50 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5527
SELECT + COUNT ( DISTINCT + 50 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL - - SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - - SUM ( - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab0 AS cor0 WHERE NOT col0 >= + col2 + - ( col1 ) / + col0
----
15
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT + col2 * col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-41
-8
-9603

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + col2 * col0 / - col1 AS col2 FROM tab0 AS cor0
----
-41
-8
-9603

query I rowsort
SELECT DISTINCT - col0 * 44 + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-2075
-2893
-3367

query II rowsort
SELECT - + col1 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL 18 * - + COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL 18 * - + COUNT ( * ) FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE - 14 + - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE - 14 + - col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT SUM( + + ( CAST( col2 AS SIGNED ) ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5535
SELECT SUM ( + + ( CAST ( col2 AS INTEGER ) ) ) AS col2 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT DISTINCT col1 DIV + 13 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT col1 / + 13 AS col2 FROM tab1
----
0
1
3

query I rowsort
SELECT ALL + col1 * - col0 * 93 + + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col2 * 31 * - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 76 + - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL + + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-5543
SELECT + 54 + + col0 AS col2, col1 DIV col0 - col2 DIV + - col0 * + 52 AS col0 FROM tab2 AS cor0
----
100
1
118
1
129
0

skipif mysql # not compatible
query II rowsort label-5543
SELECT + 54 + + col0 AS col2, col1 / col0 - col2 / + - col0 * + 52 AS col0 FROM tab2 AS cor0
----
100
1
118
1
129
0

query I rowsort
SELECT DISTINCT + col0 + + 72 FROM tab1 AS cor0
----
123
157
163

query II rowsort
SELECT + + 72 AS col0, col2 FROM tab0 AS cor0
----
72
10
72
47
72
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + - MIN( - - 99 ) AS col0 FROM tab1 AS cor0 WHERE col0 <> 48 * 18 + - 59
----
-99

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + - MIN ( - - 99 ) AS col0 FROM tab1 AS cor0 WHERE col0 <> 48 * 18 + - 59
----
-99

query I rowsort
SELECT ALL - 63 + - col2 * + 20 AS col2 FROM tab2 AS cor0
----
-1223
-523
-863

query I rowsort
SELECT ALL - - 79 + - col2 AS col0 FROM tab1 cor0
----
-17
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - MIN( ALL 30 ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5549
SELECT - MIN ( ALL 30 ) AS col1 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - 4 + col0 + ( + col1 ) * col2 * - col0 FROM tab0 AS cor0
----
-18187
-57094
-9510

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5551
SELECT MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 - col0 col2 FROM tab1
----
-4368
-510
-765

query II rowsort
SELECT DISTINCT col2 AS col2, 43 FROM tab0
----
10
43
47
43
99
43

query I rowsort
SELECT 69 + + 21 AS col2 FROM tab0
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5555
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS DECIMAL ) / + 44 AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5555
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS REAL ) / + 44 AND NULL
----

query II rowsort
SELECT ALL 97 + - col1 + - 30 * 7 * - + col1 + col2 AS col1, 8 AS col1 FROM tab1
----
1201
8
3119
8
9988
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT 86 + - MAX( - 26 ) + + COUNT( ALL + col2 ) AS col0 FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-5557
SELECT 86 + - MAX ( - 26 ) + + COUNT ( ALL + col2 ) AS col0 FROM tab0
----
115

query I rowsort
SELECT 76 + + col2 FROM tab0
----
123
175
86

query I rowsort
SELECT + 65 + col1 FROM tab1 AS cor0
----
112
70
79

query II rowsort
SELECT DISTINCT + col1, + 56 FROM tab1 AS cor0
----
14
56
47
56
5
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 65 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0 AS col1, + col2 AS col0, 94 col2 FROM tab0 cor0
----
9 values hashing to 7d54c614dd121e95f631ad18f86cb0c5

query II rowsort
SELECT + col0 * + 48 AS col1, - ( + 17 ) FROM tab0
----
4176
-17
4656
-17
720
-17

query I rowsort
SELECT - - ( col2 ) * ( + 67 ) FROM tab1 AS cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + + COUNT( * ) * + 13 col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5565
SELECT + + COUNT ( * ) * + 13 col2 FROM tab1 AS cor0
----
39

query II rowsort
SELECT ALL - col1 * 58 * col2 AS col2, ( - col0 ) FROM tab2 AS cor0
----
-178640
-64
-225388
-75
-68034
-46

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - ( - col2 ) + - + col2 + 83 * + 32 FROM tab2 AS cor0
----
-1752
1575
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * - col1 col1, + 28 FROM tab1 AS cor0
----
-196
28
-2209
28
-25
28

query I rowsort
SELECT ALL - ( - - 32 ) FROM tab1 AS cor0 WHERE NOT NULL > - 1 + 61
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 50 + + 53 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + col2 col2 FROM tab0
----
114
166
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + 60 * + COUNT( * ) + 82 AS col1 FROM tab1
----
262

skipif mysql # not compatible
query I rowsort label-5574
SELECT + 60 * + COUNT ( * ) + 82 AS col1 FROM tab1
----
262

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5576
SELECT ALL COUNT( * ) * - COUNT( * ) DIV + ( + 78 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL COUNT ( * ) * - COUNT ( * ) / + ( + 78 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - MIN( ALL + col2 ) * COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-5577
SELECT - MIN ( ALL + col2 ) * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-180

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IN ( col2 / - col2, col1, ( + + 48 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL - - 50 * - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
450

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - - 50 * - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
450

query I rowsort
SELECT - 46 + - col1 FROM tab1
----
-51
-60
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - 60 + + - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-5581
SELECT - 60 + + - COUNT ( * ) FROM tab0
----
-63

query I rowsort
SELECT DISTINCT col0 + - 84 FROM tab2 AS cor0
----
-20
-38
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND + col2 + + col2
----

query I rowsort
SELECT - col1 + - - 56 FROM tab0 AS cor0 WHERE 71 * + col1 IS NOT NULL
----
-25
35
55

query I rowsort
SELECT col2 * + 21 * - - col0 * + + col2 FROM tab1
----
6213585
8836464
9870336

query I rowsort
SELECT ALL + 89 * - col2 FROM tab0
----
-4183
-8811
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 * - - 54 col0 FROM tab0
----
2585
5445
550

query II rowsort
SELECT col1 * 70 * - + 62, + ( + col1 ) FROM tab2
----
-221340
51
-290780
67
-334180
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - MIN( col1 ) * 37 AS col0 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-5589
SELECT - MIN ( col1 ) * 37 AS col0 FROM tab0
----
-37

query I rowsort
SELECT ALL - col1 * + - 50 FROM tab0 AS cor0
----
1050
4050
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5591
SELECT DISTINCT CAST( 34 AS SIGNED ), - col1 AS col1 FROM tab1
----
34
-14
34
-47
34
-5

skipif mysql # not compatible
query II rowsort label-5591
SELECT DISTINCT CAST ( 34 AS INTEGER ), - col1 AS col1 FROM tab1
----
34
-14
34
-47
34
-5

query I rowsort
SELECT 96 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT - 1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-1

query I rowsort
SELECT + 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 9 IS NOT NULL
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5596
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT 0 * MIN( - col2 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5597
SELECT 0 * MIN ( - col2 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT + col1 DIV + + col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5598
SELECT + col1 / + + col0 AS col0 FROM tab0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 < - col0 )
----

query I rowsort
SELECT ALL 51 * + col1 AS col2 FROM tab1
----
2397
255
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT ( - MAX( - col0 ) ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT ( - MAX ( - col0 ) ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL - col0 + + + 82 AS col0 FROM tab2 AS cor0
----
18
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + MAX( + + col2 ) + - - COUNT( * ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5604
SELECT + MAX ( + + col2 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT + + col2 FROM tab2 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE 27 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT + 95 FROM tab2 WHERE + col0 NOT IN ( - 74, + CAST( col1 AS SIGNED ) )
----
95
95
95

skipif mysql # not compatible
query I rowsort label-5608
SELECT + 95 FROM tab2 WHERE + col0 NOT IN ( - 74, + CAST ( col1 AS INTEGER ) )
----
95
95
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + MIN( 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5610
SELECT + MIN ( 26 ) FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + COUNT( * ) - + + 66 AS col2 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5611
SELECT + COUNT ( * ) - + + 66 AS col2 FROM tab0 cor0
----
-63

query I rowsort
SELECT 46 - - col0 AS col1 FROM tab0 AS cor0
----
133
143
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL 35 * - CAST( + ( - - 82 ) AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
-2789
-2849
-2869

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL 35 * - CAST ( + ( - - 82 ) AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
-2789
-2849
-2869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 * + col1 - - col1 col2, + col1 AS col0 FROM tab2 AS cor0
----
-1836
51
-2412
67
-2772
77

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 30 * + col2 * + + 59 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT ALL - col2 + - CAST( - - 87 AS SIGNED ) col2 FROM tab2 AS cor0
----
-110
-127
-145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5616
SELECT ALL - col2 + - CAST ( - - 87 AS INTEGER ) col2 FROM tab2 AS cor0
----
-110
-127
-145

query I rowsort
SELECT DISTINCT - + col2 + - + 67 AS col2 FROM tab1 AS cor0
----
-126
-135
-163

query I rowsort
SELECT ALL - 11 + + - col1 FROM tab1
----
-16
-25
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 80 * + col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT COUNT( - - col0 ) * - ( 24 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT COUNT ( - - col0 ) * - ( 24 ) AS col0 FROM tab2
----
-72

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 61 ) + - - col0 < + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 57 * col0 * - + ( + + col0 ) col1 FROM tab0
----
1038825
536313
9060093

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5623
SELECT ALL * FROM tab1 WHERE NULL < + - col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5623
SELECT ALL * FROM tab1 WHERE NULL < + - col0 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 56 * 9 FROM tab0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT SUM( 41 ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT SUM ( 41 ) AS col0 FROM tab2
----
123

query III rowsort
SELECT * FROM tab1 WHERE NOT + 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - + ( + + 96 ) col0 FROM tab0
----
4128
4128
4128

query I rowsort
SELECT ALL col1 * + 0 * - col1 + + - ( + + col2 ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT ALL + COUNT( * ) DIV 50 * COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + COUNT ( * ) / 50 * COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT + + ( + 73 ) + - + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5631
SELECT DISTINCT + + col0 + + col0 * + 93 * + col0 FROM tab1 WHERE CAST( col1 AS DECIMAL ) BETWEEN NULL AND 42
----

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + + col0 + + col0 * + 93 * + col0 FROM tab1 WHERE CAST ( col1 AS REAL ) BETWEEN NULL AND 42
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT + - COUNT( + + 60 ) + 49 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT + - COUNT ( + + 60 ) + 49 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5634
SELECT DISTINCT + + CAST( + - 77 AS SIGNED ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + + CAST ( + - 77 AS INTEGER ) FROM tab1 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col0 + + + col2 * - - col1 FROM tab0
----
123
2
3792

query I rowsort
SELECT ALL + col0 * + 0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5639
SELECT + 59 + 99 AS col2, + 18 DIV + ( - + col0 ) AS col0 FROM tab2 WHERE col0 + - - col2 IS NOT NULL
----
158
0
158
0
158
0

skipif mysql # not compatible
query II rowsort label-5639
SELECT + 59 + 99 AS col2, + 18 / + ( - + col0 ) AS col0 FROM tab2 WHERE col0 + - - col2 IS NOT NULL
----
158
0
158
0
158
0

query II rowsort
SELECT col1 AS col2, + col2 * - - col1 * + + col1 FROM tab0
----
1
99
21
4410
81
308367

query II rowsort
SELECT - 3 AS col0, col0 * + 90 AS col0 FROM tab1
----
-3
4590
-3
7650
-3
8190

query I rowsort
SELECT + - 93 AS col2 FROM tab0 cor0
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN 21 AND - col2 + + col0 + + - 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT DISTINCT + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL - ( - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - ( - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT + - COUNT( - col2 ) - - 66 AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + - COUNT ( - col2 ) - - 66 AS col0 FROM tab1 AS cor0
----
63

query I rowsort
SELECT + 8 + 32 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE + 55 * col2 NOT BETWEEN NULL AND - col2 * col1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 + + - col2 col0 FROM tab2 AS cor0
----
-1
-18
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + - 39 / + + 72 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) + - 39 / + + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5653
SELECT ALL - + CAST( NULL AS DECIMAL ) * + 63 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - + CAST ( NULL AS REAL ) * + 63 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col2
----

query II rowsort
SELECT DISTINCT + col2 * 73 * 83, - 23 * col1 AS col2 FROM tab1
----
357481
-115
412012
-1081
581664
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT MAX( ALL + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5656
SELECT MAX ( ALL + - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + 17 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 94 * - 31 FROM tab2
----
2914

onlyif mysql # DIV for integer division: 
query II rowsort label-5660
SELECT ALL + 55, 61 DIV - col0 col2 FROM tab1
----
55
-1
55
0
55
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5660
SELECT ALL + 55, 61 / - col0 col2 FROM tab1
----
55
-1
55
0
55
0

query I rowsort
SELECT DISTINCT 86 * + col1 AS col0 FROM tab2
----
4386
5762
6622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT + CAST( NULL AS SIGNED ) * + - ( + 27 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT + CAST ( NULL AS INTEGER ) * + - ( + 27 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + MIN( - + col0 ) * - MAX( ALL col2 ) + + 57 col0 FROM tab0 cor0
----
9660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT + MIN ( - + col0 ) * - MAX ( ALL col2 ) + + 57 col0 FROM tab0 cor0
----
9660

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL MAX( + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL MAX ( + col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col2
----

query I rowsort
SELECT ALL ( - 73 ) FROM tab2
----
-73
-73
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + col1 ) NOT BETWEEN ( NULL ) AND ( + col2 * col2 + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN ( - 48 ) AND ( + col2 )
----

query I rowsort
SELECT ALL col2 + + ( + 65 ) FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT - SUM( - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT - SUM ( - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 + + 41 FROM tab0 WHERE col0 IS NOT NULL
----
140
51
88

query I rowsort
SELECT DISTINCT 40 * col1 AS col0 FROM tab0
----
3240
40
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE ( - 8 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5673
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( - 8 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT COUNT( * ) + - 15 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5674
SELECT COUNT ( * ) + - 15 AS col0 FROM tab0
----
-12

query I rowsort
SELECT + 19 + - 7 FROM tab2
----
12
12
12

query III rowsort
SELECT * FROM tab0 WHERE - ( + col2 ) * - ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= col2 / - col2
----

query I rowsort
SELECT DISTINCT + col2 * ( - col2 * - 28 ) FROM tab1 WHERE NOT + 22 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL MAX( + ( 40 ) ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL MAX ( + ( 40 ) ) FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT CAST( - col2 AS SIGNED ) + 27 FROM tab1
----
-32
-41
-69

skipif mysql # not compatible
query I rowsort label-5680
SELECT CAST ( - col2 AS INTEGER ) + 27 FROM tab1
----
-32
-41
-69

query I rowsort
SELECT - 37 + - col0 FROM tab2
----
-101
-112
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT COUNT( * ) + - 81 col0 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5682
SELECT COUNT ( * ) + - 81 col0 FROM tab1
----
-78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + 89 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col0 FROM tab1 WHERE + col0 IN ( 4 + + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5685
SELECT - 27 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT - 27 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL - 79 * COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-234

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - 79 * COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 + + 68 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= ( 86 + + col0 / - 43 )
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - col1 + 7 <= - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT + COUNT( * ) * 86 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-5691
SELECT + COUNT ( * ) * 86 FROM tab2
----
258

query I rowsort
SELECT DISTINCT - col2 + + 3 AS col2 FROM tab0
----
-44
-7
-96

query I rowsort
SELECT DISTINCT + col0 + + 18 * 30 FROM tab1 cor0
----
591
625
631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + - ( + 6 + MAX( DISTINCT col0 ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - ( + 6 + MAX ( DISTINCT col0 ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT + col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT - 43 * - col2 + ( col1 - CAST( NULL AS SIGNED ) * + 83 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 43 * - col2 + ( col1 - CAST ( NULL AS INTEGER ) * + 83 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * - col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT ALL 15 * - col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + 63 + - 13 * col2 IS NULL
----
-345
-600
-870

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 15 * - col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + 63 + - 13 * col2 IS NULL
----
-345
-600
-870

query I rowsort
SELECT DISTINCT - 52 + + 32 FROM ( tab2 cor0 CROSS JOIN tab1 )
----
-20

query I rowsort
SELECT ALL col0 * col1 + + 38 AS col0 FROM tab1 WHERE NOT 9 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT - 54 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT - 54 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT + - col1 DIV + 3 AS col0 FROM tab0 AS cor0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT + - col1 / + 3 AS col0 FROM tab0 AS cor0
----
-27
-7
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < - col1 + - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 95 * - ( 58 ) AS col1 FROM tab0 AS cor0
----
-5510
-5510
-5510

query I rowsort
SELECT - + 73 AS col0 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT + SUM( DISTINCT + col2 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5706
SELECT + SUM ( DISTINCT + col2 ) / + COUNT ( * ) FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL 6 * COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL 6 * COUNT ( * ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL + 52 * col0 AS col1 FROM tab0 cor0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( col0 / - 97 )
----
-3

skipif mysql # not compatible
query I rowsort label-5711
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( col0 / - 97 )
----
-3

query I rowsort
SELECT ALL col1 * - + col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab1
----
28

query I rowsort
SELECT col1 * + col0 + col2 AS col1 FROM tab2 WHERE NOT - col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT COUNT( * ) * - + 30 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5715
SELECT COUNT ( * ) * - + 30 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + 3 * COUNT( * ) * 4 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 3 * COUNT ( * ) * 4 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT COUNT( * ) * - 48 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-5717
SELECT COUNT ( * ) * - 48 FROM tab0
----
-144

query I rowsort
SELECT DISTINCT ( + - 83 ) AS col0 FROM tab2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab2 WHERE NOT col2 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5719
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - - 62 FROM tab0 cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT + + col0 DIV 9 AS col2 FROM tab0 AS cor0
----
1
10
9

skipif mysql # not compatible
query I rowsort label-5721
SELECT + + col0 / 9 AS col2 FROM tab0 AS cor0
----
1
10
9

query I rowsort
SELECT DISTINCT + + col0 * + 85 AS col0 FROM tab1 AS cor0
----
4335
7225
7735

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - 46 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
414

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - 46 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT + ( COUNT( * ) ) * + 15 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
135

skipif mysql # not compatible
query I rowsort label-5725
SELECT + ( COUNT ( * ) ) * + 15 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT - col0 + - + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5726
SELECT - col0 + - + col1 / - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - + 91 + ( - col1 ) * col2 AS col2 FROM tab1 AS cor0
----
-1435
-3287
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT + COUNT( ALL + col2 ) + - MIN( DISTINCT + 18 ) col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5728
SELECT DISTINCT + COUNT ( ALL + col2 ) + - MIN ( DISTINCT + 18 ) col0 FROM tab1 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT DISTINCT + 97 DIV - + col1 + + + col1 FROM tab0 cor0
----
-96
17
80

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT + 97 / - + col1 + + + col1 FROM tab0 cor0
----
-96
17
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + + COUNT( * ) + 41 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-5730
SELECT + + COUNT ( * ) + 41 FROM tab0 cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - col1 col0 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col1 ) / - col0 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5733
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 = - col0 * - col0 + - CAST( - 96 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 = - col0 * - col0 + - CAST ( - 96 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 55 * col0 FROM tab2 AS cor0 WHERE NOT col0 - 23 + 47 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * col1 * col0 ) BETWEEN NULL AND 95 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( + - col1 ) IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( - ( + col2 ) ) > ( NULL )
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) + + col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT 90 DIV COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5739
SELECT 90 / COUNT ( * ) AS col0 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT col1 DIV + ( - col0 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT col1 / + ( - col0 ) FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT DISTINCT + col1 + 19 - + + col0 DIV - + 12 AS col0 FROM tab0
----
101
28
47

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + col1 + 19 - + + col0 / - + 12 AS col0 FROM tab0
----
101
28
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT + col0 * + 29 DIV 1 AS col0 FROM tab0
----
2523
2813
435

skipif mysql # not compatible
query I rowsort label-5742
SELECT + col0 * + 29 / 1 AS col0 FROM tab0
----
2523
2813
435

query I rowsort
SELECT DISTINCT 85 * - col1 FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) = 45 * col2 ) )
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 + col0 * + col1 FROM tab1 cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query II rowsort
SELECT 16, + col2 FROM tab1 AS cor0
----
16
59
16
68
16
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * - + col2 * - col1 ) > ( 44 / + col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT + 1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL AND NOT col0 - col2 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL AND NOT col0 - col2 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - SUM( 50 ) AS col0 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5751
SELECT - SUM ( 50 ) AS col0 FROM tab1 AS cor0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT ALL col2 + 2 DIV + col1 FROM tab1 cor0 WHERE NOT ( - col2 * col1 * - col1 * col0 ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL col2 + 2 / + col1 FROM tab1 cor0 WHERE NOT ( - col2 * col1 * - col1 * col0 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT + - MIN( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT + - MIN ( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT + MIN( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5754
SELECT + MIN ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT - ( - MAX( ALL - 85 ) ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - ( - MAX ( ALL - 85 ) ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 74 col1 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT ALL col1 + - 46 FROM tab2 WHERE + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT DISTINCT + CAST( + CAST( + 93 AS SIGNED ) AS SIGNED ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT + CAST ( + CAST ( + 93 AS INTEGER ) AS INTEGER ) FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5759
SELECT DISTINCT col1 col1, col2 DIV + col2 AS col2 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-5759
SELECT DISTINCT col1 col1, col2 / + col2 AS col2 FROM tab1
----
14
1
47
1
5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - ( ( - 75 ) ) col2 FROM tab0
----
10
75
47
75
99
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 51 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 > ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 - + col0 * 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT - MIN( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 70 * - 80 + - col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-5651
-5667
-5677

query I rowsort
SELECT ALL + col1 * - 24 + 7 + - 92 * - 41 - - col0 AS col2 FROM tab0 AS cor0
----
1850
3362
3852

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + 76 + col2 AND col2 + - 15
----

query I rowsort
SELECT col2 * col0 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + + col0 )
----
1058
2560
4350

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - - 86 * - COUNT( * ) + + COUNT( ALL - + 78 ) AS col2 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - - 86 * - COUNT ( * ) + + COUNT ( ALL - + 78 ) AS col2 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col0 * 77 * + col0 AS col1 FROM tab1 AS cor0
----
200277
556325
637637

query II rowsort
SELECT ALL col2 - - col1 * - col2 AS col0, - 36 AS col0 FROM tab0 AS cor0
----
-200
-36
-3760
-36
0
-36

query I rowsort
SELECT col1 - + 94 AS col1 FROM tab0
----
-13
-73
-93

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2 WHERE ( col0 ) NOT BETWEEN 63 * - col2 + - col0 AND NULL
----

query I rowsort
SELECT ( + - 46 ) + - col1 + col0 - + + col0 * 48 AS col1 FROM tab1
----
-2457
-4046
-4370

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= col0 / + + col2 + + + 51
----
97
1
99

query I rowsort
SELECT DISTINCT col1 + + 89 + col1 + + col0 * + 95 AS col0 FROM tab2
----
4561
6323
7348

query I rowsort
SELECT 59 + col0 FROM tab1
----
110
144
150

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1 + - - 87
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col0 <> + col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( col0 ) ) + + 13 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 11 + - col0 - - - 89 FROM tab0 AS cor0
----
-165
-175
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL COUNT( * ) - + COUNT( * ) * + 16 AS col0 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) > - + col0
----
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL COUNT ( * ) - + COUNT ( * ) * + 16 AS col0 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) > - + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT - SUM( - 88 ) AS col2 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT - SUM ( - 88 ) AS col2 FROM tab1 AS cor0
----
264

query I rowsort
SELECT col2 / + 60 FROM tab2 WHERE NOT ( NULL > 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT + - ( - MIN( ALL + 58 ) ) * + 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4872

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + - ( - MIN ( ALL + 58 ) ) * + 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4872

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT DISTINCT + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + 71 * col0 * 31 FROM tab0 AS cor0
----
191487
213497
33015

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT ALL + col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE 54 DIV col1 + col1 NOT BETWEEN col1 AND + col1
----
0
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL + col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE 54 / col1 + col1 NOT BETWEEN col1 AND + col1
----
0
0

query I rowsort
SELECT - + ( - + 81 ) AS col2 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT col1 + 63 + - 29 * - - col0 AS col1 FROM tab1
----
-1402
-2397
-2529

query II rowsort
SELECT ALL + 25, 0 AS col1 FROM tab0
----
25
0
25
0
25
0

query I rowsort
SELECT ALL 21 FROM tab2 WHERE - - 64 * - 93 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT MAX( ALL 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5796
SELECT MAX ( ALL 35 ) FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 + - CAST( NULL AS SIGNED ) IN ( ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5797
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 + - CAST ( NULL AS INTEGER ) IN ( ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL - - MAX( ALL - col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - - MAX ( ALL - col2 ) AS col2 FROM tab1 cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-5799
SELECT DISTINCT + col1, 24 DIV - col2 + - col0 FROM tab2
----
51
-47
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-5799
SELECT DISTINCT + col1, 24 / - col2 + - col0 FROM tab2
----
51
-47
67
-75
77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ( - col0 ) + + - col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT - 64 - + COUNT( * ) - 92 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-159

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT - 64 - + COUNT ( * ) - 92 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-159

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT - MIN( - + 17 ) * - - 21 FROM tab0 AS cor0
----
357

skipif mysql # not compatible
query I rowsort label-5804
SELECT - MIN ( - + 17 ) * - - 21 FROM tab0 AS cor0
----
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col1 col2, - col0 + + col0 + + col1 FROM tab2
----
2601
51
4489
67
5929
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL + 57 * MAX( ALL 46 ) AS col1 FROM tab1
----
2622

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + 57 * MAX ( ALL 46 ) AS col1 FROM tab1
----
2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT - MAX( + col1 ) * - + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5807
SELECT - MAX ( + col1 ) * - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT DISTINCT 29 * - CAST( - ( 7 ) AS SIGNED ) col2 FROM tab2
----
203

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5808
SELECT DISTINCT 29 * - CAST ( - ( 7 ) AS INTEGER ) col2 FROM tab2
----
203

query I rowsort
SELECT ALL col1 * - 75 AS col0 FROM tab1
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + COUNT( * ) - + + MIN( DISTINCT col1 ) + - + 68 AS col2 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-5810
SELECT + COUNT ( * ) - + + MIN ( DISTINCT col1 ) + - + 68 AS col2 FROM tab1
----
-70

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col0 + col1 <= + - col1 )
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - col1 * col2 - - + 83 AND NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col0 BETWEEN col1 AND - + ( - - col0 ) ) )
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-5814
SELECT 21 DIV col2 DIV + col2, + col1 FROM tab0 cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-5814
SELECT 21 / col2 / + col2, + col1 FROM tab0 cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - col1 * - - 30 FROM tab1 cor0
----
-1410
-150
-420

query I rowsort
SELECT ALL - - col2 * col2 * - col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT - col2 DIV + + col0 + + col1 * col1 FROM tab1 AS cor0
----
195
2209
25

skipif mysql # not compatible
query I rowsort label-5817
SELECT - col2 / + + col0 + + col1 * col1 FROM tab1 AS cor0
----
195
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5818
SELECT - - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5818
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT col0 * + - 45 AS col0 FROM tab2
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT COUNT( 86 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5820
SELECT COUNT ( 86 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT + ( + COUNT( ALL + 46 ) ) FROM tab1 WHERE NOT NULL BETWEEN 12 AND - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5821
SELECT + ( + COUNT ( ALL + 46 ) ) FROM tab1 WHERE NOT NULL BETWEEN 12 AND - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL COUNT( DISTINCT + col0 ) + + ( - COUNT( * ) ) * MAX( + col0 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL COUNT ( DISTINCT + col0 ) + + ( - COUNT ( * ) ) * MAX ( + col0 ) FROM tab0
----
-288

query II rowsort
SELECT DISTINCT - 47 AS col0, col0 - col1 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT + - ( + col0 ) + - - col1 * + col2 AS col1 FROM tab2 cor0
----
1127
3016
3811

query II rowsort
SELECT + col1, + ( - col2 ) + col0 FROM tab1
----
14
-45
47
23
5
26

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 3 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + 85 FROM tab2 AS cor0
----
108
125
143

query I rowsort
SELECT ALL + 10 - - 45 AS col2 FROM tab1 cor0
----
55
55
55

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5830
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + + COUNT( * ) + - COUNT( * ) * - COUNT( * ) AS col2, - 12 AS col0 FROM tab1 cor0
----
3
-12

skipif mysql # not compatible
query II rowsort label-5830
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) AS col2, - 12 AS col0 FROM tab1 cor0
----
3
-12

query I rowsort
SELECT - 35 - col1 FROM tab1 AS cor0
----
-40
-49
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT ALL - 31 * - + ( COUNT( - - col0 ) ) * - MAX( ALL + ( col0 ) ) / - - 44 + 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-5832
SELECT ALL - 31 * - + ( COUNT ( - - col0 ) ) * - MAX ( ALL + ( col0 ) ) / - - 44 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5833
SELECT - ( - CAST( + ( - + 43 ) AS SIGNED ) ) - + - col1 AS col0 FROM tab1 AS cor0
----
-29
-38
4

skipif mysql # not compatible
query I rowsort label-5833
SELECT - ( - CAST ( + ( - + 43 ) AS INTEGER ) ) - + - col1 AS col0 FROM tab1 AS cor0
----
-29
-38
4

query I rowsort
SELECT DISTINCT 15 + + + 27 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT + + ( + + col1 ) * - + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5836
SELECT CAST( NULL AS SIGNED ) + + col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5836
SELECT CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT + ( - + col0 ) FROM tab2 WHERE ( + CAST( 53 AS SIGNED ) / + col2 ) > - col2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5837
SELECT + ( - + col0 ) FROM tab2 WHERE ( + CAST ( 53 AS INTEGER ) / + col2 ) > - col2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT ALL 12 DIV - SUM( - + col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL 12 / - SUM ( - + col0 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - 4 + COUNT( * ) * + 70 col2 FROM tab1
----
206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5840
SELECT - 4 + COUNT ( * ) * + 70 col2 FROM tab1
----
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - + 79 ) FROM tab2
----
-79
-79
-79

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 IN ( - col0 * + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5844
SELECT ALL * FROM tab0 WHERE NOT - - CAST( NULL AS DECIMAL ) NOT IN ( - - 23 * col2 + + 53 )
----

skipif mysql # not compatible
query III rowsort label-5844
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( NULL AS REAL ) NOT IN ( - - 23 * col2 + + 53 )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT + ( - col1 ) * - 76 AS col0 FROM tab0 AS cor0
----
1596
6156
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT - - col1 DIV col0 * + col1 FROM tab2 AS cor0
----
0
51
77

skipif mysql # not compatible
query I rowsort label-5847
SELECT - - col1 / col0 * + col1 FROM tab2 AS cor0
----
0
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL 56 * - + MAX( + 18 ) FROM tab1 AS cor0
----
-1008

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL 56 * - + MAX ( + 18 ) FROM tab1 AS cor0
----
-1008

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT + 55 + - - 36 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 col2 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT - 93 * - 67 FROM tab0 AS cor0
----
6231
6231
6231

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT DISTINCT + + 89 * 51 * col0 FROM tab0 AS cor0
----
394893
440283
68085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT DISTINCT - 58 DIV + 79 * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - 58 / + 79 * + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT DISTINCT + 88 DIV - col2 col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5858
SELECT DISTINCT + 88 / - col2 col0 FROM tab1 cor0
----
-1
0

query II rowsort
SELECT DISTINCT + 76, - col1 AS col2 FROM tab1
----
76
-14
76
-47
76
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT ALL COUNT( * ) * - + 80 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL COUNT ( * ) * - + 80 FROM tab0
----
-240

query I rowsort
SELECT ALL 16 + - - col1 FROM tab2
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT 75 * COUNT( * ) + - 88 FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-5862
SELECT 75 * COUNT ( * ) + - 88 FROM tab1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT - MAX( + + 71 ) col1 FROM tab2
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5863
SELECT - MAX ( + + 71 ) col1 FROM tab2
----
-71

query I rowsort
SELECT DISTINCT col2 * - + 51 + col1 - - col2 FROM tab1
----
-2945
-3353
-4786

query I rowsort
SELECT ALL col1 + + - col0 + + col1 * + ( - 54 ) FROM tab2
----
-2749
-3626
-4145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + col0 col1 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + + col2 + col2 + - - CAST( NULL AS SIGNED ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + + col2 + col2 + - - CAST ( NULL AS INTEGER ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - 48 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-48
23
-48
40
-48
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 97 NOT IN ( - - 54, 63, - col1, col1 * - ( + col1 ), + col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5870
SELECT - CAST( NULL AS SIGNED ) col2, + col2 * + ( - col1 ) AS col1 FROM tab2 cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5870
SELECT - CAST ( NULL AS INTEGER ) col2, + col2 * + ( - col1 ) AS col1 FROM tab2 cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

query I rowsort
SELECT + col2 * 10 + + ( - - 41 ) FROM tab0
----
1031
141
511

query I rowsort
SELECT DISTINCT col1 + 22 AS col0 FROM tab1
----
27
36
69

query II rowsort
SELECT + 86 * - col1 + 43 + + col2 AS col1, + col2 * + 45 FROM tab2 AS cor0
----
-4320
1035
-5661
2610
-6539
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT DISTINCT + 30 DIV - - col1 + + col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + 30 / - - col1 + + col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL + col1 + - col2 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL >= - col2 * + + CAST( NULL AS SIGNED ) + col0 + + col0 + CAST( NULL AS SIGNED ) * + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + col1 + - col2 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL >= - col2 * + + CAST ( NULL AS INTEGER ) + col0 + + col0 + CAST ( NULL AS INTEGER ) * + - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + col2
----

query I rowsort
SELECT ALL - col0 + 72 AS col2 FROM tab2 AS cor0
----
-3
26
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT ALL 52 / + col2 - - - 90 + ( + - CAST( NULL AS SIGNED ) ) + - 46 * col2 + - - col0 + - + col2 * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL 52 / + col2 - - - 90 + ( + - CAST ( NULL AS INTEGER ) ) + - 46 * col2 + - - col0 + - + col2 * col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT DISTINCT - 45 - + COUNT( - col2 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT - 45 - + COUNT ( - col2 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + ( - 3 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col0 + col1 / 6 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT + SUM( - + CAST( + col0 AS SIGNED ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5883
SELECT + SUM ( - + CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT MAX( - - 36 ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT MAX ( - - 36 ) AS col1 FROM tab1
----
36

query I rowsort
SELECT DISTINCT col1 * 26 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + ( + - col2 ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT - - COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5887
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT - 20 * + COUNT( * ) + - 53 AS col2 FROM tab1 cor0
----
-113

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT - 20 * + COUNT ( * ) + - 53 AS col2 FROM tab1 cor0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT + 51 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + 51 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT - 31 DIV 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5890
SELECT - 31 / 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT COUNT( * ) AS col0, - MIN( ALL + + 38 ) FROM tab1
----
3
-38

skipif mysql # not compatible
query II rowsort label-5891
SELECT COUNT ( * ) AS col0, - MIN ( ALL + + 38 ) FROM tab1
----
3
-38

query II rowsort
SELECT + 92, 93 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT ALL 85 + - 65 DIV - 72 * - 50 AS col0 FROM tab0 cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL 85 + - 65 / - 72 * - 50 AS col0 FROM tab0 cor0
----
85
85
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5894
SELECT DISTINCT + + 0 * + COUNT( * ) * - - 75 DIV + + 1 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5894
SELECT DISTINCT + + 0 * + COUNT ( * ) * - - 75 / + + 1 col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 59 + + + 68 / - col0 < NULL
----

query I rowsort
SELECT DISTINCT - - ( + - 53 ) * + 44 AS col2 FROM tab2 AS cor0
----
-2332

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + 95 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 71 * col0 + - col1 FROM tab1 AS cor0
----
3607
6030
6414

query I rowsort
SELECT + col2 * + 93 * + col1 AS col1 FROM tab2 AS cor0
----
109089
286440
361398

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + 11 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT DISTINCT + col2 DIV col2 * + col0 + - - col1 AS col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT + col2 / col2 * + col0 + - - col1 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - 90 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT + 52 + - MAX( 19 ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + 52 + - MAX ( 19 ) AS col2 FROM tab0
----
33

query I rowsort
SELECT col0 + - 85 FROM tab1 AS cor0
----
-34
0
6

query I rowsort
SELECT DISTINCT col0 - - - 77 FROM tab1 AS cor0
----
-26
14
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT + + SUM( DISTINCT + col1 ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT + + SUM ( DISTINCT + col1 ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) - + col0 col1 FROM tab0
----
-174
-194
-30

query III rowsort
SELECT * FROM tab0 WHERE - 81 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5911
SELECT * FROM tab0 AS cor0 WHERE col1 * + 85 NOT BETWEEN NULL AND ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5911
SELECT * FROM tab0 AS cor0 WHERE col1 * + 85 NOT BETWEEN NULL AND ( + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5912
SELECT * FROM tab1 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5912
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL 61 + + + COUNT( * ) FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL 61 + + + COUNT ( * ) FROM tab0 cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5914
SELECT ALL col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5914
SELECT ALL col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT DISTINCT - + COUNT( DISTINCT 41 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT - + COUNT ( DISTINCT 41 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5916
SELECT + MIN ( - col2 ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT DISTINCT - - col0, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5918
SELECT ALL + col2 col0, + 41 - - col1 + - - col2 * - + 80 + + col0 DIV + ( - - col0 ) col0 FROM tab2 AS cor0
----
23
-1747
40
-3081
58
-4531

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5918
SELECT ALL + col2 col0, + 41 - - col1 + - - col2 * - + 80 + + col0 / + ( - - col0 ) col0 FROM tab2 AS cor0
----
23
-1747
40
-3081
58
-4531

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 74
----

query I rowsort
SELECT - col1 - - - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - 25 ) IS NULL
----

query I rowsort
SELECT + col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL + + col0 + - + 85 * col0 AS col0 FROM tab1 AS cor0 WHERE - col2 BETWEEN col2 AND 81
----

query I rowsort
SELECT - col2 + 63 + 6 AS col0 FROM tab0 cor0
----
-30
22
59

query I rowsort
SELECT DISTINCT 59 + + + col2 AS col2 FROM tab0 AS cor0
----
106
158
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT + COUNT( * ) + 93 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5926
SELECT + COUNT ( * ) + 93 FROM tab0 AS cor0
----
96

query I rowsort
SELECT - + col1 + - + ( + col2 ) + - col1 * + - col1 FROM tab1 AS cor0
----
-39
2094
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col0 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT - col0 / + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT + MAX( + 58 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT + MAX ( + 58 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT DISTINCT + col0 + - + 54 AS col0 FROM tab1
----
-3
31
37

onlyif mysql # DIV for integer division: 
query II rowsort label-5932
SELECT + col2 DIV - col0 AS col0, + col0 * - 2 * + 69 * + col2 AS col1 FROM tab2
----
0
-146004
0
-353280
0
-600300

skipif mysql # not compatible
query II rowsort label-5932
SELECT + col2 / - col0 AS col0, + col0 * - 2 * + 69 * + col2 AS col1 FROM tab2
----
0
-146004
0
-353280
0
-600300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5933
SELECT - CAST( - - col2 AS SIGNED ) DIV + 26 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5933
SELECT - CAST ( - - col2 AS INTEGER ) / + 26 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL ( - 71 ) AS col1 FROM tab0
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT DISTINCT col2 * - 80 + col1 DIV - + col2 FROM tab2 AS cor0
----
-1842
-3201
-4641

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT col2 * - 80 + col1 / - + col2 FROM tab2 AS cor0
----
-1842
-3201
-4641

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5936
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2 * - - 78
----

skipif mysql # not compatible
query III rowsort label-5936
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2 * - - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT + + MAX( DISTINCT + - col2 ) AS col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + + MAX ( DISTINCT + - col2 ) AS col2 FROM tab2 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 48 col0 FROM tab2
----
106
71
88

query I rowsort
SELECT ALL - 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5940
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT col0 + + ( + + col1 ) AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL 31 AS col2 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT ALL + - ( - + 97 ) FROM tab2 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
97
97
97

query I rowsort
SELECT ALL 52 AS col1 FROM tab1 cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT - - ( - 24 ) * - MAX( - col0 ) FROM tab2 cor0
----
-1104

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - - ( - 24 ) * - MAX ( - col0 ) FROM tab2 cor0
----
-1104

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - col2 * col1 IS NOT NULL
----

query II rowsort
SELECT 83, col2 FROM tab0
----
83
10
83
47
83
99

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - MAX( ALL col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - MAX ( ALL col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT + COUNT( DISTINCT 49 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT + COUNT ( DISTINCT 49 ) AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5951
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 WHERE + + 76 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 WHERE + + 76 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN NULL AND + col1 + - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5953
SELECT 50 DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5953
SELECT 50 / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col0 ) * - col1 * + col2 IS NOT NULL
----

query II rowsort
SELECT + col0 * + col2 + + 3 AS col0, - col2 FROM tab0 AS cor0
----
708
-47
873
-10
9606
-99

query I rowsort
SELECT + - col0 + + - col0 + + col0 * + 42 AS col1 FROM tab2 AS cor0
----
1840
2560
3000

query I rowsort
SELECT col0 + col1 * - col0 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT + col0 + - col0 * - col1 AS col1 FROM tab0
----
1230
1914
194

query I rowsort
SELECT ALL - 80 AS col1 FROM tab1 WHERE - 54 + + col0 IS NOT NULL
----
-80
-80
-80

query I rowsort
SELECT - 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT + CAST( + + COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5961
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE 3 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + + COUNT( - + 91 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + + COUNT ( - + 91 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 2 / col1 IS NULL
----

query I rowsort
SELECT 9 * + 7 + - 81 AS col0 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 WHERE - - 42 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT col2 * + col1 + - col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5967
SELECT col2 * + col1 + - col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 53 * - col2 AS col2 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT 93 + + col2 AS col1 FROM tab2
----
116
133
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT - 21 + + col0 AS col0 FROM tab0
----
-6
66
76

query I rowsort
SELECT 38 FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND + col1 * - col0
----

query I rowsort
SELECT DISTINCT + + col0 + ( - ( + col1 ) ) FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col2 / col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 92 - + ( col2 ) + - col1 FROM tab1 AS cor0
----
-18
-23
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT DISTINCT 22 DIV + + COUNT( * ) - + + 39 col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5976
SELECT DISTINCT 22 / + + COUNT ( * ) - + + 39 col0 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + 39 + + 65 FROM tab0 AS cor0 WHERE - 48 >= NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, 69 + + 69 FROM tab2
----
23
138
40
138
58
138

onlyif mysql # DIV for integer division: 
query II rowsort label-5979
SELECT - col1 DIV - 52, - col1 + - - col0 AS col0 FROM tab1
----
0
37
0
44
0
80

skipif mysql # not compatible
query II rowsort label-5979
SELECT - col1 / - 52, - col1 + - - col0 AS col0 FROM tab1
----
0
37
0
44
0
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5980
SELECT * FROM tab2 cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5980
SELECT * FROM tab2 cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 27 ) * col0 FROM tab1 AS cor0
----
1377
2295
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT + COUNT( - 30 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT + COUNT ( - 30 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + - MAX( DISTINCT - 11 ) col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5983
SELECT + - MAX ( DISTINCT - 11 ) col1 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT COUNT( * ) * + 28 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5984
SELECT COUNT ( * ) * + 28 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 * - col2 + - + 62 col2 FROM tab2 AS cor0
----
-246
-382
-526

query II rowsort
SELECT - + 68 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-68
1
-68
21
-68
81

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL >= - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT ALL COUNT( * ) FROM tab0 WHERE - col0 * + + col0 * + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col0 * + + col0 * + - col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT + 23 DIV + + 41 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + 23 / + + 41 FROM tab1
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 57 * + col1 AS col0, col2 AS col0 FROM tab1 cor0
----
2679
68
285
59
798
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT 41 * - CAST( - 60 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2460
2460
2460

skipif mysql # not compatible
query I rowsort label-5992
SELECT 41 * - CAST ( - 60 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2460
2460
2460

query I rowsort
SELECT - ( - col2 ) * + col2 AS col0 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT ALL - col0 + - col0 + - 52 FROM tab1 AS cor0
----
-154
-222
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL + COUNT( * ) * 54 * - 61 AS col2 FROM tab1 AS cor0
----
-9882

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + COUNT ( * ) * 54 * - 61 AS col2 FROM tab1 AS cor0
----
-9882

query I rowsort
SELECT ALL col0 * - 15 FROM tab2 AS cor0
----
-1125
-690
-960

query I rowsort
SELECT DISTINCT + + 39 * + 41 * col1 * + col2 FROM tab2 cor0
----
1875627
4924920
6213714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + col0 * + - col0 AS col0 FROM tab0
----
1
-9409
21
-7569
81
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5999
SELECT ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-6000
SELECT ALL - ( col2 ) + + col1 DIV + 53 AS col2, col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif mysql # not compatible
query II rowsort label-6000
SELECT ALL - ( col2 ) + + col1 / + 53 AS col2, col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT - 93 + - - COUNT( * ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - 93 + - - COUNT ( * ) FROM tab0 AS cor0
----
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6004
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + + + col2 + + col0 AND col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 49 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - ( + - col2 ) AS col0 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 76 <= - + col2 * - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT - ( MIN( ALL + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT - ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 90 * + col2 col1 FROM tab0
----
-18900
-342630
-8910

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT MIN( ALL + ( + ( + col2 ) ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT MIN ( ALL + ( + ( + col2 ) ) ) FROM tab2
----
23

query I rowsort
SELECT ALL col1 * - col0 + + + col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - - ( 11 ) + col2 AS col1 FROM tab0 AS cor0
----
110
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL - 19 * + COUNT( * ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - 19 * + COUNT ( * ) AS col1 FROM tab0
----
-57

query II rowsort
SELECT + 79 AS col2, + col1 * col1 * + col2 FROM tab2
----
79
237160
79
260362
79
59823

query I rowsort
SELECT 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * - + COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-27

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT DISTINCT - 27 * - - CAST( 51 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1377

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT - 27 * - - CAST ( 51 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1377

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6020
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6020
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col1 * + + col2 FROM tab1 cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 * col1 * - col1 AS col1, + 72 * + + 65 col1 FROM tab2 AS cor0
----
-197676
4680
-341164
4680
-450604
4680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6023
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST( col2 AS SIGNED ) * 64 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6023
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST ( col2 AS INTEGER ) * 64 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT + SUM( ALL + 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6025
SELECT + SUM ( ALL + 77 ) FROM tab0 AS cor0
----
231

query I rowsort
SELECT ALL - col0 * 26 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

query I rowsort
SELECT ALL + 96 * - col0 AS col1 FROM tab1
----
-4896
-8160
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT DISTINCT MAX( DISTINCT - col2 ) - + ( + + COUNT( DISTINCT - col0 ) ) FROM tab0 WHERE ( NOT col0 <= + + col0 / - col0 * col0 + + col1 )
----
-12

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT MAX ( DISTINCT - col2 ) - + ( + + COUNT ( DISTINCT - col0 ) ) FROM tab0 WHERE ( NOT col0 <= + + col0 / - col0 * col0 + + col1 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT DISTINCT 36 * + + COUNT( * ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT 36 * + + COUNT ( * ) AS col0 FROM tab0
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-6030
SELECT ALL col1 DIV + - col2 + - - 55 * - 8 AS col1, - col1 - 18 FROM tab1
----
-440
-23
-440
-32
-440
-65

skipif mysql # not compatible
query II rowsort label-6030
SELECT ALL col1 / + - col2 + - - 55 * - 8 AS col1, - col1 - 18 FROM tab1
----
-440
-23
-440
-32
-440
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT col0 + - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT col0 + - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL - MIN( + col2 ) * 25 AS col1 FROM tab1 cor0
----
-1475

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - MIN ( + col2 ) * 25 AS col1 FROM tab1 cor0
----
-1475

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT + + 96 * + COUNT( * ) + - + 73 FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT + + 96 * + COUNT ( * ) + - + 73 FROM tab2 AS cor0
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL + COUNT( * ) * + 40 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + COUNT ( * ) * + 40 FROM tab1 AS cor0
----
120

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - col2, col2 col2 FROM tab0
----
-98
99
11
10
34
47

query I rowsort
SELECT + col0 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) > NULL
----

query I rowsort
SELECT DISTINCT + col2 - + - 42 + - 84 AS col2 FROM tab2 cor0
----
-19
-2
16

query II rowsort
SELECT - + 43 - col1, col1 FROM tab1 AS cor0
----
-48
5
-57
14
-90
47

query I rowsort
SELECT + col2 * + col2 + - - 50 * col0 + col0 + - - col2 * + + col1 AS col1 FROM tab1
----
12461
13161
8111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) * col0 + - col0 / - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) * col0 + - col0 / - + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 62 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 74 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - col1 * - 36 AS col2 FROM tab2 cor0
----
1836
2412
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT col0 DIV col0 + - col2 + - + col1 * + 12 + ( - + col2 ) DIV 16 AS col1 FROM tab0 AS cor0
----
-1020
-116
-261

skipif mysql # not compatible
query I rowsort label-6046
SELECT col0 / col0 + - col2 + - + col1 * + 12 + ( - + col2 ) / 16 AS col1 FROM tab0 AS cor0
----
-1020
-116
-261

query I rowsort
SELECT + 97 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - col1 * - 2 AS col2 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6049
SELECT DISTINCT COUNT( * ) * - 6 DIV 27 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT COUNT ( * ) * - 6 / 27 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL + col1 / + col0 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + col1 / + col0 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 FROM tab2 cor0 WHERE NOT - ( + + 80 ) * - + 57 NOT BETWEEN + col1 AND + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 1 IN ( - 26, + 27 + + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 86 col0 FROM tab0 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL + ( + - COUNT( + ( + - col1 ) ) ) FROM tab1 WHERE + col0 / - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL + ( + - COUNT ( + ( + - col1 ) ) ) FROM tab1 WHERE + col0 / - - col2 IS NULL
----
0

query II rowsort
SELECT ALL - col2 AS col1, col1 + - 98 FROM tab1 WHERE NULL BETWEEN NULL AND + col2 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT + CAST( + col2 AS SIGNED ) + col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-6057
SELECT + CAST ( + col2 AS INTEGER ) + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT 7 + + col2 FROM tab2
----
30
47
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT + 7 AS col1, - MIN( ALL + 29 ) FROM tab2
----
7
-29

skipif mysql # not compatible
query II rowsort label-6059
SELECT + 7 AS col1, - MIN ( ALL + 29 ) FROM tab2
----
7
-29

query I rowsort
SELECT 23 * - - col0 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT + + col2 + + col1 AS col2 FROM tab2 AS cor0 WHERE ( 81 * col2 / col0 + + - 92 ) BETWEEN ( NULL ) AND 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT ALL - ( - ( + col1 ) ) DIV + - col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - ( - ( + col1 ) ) / + - col1 FROM tab1 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - + col1 * col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 col0 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL - - COUNT( * ) * + - 70 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - - COUNT ( * ) * + - 70 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + col0 / + col2 * + 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT ALL - col2 DIV + 50 - + 73 FROM tab2 AS cor0
----
-73
-73
-74

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - col2 / + 50 - + 73 FROM tab2 AS cor0
----
-73
-73
-74

query I rowsort
SELECT ALL col0 - + + 86 * - + col0 FROM tab2 AS cor0
----
4002
5568
6525

query I rowsort
SELECT + - 83 AS col2 FROM tab0 AS cor0 WHERE 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6071
SELECT - MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col1 - + col0 + - col2 FROM tab1
----
-112
-133
-139

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 36 ) FROM tab2
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT MAX( ( - + col0 ) ) * + ( - - COUNT( * ) ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6075
SELECT MAX ( ( - + col0 ) ) * + ( - - COUNT ( * ) ) FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT - 56 DIV - col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 56 / - col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT + col0 * - col2 * col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT ALL - 4 DIV 95 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - 4 / 95 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT - col2 AS col2, - col1 + + - ( - 26 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 14 FROM tab1
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - MIN( ALL + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6082
SELECT - MIN ( ALL + col1 ) AS col2 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6084
SELECT DISTINCT + COUNT( * ), 46 DIV SUM( + col2 ) + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6084
SELECT DISTINCT + COUNT ( * ), 46 / SUM ( + col2 ) + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT - col1 * + 83 * col2 + + col2 - - col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-17410
-315887
-8019

skipif mysql # not compatible
query I rowsort label-6085
SELECT - col1 * + 83 * col2 + + col2 - - col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-17410
-315887
-8019

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT - + MIN( DISTINCT col2 ) + + 52 FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT - + MIN ( DISTINCT col2 ) + + 52 FROM tab0 cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT 21 DIV col1 * - 21 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT 21 / col1 * - 21 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - SUM( DISTINCT 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT - SUM ( DISTINCT 0 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - + 84 < NULL
----

query I rowsort
SELECT ALL col2 * - col1 + col2 AS col2 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT ALL - col2 + - col1 * 71 + + + ( - 97 ) FROM tab0
----
-1598
-267
-5895

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6093
SELECT * FROM tab2 WHERE - + col2 * + + 44 = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6093
SELECT * FROM tab2 WHERE - + col2 * + + 44 = - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + ( + 90 ) AS col1 FROM tab0 AS cor0
----
69
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL + COUNT( ALL - 74 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + COUNT ( ALL - 74 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT + COUNT( + 93 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT + COUNT ( + 93 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT + SUM( - ( + col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + SUM ( - ( + col1 ) ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + - 56 - - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-6101
SELECT + - 56 - - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query I rowsort
SELECT ALL + + 96 + + + col1 * + - col0 AS col2 FROM tab0 cor0
----
-1
-1119
-1731

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + - COUNT( * ) - 13 FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6103
SELECT + - COUNT ( * ) - 13 FROM tab0 cor0
----
-16

query I rowsort
SELECT DISTINCT col1 + + - col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 23 - + 86 * + - col2 AS col0 FROM tab2 AS cor0
----
2001
3463
5011

query I rowsort
SELECT ALL - ( - 95 ) * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1995
7695
95

query I rowsort
SELECT DISTINCT + col1 - + 58 + + col1 AS col2 FROM tab2 AS cor0
----
44
76
96

query I rowsort
SELECT + ( - - col2 ) * col2 * + col1 - - col2 FROM tab1 AS cor0
----
129120
17464
217396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + 58 col2 FROM tab1 AS cor0
----
-11
-44
-53

query I rowsort
SELECT DISTINCT - col0 + col2 * + 5 * + col2 FROM tab2 AS cor0
----
16745
2599
7936

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6111
SELECT ALL + CAST( NULL AS DECIMAL ) * + COUNT( * ) + - MIN( col1 ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6111
SELECT ALL + CAST ( NULL AS REAL ) * + COUNT ( * ) + - MIN ( col1 ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( ( - ( 65 ) ) ) AS col1 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - ( - + 89 ) ) >= + - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT ALL CAST( 17 AS SIGNED ) AS col0 FROM tab2
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL CAST ( 17 AS INTEGER ) AS col0 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL - COUNT( ALL col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - COUNT ( ALL col2 ) FROM tab0
----
-3

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col2 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 47 * - 89 AS col1 FROM tab0
----
-4183
-4183
-4183

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT DISTINCT + ( - col0 ) DIV - - col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + ( - col0 ) / - - col1 FROM tab2
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 35 * 50 col0 FROM tab1
----
-148750
-159250
-89250

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT + MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6121
SELECT + MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT - MIN( DISTINCT + - 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73

skipif mysql # not compatible
query I rowsort label-6122
SELECT - MIN ( DISTINCT + - 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT + - AVG ( ALL - 93 ) * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT + - AVG ( ALL - 93 ) * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * 5 FROM tab2 cor0
----
-255
-335
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + MAX( ALL - + col2 ) + 96 AS col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + MAX ( ALL - + col2 ) + 96 AS col2 FROM tab1 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + 67 FROM tab0 AS cor0 WHERE NOT col0 + - ( + 28 ) - - - col1 / col1 BETWEEN NULL AND + 88 - - col0
----

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + 67 FROM tab0 AS cor0 WHERE NOT col0 + - ( + 28 ) - - - col1 / col1 BETWEEN NULL AND + 88 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL + SUM( ALL + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6127
SELECT ALL + SUM ( ALL + col2 ) col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col1 / - + col0 + - 70 + - + col1 + 78 AS col0 FROM tab2 AS cor0 WHERE - col0 > 13
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT DISTINCT COUNT( DISTINCT 68 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT COUNT ( DISTINCT 68 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 58 + - col1 + ( + - col2 ) * + col0 + - 19 FROM tab0
----
-747
-852
-9565

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) + - - 53 + + 51 - + col2 * + + col0 FROM tab1
----
-4806
-4916
-6131

query II rowsort
SELECT + + col0 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL + + 27 * + col0 AS col2 FROM tab1 AS cor0
----
1377
2295
2457

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( 57 )
----

query I rowsort
SELECT 77 * + 34 AS col2 FROM tab2
----
2618
2618
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > 10 + 82
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col0 ) NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col1 * col1 FROM tab2 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT + 92 * ( + col0 ) FROM tab2
----
4232
5888
6900

query I rowsort
SELECT ALL col2 * 58 FROM tab1
----
3422
3944
5568

query I rowsort
SELECT ALL - col2 * + ( col2 ) AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT + 99 + + ( + COUNT( * ) ) DIV - SUM( + col0 * - 5 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6145
SELECT + 99 + + ( + COUNT ( * ) ) / - SUM ( + col0 * - 5 ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN ( 94 ) AND col2
----

query I rowsort
SELECT DISTINCT 42 FROM tab2 WHERE ( col1 ) IS NOT NULL
----
42

query I rowsort
SELECT DISTINCT + col0 + + 54 FROM tab1
----
105
139
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT DISTINCT + COUNT( * ) + + 39 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT + COUNT ( * ) + + 39 AS col1 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT - MIN( ALL col0 ) + - 21 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-6150
SELECT - MIN ( ALL col0 ) + - 21 FROM tab0
----
-36

query I rowsort
SELECT 54 FROM tab0 WHERE NULL IS NULL
----
54
54
54

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NULL IN ( - 69 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( ( col0 ) ) + + 33 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * 40 + col1 FROM tab1 AS cor0
----
1927
205
574

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT col0 AS col0 FROM tab2 WHERE NOT + col1 + - col2 * CAST( NULL AS SIGNED ) NOT IN ( - 59 )
----

skipif mysql # not compatible
query I rowsort label-6156
SELECT col0 AS col0 FROM tab2 WHERE NOT + col1 + - col2 * CAST ( NULL AS INTEGER ) NOT IN ( - 59 )
----

query I rowsort
SELECT DISTINCT col1 * col0 + - 84 AS col1 FROM tab2
----
2262
4844
4941

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT ALL 50 + + ( + 88 + + 82 ) DIV - 90 AS col2 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL 50 + + ( + 88 + + 82 ) / - 90 AS col2 FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-6159
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT ALL ( col1 ) * + col2 AS col0 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT - col0 * - 60 AS col2 FROM tab2 cor0
----
2760
3840
4500

query I rowsort
SELECT ALL col2 + - col1 FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE col2 + 14 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT ALL + 27 + - col2 AS col2 FROM tab2 AS cor0
----
-13
-31
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 48 + - col2 <= col0 + col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 * - col1 FROM tab0 AS cor0
----
1617
6237
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( col2 + + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6169
SELECT + MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT 9 * col2 AS col2 FROM tab1 AS cor0
----
531
612
864

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6171
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( CAST( col1 AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query III rowsort label-6171
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( CAST ( col1 AS INTEGER ) / col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 < - 28 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT - 90 DIV col1 FROM tab0 AS cor0
----
-1
-4
-90

skipif mysql # not compatible
query I rowsort label-6173
SELECT - 90 / col1 FROM tab0 AS cor0
----
-1
-4
-90

query I rowsort
SELECT - 36 * + col2 FROM tab0
----
-1692
-3564
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + MAX( col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6175
SELECT + MAX ( col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT 12 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 48 + + col0 + 87 AS col2 FROM tab1
----
186
220
226

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 39 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT SUM( ALL 90 ) * 82 FROM tab0 WHERE NULL IS NULL
----
22140

skipif mysql # not compatible
query I rowsort label-6180
SELECT SUM ( ALL 90 ) * 82 FROM tab0 WHERE NULL IS NULL
----
22140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6181
SELECT ALL CAST( - + col0 AS SIGNED ) + col1 DIV + col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL CAST ( - + col0 AS INTEGER ) + col1 / + col0 AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT - + col0 + + 82 DIV - 75 AS col1 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6182
SELECT - + col0 + + 82 / - 75 AS col1 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT - + COUNT( 74 ) DIV 5 + + 28 AS col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6183
SELECT - + COUNT ( 74 ) / 5 + + 28 AS col0 FROM tab1 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + CAST( col1 + - col2 * 58 AS SIGNED ) * 36 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + CAST ( col1 + - col2 * 58 AS INTEGER ) * 36 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT 98 AS col0 FROM tab0 AS cor0 WHERE col1 >= + col2
----
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 cor0 WHERE + 47 * col0 + ( ( - col1 ) ) * 1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 cor0 WHERE + 47 * col0 + ( ( - col1 ) ) * 1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL 36 AS col1 FROM tab1 AS cor0 WHERE NOT 18 BETWEEN ( - col1 ) AND col1 - col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL 36 AS col1 FROM tab1 AS cor0 WHERE NOT 18 BETWEEN ( - col1 ) AND col1 - col0 * CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) NOT IN ( - 61 )
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + col2 NOT IN ( col2 )
----

query II rowsort
SELECT ALL + col0, ( col2 ) FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 3 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6193
SELECT - ( CAST( + MIN( - 82 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6193
SELECT - ( CAST ( + MIN ( - 82 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT 72 * - MAX( col1 ) AS col2 FROM tab0 AS cor0
----
-5832

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT 72 * - MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col0 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6196
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) * + - 40 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) * + - 40 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6197
SELECT + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - - col0 * + col1 * - col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT ALL - ( - AVG ( ALL - - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL - ( - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT ALL + CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT DISTINCT - col2 * - col1 AS col0, + 46 * col1 FROM tab1
----
1344
644
295
230
3196
2162

query III rowsort
SELECT * FROM tab2 WHERE NOT - 48 + + - 52 + + col1 / 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col1 + 31 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + 93 * 42 * COUNT( * ) FROM tab1
----
11718

skipif mysql # not compatible
query I rowsort label-6204
SELECT + 93 * 42 * COUNT ( * ) FROM tab1
----
11718

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6205
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT + CAST( + - col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6206
SELECT + CAST ( + - col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6207
SELECT DISTINCT col0 + col2 AS col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - 29 NOT IN ( 47 )
----

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT col0 + col2 AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - 29 NOT IN ( 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 * - col1 col1 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT DISTINCT - 9 * - + 43 FROM tab2 AS cor0
----
387

query I rowsort
SELECT 73 FROM tab0 AS cor0 WHERE NOT col1 * - 32 * + col1 = NULL
----

query I rowsort
SELECT DISTINCT 55 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ) + + 76 col2, + 86 FROM tab0
----
-5
86
55
86
75
86

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + 67 ) IS NULL ) OR NOT + col1 * - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 41 * - - col0 + 44 - + - 42 + + - ( col0 ) AS col1 FROM tab1 AS cor0
----
2126
3486
3726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT - COUNT( ALL - ( - col0 ) ) DIV + + 98 + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6215
SELECT - COUNT ( ALL - ( - col0 ) ) / + + 98 + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 62 - col1 * + col2 FROM tab0 cor0 WHERE ( NULL ) <= ( + - col1 + ( - 2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT DISTINCT + + 62 DIV + 13 + - + col0 * - 16 * ( + col0 ) FROM tab0 AS cor0
----
121108
150548
3604

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + + 62 / + 13 + - + col0 * - 16 * ( + col0 ) FROM tab0 AS cor0
----
121108
150548
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT + 59 + COUNT( * ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT + 59 + COUNT ( * ) FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT + CAST( - ( + col0 ) AS SIGNED ) + + - ( + + col1 ) + col2 AS col2 FROM tab1 cor0
----
-31
-70
31

skipif mysql # not compatible
query I rowsort label-6220
SELECT + CAST ( - ( + col0 ) AS INTEGER ) + + - ( + + col1 ) + col2 AS col2 FROM tab1 cor0
----
-31
-70
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6221
SELECT ( + CAST( + - ( + - 31 ) AS SIGNED ) ) + + MAX( ALL col1 ) FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-6221
SELECT ( + CAST ( + - ( + - 31 ) AS INTEGER ) ) + + MAX ( ALL col1 ) FROM tab0 AS cor0
----
112

query I rowsort
SELECT - col0 + + 96 AS col1 FROM tab2 AS cor0
----
21
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT + MAX( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT ( + 11 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT ( + 11 ) <= ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - + col0 + + 88 * - col1 FROM tab2 AS cor0
----
-4534
-5971
-6840

query I rowsort
SELECT + 13 * - col1 FROM tab2 WHERE ( NOT NULL < - 40 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 + - - col1 AS col1 FROM tab1
----
125
83
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT ALL - 22, COUNT( DISTINCT - - ( ( 6 ) ) ) AS col1 FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND NULL
----
-22
0

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL - 22, COUNT ( DISTINCT - - ( ( 6 ) ) ) AS col1 FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND NULL
----
-22
0

query I rowsort
SELECT - col1 * - 42 FROM tab0
----
3402
42
882

query II rowsort
SELECT 72, + ( - col2 ) AS col2 FROM tab0
----
72
-10
72
-47
72
-99

query I rowsort
SELECT + ( + 72 ) * + 60 * - col2 AS col1 FROM tab0
----
-203040
-427680
-43200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT - CAST( col2 AS SIGNED ) FROM tab1 WHERE ( ( + col1 IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-6232
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 WHERE ( ( + col1 IS NULL ) )
----

query I rowsort
SELECT DISTINCT - col0 + - + 41 + - col0 + 13 FROM tab2 AS cor0
----
-120
-156
-178

query I rowsort
SELECT ALL 35 + + 17 FROM tab0 AS cor0
----
52
52
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) + - - ( + + col1 ) >= NULL
----

query I rowsort
SELECT + col2 * + + col1 + + col1 AS col2 FROM tab0
----
100
231
3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6238
SELECT DISTINCT + COUNT( * ) + ( COUNT( * ) ) DIV 90 FROM tab2 WHERE NULL NOT IN ( - 81, ( + + col0 ) * + 46 * + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) / 90 FROM tab2 WHERE NULL NOT IN ( - 81, ( + + col0 ) * + 46 * + + col2 )
----
0

query I rowsort
SELECT DISTINCT 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT DISTINCT 94 FROM tab1 WHERE NOT + - CAST( ( col1 ) AS SIGNED ) NOT BETWEEN NULL AND + + ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT 94 FROM tab1 WHERE NOT + - CAST ( ( col1 ) AS INTEGER ) NOT BETWEEN NULL AND + + ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 11 * col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 46 ) + - 32 BETWEEN - 60 + col1 - + col1 + + col1 * col2 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT + COUNT( * ) * - COUNT( * ) AS col2, + SUM( - 22 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6243
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, + SUM ( - 22 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

query II rowsort
SELECT + ( - col2 ), col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT DISTINCT col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6246
SELECT DISTINCT * FROM tab2 WHERE + col2 - + col2 NOT BETWEEN - col2 + - ( CAST( - col0 AS DECIMAL ) ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6246
SELECT DISTINCT * FROM tab2 WHERE + col2 - + col2 NOT BETWEEN - col2 + - ( CAST ( - col0 AS REAL ) ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + 12 FROM tab2
----
58
76
87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 * - + col0 + col1 ) NOT BETWEEN ( NULL ) AND - - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + + COUNT( col2 ) + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6249
SELECT + + COUNT ( col2 ) + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 96 ) * - col2 col1 FROM tab0 cor0
----
4512
9504
960

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + 31 ) AS col0 FROM tab2, tab1 AS cor0
----
-31

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 * + col2 = - ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 + col1 AND ( + - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL COUNT( * ) + - 86 FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL COUNT ( * ) + - 86 FROM tab2 cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6257
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) + + col2 NOT BETWEEN NULL AND 80 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6257
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + + col2 NOT BETWEEN NULL AND 80 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT + + CAST( 85 AS SIGNED ) AS col1 FROM tab1 cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-6258
SELECT + + CAST ( 85 AS INTEGER ) AS col1 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE + 7 IS NULL
----

query I rowsort
SELECT ALL - - 48 - + + col2 * + - col2 AS col1 FROM tab0 AS cor0
----
148
2257
9849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + 51 * ( - - col1 ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT 3 DIV 7 - - + ( + col1 ) DIV + col0 + + + col0 + - col2 * - 36 - - 76 * col1 AS col1 FROM tab2 AS cor0
----
4751
7255
7357

skipif mysql # not compatible
query I rowsort label-6262
SELECT 3 / 7 - - + ( + col1 ) / + col0 + + + col0 + - col2 * - 36 - - 76 * col1 AS col1 FROM tab2 AS cor0
----
4751
7255
7357

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - COUNT( - col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6263
SELECT - COUNT ( - col1 ) AS col0 FROM tab2 cor0
----
-3

query II rowsort
SELECT + - 88 AS col1, col2 FROM tab0 AS cor0
----
-88
10
-88
47
-88
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - - 41 ) col0 FROM tab1 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT DISTINCT - SUM( 62 ) col2 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6268
SELECT DISTINCT - SUM ( 62 ) col2 FROM tab0 AS cor0
----
-186

query I rowsort
SELECT 12 * - col0 * col1 * - col0 AS col1 FROM tab1
----
433500
436968
4670484

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT MIN( DISTINCT 80 ) AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6270
SELECT MIN ( DISTINCT 80 ) AS col1 FROM tab1
----
80

query II rowsort
SELECT 13, col0 AS col2 FROM tab1
----
13
51
13
85
13
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL + COUNT( ALL 97 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + COUNT ( ALL 97 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL + 63 / - 69 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 63 / - 69 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - + col1 - 51 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6276
SELECT DISTINCT + SUM( - 63 ) AS col0, SUM( - 22 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 70 AND ( + col2 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6276
SELECT DISTINCT + SUM ( - 63 ) AS col0, SUM ( - 22 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 70 AND ( + col2 )
----
NULL
NULL

query I rowsort
SELECT + 76 FROM tab2 AS cor0 WHERE NOT 9 IS NULL
----
76
76
76

query II rowsort
SELECT - col0 * + + col0 AS col1, 84 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-225
84
-7569
84
-9409
84

query I rowsort
SELECT - + col1 * + + 62 - - col1 FROM tab0 AS cor0
----
-1281
-4941
-61

query I rowsort
SELECT - ( col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + 22 * 19 FROM tab2 AS cor0
----
418
418
418

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6282
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + - col1 * + col2 * col2 = - - col1
----

skipif mysql # not compatible
query III rowsort label-6282
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + - col1 * + col2 * col2 = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - COUNT( * ) * + 40 AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-6283
SELECT - COUNT ( * ) * + 40 AS col2 FROM tab2
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT MIN( CAST( col1 AS SIGNED ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6284
SELECT MIN ( CAST ( col1 AS INTEGER ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 61 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 13 AS col2 FROM tab1
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - 20 col2 FROM tab1
----
105
111
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - 34 + - COUNT( * ) + + COUNT( * ) * + 94 FROM tab0
----
245

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 34 + - COUNT ( * ) + + COUNT ( * ) * + 94 FROM tab0
----
245

query I rowsort
SELECT ALL + col1 + - - col0 AS col1 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT - col0 * + 59 + + - 84 FROM tab1
----
-3093
-5099
-5453

query I rowsort
SELECT ALL + 20 + col0 AS col1 FROM tab0 AS cor0
----
107
117
35

query I rowsort
SELECT DISTINCT + col0 + + ( - - 90 ) FROM tab0 AS cor0
----
105
177
187

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6294
SELECT * 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-6294
SELECT * FROM tab1 AS cor0 WHERE col1 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col0 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL 24 * 87 AS col2 FROM tab0 AS cor0
----
2088
2088
2088

query I rowsort
SELECT DISTINCT - col0 - + col0 * - col1 AS col2 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT + COUNT( * ) * + - 98 AS col2 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + COUNT ( * ) * + - 98 AS col2 FROM tab2
----
-294

query I rowsort
SELECT + col2 * - - 60 FROM tab2
----
1380
2400
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT + CAST( + ( col0 ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT + CAST ( + ( col0 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 53 * - 3 AS col0, col2 AS col2 FROM tab1
----
-159
59
-159
68
-159
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL 71 * COUNT( * ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL 71 * COUNT ( * ) FROM tab0
----
213

query I rowsort
SELECT - col1 - - 11 FROM tab2
----
-40
-56
-66

query I rowsort
SELECT col0 - - ( col2 ) * ( + + col1 ) AS col0 FROM tab1
----
1395
3287
380

query I rowsort
SELECT col0 - col2 * + - col2 FROM tab2
----
1664
3439
575

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - ( + col1 ) / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT 45 * + 69 DIV - COUNT( * ) FROM tab0
----
-1035

skipif mysql # not compatible
query I rowsort label-6307
SELECT 45 * + 69 / - COUNT ( * ) FROM tab0
----
-1035

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6309
SELECT ALL + COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6310
SELECT DISTINCT - - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col1, col1 col1 FROM tab0 cor0
----
-1215
81
-1827
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab2 AS cor0
----
19

query I rowsort
SELECT + ( 92 ) AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( + col1 + - ( + 21 ) + - + col0 * col0 + - - 87 / col1 ) IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT + COUNT( * ) + MAX( ALL - 18 ) col2 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-6316
SELECT + COUNT ( * ) + MAX ( ALL - 18 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6317
SELECT DISTINCT col2, col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( col2 AS SIGNED ) ) = - col1
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-6317
SELECT DISTINCT col2, col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( col2 AS INTEGER ) ) = - col1
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + 6 * - col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 10 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT - 92 + - AVG ( ALL + ( - col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL = + col1
----
NULL

query I rowsort
SELECT ALL + col2 * + ( - 43 ) AS col0 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT DISTINCT col2 * - + col2 * - col2 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT DISTINCT col1 * + col1 + - + col2 AS col1 FROM tab0
----
-98
431
6514

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6324
SELECT * FROM tab1 WHERE NULL IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6324
SELECT * FROM tab1 WHERE NULL IN ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT ALL ( + MAX( - col0 ) ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL ( + MAX ( - col0 ) ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 3 col1, col2 AS col0 FROM tab2
----
3
23
3
40
3
58

query I rowsort
SELECT ALL + col0 + - 34 AS col2 FROM tab1 AS cor0
----
17
51
57

query I rowsort
SELECT DISTINCT + 97 + - - col2 FROM tab1 AS cor0
----
156
165
193

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 24 + col1 FROM tab2 AS cor0
----
101
75
91

query II rowsort
SELECT ALL + col1, - 53 * col1 FROM tab1 AS cor0
----
14
-742
47
-2491
5
-265

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT 69 DIV col2 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-81
-97

skipif mysql # not compatible
query I rowsort label-6333
SELECT 69 / col2 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-81
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT - col1 DIV + - 18 AS col2 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6334
SELECT - col1 / + - 18 AS col2 FROM tab2
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT + 11 DIV + - 37 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT + 11 / + - 37 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT - CAST( + 11 AS SIGNED ) * - 91 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
998

skipif mysql # not compatible
query I rowsort label-6336
SELECT - CAST ( + 11 AS INTEGER ) * - 91 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
998

query I rowsort
SELECT DISTINCT col0 - - 15 FROM tab0 AS cor0
----
102
112
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT col2 + + - 89 + 34 DIV 19 FROM tab1 AS cor0
----
-20
-29
8

skipif mysql # not compatible
query I rowsort label-6338
SELECT col2 + + - 89 + 34 / 19 FROM tab1 AS cor0
----
-20
-29
8

query I rowsort
SELECT + col1 + + 69 AS col0 FROM tab2 AS cor0
----
120
136
146

query I rowsort
SELECT DISTINCT + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT ALL col0 * - - col0 + 37 - - - col2 * col0 DIV - col1 FROM tab1 AS cor0
----
2987
8265
8449

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL col0 * - - col0 + 37 - - - col2 * col0 / - col1 FROM tab1 AS cor0
----
2987
8265
8449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + col0, + col2 col1 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT COUNT( * ) - + SUM( col2 ) * + 78 col2 FROM tab1
----
-17391

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6343
SELECT DISTINCT COUNT ( * ) - + SUM ( col2 ) * + 78 col2 FROM tab1
----
-17391

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL = + ( + col1 ) + 52 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT 41, - COUNT( * ) AS col1 FROM tab0
----
41
-3

skipif mysql # not compatible
query II rowsort label-6345
SELECT 41, - COUNT ( * ) AS col1 FROM tab0
----
41
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) <= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + 19 * col2 + - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6348
SELECT COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT COUNT ( * ) / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col1 + 15 AS col1 FROM tab0 AS cor0
----
16
456
6576

query I rowsort
SELECT ALL - col2 + + 73 FROM tab2
----
15
33
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + MIN( + col0 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6351
SELECT + MIN ( + col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT - COUNT( ALL - CAST( + col0 AS SIGNED ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6352
SELECT - COUNT ( ALL - CAST ( + col0 AS INTEGER ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + - ( - + 37 ) * col2 FROM tab2 AS cor0
----
1480
2146
851

query I rowsort
SELECT DISTINCT - 20 * + col0 FROM tab2 AS cor0
----
-1280
-1500
-920

query I rowsort
SELECT - 74 + - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-779
-944
-9677

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL NOT IN ( + 18 + - 63 ) ) )
----

query I rowsort
SELECT DISTINCT col1 * - 72 FROM tab0
----
-1512
-5832
-72

query III rowsort
SELECT * FROM tab1 WHERE + + col1 <= - col2
----

query I rowsort
SELECT DISTINCT col1 * - col1 - + col1 * + col2 FROM tab2 WHERE NOT col1 BETWEEN + col1 AND - - col1 + + 34 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( + col2 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 70 + + col2 AS col2 FROM tab0
----
-23
-60
29

query II rowsort
SELECT + 30 AS col1, 31 + 20 FROM tab1
----
30
51
30
51
30
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - MIN( + - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6363
SELECT - MIN ( + - col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + - 85 FROM tab0 AS cor0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT DISTINCT SUM( col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT SUM ( col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT ALL + col0 * - col2 - - col1 - col0 DIV col1 + + col2 AS col2 FROM tab0 AS cor0
----
-577
-843
-9600

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + col0 * - col2 - - col1 - col0 / col1 + + col2 AS col2 FROM tab0 AS cor0
----
-577
-843
-9600

query I rowsort
SELECT + 65 * - col1 AS col1 FROM tab1 AS cor0
----
-3055
-325
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT ALL + ( col2 ) DIV 61 + - + 44 + col0 col2 FROM tab1 cor0
----
41
48
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6368
SELECT ALL + ( col2 ) / 61 + - + 44 + col0 col2 FROM tab1 cor0
----
41
48
8

query II rowsort
SELECT col1 AS col0, 24 FROM tab1 AS cor0
----
14
24
47
24
5
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 NOT BETWEEN + + col1 - - 41 AND NULL
----

query I rowsort
SELECT ALL - 33 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6372
SELECT 12 * + COUNT( * ) AS col1, ( - + ( COUNT( ALL - col1 ) ) ) AS col1 FROM tab1
----
36
-3

skipif mysql # not compatible
query II rowsort label-6372
SELECT 12 * + COUNT ( * ) AS col1, ( - + ( COUNT ( ALL - col1 ) ) ) AS col1 FROM tab1
----
36
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT ( + COUNT( * ) ) DIV - - 30 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT ( + COUNT ( * ) ) / - - 30 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * - 19 AS col0 FROM tab2
----
-1102
-437
-760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6377
SELECT ALL + CAST( NULL AS DECIMAL ) + + col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + CAST ( NULL AS REAL ) + + col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( + col1 ) * - 12 * col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-16128
14
-3540
5
-38352
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <> 63 + + - 46
----
0
0

skipif mysql # not compatible
query II rowsort label-6379
SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <> 63 + + - 46
----
0
0

query I rowsort
SELECT ALL + + col1 * - + col1 + + 80 FROM tab0 AS cor0
----
-361
-6481
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT - - 94 - CAST( NULL AS SIGNED ) + - + col0 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT - - 94 - CAST ( NULL AS INTEGER ) + - + col0 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6382
SELECT + + CAST( NULL AS SIGNED ) * SUM( + + 66 ) AS col1, 62 AS col1 FROM tab0 AS cor0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6382
SELECT + + CAST ( NULL AS INTEGER ) * SUM ( + + 66 ) AS col1, 62 AS col1 FROM tab0 AS cor0
----
NULL
62

query I rowsort
SELECT 70 * - 80 AS col0 FROM tab0
----
-5600
-5600
-5600

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT col0 DIV - 98 * - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT col0 / - 98 * - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 * + col0 * 64 > 96 * 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 - + 48 FROM tab2 cor0
----
-2
16
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT + 88 DIV + 21 + - 15 DIV - + col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + 88 / + 21 + - 15 / - + col2 FROM tab1 AS cor0
----
4

query II rowsort
SELECT DISTINCT - - 40 - + col2, 84 AS col0 FROM tab1 AS cor0
----
-19
84
-28
84
-56
84

query I rowsort
SELECT ALL + + 98 AS col2 FROM tab0 AS cor0
----
98
98
98

query II rowsort
SELECT ALL - col0 - - - col0, - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-174
-87
-194
-97
-30
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - - SUM( 7 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-6392
SELECT - - SUM ( 7 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
63

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT BETWEEN NULL AND 71
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6394
SELECT CAST( + MIN( DISTINCT + CAST( col1 AS SIGNED ) ) AS SIGNED ) DIV - 41 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT CAST ( + MIN ( DISTINCT + CAST ( col1 AS INTEGER ) ) AS INTEGER ) / - 41 * - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT 57 + col2 + - col1 FROM tab0
----
155
23
46

query I rowsort
SELECT ALL + 81 + - ( - 51 ) AS col2 FROM tab2
----
132
132
132

query I rowsort
SELECT 5 - + col0 AS col1 FROM tab0
----
-10
-82
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - 85 + + 24
----

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab0 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + MAX( + - 28 ) col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6400
SELECT + MAX ( + - 28 ) col1 FROM tab0 AS cor0
----
-28

query II rowsort
SELECT + + ( - - ( + - col1 ) ), - col1 FROM tab2 cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT COUNT( * ) * + MAX( ALL - + col0 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6402
SELECT COUNT ( * ) * + MAX ( ALL - + col0 ) FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ( - SUM( DISTINCT - col1 ) ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6403
SELECT ( - SUM ( DISTINCT - col1 ) ) AS col1 FROM tab2
----
195

query II rowsort
SELECT ALL col2, col1 * + col2 * - - col2 FROM tab0
----
10
2100
47
178929
99
9801

query II rowsort
SELECT DISTINCT - 91 AS col2, - col0 + + col1 AS col2 FROM tab2
----
-91
-8
-91
13
-91
5

query I rowsort
SELECT ALL col2 * col0 * - col1 * + col0 * + - col1 FROM tab0 AS cor0
----
33379290
69382575
931491

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - - col1 + - - col0 * + 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL + CAST( NULL AS SIGNED ) * - 86 + - - 5 * - 5 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + CAST ( NULL AS INTEGER ) * - 86 + - - 5 * - 5 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 + + - col0 AS col1 FROM tab2 WHERE NOT NULL > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT + - col2 + + - col0 - 6 DIV + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-190
-62
-97

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT + - col2 + + - col0 - 6 / + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-190
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT - 54 + + col1 DIV col2 FROM tab0 AS cor0
----
-52
-53
-54

skipif mysql # not compatible
query I rowsort label-6411
SELECT - 54 + + col1 / col2 FROM tab0 AS cor0
----
-52
-53
-54

query I rowsort
SELECT - col2 + col0 - - col0 AS col1 FROM tab1 cor0
----
111
114
6

query I rowsort
SELECT ALL + 80 * + - 70 + - col2 FROM tab2 AS cor0
----
-5623
-5640
-5658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT DISTINCT + - col0 / + 19 + - col0 + - + CAST( NULL AS SIGNED ) * + 6 * - col1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + - col0 / + 19 + - col0 + - + CAST ( NULL AS INTEGER ) * + 6 * - col1 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col0 * + + 11 * - col1 + 61 AS col1 FROM tab1 AS cor0
----
-4614
-46986
-7793

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6416
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col1, - col0, - CAST( NULL AS SIGNED ), - 25, + - 12 * col1, 1 )
----

skipif mysql # not compatible
query III rowsort label-6416
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col1, - col0, - CAST ( NULL AS INTEGER ), - 25, + - 12 * col1, 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL - MIN( - - 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - MIN ( - - 60 ) FROM tab2
----
-60

query I rowsort
SELECT + ( - + col2 ) * 40 FROM tab2
----
-1600
-2320
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT col0 DIV + + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6419
SELECT col0 / + + col1 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL 94 + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL 94 + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 93 - + - col0 / + col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + 82 * + COUNT( - + col0 ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-6422
SELECT + 82 * + COUNT ( - + col0 ) AS col0 FROM tab2
----
246

query II rowsort
SELECT col2, - col2 AS col0 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT col1 + + 46 + + col0 * + - col1 AS col2 FROM tab1
----
-374
-4184
-654

query II rowsort
SELECT DISTINCT - - col1 + - 49 - col1, 57 AS col1 FROM tab1 AS cor0
----
-49
57

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + 92 AND col1 * - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6427
SELECT DISTINCT + col1 * + + col1 + + - col2 DIV col2 AS col2, col2 FROM tab1 AS cor0
----
195
96
2208
68
24
59

skipif mysql # not compatible
query II rowsort label-6427
SELECT DISTINCT + col1 * + + col1 + + - col2 / col2 AS col2, col2 FROM tab1 AS cor0
----
195
96
2208
68
24
59

query I rowsort
SELECT ALL + + col1 + - ( + 17 ) FROM tab0 cor0
----
-16
4
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 - - 91 + + col1 + + 94 col0 FROM tab1 cor0
----
255
264
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT 33 - + MAX( + 57 ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT 33 - + MAX ( + 57 ) AS col1 FROM tab0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6431
SELECT - - 41 * - 77 AS col0, + CAST( SUM( ALL + - 6 ) AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-3157
486

skipif mysql # not compatible
query II rowsort label-6431
SELECT - - 41 * - 77 AS col0, + CAST ( SUM ( ALL + - 6 ) AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-3157
486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * + + col0 + - 74 col2 FROM tab2
----
1398
1974
2326

query I rowsort
SELECT ALL - + 94 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + col2 * + + 37 FROM tab0
----
1739
3663
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT - MAX( DISTINCT col0 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT - MAX ( DISTINCT col0 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 7 * + 62 AS col2 FROM tab2 AS cor0
----
434
434
434

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 * + - 16 / col1 / col0, + 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT - COUNT( ALL - + ( - 66 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - COUNT ( ALL - + ( - 66 ) ) AS col1 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col0 FROM tab2
----
-29
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 63 AS col1, col0 + - 51 - - + col1 * + + ( - + ( col0 ) ) * + 79 * - 12 col1 FROM tab0
----
63
1151784
63
1732032
63
92002

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL + MAX( - col2 ) * + 72 * - 83 col1 FROM tab2
----
137448

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6443
SELECT ALL + MAX ( - col2 ) * + 72 * - 83 col1 FROM tab2
----
137448

query I rowsort
SELECT DISTINCT - 47 * - col2 FROM tab0
----
2209
4653
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab2
----
22
22
22

query I rowsort
SELECT + ( - - ( col2 ) ) AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col1 / 3 + col2 - - col0 / + col2 * col0 - - - col1 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT + 26 * - COUNT( * ) + - - 76 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-6448
SELECT + 26 * - COUNT ( * ) + - - 76 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
76

query I rowsort
SELECT DISTINCT + - 17 * + - col2 + - col0 FROM tab0 AS cor0 WHERE col1 * - col1 NOT BETWEEN - - col2 AND + col0
----
1586
784
83

query I rowsort
SELECT col2 * + col0 * + col2 AS col0 FROM tab1 cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT + ( - - 99 ) AS col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT - - 17 AS col2 FROM tab1 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + 93 col1 FROM tab2 AS cor0
----
51
93
67
93
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT - COUNT( DISTINCT - 59 ) - + - 18 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6454
SELECT - COUNT ( DISTINCT - 59 ) - + - 18 FROM tab1 AS cor0
----
17

query I rowsort
SELECT - 88 - + col0 AS col2 FROM tab1 cor0
----
-139
-173
-179

query I rowsort
SELECT DISTINCT ( + - 55 ) * + + col1 * + col1 FROM tab0
----
-24255
-360855
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT 54 + - MIN( DISTINCT + - col2 ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-6457
SELECT 54 + - MIN ( DISTINCT + - col2 ) FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT + 23 + - - COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-6458
SELECT + 23 + - - COUNT ( * ) FROM tab0
----
26

query I rowsort
SELECT DISTINCT ( + - 76 ) FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT + COUNT( * ) + + 33 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + COUNT ( * ) + + 33 FROM tab1
----
36

query I rowsort
SELECT - 90 + col1 + col0 FROM tab1
----
-25
0
48

query I rowsort
SELECT + 51 FROM tab2 WHERE + 78 + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 43 * - + 7 AS col1 FROM tab1
----
-301

query III rowsort
SELECT * FROM tab1 WHERE + 17 <> + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 * - col1 FROM tab0 WHERE NULL IS NULL
----
1215
1827
97

query I rowsort
SELECT - - col2 * + col1 + 96 FROM tab1 AS cor0
----
1440
3292
391

query I rowsort
SELECT - col1 * - 91 * + col2 FROM tab0
----
19110
346437
9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT - + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6468
SELECT - + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT COUNT( * ) DIV SUM( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6469
SELECT COUNT ( * ) / SUM ( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6470
SELECT - CAST( NULL AS SIGNED ) / - 41 + + + col0, col1 * - + 46 AS col0 FROM tab1 AS cor0
----
NULL
-2162
NULL
-230
NULL
-644

skipif mysql # not compatible
query II rowsort label-6470
SELECT - CAST ( NULL AS INTEGER ) / - 41 + + + col0, col1 * - + 46 AS col0 FROM tab1 AS cor0
----
NULL
-2162
NULL
-230
NULL
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + MAX( ALL + ( - col0 ) ) * + 93 FROM tab2 AS cor0
----
-4278

skipif mysql # not compatible
query I rowsort label-6471
SELECT + MAX ( ALL + ( - col0 ) ) * + 93 FROM tab2 AS cor0
----
-4278

query II rowsort
SELECT - + 66, col0 FROM tab1 AS cor0
----
-66
51
-66
85
-66
91

query II rowsort
SELECT col1 AS col1, col1 * col1 FROM tab0 AS cor0
----
1
1
21
441
81
6561

query II rowsort
SELECT - + col0 AS col2, ( + col1 ) FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col1 FROM tab0
----
21

query I rowsort
SELECT DISTINCT col0 * - 7 AS col2 FROM tab2
----
-322
-448
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT + 79 + COUNT( * ) FROM tab0 WHERE NOT - 52 = col2 * col1 - + col1
----
82

skipif mysql # not compatible
query I rowsort label-6477
SELECT + 79 + COUNT ( * ) FROM tab0 WHERE NOT - 52 = col2 * col1 - + col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL - COUNT( - col1 ) AS col1 FROM tab2 WHERE + 21 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - COUNT ( - col1 ) AS col1 FROM tab2 WHERE + 21 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + + MAX( col2 ) * + 17 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT + + MAX ( col2 ) * + 17 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT DISTINCT CAST( - - COUNT( DISTINCT - - col2 ) AS SIGNED ) * - ( 65 ) - COUNT( DISTINCT + col0 ) * - + MAX( ALL col1 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT CAST ( - - COUNT ( DISTINCT - - col2 ) AS INTEGER ) * - ( 65 ) - COUNT ( DISTINCT + col0 ) * - + MAX ( ALL col1 ) FROM tab1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT ALL - col1 DIV - col2 + + col1 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - col1 / - col2 + + col1 FROM tab2
----
53
68
78

onlyif mysql # DIV for integer division: 
query II rowsort label-6482
SELECT ( - col1 ) AS col1, col0 DIV col2 col1 FROM tab1
----
-14
0
-47
1
-5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6482
SELECT ( - col1 ) AS col1, col0 / col2 col1 FROM tab1
----
-14
0
-47
1
-5
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( ( NULL ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6484
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) + + 96 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + + 96 FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT - - 91 + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - - 91 + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT DISTINCT 12 DIV - + col1 + + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT 12 / - + col1 + + - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col2 + + 18 AS col2 FROM tab1
----
114
77
86

query I rowsort
SELECT DISTINCT col2 * + + ( - + col1 ) * - - 17 + - col2 FROM tab2 AS cor0
----
-19964
-52400
-66120

query I rowsort
SELECT ALL col0 - - + col1 * - - col1 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6491
SELECT CAST( + 75 AS SIGNED ) DIV col0 - - 57 + + 2 + col1 * - 77 FROM tab0 AS cor0
----
-1558
-18
-6173

skipif mysql # not compatible
query I rowsort label-6491
SELECT CAST ( + 75 AS INTEGER ) / col0 - - 57 + + 2 + col1 * - 77 FROM tab0 AS cor0
----
-1558
-18
-6173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * + 46 + + + ( - 82 ) * + 90 * + col2 AS col0, 84 col0 FROM tab1 AS cor0
----
-435190
84
-499678
84
-707836
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT DISTINCT + 57 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + 57 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 91 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT MIN( ALL col1 ) + + COUNT( * ) + + 76 FROM tab0 AS cor0 WHERE + 4 * col2 <> - col0
----
80

skipif mysql # not compatible
query I rowsort label-6495
SELECT MIN ( ALL col1 ) + + COUNT ( * ) + + 76 FROM tab0 AS cor0 WHERE + 4 * col2 <> - col0
----
80

query I rowsort
SELECT DISTINCT - ( + 3 ) * - - col2 + - + col1 FROM tab2 AS cor0
----
-120
-197
-241

query I rowsort
SELECT DISTINCT - col1 - + col2 * + col2 * col1 FROM tab2 AS cor0
----
-123277
-225455
-27030

query I rowsort
SELECT - col0 * col0 * - - col2 FROM tab0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT MAX( DISTINCT 81 ) - 75 + + 32 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-6500
SELECT MAX ( DISTINCT 81 ) - 75 + + 32 FROM tab2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT - + 72 * col2 + - col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE ( NOT ( - CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6501
SELECT - + 72 * col2 + - col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE ( NOT ( - CAST ( NULL AS INTEGER ) IS NULL ) )
----

query I rowsort
SELECT 39 - + ( ( - 62 ) ) FROM tab1
----
101
101
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 63 * - + col2 - - 26 col0 FROM tab1
----
-308422
-315919
-389818

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 75 + + 3 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + col1 * + + col2 col1 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 10 + - col1 * + + 89 IN ( col2, col0 * + 7 )
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 * - col0 * + - 35 FROM tab0 AS cor0
----
-264915
-329315
-7875

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL - 39 + - MIN( ALL + + 43 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - 31 + + - 39 * + col1 - - + 53, + col2, + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 39 + - MIN ( ALL + + 43 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - 31 + + - 39 * + col1 - - + 53, + col2, + - col2 )
----
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6511
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 <> - ( - ( col2 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col2 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT - - COUNT( DISTINCT - - 11 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - - COUNT ( DISTINCT - - 11 ) FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6515
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6515
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( col1 ) * - ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT + COUNT( - col2 ) FROM tab2 AS cor0 WHERE - 33 * + col0 - - ( + - 46 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + COUNT ( - col2 ) FROM tab2 AS cor0 WHERE - 33 * + col0 - - ( + - 46 ) IS NOT NULL
----
3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT 77 * MIN( ALL + 38 ) AS col0 FROM tab2 AS cor0
----
2926

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT 77 * MIN ( ALL + 38 ) AS col0 FROM tab2 AS cor0
----
2926

query I rowsort
SELECT ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6521
SELECT + col2 + - col2 / - 6 FROM tab1 AS cor0 WHERE NOT + col1 <= CAST( NULL AS DECIMAL ) * + col2 * - + CAST( NULL AS SIGNED ) - col1
----

skipif mysql # not compatible
query I rowsort label-6521
SELECT + col2 + - col2 / - 6 FROM tab1 AS cor0 WHERE NOT + col1 <= CAST ( NULL AS REAL ) * + col2 * - + CAST ( NULL AS INTEGER ) - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT MAX( ALL + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6522
SELECT MAX ( ALL + col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT ALL 46 DIV + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL 46 / + COUNT ( * ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6524
SELECT + CAST( NULL AS SIGNED ) AS col1, 71 FROM tab1
----
NULL
71
NULL
71
NULL
71

skipif mysql # not compatible
query II rowsort label-6524
SELECT + CAST ( NULL AS INTEGER ) AS col1, 71 FROM tab1
----
NULL
71
NULL
71
NULL
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + col1
----

query II rowsort
SELECT - col2 AS col1, - col0 AS col1 FROM tab1
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT ALL - - col0 * + 65 AS col1 FROM tab1 AS cor0
----
3315
5525
5915

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ALL col0 DIV - 87 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL col0 / - 87 AS col1 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6530
SELECT + CAST( NULL AS SIGNED ) + ( MIN( 47 ) ) * COUNT( 30 ) * + SUM( DISTINCT - col0 ) - + 30 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT + CAST ( NULL AS INTEGER ) + ( MIN ( 47 ) ) * COUNT ( 30 ) * + SUM ( DISTINCT - col0 ) - + 30 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT MAX( col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT MAX ( col2 ) AS col0 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - col1 + - col1 col2 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + + + col0 + - + ( - - 89 ) AND col2
----

query I rowsort
SELECT 46 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 - + - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT + + col1 - - - col2 + col2 * - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
123237
225397
27007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab2 AS cor0 WHERE NULL <> ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6541
SELECT ALL + CAST( NULL AS DECIMAL ) + + 86 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + CAST ( NULL AS REAL ) + + 86 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + ( - - col2 ) ) FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL 97 AS col1, col2 - + col0 AS col0 FROM tab2
----
97
-17
97
-23
97
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT - MIN( + ( 11 ) ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT - MIN ( + ( 11 ) ) FROM tab1
----
-11

query I rowsort
SELECT + 62 * + - 19 * - - 2 + - + 76 FROM tab0
----
-2432
-2432
-2432

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6547
SELECT col1 DIV ( - col2 ) + - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-6547
SELECT col1 / ( - col2 ) + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-23
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT CAST( - col0 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6548
SELECT CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - + col0 AND ( - ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT - 88 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
4
88

skipif mysql # not compatible
query I rowsort label-6550
SELECT - 88 / - col1 AS col1 FROM tab0 AS cor0
----
1
4
88

query I rowsort
SELECT + - col0 * - 81 FROM tab1 AS cor0 WHERE NOT ( - 62 + + col1 - - col0 ) NOT BETWEEN ( NULL ) AND + col1 * 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT + COUNT( * ) * - - 12 col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6552
SELECT DISTINCT + COUNT ( * ) * - - 12 col1 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - MAX( + 63 ) AS col2 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - MAX ( + 63 ) AS col2 FROM tab0 cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----
0

query II rowsort
SELECT + 88 AS col0, 51 + + + col1 AS col2 FROM tab2 AS cor0
----
88
102
88
118
88
128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 29 < - ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6557
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6558
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6559
SELECT + COUNT( * ) * + + 21 - MAX( ALL - + 45 ) AS col2, - 94 FROM tab0 AS cor0
----
108
-94

skipif mysql # not compatible
query II rowsort label-6559
SELECT + COUNT ( * ) * + + 21 - MAX ( ALL - + 45 ) AS col2, - 94 FROM tab0 AS cor0
----
108
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT + + col1 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6560
SELECT + + col1 / + - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + col0 * col0, 82 AS col1 FROM tab0 AS cor0
----
225
82
7569
82
9409
82

query I rowsort
SELECT - col2 + col0 + - - 21 AS col2 FROM tab2 AS cor0
----
38
44
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL + - COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL + - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) col0 FROM tab0 WHERE NOT + + col2 * - col1 - 20 - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) NOT BETWEEN - ( col2 ) * + col1 AND + + ( col0 ) * + 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab2
----
-22
-22
-22

query I rowsort
SELECT - 8 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
472
544
768

query I rowsort
SELECT ALL - col2 + 32 * + col1 AS col2 FROM tab0 AS cor0
----
-67
2545
662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab2
----
51
67
77

query II rowsort
SELECT + col2 + col0 + + col0, + col1 FROM tab2
----
115
51
168
77
208
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT - col1 DIV col2 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6572
SELECT - col1 / col2 + + col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT DISTINCT - 11 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - 11 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 + - + col0 - col2 FROM tab2
----
-1127
-2664
-4483

query II rowsort
SELECT - ( - 66 ) + col1 AS col0, col2 FROM tab1 cor0
----
113
68
71
59
80
96

query I rowsort
SELECT + + col0 AS col1 FROM tab0 cor0 WHERE - ( - col2 ) NOT BETWEEN NULL AND - - 95
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT + COUNT( 58 ) + - SUM( ALL + + 67 ) AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT + COUNT ( 58 ) + - SUM ( ALL + + 67 ) AS col1 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT + ( - 28 ) AS col0 FROM tab0 AS cor0
----
-28
-28
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 49 NOT BETWEEN - col0 AND - + col0 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + COUNT( * ) * + - MIN( - - col0 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6581
SELECT + COUNT ( * ) * + - MIN ( - - col0 ) FROM tab1
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT DISTINCT - 61 AS col2 FROM tab2 WHERE NULL <= + CAST( - 87 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - 61 AS col2 FROM tab2 WHERE NULL <= + CAST ( - 87 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT ALL COUNT( * ) * + + 14, COUNT( * ) + 81 AS col1 FROM tab1
----
42
84

skipif mysql # not compatible
query II rowsort label-6583
SELECT ALL COUNT ( * ) * + + 14, COUNT ( * ) + 81 AS col1 FROM tab1
----
42
84

query I rowsort
SELECT + 94 * - ( col2 ) AS col0 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6585
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query I rowsort
SELECT ALL col2 * 74 AS col1 FROM tab0 AS cor0
----
3478
7326
740

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT DISTINCT - col1 DIV + - col0 FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - col1 / + - col0 FROM tab0 cor0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 42 AS col1, col0 + + col2 + - - col1 col1 FROM tab1
----
42
149
42
161
42
206

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab1, tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT + COUNT( * ) * - - 36 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
324

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT + COUNT ( * ) * - - 36 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6591
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT COUNT( * ) * + 92 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT COUNT ( * ) * + 92 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col0 * + + col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * + + ( col0 ) * + - 65 AS col2 FROM tab2 AS cor0
----
-152490
-320320
-326625

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - MIN( DISTINCT col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6596
SELECT - MIN ( DISTINCT col0 ) FROM tab0
----
-15

query I rowsort
SELECT - col2 * + ( + col1 ) FROM tab0 WHERE + - col1 IS NOT NULL
----
-210
-3807
-99

query I rowsort
SELECT ( - 32 ) FROM tab2
----
-32
-32
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + col2 + - + col1 * + - col0
----

query I rowsort
SELECT + col1 * - - 77 FROM tab0
----
1617
6237
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL MIN( 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL MIN ( 67 ) FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6602
SELECT COUNT( * ), + COUNT( * ) col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6602
SELECT COUNT ( * ), + COUNT ( * ) col0 FROM tab2
----
3
3

query II rowsort
SELECT col1 * 5 * + col0 + 2 AS col0, + col1 FROM tab0
----
487
1
6077
81
9137
21

query I rowsort
SELECT DISTINCT - col2 + + + 51 AS col1 FROM tab2
----
-7
11
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT DISTINCT col1 * - col1 + - + 17 + - 29 DIV + 26 FROM tab1 AS cor0
----
-214
-2227
-43

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT col1 * - col1 + - + 17 + - 29 / + 26 FROM tab1 AS cor0
----
-214
-2227
-43

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 24, ( - 15 ) )
----

query II rowsort
SELECT col2 AS col0, + col0 * - col1 AS col1 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT - - col1 DIV - - ( - col1 ) - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-2602
-7226
-8282

skipif mysql # not compatible
query I rowsort label-6609
SELECT - - col1 / - - ( - col1 ) - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-2602
-7226
-8282

query I rowsort
SELECT + - 87 FROM tab0 AS cor0 WHERE col2 / ( col0 ) * - ( + + col0 ) IS NOT NULL
----
-87
-87
-87

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 >= NULL
----

query I rowsort
SELECT 88 - 68 * - col2 * + col0 FROM tab2 AS cor0
----
174168
295888
72032

query I rowsort
SELECT + + col2 * - col2 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-13
-2194
-9704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + - col2 col1 FROM tab2 AS cor0
----
-43
-60
-78

query I rowsort
SELECT ALL + col0 * col2 * - col2 + 71 AS col0 FROM tab1 AS cor0
----
-295814
-420713
-469945

query II rowsort
SELECT ALL col1 - + 5 AS col0, ( - - col1 ) FROM tab0 AS cor0
----
-4
1
16
21
76
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL AND NOT col1 IS NULL
----

query I rowsort
SELECT + 18 AS col2 FROM tab2 cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT - + col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6620
SELECT - + col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col1 * - col0 * + 61 FROM tab0
----
111447
5917
74115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT DISTINCT - COUNT( * ) DIV + 85 * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - COUNT ( * ) / + 85 * + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ( - SUM( ( - col0 ) ) ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-6623
SELECT ( - SUM ( ( - col0 ) ) ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT + 14 AS col1, SUM( DISTINCT 85 ) FROM tab1 AS cor0
----
14
85

skipif mysql # not compatible
query II rowsort label-6624
SELECT + 14 AS col1, SUM ( DISTINCT 85 ) FROM tab1 AS cor0
----
14
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL CAST( 41 AS SIGNED ) AS col0 FROM tab0 cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL CAST ( 41 AS INTEGER ) AS col0 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT ( - 26 ) AS col1 FROM tab0
----
-26
-26
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT CAST( - COUNT( + col1 ) AS SIGNED ) - 63 AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-6627
SELECT CAST ( - COUNT ( + col1 ) AS INTEGER ) - 63 AS col0 FROM tab2
----
-66

query I rowsort
SELECT ALL - 7 - + col1 FROM tab2 WHERE NOT - col1 + + col2 NOT IN ( col1 )
----

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND col1
----

query I rowsort
SELECT col0 FROM tab0 WHERE - 20 BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT + SUM( - col0 ) col2 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6633
SELECT + SUM ( - col0 ) col2 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - 27 FROM tab2
----
-50
-67
-85

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - 27 FROM tab2
----
-50
-67
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE - 57 - + col0 IS NULL
----

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE ( + 58 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT + MIN( - col1 ) / + COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT + MIN ( - col1 ) / + COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IN ( col1 )
----
NULL

query I rowsort
SELECT + 86 * col1 AS col0 FROM tab0
----
1806
6966
86

query I rowsort
SELECT + 76 * col2 FROM tab0
----
3572
7524
760

query I rowsort
SELECT 47 - col0 AS col1 FROM tab2
----
-17
-28
1

query I rowsort
SELECT - 66 * + col1 AS col0 FROM tab0
----
-1386
-5346
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + 26 col1 FROM tab0
----
107
27
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT - col0 DIV 52 + col2 AS col1 FROM tab2
----
23
39
57

skipif mysql # not compatible
query I rowsort label-6643
SELECT - col0 / 52 + col2 AS col1 FROM tab2
----
23
39
57

query I rowsort
SELECT + 23 AS col0 FROM tab0 WHERE ( col2 ) BETWEEN - 38 + - col0 AND ( + col0 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6645
SELECT * FROM tab0 WHERE NULL <> ( + col0 + CAST( + col2 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-6645
SELECT * FROM tab0 WHERE NULL <> ( + col0 + CAST ( + col2 AS INTEGER ) * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT - CAST( NULL AS SIGNED ) * ( 6 * 67 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6647
SELECT - CAST ( NULL AS INTEGER ) * ( 6 * 67 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 91 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 + 74 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 20 + col2 ) NOT IN ( 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT + COUNT( - 44 ) FROM tab0 WHERE NOT 2 * col2 BETWEEN ( 92 * + col0 ) AND 45 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + COUNT ( - 44 ) FROM tab0 WHERE NOT 2 * col2 BETWEEN ( 92 * + col0 ) AND 45 * - col2
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col1 BETWEEN 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL SUM( 72 ) * COUNT( * ) FROM tab1
----
648

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL SUM ( 72 ) * COUNT ( * ) FROM tab1
----
648

query I rowsort
SELECT + 51 FROM tab1 WHERE col0 + col2 BETWEEN ( NULL ) AND - ( col1 ) * + col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + MIN( + col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6655
SELECT + MIN ( + col2 ) col2 FROM tab1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL + CAST( - 41 AS SIGNED ) * MIN( col1 ) AS col2 FROM tab1 AS cor0
----
-205

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + CAST ( - 41 AS INTEGER ) * MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
-205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT ( - ( CAST( NULL AS SIGNED ) ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6657
SELECT ( - ( CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab0 cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 * 90 FROM tab2 AS cor0
----
4590
6030
6930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( ( - 29 ) )
----

query I rowsort
SELECT DISTINCT - col2 + 36 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-11
-63
26

query I rowsort
SELECT ( + 47 ) FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 * ( - 40 * col0 ) NOT IN ( ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6664
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 * ( - 40 * col0 ) NOT IN ( ( col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT - CAST( NULL AS SIGNED ) * - 11 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT - CAST ( NULL AS INTEGER ) * - 11 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT ALL + col2 DIV 44 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + col2 / 44 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6667
SELECT + 79 - + col2 col2 FROM tab1 WHERE NOT ( CAST( col0 AS DECIMAL ) ) NOT BETWEEN 81 AND ( col0 )
----
11
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6667
SELECT + 79 - + col2 col2 FROM tab1 WHERE NOT ( CAST ( col0 AS REAL ) ) NOT BETWEEN 81 AND ( col0 )
----
11
20

query I rowsort
SELECT - 54 * - 35 AS col2 FROM tab0
----
1890
1890
1890

query I rowsort
SELECT + 0 + 32 / 17 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6670
SELECT DISTINCT + CAST( ( 8 ) AS SIGNED ) DIV + COUNT( * ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT + CAST ( ( 8 ) AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + 84 ) col1 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT ALL + col1 * - col0 + col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) * 24 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( + col2 * + col0 ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( + col2 * + col0 ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 35 * - - col2 FROM tab2 cor0
----
1400
2030
805

query I rowsort
SELECT 85 + - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-25
-30
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6677
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + 0 + + CAST( NULL AS DECIMAL ) AND ( + col0 ) / + 83 + + 25
----

skipif mysql # not compatible
query I rowsort label-6677
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + 0 + + CAST ( NULL AS REAL ) AND ( + col0 ) / + 83 + + 25
----

query I rowsort
SELECT DISTINCT + col0 + - + col2 AS col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col0 AND col2 - - 40
----

query I rowsort
SELECT DISTINCT + 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT - 9 + + + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT - 9 + + + COUNT ( * ) FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COUNT( - col0 ) FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT COUNT ( - col0 ) FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----
0

query II rowsort
SELECT ALL + 67 AS col2, 13 FROM tab2 AS cor0
----
67
13
67
13
67
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6684
SELECT DISTINCT COUNT( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) < - col1 + 2 * - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT COUNT ( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) < - col1 + 2 * - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL 50 - + 4 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
46
46
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 91 * + - col2 = - 43 + + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + - COUNT( * ) * + + 24 col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT + - COUNT ( * ) * + + 24 col1 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE col1 + + CAST( - col1 AS SIGNED ) BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-6688
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE col1 + + CAST ( - col1 AS INTEGER ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL col0 * + col1 + + col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT + col2 + - 92 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2185
-4148
-5659

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + COUNT( col0 ) + - 62 + MAX( DISTINCT ( col1 ) ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6691
SELECT + COUNT ( col0 ) + - 62 + MAX ( DISTINCT ( col1 ) ) AS col0 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT 45 + - + COUNT( * ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6692
SELECT 45 + - + COUNT ( * ) AS col1 FROM tab2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT + MAX( DISTINCT - ( - + col2 ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT + MAX ( DISTINCT - ( - + col2 ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + col1 + + col0 + + 13 FROM tab0
----
209
310
3835

query III rowsort
SELECT * FROM tab1 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT MAX( + 9 ) + 94 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-6696
SELECT MAX ( + 9 ) + 94 FROM tab2
----
103

query I rowsort
SELECT DISTINCT - col1 + + 37 FROM tab0
----
-44
16
36

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NULL = ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( - - col2 ) + ( col2 ) * + 79 col2 FROM tab1
----
4805
5531
7731

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6700
SELECT + COUNT( * ) + MAX( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT + COUNT ( * ) + MAX ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 63 + 79 AS col0 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT - - 60 AS col2 FROM tab2 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ( + - MIN( col0 ) ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6703
SELECT ( + - MIN ( col0 ) ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( + col2 * - - CAST( col0 AS SIGNED ) + 51 ) NOT BETWEEN - col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( + col2 * - - CAST ( col0 AS INTEGER ) + 51 ) NOT BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT - 6 + + COUNT( * ) - - - SUM( col1 ) * 33 AS col2 FROM tab2 AS cor0
----
-6438

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT - 6 + + COUNT ( * ) - - - SUM ( col1 ) * 33 AS col2 FROM tab2 AS cor0
----
-6438

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
3

query I rowsort
SELECT ALL - ( 36 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-36
-36
-36

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + 45 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 92 * + 88 * + - col1 AS col2 FROM tab0 AS cor0
----
-170016
-655776
-8096

query II rowsort
SELECT 47, ( + col2 ) FROM tab0 cor0
----
47
10
47
47
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT + - SUM( DISTINCT + + 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + - SUM ( DISTINCT + + 86 ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT col0 * col0 * + 57 - - col0 * + col0 AS col0 FROM tab1 AS cor0
----
150858
419050
480298

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - + MAX( ALL + - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6713
SELECT - + MAX ( ALL + - col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - 5 * 49 * - col1 * col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - col2 <= ( ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - MAX( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6716
SELECT - MAX ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 WHERE 74 - + + col1 NOT BETWEEN + col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 3 FROM tab2 WHERE NOT col1 NOT BETWEEN + col2 / col2 AND ( + 5 / col0 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - ( col0 ) + - + 56 / - col0 NOT BETWEEN - col1 + col1 AND col2
----
10
47
99

query II rowsort
SELECT col1, 78 AS col2 FROM tab2
----
51
78
67
78
77
78

query I rowsort
SELECT DISTINCT 18 * col2 * col2 * + + 77 AS col2 FROM tab0
----
13584186
138600
3061674

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT COUNT( + col0 ) * ( - - 78 ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT COUNT ( + col0 ) * ( - - 78 ) FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - + COUNT( * ) * + 10 FROM tab1 AS cor0 WHERE NOT + 13 <= - + col2
----
-30

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - + COUNT ( * ) * + 10 FROM tab1 AS cor0 WHERE NOT + 13 <= - + col2
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 col2, + col1 FROM tab2 AS cor0
----
73
51
73
67
73
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT - + 91 * + - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6726
SELECT DISTINCT - + 91 * + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
819

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT + 4 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT + 4 / col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 7 * col0 * - col0 + - col1 + - 75 AS col0 FROM tab1 AS cor0
----
-18296
-50655
-58089

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT + MAX( + col0 ) + + COUNT( * ) * - + MIN( + - col2 ) AS col0 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6729
SELECT + MAX ( + col0 ) + + COUNT ( * ) * - + MIN ( + - col2 ) AS col0 FROM tab2 AS cor0
----
249

query II rowsort
SELECT ALL + + 84 * - col0 + col1 AS col1, 15 AS col1 FROM tab0 AS cor0
----
-1179
15
-7287
15
-8147
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6731
SELECT - col1 + - - ( + col2 ) * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT - col1 + - - ( + col2 ) * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6733
SELECT DISTINCT - 9 DIV - + col0 * col0 * - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - 9 / - + col0 * col0 * - col2 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 * + + col2 NOT BETWEEN ( col0 ) AND + 8
----

query I rowsort
SELECT DISTINCT + col1 * - + col1 * + 42 + - - 61 FROM tab2
----
-109181
-188477
-248957

query I rowsort
SELECT ALL 71 + + col0 FROM tab2 WHERE NOT col1 NOT BETWEEN - 71 AND + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6737
SELECT MAX( + col0 ) DIV + 44, COUNT( * ) AS col0 FROM tab1
----
2
3

skipif mysql # not compatible
query II rowsort label-6737
SELECT MAX ( + col0 ) / + 44, COUNT ( * ) AS col0 FROM tab1
----
2
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6738
SELECT ( MAX( + col0 ) ) DIV 37 - COUNT( * ) + 20 * COUNT( * ) * - 23 * + COUNT( * ) AS col0 FROM tab2
----
-4141

skipif mysql # not compatible
query I rowsort label-6738
SELECT ( MAX ( + col0 ) ) / 37 - COUNT ( * ) + 20 * COUNT ( * ) * - 23 * + COUNT ( * ) AS col0 FROM tab2
----
-4141

query II rowsort
SELECT 6 - - 3 * - col2, + col2 AS col1 FROM tab0
----
-135
47
-24
10
-291
99

query I rowsort
SELECT + col1 - + 87 AS col0 FROM tab1 AS cor0
----
-40
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT - + 62 * - COUNT( * ) col1 FROM tab1 WHERE + - ( 46 ) + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6741
SELECT DISTINCT - + 62 * - COUNT ( * ) col1 FROM tab1 WHERE + - ( 46 ) + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col2 FROM tab2, tab0 AS cor0
----
82

query II rowsort
SELECT ALL ( - col0 ), col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT + COUNT( * ) DIV 42 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT + COUNT ( * ) / 42 AS col2 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - col0 <= - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6747
SELECT 5 * - COUNT( * ) DIV + SUM( col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6747
SELECT 5 * - COUNT ( * ) / + SUM ( col0 ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT col2 * + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT col2 * + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6749
SELECT + col2, - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6749
SELECT + col2, - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT col1 DIV + 69 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT col1 / + 69 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL ( + - SUM( ALL + 65 ) ) AS col1 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL ( + - SUM ( ALL + 65 ) ) AS col1 FROM tab1
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col2 FROM tab2
----
-54
-54
-54

query II rowsort
SELECT + col1, - ( 59 ) FROM tab0
----
1
-59
21
-59
81
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT - col2 * col2 / + - 34 - + col1 AS col2 FROM tab1 WHERE NOT + col1 BETWEEN CAST( - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6754
SELECT - col2 * col2 / + - 34 - + col1 AS col2 FROM tab1 WHERE NOT + col1 BETWEEN CAST ( - col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT + MAX( col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6755
SELECT + MAX ( col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN + + 65 / + 93 * + 22 AND + + ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + col2 + + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
203
227
243

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * - 17 / col1
----

query I rowsort
SELECT - col2 / + 85 FROM tab2 AS cor0 WHERE ( NOT ( + col1 * col2 + - 28 <> + 68 / col0 + + col2 + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT + MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT + MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT + MAX( 90 ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6761
SELECT + MAX ( 90 ) AS col2 FROM tab2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT ALL - COUNT( + CAST( col1 AS SIGNED ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL - COUNT ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT + + 9 FROM tab2 WHERE NULL IS NULL
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL - SUM( - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - SUM ( - col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT DISTINCT + + 1 + + col0 * - CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + + 1 + + col0 * - CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col0 + 36 + - - 31 FROM tab2 AS cor0
----
-8
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 >= NULL
----
0

query I rowsort
SELECT - col2 - - - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT + ( - - 50 ) - - + col2 + - - col1 AS col2 FROM tab2 AS cor0
----
124
167
175

query I rowsort
SELECT col1 * - 12 * - + col2 + col0 FROM tab1 AS cor0
----
16179
3625
38443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 * 16 / - col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col1 - + col1 FROM tab1
----
-210
-2256
-30

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT - 79 + 30 FROM tab2
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL 35 * 35 + - COUNT( DISTINCT - col1 ) AS col2 FROM tab1
----
1222

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL 35 * 35 + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab1
----
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT + col1 * ( - + col1 ) DIV + - col2 FROM tab0 AS cor0
----
0
139
44

skipif mysql # not compatible
query I rowsort label-6776
SELECT + col1 * ( - + col1 ) / + - col2 FROM tab0 AS cor0
----
0
139
44

onlyif mysql # DIV for integer division: 
query II rowsort label-6777
SELECT DISTINCT - col0 AS col0, + 93 DIV col1 AS col0 FROM tab1
----
-51
6
-85
18
-91
1

skipif mysql # not compatible
query II rowsort label-6777
SELECT DISTINCT - col0 AS col0, + 93 / col1 AS col0 FROM tab1
----
-51
6
-85
18
-91
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 * - - col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + - col1
----

query II rowsort
SELECT DISTINCT + ( + - 91 ) * + - ( + col2 ) AS col1, - col1 AS col0 FROM tab2
----
2093
-51
3640
-77
5278
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + col2 ) - - col2 ) BETWEEN + ( col0 ) AND - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + COUNT( * ) * 77 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
231

skipif mysql # not compatible
query I rowsort label-6782
SELECT + COUNT ( * ) * 77 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT + 38 DIV - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 38 / - COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT - col2 * - + 34 + + col1 FROM tab1 AS cor0
----
2011
2359
3278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - - 5 ) AS col1 FROM tab1 cor0 WHERE - col0 + + 97 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL - MIN( - 99 ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - MIN ( - 99 ) AS col1 FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col1 ) col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT MIN( DISTINCT - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6790
SELECT MIN ( DISTINCT - col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6791
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT ALL + col2 + + col2 + - - col1 * + CAST( - - 4 AS SIGNED ) * col0 AS col0 FROM tab0
----
4954
586
7328

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + col2 + + col2 + - - col1 * + CAST ( - - 4 AS INTEGER ) * col0 AS col0 FROM tab0
----
4954
586
7328

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT COUNT( - 26 ) col0, ( + 28 ) AS col2 FROM tab2 AS cor0
----
3
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6794
SELECT COUNT ( - 26 ) col0, ( + 28 ) AS col2 FROM tab2 AS cor0
----
3
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 89 / - col2 + + - col2 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 1 AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL - 19 * col2 - - 39 - + CAST( col2 AS SIGNED ) + - + col2 AS col1 FROM tab0 AS cor0
----
-171
-2040
-948

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL - 19 * col2 - - 39 - + CAST ( col2 AS INTEGER ) + - + col2 AS col1 FROM tab0 AS cor0
----
-171
-2040
-948

query I rowsort
SELECT ALL + ( + 17 ) FROM tab1 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 + col2 + + col2 col2 FROM tab2
----
2392
5008
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT + MAX( - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT + MAX ( - col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - COUNT( * ) + 51 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6801
SELECT - COUNT ( * ) + 51 FROM tab0
----
48

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 + col0 * - - 67 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - + 58 - + ( - + col2 ) AS col2 FROM tab0 cor0
----
5056
5725
917

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT - MIN( DISTINCT + - 29 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6805
SELECT - MIN ( DISTINCT + - 29 ) FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT + MIN( 18 ) col2 FROM tab2
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6806
SELECT DISTINCT + MIN ( 18 ) col2 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + COUNT( * ) - - 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-6807
SELECT + COUNT ( * ) - - 98 FROM tab0
----
101

query I rowsort
SELECT 96 - - col1 FROM tab0
----
117
177
97

query I rowsort
SELECT 88 - col2 - col2 * - 95 FROM tab1
----
5634
6480
9112

query I rowsort
SELECT col1 + + + col0 FROM tab2 WHERE 16 < + + 59
----
141
142
97

query I rowsort
SELECT - 77 - - + col0 FROM tab1
----
-26
14
8

query II rowsort
SELECT col1, + ( + col2 ) AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6813
SELECT - MIN( - 0 ) FROM tab0 WHERE NOT + col2 BETWEEN ( + col2 ) AND CAST( NULL AS DECIMAL ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT - MIN ( - 0 ) FROM tab0 WHERE NOT + col2 BETWEEN ( + col2 ) AND CAST ( NULL AS REAL ) * 1
----
NULL

query I rowsort
SELECT - 44 * + 53 AS col0 FROM tab1
----
-2332
-2332
-2332

query I rowsort
SELECT DISTINCT + col1 * + + 22 AS col0 FROM tab0
----
1782
22
462

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT - 62 DIV col2 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT - 62 / col2 AS col2 FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT MAX( ALL - + 52 ) AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-6817
SELECT MAX ( ALL - + 52 ) AS col1 FROM tab0
----
-52

query III rowsort
SELECT ALL * FROM tab2 WHERE - 22 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT - col1 * + col1 DIV - + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6819
SELECT - col1 * + col1 / - + col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT ALL col1 DIV ( + col0 ) * col2 DIV + col2 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL col1 / ( + col0 ) * col2 / + col2 AS col1 FROM tab0
----
0
0
5

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col2 + - - 9 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col2 + - - 9 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6824
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 1 * - 39 FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT - COUNT( * ) * 9 FROM tab0 WHERE ( + 84 / + col0 IS NOT NULL )
----
-27

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT - COUNT ( * ) * 9 FROM tab0 WHERE ( + 84 / + col0 IS NOT NULL )
----
-27

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 = col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + 41 * COUNT( * ) * 14 AS col2 FROM tab2 AS cor0
----
1722

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 41 * COUNT ( * ) * 14 AS col2 FROM tab2 AS cor0
----
1722

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT ALL + + 58 + 56 * - col2 FROM tab1 AS cor0
----
-3246
-3750
-5318

query I rowsort
SELECT + 61 * + + col1 + + - col1 AS col1 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT DISTINCT - col1 + - + col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + 73 + - col0 FROM tab2 AS cor0
----
-2
27
9

query I rowsort
SELECT - 77 + + col2 - - - col1 + - col1 * - col2 FROM tab0 AS cor0
----
120
122
3696

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6835
SELECT + - col1 DIV CAST( + + col2 AS SIGNED ) + 31 FROM tab0 AS cor0
----
29
30
31

skipif mysql # not compatible
query I rowsort label-6835
SELECT + - col1 / CAST ( + + col2 AS INTEGER ) + 31 FROM tab0 AS cor0
----
29
30
31

query I rowsort
SELECT DISTINCT - - ( col1 ) + - 2 FROM tab2 AS cor0
----
49
65
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * + col0 NOT BETWEEN ( col0 * + - 92 ) AND ( NULL )
----

query I rowsort
SELECT ALL 87 - + 8 AS col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT - + 3 + - col2 + - 71 FROM tab0 AS cor0
----
-121
-173
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + col1 col0 FROM tab0
----
26
6
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL - 44 * COUNT( * ) AS col0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - 44 * COUNT ( * ) AS col0 FROM tab0
----
-132

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 17 NOT IN ( + col2, col1, + - col1 + col1 * - - col0 )
----

query I rowsort
SELECT ALL 59 * + 50 AS col1 FROM tab2
----
2950
2950
2950

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL MIN( + 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL MIN ( + 31 ) FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT DISTINCT + COUNT( * ) * 60 AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT + COUNT ( * ) * 60 AS col2 FROM tab2
----
180

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 24 * + 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( - col0 ) AS col2 FROM tab0 WHERE NOT + col2 <> + ( - col1 )
----

query I rowsort
SELECT ( - - col0 ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + 73 * col2 + + col2 FROM tab2 AS cor0
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT - MIN( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - MIN ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL CAST( + + col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL CAST ( + + col2 AS INTEGER ) FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + col1 * - 76 FROM tab1
----
-1064
-3572
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 AS col1, col2 col2 FROM tab0
----
2
10
2
47
2
99

query I rowsort
SELECT + + 22 * 88 AS col1 FROM tab2 cor0
----
1936
1936
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6855
SELECT + - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT - MAX( - col2 ) + + 57 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT - MAX ( - col2 ) + + 57 FROM tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + col2, col0 + - - col2 * - - col0 AS col0 FROM tab2 AS cor0
----
23
1104
40
2624
58
4425

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 83 IS NOT NULL
----

query I rowsort
SELECT - ( 73 ) AS col1 FROM tab1
----
-73
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6861
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * - - 94 AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * - - 94 AS col2 FROM tab0
----
94

query II rowsort
SELECT ALL - 27 + - 41 AS col2, - col2 + + + col1 AS col1 FROM tab2
----
-68
28
-68
37
-68
9

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL BETWEEN 31 + 90 AND ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 + + col0 * - col2 * - 52 * - - 79 * - ( + - 74 ) AS col0, + 94 col1 FROM tab2 AS cor0
----
1322365237
94
321623573
94
778219557
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6866
SELECT ALL + 6 + SUM( col1 ) AS col0, - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
72
0

skipif mysql # not compatible
query II rowsort label-6866
SELECT ALL + 6 + SUM ( col1 ) AS col0, - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE 25 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6867
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE 25 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - MIN( DISTINCT + + 25 ) + - + COUNT( ALL col0 ) + - - COUNT( * ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6868
SELECT - MIN ( DISTINCT + + 25 ) + - + COUNT ( ALL col0 ) + - - COUNT ( * ) AS col2 FROM tab2
----
-25

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - COUNT( * ) * + + 57 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-6870
SELECT - COUNT ( * ) * + + 57 FROM tab0
----
-171

query I rowsort
SELECT ALL - ( + + 89 ) + + ( col2 ) FROM tab2 AS cor0
----
-31
-49
-66

query II rowsort
SELECT ALL + ( - col1 ) + - - 82 AS col0, col2 AS col2 FROM tab2 cor0
----
15
58
31
23
5
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + ( - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT DISTINCT + - 90 * col1 - + col2 DIV col2 DIV - col2 col2 FROM tab0 cor0
----
-1890
-7290
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6875
SELECT DISTINCT + - 90 * col1 - + col2 / col2 / - col2 col2 FROM tab0 cor0
----
-1890
-7290
-90

query I rowsort
SELECT ALL + col1 * - col0 * + ( col2 ) FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT + col2 * - - col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT 78 FROM tab1 WHERE NOT + col1 = ( - col1 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0 WHERE NOT col1 - + col1 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6879
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0 WHERE NOT col1 - + col1 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 + + + 87 + 31 + - col0 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col0 + + - col2 + + 0 - col1 * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6884
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 + col1, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT DISTINCT col1 + + - col0 DIV - + ( - col2 ) FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT col1 + + - col0 / - + ( - col2 ) FROM tab1 AS cor0
----
14
4
46

query II rowsort
SELECT - col1 AS col2, + col1 * col2 AS col1 FROM tab2 AS cor0
----
-51
1173
-67
3886
-77
3080

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ( - + MIN( DISTINCT - + col2 ) ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-6889
SELECT ( - + MIN ( DISTINCT - + col2 ) ) FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 + col2 col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT COUNT( * ) * - 92 AS col2 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT COUNT ( * ) * - 92 AS col2 FROM tab2 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT col0 * + col0 / + + 8 * - CAST( NULL AS SIGNED ) * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT col0 * + col0 / + + 8 * - CAST ( NULL AS INTEGER ) * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT - col1 DIV - 3 FROM tab0 AS cor0
----
0
27
7

skipif mysql # not compatible
query I rowsort label-6893
SELECT - col1 / - 3 FROM tab0 AS cor0
----
0
27
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT DISTINCT - col0 DIV - CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT - col0 / - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT - 75 * + col1 * + - col2 AS col2 FROM tab1
----
100800
22125
239700

query II rowsort
SELECT + col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT DISTINCT - MAX( ALL - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - MAX ( ALL - col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT - ( - col1 ) * + col2 + - + 15 + col2 AS col0 FROM tab1
----
1425
3249
339

query II rowsort
SELECT DISTINCT col1, + col1 + + col1 AS col1 FROM tab0
----
1
2
21
42
81
162

query I rowsort
SELECT ALL 42 + + col2 FROM tab2
----
100
65
82

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT col0 * col2 + 93 AS col2 FROM tab2
----
1151
2653
4443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - - CAST( NULL AS SIGNED ) + COUNT( - + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - - CAST ( NULL AS INTEGER ) + COUNT ( - + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 28 * - col2 * + + col1 * - col0 - - - col1 AS col1 FROM tab0 AS cor0
----
1598859
268883
511539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT ALL - CAST( - MIN( ALL - - 42 ) AS SIGNED ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - CAST ( - MIN ( ALL - - 42 ) AS INTEGER ) FROM tab1
----
42

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - 48 * + - ( - COUNT( * ) ) AS col1 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-6908
SELECT - 48 * + - ( - COUNT ( * ) ) AS col1 FROM tab0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT COUNT( * ) * 67 AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT COUNT ( * ) * 67 AS col1 FROM tab0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT CAST( NULL AS SIGNED ) + + col0 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6912
SELECT CAST ( NULL AS INTEGER ) + + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 AS col0, col1 * - 48 * 88 AS col2 FROM tab1
----
51
-59136
85
-21120
91
-198528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT ALL col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, 91 FROM tab1
----
14
91
47
91
5
91

query I rowsort
SELECT ALL - ( + - ( 82 ) ) FROM tab0 WHERE NOT + col0 + col2 + col0 IS NULL
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6917
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 33 - - col0 AS col0 FROM tab0
----
NULL
120
NULL
130
NULL
48

skipif mysql # not compatible
query II rowsort label-6917
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 33 - - col0 AS col0 FROM tab0
----
NULL
120
NULL
130
NULL
48

query I rowsort
SELECT ALL 35 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + + 20 AS col2 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT + + 21 AS col1 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT - 53 + - - CAST( MIN( + 24 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6921
SELECT - 53 + - - CAST ( MIN ( + 24 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT + COUNT( * ) + + 86 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
86

skipif mysql # not compatible
query I rowsort label-6923
SELECT + COUNT ( * ) + + 86 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6924
SELECT ALL + CAST( - col2 AS SIGNED ) * col0 * - 67, ( - col0 ) AS col1 FROM tab2 AS cor0
----
171520
-64
291450
-75
70886
-46

skipif mysql # not compatible
query II rowsort label-6924
SELECT ALL + CAST ( - col2 AS INTEGER ) * col0 * - 67, ( - col0 ) AS col1 FROM tab2 AS cor0
----
171520
-64
291450
-75
70886
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT + - COUNT( * ) + + + 95, 77 * + - 78 AS col1 FROM tab1 AS cor0
----
92
-6006

skipif mysql # not compatible
query II rowsort label-6925
SELECT + - COUNT ( * ) + + + 95, 77 * + - 78 AS col1 FROM tab1 AS cor0
----
92
-6006

query I rowsort
SELECT ALL - 13 + + 11 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 + - 91 <= - + col0 * + + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT - COUNT( * ) + + + COUNT( * ) + - - SUM( ALL - 21 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6928
SELECT - COUNT ( * ) + + + COUNT ( * ) + - - SUM ( ALL - 21 ) FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 33 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 33 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT + 10 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 10 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL + COUNT( + - col0 ) * - 37 * - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL + COUNT ( + - col0 ) * - 37 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / + col1 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - 89 + + col1 * col0 FROM tab2
----
51
2257
67
4936
77
4839

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( + ( + col2 ) )
----

query I rowsort
SELECT ALL - col1 + - - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 48 * - col1 FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT - ( - + 90 ) AS col2 FROM tab2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col0 FROM tab2
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT - 25 DIV - - 50 * - 84 * - col2 * - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 25 / - - 50 * - 84 * - col2 * - col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col0 col1, - col2 AS col1 FROM tab2 AS cor0
----
-2346
-23
-4928
-40
-5025
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 18 + + col0 - 44 - - 83 + 10 / + + col1 + - col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL + + MAX( DISTINCT + 26 ) FROM tab1 AS cor0 WHERE col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + + MAX ( DISTINCT + 26 ) FROM tab1 AS cor0 WHERE col0 <= NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - 27 + - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL - + MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL CAST( - 39 AS SIGNED ) FROM tab1 cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL CAST ( - 39 AS INTEGER ) FROM tab1 cor0
----
-39
-39
-39

query I rowsort
SELECT - 34 AS col0 FROM tab2
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT SUM( col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT SUM ( col0 ) AS col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT - SUM( - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6953
SELECT - SUM ( - col1 ) AS col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 WHERE col2 IS NULL OR NOT - 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT 70 * + + COUNT( * ) * + - 39 * + - 60 AS col0 FROM tab0
----
491400

skipif mysql # not compatible
query I rowsort label-6955
SELECT 70 * + + COUNT ( * ) * + - 39 * + - 60 AS col0 FROM tab0
----
491400

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col0 - + + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - - 12 FROM tab2
----
-552
-768
-900

query I rowsort
SELECT DISTINCT ( + - 30 ) * - col0 AS col0 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6960
SELECT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 14 AS col1 FROM tab1 AS cor0
----
59
-14
68
-14
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT CAST( + + col0 AS SIGNED ) * + col2 - + 68 AS col2 FROM tab2 AS cor0
----
2492
4282
990

skipif mysql # not compatible
query I rowsort label-6964
SELECT CAST ( + + col0 AS INTEGER ) * + col2 - + 68 AS col2 FROM tab2 AS cor0
----
2492
4282
990

query I rowsort
SELECT - - col1 * - 51 - + 1 * + - 72 * - - col0 * + + col2 FROM tab2 AS cor0
----
180393
309783
73575

query II rowsort
SELECT + 89 + col1 - + 55, - 28 * - col0 AS col2 FROM tab2 AS cor0
----
101
2100
111
1792
85
1288

query I rowsort
SELECT DISTINCT col1 - + - col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col1, + col1 col1 FROM tab2
----
141
77
142
67
97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL COUNT( * ) * - 74 AS col1 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL COUNT ( * ) * - 74 AS col1 FROM tab2
----
-222

query I rowsort
SELECT + col0 + col0 + + col2 AS col0 FROM tab0
----
184
293
77

query II rowsort
SELECT ALL + col2 * col2 AS col0, col2 AS col1 FROM tab1
----
3481
59
4624
68
9216
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT COUNT( * ) * - MIN( - 99 ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT COUNT ( * ) * - MIN ( - 99 ) FROM tab1
----
297

query I rowsort
SELECT ALL + + 5 + + col0 + + 79 AS col1 FROM tab0 AS cor0
----
171
181
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT ALL + col2 * + col2 DIV - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + col2 * + col2 / - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6975
SELECT - + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE - - 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6977
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= - + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6977
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= - + CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT col2 * + 84 FROM tab2
----
1932
3360
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT DISTINCT - col1 DIV - 83 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - col1 / - 83 AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT 40 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT 40 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + + MIN( + + 85 ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6983
SELECT + + MIN ( + + 85 ) FROM tab2 AS cor0
----
85

query I rowsort
SELECT + col1 * col2 + + + 36 FROM tab2 AS cor0
----
1209
3116
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL + + MAX( - col0 ) FROM tab0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + + MAX ( - col0 ) FROM tab0 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6986
SELECT - COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6987
SELECT ALL + col2 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + col2 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6988
SELECT ALL COUNT( DISTINCT + col1 ) AS col1, - 19 FROM tab0
----
3
-19

skipif mysql # not compatible
query II rowsort label-6988
SELECT ALL COUNT ( DISTINCT + col1 ) AS col1, - 19 FROM tab0
----
3
-19

query II rowsort
SELECT ALL + col0, - 60 AS col2 FROM tab0 AS cor0
----
15
-60
87
-60
97
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT - COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6990
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - + COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6991
SELECT - + COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT DISTINCT - 29 + + 82 * - + col1 + CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-110
-1730
-6590

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 29 + + 82 * - + col1 + CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-110
-1730
-6590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL + - CAST( - SUM( ALL col2 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6993
SELECT ALL + - CAST ( - SUM ( ALL col2 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6994
SELECT ALL * FROM tab2 WHERE NOT - col1 + - - 86 + - col0 NOT IN ( - + ( + col1 ) - CAST( NULL AS SIGNED ), 53, + - col2, - - col0 * col1 + - - col0 - + - col1 / col0 * + CAST( - col0 AS SIGNED ) * - col0 + - 94 )
----

skipif mysql # not compatible
query III rowsort label-6994
SELECT ALL * FROM tab2 WHERE NOT - col1 + - - 86 + - col0 NOT IN ( - + ( + col1 ) - CAST ( NULL AS INTEGER ), 53, + - col2, - - col0 * col1 + - - col0 - + - col1 / col0 * + CAST ( - col0 AS INTEGER ) * - col0 + - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT COUNT( + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6995
SELECT DISTINCT COUNT ( + col0 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + col0 col2 FROM tab1
----
136
170
176

query I rowsort
SELECT + 7 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - 34 + + col2 - + 38 AS col1 FROM tab0
----
-25
-62
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT col0 * - col0 * - CAST( col1 AS SIGNED ) + col0 col2 FROM tab2
----
107962
315456
376950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6999
SELECT col0 * - col0 * - CAST ( col1 AS INTEGER ) + col0 col2 FROM tab2
----
107962
315456
376950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 + col0 * + + col2 * - 70 col2 FROM tab2 AS cor0
----
-179112
-304412
-73972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7001
SELECT CAST( NULL AS DECIMAL ) + 97 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7001
SELECT CAST ( NULL AS REAL ) + 97 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + + 9 + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7002
SELECT + + 9 + COUNT ( * ) FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2 + + col2, + col0 + - 9 - CAST( NULL AS SIGNED ) + + col2 * + - 98 * + col1, col1 + + + 65, - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2 + + col2, + col0 + - 9 - CAST ( NULL AS INTEGER ) + + col2 * + - 98 * + col1, col1 + + + 65, - - col2 )
----
0

query I rowsort
SELECT - + ( + - col2 ) * - col1 + col2 FROM tab1 cor0
----
-1248
-236
-3128

query I rowsort
SELECT DISTINCT + - col2 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7006
SELECT DISTINCT + COUNT( * ) AS col2, MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( - col1 + + 28 + - + col1 ) IS NOT NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT + COUNT ( * ) AS col2, MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( - col1 + + 28 + - + col1 ) IS NOT NULL
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL MAX( - col1 ) * - COUNT( * ) + + 71 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7007
SELECT ALL MAX ( - col1 ) * - COUNT ( * ) + + 71 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
224

query I rowsort
SELECT ALL + 50 AS col1 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL COUNT( * ) - 58 AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL COUNT ( * ) - 58 AS col1 FROM tab2
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7010
SELECT - + ( - CAST( NULL AS DECIMAL ) ) * + col0 FROM tab2 WHERE NULL = + col1
----

skipif mysql # not compatible
query I rowsort label-7010
SELECT - + ( - CAST ( NULL AS REAL ) ) * + col0 FROM tab2 WHERE NULL = + col1
----

query I rowsort
SELECT ALL - ( col0 ) * - col0 * + col0 FROM tab0
----
3375
658503
912673

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + col0 - + 46 + 70 DIV + col2 AS col0 FROM tab0
----
-30
48
51

skipif mysql # not compatible
query I rowsort label-7012
SELECT + col0 - + 46 + 70 / + col2 AS col0 FROM tab0
----
-30
48
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 67 col1 FROM tab2
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT 20 - + + MAX( ( col0 ) ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-7014
SELECT 20 - + + MAX ( ( col0 ) ) FROM tab0
----
-77

query I rowsort
SELECT DISTINCT + col0 + + - 30 AS col1 FROM tab0
----
-15
57
67

query I rowsort
SELECT - col2 - + col0 FROM tab2 cor0
----
-104
-133
-69

query II rowsort
SELECT + col0, col0 + + col2 FROM tab0 AS cor0
----
15
62
87
97
97
196

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 89 / col1 * 81 < + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7019
SELECT DISTINCT + + 1 AS col2, - col1 DIV + - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
1
0

skipif mysql # not compatible
query II rowsort label-7019
SELECT DISTINCT + + 1 AS col2, - col1 / + - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT ALL - - CAST( NULL AS SIGNED ) / + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL - - CAST ( NULL AS INTEGER ) / + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - - col1
----
0

query I rowsort
SELECT DISTINCT - - 82 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + - COUNT( ALL - + ( + 45 ) ) + + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-7023
SELECT + - COUNT ( ALL - + ( + 45 ) ) + + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
30

query I rowsort
SELECT DISTINCT ( + 67 ) * + + col0 AS col1 FROM tab1
----
3417
5695
6097

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + ( - col2 ) ) NOT BETWEEN ( NULL ) AND NULL )
----

query II rowsort
SELECT - col1 * - 21 AS col1, - 41 * - 28 FROM tab1 AS cor0
----
105
1148
294
1148
987
1148

query II rowsort
SELECT DISTINCT + + 29 * col1 - - col1 + 90 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
120
-1
2520
-81
720
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT - col2 + 13, + 48 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col0 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT SUM( ALL - col1 ) AS col1, - ( COUNT( * ) ) FROM tab0 cor0
----
-103
-3

skipif mysql # not compatible
query II rowsort label-7031
SELECT SUM ( ALL - col1 ) AS col1, - ( COUNT ( * ) ) FROM tab0 cor0
----
-103
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col1, + 85 FROM tab1 AS cor0
----
-9
85

skipif mysql # not compatible
query II rowsort label-7032
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1, + 85 FROM tab1 AS cor0
----
-9
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT + 17 DIV col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7033
SELECT + 17 / col1 FROM tab1
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT DISTINCT 65 DIV - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT 65 / - col0 FROM tab2
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col0 FROM tab2
----
-63
-63
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 / - - 58 + - 45 IS NULL
----

query I rowsort
SELECT ( + 46 ) AS col1 FROM tab2
----
46
46
46

query I rowsort
SELECT DISTINCT col1 + - + 70 FROM tab0
----
-49
-69
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL SUM( ALL + col1 ) col1 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7039
SELECT ALL SUM ( ALL + col1 ) col1 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + - col0 col2 FROM tab0 AS cor0
----
-123
-133
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT COUNT( * ) + + MAX( DISTINCT col1 ) FROM tab2 cor0
----
80

skipif mysql # not compatible
query I rowsort label-7041
SELECT COUNT ( * ) + + MAX ( DISTINCT col1 ) FROM tab2 cor0
----
80

query I rowsort
SELECT ALL col2 + - + col0 * + 64 FROM tab0 AS cor0
----
-5558
-6109
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7043
SELECT + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 43 + + 35 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - + col2 - - + col0 + - 54 FROM tab0 AS cor0
----
-56
-86
23

query I rowsort
SELECT ALL - 76 * + 36 * - col2 + + - 56 AS col2 FROM tab2 AS cor0
----
109384
158632
62872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT + col2 + col1 * + CAST( col2 AS SIGNED ) * - col0 * - - col2 * 26 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
-24717925
-4750082
-69782167

skipif mysql # not compatible
query I rowsort label-7047
SELECT + col2 + col1 * + CAST ( col2 AS INTEGER ) * - col0 * - - col2 * 26 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
-24717925
-4750082
-69782167

query I rowsort
SELECT ALL + - col1 - + col2 - + ( - col0 ) FROM tab0 AS cor0
----
-113
-3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - - 28 + ( - COUNT( * ) ) AS col0 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-7049
SELECT - - 28 + ( - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
25

query I rowsort
SELECT + 24 + 64 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT + + 50 FROM tab2 AS cor0 WHERE - ( + col0 ) BETWEEN + - 56 * - - 61 AND + col0 + - + col2
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) - - col2 AS col2, col2 + - - 39 - - col2 col2 FROM tab0
----
0
133
0
237
0
59

query I rowsort
SELECT + 21 + + col1 AS col2 FROM tab2
----
72
88
98

query III rowsort
SELECT * FROM tab2 WHERE + - col2 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - MIN( + 29 ) + 91 AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7055
SELECT - MIN ( + 29 ) + 91 AS col2 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - MIN( col1 ) * + 63 AS col0 FROM tab2 AS cor0
----
-3213

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - MIN ( col1 ) * + 63 AS col0 FROM tab2 AS cor0
----
-3213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT CAST( 55 AS SIGNED ) FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-7057
SELECT CAST ( 55 AS INTEGER ) FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT ALL + col2 * + 18 + col1 FROM tab2 AS cor0
----
1111
465
797

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT + MIN( DISTINCT - 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT + MIN ( DISTINCT - 33 ) FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL + SUM( ALL + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + SUM ( ALL + + col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT - 31 DIV + 59 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT - 31 / + 59 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 35 + col0 + - col2 FROM tab0 cor0
----
-37
-67
42

query I rowsort
SELECT + col2 + - 88 + col0 AS col1 FROM tab1 cor0
----
56
59
71

query I rowsort
SELECT + + col1 + - - 43 FROM tab2 AS cor0
----
110
120
94

query I rowsort
SELECT + - 19 + + - col0 AS col0 FROM tab0 AS cor0
----
-106
-116
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7067
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 NOT IN ( - 90 * - CAST( col2 AS SIGNED ), 79, + 14, - - CAST( NULL AS SIGNED ) / col1 + + + col0 + - + 23, + col1, - col1, - col1, ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7067
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 NOT IN ( - 90 * - CAST ( col2 AS INTEGER ), 79, + 14, - - CAST ( NULL AS INTEGER ) / col1 + + + col0 + - + 23, + col1, - col1, - col1, ( + col0 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( 18 <= - + col2 + + + 35 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - col1 * col0 + + col2
----

query I rowsort
SELECT DISTINCT col1 + + 76 AS col0 FROM tab0
----
157
77
97

query I rowsort
SELECT ALL - col1 + - + col2 + - 60 FROM tab0 AS cor0
----
-160
-188
-91

query I rowsort
SELECT col0 * 86 AS col0 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT ALL + 74 + + 42 FROM tab2 cor0
----
116
116
116

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 / + - col2 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + + col1 * - - col0
----

query I rowsort
SELECT - 26 * + + 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d665627abe2c4b4749b027e7d9dcfe2c

query I rowsort
SELECT ALL + col1 + 22 * col0 AS col1 FROM tab1 AS cor0
----
1136
1875
2049

query I rowsort
SELECT DISTINCT 26 - - + col0 AS col0 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL - SUM( DISTINCT - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL - SUM ( DISTINCT - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
224

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 40 * + 15 - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - 59 ) + + + 31 + + + col1 - col1 = - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - 59 ) + + + 31 + + + col1 - col1 = - - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT - + COUNT( ALL + 60 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - + COUNT ( ALL + 60 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + 52 - - - col1 * + + 81 FROM tab1 cor0
----
-1186
-3859
-457

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL SUM( - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL SUM ( - col1 ) FROM tab0
----
-103

query I rowsort
SELECT ALL - col2 * col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col0, + 65 col1 FROM tab1
----
-59
65
-68
65
-96
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT - CAST( - col2 AS SIGNED ) col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7088
SELECT - CAST ( - col2 AS INTEGER ) col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7089
SELECT 67, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
67
NULL
67
NULL
67
NULL

skipif mysql # not compatible
query II rowsort label-7089
SELECT 67, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
67
NULL
67
NULL
67
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 IN ( - col1 + + - 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT - CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7091
SELECT - CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT - CAST( + 8 AS SIGNED ) AS col0 FROM tab0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-7092
SELECT - CAST ( + 8 AS INTEGER ) AS col0 FROM tab0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - + 32 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 87 <> + + 8 + - - 18
----

query I rowsort
SELECT ALL - ( - + 58 ) + col0 FROM tab1
----
109
143
149

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT - - col0 * + col2 DIV - - col2 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7097
SELECT - - col0 * + col2 / - - col2 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 9 * - - col2 AS col2 FROM tab0 cor0
----
-423
-891
-90

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT ALL - ( - ( CAST( + 10 AS SIGNED ) ) ) + + ( - col2 ) AS col2 FROM tab1
----
-49
-58
-86

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - ( - ( CAST ( + 10 AS INTEGER ) ) ) + + ( - col2 ) AS col2 FROM tab1
----
-49
-58
-86

query I rowsort
SELECT - col1 * - - col0 * + col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT - MIN( col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - MIN ( col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT - ( - + col0 ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT COUNT( * ) + - MAX( col0 ) * + + 29 * + + 84 FROM tab0
----
-236289

skipif mysql # not compatible
query I rowsort label-7104
SELECT COUNT ( * ) + - MAX ( col0 ) * + + 29 * + + 84 FROM tab0
----
-236289

query I rowsort
SELECT DISTINCT - 84 FROM tab1, tab2 AS cor0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-7106
SELECT col0 + + col1 DIV - + col2, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-7106
SELECT col0 + + col1 / - + col2, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT col1 * - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 - + col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - col2 * - CAST( ( + col0 ) AS SIGNED ) - 45 AS col2 FROM tab0
----
660
825
9558

skipif mysql # not compatible
query I rowsort label-7109
SELECT - col2 * - CAST ( ( + col0 ) AS INTEGER ) - 45 AS col2 FROM tab0
----
660
825
9558

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2 WHERE NULL >= + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 77 ) col0 FROM tab1 WHERE col1 - col1 >= ( NULL )
----

query I rowsort
SELECT ALL 85 FROM tab0 WHERE ( 96 ) <> ( col2 )
----
85
85
85

query III rowsort
SELECT ALL * FROM tab0 WHERE 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * col1 - - col0 FROM tab1
----
110
2300
247

query III rowsort
SELECT * FROM tab1 WHERE NOT 10 = ( - col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT 17 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT 17 / col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT + 49 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7118
SELECT + 49 / - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT COUNT( * ) DIV MIN( DISTINCT col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( * ) / MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ( - ( + col1 ) ) * - col1 AS col0 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) NOT BETWEEN - col2 * + 46 AND 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + 90 + + MAX( 26 ) AS col1 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-7122
SELECT + 90 + + MAX ( 26 ) AS col1 FROM tab2
----
116

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + 51 = 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ( ( - MAX( + 31 ) ) ) AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-7125
SELECT ( ( - MAX ( + 31 ) ) ) AS col2 FROM tab0
----
-31

query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab1 WHERE NOT 75 * - col1 IN ( - col0 + col1 )
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NOT + 89 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 40 - col2 * col2 FROM tab0 WHERE NOT ( NULL ) > + ( col0 ) * 5
----

query I rowsort
SELECT DISTINCT + 50 * - ( + col2 ) + + 97 FROM tab1
----
-2853
-3303
-4703

query III rowsort
SELECT ALL * FROM tab1 WHERE + 51 + + 99 * - col0 BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7131
SELECT + ( MAX( ALL 36 ) ) DIV 55 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7131
SELECT + ( MAX ( ALL 36 ) ) / 55 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT + 16 DIV COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7132
SELECT + 16 / COUNT ( * ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT - 80 DIV - 43 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7134
SELECT - 80 / - 43 AS col0 FROM tab0 AS cor0
----
1
1
1

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) <= + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE ( col1 - + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7136
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE ( col1 - + col2 ) IS NOT NULL
----
3

query I rowsort
SELECT + col0 * col2 + 49 FROM tab1 AS cor0
----
4945
5064
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT MAX( col1 ) + + 71 FROM tab0 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-7138
SELECT MAX ( col1 ) + + 71 FROM tab0 AS cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7140
SELECT ALL SUM( col0 ) DIV 85 + COUNT( * ) DIV COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL SUM ( col0 ) / 85 + COUNT ( * ) / COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col0 NOT BETWEEN ( - ( col2 ) ) AND 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 80 + + col0 FROM tab0 AS cor0
----
167
177
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT col2 * - col0 + + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-4890
-5004
-6187

skipif mysql # not compatible
query I rowsort label-7143
SELECT col2 * - col0 + + col2 / + col1 AS col1 FROM tab1 AS cor0
----
-4890
-5004
-6187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 14 * + 49 ) NOT IN ( col1 + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col1 ) <= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT ALL + ( 54 ) / CAST( + col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT - col1 * - col1 <> - 89
----

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + ( 54 ) / CAST ( + col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT - col1 * - col1 <> - 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7147
SELECT ALL * FROM tab0 WHERE NOT ( + 45 ) < CAST( + col1 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-7147
SELECT ALL * FROM tab0 WHERE NOT ( + 45 ) < CAST ( + col1 AS INTEGER )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT COUNT( * ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT ALL + CAST( - ( + col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + CAST ( - ( + col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL - 2 + + 79 + + 51 AS col0 FROM tab2
----
128
128
128

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col1 IN ( ( col2 ) )
----

query I rowsort
SELECT 15 FROM tab2 WHERE + col0 NOT BETWEEN ( NULL ) AND + ( ( 49 ) )
----
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT ALL + CAST( 2 AS SIGNED ) * + col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + CAST ( 2 AS INTEGER ) * + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 75 > 53 - - col0 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * 48 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT ALL + 31 + - col0 * + 5 FROM tab0
----
-404
-44
-454

query I rowsort
SELECT - col2 + + 27 * col2 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE - 97 * + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT ALL col1 DIV - 30 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL col1 / - 30 AS col2 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7160
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 90, col2 col1 FROM tab0
----
90
10
90
47
90
99

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 20 - ( - col2 ) BETWEEN - col2 * - col2 AND ( col1 * 49 )
----
-46
-64
-75

query II rowsort
SELECT col0 AS col2, - 82 AS col2 FROM tab2 cor0
----
46
-82
64
-82
75
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT 73 DIV col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7164
SELECT 73 / col2 FROM tab1 cor0
----
0
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 45 * + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7167
SELECT + col0 DIV - 75 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7167
SELECT + col0 / - 75 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / col0 * 89 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / col0 * 89 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - + ( + 56 ) * COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - + ( + 56 ) * COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT ALL - 2 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT ( - - 25 ) FROM tab1 AS cor0
----
25

query II rowsort
SELECT ALL + col2 AS col0, - 10 * + 58 FROM tab0 AS cor0
----
10
-580
47
-580
99
-580

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 63 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT col2 NOT IN ( col1 * - col2 )
----

query I rowsort
SELECT ALL + col2 * + col0 * 50 FROM tab2
----
128000
217500
52900

query II rowsort
SELECT col2 * 25 AS col1, + col0 FROM tab1
----
1475
85
1700
91
2400
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT DISTINCT col0 + - CAST( - col0 AS SIGNED ) * 28 FROM tab1 WHERE ( NULL ) < 77 - - + col1
----

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT col0 + - CAST ( - col0 AS INTEGER ) * 28 FROM tab1 WHERE ( NULL ) < 77 - - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7179
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7179
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7180
SELECT * FROM tab1 WHERE NOT 52 BETWEEN NULL AND ( - - 83 * CAST( + 79 * ( - 76 * 32 ) AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7180
SELECT * FROM tab1 WHERE NOT 52 BETWEEN NULL AND ( - - 83 * CAST ( + 79 * ( - 76 * 32 ) AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - 32 col0 FROM tab0
----
-2176
-2176
-2176

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( - - 57 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * col1 - 96 IS NOT NULL
----

query I rowsort
SELECT + ( - ( - + col1 ) ) FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col2 FROM tab1 cor0
----
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 3 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 42 NOT IN ( 93 * + col0 + + col0 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 16 NOT IN ( - + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 81 * - 26 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - 8 * col1 FROM tab2 cor0
----
-362
-461
-552

query I rowsort
SELECT DISTINCT 64 + + 42 FROM tab2 AS cor0
----
106

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 68 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
3468
5780
6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 9 ) > ( col2 )
----

query I rowsort
SELECT ALL - ( - col0 ) * ( + + col2 ) FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT + 54 + + CAST( NULL AS SIGNED ) * + 25 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT + 54 + + CAST ( NULL AS INTEGER ) * + 25 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 31 + + - 27 * + col2 FROM tab0
----
-1238
-239
-2642

query I rowsort
SELECT DISTINCT col1 - - 11 FROM tab1 AS cor0
----
16
25
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 25 - + col1 BETWEEN ( - 43 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + col1 col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7202
SELECT ( ( CAST( NULL AS SIGNED ) ) ) / - 35 / col1 - - col0 - + 21 + 19 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7202
SELECT ( ( CAST ( NULL AS INTEGER ) ) ) / - 35 / col1 - - col0 - + 21 + 19 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + - ( + col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - + 85 * col1 AS col0 FROM tab0 AS cor0
----
-1785
-6885
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + + COUNT( * ) * + + COUNT( + col2 ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7207
SELECT ALL + + COUNT ( * ) * + + COUNT ( + col2 ) col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 75 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
1036
3478
370

query III rowsort
SELECT * FROM tab0 WHERE NOT 40 IN ( - col2, - col1 / - + ( - 63 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE + + col2 / + + ( - 25 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE + + col2 / + + ( - 25 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT MAX( ALL + - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7211
SELECT MAX ( ALL + - col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL COUNT( * ) * - - 77 AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL COUNT ( * ) * - - 77 AS col1 FROM tab2
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7213
SELECT DISTINCT * FROM tab1 WHERE + + col1 + - 77 / CAST( NULL AS DECIMAL ) >= + - col1
----

skipif mysql # not compatible
query III rowsort label-7213
SELECT DISTINCT * FROM tab1 WHERE + + col1 + - 77 / CAST ( NULL AS REAL ) >= + - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 < NULL
----

query I rowsort
SELECT ALL + col1 + 85 + col2 / + col1 * - 57 AS col0 FROM tab0 WHERE ( + col1 ) NOT IN ( + col1, col2 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 5 col1, col2 AS col2 FROM tab2 AS cor0
----
-5
23
-5
40
-5
58

query I rowsort
SELECT - + 93 * - - col2 + - col0 FROM tab2 AS cor0
----
-2185
-3784
-5469

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT - + SUM( DISTINCT - col1 ) FROM tab2 cor0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT - + SUM ( DISTINCT - col1 ) FROM tab2 cor0 WHERE ( NULL ) > NULL
----
NULL

query I rowsort
SELECT - + 70 * - + col2 - + ( col2 ) AS col2 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT ALL 86 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + ( - 66 ) * col1 AS col0 FROM tab2 AS cor0
----
-3366
-4422
-5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE NULL > ( 34 )
----

query I rowsort
SELECT DISTINCT 32 + - + 65 AS col1 FROM tab0 AS cor0
----
-33

query II rowsort
SELECT 2 * + + 51, col0 AS col2 FROM tab2 AS cor0
----
102
46
102
64
102
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT + CAST( - ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT + CAST ( - ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 65 + - col2 IS NULL
----

query I rowsort
SELECT ALL col2 + col1 * + - 11 * - col1 AS col1 FROM tab0
----
110
4861
72218

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL < + col1 AND NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + COUNT( * ) + + 32 + - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7229
SELECT + COUNT ( * ) + + 32 + - COUNT ( * ) FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL MAX( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL MAX ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - + col0 BETWEEN NULL AND - col2 * + col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 63 AS col1, col2 + - + 27 + 99 AS col1 FROM tab1 cor0
----
-63
131
-63
140
-63
168

query II rowsort
SELECT + 1, - 69 + - - col0 AS col0 FROM tab2
----
1
-23
1
-5
1
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 < - + col0 * - + 45
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7235
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <= 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 74 * - 68 * col1 AS col2 FROM tab0 AS cor0 WHERE 62 IS NOT NULL
----
-105672
-407592
-5032

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 49 * + 8 * + - 65 * + col0 * - - col1 + - 2 = NULL
----

query I rowsort
SELECT + - col2 + + - col0 * + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 / + col1 ) AND col2 * - - 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col2 col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + col0 / + + col0 * + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + COUNT( DISTINCT col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7242
SELECT + COUNT ( DISTINCT col1 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + 20 * - + col0 AS col2 FROM tab2
----
-1203
-1433
-869

query II rowsort
SELECT - col1 + - col0, col0 FROM tab1
----
-138
91
-65
51
-90
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7245
SELECT 32 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7245
SELECT 32 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT + 64 + - CAST( NULL AS SIGNED ) + - ( + - 33 ) * ( + col1 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT + 64 + - CAST ( NULL AS INTEGER ) + - ( + - 33 ) * ( + col1 ) FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1 * + - 84, col2 FROM tab1 AS cor0
----
-1176
96
-3948
68
-420
59

query III rowsort
SELECT * FROM tab2 WHERE 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7249
SELECT ALL - - COUNT( * ), COUNT( * ) FROM tab1 AS cor0 WHERE + 39 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7249
SELECT ALL - - COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE + 39 IS NULL
----
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL + - COUNT( * ) * - CAST( 76 AS SIGNED ) + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + - COUNT ( * ) * - CAST ( 76 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT DISTINCT - COUNT( * ) DIV + + 21 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT - COUNT ( * ) / + + 21 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 - col0 * - - col1 col1 FROM tab0 AS cor0
----
-1248
-130
-1860

query I rowsort
SELECT ALL + col2 + 74 + - 30 AS col2 FROM tab0 AS cor0
----
143
54
91

query I rowsort
SELECT DISTINCT + - col2 - + col1 * 83 AS col2 FROM tab0 AS cor0
----
-1753
-182
-6770

query I rowsort
SELECT + - 3 + - col1 AS col2 FROM tab0 AS cor0
----
-24
-4
-84

query I rowsort
SELECT + 86 + 71 * col0 - col2 FROM tab2 AS cor0
----
3329
4590
5353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 23, - col2 col2 FROM tab1 AS cor0
----
-23
-59
-23
-68
-23
-96

query I rowsort
SELECT + col2 + - 89 AS col0 FROM tab0
----
-42
-79
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 95 IS NULL
----

query I rowsort
SELECT 75 + + + col2 AS col0 FROM tab0
----
122
174
85

query I rowsort
SELECT - 39 * col2 + - + ( - col2 ) FROM tab0
----
-1786
-3762
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT COUNT( * ) DIV + COUNT( * ) + SUM( DISTINCT col1 ) col1 FROM tab1
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7263
SELECT COUNT ( * ) / + COUNT ( * ) + SUM ( DISTINCT col1 ) col1 FROM tab1
----
67

query II rowsort
SELECT - - 37, - col2 + 88 FROM tab1 WHERE ( NULL ) < - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL + - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT col1 - + + col1 FROM tab0 AS cor0 WHERE NOT col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7266
SELECT col1 - + + col1 FROM tab0 AS cor0 WHERE NOT col2 <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + - col1 * + - 58 * - col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) AS col0, 15 col2 FROM tab1 cor0
----
-14
15
-47
15
-5
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7269
SELECT * FROM tab1 cor0 WHERE NOT + 95 NOT BETWEEN NULL AND + col1 + - ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7269
SELECT * FROM tab1 cor0 WHERE NOT + 95 NOT BETWEEN NULL AND + col1 + - ( + + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 + - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + col1 * + col2 * + col2 * - - col1 * + - 47 FROM tab0 AS cor0
----
-2072700
-460647
-681182703

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7275
SELECT CAST( NULL AS DECIMAL ) * - - col2 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT CAST ( NULL AS REAL ) * - - col2 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 62 ) col1 FROM tab0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL MAX( DISTINCT - 78 ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL MAX ( DISTINCT - 78 ) FROM tab1
----
-78

query I rowsort
SELECT ALL + 36 + - 44 + col1 * 16 * + - 46 * - + col0 FROM tab0
----
1344664
71384
894232

query I rowsort
SELECT + col1 * - 17 * - - 57 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query II rowsort
SELECT DISTINCT + col2 * + col0 + col2 AS col1, + 25 AS col1 FROM tab2
----
1081
25
2600
25
4408
25

query I rowsort
SELECT + col0 + - 13 FROM tab2
----
33
51
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - COUNT( ALL + col1 ) + 80 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-7284
SELECT - COUNT ( ALL + col1 ) + 80 FROM tab0
----
77

query II rowsort
SELECT col0 + - col1 AS col2, col2 FROM tab2
----
-13
40
-5
23
8
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT col0 + + col2 DIV + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7286
SELECT col0 + + col2 / + col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 15 BETWEEN - col2 + - 31 * 15 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 - + col2 + col0 AS col2 FROM tab2 AS cor0
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE col1 * + col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 * + col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + 86 - + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 86 - + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
152

query I rowsort
SELECT DISTINCT + - col0 * + 33 + - + col1 FROM tab1 AS cor0
----
-1697
-2810
-3050

query I rowsort
SELECT ALL + - col0 - + + ( - col1 ) FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - - 50 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
50
50
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7294
SELECT + CAST( NULL AS DECIMAL ) 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-7294
SELECT + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 7 + + - 88 - - col1 + - col0 * - col2, - col1 FROM tab1 WHERE NOT - - col1 = NULL
----

query I rowsort
SELECT ALL + 30 * - col1 AS col1 FROM tab1
----
-1410
-150
-420

query II rowsort
SELECT col1 * - col1 * + + col0 AS col0, - 97 + - col0 AS col1 FROM tab2
----
-119646
-143
-336675
-172
-379456
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT ALL - col0 * col1 DIV 10 FROM tab0
----
-121
-182
-9

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL - col0 * col1 / 10 FROM tab0
----
-121
-182
-9

query II rowsort
SELECT 26 AS col2, - 83 * col1 FROM tab2
----
26
-4233
26
-5561
26
-6391

query I rowsort
SELECT col0 * + 65 FROM tab0
----
5655
6305
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT + COUNT( * ) + + COUNT( * ) FROM tab0 WHERE NOT col0 NOT BETWEEN + col1 AND - ( - col1 ) * + - CAST( NULL AS SIGNED ) - + col0 * + 23 * + - 88
----
0

skipif mysql # not compatible
query I rowsort label-7301
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE NOT col0 NOT BETWEEN + col1 AND - ( - col1 ) * + - CAST ( NULL AS INTEGER ) - + col0 * + 23 * + - 88
----
0

query I rowsort
SELECT DISTINCT + - 90 FROM tab2 AS cor0 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT ALL 37 AS col1 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT ALL + ( + + CAST( + AVG ( ALL - - col2 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + ( + + CAST ( + AVG ( ALL - - col2 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab0 WHERE NOT + 34 <> + col1 + + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 24 * - col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT ALL 73 DIV + ( + col2 ) FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL 73 / + ( + col2 ) FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + - MIN( + col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT + - MIN ( + col1 ) col2 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT DISTINCT - + col1 DIV + col1 + + - col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-2602
-7226
-8282

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - + col1 / + col1 + + - col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-2602
-7226
-8282

onlyif mysql # DIV for integer division: 
query II rowsort label-7310
SELECT ALL + ( - 20 ) DIV - 19 - col2 + - + 38 + + col2 + + 12 DIV + col2 AS col2, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-36
87
-37
15
-37
97

skipif mysql # not compatible
query II rowsort label-7310
SELECT ALL + ( - 20 ) / - 19 - col2 + - + 38 + + col2 + + 12 / + col2 AS col2, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-36
87
-37
15
-37
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT SUM( - 66 ) DIV 32 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7311
SELECT SUM ( - 66 ) / 32 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - 20 + + ( - col2 ) FROM tab2
----
-43
-60
-78

query I rowsort
SELECT ALL - col0 + + + col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL + 1 + + 6 FROM tab0
----
7
7
7

query I rowsort
SELECT DISTINCT - - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 18 + + - col2 FROM tab2 AS cor0
----
-22
-40
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL + - MIN( + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + - MIN ( + - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7318
SELECT + CAST( NULL AS SIGNED ) * SUM( ALL + 51 ) * - COUNT( * ) / - - 89 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT + CAST ( NULL AS INTEGER ) * SUM ( ALL + 51 ) * - COUNT ( * ) / - - 89 FROM tab0
----
NULL

query II rowsort
SELECT 96 AS col0, col0 + - 70 AS col2 FROM tab2
----
96
-24
96
-6
96
5

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col0 - - - 26 FROM tab2
----
20
38
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT ALL - - col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - - col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT ALL - col1 - - - col1 DIV 96 * - col2 * col2 col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7324
SELECT ALL - col1 - - - col1 / 96 * - col2 * col2 col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) + - 32 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) + - 32 FROM tab0 AS cor0
----
-35

query II rowsort
SELECT DISTINCT - + col2 - - ( - 36 ) + - 36, col1 FROM tab1 AS cor0
----
-131
5
-140
47
-168
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7328
SELECT col1 + + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT col1 + + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + - 17 + col2 + - col0 FROM tab0 AS cor0
----
-1681
-247
-767

query I rowsort
SELECT ( 4 ) + - col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT + MIN( - 86 ) FROM tab2 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7331
SELECT + MIN ( - 86 ) FROM tab2 cor0
----
-86

query I rowsort
SELECT - col2 * + + col0 + - - 2 * col1 - + + col2 - + + col1 * + col1 FROM tab0 AS cor0
----
-1279
-7151
-9701

query II rowsort
SELECT DISTINCT col1 * col1 AS col1, + col1 AS col1 FROM tab0
----
1
1
441
21
6561
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 64 + - + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7335
SELECT - 71 DIV col1 + col0 AS col1, ( + col1 ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
46
14
71
5
90
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7335
SELECT - 71 / col1 + col0 AS col1, ( + col1 ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
46
14
71
5
90
47

query I rowsort
SELECT - col0 * + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + 95 * - - 61 * 2 + - 3 FROM tab0 cor0
----
11587
11587
11587

query II rowsort
SELECT DISTINCT - 81 * + + col1, col2 FROM tab1 AS cor0
----
-1134
96
-3807
68
-405
59

query I rowsort
SELECT - 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) NOT BETWEEN + 94 AND NULL
----

query I rowsort
SELECT ALL + 69 * - 96 AS col1 FROM tab0
----
-6624
-6624
-6624

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT col0 + + col0 DIV col2 + + col2 AS col1 FROM tab2 AS cor0
----
105
134
71

skipif mysql # not compatible
query I rowsort label-7342
SELECT col0 + + col0 / col2 + + col2 AS col1 FROM tab2 AS cor0
----
105
134
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT + + 42 * + SUM( + 26 ) + 3 + MAX( DISTINCT - + col0 ) col1 FROM tab0 AS cor0
----
3264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7343
SELECT DISTINCT + + 42 * + SUM ( + 26 ) + 3 + MAX ( DISTINCT - + col0 ) col1 FROM tab0 AS cor0
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT ALL - ( + - col1 ) + 59 DIV + col2 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - ( + - col1 ) + 59 / + col2 FROM tab2 AS cor0
----
53
68
78

query II rowsort
SELECT + 52 * - - col0 + col2 AS col2, col0 + 28 AS col1 FROM tab1 AS cor0
----
2748
79
4479
113
4800
119

query II rowsort
SELECT ALL + + col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT SUM( ALL col0 ) + 95 FROM tab0 cor0 WHERE 99 * - col1 * + + col2 / + col1 > 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT SUM ( ALL col0 ) + 95 FROM tab0 cor0 WHERE 99 * - col1 * + + col2 / + col1 > 27
----
NULL

query II rowsort
SELECT DISTINCT + 43 AS col2, col2 AS col0 FROM tab0 cor0
----
43
10
43
47
43
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + COUNT( ( + col2 ) ) * - MAX( 53 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7349
SELECT + COUNT ( ( + col2 ) ) * - MAX ( 53 ) FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT + col1 * - - ( + col1 ) AS col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT DISTINCT col1 DIV - 88 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT col1 / - 88 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL ( - CAST( - + COUNT( col2 ) AS SIGNED ) ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL ( - CAST ( - + COUNT ( col2 ) AS INTEGER ) ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - col1 * - col0 + + col2 * + col1 + - + 17 FROM tab1 AS cor0
----
2041
703
7456

query I rowsort
SELECT DISTINCT - - 97 AS col0 FROM tab1 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 40 / - col2 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT col2 * + - 84 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT col2 * + - 84 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab0 cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7359
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) * - MIN( ALL + col1 ) + - MIN( - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - MIN ( ALL + col1 ) + - MIN ( - col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL MIN( DISTINCT 83 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL MIN ( DISTINCT 83 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * 12 FROM tab1
----
168
564
60

query I rowsort
SELECT DISTINCT col0 * - col2 * 24 AS col0 FROM tab0
----
-16920
-20880
-230472

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT SUM( ALL + 1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7363
SELECT SUM ( ALL + 1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + MAX( ALL - + ( - col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7364
SELECT + MAX ( ALL - + ( - col2 ) ) AS col2 FROM tab0
----
99

query I rowsort
SELECT 36 * + col2 FROM tab0
----
1692
3564
360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7366
SELECT + 93 DIV + CAST( ( 20 ) AS SIGNED ) FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-7366
SELECT + 93 / + CAST ( ( 20 ) AS INTEGER ) FROM tab1
----
4
4
4

query I rowsort
SELECT 4 FROM tab2 WHERE NOT NULL IS NOT NULL
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, - col2 * - + col0 AS col0 FROM tab1
----
59
5015
68
6188
96
4896

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 24 <= NULL
----

query II rowsort
SELECT - 52 AS col2, 59 * - col0 FROM tab2
----
-52
-2714
-52
-3776
-52
-4425

query II rowsort
SELECT - col0, - 81 * + col0 AS col1 FROM tab1
----
-51
-4131
-85
-6885
-91
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) > + 73
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) > + 73
----
0

query I rowsort
SELECT ALL + 89 * col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT - - 72 FROM tab0 WHERE + col1 <= + + 35
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT - COUNT( + col1 ) FROM tab1 AS cor0 WHERE col0 IN ( col1, - col1, + ( - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - COUNT ( + col1 ) FROM tab1 AS cor0 WHERE col0 IN ( col1, - col1, + ( - col1 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + col2 = NULL
----

query I rowsort
SELECT ALL + col2 + - ( + 71 ) + + + col0 * - 75 + + col1 AS col1 FROM tab0 AS cor0
----
-1068
-6565
-7246

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT DISTINCT + 4 DIV + ( 74 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + 4 / + ( 74 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT + 15 DIV col1 - + 49 FROM tab1 AS cor0
----
-46
-48
-49

skipif mysql # not compatible
query I rowsort label-7380
SELECT + 15 / col1 - + 49 FROM tab1 AS cor0
----
-46
-48
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT - 65 + col2 DIV + col2 FROM tab1
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-7381
SELECT - 65 + col2 / + col2 FROM tab1
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT CAST( - 78 AS SIGNED ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT CAST ( - 78 AS INTEGER ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + MIN( - + 78 ) + - COUNT( * ) * - + 56 AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-7383
SELECT + MIN ( - + 78 ) + - COUNT ( * ) * - + 56 AS col0 FROM tab1
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7384
SELECT ALL * FROM tab1 WHERE + col2 NOT BETWEEN - 63 AND + col0 / 99 + - col0 + col2 * - 94 / CAST( NULL AS DECIMAL ) + - - 81 + ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7384
SELECT ALL * FROM tab1 WHERE + col2 NOT BETWEEN - 63 AND + col0 / 99 + - col0 + col2 * - 94 / CAST ( NULL AS REAL ) + - - 81 + ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 7 col2 FROM tab2
----
39
57
68

query I rowsort
SELECT ALL 2 * - 73 + - col1 AS col1 FROM tab0 WHERE + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * + - col1 / - 71 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * + - col1 / - 71 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - col2 + col0 <= NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT ALL col1 + + - col2 * - col2 * + - CAST( - - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-205374
-314385
-884722

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL col1 + + - col2 * - col2 * + - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-205374
-314385
-884722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) - + col0 + - + col0 col0 FROM tab2 AS cor0
----
-69
-88
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7394
SELECT + COUNT( * ) AS col1, 61 FROM tab0 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-7394
SELECT + COUNT ( * ) AS col1, 61 FROM tab0 AS cor0
----
3
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL + ( + - ( - ( CAST( + COUNT( * ) AS SIGNED ) ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + ( + - ( - ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT ALL - CAST( - + col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 + + + 40 * - col2 * - 45 * - col1 col2 FROM tab1 WHERE NOT 83 * + + col0 + - + col1 + + - col1 + 6 / - + col1 * + + 17 NOT BETWEEN NULL AND - 7 * 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col1, + 81 col2 FROM tab1 AS cor0
----
196
81
2209
81
25
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7402
SELECT + 9 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7402
SELECT + 9 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT + CAST( - 60 AS SIGNED ) FROM tab1 cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-7403
SELECT + CAST ( - 60 AS INTEGER ) FROM tab1 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7405
SELECT DISTINCT CAST( - - MIN( - ( - ( - ( col1 ) ) ) ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT CAST ( - - MIN ( - ( - ( - ( col1 ) ) ) ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, 71 )
----

query I rowsort
SELECT ALL 91 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
4196
889
9008

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT - COUNT( + col2 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7408
SELECT DISTINCT - COUNT ( + col2 ) col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - - 76 AS col2 FROM tab2 WHERE NULL <= + 23 * + col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT MIN( ALL + 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT MIN ( ALL + 8 ) FROM tab0
----
8

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= 39 * - 99
----

query I rowsort
SELECT ALL + 17 * + 70 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT + + col1 AS col0 FROM tab1 WHERE NOT 46 / col0 + - - 33 BETWEEN NULL AND - - col2 * col2 * + col2 + 92 / + 83 + + + CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query I rowsort label-7413
SELECT + + col1 AS col0 FROM tab1 WHERE NOT 46 / col0 + - - 33 BETWEEN NULL AND - - col2 * col2 * + col2 + 92 / + 83 + + + CAST ( NULL AS INTEGER ) * + col0
----

query I rowsort
SELECT ALL 43 * col2 AS col0 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT DISTINCT + 89 * - 72 * - - ( + col1 ) FROM tab0 AS cor0
----
-134568
-519048
-6408

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 95 <= NULL
----

query I rowsort
SELECT ALL - 98 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT - 75 AS col0, col1 AS col0 FROM tab0
----
-75
1
-75
21
-75
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + col2 * + col0 - + - 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 + - col2 + - col2 AS col0 FROM tab1
----
-101
-119
-175

query I rowsort
SELECT 70 + + + 59 AS col0 FROM tab1 AS cor0
----
129
129
129

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT ALL 84 * col2 - col0 + + + col1 DIV 51 AS col0 FROM tab2 AS cor0
----
1887
3297
4798

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL 84 * col2 - col0 + + + col1 / 51 AS col0 FROM tab2 AS cor0
----
1887
3297
4798

query I rowsort
SELECT col1 * - col0 + 20 FROM tab2 AS cor0
----
-2326
-4908
-5005

query I rowsort
SELECT 5 + + 39 AS col0 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT - - col1 + + + 55 AS col0 FROM tab1 AS cor0
----
102
60
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * - col1 + + - col1 col2 FROM tab0 AS cor0
----
3402
42
882

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < col1 + + + col1 + - 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT DISTINCT - col2 DIV 74 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - col2 / 74 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL + MAX( DISTINCT col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT - 24 IS NULL
----
-14
-47
-5

query I rowsort
SELECT col0 - col1 + + - col1 FROM tab1
----
-3
23
75

query I rowsort
SELECT DISTINCT - ( 11 ) + + + col0 + 62 * + ( - + col2 ) * col2 FROM tab1
----
-215748
-286608
-571352

query I rowsort
SELECT - - col2 - + + 88 + + col0 + - col2 * - - 70 * + - col0 FROM tab0 AS cor0
----
49324
60909
672318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL + 53 - - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7434
SELECT ALL + 53 - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL - MAX( ( + CAST( NULL AS SIGNED ) ) ) * + 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - MAX ( ( + CAST ( NULL AS INTEGER ) ) ) * + 37 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab0 WHERE NOT ( NOT - col0 NOT BETWEEN + col1 AND - col1 / col0 / 70 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL 96 * - 65 FROM tab0
----
-6240
-6240
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7440
SELECT CAST( NULL AS SIGNED ) AS col1, + MIN( ALL + col0 ) FROM tab1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7440
SELECT CAST ( NULL AS INTEGER ) AS col1, + MIN ( ALL + col0 ) FROM tab1
----
NULL
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT - CAST( NULL AS SIGNED ) * + 60 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT - CAST ( NULL AS INTEGER ) * + 60 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 76 * - col0 * + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT - - col2 * + - 81 * + col1 AS col0 FROM tab0 cor0
----
-17010
-308367
-8019

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT ALL - COUNT( * ) AS col2, + SUM( ALL - 20 ) + COUNT( * ) FROM tab1 AS cor0
----
-3
-57

skipif mysql # not compatible
query II rowsort label-7445
SELECT ALL - COUNT ( * ) AS col2, + SUM ( ALL - 20 ) + COUNT ( * ) FROM tab1 AS cor0
----
-3
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + + MIN( + col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7446
SELECT + + MIN ( + col2 ) col2 FROM tab1 AS cor0
----
59

query II rowsort
SELECT - col1 AS col0, col0 * 17 FROM tab1 AS cor0
----
-14
867
-47
1547
-5
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + + SUM( - + 86 ) * 2 AS col0 FROM tab0 WHERE NOT - ( - col2 ) + - col1 + + - 69 * 70 IS NULL
----
-516

skipif mysql # not compatible
query I rowsort label-7448
SELECT + + SUM ( - + 86 ) * 2 AS col0 FROM tab0 WHERE NOT - ( - col2 ) + - col1 + + - 69 * 70 IS NULL
----
-516

query I rowsort
SELECT - ( + 46 ) AS col1 FROM tab0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT CAST( - 59 AS SIGNED ) FROM tab0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-7450
SELECT CAST ( - 59 AS INTEGER ) FROM tab0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 83 <= NULL
----

query I rowsort
SELECT ALL - - 47 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT - 41 * - col1 + col2 BETWEEN NULL AND + + 79
----
-14
-47
-5

query I rowsort
SELECT ALL + - 52 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col1 + - col2 - - col1 + + + 75 AS col1 FROM tab1 AS cor0
----
101
26
7

query I rowsort
SELECT DISTINCT + 68 + - col2 + + - 75 + col1 * - + col0 + + col1 FROM tab0 AS cor0
----
-1188
-1823
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + SUM( + 28 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT + SUM ( + 28 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col2 + - - col2 AS col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col1 FROM tab0 AS cor0
----
40
40
40

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + col2 / + col0 + - - col1 - - - col0
----

query I rowsort
SELECT - col0 * col0 + - col1 AS col2 FROM tab1
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT DISTINCT 71 + - + COUNT( * ) AS col2 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT 71 + - + COUNT ( * ) AS col2 FROM tab0
----
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 81 IS NOT NULL
----

query II rowsort
SELECT + 63, - col2 AS col2 FROM tab2 cor0 WHERE col0 * col2 IS NOT NULL
----
63
-23
63
-40
63
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT DISTINCT + + COUNT( CAST( NULL AS SIGNED ) ) * + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT DISTINCT + + COUNT ( CAST ( NULL AS INTEGER ) ) * + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7468
SELECT + CAST( NULL AS SIGNED ), 16 - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
-31
NULL
-83
NULL
6

skipif mysql # not compatible
query II rowsort label-7468
SELECT + CAST ( NULL AS INTEGER ), 16 - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
NULL
-31
NULL
-83
NULL
6

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT + 45 AS col0, + 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 9e2dbedc9fda41bd20fed4b3400b0ccd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - col2 col1 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - 88 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( + ( - + col1 ) ) ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 * - + 42 AS col2 FROM tab2 AS cor0
----
-1680
-2436
-966

query I rowsort
SELECT ALL + + 33 * - col2 - - 0 FROM tab0 AS cor0
----
-1551
-3267
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL - COUNT( - col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - COUNT ( - col1 ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 + - 18 col1, - 47 * + col2 FROM tab2 WHERE NOT col2 BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 / - - col0 AND + + ( + 82 ) - + col0
----

query II rowsort
SELECT DISTINCT - col2 AS col2, 16 FROM tab1
----
-59
16
-68
16
-96
16

query I rowsort
SELECT ALL + col0 + 83 + - col2 FROM tab2
----
100
106
107

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT + - 61 DIV + 9 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-7483
SELECT + - 61 / + 9 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + col2 + - ( 62 ) + - col1 FROM tab1
----
-41
-8
20

query I rowsort
SELECT + 53 + - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-109
11
51

query I rowsort
SELECT DISTINCT + col0 + + - 1 + - - 74 * col1 AS col1 FROM tab2 AS cor0
----
3819
5032
5761

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 31 * - col1 IN ( - - col0, col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7488
SELECT + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) * - - col2 - col1 FROM tab0 AS cor0
----
189
3726
98

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) * - - col2 - col1 FROM tab0 AS cor0
----
189
3726
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 41 * - - col0 / + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL ( - + SUM( + 32 ) ) - - 0 col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7491
SELECT ALL ( - + SUM ( + 32 ) ) - - 0 col2 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT 37 * col1 FROM tab1
----
1739
185
518

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT ALL - col0 - - col0 + + col2 DIV + col0 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - col0 - - col0 + + col2 / + col0 AS col2 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT COUNT( * ) - - 78 col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7494
SELECT COUNT ( * ) - - 78 col1 FROM tab0
----
81

query I rowsort
SELECT DISTINCT - 69 * - + 76 AS col2 FROM tab1
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - - COUNT( - - 85 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7496
SELECT - - COUNT ( - - 85 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT COUNT( - 31 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7497
SELECT COUNT ( - 31 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * + 52 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7499
SELECT COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
3
3

query II rowsort
SELECT col2 * - + col0 AS col0, + 40 FROM tab2
----
-1058
40
-2560
40
-4350
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7501
SELECT DISTINCT - CAST( - 54 AS SIGNED ) DIV + + col0 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - CAST ( - 54 AS INTEGER ) / + + col0 AS col0 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT DISTINCT 41 DIV col2 * + col2 AS col2 FROM tab2
----
0
23
40

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT 41 / col2 * + col2 AS col2 FROM tab2
----
0
23
40

query II rowsort
SELECT ALL - 39, + col0 AS col0 FROM tab2 cor0
----
-39
46
-39
64
-39
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, 77 col1 FROM tab1 cor0
----
59
77
68
77
96
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL - - col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 45 col2, 15 FROM tab2 AS cor0
----
45
15

query II rowsort
SELECT DISTINCT - col0 AS col1, + col1 FROM tab0 WHERE NOT ( - ( - col0 ) * + col2 + + + 33 ) IS NOT NULL
----

query I rowsort
SELECT + 14 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - col1 * - 83 col1 FROM tab1
----
1213
3992
500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7509
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - col1 * - 83 col1 FROM tab1
----
1213
3992
500

query I rowsort
SELECT - 7 + col0 FROM tab2 WHERE - 66 * - + col2 * + 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - 53 * + - ( - MAX( ALL + - col0 ) ) FROM tab1
----
2703

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - 53 * + - ( - MAX ( ALL + - col0 ) ) FROM tab1
----
2703

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT DISTINCT - + col1 + - col0 + col1 * + + col1 DIV col1 AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT - + col1 + - col0 + col1 * + + col1 / col1 AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT + + 50 * col1 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT - + col1 * - ( - col0 ) * - col1 * - col1 FROM tab0 cor0
----
-7971615
-805707
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= 88 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL SUM( + 10 ) + 11 AS col0 FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL SUM ( + 10 ) + 11 AS col0 FROM tab0 cor0
----
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 78 * - 42 - + col0 IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 - + - col2 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT CAST( - MAX( ALL + col2 ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7519
SELECT CAST ( - MAX ( ALL + col2 ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL + col0 - - 45 AS col0 FROM tab1 cor0
----
130
136
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT 34 + + + 31 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7522
SELECT 34 + + + 31 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL - 41 + col1 AS col0 FROM tab0 cor0
----
-20
-40
40

query II rowsort
SELECT DISTINCT ( - col0 ) - col2, + col1 AS col0 FROM tab0 AS cor0
----
-196
1
-62
81
-97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - + MAX( - 52 ) + - COUNT( * ) + + 98 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-7525
SELECT - + MAX ( - 52 ) + - COUNT ( * ) + + 98 FROM tab0 AS cor0
----
147

query I rowsort
SELECT ALL + ( - col1 ) * - - col1 + - - col0 - col0 * col0 FROM tab2
----
-10039
-4671
-9961

query II rowsort
SELECT col0 + - - 77 AS col1, + 6 AS col1 FROM tab2
----
123
6
141
6
152
6

query I rowsort
SELECT 76 * - 86 AS col2 FROM tab0
----
-6536
-6536
-6536

query I rowsort
SELECT ALL 59 FROM tab0 WHERE NOT + ( - 64 ) <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT MIN( ALL - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT MIN ( ALL - - col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ( - - 97 ) * - 47 + COUNT( * ) FROM tab1
----
-4556

skipif mysql # not compatible
query I rowsort label-7532
SELECT ( - - 97 ) * - 47 + COUNT ( * ) FROM tab1
----
-4556

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND + 11 * - - 0 * col0
----

query I rowsort
SELECT col2 + + col0 AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL - ( + CAST( ( + - COUNT( DISTINCT - col1 ) ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - ( + CAST ( ( + - COUNT ( DISTINCT - col1 ) ) AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * - 43 FROM tab1 cor0
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col2 * + + 81 FROM tab0 AS cor0
----
3807
8019
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - 53 col2 FROM tab0 AS cor0
----
-2491
-5247
-530

query I rowsort
SELECT DISTINCT - col2 * - 94 AS col1 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7542
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= 40
----

skipif mysql # not compatible
query III rowsort label-7542
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7543
SELECT - ( + ( - - col2 ) ) / + CAST( NULL AS DECIMAL ) * col2 + - 69 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT - ( + ( - - col2 ) ) / + CAST ( NULL AS REAL ) * col2 + - 69 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL col0 DIV + 76 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL col0 / + 76 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NULL < 59 + + - col0
----

query I rowsort
SELECT - 88 / - - 25 FROM tab2 AS cor0 WHERE 82 = + col1
----

query I rowsort
SELECT + + ( - col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * - COUNT( * ) + + - COUNT( + col0 ) AS col0, COUNT( * ) AS col0 FROM tab2
----
9
3

skipif mysql # not compatible
query II rowsort label-7550
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) + + - COUNT ( + col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
9
3

query I rowsort
SELECT ALL + 82 + ( + col2 ) FROM tab1 AS cor0
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL 31 - - COUNT( * ) col1 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7552
SELECT ALL 31 - - COUNT ( * ) col1 FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE col1 IN ( + + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE col1 IN ( + + CAST ( NULL AS INTEGER ), col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL - 73 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL - 73 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL 83 - + + 4 AS col1 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - MIN( DISTINCT 77 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - MIN ( DISTINCT 77 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + SUM( ALL ( ( - 5 ) ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7557
SELECT + SUM ( ALL ( ( - 5 ) ) ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL + COUNT( * ) FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + COUNT ( * ) FROM tab2, tab0 cor0
----
9

query I rowsort
SELECT - 29 * - + col1 * - + col0 FROM tab1
----
-12325
-124033
-20706

query I rowsort
SELECT + 96 * + 67 FROM tab1
----
6432
6432
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col0 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - SUM( 30 ) FROM tab0 WHERE NOT ( NOT NULL IN ( + col2, - col2 * - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT - SUM ( 30 ) FROM tab0 WHERE NOT ( NOT NULL IN ( + col2, - col2 * - 65 ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 <= - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT - ( 82 ) FROM tab1 AS cor0 WHERE NOT ( - col0 / - - CAST( NULL AS SIGNED ) ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7564
SELECT - ( 82 ) FROM tab1 AS cor0 WHERE NOT ( - col0 / - - CAST ( NULL AS INTEGER ) ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL + MIN( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + MIN ( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
59

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) NOT BETWEEN col1 AND col1 * col0 + - 99 / - col0
----

query I rowsort
SELECT - 12 - col1 AS col0 FROM tab0
----
-13
-33
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT DISTINCT ( - 72 ) + col1 DIV + 80 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT ( - 72 ) + col1 / + 80 FROM tab2
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 26 = NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE - col0 / + col0 <> ( 88 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT - MAX( DISTINCT - col2 ) + 63 AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - MAX ( DISTINCT - col2 ) + 63 AS col0 FROM tab0
----
73

query I rowsort
SELECT ( - 98 ) AS col0 FROM tab0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT col1 * 68 AS col2 FROM tab1
----
3196
340
952

query I rowsort
SELECT - ( + 54 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT ALL + 98 + 88 FROM tab2
----
186
186
186

query III rowsort
SELECT * FROM tab2 WHERE + 78 * col0 IN ( col2 * - 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT + col1 = ( - ( col2 ) * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT + col1 = ( - ( col2 ) * col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col1 FROM tab2
----
45

query I rowsort
SELECT DISTINCT - 62 * - col1 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT DISTINCT + col2 / + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT + col1 / - ( - col2 ) + CAST( NULL AS SIGNED ) * - 82 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT + col1 / - ( - col2 ) + CAST ( NULL AS INTEGER ) * - 82 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - ( COUNT( * ) ) + 24 AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7583
SELECT - ( COUNT ( * ) ) + 24 AS col1 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT 24 + ( 84 + 35 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7584
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT 24 + ( 84 + 35 ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL - MAX( col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL - MAX ( col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query III rowsort label-7586
SELECT * FROM tab2 WHERE + 39 DIV col0 > col2 DIV - 79
----

skipif mysql # not compatible
query III rowsort label-7586
SELECT * FROM tab2 WHERE + 39 / col0 > col2 / - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT - col0 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 WHERE NOT CAST( - ( col2 ) AS SIGNED ) > - col2 * - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT - col0 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 WHERE NOT CAST ( - ( col2 ) AS INTEGER ) > - col2 * - col2
----
NULL
NULL
NULL

query I rowsort
SELECT 43 * + 99 FROM tab1
----
4257
4257
4257

query I rowsort
SELECT DISTINCT - 59 * + col2 AS col1 FROM tab2
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - COUNT( * ) + - COUNT( * ) col2 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7590
SELECT - COUNT ( * ) + - COUNT ( * ) col2 FROM tab1
----
-6

query I rowsort
SELECT col2 * + ( 78 ) AS col2 FROM tab0
----
3666
7722
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7592
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 92 * 11 FROM tab2
----
1012
1012
1012

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - 13 ) AND + 72
----

query I rowsort
SELECT 24 + col2 FROM tab0 AS cor0 WHERE + col0 IN ( - 65 )
----

query I rowsort
SELECT 97 * 69 AS col2 FROM tab2 cor0
----
6693
6693
6693

query III rowsort
SELECT ALL * FROM tab2 WHERE - 10 * ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 68 AS col2 FROM tab0 WHERE NOT NULL BETWEEN 33 AND ( col0 * 59 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 58 ) < ( 93 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ( + MIN( ALL - col0 ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT ( + MIN ( ALL - col0 ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col1 + 88 AS col2 FROM tab1 AS cor0
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT MIN( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + MIN( ALL + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-7604
SELECT + MIN ( ALL + col2 ) FROM tab0 cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 77 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2 AS cor0 WHERE NULL < ( col0 * + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 3 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT DISTINCT + 1 DIV col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + 1 / col0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT - + 32 * COUNT( * ) col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7609
SELECT - + 32 * COUNT ( * ) col2 FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7610
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( + ( + col0 ) AS SIGNED ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7610
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( + ( + col0 ) AS INTEGER ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 61 * 41 FROM tab1 AS cor0
----
2501
2501
2501

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT COUNT( DISTINCT ( col0 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT COUNT ( DISTINCT ( col0 ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 31 * 0 ) >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - - col2 ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 87 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT - 83 AS col0 FROM tab0 WHERE NOT ( col0 ) BETWEEN 51 + + col1 AND NULL
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT ALL 59 DIV - col1 FROM tab0
----
-2
-59
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 59 / - col1 FROM tab0
----
-2
-59
0

query I rowsort
SELECT DISTINCT + + ( + ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN col1 AND + 59
----
51

query I rowsort
SELECT DISTINCT 54 FROM tab1 cor0 WHERE NOT ( ( 52 ) ) IS NULL
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL - CAST( + ( - ( - COUNT( * ) ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - CAST ( + ( - ( - COUNT ( * ) ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT 85 DIV - 40 - ( col0 ) FROM tab1 cor0
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-7623
SELECT 85 / - 40 - ( col0 ) FROM tab1 cor0
----
-53
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE ( NOT col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE ( NOT col0 IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col1 - + col0 > - 56 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + + CAST( col1 AS SIGNED ) ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + + CAST ( col1 AS INTEGER ) ) AND - col1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col1 NOT IN ( + col2 * - col2 + + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - 52 ) * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1 AS cor0 WHERE 47 + 13 = col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 70 FROM tab1 AS cor0 WHERE + 67 + + col1 IS NULL
----

query I rowsort
SELECT - ( col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL OR - col1 * col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + 88 + - col2 FROM tab2 cor0
----
30
48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + - COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7634
SELECT + - COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 col1 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT DISTINCT - - COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7636
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 83 FROM tab2 WHERE NOT NULL = ( + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT ALL col2 FROM tab0 WHERE NOT - col0 + + col1 BETWEEN + col2 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL col2 FROM tab0 WHERE NOT - col0 + + col1 BETWEEN + col2 * - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7640
SELECT * FROM tab1 WHERE NULL IN ( col0 + - CAST( + 26 AS SIGNED ) * 71 )
----

skipif mysql # not compatible
query III rowsort label-7640
SELECT * FROM tab1 WHERE NULL IN ( col0 + - CAST ( + 26 AS INTEGER ) * 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT CAST( NULL AS SIGNED ) / + 19 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT CAST ( NULL AS INTEGER ) / + 19 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - + 73 FROM tab2
----
-27
-9
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT DISTINCT CAST( + 88 AS SIGNED ) * + 81 + + col1 AS col2 FROM tab2 AS cor0
----
7179
7195
7205

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT CAST ( + 88 AS INTEGER ) * + 81 + + col1 AS col2 FROM tab2 AS cor0
----
7179
7195
7205

query I rowsort
SELECT - col0 * col0 - - 97 FROM tab1 AS cor0
----
-2504
-7128
-8184

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( NULL ) >= ( col0 ) )
----

query I rowsort
SELECT ALL col0 + col0 * + col1 FROM tab0 AS cor0 WHERE ( col1 * + 43 - - - col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 + - 30 FROM tab1 cor0
----
-16
-25
17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 37 ) AND 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT DISTINCT + 78 + + col0 DIV - 55 FROM tab0 AS cor0
----
77
78

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT + 78 + + col0 / - 55 FROM tab0 AS cor0
----
77
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 52 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT MAX( ALL 96 ) * + 54 AS col1 FROM tab2 WHERE NOT NULL >= + + ( col1 ) * + - col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT MAX ( ALL 96 ) * + 54 AS col1 FROM tab2 WHERE NOT NULL >= + + ( col1 ) * + - col0 * col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - ( col2 / - col2 + 18 ) + + 24 col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 12 * 9 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT + SUM( ALL + - 27 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7654
SELECT + SUM ( ALL + - 27 ) FROM tab0 cor0
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE - 33 > + 89 - - + 98
----

query II rowsort
SELECT ALL + 4, 51 AS col2 FROM tab2
----
4
51
4
51
4
51

query I rowsort
SELECT 60 * col2 * col0 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
153600
261000
63480

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col2 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + 37 ) / + col0 NOT IN ( - col1 )
----

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7662
SELECT - + 11 DIV 12 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7662
SELECT - + 11 / 12 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + MAX( ALL + 19 ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + MAX ( ALL + 19 ) AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - 20 + + col0 + 78 AS col2 FROM tab1 AS cor0
----
109
143
149

query II rowsort
SELECT + 50 + + col2, + col1 AS col2 FROM tab2 AS cor0
----
108
67
73
51
90
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT - COUNT( - + col2 ) + + MIN( ALL col1 + col2 ) FROM tab2 AS cor0 WHERE NOT ( 24 * 22 - + col0 ) <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - COUNT ( - + col2 ) + + MIN ( ALL col1 + col2 ) FROM tab2 AS cor0 WHERE NOT ( 24 * 22 - + col0 ) <> col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT + COUNT( ALL - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT + CAST( col2 AS SIGNED ) + CAST( NULL AS SIGNED ) - 54 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT + CAST ( col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) - 54 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT - 11 - COUNT( * ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - 11 - COUNT ( * ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL + 49 * 89 FROM tab1
----
4361
4361
4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT - MIN( + col1 ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT - MIN ( + col1 ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT 0 + + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7673
SELECT 0 + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT + 9 + + col2 AS col0 FROM tab1
----
105
68
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7675
SELECT 7 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT 7 + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - - col0 * - - col2 AS col0 FROM tab0
----
752
880
9702

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 < ( 64 )
----
51
14
96

query II rowsort
SELECT DISTINCT ( col0 ) + + + col2, col0 + col0 AS col2 FROM tab0 AS cor0
----
196
194
62
30
97
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - + ( - - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7679
SELECT - + ( - - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL col0 - + + 36 + + + 21 AS col2 FROM tab1 AS cor0
----
36
70
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7681
SELECT - col2, - col0 DIV 90 col0 FROM tab1 cor0
----
-59
0
-68
-1
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7681
SELECT - col2, - col0 / 90 col0 FROM tab1 cor0
----
-59
0
-68
-1
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - - MAX( + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7682
SELECT - - MAX ( + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT ALL + col2 - - ( - CAST( - 51 AS SIGNED ) ) AS col0 FROM tab2
----
109
74
91

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + col2 - - ( - CAST ( - 51 AS INTEGER ) ) AS col0 FROM tab2
----
109
74
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT col2 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT col2 / - - col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL 88, col2 FROM tab0 AS cor0 WHERE NOT col1 > + col2
----
88
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 37 AS col0 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT ( + MIN( ALL + col2 ) ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7689
SELECT ( + MIN ( ALL + col2 ) ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 77 * - + 93 AS col1 FROM tab1 AS cor0
----
7161

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT ALL + col0 DIV - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + col0 / - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7692
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7692
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7693
SELECT ALL - 89 DIV - + COUNT( * ) AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - 89 / - + COUNT ( * ) AS col1 FROM tab0
----
29

query II rowsort
SELECT col2 AS col0, + 60 AS col1 FROM tab2
----
23
60
40
60
58
60

query I rowsort
SELECT DISTINCT - col2 * 9 AS col0 FROM tab0
----
-423
-891
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) <= NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT 13 * + col2 + - 29 * 33 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT 74 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN + + ( + ( + col0 ) ) AND - + col0 - + - col1 + - 50 * + 19
----

skipif mysql # not compatible
query I rowsort label-7698
SELECT 74 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN + + ( + ( + col0 ) ) AND - + col0 - + - col1 + - 50 * + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT 98 * + - COUNT( * ) AS col1 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-7699
SELECT 98 * + - COUNT ( * ) AS col1 FROM tab2
----
-294

query I rowsort
SELECT 39 * + + col0 FROM tab2
----
1794
2496
2925

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 < col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - + 88 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT - col2 DIV 41 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7703
SELECT - col2 / 41 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT + - 75 * col1 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
-3825
-5025
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT DISTINCT - col2 DIV 43 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - col2 / 43 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT col2 + 5 FROM tab0 AS cor0
----
104
15
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT + + CAST( - 54 AS SIGNED ) col2 FROM tab2 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7707
SELECT + + CAST ( - 54 AS INTEGER ) col2 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 5 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 5 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 13 + + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL 38 + col0, col2 FROM tab2
----
102
40
113
58
84
23

query I rowsort
SELECT col0 + + 89 + col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT - ( SUM( ALL - - 97 ) ) + - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-290

skipif mysql # not compatible
query I rowsort label-7715
SELECT - ( SUM ( ALL - - 97 ) ) + - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7716
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 98 IN ( + 72 / - - CAST( NULL AS SIGNED ) + - col2 * ( + - ( + 2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-7716
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 98 IN ( + 72 / - - CAST ( NULL AS INTEGER ) + - col2 * ( + - ( + 2 ) ) )
----

query I rowsort
SELECT ALL - - 35 AS col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + 21 FROM tab0 AS cor0 WHERE NOT + 53 + - - ( 31 ) IS NULL
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col1 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT + 27 DIV - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7720
SELECT + 27 / - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 79 * + + col2 * - col0 * + + col0 + + + ( 96 ) FROM tab1 AS cor0
----
-19725888
-33675629
-44485436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * + + col1 col0 FROM tab1 cor0
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col1 * + - 18 + - 59 + - 44
----

query I rowsort
SELECT DISTINCT - + 98 * col2 FROM tab0 AS cor0
----
-4606
-9702
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT DISTINCT - + col2 DIV + - col0 + + col2 * - 19 FROM tab2 AS cor0
----
-1102
-437
-760

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - + col2 / + - col0 + + col2 * - 19 FROM tab2 AS cor0
----
-1102
-437
-760

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 34 NOT BETWEEN NULL AND - + col2 + + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col0 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL ( - 56 ) AS col1 FROM tab1
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT + col0 + + col2 DIV - col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7729
SELECT + col0 + + col2 / - col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col1 * + col1 * 32 FROM tab0
----
14112
209952
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT - MAX( - col1 ) * - 0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - MAX ( - col1 ) * - 0 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT DISTINCT + ( col0 ) * + col1 + col1 DIV - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
2393
4993
5101

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + ( col0 ) * + col1 + col1 / - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
2393
4993
5101

query I rowsort
SELECT ALL col2 * - - ( + + col0 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7735
SELECT DISTINCT + col2 DIV - col1, col2 AS col2 FROM tab0 AS cor0
----
-99
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-7735
SELECT DISTINCT + col2 / - col1, col2 AS col2 FROM tab0 AS cor0
----
-99
99
0
10
0
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - ( + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT + 28 AS col0, SUM( ALL + + col0 ) AS col1 FROM tab0
----
28
199

skipif mysql # not compatible
query II rowsort label-7738
SELECT + 28 AS col0, SUM ( ALL + + col0 ) AS col1 FROM tab0
----
28
199

query II rowsort
SELECT ALL col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT - col1 DIV - + col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7740
SELECT - col1 / - + col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT + ( - 90 ) FROM tab2
----
-90
-90
-90

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE NOT 73 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 14 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7744
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col2 + - 54 - col1 * + - 43
----

skipif mysql # not compatible
query III rowsort label-7744
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col2 + - 54 - col1 * + - 43
----

query I rowsort
SELECT ALL + 66 - col1 + + 85 AS col0 FROM tab2 AS cor0
----
100
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT + - MAX( - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + - MAX ( - col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT + col1 + - - col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + + ( - - 31 ) AS col1 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT + col1 DIV - 79 + ( - col0 ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7749
SELECT + col1 / - 79 + ( - col0 ) FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 68 col2 FROM tab2
----
-3128
-4352
-5100

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN - col1 * - + col1 AND + col0 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7753
SELECT + 28 DIV + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7753
SELECT + 28 / + + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ALL col2 * - + col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7755
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( - - ( 51 ) ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT + MIN( ALL 49 ) * + - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3871

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + MIN ( ALL 49 ) * + - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 82 IS NULL
----

query I rowsort
SELECT + - ( + + col2 ) * col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT + CAST( NULL AS SIGNED ) * + 60 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT + CAST ( NULL AS INTEGER ) * + 60 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 25 * - col0 )
----

query I rowsort
SELECT + - col1 * 80 + - - col0 FROM tab1 cor0
----
-1069
-315
-3669

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7763
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT IN ( - col1, + CAST( NULL AS SIGNED ) * - col0, col1 )
----

skipif mysql # not compatible
query III rowsort label-7763
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT IN ( - col1, + CAST ( NULL AS INTEGER ) * - col0, col1 )
----

query I rowsort
SELECT ALL ( + col1 ) * + + col2 * - + col1 + + col0 + - col1 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 5 BETWEEN NULL AND col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL + MAX( ALL - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + MAX ( ALL - col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 WHERE - col1 + - col0 + + col2 * - 37 IS NULL
----

query II rowsort
SELECT ALL + 26 + + + 52 + + col0 AS col1, col2 FROM tab2
----
124
23
142
40
153
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 8 ) * + col1 + + 4 col0 FROM tab2 AS cor0
----
-404
-532
-612

query I rowsort
SELECT DISTINCT - - col1 * - 92 AS col1 FROM tab0 cor0
----
-1932
-7452
-92

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT col0 + 13 FROM tab1
----
104
64
98

query I rowsort
SELECT ALL - 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL ( - 71 ) FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - 88 * + col1 * + col2 AS col1 FROM tab1
----
-118272
-25960
-281248

query II rowsort
SELECT ALL + col1 AS col1, 64 + + col0 FROM tab2 WHERE - col0 IS NOT NULL
----
51
110
67
139
77
128

query II rowsort
SELECT DISTINCT + 48 + - col0, - col1 AS col2 FROM tab2 AS cor0
----
-16
-77
-27
-67
2
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT + COUNT( * ) DIV + ( + + 35 ) FROM tab2 AS cor0 WHERE - 74 NOT BETWEEN col0 - 91 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT + COUNT ( * ) / + ( + + 35 ) FROM tab2 AS cor0 WHERE - 74 NOT BETWEEN col0 - 91 AND + col1
----
0

query I rowsort
SELECT ALL 43 AS col1 FROM tab2 cor0
----
43
43
43

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= + + col1
----

query I rowsort
SELECT DISTINCT - col1 - + col0 + - col1 FROM tab1
----
-185
-79
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7781
SELECT ALL COUNT( * ), - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7781
SELECT ALL COUNT ( * ), - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

query I rowsort
SELECT col2 * + + 59 * + - col2 * + - col1 AS col2 FROM tab1
----
1026895
12822352
7612416

query I rowsort
SELECT - col2 * col0 * - col2 * - + col1 + - ( ( + - col2 ) ) FROM tab0 AS cor0
----
-182690
-2683888
-950598

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 92 > NULL
----

query I rowsort
SELECT DISTINCT - + 33 FROM tab0 cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL + + CAST( + - 78 AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + + CAST ( + - 78 AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT ALL - COUNT( * ) DIV - + 82 + - - 18 AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL - COUNT ( * ) / - + 82 + - - 18 AS col0 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL - - 36 AS col0 FROM tab1 AS cor0 WHERE NOT 86 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT + + 77 DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7790
SELECT + + 77 / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT 49 + ( + MAX( + + ( + CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT 49 + ( + MAX ( + + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT 52 + + ( + CAST( NULL AS SIGNED ) ) + + ( col2 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7792
SELECT 52 + + ( + CAST ( NULL AS INTEGER ) ) + + ( col2 ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7793
SELECT + col2 + + - CAST( NULL AS SIGNED ) / - 75 * - col0 * - col0, 32 AS col1 FROM tab2
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
query II rowsort label-7793
SELECT + col2 + + - CAST ( NULL AS INTEGER ) / - 75 * - col0 * - col0, 32 AS col1 FROM tab2
----
NULL
32
NULL
32
NULL
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7794
SELECT COUNT( * ) + + 53 col2, - CAST( NULL AS DECIMAL ) FROM tab1
----
56
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7794
SELECT COUNT ( * ) + + 53 col2, - CAST ( NULL AS REAL ) FROM tab1
----
56
NULL

query I rowsort
SELECT DISTINCT - 76 + - 39 + col2 AS col0 FROM tab0
----
-105
-16
-68

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + - col2 + - - 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + + col2 - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT - + MIN( DISTINCT - 59 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - + MIN ( DISTINCT - 59 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - col2 - - 27 FROM tab1
----
-32
-41
-69

query I rowsort
SELECT ALL - col1 * + col1 + - - col2 - - col1 AS col2 FROM tab2
----
-2527
-4364
-5812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 1 col2 FROM tab1 AS cor0
----
60
69
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND - col1 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + 0 AS col2, col1 AS col0 FROM tab1 AS cor0 WHERE col0 + - col0 * + + 52 + + 51 IS NOT NULL
----
0
14
0
47
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT + col1 DIV - + col2 + + col0 FROM tab0 AS cor0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-7805
SELECT + col1 / - + col2 + + col0 FROM tab0 AS cor0
----
14
85
97

query I rowsort
SELECT DISTINCT - col1 - - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT + 46 + - MAX( DISTINCT - 99 ) AS col1 FROM tab2 cor0
----
145

skipif mysql # not compatible
query I rowsort label-7807
SELECT + 46 + - MAX ( DISTINCT - 99 ) AS col1 FROM tab2 cor0
----
145

query II rowsort
SELECT - 18, - ( - 98 ) AS col1 FROM tab1 cor0
----
-18
98
-18
98
-18
98

query II rowsort
SELECT ALL col1, 40 AS col0 FROM tab1 AS cor0
----
14
40
47
40
5
40

query I rowsort
SELECT ALL - 88 * - + 17 AS col1 FROM tab2 AS cor0
----
1496
1496
1496

query I rowsort
SELECT ALL col2 * - col0 * - - col0 * - col2 AS col0 FROM tab2
----
1119364
18922500
6553600

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 < + - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 76 * - col2 * col0 AS col2 FROM tab0
----
53580
66120
729828

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 13 * 62 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 32 * - + col2 FROM tab0
----
1504
3168
320

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 33 + + ( - ( + - 17 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7818
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT SUM( col1 ) * 47 FROM tab0 AS cor0
----
4841

skipif mysql # not compatible
query I rowsort label-7819
SELECT SUM ( col1 ) * 47 FROM tab0 AS cor0
----
4841

query II rowsort
SELECT ALL - col2 * 45 AS col0, 65 AS col0 FROM tab1 AS cor0
----
-2655
65
-3060
65
-4320
65

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7821
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7821
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT - + 23 AS col0 FROM tab1 WHERE NOT NULL >= col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7823
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT + 32, col1 FROM tab2
----
32
51
32
67
32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + + ( + - COUNT( - col1 ) ) + + COUNT( + 17 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT + + ( + - COUNT ( - col1 ) ) + + COUNT ( + 17 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 57 * col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-40
1110
4602

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT col0 * + col2 * 50 / + col1 + - 17 + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT col0 * + col2 * 50 / + col1 + - 17 + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT ALL - - CAST( + - 79 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - - CAST ( + - 79 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT + ( + col2 ) FROM tab2 AS cor0 WHERE NOT - col0 - - 31 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT 3 + + COUNT( * ) + + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7831
SELECT 3 + + COUNT ( * ) + + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT - + col2 + - ( 22 ) FROM tab1 AS cor0
----
-118
-81
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 67 AS col0, + col2 + + col1, + - col2 * + + col2 + - col0 col1 FROM tab0 AS cor0
----
9 values hashing to 9d4c5a63041c440a8b48becd29140460

query I rowsort
SELECT ALL + + col0 + + 78 AS col2 FROM tab1 AS cor0
----
129
163
169

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 67 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 85 col0 FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7837
SELECT - - SUM( DISTINCT - col0 ) DIV + 97 AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7837
SELECT - - SUM ( DISTINCT - col0 ) / + 97 AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND + + col2 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7839
SELECT ALL 32 DIV + - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL 32 / + - col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT - 33 * - - COUNT( * ) * - CAST( - 78 AS SIGNED ) AS col2 FROM tab1
----
-7722

skipif mysql # not compatible
query I rowsort label-7840
SELECT - 33 * - - COUNT ( * ) * - CAST ( - 78 AS INTEGER ) AS col2 FROM tab1
----
-7722

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - SUM( 6 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-7841
SELECT - SUM ( 6 ) FROM tab1
----
-18

query II rowsort
SELECT col0, - 54 + + col2 FROM tab2
----
46
-31
64
-14
75
4

query II rowsort
SELECT - col2, col1 + - - col0 AS col2 FROM tab1
----
-59
90
-68
138
-96
65

query I rowsort
SELECT DISTINCT + col0 * + + col1 + - + col1 FROM tab0 WHERE NULL IS NULL
----
1134
1806
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT - col1 * col2 * - col2 * CAST( - 69 AS SIGNED ) - + ( col2 ) + - - ( + 27 ) FROM tab1 AS cor0
----
-1200977
-14995673
-8902725

skipif mysql # not compatible
query I rowsort label-7845
SELECT - col1 * col2 * - col2 * CAST ( - 69 AS INTEGER ) - + ( col2 ) + - - ( + 27 ) FROM tab1 AS cor0
----
-1200977
-14995673
-8902725

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT - col1 DIV - col0 - + 48 FROM tab2 cor0
----
-47
-47
-48

skipif mysql # not compatible
query I rowsort label-7846
SELECT - col1 / - col0 - + 48 FROM tab2 cor0
----
-47
-47
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7847
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) - + ( CAST( 77 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-7848
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + ( CAST ( 77 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - 18 ) + col1 FROM tab0 AS cor0
----
-17
3
63

query I rowsort
SELECT - 76 + + + ( + - 61 ) AS col2 FROM tab0 AS cor0
----
-137
-137
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + COUNT( ALL - 95 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7851
SELECT + COUNT ( ALL - 95 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL + 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + ( ( col2 ) ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + col2 * + 60 * + 37 * - col0 + - col2 AS col0 FROM tab2
----
-2348783
-5683240
-9657058

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 = + 38
----
59
68
96

query II rowsort
SELECT + + ( + 3 ) AS col0, - 49 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> col1 + col0 + - col0 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7857
SELECT ALL + COUNT( * ), COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7857
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col2 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * - col2 - + - col2 col0 FROM tab2 WHERE NULL IN ( + + col2, - 58 * + col0, col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7859
SELECT 58 AS col0, col1 DIV - - col0 FROM tab1
----
58
0
58
0
58
0

skipif mysql # not compatible
query II rowsort label-7859
SELECT 58 AS col0, col1 / - - col0 FROM tab1
----
58
0
58
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT - MAX( DISTINCT - 67 ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - MAX ( DISTINCT - 67 ) AS col2 FROM tab1
----
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - col1 col2 FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL COUNT( * ) * - ( - 79 ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL COUNT ( * ) * - ( - 79 ) FROM tab0 AS cor0
----
237

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR 40 * + + col0 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT DISTINCT COUNT( * ) DIV - 40 + + 41 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT COUNT ( * ) / - 40 + + 41 FROM tab1
----
41

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ( - MAX( col0 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 94 / - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT ( - MAX ( col0 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 94 / - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE + CAST( - 34 AS SIGNED ) + - ( + col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7869
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE + CAST ( - 34 AS INTEGER ) + - ( + col1 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT + COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 86 * + - col2 * + col0 - - 80 AS col0 FROM tab1 AS cor0
----
-420976
-431210
-532088

query I rowsort
SELECT DISTINCT + 42 * 39 AS col0 FROM tab0 cor0
----
1638

query I rowsort
SELECT - ( 22 ) + + 9 AS col0 FROM tab1 AS cor0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + - ( - 97 ) col2 FROM tab0
----
-2112
-3
-9704

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT col2 DIV - 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT col2 / - 79 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7876
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT 34 + + MAX( DISTINCT col2 ) AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-7877
SELECT 34 + + MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT ( + col2 ) + + CAST( NULL AS SIGNED ) + + - 10 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT ( + col2 ) + + CAST ( NULL AS INTEGER ) + + - 10 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ( MIN( DISTINCT - col0 ) ) + + COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-7879
SELECT ( MIN ( DISTINCT - col0 ) ) + + COUNT ( * ) FROM tab1
----
-88

query I rowsort
SELECT DISTINCT col0 * 56 + + col0 FROM tab2
----
2622
3648
4275

query I rowsort
SELECT ALL - ( + - col0 ) * - 49 + - col2 FROM tab1 AS cor0
----
-2595
-4224
-4527

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT - SUM( + - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - SUM ( + - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT + 14 * + 77 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT + 14 * + 77 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col1 * - + col0 * + - col2 FROM tab0
----
-383670
-4625505
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT DISTINCT + 61, 72 * COUNT( * ) col1 FROM tab0
----
61
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7885
SELECT DISTINCT + 61, 72 * COUNT ( * ) col1 FROM tab0
----
61
216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * col2 + - + col2 + - - 60 AND NULL
----

query I rowsort
SELECT ALL + 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query II rowsort
SELECT + 92 AS col2, - col0 FROM tab2 AS cor0
----
92
-46
92
-64
92
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT - + MIN( DISTINCT - - col2 ) AS col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - + MIN ( DISTINCT - - col2 ) AS col2 FROM tab2 cor0
----
-23

query I rowsort
SELECT col1 * + col0 + 9 FROM tab0 AS cor0
----
106
1224
1836

query II rowsort
SELECT DISTINCT - + col1 AS col1, 88 * + col1 FROM tab2 AS cor0
----
-51
4488
-67
5896
-77
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT MAX( + + col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7892
SELECT MAX ( + + col1 ) AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT ALL + + 4 * col0 AS col0 FROM tab1 AS cor0
----
204
340
364

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= + - 8 / - col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE 97 * - col0 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE 97 * - col0 + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT - - SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - - SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 IN ( - 28 + - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 * - + col2 * - col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col1 FROM tab1 AS cor0 WHERE NOT 99 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - col0 + 72 col2, - col2 * + - col2 col2 FROM tab1
----
-4824
9216
-4943
3481
-6116
4624

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + col0 * - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN + + 71 + + col1 * + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT ALL + + 69 col1, SUM( DISTINCT 2 ) AS col2 FROM tab0 AS cor0
----
69
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7905
SELECT ALL + + 69 col1, SUM ( DISTINCT 2 ) AS col2 FROM tab0 AS cor0
----
69
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT + AVG ( DISTINCT ( + - col0 ) ) * + ( + SUM( ALL - col1 ) ) + + 44 * + 43 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + col1, - 26 / col0 + - col2 + + 91 * col2, + ( - 99 ) + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT + AVG ( DISTINCT ( + - col0 ) ) * + ( + SUM ( ALL - col1 ) ) + + 44 * + 43 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + col1, - 26 / col0 + - col2 + + 91 * col2, + ( - 99 ) + col0 )
----
NULL

query I rowsort
SELECT - col1 / + col0 + 85 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT + SUM( DISTINCT - ( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT + SUM ( DISTINCT - ( col2 ) ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + COUNT( * ) - - MAX( 0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7909
SELECT + COUNT ( * ) - - MAX ( 0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + ( + 90 ) + 43 FROM tab1
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT + 86 DIV - col0 - - 74 FROM tab0
----
69
74
74

skipif mysql # not compatible
query I rowsort label-7911
SELECT + 86 / - col0 - - 74 FROM tab0
----
69
74
74

query I rowsort
SELECT ALL - col0 + - 41 AS col2 FROM tab0
----
-128
-138
-56

query I rowsort
SELECT ALL + 94 + - col2 FROM tab1 cor0
----
-2
26
35

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 95 < + - ( + - col2 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT CAST( NULL AS SIGNED ) * + 71 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT CAST ( NULL AS INTEGER ) * + 71 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT col0 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7916
SELECT col0 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT MIN( 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-7918
SELECT MIN ( 5 ) FROM tab2
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL - - MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL - - MAX ( + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-7921
SELECT 11 * - col1 * col0, + ( + - col0 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-1067
-1
-13365
-1
-20097
-1

skipif mysql # not compatible
query II rowsort label-7921
SELECT 11 * - col1 * col0, + ( + - col0 ) / + col0 AS col2 FROM tab0 AS cor0
----
-1067
-1
-13365
-1
-20097
-1

query II rowsort
SELECT ALL - - col0, - col2 + + 50 AS col1 FROM tab2 AS cor0
----
46
27
64
10
75
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT ALL col1 * + col0 + - - 52 FROM tab2 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) = - + col2
----

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL col1 * + col0 + - - 52 FROM tab2 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) = - + col2
----

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab0 cor0
----
-59

query II rowsort
SELECT ALL col1, ( + col1 ) FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + SUM( + 55 ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-7926
SELECT + SUM ( + 55 ) FROM tab2
----
165

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( - - col1 ) < NULL
----

query II rowsort
SELECT 0 AS col1, - col0 + - - col1 FROM tab0
----
0
-66
0
-96
0
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + ( + MAX( DISTINCT col0 ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7929
SELECT + ( + MAX ( DISTINCT col0 ) ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + COUNT( * ) col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7930
SELECT + COUNT ( * ) col0 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL - MAX( DISTINCT + 13 ) AS col1 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL - MAX ( DISTINCT + 13 ) AS col1 FROM tab0
----
-13

query II rowsort
SELECT ALL col0, + col2 * - col1 - col1 FROM tab2
----
46
-1224
64
-3157
75
-3953

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT 45 + - SUM( DISTINCT + + 15 ) col2 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7934
SELECT DISTINCT 45 + - SUM ( DISTINCT + + 15 ) col2 FROM tab0
----
30

query II rowsort
SELECT DISTINCT - 63, 88 AS col0 FROM tab2 AS cor0
----
-63
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT ( + ( + + MIN( + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT ( + ( + + MIN ( + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col1 + - col0, + col2 col1 FROM tab2 AS cor0
----
1127
23
3016
40
3811
58

query I rowsort
SELECT + + col0 + - 69 * + col2 FROM tab2 AS cor0
----
-1541
-2696
-3927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 23 col2 FROM tab0 AS cor0
----
-8
64
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 42 * col1 NOT BETWEEN + + 8 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col2 FROM tab2
----
12

query I rowsort
SELECT DISTINCT - col1 * - col0 * 91 FROM tab1
----
38675
389207
64974

query III rowsort
SELECT * FROM tab0 WHERE col2 < - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT col1 + - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT col1 + - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + col0 * - 52 FROM tab0
----
-4524
-5044
-780

query I rowsort
SELECT ALL + ( + col1 ) * col1 + - - 18 + + col2 - - - col2 + + col2 + - col2 AS col1 FROM tab2
----
2619
4507
5947

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 + + + col2 + - 89 col0 FROM tab2
----
-13
-30
5

query I rowsort
SELECT DISTINCT + - 39 - + + 28 FROM tab2 cor0
----
-67

query I rowsort
SELECT + col2 - + col1 AS col1 FROM tab1 cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / - + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / - + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NULL > col1 AND NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT - SUM( ALL ( + ( - col1 ) ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - SUM ( ALL ( + ( - col1 ) ) ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + - MAX( - 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7955
SELECT + - MAX ( - 89 ) FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL 35 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 + col2 - + 61 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7958
SELECT + COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL + col2 * - + col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7962
SELECT - + ( col1 ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-7962
SELECT - + ( col1 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT - - ( + COUNT( * ) ) col0, MIN( ALL col2 ) * + 62 * + + COUNT( * ) FROM tab1 AS cor0
----
3
10974

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7963
SELECT - - ( + COUNT ( * ) ) col0, MIN ( ALL col2 ) * + 62 * + + COUNT ( * ) FROM tab1 AS cor0
----
3
10974

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT - SUM( + col1 ) * - COUNT( DISTINCT + - col1 ) AS col1 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - SUM ( + col1 ) * - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab0
----
309

query II rowsort
SELECT ALL + col1 AS col2, 29 * - col1 AS col0 FROM tab2
----
51
-1479
67
-1943
77
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT MIN( DISTINCT - + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7967
SELECT MIN ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 44 + - + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 + col1 * col2, col0 AS col1 FROM tab0 AS cor0
----
196
97
297
87
3822
15

query I rowsort
SELECT + col2 * - + 95 FROM tab1 cor0
----
-5605
-6460
-9120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT - CAST( NULL AS SIGNED ) + + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT - CAST ( NULL AS INTEGER ) + + + col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1, - 27 * + col0 AS col0 FROM tab1 AS cor0
----
14
-1377
47
-2457
5
-2295

query I rowsort
SELECT + - col1 * + col2 AS col1 FROM tab1 AS cor0 WHERE col0 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - + 22 AS col0 FROM tab0 AS cor0
----
-12
25
77

query II rowsort
SELECT + 33, + col1 FROM tab1 AS cor0
----
33
14
33
47
33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL = ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = ( + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 col1, col1 FROM tab1 AS cor0
----
-90
14
-90
47
-90
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT - + CAST( 27 AS SIGNED ) FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-7978
SELECT - + CAST ( 27 AS INTEGER ) FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + col2 * + + col0 - + 39 FROM tab0
----
666
831
9564

query I rowsort
SELECT ALL col2 * + col2 * - - col0 FROM tab0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 18 col2 FROM tab1
----
-252
-846
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT col1 FROM tab1 WHERE NOT + 2 + + - CAST( col2 AS SIGNED ) IN ( + - col2 * - 25 * + CAST( NULL AS SIGNED ), + col0 + + - 88 )
----

skipif mysql # not compatible
query I rowsort label-7982
SELECT col1 FROM tab1 WHERE NOT + 2 + + - CAST ( col2 AS INTEGER ) IN ( + - col2 * - 25 * + CAST ( NULL AS INTEGER ), + col0 + + - 88 )
----

query II rowsort
SELECT - 24 * - 59 * + 22, col2 FROM tab1 AS cor0
----
31152
59
31152
68
31152
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT + CAST( SUM( DISTINCT + 81 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + CAST ( SUM ( DISTINCT + 81 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 79 col1 FROM tab0 AS cor0
----
1
-79
21
-79
81
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col2 AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 96 IS NOT NULL
----

query I rowsort
SELECT ALL 65 + + - col1 + - col1 AS col1 FROM tab1
----
-29
37
55

query I rowsort
SELECT - ( col1 ) + + col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT + col0 * + + 14 FROM tab2
----
1050
644
896

query II rowsort
SELECT 66 + - col0 AS col1, - col0 FROM tab2
----
-9
-75
2
-64
20
-46

query I rowsort
SELECT ALL + col0 * 10 + - col1 FROM tab2
----
409
563
683

query III rowsort
SELECT ALL * FROM tab1 WHERE - 67 >= ( - 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 + + - col1 col0 FROM tab1
----
26
59
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT DISTINCT SUM( 92 ) AS col2, COUNT( * ) AS col2 FROM tab1
----
276
3

skipif mysql # not compatible
query II rowsort label-7995
SELECT DISTINCT SUM ( 92 ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
276
3

query II rowsort
SELECT 55 * - col1 + - - 39 * + col1 AS col1, 99 AS col2 FROM tab1 AS cor0
----
-224
99
-752
99
-80
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7997
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - 77 - + col0 + col0 FROM tab1 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 23 AS col1 FROM tab1 cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT - - col2 + - 85 AS col0 FROM tab1 AS cor0
----
-17
-26
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT - + col2 - - col0 - + + col0 + - + col2 * 19 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - + col2 - - col0 - + + col0 + - + col2 * 19 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + ( - 1 ) - + - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + ( - 1 ) - + - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT DISTINCT - 63 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - 63 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8004
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) BETWEEN + 16 * - 95 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8004
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) BETWEEN + 16 * - 95 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + MIN( 93 ) * 65 + + 59 FROM tab2 AS cor0
----
6104

skipif mysql # not compatible
query I rowsort label-8005
SELECT + MIN ( 93 ) * 65 + + 59 FROM tab2 AS cor0
----
6104

query II rowsort
SELECT DISTINCT 68, + col1 FROM tab0
----
68
1
68
21
68
81

query I rowsort
SELECT - col1 * + ( col1 ) FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + col0 * - ( + 2 ) * - - 77 FROM tab0
----
-13398
-14938
-2310

query I rowsort
SELECT ALL + ( - 42 ) AS col1 FROM tab2
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT ALL - - COUNT( * ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8010
SELECT ALL - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + COUNT( * ) * - ( COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8011
SELECT + COUNT ( * ) * - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 84 / - - col0 > NULL
----

query II rowsort
SELECT DISTINCT col1, + col0 + 15 - - col0 + + + col0 AS col2 FROM tab1 AS cor0
----
14
168
47
288
5
270

query I rowsort
SELECT DISTINCT + col2 * - - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT - 31 * + 42 FROM tab1 AS cor0 WHERE NOT 51 NOT IN ( + CAST( + 37 AS SIGNED ) + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8015
SELECT - 31 * + 42 FROM tab1 AS cor0 WHERE NOT 51 NOT IN ( + CAST ( + 37 AS INTEGER ) + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab1
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT CAST( NULL AS SIGNED ) * + + 44 + - + col0 + - - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8017
SELECT CAST ( NULL AS INTEGER ) * + + 44 + - + col0 + - - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 BETWEEN - 28 * - 91 AND NULL
----

query I rowsort
SELECT - 98 + col2 AS col1 FROM tab2 cor0
----
-40
-58
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT ALL + - 50 DIV + col1 - - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + - 50 / + col1 - - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT + 11 DIV + col1 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 11 / + col1 * + col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - - col0 AND NULL
----

query II rowsort
SELECT DISTINCT - col0 * + 79, col2 AS col1 FROM tab1 AS cor0
----
-4029
96
-6715
59
-7189
68

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - 99 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 56 + - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - - col2 + col1 FROM tab0
----
101
209
52

query I rowsort
SELECT ALL - col1 + + col2 * + 53 + 35 AS col1 FROM tab0
----
2445
5281
544

query III rowsort
SELECT * FROM tab2 WHERE + col2 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + col1 + 22 * + col1 FROM tab2 AS cor0
----
1196
1599
1811

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT - COUNT( * ), 70 col2 FROM tab1 AS cor0
----
-3
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8031
SELECT - COUNT ( * ), 70 col2 FROM tab1 AS cor0
----
-3
70

query I rowsort
SELECT ALL 53 + + + col0 FROM tab1 AS cor0
----
104
138
144

query I rowsort
SELECT + col0 * - 81 + - col2 AS col2 FROM tab1 AS cor0
----
-4227
-6944
-7439

query I rowsort
SELECT DISTINCT + + col1 * 95 * + ( - 14 ) * + col1 - col2 AS col1 FROM tab0 AS cor0
----
-1429
-586540
-8726177

query I rowsort
SELECT 60 * - 66 + + col0 AS col0 FROM tab0
----
-3863
-3873
-3945

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT ALL 26 + col0 DIV + col0 FROM tab0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL 26 + col0 / + col0 FROM tab0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8037
SELECT DISTINCT col2 * - CAST( + col0 DIV col2 AS SIGNED ) FROM tab2
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT col2 * - CAST ( + col0 / col2 AS INTEGER ) FROM tab2
----
-40
-46
-58

query I rowsort
SELECT + col1 * col2 FROM tab0 WHERE NOT NULL <= + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT 77 + + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT 77 + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
77

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 WHERE NOT ( col2 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT 94 DIV col0 col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8041
SELECT 94 / col0 col0 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8042
SELECT ALL * FROM tab1 WHERE col1 IN ( CAST( 4 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8042
SELECT ALL * FROM tab1 WHERE col1 IN ( CAST ( 4 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab1 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 28 + col1 AS col0 FROM tab0 WHERE ( 53 * col2 + - 56 ) IS NULL
----

query I rowsort
SELECT + col1 * + col1 FROM tab2 WHERE ( + 58 ) BETWEEN - 84 * ( + col0 ) AND ( 42 * 75 )
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 WHERE 59 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - MIN( DISTINCT 92 ) + COUNT( * ) AS col2 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-8047
SELECT - MIN ( DISTINCT 92 ) + COUNT ( * ) AS col2 FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - SUM( - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8048
SELECT - SUM ( - col0 ) AS col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT 63 NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT SUM( ALL col2 ) + + COUNT( * ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-8050
SELECT SUM ( ALL col2 ) + + COUNT ( * ) FROM tab2
----
124

query I rowsort
SELECT ALL + 10 + + col2 FROM tab1
----
106
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT MIN( ALL + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8052
SELECT MIN ( ALL + col2 ) FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT 39 DIV - 41 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT 39 / - 41 + col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col2 FROM tab0
----
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 95 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + ( - 23 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 76 / - 34 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT DISTINCT col2 DIV - 55 + col0 DIV col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT col2 / - 55 + col0 / col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT - CAST( 31 AS SIGNED ) FROM tab2
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-8059
SELECT - CAST ( 31 AS INTEGER ) FROM tab2
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 45 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT COUNT( * ) - + 74 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + 0 * - col0 AND - 8
----
-74

skipif mysql # not compatible
query I rowsort label-8061
SELECT COUNT ( * ) - + 74 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + 0 * - col0 AND - 8
----
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col1 <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL + COUNT( ALL col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL - CAST( + SUM( DISTINCT col0 ) AS SIGNED ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - CAST ( + SUM ( DISTINCT col0 ) AS INTEGER ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8066
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT + CAST( NULL AS SIGNED ) * + 0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT + CAST ( NULL AS INTEGER ) * + 0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - ( 28 ) * ( 64 * + col2 ) AS col2 FROM tab1 AS cor0
----
-105728
-121856
-172032

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL - - MIN( DISTINCT - 53 ) * - 83 AS col0 FROM tab2 AS cor0
----
4399

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - - MIN ( DISTINCT - 53 ) * - 83 AS col0 FROM tab2 AS cor0
----
4399

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT + 77 + - COUNT( * ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + 77 + - COUNT ( * ) FROM tab2 AS cor0
----
74

query I rowsort
SELECT DISTINCT col0 * 1 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8073
SELECT * FROM tab2 cor0 WHERE 22 BETWEEN + CAST( - col2 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8073
SELECT * FROM tab2 cor0 WHERE 22 BETWEEN + CAST ( - col2 AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT - ( 91 ) FROM tab2 cor0 WHERE 46 * 45 NOT IN ( 6 )
----
-91
-91
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( ( + col0 ) ) + col2 BETWEEN ( 24 ) AND col2 - col1
----

query I rowsort
SELECT ALL - + col0 * col0 AS col2 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT - 90 + + 59 * CAST( + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
2624
3686
4335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8077
SELECT - 90 + + 59 * CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
2624
3686
4335

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + col0 * ( col1 / 73 ) )
----

query I rowsort
SELECT ALL - - 61 AS col0 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT col2 + col1 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4345
484
810

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT - col1 DIV + - col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - col1 / + - col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT + 23 * + COUNT( * ) * ( - 94 ) + - COUNT( * ) * 55 FROM tab1
----
-6651

skipif mysql # not compatible
query I rowsort label-8082
SELECT + 23 * + COUNT ( * ) * ( - 94 ) + - COUNT ( * ) * 55 FROM tab1
----
-6651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT - CAST( + - col0 AS SIGNED ) + col1 * + col2 AS col1 FROM tab2
----
1219
3144
3961

skipif mysql # not compatible
query I rowsort label-8083
SELECT - CAST ( + - col0 AS INTEGER ) + col1 * + col2 AS col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT + 86 * + + col1 + col1 FROM tab2
----
4437
5829
6699

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8085
SELECT CAST( NULL AS DECIMAL ) + - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT CAST ( NULL AS REAL ) + - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * - + ( - col2 ) * - 31 + col1 AS col1 FROM tab1
----
-41650
-9140
-99029

query I rowsort
SELECT - 52 * col1 FROM tab2 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 19 ) IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT col1 / col2 IS NULL
----
51
67
77

query I rowsort
SELECT ALL + col0 * + 48 AS col2 FROM tab1 WHERE NULL IS NULL
----
2448
4080
4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT - 44 * + + col0 + CAST( + 98 + + 61 AS SIGNED ) FROM tab2
----
-1865
-2657
-3141

skipif mysql # not compatible
query I rowsort label-8091
SELECT - 44 * + + col0 + CAST ( + 98 + + 61 AS INTEGER ) FROM tab2
----
-1865
-2657
-3141

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL - MIN( + 44 ) AS col1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL - MIN ( + 44 ) AS col1 FROM tab2
----
-44

query I rowsort
SELECT ALL col0 * - col1 + + 86 AS col1 FROM tab1
----
-339
-4191
-628

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT DISTINCT 60 + + col2 DIV col2 AS col0 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT 60 + + col2 / col2 AS col0 FROM tab1
----
61

query I rowsort
SELECT ALL 24 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + 94 ) AND col0 * + col2
----

query I rowsort
SELECT + col1 + - col0 * ( 23 ) AS col1 FROM tab0
----
-1980
-2230
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8097
SELECT ALL - CAST( + 94 AS SIGNED ) + + 10 DIV - COUNT( * ) AS col1 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - CAST ( + 94 AS INTEGER ) + + 10 / - COUNT ( * ) AS col1 FROM tab1
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 * 25 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 * 25 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 24 + 21 FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL + 8 - - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + 8 - - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ( - 8 ) FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT + SUM( + - col1 ) * 54 AS col2 FROM tab2 cor0
----
-10530

skipif mysql # not compatible
query I rowsort label-8104
SELECT + SUM ( + - col1 ) * 54 AS col2 FROM tab2 cor0
----
-10530

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 59 - - ( + col2 ) IN ( col0 - - col1 * col2 )
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE ( - col2 ) IN ( 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL + COUNT( * ) + - 61 AS col1 FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + COUNT ( * ) + - 61 AS col1 FROM tab1 cor0
----
-58

query I rowsort
SELECT DISTINCT + 67 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
67

query I rowsort
SELECT ALL - col1 * + + col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - - 91 * + ( 23 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ee689a7b3c3b7872028d018597cfc49a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8111
SELECT * FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND - 89
----

skipif mysql # not compatible
query III rowsort label-8111
SELECT * FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND - 89
----

query I rowsort
SELECT + 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8113
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL col1, col0 * col1 * 63 FROM tab2 cor0
----
51
147798
67
316575
77
310464

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8115
SELECT DISTINCT - ( - col0 ) * - col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT - ( - col0 ) * - col2 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col2, col2 * + - col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL col0 / col0 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL col0 / col0 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8118
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) * + + col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8118
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) * + + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8119
SELECT + + 24 DIV + col1 + - + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-2600
-7221
-8281

skipif mysql # not compatible
query I rowsort label-8119
SELECT + + 24 / + col1 + - + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-2600
-7221
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT - 47 * MAX( CAST( - 91 AS SIGNED ) ) * SUM( col2 ) + COUNT( * ) * ( - 97 ) AS col0 FROM tab1 AS cor0
----
953480

skipif mysql # not compatible
query I rowsort label-8120
SELECT - 47 * MAX ( CAST ( - 91 AS INTEGER ) ) * SUM ( col2 ) + COUNT ( * ) * ( - 97 ) AS col0 FROM tab1 AS cor0
----
953480

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT + ( + - COUNT( DISTINCT - ( col1 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + ( + - COUNT ( DISTINCT - ( col1 ) ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 57, col0 col2 FROM tab2 AS cor0
----
57
46
57
64
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT ( + MAX( ALL - ( - + 81 ) ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT ( + MAX ( ALL - ( - + 81 ) ) ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + 9 col0, 16 FROM tab2
----
414
16
576
16
675
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 BETWEEN NULL AND - + col1 * + 6 + - col1 / 29
----
3

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 BETWEEN NULL AND - + col1 * + 6 + - col1 / 29
----
3

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT - ( + 75 ) FROM tab1 WHERE NOT ( - + col0 ) BETWEEN + col0 AND - 86
----
-75
-75
-75

query I rowsort
SELECT col0 * - 26 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT - 16 DIV - col2 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8129
SELECT - 16 / - col2 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / - 5 IN ( - col2 )
----

query I rowsort
SELECT 84 * + - col2 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT - - 55 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 3 / + col1 AS col2 FROM tab1 WHERE NOT - - 1 + + + ( - col2 ) NOT BETWEEN 77 * 19 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 94 + - 51 * 38 ) BETWEEN ( + col0 ) + 44 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8136
SELECT DISTINCT col1 * + col1 + - 51, + col0 DIV + col0 col2 FROM tab1 AS cor0
----
-26
1
145
1
2158
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8136
SELECT DISTINCT col1 * + col1 + - 51, + col0 / + col0 col2 FROM tab1 AS cor0
----
-26
1
145
1
2158
1

query I rowsort
SELECT - + 19 + + - col1 FROM tab1 cor0
----
-24
-33
-66

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 66
----

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT COUNT( * ) + 68 + + 16 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT COUNT ( * ) + 68 + + 16 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT + + ( + + 42 ) * + AVG ( ALL col2 ) + - 83 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 = - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col1, col1 )
----

query I rowsort
SELECT ALL + 40 * + 76 AS col0 FROM tab2
----
3040
3040
3040

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL BETWEEN ( col2 ) AND ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT + 7 + 62 * - col1 FROM tab2 WHERE - col2 NOT BETWEEN + 41 AND + col0 - CAST( NULL AS SIGNED )
----
-3155
-4147
-4767

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 7 + 62 * - col1 FROM tab2 WHERE - col2 NOT BETWEEN + 41 AND + col0 - CAST ( NULL AS INTEGER )
----
-3155
-4147
-4767

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT COUNT( * ) FROM tab0 WHERE ( ( NULL NOT BETWEEN + col1 AND 6 / - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT COUNT ( * ) FROM tab0 WHERE ( ( NULL NOT BETWEEN + col1 AND 6 / - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT 28 * 87 - COUNT( - col1 ) + - COUNT( * ) + - 77 AS col2 FROM tab2
----
2353

skipif mysql # not compatible
query I rowsort label-8148
SELECT 28 * 87 - COUNT ( - col1 ) + - COUNT ( * ) + - 77 AS col2 FROM tab2
----
2353

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL + 91 * + COUNT( * ) + - 52 * + + 63 AS col2 FROM tab2
----
-3003

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + 91 * + COUNT ( * ) + - 52 * + + 63 AS col2 FROM tab2
----
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT - col1 - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8150
SELECT - col1 - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col2 + + - col1 FROM tab2 cor0
----
-5
3
49

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 33 * 81 * - 12 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 - - - 8 FROM tab2 AS cor0
----
38
56
67

query I rowsort
SELECT + col0 + + 85 FROM tab0 AS cor0
----
100
172
182

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL + 47 * MAX( DISTINCT + 84 ) FROM tab0 WHERE NOT - + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + 47 * MAX ( DISTINCT + 84 ) FROM tab0 WHERE NOT - + col0 < NULL
----
NULL

query I rowsort
SELECT 25 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + 44 / + 31 AS col1 FROM tab2 cor0 WHERE NOT ( - 12 + ( - + 78 ) / + col1 >= NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 78 NOT BETWEEN + - col0 AND col2
----

query I rowsort
SELECT DISTINCT + + 38 AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL > - col2 * + col2 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL > - col2 * + col2 / + col1
----
0

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 * + col2 * - - col1, col2 * + col1 AS col1 FROM tab0
----
18270
210
57105
3807
9603
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT - col0 * - + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT - col0 * - + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - col1 * - + col2 FROM tab0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 95 * + ( + 37 ) AS col2 FROM tab0
----
-3515

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - ( - col2 ) IN ( 86 )
----
-1
-21
-81

query II rowsort
SELECT ALL col0, + col0 + + 35 FROM tab2
----
46
81
64
99
75
110

query II rowsort
SELECT 21, + col0 AS col0 FROM tab0
----
21
15
21
87
21
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - COUNT( * ) * - - ( + - 51 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8172
SELECT - COUNT ( * ) * - - ( + - 51 ) FROM tab0
----
153

query I rowsort
SELECT col1 * + - col1 + - 17 + - 70 FROM tab1 AS cor0
----
-112
-2296
-283

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( 40 ) ) BETWEEN ( NULL ) AND - col1
----
91
47
68

query I rowsort
SELECT ( + 11 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8176
SELECT * FROM tab2 WHERE ( ( + CAST( + ( 77 ) AS SIGNED ) * - 54 * - 90 * - 67 * 77 ) NOT BETWEEN ( NULL ) AND ( + 67 ) )
----

skipif mysql # not compatible
query III rowsort label-8176
SELECT * FROM tab2 WHERE ( ( + CAST ( + ( 77 ) AS INTEGER ) * - 54 * - 90 * - 67 * 77 ) NOT BETWEEN ( NULL ) AND ( + 67 ) )
----

query I rowsort
SELECT + 54 + - 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL + col0 * 24 + - col2 FROM tab1
----
1128
1981
2116

query I rowsort
SELECT 67 + + 82 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
149
149
149

query I rowsort
SELECT ALL - + col1 + + col0 * - - 30 AS col0 FROM tab2 cor0
----
1329
1843
2183

query I rowsort
SELECT ALL - col1 + - col0 + col1 + + col2 * - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-18357
-57120
-9700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8182
SELECT - - CAST( + col2 AS SIGNED ) DIV - col1 + - - col1 + + ( + col1 ) + + - 18, + col0 FROM tab2 AS cor0
----
116
75
136
64
84
46

skipif mysql # not compatible
query II rowsort label-8182
SELECT - - CAST ( + col2 AS INTEGER ) / - col1 + - - col1 + + ( + col1 ) + + - 18, + col0 FROM tab2 AS cor0
----
116
75
136
64
84
46

query I rowsort
SELECT ALL - col0 - - - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL + COUNT( * ) * + + 47 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + COUNT ( * ) * + + 47 FROM tab1 AS cor0
----
141

query II rowsort
SELECT - - 59 + - col2 AS col0, 21 AS col1 FROM tab0 AS cor0
----
-40
21
12
21
49
21

query I rowsort
SELECT ALL col0 - + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + + 79 FROM tab2
----
130
146
156

query II rowsort
SELECT DISTINCT - - 52 - - col2 AS col1, + 4 * + col0 FROM tab1 WHERE NULL = col1
----

query I rowsort
SELECT + col0 + col0 * + 41 AS col2 FROM tab2
----
1932
2688
3150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8190
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 19, CAST( - + col1 AS SIGNED ) * - col1 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-8190
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 19, CAST ( - + col1 AS INTEGER ) * - col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT - COUNT( * ) * 66 FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - COUNT ( * ) * 66 FROM tab0 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - + col2 NOT IN ( + 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT 24 * MIN( DISTINCT - col2 ) - - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-2301

skipif mysql # not compatible
query I rowsort label-8194
SELECT 24 * MIN ( DISTINCT - col2 ) - - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-2301

query I rowsort
SELECT - 9 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL col0 - + 62 AS col1 FROM tab0 AS cor0
----
-47
25
35

query I rowsort
SELECT DISTINCT + + col1 * 22 + - 91 FROM tab2 AS cor0
----
1031
1383
1603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT - col0 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT - col0 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 62 AND + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT + 60 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + 60 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
180

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 <> + col0 * + col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8203
SELECT MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-8204
SELECT - col1 AS col2, 91 DIV 28 AS col1 FROM tab2 cor0
----
-51
3
-67
3
-77
3

skipif mysql # not compatible
query II rowsort label-8204
SELECT - col1 AS col2, 91 / 28 AS col1 FROM tab2 cor0
----
-51
3
-67
3
-77
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8205
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( 45 AS SIGNED ) + col2 * - + col2 - + 79 BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-8205
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( 45 AS INTEGER ) + col2 * - + col2 - + 79 BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab1 cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8207
SELECT + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8207
SELECT + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 34 col1, col2 FROM tab1 AS cor0
----
34
59
34
68
34
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT ALL - CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT DISTINCT + col2 DIV - 64 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + col2 / - 64 FROM tab1
----
-1
0

query II rowsort
SELECT DISTINCT col1 + + + col0, 15 * + 64 AS col1 FROM tab0
----
108
960
96
960
98
960

query I rowsort
SELECT - + 51 AS col1 FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT DISTINCT + 55 * + CAST( COUNT( * ) AS SIGNED ) + - ( - 91 ) * + MAX( - col0 ) - + 30 FROM tab2 AS cor0
----
-4051

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + 55 * + CAST ( COUNT ( * ) AS INTEGER ) + - ( - 91 ) * + MAX ( - col0 ) - + 30 FROM tab2 AS cor0
----
-4051

query I rowsort
SELECT col1 * + 55 AS col2 FROM tab0 AS cor0
----
1155
4455
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8217
SELECT 22 DIV - COUNT( * ) + - + 95 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8217
SELECT 22 / - COUNT ( * ) + - + 95 FROM tab1 AS cor0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + ( + + 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT CAST( NULL AS SIGNED ) + ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8219
SELECT CAST ( NULL AS INTEGER ) + ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 90 + + col0 FROM tab0 AS cor0
----
105
177
187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 67 * col0 BETWEEN ( NULL ) AND 59
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT + col0 - 91 + - 66 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - col2 + 12 * + col1 AS col1, 96 AS col2 FROM tab1 AS cor0
----
1
96
496
96
72
96

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8225
SELECT DISTINCT * FROM tab1 WHERE NOT + 98 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - ( - - 30 ) / - col0
----

skipif mysql # not compatible
query III rowsort label-8225
SELECT DISTINCT * FROM tab1 WHERE NOT + 98 NOT BETWEEN - CAST ( NULL AS REAL ) AND - ( - - 30 ) / - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 94 + + col1 = + - col1 * + ( + - 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 15 * ( col1 ) + - col2 FROM tab0
----
-1584
-3160
-57152

query III rowsort
SELECT * FROM tab0 WHERE + + 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) * 15 + col0 + - 90 * col1 > ( NULL )
----

query I rowsort
SELECT 86 + + 53 AS col2 FROM tab1
----
139
139
139

query I rowsort
SELECT DISTINCT + + 30 AS col1 FROM tab2 cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT - ( + + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT CAST( + + MIN( ALL - - col0 ) AS SIGNED ) * 69 AS col2 FROM tab0
----
1035

skipif mysql # not compatible
query I rowsort label-8234
SELECT CAST ( + + MIN ( ALL - - col0 ) AS INTEGER ) * 69 AS col2 FROM tab0
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - MIN( ALL 74 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8235
SELECT - MIN ( ALL 74 ) FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL COUNT( + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL COUNT ( + col1 ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col2 - col1 = ( NULL )
----

query I rowsort
SELECT ALL + 78 * - ( + - col0 ) - + - col1 FROM tab1 AS cor0
----
3992
6635
7145

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT - - COUNT( * ) * + SUM( - col0 ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-8239
SELECT - - COUNT ( * ) * + SUM ( - col0 ) FROM tab1 AS cor0
----
-681

query I rowsort
SELECT DISTINCT + 18 * 99 FROM tab1
----
1782

query II rowsort
SELECT col2, - col0 - + - col2 * + col2 AS col2 FROM tab0
----
10
13
47
2194
99
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL SUM( col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL SUM ( col2 ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT ALL CAST( - 34 AS SIGNED ) AS col0 FROM tab2
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL CAST ( - 34 AS INTEGER ) AS col0 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + col1 * + col0 * col2 AS col2 FROM tab2 WHERE + + 51 IS NOT NULL
----
197120
291450
53958

query I rowsort
SELECT 59 + - col0 + + 99 AS col1 FROM tab0
----
143
61
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT DISTINCT + col2 + 27 + col1 + CAST( NULL AS SIGNED ) * + col1 / col0 * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT + col2 + 27 + col1 + CAST ( NULL AS INTEGER ) * + col1 / col0 * col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * - - 62 + + 68 * + col1 + - col0 AS col0 FROM tab2
----
6584
8635
9946

query I rowsort
SELECT DISTINCT - 12 * + col2 + + + col1 AS col1 FROM tab1
----
-1138
-703
-769

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT - col1 DIV - col2 + col1 AS col0 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-8249
SELECT - col1 / - col2 + col1 AS col0 FROM tab0
----
1
23
82

query I rowsort
SELECT ( + ( + - col1 ) ) + + 23 AS col2 FROM tab1
----
-24
18
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT + col0 * - 36 + + col2 DIV - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1610
-2240
-2625

skipif mysql # not compatible
query I rowsort label-8251
SELECT + col0 * - 36 + + col2 / - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1610
-2240
-2625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < - - 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 73 > + 31
----
-3

skipif mysql # not compatible
query I rowsort label-8253
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 73 > + 31
----
-3

query I rowsort
SELECT DISTINCT col1 * + col2 * + col2 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + 86 * 46 * - SUM( + 48 ) FROM tab1
----
-569664

skipif mysql # not compatible
query I rowsort label-8255
SELECT + 86 * 46 * - SUM ( + 48 ) FROM tab1
----
-569664

query I rowsort
SELECT ALL + 56 AS col0 FROM tab0
----
56
56
56

query II rowsort
SELECT - col1 * - + col1, + col2 AS col0 FROM tab1
----
196
96
2209
68
25
59

query I rowsort
SELECT ALL + - 2 * - - 24 * - 48 + - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08cf3858d7afbaa03e267ea216ac8de1

query I rowsort
SELECT DISTINCT col1 + + col2 - - 80 AS col1 FROM tab1 cor0
----
144
190
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT ( - COUNT( * ) ) - 31 AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT ( - COUNT ( * ) ) - 31 AS col1 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT - col1 + + 67 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - col2
----

query I rowsort
SELECT ALL + 13 + + - col2 AS col0 FROM tab0 AS cor0
----
-34
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT - SUM( ALL col1 ) + - 65 FROM tab2 cor0
----
-260

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT - SUM ( ALL col1 ) + - 65 FROM tab2 cor0
----
-260

query I rowsort
SELECT 63 + - col0 AS col1 FROM tab1 AS cor0
----
-22
-28
12

query I rowsort
SELECT ALL + - ( + col1 ) - + - ( - col1 ) FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL - + col2 - - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 31 BETWEEN - 58 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 - - - col0 + - + col0 * - col0 AS col1 FROM tab1 AS cor0
----
2646
7199
8258

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) + - - 18 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) + - - 18 FROM tab2
----
18

query I rowsort
SELECT 57 FROM tab1 WHERE NOT ( NOT col2 >= NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8271
SELECT col1 AS col2, - 15 DIV + 12 AS col0 FROM tab0 AS cor0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-8271
SELECT col1 AS col2, - 15 / + 12 AS col0 FROM tab0 AS cor0
----
1
-1
21
-1
81
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8272
SELECT - COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab2 WHERE NOT col1 + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab2 WHERE NOT col1 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8274
SELECT + SUM( DISTINCT + col2 ), + SUM( ALL + ( - - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
156
NULL

skipif mysql # not compatible
query II rowsort label-8274
SELECT + SUM ( DISTINCT + col2 ), + SUM ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
156
NULL

query I rowsort
SELECT - ( + + col0 ) * + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8276
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( + ( - col2 ), col1 + + col2 * + + CAST( - - 20 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8276
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( + ( - col2 ), col1 + + col2 * + + CAST ( - - 20 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 94 * + + 99 FROM tab1 AS cor0
----
9306
9306
9306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT CAST( NULL AS SIGNED ) * + + 63 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT CAST ( NULL AS INTEGER ) * + + 63 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 52 AS col1 FROM tab0
----
151
62
99

query II rowsort
SELECT ALL col1 + + col1 * 33 AS col0, 4 * + 38 * - - ( + - col1 ) AS col0 FROM tab2
----
1734
-7752
2278
-10184
2618
-11704

query I rowsort
SELECT DISTINCT + 51 + + col1 AS col0 FROM tab2
----
102
118
128

query I rowsort
SELECT ALL 32 + - - col0 FROM tab2
----
107
78
96

query I rowsort
SELECT DISTINCT col1 + 32 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8284
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 + col0 col1 FROM tab2 AS cor0
----
-5
13
24

query I rowsort
SELECT ALL + - col2 - - 53 AS col0 FROM tab0 cor0 WHERE NOT - col1 BETWEEN - col2 / - + 33 + col2 - col2 AND NULL AND - ( - col2 ) + 64 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 * + - col2 + col2 col0 FROM tab0
----
4277
9009
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + - 18 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8288
SELECT + - 18 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT + col0, - ( + col1 ) FROM tab0 cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL - col1 * 6 - - + col0 AS col2 FROM tab0 AS cor0
----
-39
-471
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 13 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 62 + - + col1 * - col0 - + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 62 + - + col1 * - col0 - + col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL - COUNT( * ) + + 67 col2 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8293
SELECT ALL - COUNT ( * ) + + 67 col2 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL SUM( + col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL SUM ( + col2 ) AS col2 FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT - COUNT( * ) - + - 78 col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8295
SELECT - COUNT ( * ) - + - 78 col1 FROM tab0 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 69 * - - col2 AS col2 FROM tab2
----
-1587
-2760
-4002

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col1 * + + 89 AS col0 FROM tab1
----
1246
4183
445

query I rowsort
SELECT DISTINCT col1 * 52 AS col0 FROM tab1
----
2444
260
728

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 * - + 98 AS col2 FROM tab2
----
-10575768
-30908416
-36933750

onlyif mysql # DIV for integer division: 
query II rowsort label-8303
SELECT ALL col2 DIV col2 AS col1, 65 + - col0 FROM tab0
----
1
-22
1
-32
1
50

skipif mysql # not compatible
query II rowsort label-8303
SELECT ALL col2 / col2 AS col1, 65 + - col0 FROM tab0
----
1
-22
1
-32
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + 1 * + + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT + 1 * + + COUNT ( * ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab0 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT - col1 DIV 56 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT - col1 / 56 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + - COUNT( * ) + ( - - 66 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 77 * 99 + col2
----
66

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + - COUNT ( * ) + ( - - 66 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 77 * 99 + col2
----
66

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE col0 BETWEEN + + 28 AND + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - + col0 AND col0
----

query II rowsort
SELECT ALL - col0, col0 + - col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
24
-75
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ( + - COUNT( ALL - + col0 ) ) * + + COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8311
SELECT ( + - COUNT ( ALL - + col0 ) ) * + + COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col2 FROM tab0 cor0
----
13

query I rowsort
SELECT 10 + - col0 AS col0 FROM tab0
----
-5
-77
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col2 ) col2 FROM tab2
----
104
133
69

query I rowsort
SELECT ( + col2 ) + + 16 AS col0 FROM tab2
----
39
56
74

query I rowsort
SELECT ALL col1 * + 42 + + col1 * + col0 FROM tab0
----
139
2709
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT 59 + - - COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-8317
SELECT 59 + - - COUNT ( * ) FROM tab1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8318
SELECT * FROM tab1 WHERE + col1 IN ( 91 + - - 62 * + col2 + 50, - col2, + - CAST( - - col0 AS SIGNED ), + col2 * + 39 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-8318
SELECT * FROM tab1 WHERE + col1 IN ( 91 + - - 62 * + col2 + 50, - col2, + - CAST ( - - col0 AS INTEGER ), + col2 * + 39 + + col2 )
----

query I rowsort
SELECT DISTINCT + - 56 + - - 85 FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL - ( - 55 ) + + col1 FROM tab1 cor0
----
102
60
69

query I rowsort
SELECT ALL + 55 AS col0 FROM tab0 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - MIN( DISTINCT - 41 ) AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8322
SELECT - MIN ( DISTINCT - 41 ) AS col0 FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab0 AS cor0 WHERE ( 61 ) * - - 79 IS NULL
----

query I rowsort
SELECT + - ( + 56 ) AS col0 FROM tab1 AS cor0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT + + col0 DIV + 89 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8325
SELECT + + col0 / + 89 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT - 28 AS col2, COUNT( * ) AS col2 FROM tab0
----
-28
3

skipif mysql # not compatible
query II rowsort label-8326
SELECT - 28 AS col2, COUNT ( * ) AS col2 FROM tab0
----
-28
3

query I rowsort
SELECT ALL col0 * - col1 + - - col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT - 47 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - COUNT( - col0 ) col1 FROM tab1 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-8329
SELECT - COUNT ( - col0 ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * + 30 AS col1 FROM tab0 cor0
----
-2610
-2910
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT MAX( + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8331
SELECT MAX ( + + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8333
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT ALL 51 * - CAST( NULL AS SIGNED ) * + col2 * + col2 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL 51 * - CAST ( NULL AS INTEGER ) * + col2 * + col2 * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8335
SELECT ALL * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) * + 52 + + - col0 * - col1 * + 9 < - 76
----

skipif mysql # not compatible
query III rowsort label-8335
SELECT ALL * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) * + 52 + + - col0 * - col1 * + 9 < - 76
----

query I rowsort
SELECT ALL 78 * + - col1 AS col0 FROM tab0
----
-1638
-6318
-78

query II rowsort
SELECT 40 AS col2, + col1 AS col2 FROM tab0
----
40
1
40
21
40
81

query I rowsort
SELECT + ( - - col0 ) + col0 + + 96 + + col2 AS col0 FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 17 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8340
SELECT COUNT( * ) DIV - 44 FROM tab0 WHERE NOT 87 + + ( - + col0 ) - - - ( - col2 ) BETWEEN NULL AND ( - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT COUNT ( * ) / - 44 FROM tab0 WHERE NOT 87 + + ( - + col0 ) - - - ( - col2 ) BETWEEN NULL AND ( - - col0 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8341
SELECT + col0 / - - CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT + col0 / - - CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8342
SELECT ALL CAST( - 45 AS SIGNED ) DIV - + COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CAST ( - 45 AS INTEGER ) / - + COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + COUNT( - 55 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8344
SELECT + COUNT ( - 55 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col1, + col2 + + - col2 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT + + 66 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8346
SELECT + + 66 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 + - - 24 + + 3 FROM tab1
----
112
118
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT ALL col1 + ( + col1 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL col1 + ( + col1 ) / - col0 AS col1 FROM tab2 AS cor0
----
50
67
76

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 75 + + + col2 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT DISTINCT + 46 - 28 * - 51 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1474

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - col0 * + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT MAX( + + 61 ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT MAX ( + + 61 ) FROM tab2 cor0
----
61

query I rowsort
SELECT ALL + ( - 15 ) FROM tab1
----
-15
-15
-15

query III rowsort
SELECT * FROM tab0 WHERE 31 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 82 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 20 - + col2 + 48, + col0 + + + ( - 81 ) AS col2 FROM tab2
----
10
-6
28
-17
45
-35

query I rowsort
SELECT ALL + ( 46 ) + - 90 + - col1 FROM tab0
----
-125
-45
-65

query I rowsort
SELECT DISTINCT - + col0 + - - 73 AS col2 FROM tab0 AS cor0
----
-14
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query II rowsort
SELECT 72 AS col2, - 29 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + - 67 * - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
603

skipif mysql # not compatible
query I rowsort label-8362
SELECT + - 67 * - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query II rowsort
SELECT DISTINCT + col1, col2 + 95 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
194
21
105
81
142

query I rowsort
SELECT - - 26 AS col1 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8367
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-8367
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) > + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT DISTINCT + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 67 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8372
SELECT DISTINCT - 47 DIV - + COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - 47 / - + COUNT ( * ) AS col1 FROM tab1
----
15

query II rowsort
SELECT col2 AS col1, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT ALL - col1 DIV + col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - col1 / + col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT + + 71 IS NOT NULL
----

query I rowsort
SELECT ALL + - 1 * + + col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col1 + + ( + col2 ) + col0 AS col2 FROM tab1 AS cor0 WHERE col0 * + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - + col1 ) AS col1, col2 * - col1 col1 FROM tab1 AS cor0
----
-14
-1344
-47
-3196
-5
-295

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( + col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + 82 + + COUNT( ALL + ( - col2 ) ) + + + 39 + - SUM( + col1 ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 82 + + COUNT ( ALL + ( - col2 ) ) + + + 39 + - SUM ( + col1 ) FROM tab2 AS cor0
----
-71

query I rowsort
SELECT + 87 + - - col0 FROM tab2 AS cor0
----
133
151
162

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT DISTINCT + + col2 DIV + 32 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT + + col2 / + 32 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col1 + - - 16 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT col0 * + - 47 + + + col0 AS col2 FROM tab0
----
-4002
-4462
-690

query I rowsort
SELECT ALL 56 FROM tab2 WHERE NOT - 10 + + 75 IS NULL
----
56
56
56

query III rowsort
SELECT * FROM tab1 WHERE - - 5 * + col0 + + col0 NOT BETWEEN - + 76 AND col1 * 82 + + - 22
----
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT - 34 + COUNT( * ) AS col0, + 12 * + 55 FROM tab0
----
-31
660

skipif mysql # not compatible
query II rowsort label-8387
SELECT - 34 + COUNT ( * ) AS col0, + 12 * + 55 FROM tab0
----
-31
660

query I rowsort
SELECT - 48 + col2 FROM tab2
----
-25
-8
10

query I rowsort
SELECT DISTINCT + ( + - 17 ) AS col1 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL 54 + + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL 54 + + COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT DISTINCT 67 + + + col0 FROM tab2
----
113
131
142

query I rowsort
SELECT - 81 * - + 26 FROM tab0
----
2106
2106
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT ALL + ( MAX( - col2 ) ) + + SUM( - col1 ) AS col1, - COUNT( * ) + - + 74 AS col0 FROM tab1 AS cor0
----
-125
-77

skipif mysql # not compatible
query II rowsort label-8393
SELECT ALL + ( MAX ( - col2 ) ) + + SUM ( - col1 ) AS col1, - COUNT ( * ) + - + 74 AS col0 FROM tab1 AS cor0
----
-125
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT DISTINCT + 44 - 22 * + 98, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2112
3

skipif mysql # not compatible
query II rowsort label-8394
SELECT DISTINCT + 44 - 22 * + 98, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2112
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT ALL 35 - + col1 + + col2 * + CAST( - - 62 AS SIGNED ) FROM tab1 AS cor0
----
3688
4204
5973

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL 35 - + col1 + + col2 * + CAST ( - - 62 AS INTEGER ) FROM tab1 AS cor0
----
3688
4204
5973

query I rowsort
SELECT + 75 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 53, ( + - ( + 1 ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 18d9fe100fd85b1309c5e4f4efb6ddd6

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT DISTINCT - + 91, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-8398
SELECT DISTINCT - + 91, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL + + MAX( ALL col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + + MAX ( ALL col0 ) AS col2 FROM tab2 cor0
----
75

query II rowsort
SELECT + col0 AS col1, col1 FROM tab1 AS cor0 WHERE NOT col0 + + 84 + - col2 BETWEEN NULL AND - 7
----
51
14
85
5
91
47

query II rowsort
SELECT - col1, + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - col0 - col0 * + - col0 FROM tab2 AS cor0
----
3174
6656
9975

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL OR NULL NOT IN ( - col1, col0, - - col0 + 22, ( + - col1 ) * + - col2 / - col1 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - COUNT( col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - COUNT ( col1 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 80 + - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col0 ) <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - + 37 AS col0 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + 19 * - 88 FROM tab1 AS cor0
----
-1672
-1672
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8411
SELECT + MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - + 30 * COUNT( - 90 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - + 30 * COUNT ( - 90 ) FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + + SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8413
SELECT + + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-8414
SELECT - + SUM( ALL - + col0 ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
227
-3

skipif mysql # not compatible
query II rowsort label-8414
SELECT - + SUM ( ALL - + col0 ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
227
-3

query I rowsort
SELECT DISTINCT - 2 + + - 54 FROM tab0
----
-56

query II rowsort
SELECT + + col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT + - MAX( DISTINCT - 34 ) AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8418
SELECT + - MAX ( DISTINCT - 34 ) AS col2 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT MIN( ALL - ( - 19 ) ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8419
SELECT MIN ( ALL - ( - 19 ) ) FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8420
SELECT + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT + CAST( NULL AS SIGNED ) / + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8423
SELECT + CAST ( NULL AS INTEGER ) / + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + ( - - col2 ) * + + col0 - - col1 FROM tab2 AS cor0
----
1109
2637
4417

query II rowsort
SELECT ALL - 59, + col2 FROM tab0 cor0
----
-59
10
-59
47
-59
99

query III rowsort
SELECT * FROM tab2 WHERE 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + 65 - + - COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8427
SELECT + 65 - + - COUNT ( * ) FROM tab1
----
68

query I rowsort
SELECT - col0 - col0 * + 41 * col0 * - col0 FROM tab2
----
10747840
17296800
3990730

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT - MAX( ALL + - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - MAX ( ALL + - col2 ) FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT col2 * - + col1 + col2 + + 14 * 17 DIV - + ( - 35 ) col2 FROM tab0
----
-194
-3754
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8430
SELECT col2 * - + col1 + col2 + + 14 * 17 / - + ( - 35 ) col2 FROM tab0
----
-194
-3754
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT CAST( - - COUNT( * ) AS SIGNED ) + MAX( - - col1 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-8431
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + MAX ( - - col1 ) FROM tab1
----
50

query I rowsort
SELECT DISTINCT col0 * - - col0 + + col1 FROM tab0
----
306
7590
9410

onlyif mysql # DIV for integer division: 
query II rowsort label-8433
SELECT ALL 88 * + 55 + ( + col0 ), - 92 DIV + col2 col2 FROM tab1 AS cor0
----
4891
0
4925
-1
4931
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8433
SELECT ALL 88 * + 55 + ( + col0 ), - 92 / + col2 col2 FROM tab1 AS cor0
----
4891
0
4925
-1
4931
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT 1 - - + 44 * COUNT( * ) AS col0 FROM tab0 cor0
----
133

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT 1 - - + 44 * COUNT ( * ) AS col0 FROM tab0 cor0
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-8435
SELECT DISTINCT - 48, COUNT( * ) col2 FROM tab2 AS cor0
----
-48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8435
SELECT DISTINCT - 48, COUNT ( * ) col2 FROM tab2 AS cor0
----
-48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL + MIN( ALL + 83 ) AS col0 FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL + MIN ( ALL + 83 ) AS col0 FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT DISTINCT - ( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + - - col1 IN ( 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT + COUNT( - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8440
SELECT + COUNT ( - col2 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT ALL + col0 AS col2, - 39 AS col1 FROM tab1
----
51
-39
85
-39
91
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT - COUNT( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8442
SELECT - COUNT ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT + ( col0 ) + - col1, - col1 AS col2 FROM tab0
----
-66
-81
66
-21
96
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT 90 + + SUM( - - ( col1 ) ) + - + 8 * - + 60 + + 64 FROM tab1
----
700

skipif mysql # not compatible
query I rowsort label-8444
SELECT 90 + + SUM ( - - ( col1 ) ) + - + 8 * - + 60 + + 64 FROM tab1
----
700

query I rowsort
SELECT ( - 48 ) + - 78 * + col2 AS col1 FROM tab2
----
-1842
-3168
-4572

query I rowsort
SELECT DISTINCT - col0 + ( - 20 ) FROM tab1 AS cor0
----
-105
-111
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT + MIN( 43 ) col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8447
SELECT + MIN ( 43 ) col0 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE - 10 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( 90 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + col0 - + col1 * - 50 FROM tab2 cor0
----
2573
3367
3874

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8452
SELECT - - COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE - 74 * - col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8452
SELECT - - COUNT ( * ) AS col0, CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE - 74 * - col1 IS NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT DISTINCT col2 + - + CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT col2 + - + CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8454
SELECT ALL + col1 DIV - - col0 - + - CAST( + - ( - - 16 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-11
-16
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8454
SELECT ALL + col1 / - - col0 - + - CAST ( + - ( - - 16 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-11
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT + - COUNT( * ) * + - 95 + + COUNT( * ) * - + 78 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + - COUNT ( * ) * + - 95 + + COUNT ( * ) * - + 78 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8456
SELECT + col0 + + - col0 col2, CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8456
SELECT + col0 + + - col0 col2, CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT ( - 90 ) AS col2 FROM tab0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT - 40 * + col0 DIV + col0 AS col2 FROM tab0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-8458
SELECT - 40 * + col0 / + col0 AS col2 FROM tab0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8459
SELECT * FROM tab1 WHERE NULL < + 65 * - col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8459
SELECT * FROM tab1 WHERE NULL < + 65 * - col0 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT - COUNT( * ) * - - 45 AS col1 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT - COUNT ( * ) * - - 45 AS col1 FROM tab2
----
-135

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - - col2 / + 90
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 NOT BETWEEN + 81 AND - col1 * + + col0 * - - col1 * - col0 * + 1 * + col1 + - - col2 * + 15 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ( - - 95 ) + - COUNT( DISTINCT - col1 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----
95

skipif mysql # not compatible
query I rowsort label-8463
SELECT ( - - 95 ) + - COUNT ( DISTINCT - col1 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col0 / + col0 + col0 * + + 62 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + + COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8465
SELECT + + COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + - col1, + col0 * col2 + - 8 AS col0 FROM tab0 AS cor0
----
-1
9595
-21
862
-81
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT + 29 * - 70 FROM tab0 AS cor0
----
-2030
-2030
-2030

query II rowsort
SELECT DISTINCT - + 33 AS col2, - col2 FROM tab1 AS cor0
----
-33
-59
-33
-68
-33
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT - - COUNT( * ) * + MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT - - COUNT ( * ) * + MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - + col1 AS col0, 56 FROM tab0 AS cor0
----
-1
56
-21
56
-81
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, 26 AS col2 FROM tab2 AS cor0
----
23
26
40
26
58
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8473
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8473
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + 44 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
44
-23
44
-40
44
-58

query II rowsort
SELECT - 29 AS col2, 82 AS col1 FROM tab2 AS cor0
----
-29
82
-29
82
-29
82

query I rowsort
SELECT ALL + col1 + + 38 + + - col2 * + 71 * - 46 * - col0 AS col1 FROM tab2
----
-14206995
-3455339
-8360845

onlyif mysql # aggregate syntax: 
query II rowsort label-8477
SELECT DISTINCT SUM( ALL - col0 ), 0 AS col0 FROM tab0
----
-199
0

skipif mysql # not compatible
query II rowsort label-8477
SELECT DISTINCT SUM ( ALL - col0 ), 0 AS col0 FROM tab0
----
-199
0

query II rowsort
SELECT DISTINCT + col2 + - + 92, 91 AS col0 FROM tab2
----
-34
91
-52
91
-69
91

query I rowsort
SELECT - 71 AS col1 FROM tab2 WHERE NOT + - col2 * + + col2 - - + col0 > - col1 / col2 * col1
----
-71
-71
-71

query I rowsort
SELECT - col1 * + 11 FROM tab0
----
-11
-231
-891

query I rowsort
SELECT DISTINCT - - 79 AS col1 FROM tab2 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 cor0 WHERE 87 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col0 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 63 > - 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + 87 FROM tab2
----
110
127
145

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 / - 96 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + - COUNT( * ) - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + - COUNT ( * ) - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8490
SELECT SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - - 48 col0 FROM tab2
----
19
29
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * - col2 col2 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT col2 - - + col2 AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT COUNT( * ) * - 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-8495
SELECT COUNT ( * ) * - 41 FROM tab1
----
-123

query I rowsort
SELECT DISTINCT + + ( + 80 ) FROM tab1 AS cor0 WHERE 65 IN ( - ( - 12 ), col0 + + 59, col0, 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT + col0 DIV - + 25 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8497
SELECT + col0 / - + 25 FROM tab2 AS cor0
----
-1
-2
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - col0 * - - col1 * 39 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - 15 ) FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 0 * - 3 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + 16 / col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > - 7 / + - 52 + - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT SUM( col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8504
SELECT SUM ( col1 ) col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8505
SELECT ALL - ( + - COUNT( * ) ) DIV - ( - + COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - ( + - COUNT ( * ) ) / - ( - + COUNT ( * ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + COUNT( - + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8506
SELECT + COUNT ( - + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT - - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 16 AS col2 FROM tab0 cor0
----
-16
-16
-16

query II rowsort
SELECT DISTINCT col2 + + + 86 AS col2, 52 AS col1 FROM tab0
----
133
52
185
52
96
52

query I rowsort
SELECT - col1 + - 66 * + col1 AS col2 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT 42 + - + ( + ( + col2 ) ) FROM tab2
----
-16
19
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + 22 + COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-8512
SELECT + 22 + COUNT ( * ) FROM tab2
----
25

query I rowsort
SELECT DISTINCT + + 43 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-38
22
42

query I rowsort
SELECT ALL - 50 * 37 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + 21 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 80 * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT DISTINCT col0 * col0 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT col0 * col0 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 75 + - col1 FROM tab0
----
-6
54
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + + col2 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT SUM( ALL + - col2 ) + - 55 FROM tab0 cor0
----
-211

skipif mysql # not compatible
query I rowsort label-8519
SELECT SUM ( ALL + - col2 ) + - 55 FROM tab0 cor0
----
-211

query I rowsort
SELECT DISTINCT + 95 - - ( + 87 ) FROM tab0 AS cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT COUNT( * ) + - COUNT( * ) + - - SUM( ALL - col1 ) + SUM( ALL ( - + col2 ) ) col2 FROM tab1 AS cor0
----
-289

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8521
SELECT COUNT ( * ) + - COUNT ( * ) + - - SUM ( ALL - col1 ) + SUM ( ALL ( - + col2 ) ) col2 FROM tab1 AS cor0
----
-289

query I rowsort
SELECT DISTINCT + col0 * - + col0 - + col0 - - + col2 - + 36 AS col0 FROM tab2 AS cor0
----
-2175
-4156
-5678

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL 96 * - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-4512
-9504
-960

query I rowsort
SELECT + 29 * + 52 AS col0 FROM tab1
----
1508
1508
1508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT ALL CAST( + 43 AS SIGNED ) AS col2 FROM tab1
----
43
43
43

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL CAST ( + 43 AS INTEGER ) AS col2 FROM tab1
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 37
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NOT + col1 * - col2 IS NOT NULL )
----
14
47
5

query II rowsort
SELECT DISTINCT - - 43 AS col1, col2 AS col0 FROM tab0 AS cor0
----
43
10
43
47
43
99

query I rowsort
SELECT ALL + ( ( - col1 ) ) * + + col0 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col2 IN ( + 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT + 76 * + MAX( col0 ) AS col1 FROM tab1
----
6916

skipif mysql # not compatible
query I rowsort label-8534
SELECT + 76 * + MAX ( col0 ) AS col1 FROM tab1
----
6916

query I rowsort
SELECT - 92 - col2 FROM tab2
----
-115
-132
-150

query I rowsort
SELECT ALL col0 - - 81 FROM tab1
----
132
166
172

query I rowsort
SELECT - 65 * col0 AS col1 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT ALL + col0 + 95 AS col2 FROM tab0
----
110
182
192

query I rowsort
SELECT DISTINCT - col1 - col1 * col2 AS col1 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( 67 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 5 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 * col0 + - col0 * col1 ) >= col1
----

query I rowsort
SELECT ALL - col1 + + 12 FROM tab2
----
-39
-55
-65

query I rowsort
SELECT ALL 5 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT COUNT( * ) * + 54 + - 56 * 16 AS col1 FROM tab0
----
-734

skipif mysql # not compatible
query I rowsort label-8545
SELECT COUNT ( * ) * + 54 + - 56 * 16 AS col1 FROM tab0
----
-734

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 * 39 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT + CAST( NULL AS SIGNED ) - - 46 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT + CAST ( NULL AS INTEGER ) - - 46 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 65 + col1 < ( - col2 )
----
51
14
96
91
47
68

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT - col2 / - col2 NOT BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col0 + 72 >= ( + col2 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 28 col0 FROM tab2
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + SUM( col0 ) + COUNT( DISTINCT + col0 ) AS col0 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-8554
SELECT + SUM ( col0 ) + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2
----
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * + col1 col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT - 38 * 26 AS col2 FROM tab1
----
-988
-988
-988

query I rowsort
SELECT ALL ( col0 ) - col2 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL + CAST( NULL AS SIGNED ) * + MAX( ALL 1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL + CAST ( NULL AS INTEGER ) * + MAX ( ALL 1 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - 72 + SUM( DISTINCT + 81 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8559
SELECT - 72 + SUM ( DISTINCT + 81 ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT col2 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-8560
SELECT col2 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - ( col2 ) + + 28 FROM tab1 AS cor0
----
-31
-40
-68

query I rowsort
SELECT ALL col1 * + col1 - - ( + col2 ) FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT + - 45 AS col0 FROM tab0 cor0
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 91 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT 80 - 17 * 59 AS col1 FROM tab1 AS cor0
----
-923
-923
-923

query I rowsort
SELECT + - ( col1 ) - + 22 FROM tab0 AS cor0
----
-103
-23
-43

query I rowsort
SELECT - 98 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + 48 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE 11 = + col0 * + CAST( NULL AS SIGNED ) - + col2
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE 11 = + col0 * + CAST ( NULL AS INTEGER ) - + col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / + 31 - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE - 65 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 = 52 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - + 66 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL COUNT( * ) * - 94 FROM tab2 WHERE ( col2 ) BETWEEN ( - 29 * + col2 ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL COUNT ( * ) * - 94 FROM tab2 WHERE ( col2 ) BETWEEN ( - 29 * + col2 ) AND - col1
----
0

query I rowsort
SELECT + 11 * + col1 AS col1 FROM tab2
----
561
737
847

query I rowsort
SELECT - 70 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-70
-70
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col0 - 63 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN 9 * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - 77 * - - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-8580
SELECT - 77 * - - COUNT ( * ) FROM tab2
----
-231

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT ( + MIN( ALL - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT ( + MIN ( ALL - col0 ) ) FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT MAX( - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8584
SELECT MAX ( - col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT MIN( - col1 ) DIV 94 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT MIN ( - col1 ) / 94 AS col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + + ( col2 ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * col1 AND - 76 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > 38 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8593
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL 66 * + + col2 FROM tab0 AS cor0
----
3102
6534
660

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE col1 * - 3 BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT 53 FROM tab0 AS cor0 WHERE ( - col2 + + + col2 ) >= col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + - 6 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 4 + + 44 AS col1 FROM tab0 cor0
----
-280
-40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT + - 4 * - COUNT( * ) col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT DISTINCT + - 4 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT - 72 DIV + 77 + - ( + - 50 ) FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8600
SELECT - 72 / + 77 + - ( + - 50 ) FROM tab1
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE 68 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE 68 * - col2 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8602
SELECT CAST( NULL AS DECIMAL ) * - - col0 * + col0 / col0 + ( 30 + 64 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT CAST ( NULL AS REAL ) * - - col0 * + col0 / col0 + ( 30 + 64 ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT + col1 * + - col1 + CAST( - + 4 AS SIGNED ) + 63 * + col0 FROM tab1
----
3013
3520
5326

skipif mysql # not compatible
query I rowsort label-8603
SELECT + col1 * + - col1 + CAST ( - + 4 AS INTEGER ) + 63 * + col0 FROM tab1
----
3013
3520
5326

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL + 13 + - COUNT( * ) + 60 + + 3 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + 13 + - COUNT ( * ) + 60 + + 3 FROM tab1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT - CAST( NULL AS SIGNED ) - + SUM( - col2 ) FROM tab2 WHERE + 84 NOT BETWEEN ( NULL ) AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - CAST ( NULL AS INTEGER ) - + SUM ( - col2 ) FROM tab2 WHERE + 84 NOT BETWEEN ( NULL ) AND ( col0 )
----
NULL

query I rowsort
SELECT ALL col2 + + - ( + + ( - 39 ) ) AS col1 FROM tab0
----
138
49
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 67 BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT + col0 * - + col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE 51 IS NOT NULL
----
163840
326250
48668

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 80 + - 1
----

query I rowsort
SELECT - col2 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + - col0 - + col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL OR NOT 89 NOT BETWEEN ( 41 ) AND + col2 + 24
----
97
1
99

query I rowsort
SELECT ( + ( - ( + col0 ) ) ) AS col0 FROM tab0 WHERE 67 <= ( + - 81 )
----

query I rowsort
SELECT col1 + + col2 * + 41 + - + 24 AS col2 FROM tab2
----
1693
2421
970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8615
SELECT * FROM tab2 WHERE col1 + + - col0 < + CAST( NULL AS SIGNED ) + - 33
----

skipif mysql # not compatible
query III rowsort label-8615
SELECT * FROM tab2 WHERE col1 + + - col0 < + CAST ( NULL AS INTEGER ) + - 33
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8616
SELECT DISTINCT + col2 DIV ( + col1 ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
0
21
0
81
99
1

skipif mysql # not compatible
query II rowsort label-8616
SELECT DISTINCT + col2 / ( + col1 ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
0
21
0
81
99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col2 < + + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 < + + col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + ( - MIN( ALL col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8619
SELECT + ( - MIN ( ALL col2 ) ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT + col0 AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT - - col0 DIV - 98 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT - - col0 / - 98 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 24 * + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8622
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 24 * + + col2 )
----
0

query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab0 cor0 WHERE ( 75 + + - col1 * + col2 * - col1 ) >= ( - 8 )
----
-705
-870
-9603

query II rowsort
SELECT ALL + col2 AS col2, + col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + col1 / col1 ) BETWEEN - col0 + - + col0 AND + col2 - + col2 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT - col2 * col2 NOT BETWEEN + col2 - + col1 AND ( ( col0 ) + col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 68 + + col0 FROM tab2 WHERE ( + 24 ) * col1 > - col2 + col2
----
-22
-4
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - SUM( 98 ) FROM tab2 WHERE NOT - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT - SUM ( 98 ) FROM tab2 WHERE NOT - col0 >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( + 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8630
SELECT - CAST( + 89 AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-89
NULL
-89
NULL
-89
NULL

skipif mysql # not compatible
query II rowsort label-8630
SELECT - CAST ( + 89 AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-89
NULL
-89
NULL
-89
NULL

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1, tab0 cor0
----
70

query II rowsort
SELECT DISTINCT 3 AS col2, - 89 * - col2 * + 31 + + col2 + 64 + col0 FROM tab0
----
3
129799
3
273401
3
27751

query I rowsort
SELECT 4 * ( - ( + col0 ) ) FROM tab0
----
-348
-388
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - - col0 + + - 26 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 30 + col1 + 49 + col0 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 68 * col1 AS col0 FROM tab2 AS cor0
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 14 AND - 17
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 14 AND - 17
----
0

query I rowsort
SELECT DISTINCT + - 10 + + + 10 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + SUM( 97 ) AS col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8640
SELECT + SUM ( 97 ) AS col2 FROM tab2 AS cor0
----
291

query I rowsort
SELECT ALL ( - col2 ) + - - 92 FROM tab2 AS cor0
----
34
52
69

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 <> 87
----

query I rowsort
SELECT + + col1 * + ( + col0 ) * col2 AS col1 FROM tab1 cor0
----
25075
290836
68544

query I rowsort
SELECT + + ( - col2 ) + 25 + col0 FROM tab0 AS cor0 WHERE ( NOT + 94 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT - + col2 * ( col2 ) DIV - col0 + + + col2 + 84 FROM tab1 AS cor0
----
183
202
360

skipif mysql # not compatible
query I rowsort label-8645
SELECT - + col2 * ( col2 ) / - col0 + + + col2 + 84 FROM tab1 AS cor0
----
183
202
360

query I rowsort
SELECT DISTINCT + col0 + + 95 FROM tab1 AS cor0
----
146
180
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + 48 ) * + + 64 * + ( - - 54 ) <> ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL - COUNT( + - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - COUNT ( + - col1 ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 42 - ( 80 ) <= 35 / + 4 * - ( - 26 ) OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT DISTINCT CAST( - + col2 AS SIGNED ) + 72 AS col1 FROM tab2
----
14
32
49

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) + 72 AS col1 FROM tab2
----
14
32
49

query I rowsort
SELECT col0 - - 54 AS col0 FROM tab1
----
105
139
145

query I rowsort
SELECT ALL + col0 + - ( + col2 ) AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT col2 - col2 * - 71 + - + 1 FROM tab0
----
3383
7127
719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE + + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + 22 + - 25 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 82 + - col2 FROM tab0 cor0
----
-129
-181
-92

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT + col0 + + col2 DIV col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-1
-29
77

skipif mysql # not compatible
query I rowsort label-8661
SELECT + col0 + + col2 / col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-1
-29
77

query I rowsort
SELECT ALL 65 - - - col0 AS col2 FROM tab1 AS cor0
----
-20
-26
14

query I rowsort
SELECT - 18 + - + 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - ( + 47 ) * + + MAX( ALL - ( + col1 ) ) + + 60 FROM tab1
----
295

skipif mysql # not compatible
query I rowsort label-8664
SELECT - ( + 47 ) * + + MAX ( ALL - ( + col1 ) ) + + 60 FROM tab1
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT COUNT( * ) * 79 AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT COUNT ( * ) * 79 AS col0 FROM tab0
----
237

query I rowsort
SELECT + col2 * - + 84 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8667
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-8667
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 - - + ( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT + col1 DIV + col2 * - 22 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT + col1 / + col2 * - 22 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8670
SELECT ALL + - 70 DIV 76 + ( - col2 ) AS col0, col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-8670
SELECT ALL + - 70 / 76 + ( - col2 ) AS col0, col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col1 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL 15 + - + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 * - col2 * + col2 / + 57 NOT IN ( - - 51 * + col1 )
----
12

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL 15 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 * - col2 * + col2 / + 57 NOT IN ( - - 51 * + col1 )
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8673
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT 35 * 21 FROM tab0
----
735
735
735

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <> NULL
----

query II rowsort
SELECT col2, + col2 * + - col0 AS col0 FROM tab0
----
10
-870
47
-705
99
-9603

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) > 62 + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8678
SELECT ALL col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( - 24 ), + col1 )
----

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( - 24 ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NULL IN ( col1 * + 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + COUNT( * ) * 41 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-8681
SELECT + COUNT ( * ) * 41 FROM tab1
----
123

query II rowsort
SELECT col1 AS col0, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT - ( col2 ) / CAST( NULL AS SIGNED ) * col2 + col0 + col1 / - 80 + + col0 - col2 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - ( col2 ) / CAST ( NULL AS INTEGER ) * col2 + col0 + col1 / - 80 + + col0 - col2 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + 88 + - + COUNT( * ) + + 82 FROM tab0 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-8684
SELECT + 88 + - + COUNT ( * ) + + 82 FROM tab0 AS cor0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 13 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 13 IS NULL
----
3

query I rowsort
SELECT + ( + col0 ) + col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT col2 + - col2 * + 80 FROM tab0
----
-3713
-7821
-790

query I rowsort
SELECT col0 + + col2 * - col2 + col2 - - 40 AS col0 FROM tab2
----
-1456
-3191
-420

query I rowsort
SELECT + 76 + + col1 FROM tab0
----
157
77
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT 75 + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT 75 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT - 43 * + - COUNT( * ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - 43 * + - COUNT ( * ) AS col1 FROM tab2
----
129

query I rowsort
SELECT ALL 48 * - col0 + - + 8 FROM tab2
----
-2216
-3080
-3608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8693
SELECT DISTINCT col2 + - + 71, - col1 + - + ( + CAST( - 31 AS SIGNED ) ) + - col0 AS col2 FROM tab0
----
-24
-65
-61
-77
28
-67

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT col2 + - + 71, - col1 + - + ( + CAST ( - 31 AS INTEGER ) ) + - col0 AS col2 FROM tab0
----
-24
-65
-61
-77
28
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - MAX( ALL + col2 ) FROM tab2 WHERE NOT + + col2 BETWEEN - - 64 AND + col2 + - - col1
----
-58

skipif mysql # not compatible
query I rowsort label-8694
SELECT - MAX ( ALL + col2 ) FROM tab2 WHERE NOT + + col2 BETWEEN - - 64 AND + col2 + - - col1
----
-58

query I rowsort
SELECT - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + - 8 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT 57 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT 57 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - + col0 AS col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8699
SELECT - CAST( NULL AS DECIMAL ) / + - col1 - + 2 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT - CAST ( NULL AS REAL ) / + - col1 - + 2 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 * + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT + MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + MIN ( - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT DISTINCT - 43 * + COUNT( * ) + + + ( - ( - 79 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - 45 * ( - CAST( - col2 AS SIGNED ) ) >= - + col2
----
79

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT - 43 * + COUNT ( * ) + + + ( - ( - 79 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - 45 * ( - CAST ( - col2 AS INTEGER ) ) >= - + col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 8 FROM tab0 AS cor0 WHERE col0 * + 38 / 37 + + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT - 3 * - COUNT( DISTINCT col2 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - 3 * - COUNT ( DISTINCT col2 ) AS col1 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT ALL col1 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL col1 / + - col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT DISTINCT ( + col2 ) DIV + col1 AS col2 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT ( + col2 ) / + col1 AS col2 FROM tab0
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8709
SELECT + col1, - CAST( - - 46 AS SIGNED ) FROM tab0 WHERE NOT col1 + - - col0 * + col1 + + 26 IS NULL
----
1
-46
21
-46
81
-46

skipif mysql # not compatible
query II rowsort label-8709
SELECT + col1, - CAST ( - - 46 AS INTEGER ) FROM tab0 WHERE NOT col1 + - - col0 * + col1 + + 26 IS NULL
----
1
-46
21
-46
81
-46

query I rowsort
SELECT ALL 65 * + - 11 + + - col1 FROM tab0
----
-716
-736
-796

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 6 * - 0 >= NULL
----

query I rowsort
SELECT DISTINCT - 37 * + 58 FROM tab0 AS cor0
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT + COUNT( * ) * 94 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8713
SELECT + COUNT ( * ) * 94 FROM tab0 AS cor0
----
282

query III rowsort
SELECT * FROM tab0 cor0 WHERE 22 NOT BETWEEN + + col1 + + 89 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 42 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( + 41 * - 67 )
----

query I rowsort
SELECT 67 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 17 * 47 + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 17 * 47 + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT DISTINCT + col2 - col2 DIV - + col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT + col2 - col2 / - + col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT + SUM( + col1 ) + MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + SUM ( + col1 ) + MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
162

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 88 + + + ( - col1 ) >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT + COUNT( * ) AS col2, - COUNT( * ) * + 64 FROM tab2 cor0
----
3
-192

skipif mysql # not compatible
query II rowsort label-8722
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) * + 64 FROM tab2 cor0
----
3
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8723
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8723
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT col0 * - - col2 + 63 FROM tab1 AS cor0
----
4959
5078
6251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT + col2 + - ( col1 ) - col2 - + + 18 * + col2 + - 34 * ( - + 13 ) DIV - - 21 AS col0 FROM tab1
----
-1046
-1250
-1721

skipif mysql # not compatible
query I rowsort label-8726
SELECT + col2 + - ( col1 ) - col2 - + + 18 * + col2 + - 34 * ( - + 13 ) / - - 21 AS col0 FROM tab1
----
-1046
-1250
-1721

query I rowsort
SELECT DISTINCT col1 + 97 FROM tab2
----
148
164
174

query I rowsort
SELECT col0 * - col0 + + + col1 AS col0 FROM tab2
----
-2065
-4019
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - COUNT( * ) + + - 46 * - - 35 FROM tab1
----
-1613

skipif mysql # not compatible
query I rowsort label-8729
SELECT - COUNT ( * ) + + - 46 * - - 35 FROM tab1
----
-1613

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT ALL - col2 + - + col1 * + col2 DIV + + ( - col2 ) FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL - col2 + - + col1 * + col2 / + + ( - col2 ) FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 + - 88 - 70 + col2 + + + col1 FROM tab0 AS cor0
----
-106
-57
51

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE + ( + 58 ) <> - ( col0 )
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT ALL - 94 FROM tab2 WHERE NOT col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT - 78 - col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - 78 - col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT + MAX( ALL 38 ) AS col2 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8736
SELECT + MAX ( ALL 38 ) AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT DISTINCT + - 63 AS col0 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT + 99 / ( - - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT + 99 / ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 99 + - col0 * - col2 FROM tab1 AS cor0 WHERE NOT - 42 * - 55 NOT BETWEEN col0 * + col1 AND NULL
----

query I rowsort
SELECT ALL + + col2 * + + col2 + + 63 AS col0 FROM tab2 cor0
----
1663
3427
592

query I rowsort
SELECT DISTINCT col1 * 83 AS col1 FROM tab1
----
1162
3901
415

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 22, ( + + 56 ) AS col2 FROM tab2
----
22
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT DISTINCT - col2 FROM tab2 WHERE col2 NOT BETWEEN - 28 * - CAST( + col2 AS SIGNED ) AND NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - col2 FROM tab2 WHERE col2 NOT BETWEEN - 28 * - CAST ( + col2 AS INTEGER ) AND NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + col2 / - 55 + col0 + + 41 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8746
SELECT + 59 * - SUM( - + col0 ) * - CAST( NULL AS SIGNED ) + - + MIN( ALL - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT + 59 * - SUM ( - + col0 ) * - CAST ( NULL AS INTEGER ) + - + MIN ( ALL - col2 ) FROM tab2
----
NULL

query I rowsort
SELECT + 86 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - + 78 + - 20 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT ALL - CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL + COUNT( * ) + 12 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + COUNT ( * ) + 12 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT ALL - col1 * + 80 * + col1 + - 8 AS col0 FROM tab2 AS cor0
----
-208088
-359128
-474328

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + SUM( col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8752
SELECT + SUM ( col0 ) AS col1 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT + CAST( NULL AS SIGNED ) / 65 - + 53 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT + CAST ( NULL AS INTEGER ) / 65 - + 53 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 77 + + - 98 + col1 + col1 AS col2 FROM tab2
----
113
133
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT + 15 * - - COUNT( DISTINCT + col2 ) - 5, - COUNT( * ) AS col0 FROM tab1
----
40
-3

skipif mysql # not compatible
query II rowsort label-8755
SELECT + 15 * - - COUNT ( DISTINCT + col2 ) - 5, - COUNT ( * ) AS col0 FROM tab1
----
40
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) > NULL
----
0

query I rowsort
SELECT - - 82 + - + col2 FROM tab0 AS cor0
----
-17
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE + col0 <= - - 2
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 <= - - 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT COUNT( col2 ) FROM tab1 cor0 WHERE NULL NOT IN ( - ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8759
SELECT COUNT ( col2 ) FROM tab1 cor0 WHERE NULL NOT IN ( - ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - + MAX( - 22 ) AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8760
SELECT - + MAX ( - 22 ) AS col1 FROM tab1 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8761
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) AS col1, - col0 col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8761
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) AS col1, - col0 col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT 6 * + col0 AS col1 FROM tab2
----
276
384
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT - COUNT( ( + ( + col2 ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT - COUNT ( ( + ( + col2 ) ) ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT DISTINCT COUNT( * ) AS col0, + 88 * + 3 AS col2 FROM tab2
----
3
264

skipif mysql # not compatible
query II rowsort label-8764
SELECT DISTINCT COUNT ( * ) AS col0, + 88 * + 3 AS col2 FROM tab2
----
3
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT + SUM( col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT + SUM ( col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT COUNT( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8766
SELECT COUNT ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE col0 / col1 < - col0 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 / col1 < - col0 * + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT - CAST( - 32 AS SIGNED ) FROM tab0 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8768
SELECT - CAST ( - 32 AS INTEGER ) FROM tab0 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col1 + - col0 + + ( - col2 ) col0 FROM tab2 AS cor0
----
23
-18
40
-27
58
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - 4 col0 FROM tab2 AS cor0
----
23
-4
40
-4
58
-4

query I rowsort
SELECT + - col2 * + 94 AS col1 FROM tab0 AS cor0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL + - MIN( + - 41 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + - MIN ( + - 41 ) FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ( MIN( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8773
SELECT ( MIN ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + + ( - + 68 ) FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query II rowsort
SELECT + 41 AS col0, + ( - col0 ) * col0 FROM tab0
----
41
-225
41
-7569
41
-9409

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 JOIN tab0 AS cor1 ON NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT - 30 DIV 4 + + col1 FROM tab2 AS cor0
----
44
60
70

skipif mysql # not compatible
query I rowsort label-8779
SELECT - 30 / 4 + + col1 FROM tab2 AS cor0
----
44
60
70

query I rowsort
SELECT ALL - col1 * ( - col0 ) + + col1 + - col0 FROM tab2 cor0
----
2351
4941
5017

query I rowsort
SELECT ALL + + col0 * - ( 69 ) FROM tab1 AS cor0
----
-3519
-5865
-6279

query I rowsort
SELECT col0 * 30 AS col0 FROM tab2 AS cor0
----
1380
1920
2250

query I rowsort
SELECT + col2 * - ( + 64 ) FROM tab1 AS cor0
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT DISTINCT - - 9 * + + CAST( - - col0 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + - 50 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - - 9 * + + CAST ( - - col0 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + - 50 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8786
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 NOT IN ( col0 / + 63 * + CAST( - - col1 AS SIGNED ) * CAST( NULL AS SIGNED ), - col2 * - - col1 + + col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-8786
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 NOT IN ( col0 / + 63 * + CAST ( - - col1 AS INTEGER ) * CAST ( NULL AS INTEGER ), - col2 * - - col1 + + col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + 24 * - - COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 24 * - - COUNT ( * ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL COUNT( + col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8788
SELECT ALL COUNT ( + col2 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT + MIN( - col2 ) FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ( - 30 ) AS col1 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - col2 + - - 6 * 51 FROM tab2 AS cor0
----
248
266
283

query I rowsort
SELECT DISTINCT + col0 * + + 63 AS col0 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT DISTINCT - col1 - + + 62 * - + 41 AS col1 FROM tab1 AS cor0
----
2495
2528
2537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL + + CAST( col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + + CAST ( col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 - - 62 AS col1 FROM tab2 AS cor0
----
102
120
85

query I rowsort
SELECT col2 * + col1 - col1 FROM tab2 AS cor0
----
1122
3003
3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab2
----
3
3
3

query I rowsort
SELECT ( + - 89 ) FROM tab0
----
-89
-89
-89

query I rowsort
SELECT 15 * col2 AS col2 FROM tab2
----
345
600
870

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT ALL - ( - - col2 ) DIV 33 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - ( - - col2 ) / 33 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 80 = 85
----

query I rowsort
SELECT + + ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT col2 * - 14 FROM tab2
----
-322
-560
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT ( CAST( 98 AS SIGNED ) ) FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-8807
SELECT ( CAST ( 98 AS INTEGER ) ) FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL + SUM( ALL + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL + SUM ( ALL + - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT - - 66 - + col1 + 66 * + col2 * 90 * + col0 * - 13 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( + 4 AS SIGNED ) + - CAST( + - 8 AS SIGNED ) / col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8809
SELECT - - 66 - + col1 + 66 * + col2 * 90 * + col0 * - 13 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( + 4 AS INTEGER ) + - CAST ( + - 8 AS INTEGER ) / col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 80 FROM tab2 AS cor0
----
3680
5120
6000

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8812
SELECT ALL * 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-8812
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 52 AS col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL SUM( DISTINCT ( + + col0 ) ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL SUM ( DISTINCT ( + + col0 ) ) AS col0 FROM tab2
----
185

query I rowsort
SELECT + 18 + col1 * 77 * - col2 AS col1 FROM tab2
----
-237142
-299204
-90303

query I rowsort
SELECT + 57 * + 67 + - col1 FROM tab0
----
3738
3798
3818

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT - COUNT( * ) + 83 AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-8818
SELECT - COUNT ( * ) + 83 AS col2 FROM tab2
----
80

query I rowsort
SELECT + 84 + + - 91 FROM tab0
----
-7
-7
-7

query II rowsort
SELECT ALL col2, + col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT 15 * col1 + - + col0 AS col0 FROM tab2
----
1091
719
930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8822
SELECT ALL - ( - col0 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - ( - col0 ) + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 85 + + 95 FROM tab1 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL + MIN( + col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + MIN ( + col1 ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8825
SELECT + MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + - col0 * 23 FROM tab0 AS cor0
----
-2001
-2231
-345

query III rowsort
SELECT * FROM tab1 WHERE ( col1 BETWEEN NULL AND + ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE NULL BETWEEN + + col2 * - 26 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + - 81 + - + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + - 81 + - + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT + + 82 * ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1722
-6642
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / + 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL col2 DIV + - ( 73 ) * - col1 + - + 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL col2 / + - ( 73 ) * - col1 + - + 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 72 AS col2 FROM tab2 cor0
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT DISTINCT + ( - - 70 ) * 90 - ( col2 ) + - 97 DIV - col1 + + col2 FROM tab1 AS cor0
----
6302
6306
6319

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + ( - - 70 ) * 90 - ( col2 ) + - 97 / - col1 + + col2 FROM tab1 AS cor0
----
6302
6306
6319

query I rowsort
SELECT ALL - 65 * + + 70 AS col0 FROM tab1
----
-4550
-4550
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + ( + - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8838
SELECT + ( + - COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL COUNT( DISTINCT col2 ) * + 16 AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL COUNT ( DISTINCT col2 ) * + 16 AS col2 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL MIN( ALL + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL MIN ( ALL + - col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT COUNT( + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT COUNT ( + col0 ) FROM tab2
----
3

query II rowsort
SELECT ALL + col0 AS col2, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT 26 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT + col0 * - + col1 * + CAST( + 32 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-13515
-136773
-22797

skipif mysql # not compatible
query I rowsort label-8844
SELECT + col0 * - + col1 * + CAST ( + 32 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-13515
-136773
-22797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT DISTINCT + ( - + SUM( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + ( - + SUM ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT - MAX( col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8846
SELECT - MAX ( col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL - + 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + - COUNT( * ) + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8848
SELECT + - COUNT ( * ) + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + + 42 + COUNT( DISTINCT - - 23 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + + 42 + COUNT ( DISTINCT - - 23 ) FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8850
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8850
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) + - col2 IS NOT NULL
----

query I rowsort
SELECT 42 FROM tab2 AS cor0 WHERE NULL IS NULL
----
42
42
42

query I rowsort
SELECT DISTINCT + + col0 * - + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT 96 * col1 DIV col1 + - col2 FROM tab1 AS cor0
----
0
28
37

skipif mysql # not compatible
query I rowsort label-8854
SELECT 96 * col1 / col1 + - col2 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE - ( 67 ) > col1 * + + col1 + + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 / col1 col1 FROM tab2 WHERE NOT ( NULL NOT BETWEEN col0 AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( + 2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT + MAX( ALL col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + MAX ( ALL col2 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE - + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - - col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + - col2 * - 79 + - - col1 * + col0 * col1 + 57 * + + col2 FROM tab0 AS cor0
----
104807
13561
39727

query I rowsort
SELECT - ( - - col0 ) * + - col0 * col1 + + - col1 - + col1 * - col0 FROM tab2 AS cor0
----
110211
320243
381833

query I rowsort
SELECT ALL - - 14 - + 41 FROM tab1 cor0
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT + MAX( - col2 ) * - 96 * + + 48 FROM tab2 AS cor0
----
105984

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + MAX ( - col2 ) * - 96 * + + 48 FROM tab2 AS cor0
----
105984

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 47 ) IN ( - col1 * + col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8867
SELECT ALL - col1 AS col0, CAST( NULL AS DECIMAL ) + + + ( 60 ) col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8867
SELECT ALL - col1 AS col0, CAST ( NULL AS REAL ) + + + ( 60 ) col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, - 26 col2 FROM tab2 AS cor0
----
46
-26
64
-26
75
-26

query I rowsort
SELECT + + 5 AS col2 FROM tab0 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8870
SELECT - + 39 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-39
3

skipif mysql # not compatible
query II rowsort label-8870
SELECT - + 39 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-39
3

query I rowsort
SELECT DISTINCT col1 + - 24 + 45 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
102
22
42

query I rowsort
SELECT ALL - - ( + + col0 ) + + col0 * - + col2 AS col1 FROM tab0 AS cor0 WHERE + 60 NOT BETWEEN - col0 AND + col2 + + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 80 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT + MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 80 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----

query I rowsort
SELECT ALL ( - - 83 ) * col1 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL SUM( + 3 ) * - 43 AS col0 FROM tab2
----
-387

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL SUM ( + 3 ) * - 43 AS col0 FROM tab2
----
-387

query I rowsort
SELECT - ( - - col2 ) * + - 80 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT - ( - 97 ) * - ( + 94 ) AS col2 FROM tab2
----
-9118
-9118
-9118

query I rowsort
SELECT + 68 * - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4012
-4624
-6528

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + + col0 - 52 <= - col1
----
10
47
99

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - - col1 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT DISTINCT col0 DIV + + 85 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT col0 / + + 85 AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8884
SELECT ALL - 1 AS col2, - 78 DIV + 99 + + + 44 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 91c601c8562d13cc8995c59baf3c8276

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL - 1 AS col2, - 78 / + 99 + + + 44 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 91c601c8562d13cc8995c59baf3c8276

query I rowsort
SELECT ALL - col0 / - col2 AS col0 FROM tab0 AS cor0 WHERE - 30 = + 85 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT - - MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8886
SELECT - - MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + col2 + col2 + - 14 + + col1 FROM tab2 AS cor0
----
143
169
83

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) <= + + col1
----

query II rowsort
SELECT ALL + - 57 AS col2, col2 + + col2 AS col2 FROM tab0 cor0
----
-57
198
-57
20
-57
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE - 22 / - col0 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - 22 / - col0 + - col1 IS NULL
----
0

query I rowsort
SELECT ALL col1 + - col2 - - col1 FROM tab0
----
-97
115
32

query I rowsort
SELECT ALL - col0 + - - 71 FROM tab0
----
-16
-26
56

query I rowsort
SELECT - ( + 18 ) FROM tab2
----
-18
-18
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT - ( - col2 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT - ( - col2 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NULL = + col1 * + col2 + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8897
SELECT * FROM tab2 AS cor0 WHERE - CAST( - col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8897
SELECT * FROM tab2 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + + COUNT( * ) - 61 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8898
SELECT + + COUNT ( * ) - 61 FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + MIN( DISTINCT - col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8899
SELECT + MIN ( DISTINCT - col2 ) col0 FROM tab0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8900
SELECT DISTINCT col2 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT col2 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 3 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 col0 FROM tab1 cor0
----
63

query I rowsort
SELECT DISTINCT + ( - 98 ) AS col0 FROM tab1 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT COUNT( * ) * + 77 + ( - 19 ) FROM tab0 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-8904
SELECT COUNT ( * ) * + 77 + ( - 19 ) FROM tab0 AS cor0
----
212

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 67 = ( + 32 ) - + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8906
SELECT ALL + col0, 24 / CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8906
SELECT ALL + col0, 24 / CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL + + col2 * + 79 + col0 + + + 54 AS col1 FROM tab2 AS cor0
----
1917
3278
4711

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT DISTINCT - 83 * - - col0 - - - col1 DIV col2 AS col1 FROM tab2 AS cor0
----
-3820
-5313
-6226

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - 83 * - - col0 - - - col1 / col2 AS col1 FROM tab2 AS cor0
----
-3820
-5313
-6226

query I rowsort
SELECT - col2 * + 47 AS col1 FROM tab0 AS cor0
----
-2209
-4653
-470

query I rowsort
SELECT + - 54 * - 28 AS col0 FROM tab1 AS cor0
----
1512
1512
1512

query II rowsort
SELECT + col2 AS col1, col0 + + col1 AS col2 FROM tab1
----
59
90
68
138
96
65

query I rowsort
SELECT - 33 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 87 + - 74 col2 FROM tab2 WHERE ( NOT col0 + - 21 + + col0 + + 55 IS NULL )
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT COUNT( * ) * COUNT( - + col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT COUNT ( * ) * COUNT ( - + col1 ) FROM tab2
----
9

query I rowsort
SELECT ALL + ( - 92 ) FROM tab0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT ALL - col2 DIV - + 8 FROM tab1 AS cor0
----
12
7
8

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - col2 / - + 8 FROM tab1 AS cor0
----
12
7
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT - + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8918
SELECT - + col0 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 * - col2 * - + col1 + col0 AND + 5
----

query II rowsort
SELECT ALL 64 + + 40, + col0 FROM tab1 AS cor0
----
104
51
104
85
104
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT ALL - 79 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - 79 / + col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * + 72 AS col2 FROM tab0 AS cor0
----
1080
6264
6984

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL + - 52 + + 51, 15 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1
12

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL + - 52 + + 51, 15 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1
12

onlyif mysql # DIV for integer division: 
query II rowsort label-8924
SELECT col2 DIV col2 + + 92 AS col2, 80 FROM tab2 cor0
----
93
80
93
80
93
80

skipif mysql # not compatible
query II rowsort label-8924
SELECT col2 / col2 + + 92 AS col2, 80 FROM tab2 cor0
----
93
80
93
80
93
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT ALL + - col1 + - 40 * - ( + col0 ) FROM tab2 AS cor0
----
1789
2483
2933

query I rowsort
SELECT 98 * col2 - + col0 FROM tab0
----
4591
893
9605

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL + MAX( col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + MAX ( col0 ) FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 84 col2 FROM tab0
----
131
183
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT - col0 + - CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-8930
SELECT - col0 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + ( col2 ) col0, + col1 * + col2 + + + col0 AS col0 FROM tab2
----
0
1219
0
3144
0
3961

query II rowsort
SELECT + 86 + + + col0 + + 93 + + + col0 AS col0, - col0 AS col2 FROM tab0 cor0
----
209
-15
353
-87
373
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + SUM( - - ( - col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8934
SELECT + SUM ( - - ( - col2 ) ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT 65 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8936
SELECT 65 / + col2 FROM tab0
----
0
1
6

query I rowsort
SELECT + col1 * + col2 - - - col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT - ( + 66 ) AS col2 FROM tab0 AS cor0
----
-66
-66
-66

query II rowsort
SELECT + 34 AS col0, col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 / 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 76 - - + col2 NOT BETWEEN NULL AND ( col1 / + + col2 )
----

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL + COUNT( - - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + COUNT ( - - col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - ( - - 14 ) FROM tab1
----
-14
-14
-14

query I rowsort
SELECT ALL ( - ( + 40 ) ) + - col1 + - col2 AS col2 FROM tab2
----
-114
-157
-165

query II rowsort
SELECT + col0 + ( - col1 ) AS col2, - col0 FROM tab2
----
-13
-64
-5
-46
8
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 58 col0 FROM tab1
----
-11
-44
-53

query I rowsort
SELECT DISTINCT + col1 + - + col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + col0 * - - 12 AS col0 FROM tab0
----
1044
1164
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8949
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 IN ( + + ( + + col2 ), col0 + ( + CAST( NULL AS SIGNED ) ) * + + col0 - + 72 * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-8949
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 IN ( + + ( + + col2 ), col0 + ( + CAST ( NULL AS INTEGER ) ) * + + col0 - + 72 * - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8950
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - CAST( - col2 AS DECIMAL ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-8950
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - CAST ( - col2 AS REAL ) > NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT DISTINCT 77 AS col0, - COUNT( * ) AS col2 FROM tab0
----
77
-3

skipif mysql # not compatible
query II rowsort label-8951
SELECT DISTINCT 77 AS col0, - COUNT ( * ) AS col2 FROM tab0
----
77
-3

query II rowsort
SELECT 50 + + col1, col2 AS col2 FROM tab2
----
101
23
117
58
127
40

query I rowsort
SELECT ALL - col1 + 58 AS col2 FROM tab1 cor0
----
11
44
53

query I rowsort
SELECT ALL col2 * - + col0 - col0 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT DISTINCT + MIN( + 42 ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + MIN ( + 42 ) AS col1 FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 * col2 col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + - col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT + - col0 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT + - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - + 32 AS col1 FROM tab2
----
1280
1856
736

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IN ( + col1, col2 * + 42 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + 99 * COUNT( * ) AS col0 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-8961
SELECT + 99 * COUNT ( * ) AS col0 FROM tab2
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT + COUNT( * ) DIV 70 - + COUNT( - col1 ) FROM tab2 WHERE NOT + 71 * - + CAST( col0 AS SIGNED ) * + col1 BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + COUNT ( * ) / 70 - + COUNT ( - col1 ) FROM tab2 WHERE NOT + 71 * - + CAST ( col0 AS INTEGER ) * + col1 BETWEEN NULL AND + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL < 22
----

query I rowsort
SELECT - - 52 * + - col0 AS col1 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + + SUM( 4 ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + + SUM ( 4 ) AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT - 46 - - + 92 FROM tab0 AS cor0 WHERE NOT ( - - col1 < NULL )
----

query II rowsort
SELECT - - 51, col2 * - - col2 AS col2 FROM tab0 AS cor0
----
51
100
51
2209
51
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT - + 29 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT - + 29 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 col2 FROM tab2 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + 91 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT + 91 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > 24 / col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 27 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8976
SELECT * FROM tab0 WHERE NOT + col0 + + + 11 >= + col0 - + col1 + - col2 + - + CAST( NULL AS SIGNED ) * + + col1 + - 72
----

skipif mysql # not compatible
query III rowsort label-8976
SELECT * FROM tab0 WHERE NOT + col0 + + + 11 >= + col0 - + col1 + - col2 + - + CAST ( NULL AS INTEGER ) * + + col1 + - 72
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 - - 1 >= NULL
----

query I rowsort
SELECT ALL 6 AS col2 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT + 56 + col2 FROM tab1 AS cor0
----
115
124
152

query I rowsort
SELECT + 79 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL col2 * - + col2 + col2 + + col1 + + + col1 FROM tab0 AS cor0 WHERE + col2 * + col1 * - - col2 * + + col1 IS NOT NULL
----
-2000
-48
-9700

query I rowsort
SELECT + col1 * - - 88 - - col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + - 76 ) AS col2 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - + COUNT( ALL + col2 ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8984
SELECT - + COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT + col1 - + col0 * col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT DISTINCT + - col1 + + 34 + + + ( - - ( - col0 ) ) DIV + - col1 AS col0 FROM tab2 AS cor0
----
-17
-32
-43

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + - col1 + + 34 + + + ( - - ( - col0 ) ) / + - col1 AS col0 FROM tab2 AS cor0
----
-17
-32
-43

query I rowsort
SELECT ALL - 27 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL + + MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + + MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT + + col0 * - - 37 - + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-1728
-2850
-414

query I rowsort
SELECT + 94 - + ( - - col1 ) - 93 AS col2 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + 81 + - 31 * COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8991
SELECT + 81 + - 31 * COUNT ( * ) FROM tab2
----
-12

query I rowsort
SELECT DISTINCT + col2 * - 79 * - - 53 AS col2 FROM tab1
----
-247033
-284716
-401952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT DISTINCT - col1 col0 FROM tab2 WHERE NOT + + 79 BETWEEN ( + col2 ) + - + col0 * - CAST( NULL AS SIGNED ) + + + col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8993
SELECT DISTINCT - col1 col0 FROM tab2 WHERE NOT + + 79 BETWEEN ( + col2 ) + - + col0 * - CAST ( NULL AS INTEGER ) + + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 24 FROM tab2
----
1392
552
960

query I rowsort
SELECT ALL - ( AVG ( + - 73 ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col1 * - ( - 61 ) AS col0 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT DISTINCT col2 * 17 FROM tab2
----
391
680
986

query I rowsort
SELECT 60 * col1 * - 61 FROM tab2
----
-186660
-245220
-281820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 29 * + 86 col2 FROM tab0
----
-216978
-241918
-37410

query I rowsort
SELECT DISTINCT col0 * + - 42 * + col1 AS col1 FROM tab1 AS cor0
----
-17850
-179634
-29988

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT DISTINCT - 65 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT - + COUNT( - + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT - + COUNT ( - + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 24 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 24 IS NOT NULL
----
0

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + 78 <= NULL
----

query II rowsort
SELECT - col1 + + - col2 AS col1, col2 * 14 FROM tab2 AS cor0
----
-117
560
-125
812
-74
322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 AS col2, col0 col2 FROM tab1
----
26
51
26
85
26
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + MIN( - + col1 ) + + MIN( + col1 ) FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-9009
SELECT + MIN ( - + col1 ) + + MIN ( + col1 ) FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - COUNT( + - 40 ) + COUNT( * ) * - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9010
SELECT - COUNT ( + - 40 ) + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT col1 + - col1 * col1 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT ALL + ( - - 13 ) FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT - COUNT( - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - COUNT ( - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9016
SELECT COUNT( * ) DIV + MIN( DISTINCT 38 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9016
SELECT COUNT ( * ) / + MIN ( DISTINCT 38 ) col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * + col1 + col0 BETWEEN col2 AND - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT + 79 * MAX( ALL + 46 ) FROM tab2
----
3634

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 79 * MAX ( ALL + 46 ) FROM tab2
----
3634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 63 - + col0 FROM tab2
----
-1
-12
17

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE - col2 + + 96 * + col2 IS NULL
----

query I rowsort
SELECT - 52 - col1 AS col0 FROM tab1
----
-57
-66
-99

query I rowsort
SELECT + col2 * + 64 AS col0 FROM tab2
----
1472
2560
3712

query I rowsort
SELECT ALL col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT - col1 DIV - col2 FROM tab2 WHERE 67 * + 46 NOT BETWEEN + 23 DIV 92 - + 38 AND 14
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9025
SELECT - col1 / - col2 FROM tab2 WHERE 67 * + 46 NOT BETWEEN + 23 / 92 - + 38 AND 14
----
1
1
2

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 69 + - col2 BETWEEN NULL AND 86
----

query I rowsort
SELECT ALL + 58 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND 45
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > 28 * 5 - col1
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT COUNT( ALL + ( + 49 ) ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( ALL + ( + 49 ) ) * COUNT ( * ) AS col1 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT ALL - 1 DIV 27 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 1 / 27 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( + ( + col2 ) ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN ( col0 * col0 ) AND + 34 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN + 43 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT col2 * 68 + - CAST( CAST( NULL AS SIGNED ) + - col0 * + col0 AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT col2 * 68 + - CAST ( CAST ( NULL AS INTEGER ) + - col0 * + col0 AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * col1 + - col1 FROM tab0
----
-2
-462
-6642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - SUM( ALL col0 + - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - SUM ( ALL col0 + - col1 ) FROM tab2
----
NULL

query I rowsort
SELECT 71 + - col0 FROM tab1
----
-14
-20
20

query I rowsort
SELECT ALL - 78 + + col2 FROM tab0
----
-31
-68
21

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE ( 80 ) * col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT DISTINCT COUNT( - col1 ) DIV 36 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT COUNT ( - col1 ) / 36 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9042
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT ALL + 23 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + 23 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col2 - col0
----

query I rowsort
SELECT ALL AVG ( col0 ) / - 96 FROM tab0 AS cor0 WHERE NULL <= + col0
----
NULL

query I rowsort
SELECT ( ( 58 ) ) FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT - CAST( NULL AS SIGNED ) * 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9048
SELECT - CAST ( NULL AS INTEGER ) * 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col0 * - 90 AS col1 FROM tab2 AS cor0
----
-4140
-5760
-6750

query I rowsort
SELECT + 65 * col0 AS col2 FROM tab0 AS cor0
----
5655
6305
975

query I rowsort
SELECT DISTINCT - + 32 + 87 * - col1 AS col0 FROM tab0 AS cor0
----
-119
-1859
-7079

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 39 ) AS col2 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT + + 89 * col0 AS col2 FROM tab2 AS cor0
----
4094
5696
6675

query I rowsort
SELECT DISTINCT 45 * col0 AS col2 FROM tab2 AS cor0
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT + COUNT( * ) * 33 AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9056
SELECT + COUNT ( * ) * 33 AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT + 83 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9057
SELECT + 83 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 AS cor0 WHERE ( col1 ) >= col1
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + MIN( 91 ) AS col2 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9059
SELECT + MIN ( 91 ) AS col2 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - 50 + + + 32 FROM tab2
----
-18
-18
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT 79 DIV + - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-9061
SELECT 79 / + - COUNT ( * ) FROM tab2
----
-26

query I rowsort
SELECT + 9 FROM tab0 WHERE col2 - + col1 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE 28 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE 28 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT COUNT( * ) + - - 7 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT COUNT ( * ) + - - 7 FROM tab2
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( - 14 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT + CAST( NULL AS SIGNED ) + - + 99 / SUM( - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT + CAST ( NULL AS INTEGER ) + - + 99 / SUM ( - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + 20 AS col0 FROM tab2 AS cor0
----
-31
-47
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9069
SELECT DISTINCT - + col0 DIV + - CAST( 84 AS SIGNED ) - 31 AS col1 FROM tab1 AS cor0
----
-30
-31

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - + col0 / + - CAST ( 84 AS INTEGER ) - 31 AS col1 FROM tab1 AS cor0
----
-30
-31

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) * - col0 + + col1 AS col1 FROM tab1 WHERE NOT NULL <> + 49 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT + 92 DIV 9 + - + col2 * + ( 5 ) - col2 FROM tab2 AS cor0
----
-128
-230
-338

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 92 / 9 + - + col2 * + ( 5 ) - col2 FROM tab2 AS cor0
----
-128
-230
-338

query II rowsort
SELECT ALL - 24 AS col0, - 77 FROM tab1 AS cor0
----
-24
-77
-24
-77
-24
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 95 <= - 83 + 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + 93 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
93

skipif mysql # not compatible
query I rowsort label-9076
SELECT + 93 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 AS col2, col2 col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT + col1 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 16 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9078
SELECT + col1 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 16 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 * - 72 * col2 ) NOT BETWEEN ( - ( + col1 ) ) AND NULL
----

query I rowsort
SELECT + 72 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
72
72
72

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + MIN( + 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-9084
SELECT + MIN ( + 80 ) FROM tab1
----
80

query I rowsort
SELECT 9 * - col1 FROM tab0
----
-189
-729
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * - col1 col1 FROM tab0
----
-1869
-7209
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + + col1 col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT ( - 58 ) AS col1 FROM tab1 AS cor0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9089
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) IN ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) IN ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9090
SELECT + col0 DIV - - 37 col2, - col1 * + col1 FROM tab0 cor0
----
0
-6561
2
-1
2
-441

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9090
SELECT + col0 / - - 37 col2, - col1 * + col1 FROM tab0 cor0
----
0
-6561
2
-1
2
-441

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 * + 47 * + col2 * + + ( + + col0 ) AS col0 FROM tab2
----
15333750
2287396
7700480

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9093
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - 64 * - - 66 + - 24 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4248

query I rowsort
SELECT ( - + col2 ) * + - 71 AS col2 FROM tab2 AS cor0
----
1633
2840
4118

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT - + 57 * MIN( - - CAST( NULL AS SIGNED ) ) + + 0 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT - + 57 * MIN ( - - CAST ( NULL AS INTEGER ) ) + + 0 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 WHERE + 47 BETWEEN col1 AND NULL AND + col1 / col1 NOT BETWEEN - col1 * - col2 AND ( col2 / 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 WHERE + 47 BETWEEN col1 AND NULL AND + col1 / col1 NOT BETWEEN - col1 * - col2 AND ( col2 / 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT MAX( - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT MAX ( - + col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + 41 * col0 + + col0 FROM tab1
----
2142
3570
3822

query III rowsort
SELECT * FROM tab1 WHERE 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - + 72 AS col0 FROM tab0
----
-25
-62
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT - 40 DIV - 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT - 40 / - 81 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT + 1, MIN( col0 ) AS col2 FROM tab0
----
1
15

skipif mysql # not compatible
query II rowsort label-9105
SELECT + 1, MIN ( col0 ) AS col2 FROM tab0
----
1
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT - + col0 * col0 + - col0 + col1 + + 58 DIV col0 AS col2 FROM tab2 AS cor0
----
-2110
-4083
-5633

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - + col0 * col0 + - col0 + col1 + + 58 / col0 AS col2 FROM tab2 AS cor0
----
-2110
-4083
-5633

query I rowsort
SELECT DISTINCT + 39 - col2 - - 69 FROM tab0 cor0
----
61
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9108
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT + MAX( - 89 ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT + MAX ( - 89 ) FROM tab0 AS cor0
----
-89

query I rowsort
SELECT DISTINCT + 5 / col2 + 77 * - col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN ( + - 82 * col2 + - col0 + col2 * + col2 - col0 ) AND col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + 79 AS col1 FROM tab1 AS cor0
----
-1106
-3713
-395

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT DISTINCT + 25 DIV + - 77 * + - 81 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT + 25 / + - 77 * + - 81 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT - + MIN( ALL + + 5 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - + MIN ( ALL + + 5 ) FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 14 AS col1, col1 AS col2 FROM tab2
----
14
51
14
67
14
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - - ( - ( - - col2 ) ) + + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT - MAX( + ( col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT - MAX ( + ( col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

query II rowsort
SELECT - col2 AS col2, + col1 - - 38 * + col2 AS col2 FROM tab0 AS cor0
----
-10
401
-47
1867
-99
3763

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9121
SELECT SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT col1 FROM tab0 WHERE - CAST( + col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT col1 FROM tab0 WHERE - CAST ( + col2 AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT COUNT( DISTINCT + + 66 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9124
SELECT COUNT ( DISTINCT + + 66 ) col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL SUM( + col2 ) col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9125
SELECT ALL SUM ( + col2 ) col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2 cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, col2 + - col0 col2 FROM tab2
----
51
-23
67
-17
77
-24

query I rowsort
SELECT - col1 - + col1 + + col2 * - col2 + + col1 FROM tab1
----
-3486
-4671
-9230

query I rowsort
SELECT DISTINCT + 28 + + 32 AS col0 FROM tab2
----
60

query I rowsort
SELECT + + 30 + + - 67 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT - 86 * + col1 + - 54 * + + CAST( 32 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-2073
-2881
-5679

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 86 * + col1 + - 54 * + + CAST ( 32 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-2073
-2881
-5679

query I rowsort
SELECT DISTINCT + - 55 - col1 AS col0 FROM tab0 AS cor0
----
-136
-56
-76

query II rowsort
SELECT + col0 * - col0 AS col2, - ( + col2 ) FROM tab0
----
-225
-47
-7569
-10
-9409
-99

query II rowsort
SELECT + - 49, + 25 AS col1 FROM tab1 AS cor0
----
-49
25
-49
25
-49
25

query I rowsort
SELECT ALL + ( - - 89 ) FROM tab2 AS cor0
----
89
89
89

query II rowsort
SELECT ALL + col0 AS col1, 66 AS col2 FROM tab2 cor0
----
46
66
64
66
75
66

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2, + 55 AS col0 FROM tab2 cor0
----
23
55
40
55
58
55

query II rowsort
SELECT - ( + + col0 ) AS col2, col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NULL < - col2
----

query I rowsort
SELECT - col0 * - + 39 AS col2 FROM tab0
----
3393
3783
585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT COUNT( * ) + + + 30 DIV + - 2 FROM tab0, tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9142
SELECT COUNT ( * ) + + + 30 / + - 2 FROM tab0, tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - + col0 + 66 / col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT ALL - ( COUNT( * ) ) AS col0, - COUNT( * ) * - COUNT( * ) * + - COUNT( * ) FROM tab1 cor0
----
-3
-27

skipif mysql # not compatible
query II rowsort label-9144
SELECT ALL - ( COUNT ( * ) ) AS col0, - COUNT ( * ) * - COUNT ( * ) * + - COUNT ( * ) FROM tab1 cor0
----
-3
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE - 33 <> ( 8 )
----
10
47
99

query I rowsort
SELECT ALL + 99 + + - col0 * col0 FROM tab0
----
-126
-7470
-9310

query III rowsort
SELECT * FROM tab1 WHERE 87 BETWEEN - ( - 6 ) * + col1 * + + col1 AND - col2 + + - col0 - - + col2 + - col2
----

query I rowsort
SELECT 8 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 84 * - + col0 + + col1 BETWEEN NULL AND ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT ALL + 98 DIV - 20 + + col1 FROM tab0 AS cor0
----
-3
17
77

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + 98 / - 20 + + col1 FROM tab0 AS cor0
----
-3
17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL - + COUNT( * ) FROM tab1 cor0 WHERE - col1 * + + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - + COUNT ( * ) FROM tab1 cor0 WHERE - col1 * + + col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9152
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9152
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - - ( - - ( + - col1 ) ) + + 57 * + col0 - + col1 * - col1 FROM tab0 AS cor0
----
5379
5529
7335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT - CAST( + + MAX( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT - CAST ( + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT + ( col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 54 FROM tab1
----
-2538
-270
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col2 * col2 + 25 AS col0 FROM tab1
----
-295860
-420759
-469991

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col2 * col2 + 25 AS col0 FROM tab1
----
-295860
-420759
-469991

onlyif mysql # DIV for integer division: 
query II rowsort label-9159
SELECT ALL + col1 + + + col0 AS col2, 96 + 24 DIV + + col1 FROM tab0
----
108
97
96
96
98
120

skipif mysql # not compatible
query II rowsort label-9159
SELECT ALL + col1 + + + col0 AS col2, 96 + 24 / + + col1 FROM tab0
----
108
97
96
96
98
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9160
SELECT - 80 DIV MAX( + - CAST( + + col1 AS SIGNED ) ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-9160
SELECT - 80 / MAX ( + - CAST ( + + col1 AS INTEGER ) ) FROM tab1
----
16

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) > NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT DISTINCT + - COUNT( * ) * + - ( COUNT( * ) ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + - COUNT ( * ) * + - ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 62 * + col1 * col0 + - + col0 FROM tab1 cor0
----
26265
265083
44217

query I rowsort
SELECT DISTINCT 20 * - col0 AS col0 FROM tab0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT COUNT( + + 65 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9166
SELECT COUNT ( + + 65 ) FROM tab0
----
3

query I rowsort
SELECT ALL + 3 AS col0 FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + COUNT( * ) - + 84 AS col2 FROM tab2 AS cor0 WHERE NOT - 69 IN ( + col2, - 52 * + 69 + - 74, + + 67 )
----
-81

skipif mysql # not compatible
query I rowsort label-9168
SELECT + COUNT ( * ) - + 84 AS col2 FROM tab2 AS cor0 WHERE NOT - 69 IN ( + col2, - 52 * + 69 + - 74, + + 67 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - 84 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-9169
SELECT - 84 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT - + CAST( NULL AS SIGNED ) / - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT - + CAST ( NULL AS INTEGER ) / - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col2, col0 + + + col2 FROM tab2 AS cor0
----
46
69
64
104
75
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT 64 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT 64 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col0 col2 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 71 ) FROM tab1
----
-71

query II rowsort
SELECT col1 AS col1, + ( - col1 ) * + col0 * - - col2 + col0 AS col1 FROM tab1
----
14
-68493
47
-290745
5
-24990

query III rowsort
SELECT * FROM tab0 WHERE NOT 85 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL 38 + - MAX( DISTINCT + - 37 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL 38 + - MAX ( DISTINCT + - 37 ) FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT + - COUNT( * ) + + MIN( DISTINCT + + col2 ) FROM tab0 AS cor0 WHERE NOT 30 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT + - COUNT ( * ) + + MIN ( DISTINCT + + col2 ) FROM tab0 AS cor0 WHERE NOT 30 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 24 + + - 95 + - + col0 col1 FROM tab1 AS cor0
----
-170
-204
-210

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - + 32 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + MIN( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + MIN ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 86 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL MIN( ALL - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL MIN ( ALL - col1 ) AS col0 FROM tab2
----
-77

query II rowsort
SELECT ALL - 62 + - + 85 AS col1, + 89 + + + col2 * col2 AS col0 FROM tab0
----
-147
189
-147
2298
-147
9890

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9189
SELECT ALL COUNT( * ) - 38 * + 66 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL COUNT ( * ) - 38 * + 66 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 66 ) * + col1 * col0 + + - 24 - - col1 AS col2 FROM tab1 AS cor0
----
28031
282305
47114

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( NOT ( col1 ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT 63 + - + 63 * - 84 * - COUNT( * ) AS col1 FROM tab1
----
-15813

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT 63 + - + 63 * - 84 * - COUNT ( * ) AS col1 FROM tab1
----
-15813

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / - + 40 + + col0 * - col2 + - - 39 IN ( - 26, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, + 94 + - + col1 AS col2 FROM tab1 AS cor0
----
-59
89
-68
47
-96
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 21 * + col1 AS col2 FROM tab1 AS cor0
----
105
294
987

query II rowsort
SELECT DISTINCT + - 7, + col2 AS col2 FROM tab0 AS cor0
----
-7
10
-7
47
-7
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + + col1 ) * - col0 / + + 61 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 15 * + col2 AS col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL COUNT( DISTINCT 19 ) * 89 AS col0 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL COUNT ( DISTINCT 19 ) * 89 AS col0 FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-9204
SELECT - SUM( - 17 ) AS col1, - MAX( - col0 ) AS col2 FROM tab1
----
51
51

skipif mysql # not compatible
query II rowsort label-9204
SELECT - SUM ( - 17 ) AS col1, - MAX ( - col0 ) AS col2 FROM tab1
----
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col0 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + COUNT( * ) * 57 AS col2 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9206
SELECT + COUNT ( * ) * 57 AS col2 FROM tab1 AS cor0
----
171

query I rowsort
SELECT - ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + - col0 ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9208
SELECT 54 col1, CAST( - 57 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
-57
54
-57
54
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9208
SELECT 54 col1, CAST ( - 57 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
-57
54
-57
54
-57

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + SUM( - 90 ) FROM tab1 WHERE NOT + 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT + SUM ( - 90 ) FROM tab1 WHERE NOT + 4 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 + - 69 AS col2 FROM tab1
----
-22
-55
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT - COUNT( * ) + + 38 AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - COUNT ( * ) + + 38 AS col1 FROM tab1
----
35

query I rowsort
SELECT + col1 * - col0 + + 99 FROM tab0
----
-1116
-1728
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT ALL - col1 DIV - col2 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - col1 / - col2 + + col0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT DISTINCT col1 DIV - 25 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT col1 / - 25 FROM tab1
----
-1
0

query I rowsort
SELECT col0 + 55 * col2 * - + col0 FROM tab0
----
-38760
-47763
-528068

query I rowsort
SELECT DISTINCT + 17 * col0 FROM tab2
----
1088
1275
782

query II rowsort
SELECT + col0, col2 - - - 0 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT col0 * - 91 FROM tab0 AS cor0
----
-1365
-7917
-8827

query II rowsort
SELECT col1 * col1 - + col2 - - col1 AS col1, - col1 * - 74 * - col1 * 50 FROM tab2
----
2629
-9623700
4498
-16609300
5966
-21937300

query I rowsort
SELECT DISTINCT - col2 + - + 14 FROM tab1
----
-110
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT + COUNT( * ) * + + ( + MAX( ALL col2 ) ) + - + COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + COUNT ( * ) * + + ( + MAX ( ALL col2 ) ) + - + COUNT ( * ) FROM tab1
----
285

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - - 36 * - col0 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 67 FROM tab1 AS cor0 WHERE + col2 * - + 43 = - col1 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - 9 + 65 AS col2 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT + COUNT( * ) + - 48 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9227
SELECT + COUNT ( * ) + - 48 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - + 22 + + col0 - + 94 AS col0 FROM tab0 AS cor0
----
-101
-19
-29

query I rowsort
SELECT DISTINCT + col2 * + + col2 + - + col2 - col0 * + + col1 AS col2 FROM tab0 AS cor0
----
-1737
947
9605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 - - - 0 col1 FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9231
SELECT - col0 + - col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) <= 34
----

skipif mysql # not compatible
query II rowsort label-9231
SELECT - col0 + - col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) <= 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL - + MAX( col2 ) FROM tab2 AS cor0 WHERE ( NULL = + - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - + MAX ( col2 ) FROM tab2 AS cor0 WHERE ( NULL = + - 85 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 + - 42 AND + col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL + MIN( - - 52 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + MIN ( - - 52 ) FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + SUM( + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9236
SELECT + SUM ( + col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + MIN( DISTINCT - + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9237
SELECT + MIN ( DISTINCT - + col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + COUNT( * ) + 70 AS col0 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + COUNT ( * ) + 70 AS col0 FROM tab2 AS cor0
----
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT DISTINCT CAST( + ( - col0 ) AS SIGNED ) * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT CAST ( + ( - col0 ) AS INTEGER ) * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col1 * ( - - col0 ) + + col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9242
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT DISTINCT - 96 * - - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT - 96 * - - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( - + ( + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + - 26 AS col1 FROM tab1 cor0
----
-26
-26
-26

query I rowsort
SELECT col2 * col0 * - - col2 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT - - COUNT( * ) * - ( - + MIN( ALL - - 10 ) ) FROM tab2 WHERE + + ( col1 ) + col0 BETWEEN - ( col2 ) - + + 96 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - - COUNT ( * ) * - ( - + MIN ( ALL - - 10 ) ) FROM tab2 WHERE + + ( col1 ) + col0 BETWEEN - ( col2 ) - + + 96 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 + - 5 col1 FROM tab0 AS cor0
----
-96
-96
-96

query II rowsort
SELECT col0 + col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
128
40
150
58
92
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + col1 * col1 + - col0 col0 FROM tab1 AS cor0
----
-5343
-59734
-760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - - 16 - MAX( DISTINCT + + 70 ) AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9254
SELECT - - 16 - MAX ( DISTINCT + + 70 ) AS col2 FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT ( + col0 ) - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT ( + col0 ) - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - 96 + col1 AS col0 FROM tab2 AS cor0
----
170
213
221

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL 8 + COUNT( * ) AS col0 FROM tab0 cor0
----
11

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 8 + COUNT ( * ) AS col0 FROM tab0 cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2, col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - MAX( - - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9261
SELECT - MAX ( - - col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + COUNT( * ) * + 88 col1 FROM tab0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9262
SELECT + COUNT ( * ) * + 88 col1 FROM tab0
----
264

query I rowsort
SELECT ALL - 88 * - + 23 * col1 FROM tab0
----
163944
2024
42504

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL + MIN( - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL + MIN ( - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT col2 AS col1, 97 FROM tab2 AS cor0
----
23
97
40
97
58
97

query I rowsort
SELECT DISTINCT 17 + - 50 + - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT + SUM( + 58 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-9268
SELECT + SUM ( + 58 ) FROM tab2
----
174

query I rowsort
SELECT - 57 * + col1 FROM tab2
----
-2907
-3819
-4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab0
----
2
2
2

query II rowsort
SELECT DISTINCT + col2 * - 94, 19 AS col0 FROM tab2 AS cor0
----
-2162
19
-3760
19
-5452
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT DISTINCT COUNT( col1 ) AS col2, 18 FROM tab0 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-9275
SELECT DISTINCT COUNT ( col1 ) AS col2, 18 FROM tab0 AS cor0
----
3
18

query I rowsort
SELECT DISTINCT + col2 + - col2 + 30 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
30

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT + 23 + - col0 + - - col1 AS col2 FROM tab2
----
15
28
36

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - + 50
----

query I rowsort
SELECT DISTINCT col1 * + - col1 * col1 + + + ( + col2 ) FROM tab1
----
-103755
-2648
-66

query I rowsort
SELECT - ( - col2 ) * - col2 * + col0 + + col0 * - col1 * + - col0 FROM tab0
----
-14910
-941288
150249

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT SUM( - ( + - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9282
SELECT SUM ( - ( + - col0 ) ) FROM tab1
----
227

query I rowsort
SELECT ALL + 2 * + - 52 + - - col1 + + ( - - ( + col0 ) ) FROM tab0
----
-6
-8
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT ALL + col2 AS col0 FROM tab1 WHERE - col0 - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + col2 AS col0 FROM tab1 WHERE - col0 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT SUM( ALL col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9285
SELECT SUM ( ALL col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - ( 94 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 + 14 IS NULL
----
-94

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE 41 * col1 >= NULL
----

query I rowsort
SELECT + col0 - 27 FROM tab2
----
19
37
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT + + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT 12 * + col1 + - - col0 AS col1 FROM tab2
----
658
879
988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT - - col1 ) / - AVG ( DISTINCT + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT - - col1 ) / - AVG ( DISTINCT + - col0 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT DISTINCT - - col0 DIV + 10 FROM tab1 AS cor0
----
5
8
9

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - - col0 / + 10 FROM tab1 AS cor0
----
5
8
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 96
----

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL 79 * - col1 FROM tab1
----
-1106
-3713
-395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 38 col1 FROM tab0
----
-3078
-38
-798

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( ( NOT NULL < NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT col0 + - + CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT - - 97 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9298
SELECT col0 + - + CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT - - 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9299
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <= + 81 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + - 89 AS col1 FROM tab1 cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + 95 + + col2 AS col2 FROM tab1 AS cor0
----
154
163
191

query I rowsort
SELECT DISTINCT + col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-658
-860
-9504

query II rowsort
SELECT DISTINCT + col2, + 60 * 19 FROM tab2 AS cor0
----
23
1140
40
1140
58
1140

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE - col0 / - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + - COUNT( * ) * 26 AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9307
SELECT + - COUNT ( * ) * 26 AS col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + - col1 * + 2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + COUNT( * ) * + 29 AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9309
SELECT + COUNT ( * ) * + 29 AS col0 FROM tab0
----
87

query I rowsort
SELECT + col1 * - 82 + + 37 FROM tab0 WHERE + col1 IS NOT NULL
----
-1685
-45
-6605

query I rowsort
SELECT - col2 * + col2 + + 99 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1
-2110
-9702

query I rowsort
SELECT 47 + + col1 + + 95 FROM tab0 AS cor0
----
143
163
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT + + col1 * ( 20 ) / + CAST( NULL AS SIGNED ) + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT + + col1 * ( 20 ) / + CAST ( NULL AS INTEGER ) + col1 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT DISTINCT + 67 * - 41 * CAST( NULL AS SIGNED ) - 33 + col2 + + col1 / 34 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + 67 * - 41 * CAST ( NULL AS INTEGER ) - 33 + col2 + + col1 / 34 FROM tab0 cor0
----
NULL

query I rowsort
SELECT 62 + 98 + + + 9 * 38 AS col0 FROM tab0 cor0
----
502
502
502

query I rowsort
SELECT DISTINCT + ( + 63 ) - col2 - - 30 + + col0 - - 91 + + 57 FROM tab0 AS cor0
----
209
239
318

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + - 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9318
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT col0 * - - col2 * + + CAST( - 54 AS SIGNED ) * + col0 FROM tab2
----
-17617500
-2628072
-8847360

skipif mysql # not compatible
query I rowsort label-9319
SELECT col0 * - - col2 * + + CAST ( - 54 AS INTEGER ) * + col0 FROM tab2
----
-17617500
-2628072
-8847360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9320
SELECT DISTINCT + col0 AS col1, CAST( col2 AS SIGNED ) FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-9320
SELECT DISTINCT + col0 AS col1, CAST ( col2 AS INTEGER ) FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT 92 * - - col1 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + COUNT( ALL - 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + COUNT ( ALL - 6 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 58, + 59 AS col0 FROM tab2 AS cor0
----
58
59

query I rowsort
SELECT ALL + ( - - 1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 * - - 61 AS col1 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9326
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * + COUNT( * ) * 86 AS col2 FROM tab0 AS cor0 WHERE 90 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT - + CAST ( NULL AS REAL ) * + COUNT ( * ) * 86 AS col2 FROM tab0 AS cor0 WHERE 90 * + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + - 74 FROM tab1
----
4366
5032
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL + 61 * MAX( DISTINCT + 12 ) AS col1 FROM tab0
----
732

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + 61 * MAX ( DISTINCT + 12 ) AS col1 FROM tab0
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT COUNT( + + 77 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9329
SELECT COUNT ( + + 77 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 6 + - + col2 col1 FROM tab1 WHERE NOT ( - 64 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9331
SELECT - MAX( DISTINCT - + col1 ) AS col1, 95 FROM tab0
----
1
95

skipif mysql # not compatible
query II rowsort label-9331
SELECT - MAX ( DISTINCT - + col1 ) AS col1, 95 FROM tab0
----
1
95

query I rowsort
SELECT ALL - - col1 * - 96 FROM tab2 WHERE NOT NULL IN ( - + col0, + col2, + col0 * col0 - - + col2, - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT + col2 DIV + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT + col2 / + + col0 FROM tab2
----
0

query I rowsort
SELECT col1 * - 92 AS col0 FROM tab0
----
-1932
-7452
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL + 79 * col0 DIV col1 col1 FROM tab1 AS cor0
----
1343
152
287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9335
SELECT ALL + 79 * col0 / col1 col1 FROM tab1 AS cor0
----
1343
152
287

query I rowsort
SELECT DISTINCT - + 5 * 92 FROM tab1 AS cor0
----
-460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 27 * - + 51 + + - col2 * col1 AS col1 FROM tab1
----
-1672
-2721
-4573

query I rowsort
SELECT ALL 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9340
SELECT * FROM tab1 WHERE NULL IN ( - ( col0 ), col1 + + 80 - - 35, - CAST( NULL AS SIGNED ) / - col0, - col2 )
----

skipif mysql # not compatible
query III rowsort label-9340
SELECT * FROM tab1 WHERE NULL IN ( - ( col0 ), col1 + + 80 - - 35, - CAST ( NULL AS INTEGER ) / - col0, - col2 )
----

query I rowsort
SELECT + col0 + + 42 FROM tab2 AS cor0
----
106
117
88

query I rowsort
SELECT DISTINCT - + col2 + + - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 73 col2 FROM tab1 cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 4 col2 FROM tab0 AS cor0
----
-103
-14
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9345
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + + 0 NOT IN ( CAST( NULL AS SIGNED ) * col2 / - + col1, 29, + col2, + 27, + col0 + - - 18 * + - col0 - + 11 )
----

skipif mysql # not compatible
query III rowsort label-9345
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + + 0 NOT IN ( CAST ( NULL AS INTEGER ) * col2 / - + col1, 29, + col2, + 27, + col0 + - - 18 * + - col0 - + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - 59 + + 53 + + col1 AS col0 FROM tab2 AS cor0
----
45
61
71

query I rowsort
SELECT ALL 63 - + - col2 FROM tab2 AS cor0
----
103
121
86

query I rowsort
SELECT + col2 + + 22 AS col0 FROM tab2
----
45
62
80

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT ( NULL > ( NULL ) )
----

query I rowsort
SELECT DISTINCT col1 * col1 * + + 36 FROM tab1
----
7056
79524
900

query I rowsort
SELECT + 16 * col2 FROM tab1
----
1088
1536
944

query II rowsort
SELECT - col0 AS col2, + 53 FROM tab0
----
-15
53
-87
53
-97
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT ( + SUM( ALL + + col1 ) ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT ( + SUM ( ALL + + col1 ) ) AS col0 FROM tab0
----
103

query I rowsort
SELECT + 82 * + col1 FROM tab1
----
1148
3854
410

query I rowsort
SELECT DISTINCT + col2 + - col2 - - + col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9357
SELECT ALL - 69 + + 98 DIV col1 * + ( + + 67 ) * + 93, col2 FROM tab0 cor0
----
24855
10
610569
99
6162
47

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL - 69 + + 98 / col1 * + ( + + 67 ) * + 93, col2 FROM tab0 cor0
----
24855
10
610569
99
6162
47

query I rowsort
SELECT ALL + 25 - + col1 AS col1 FROM tab1 AS cor0
----
-22
11
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 12 )
----

query I rowsort
SELECT ALL + - 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0 WHERE NOT - col2 * 97 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + MIN( 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9366
SELECT + MIN ( 88 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - 44 * - col1 + - col1 AND - - col2
----
3

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - 44 * - col1 + - col1 AND - - col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT ALL + - 68 * - MIN( + + 87 ) * - CAST( 23 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-136068

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + - 68 * - MIN ( + + 87 ) * - CAST ( 23 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-136068

query I rowsort
SELECT DISTINCT 26 * + + col0 FROM tab2 AS cor0
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT COUNT( * ) * 28 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT COUNT ( * ) * 28 FROM tab0
----
84

query I rowsort
SELECT ALL col1 * + 40 AS col1 FROM tab2
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT DISTINCT - MIN( DISTINCT 62 ) FROM tab1 WHERE + ( + col2 ) BETWEEN NULL AND + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT - MIN ( DISTINCT 62 ) FROM tab1 WHERE + ( + col2 ) BETWEEN NULL AND + - col2
----
NULL

query II rowsort
SELECT DISTINCT - col2, col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9374
SELECT * FROM tab0 WHERE NOT - + 82 <> - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9374
SELECT * FROM tab0 WHERE NOT - + 82 <> - CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL MIN( DISTINCT col1 ) + + 55 AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL MIN ( DISTINCT col1 ) + + 55 AS col0 FROM tab0
----
56

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * - + 52 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT - ( + - MAX( - + col0 ) ) * 30 * - 45 AS col2 FROM tab0 AS cor0
----
20250

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - ( + - MAX ( - + col0 ) ) * 30 * - 45 AS col2 FROM tab0 AS cor0
----
20250

query I rowsort
SELECT - col1 + - + ( - + 23 ) FROM tab1 AS cor0
----
-24
18
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9380
SELECT - col1 + 41 DIV + col1 AS col2, 53 AS col0 FROM tab0 AS cor0
----
-20
53
-81
53
40
53

skipif mysql # not compatible
query II rowsort label-9380
SELECT - col1 + 41 / + col1 AS col2, 53 AS col0 FROM tab0 AS cor0
----
-20
53
-81
53
40
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9381
SELECT * FROM tab2 WHERE + - col2 * - + 86 + - CAST( NULL AS SIGNED ) * + col2 + - + col2 + + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9381
SELECT * FROM tab2 WHERE + - col2 * - + 86 + - CAST ( NULL AS INTEGER ) * + col2 + - + col2 + + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT + col1 DIV - col1 + 74 AS col1 FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-9382
SELECT + col1 / - col1 + 74 AS col1 FROM tab1
----
73
73
73

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - 6 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9385
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) / + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9385
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) / + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 61 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT + SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9388
SELECT + SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL 80 * + COUNT( * ) - 13 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL 80 * + COUNT ( * ) - 13 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - MAX( ( + col1 ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT - MAX ( ( + col1 ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT - col1 - - + 72 - col1 + + col0 AS col1 FROM tab0 cor0
----
-75
117
167

query I rowsort
SELECT col0 - + + col1 + + + col2 FROM tab2
----
18
27
66

query II rowsort
SELECT DISTINCT + 30 * - col2 - - + col1, - col0 + - + 41 AS col0 FROM tab0
----
-1329
-56
-279
-128
-2969
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT ALL + col0 DIV + - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + col0 / + - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT 26 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT 26 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 46 * + - 94 + + - col1, col1 * + col0 AS col1 FROM tab1
----
-4329
425
-4338
714
-4371
4277

query I rowsort
SELECT + - ( - 6 ) * - col0 * - - col2 + + - col2 AS col0 FROM tab1 WHERE col0 - + col2 - + ( - - 86 ) = - col0
----

query I rowsort
SELECT - col2 + + 66 * - - col2 * - + col2 FROM tab2 AS cor0
----
-105640
-222082
-34937

query I rowsort
SELECT DISTINCT 73 * - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-3416
-643
-7130

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL + MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - 53 AS col2 FROM tab0 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT + MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9403
SELECT + MIN ( col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

query II rowsort
SELECT ALL + 64, - col2 * col0 AS col0 FROM tab0
----
64
-705
64
-870
64
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT DISTINCT + + col2 + + ( col2 ) + col1 / - + 5 * + + col1 * + 64 / - + col1 - + 16 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col0 + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT + + col2 + + ( col2 ) + col1 / - + 5 * + + col1 * + 64 / - + col1 - + 16 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col0 + + col0 IS NULL
----

query I rowsort
SELECT ALL + - col2 * - - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - + ( + - col0 ) * col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9409
SELECT + col1 col0, CAST( + col2 AS SIGNED ) * + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9409
SELECT + col1 col0, CAST ( + col2 AS INTEGER ) * + col2 / - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT - + col1 AS col0, col0 + - 6 AS col2 FROM tab0 AS cor0
----
-1
91
-21
81
-81
9

query I rowsort
SELECT ALL - - ( 69 ) FROM tab2 cor0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 98 IS NULL
----
51
85
91

query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 38 IS NULL
----
51
85
91

query I rowsort
SELECT col0 * col1 * + + col2 + + 44 - col2 AS col2 FROM tab2
----
197124
291436
53979

query II rowsort
SELECT col2 + - col1 AS col0, 81 AS col2 FROM tab0
----
-11
81
-34
81
98
81

query I rowsort
SELECT col0 + + col1 - - col0 FROM tab1
----
116
175
229

query I rowsort
SELECT + col2 * + 6 AS col0 FROM tab2
----
138
240
348

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT + ( - - COUNT( * ) ) * - 3 AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9419
SELECT + ( - - COUNT ( * ) ) * - 3 AS col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - col2 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 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-9421
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + - col0 * + col1 + + col2 FROM tab1 AS cor0
----
-366
-4209
-618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + - col1 + - col1 col2, - col1 + - col1 FROM tab0 AS cor0
----
-101
-2
-209
-162
-52
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9424
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 22 * + 29 FROM tab2 cor0
----
638
638
638

query I rowsort
SELECT + 21 AS col1 FROM tab1
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT DISTINCT + col2 * 95 DIV + 85 AS col0 FROM tab0
----
11
110
52

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT + col2 * 95 / + 85 AS col0 FROM tab0
----
11
110
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT CAST( MAX( - col0 ) AS SIGNED ) * + COUNT( ALL + col1 ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9428
SELECT CAST ( MAX ( - col0 ) AS INTEGER ) * + COUNT ( ALL + col1 ) AS col0 FROM tab0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL - COUNT( * ) FROM tab0 WHERE CAST( + + ( - - col0 ) AS SIGNED ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - COUNT ( * ) FROM tab0 WHERE CAST ( + + ( - - col0 ) AS INTEGER ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + MIN( 69 ) col2 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT + MIN ( 69 ) col2 FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT col2 * - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT col2 * - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL MIN( - col0 ) * COUNT( * ) col1 FROM tab0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9433
SELECT ALL MIN ( - col0 ) * COUNT ( * ) col1 FROM tab0
----
-291

query III rowsort
SELECT ALL * FROM tab2 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT + COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 8 AS col0 FROM tab0 cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - + 45 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT + COUNT( * ) * + 24 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9439
SELECT + COUNT ( * ) * + 24 FROM tab0
----
72

query I rowsort
SELECT DISTINCT + col0 + - + 4 + + + col0 * + col1 AS col1 FROM tab0 WHERE 50 * col0 <= ( - - col2 * + + col1 )
----
1226

query I rowsort
SELECT 33 * + 88 FROM tab1
----
2904
2904
2904

query II rowsort
SELECT DISTINCT - 92, + col1 FROM tab2
----
-92
51
-92
67
-92
77

query I rowsort
SELECT - col2 * + 38 FROM tab1 AS cor0
----
-2242
-2584
-3648

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 * + + ( + - 74 ) ) BETWEEN NULL AND col1
----

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 - + 18 FROM tab2 AS cor0
----
23
5
40
22
58
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 col1 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - 1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 52 + - col1 FROM tab2 cor0 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT - MAX( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT ALL - col2 AS col0, col2 FROM tab2
----
-23
23
-40
40
-58
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col1, col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab2 WHERE + ( col0 ) > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + col1 col0 FROM tab2
----
102
134
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9454
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + col1 col0 FROM tab2
----
102
134
154

query II rowsort
SELECT col0, + col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 + - + 48 + - 49 BETWEEN NULL AND ( 22 )
----

query I rowsort
SELECT + 70 FROM tab2 WHERE + 95 + - col0 * 99 + - - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT + - 28 + - 45 AS col2 FROM tab0 AS cor0
----
-73
-73
-73

query II rowsort
SELECT DISTINCT - col2, ( + col0 ) FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT 90 IN ( col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9462
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL col2 * - + 4 * - col2 + + 71 FROM tab0
----
39275
471
8907

query I rowsort
SELECT + + col0 FROM tab0 WHERE + ( - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + MIN( ALL + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9465
SELECT + MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - col2 * col2 - - col2 AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT 10 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9467
SELECT 10 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9468
SELECT + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query II rowsort
SELECT DISTINCT + col2 - + col2 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT 67 * - MAX( ALL + col1 ) AS col2 FROM tab2
----
-5159

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT 67 * - MAX ( ALL + col1 ) AS col2 FROM tab2
----
-5159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT + col1 + + 23 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9472
SELECT DISTINCT + col0 DIV ( + col1 ), col1 FROM tab1
----
1
47
17
5
3
14

skipif mysql # not compatible
query II rowsort label-9472
SELECT DISTINCT + col0 / ( + col1 ), col1 FROM tab1
----
1
47
17
5
3
14

query I rowsort
SELECT ( + col1 ) * + + ( - col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT DISTINCT col1 DIV col0 * - col1 * - col2 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT DISTINCT col1 / col0 * - col1 * - col2 col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT MIN( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + + col2 * - - 87 AS col0 FROM tab0 cor0
----
4089
8613
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9478
SELECT - - 50 AS col1, - 24 * - COUNT( * ) + SUM( ALL col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 <> - ( + CAST( - - col1 AS SIGNED ) ) * - col0 - col1 + - ( 48 ) + - col2 / - col0 * - 89
----
50
NULL

skipif mysql # not compatible
query II rowsort label-9478
SELECT - - 50 AS col1, - 24 * - COUNT ( * ) + SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 <> - ( + CAST ( - - col1 AS INTEGER ) ) * - col0 - col1 + - ( 48 ) + - col2 / - col0 * - 89
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT + SUM( 95 ) AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT + SUM ( 95 ) AS col0 FROM tab2
----
285

query I rowsort
SELECT ALL 87 + + col0 FROM tab2
----
133
151
162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9481
SELECT ALL - CAST( col1 AS SIGNED ) DIV 34 + - 4 FROM tab1
----
-4
-4
-5

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - CAST ( col1 AS INTEGER ) / 34 + - 4 FROM tab1
----
-4
-4
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT SUM( DISTINCT col0 ) - 16 col0 FROM tab1
----
211

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9482
SELECT SUM ( DISTINCT col0 ) - 16 col0 FROM tab1
----
211

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 86 / col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( + 9 ) = 73
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + ( col1 ) + - 90 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - 4 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN + 45 AND ( col1 )
----

query I rowsort
SELECT DISTINCT 0 * - ( 1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 10 * + col0 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT col1 FROM tab1 WHERE ( col2 * col1 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE col0 / + 80 IS NULL
----

query I rowsort
SELECT ALL 39 * - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 61 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT COUNT( * ) * 44 + - 41 AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9493
SELECT COUNT ( * ) * 44 + - 41 AS col0 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + COUNT( * ) * 13 AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9494
SELECT + COUNT ( * ) * 13 AS col2 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - 70 * + COUNT( * ) AS col2 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-9495
SELECT - 70 * + COUNT ( * ) AS col2 FROM tab1
----
-210

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + 91 - - col2 * - col1 AS col0 FROM tab1
----
-1253
-204
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT COUNT( * ) + - 44 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT COUNT ( * ) + - 44 FROM tab0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + 50 col2 FROM tab0
----
2850
2850
2850

query I rowsort
SELECT DISTINCT + col0 * col1 + 25 AS col2 FROM tab0
----
122
1240
1852

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT MAX( + col2 ) * COUNT( * ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-9501
SELECT MAX ( + col2 ) * COUNT ( * ) FROM tab2
----
174

query I rowsort
SELECT col2 * + ( col1 * 39 ) FROM tab0
----
148473
3861
8190

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9503
SELECT ALL 74 DIV + col0 AS col2 FROM tab1 WHERE col0 DIV - CAST( + col1 AS SIGNED ) + - col0 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL 74 / + col0 AS col2 FROM tab1 WHERE col0 / - CAST ( + col1 AS INTEGER ) + - col0 IS NOT NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL MIN( DISTINCT 73 ) FROM tab1 WHERE NOT NULL NOT BETWEEN + 73 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL MIN ( DISTINCT 73 ) FROM tab1 WHERE NOT NULL NOT BETWEEN + 73 AND NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab0 WHERE ( - 86 + - 56 * 33 ) IN ( + 7 )
----

query I rowsort
SELECT DISTINCT ( + col0 ) * ( - 52 ) + + col2 FROM tab2 AS cor0
----
-2369
-3288
-3842

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL MAX( - col0 ) - - COUNT( ALL ( + col1 ) ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL MAX ( - col0 ) - - COUNT ( ALL ( + col1 ) ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab0 WHERE 30 * - col2 NOT BETWEEN col1 AND ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL CAST( + SUM( ALL col0 ) AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL CAST ( + SUM ( ALL col0 ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1
----
224

query I rowsort
SELECT ALL - 19 * - col2 AS col2 FROM tab0
----
1881
190
893

query I rowsort
SELECT ALL 91 * + 74 FROM tab0
----
6734
6734
6734

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE - col0 * - col2 >= ( ( col1 ) * + col1 + + 75 )
----

query I rowsort
SELECT DISTINCT - col0 * 79 FROM tab0
----
-1185
-6873
-7663

query I rowsort
SELECT + 87 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
87
87
87

query I rowsort
SELECT DISTINCT + col0 * 76 - 16 FROM tab2 AS cor0
----
3480
4848
5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) * col2 IS NULL
----

query I rowsort
SELECT ALL + - 44 + col2 AS col1 FROM tab0 AS cor0
----
-34
3
55

query I rowsort
SELECT DISTINCT 45 + + 11 FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE ( 63 ) NOT BETWEEN ( NULL ) AND + col0
----
51

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 - col2 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + col2 + 40 AND NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 IN ( col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT + MIN( ALL - 38 ) * + COUNT( * ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + MIN ( ALL - 38 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-114

query I rowsort
SELECT ALL col1 * + 70 AS col0 FROM tab2 AS cor0
----
3570
4690
5390

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT ALL + + MAX( col2 ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + + MAX ( col2 ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT + ( CAST( NULL AS SIGNED ) ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT + ( CAST ( NULL AS INTEGER ) ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9529
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND CAST( 91 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9529
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND CAST ( 91 AS REAL )
----

query I rowsort
SELECT - 30 * - + col1 FROM tab0
----
2430
30
630

query III rowsort
SELECT * FROM tab0 WHERE NOT 18 <= + col1 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - 64 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT + CAST( 70 AS SIGNED ) * col1 AS col0 FROM tab1
----
3290
350
980

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + CAST ( 70 AS INTEGER ) * col1 AS col0 FROM tab1
----
3290
350
980

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 2 * col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT col0 DIV col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9536
SELECT col0 / col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
2

query I rowsort
SELECT DISTINCT + 69 * 31 FROM tab0 AS cor0 WHERE col2 / col0 - - ( ( col0 ) ) > NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) * ( col2 ) AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE - col1 > - col2
----

query I rowsort
SELECT - ( - 6 ) AS col0 FROM tab0 cor0
----
6
6
6

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + 71 * - + COUNT( * ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 71 * - + COUNT ( * ) FROM tab1 AS cor0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT - col1 DIV - col1 col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9543
SELECT - col1 / - col1 col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + 42 * + 2 - + + ( MAX( col2 ) ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 42 * + 2 - + + ( MAX ( col2 ) ) FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9545
SELECT + col1, CAST( - col0 AS SIGNED ) DIV 79 FROM tab0 cor0
----
1
-1
21
-1
81
0

skipif mysql # not compatible
query II rowsort label-9545
SELECT + col1, CAST ( - col0 AS INTEGER ) / 79 FROM tab0 cor0
----
1
-1
21
-1
81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * - col2 * + 93 col0 FROM tab2 AS cor0
----
166842
290160
420732

query I rowsort
SELECT ALL + 3 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - col0 * col1 + + 16 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9548
SELECT DISTINCT - CAST( - col2 AS SIGNED ) DIV 79 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) / 79 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE ( 19 * - + 47 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9549
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE ( 19 * - + 47 ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - col0 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + - + col0 FROM tab0
----
0

query I rowsort
SELECT - + col1 * + 78 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * col1 + + ( - - col0 ) FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT ALL + 25 DIV + COUNT( * ) + - 11 col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9554
SELECT ALL + 25 / + COUNT ( * ) + - 11 col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 47 + - + col0 * col2 <= 34 / - col0 + 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 - - ( 52 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9557
SELECT * FROM tab1 AS cor0 WHERE - CAST( - - col2 AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query III rowsort label-9557
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - - col2 AS INTEGER ) >= + col0
----

query I rowsort
SELECT col1 - + 58 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-11
-44
-53

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 AS col0 FROM tab2 WHERE NOT ( + + col0 / - - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT - col1 AS col2, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT - col2 * + col0 + 11 FROM tab1 cor0
----
-4885
-5004
-6177

query I rowsort
SELECT ALL - + 28 FROM tab1 cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 51 * + col1 NOT BETWEEN ( - col0 ) AND + 51
----
1

skipif mysql # not compatible
query I rowsort label-9565
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 51 * + col1 NOT BETWEEN ( - col0 ) AND + 51
----
1

query I rowsort
SELECT + 94 * col1 AS col0 FROM tab0 WHERE NOT + col0 + + col1 * - col2 IS NULL
----
1974
7614
94

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE ( NOT col0 + + - col2 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 68 + - - col2 NOT BETWEEN + col2 + + col2 AND ( + col2 )
----

query I rowsort
SELECT + ( ( col2 ) ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT ALL + 23 AS col2, MAX( DISTINCT + - 82 ) col2 FROM tab2
----
23
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9570
SELECT ALL + 23 AS col2, MAX ( DISTINCT + - 82 ) col2 FROM tab2
----
23
-82

query I rowsort
SELECT + 13 * + 67 FROM tab1
----
871
871
871

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT 84 * + + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + ( - - ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + ( - - ( COUNT ( * ) ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - 15 AS col1 FROM tab2 AS cor0
----
46
-15
64
-15
75
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 56 )
----
0

skipif mysql # not compatible
query I rowsort label-9576
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 56 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 78 * 85 / + + ( 31 ) = 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 35 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT + col2 * CAST( + - 36 AS SIGNED ) AS col2 FROM tab1
----
-2124
-2448
-3456

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + col2 * CAST ( + - 36 AS INTEGER ) AS col2 FROM tab1
----
-2124
-2448
-3456

query I rowsort
SELECT DISTINCT col1 + + - col1 FROM tab2 WHERE + col1 * - 11 IS NULL
----

query I rowsort
SELECT DISTINCT + AVG ( - col2 ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( 20 ) AND NULL
----
NULL

query I rowsort
SELECT ALL ( 4 ) + - 80 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT - 84 + - + ( 76 ) AS col1 FROM tab1 AS cor0
----
-160

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9584
SELECT * FROM tab1 AS cor0 WHERE ( col2 > + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9584
SELECT * FROM tab1 AS cor0 WHERE ( col2 > + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - 61 + ( - MIN( DISTINCT 65 ) ) + + SUM( + + 63 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - 61 + ( - MIN ( DISTINCT 65 ) ) + + SUM ( + + 63 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - 61 * + COUNT( * ) * + COUNT( - col2 ) FROM tab2 cor0
----
-549

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - 61 * + COUNT ( * ) * + COUNT ( - col2 ) FROM tab2 cor0
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT DISTINCT + + COUNT( ALL - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT + + COUNT ( ALL - + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9588
SELECT ALL 99 * CAST( NULL AS DECIMAL ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL 99 * CAST ( NULL AS REAL ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT + 83 + - col1 + CAST( + col1 AS SIGNED ) + 6 + - col2 * - + col0 AS col2 FROM tab1
----
4985
5104
6277

skipif mysql # not compatible
query I rowsort label-9589
SELECT + 83 + - col1 + CAST ( + col1 AS INTEGER ) + 6 + - col2 * - + col0 AS col2 FROM tab1
----
4985
5104
6277

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT 40 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT 40 / col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT ALL + 47 + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL + 47 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT + col1, + 72 FROM tab0
----
1
72
21
72
81
72

query III rowsort
SELECT * FROM tab0 WHERE + col2 = + col0
----

query I rowsort
SELECT ALL + 10 - - col2 FROM tab2 WHERE 73 IS NOT NULL
----
33
50
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT DISTINCT col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) >= 41 * + - col0 + + - col0
----

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) >= 41 * + - col0 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ( + SUM( - + 38 ) ) - ( - 89 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9597
SELECT ( + SUM ( - + 38 ) ) - ( - 89 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT MAX( ALL 25 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT MAX ( ALL 25 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query I rowsort
SELECT + col0 + + - 57 - - - 16 AS col1 FROM tab2
----
-27
-9
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col1 / - col1, ( - 13 ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col1 / - col1, ( - 13 ) * + col0 )
----

query I rowsort
SELECT - 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT + 7 DIV 7 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9602
SELECT + 7 / 7 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT - 56 * COUNT( ALL + + 70 ) * + 98 AS col2 FROM tab2 cor0
----
-16464

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - 56 * COUNT ( ALL + + 70 ) * + 98 AS col2 FROM tab2 cor0
----
-16464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9604
SELECT DISTINCT - - COUNT( * ) DIV - MAX( ( + col1 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - - COUNT ( * ) / - MAX ( ( + col1 ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + + + col2 * + 90 col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND 56 * - col2 + - ( 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT MAX( ALL - - ( 49 ) ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT MAX ( ALL - - ( 49 ) ) FROM tab2
----
49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col0 * + col0
----

query II rowsort
SELECT ALL - col2 AS col0, + 18 AS col0 FROM tab0
----
-10
18
-47
18
-99
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - - ( ( 48 ) ) AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col1 + + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-9610
SELECT - - ( ( 48 ) ) AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col1 + + col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 = - col0 + 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col0 FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= + - col2 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 46 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - col0 * col1 + - 26 * 62 * + col0 AS col2 FROM tab0 AS cor0
----
-142071
-156461
-25395

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 >= col2
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - ( 43 ) * MAX( + col2 ) + + 61 - + 55 col2 FROM tab0
----
-4251

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT - ( 43 ) * MAX ( + col2 ) + + 61 - + 55 col2 FROM tab0
----
-4251

query I rowsort
SELECT ALL - col2 + + + 79 FROM tab1
----
-17
11
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) + + + CAST( - 99 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + + CAST ( - 99 AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 * - ( 20 ) FROM tab0
----
-1980
-200
-940

query I rowsort
SELECT ALL - 13 + col0 AS col1 FROM tab1 AS cor0
----
38
72
78

query II rowsort
SELECT - - 83 AS col2, 17 AS col2 FROM tab2 AS cor0
----
83
17
83
17
83
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT col0 + + CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9624
SELECT col0 + + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT + 82 * + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9625
SELECT + 82 * + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * col2 AS col1, col1 col0 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL - + SUM( - ( - col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - + SUM ( - ( - col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9628
SELECT + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col1 + col2 - col1 + + + col0 FROM tab1 AS cor0 WHERE 16 IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9630
SELECT DISTINCT - col0 AS col2, col1 DIV - - col1 col1 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9630
SELECT DISTINCT - col0 AS col2, col1 / - - col1 col1 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

query I rowsort
SELECT ALL col2 - + + col0 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT - + 99, + col0 FROM tab1 AS cor0
----
-99
51
-99
85
-99
91

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9634
SELECT + - 30 + col0 + + ( + + CAST( NULL AS SIGNED ) ) + col2, + col2 AS col1 FROM tab2 WHERE NULL = - 32
----

skipif mysql # not compatible
query II rowsort label-9634
SELECT + - 30 + col0 + + ( + + CAST ( NULL AS INTEGER ) ) + col2, + col2 AS col1 FROM tab2 WHERE NULL = - 32
----

query III rowsort
SELECT * FROM tab1 WHERE col2 > ( 20 + + - 66 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT MIN( DISTINCT - + 66 ) FROM tab0, tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT MIN ( DISTINCT - + 66 ) FROM tab0, tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT 69 + + SUM( ALL + col2 ) FROM tab1 AS cor0
----
292

skipif mysql # not compatible
query I rowsort label-9637
SELECT 69 + + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT 23 + COUNT( ALL col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT 23 + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 46 col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-46
46
-64
46
-75
46

query I rowsort
SELECT ALL - 7 * - col2 AS col0 FROM tab0
----
329
693
70

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT COUNT( + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9642
SELECT COUNT ( + col2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT + col0 DIV + + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9643
SELECT + col0 / + + col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - - MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9644
SELECT - - MIN ( col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT DISTINCT - 13 FROM tab0 AS cor0 WHERE NOT ( col0 * + - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND 51 / + 99 + + 93
----

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT - 13 FROM tab0 AS cor0 WHERE NOT ( col0 * + - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND 51 / + 99 + + 93
----

query I rowsort
SELECT ALL col0 / col0 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL <> - col0 * - + col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT ALL + CAST( + 30 AS SIGNED ) AS col0 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + CAST ( + 30 AS INTEGER ) AS col0 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT + col2 * + 28 * - + col2 FROM tab1
----
-129472
-258048
-97468

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * col0 / col0 + 24 >= ( ( - col1 ) * - - col1 + - + 3 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT - 33 + + 16 + - 65 * - 21 DIV - ( - 7 ) AS col2 FROM tab2
----
178
178
178

skipif mysql # not compatible
query I rowsort label-9650
SELECT - 33 + + 16 + - 65 * - 21 / - ( - 7 ) AS col2 FROM tab2
----
178
178
178

query I rowsort
SELECT ALL col1 + - - 12 - + col2 FROM tab0
----
-86
23
46

query I rowsort
SELECT DISTINCT - - ( - col2 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + SUM( DISTINCT + + col0 ) + - 76 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + SUM ( DISTINCT + + col0 ) + - 76 FROM tab2 AS cor0
----
109

query I rowsort
SELECT DISTINCT - - 44 FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9655
SELECT ALL MAX( + 30 ) col1, COUNT( * ) FROM tab0 AS cor0
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9655
SELECT ALL MAX ( + 30 ) col1, COUNT ( * ) FROM tab0 AS cor0
----
30
3

query I rowsort
SELECT ALL - 98 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL - 73 - - col0 FROM tab0
----
-58
14
24

query I rowsort
SELECT ALL + 62 + + + 34 AS col1 FROM tab1
----
96
96
96

query I rowsort
SELECT ALL 64 + - col2 AS col1 FROM tab0 AS cor0
----
-35
17
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 + + - col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT + AVG ( + + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT DISTINCT + COUNT( * ), + 19 col1 FROM tab2 AS cor0 WHERE 30 IS NOT NULL
----
3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9663
SELECT DISTINCT + COUNT ( * ), + 19 col1 FROM tab2 AS cor0 WHERE 30 IS NOT NULL
----
3
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + col2 IS NULL
----

query I rowsort
SELECT - 51 + 86 + + col2 FROM tab2 AS cor0
----
58
75
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col1 * - 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT 64 - COUNT( * ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT 64 - COUNT ( * ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT + 67 * 95 + + + col1 FROM tab2 AS cor0
----
6416
6432
6442

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT DISTINCT - 26 * 67 DIV col0 FROM tab2
----
-23
-27
-37

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - 26 * 67 / col0 FROM tab2
----
-23
-27
-37

query I rowsort
SELECT + col0 * - + col2 * + col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT COUNT( ALL col0 ) DIV 95 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT COUNT ( ALL col0 ) / 95 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + MAX( DISTINCT + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + MAX ( DISTINCT + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT 39 * - col2 AS col0 FROM tab0
----
-1833
-3861
-390

query I rowsort
SELECT DISTINCT - 86 * 77 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6622

query I rowsort
SELECT DISTINCT - 66 * col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT + col1 * col0 * col2 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT - + 65 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL - col1 - - + col1 AS col2 FROM tab0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT 36 * 70 * + + SUM( - - col2 ) AS col1 FROM tab0 AS cor0
----
393120

skipif mysql # not compatible
query I rowsort label-9679
SELECT 36 * 70 * + + SUM ( - - col2 ) AS col1 FROM tab0 AS cor0
----
393120

query I rowsort
SELECT ALL + - 75 FROM tab1 cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9681
SELECT 51 / + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT 51 / + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT 31 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT 31 / - + col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 53 col2 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL - 57 * + ( - COUNT( * ) ) * + COUNT( DISTINCT + - 47 ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - 57 * + ( - COUNT ( * ) ) * + COUNT ( DISTINCT + - 47 ) FROM tab0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT + ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 30 + - col2 - + 48 + col0 * + col2 * + + col0 FROM tab2
----
163782
326174
48627

query I rowsort
SELECT ALL + ( - 57 ) AS col0 FROM tab1
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + 17 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9688
SELECT + 17 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT - + COUNT( ALL - 77 ) * - 76 AS col2 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT - + COUNT ( ALL - 77 ) * - 76 AS col2 FROM tab1 AS cor0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT ( - + 51 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ALL 48 + col0 - + col0 + + ( + col2 ) DIV + - col0 FROM tab1
----
47
48
48

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL 48 + col0 - + col0 + + ( + col2 ) / + - col0 FROM tab1
----
47
48
48

query I rowsort
SELECT ALL + 89 + - 54 AS col0 FROM tab0 AS cor0
----
35
35
35

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT - col2 * + col0 * col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT - SUM( - col1 ) - - 55 AS col2 FROM tab2 AS cor0
----
250

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - SUM ( - col1 ) - - 55 AS col2 FROM tab2 AS cor0
----
250

query I rowsort
SELECT DISTINCT - 99 * + col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT col0 - - 61 + - col1 * + 81 + - - col1 FROM tab2 AS cor0
----
-3973
-5224
-6035

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9698
SELECT * FROM tab0 cor0 WHERE - col0 NOT BETWEEN col1 - CAST( col0 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9698
SELECT * FROM tab0 cor0 WHERE - col0 NOT BETWEEN col1 - CAST ( col0 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT + - SUM( + - col1 ) - + 48 AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9699
SELECT + - SUM ( + - col1 ) - + 48 AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 63 <= NULL
----

query I rowsort
SELECT - ( + col1 ) * - col0 FROM tab2 WHERE - 52 * - col2 IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + ( ( - 26 ) ) AS col2 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9705
SELECT SUM ( - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT DISTINCT 77 * 62 DIV - + 95 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT 77 * 62 / - + 95 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT 48 * - col0 FROM tab2 WHERE NOT + + col1 IN ( + - col1 + - col2 / - - col2 )
----
-2208
-3072
-3600

query II rowsort
SELECT + col0 AS col1, - 78 + col1 FROM tab2
----
46
-27
64
-1
75
-11

query II rowsort
SELECT ALL col2, - 59 FROM tab1
----
59
-59
68
-59
96
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT COUNT( * ) * - 12 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT COUNT ( * ) * - 12 FROM tab2 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT - col2 DIV 23 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9711
SELECT - col2 / 23 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT 43 * - col1 * col2 FROM tab2 AS cor0
----
-132440
-167098
-50439

query I rowsort
SELECT + - col1 * + col1 + + + col0 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT col1 * + + 67 FROM tab0 AS cor0
----
1407
5427
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT - + MIN( DISTINCT - 47 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT - + MIN ( DISTINCT - 47 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - 71 * - col2 + - col1 FROM tab2 cor0
----
1582
2763
4051

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9718
SELECT ALL 58 * CAST( NULL AS DECIMAL ) AS col1, + COUNT( DISTINCT - col1 ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL 58 * CAST ( NULL AS REAL ) AS col1, + COUNT ( DISTINCT - col1 ) FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT COUNT( * ) + + + SUM( ALL + col2 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-9719
SELECT COUNT ( * ) + + + SUM ( ALL + col2 ) FROM tab2
----
124

query I rowsort
SELECT ALL + 58 + - col1 + - col1 FROM tab1
----
-36
30
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9721
SELECT DISTINCT col1 DIV 62 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT col1 / 62 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9722
SELECT ALL CAST( - + MIN( - - col1 ) AS SIGNED ) DIV + 13 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL CAST ( - + MIN ( - - col1 ) AS INTEGER ) / + 13 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - MAX( + 41 ) AS col1 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-9723
SELECT - MAX ( + 41 ) AS col1 FROM tab2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT - 59 * + CAST( MAX( ALL + ( + ( 43 ) ) ) AS SIGNED ) col2 FROM tab2
----
-2537

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9724
SELECT - 59 * + CAST ( MAX ( ALL + ( + ( 43 ) ) ) AS INTEGER ) col2 FROM tab2
----
-2537

query I rowsort
SELECT ALL col2 * + 84 + col2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
200480
296322
55890

query I rowsort
SELECT ALL - + col2 * + ( col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT 46 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - MIN( DISTINCT 55 ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - MIN ( DISTINCT 55 ) FROM tab1 AS cor0
----
-55

query I rowsort
SELECT 32 * + - 5 + + col1 FROM tab1
----
-113
-146
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT + - ( - col0 ) * 16 DIV - 62 - ( + col2 ) + + - col0 * - col2 + col1 * + col0 FROM tab2 AS cor0
----
3370
7432
9298

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + - ( - col0 ) * 16 / - 62 - ( + col2 ) + + - col0 * - col2 + col1 * + col0 FROM tab2 AS cor0
----
3370
7432
9298

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 88 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 - - col2 col0 FROM tab0 AS cor0
----
-7
30
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) + - col2 * + col1 + + + col1 col2 FROM tab1 WHERE ( NOT + col0 * + col2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT col1 * + - col1 AS col0, 0 - + - 23 FROM tab0
----
-1
23
-441
23
-6561
23

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= + col0 )
----

query I rowsort
SELECT - ( 26 ) / col1 + - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + - - 66 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL - MIN( DISTINCT + - 50 ) * - + CAST( NULL AS SIGNED ) / MIN( - 32 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - MIN ( DISTINCT + - 50 ) * - + CAST ( NULL AS INTEGER ) / MIN ( - 32 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col1, + col1 * + col2 AS col2 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT ALL + 77 * - col0 AS col2 FROM tab1 AS cor0
----
-3927
-6545
-7007

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 4 + + col1 + - 16 / - 66, col0 + col0 * + col0 )
----

query I rowsort
SELECT ALL + 48 * - col0 + - col0 + + + col1 + 36 FROM tab0 AS cor0
----
-4206
-4716
-618

query I rowsort
SELECT ALL col0 * - col2 * - - col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 16 col0 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL + 54 * - ( - COUNT( * ) ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + 54 * - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT ( col2 ) * 70 AS col1 FROM tab2 AS cor0
----
1610
2800
4060

query I rowsort
SELECT + 96 * - col2 AS col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT + + col1 * 83 + + + CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
1176
3948
420

skipif mysql # not compatible
query I rowsort label-9748
SELECT + + col1 * 83 + + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL + COUNT( * ) * - + 40 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + COUNT ( * ) * - + 40 FROM tab1
----
-120

query I rowsort
SELECT ALL col2 + 60 AS col0 FROM tab2
----
100
118
83

query III rowsort
SELECT * FROM tab0 WHERE - ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab1 WHERE + 73 IS NOT NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - COUNT( ALL col2 ) + + + 39 AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - COUNT ( ALL col2 ) + + + 39 AS col0 FROM tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT col1 * - col1 + + + col0 AS col2 FROM tab2 AS cor0
----
-2555
-4414
-5865

query I rowsort
SELECT + 8 * 23 FROM tab2
----
184
184
184

query I rowsort
SELECT ALL + col0 - + - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL + ( + + col2 ) + - - col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ( - 98 ) - - 43 AS col1 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT - - ( - col1 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - - 84 FROM tab1 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + ( COUNT( + 33 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9761
SELECT + ( COUNT ( + 33 ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT ALL + 27 AS col2, col2 AS col2 FROM tab2
----
27
23
27
40
27
58

query II rowsort
SELECT ALL col0 AS col0, 64 AS col2 FROM tab1
----
51
64
85
64
91
64

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT - + 65 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT ALL + COUNT( * ) AS col0, + 85 AS col0 FROM tab1
----
3
85

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL + COUNT ( * ) AS col0, + 85 AS col0 FROM tab1
----
3
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT col0 DIV 24 AS col0 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-9766
SELECT col0 / 24 AS col0 FROM tab0
----
0
3
4

query I rowsort
SELECT col0 * + ( - col2 ) AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ( - + 32 ) FROM tab2
----
-32
-32
-32

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT MAX( + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT MAX ( + + col0 ) FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - 57 + 57 col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT DISTINCT + COUNT( * ) AS col2, SUM( ALL + + 82 ) FROM tab2 AS cor0
----
3
246

skipif mysql # not compatible
query II rowsort label-9772
SELECT DISTINCT + COUNT ( * ) AS col2, SUM ( ALL + + 82 ) FROM tab2 AS cor0
----
3
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT + 33 * COUNT( * ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9773
SELECT + 33 * COUNT ( * ) col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT + col2 / + col1 + + - 84 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT ALL col1 * + - ( + - 76 ) * + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE + 37 = + col0 + - - 59 * + 95
----

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL col1 * + - ( + - 76 ) * + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE + 37 = + col0 + - - 59 * + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - COUNT( ALL - + col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9776
SELECT - COUNT ( ALL - + col0 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT - col1 * + - 33, - 10 * - col2 AS col0 FROM tab1
----
1551
680
165
590
462
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL + 80 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + 80 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - AVG ( 56 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT + col1 * 20 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1020
1340
1540

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 = NULL
----

query I rowsort
SELECT + col2 + - col1 + - col2 + + - col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT ALL - 41 AS col0 FROM tab1
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT ALL - col1 DIV - 5 + - col2 + + - col2 AS col1 FROM tab0
----
-16
-198
-78

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - col1 / - 5 + - col2 + + - col2 AS col1 FROM tab0
----
-16
-198
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT CAST( + - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9785
SELECT CAST ( + - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT col1 DIV + + col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9786
SELECT col1 / + + col0 AS col1 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT + col0 + + 4 + - col0 FROM tab1 WHERE ( - 31 - ( + CAST( NULL AS SIGNED ) ) ) >= col0
----

skipif mysql # not compatible
query I rowsort label-9787
SELECT + col0 + + 4 + - col0 FROM tab1 WHERE ( - 31 - ( + CAST ( NULL AS INTEGER ) ) ) >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + - col0 - + - col0 * - - 30 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - col0 - + - col0 * - - 30 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - MAX( - - 20 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9789
SELECT - MAX ( - - 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + col2 + col0 + - + 65 FROM tab0 cor0
----
-3
131
32

query I rowsort
SELECT ALL ( + ( col2 ) ) - - - col1 + col0 - col0 * - col0 FROM tab2 cor0
----
2134
4123
5691

query I rowsort
SELECT - 11 - - + ( 41 ) + - col0 + - col1 * + - 22 AS col1 FROM tab0 AS cor0
----
-45
1797
405

query I rowsort
SELECT ALL col1 * - + ( + 31 ) * + ( 82 ) FROM tab1
----
-119474
-12710
-35588

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL - + col2 * + - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9795
SELECT ALL - + col2 * + - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 40 ) FROM tab2 cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 * - - col1 col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9798
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9798
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col2, 76 + col0 FROM tab2 AS cor0
----
23
122
40
140
58
151

query II rowsort
SELECT ALL 11, col2 AS col1 FROM tab1 AS cor0
----
11
59
11
68
11
96

query I rowsort
SELECT - - col0 AS col2 FROM tab2 WHERE - col1 BETWEEN + col0 * - ( 3 ) AND - 69 - col2 OR NULL IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT DISTINCT + col2 DIV - col0 col2 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9802
SELECT DISTINCT + col2 / - col0 col2 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9803
SELECT ALL col1 * - - col1 AS col1, + 95 + - CAST( NULL AS SIGNED ) FROM tab2
----
2601
NULL
4489
NULL
5929
NULL

skipif mysql # not compatible
query II rowsort label-9803
SELECT ALL col1 * - - col1 AS col1, + 95 + - CAST ( NULL AS INTEGER ) FROM tab2
----
2601
NULL
4489
NULL
5929
NULL

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE NOT NULL <> - + 31
----

query I rowsort
SELECT ALL ( - - col1 ) FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 48 IS NOT NULL
----

query I rowsort
SELECT col1 * + - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL - - MAX( DISTINCT + + 2 ) col0 FROM tab1 cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9808
SELECT ALL - - MAX ( DISTINCT + + 2 ) col0 FROM tab1 cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 22 col0 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT 16 * col2 + col1 + col2 AS col1 FROM tab1 AS cor0
----
1008
1203
1646

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 55 > + 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - 42 * col2 FROM tab1
----
-2483
-2903
-4046

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT + + MAX( ALL 87 ) AS col0 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-9813
SELECT + + MAX ( ALL 87 ) AS col0 FROM tab2 cor0
----
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col1, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL + - CAST( 89 AS SIGNED ) + - ( - + 82 ) FROM tab2 AS cor0 WHERE NOT 16 + - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + - CAST ( 89 AS INTEGER ) + - ( - + 82 ) FROM tab2 AS cor0 WHERE NOT 16 + - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT 4 * + COUNT( * ) * + 87 FROM tab1 AS cor0
----
1044

skipif mysql # not compatible
query I rowsort label-9817
SELECT 4 * + COUNT ( * ) * + 87 FROM tab1 AS cor0
----
1044

query II rowsort
SELECT - - 37 AS col0, col0 AS col0 FROM tab1 AS cor0
----
37
51
37
85
37
91

query I rowsort
SELECT ALL + col2 * + + col0 AS col1 FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 57 AS col0 FROM tab1 AS cor0
----
-57
-57
-57

query II rowsort
SELECT DISTINCT 24 AS col1, ( - col2 ) FROM tab1 AS cor0
----
24
-59
24
-68
24
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT COUNT( * ) * + ( + MAX( col0 ) ) + - 29 FROM tab1 AS cor0
----
244

skipif mysql # not compatible
query I rowsort label-9822
SELECT COUNT ( * ) * + ( + MAX ( col0 ) ) + - 29 FROM tab1 AS cor0
----
244

query II rowsort
SELECT DISTINCT ( + 91 ) AS col2, + ( - + 7 ) AS col0 FROM tab1
----
91
-7

query I rowsort
SELECT 0 + - 72 + - - 17 AS col2 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT - col1 + + + col1 - + col2 AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 89 + - col0 * - col1 FROM tab0 AS cor0
----
1304
186
1916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col1 / + col1 + - col0 * - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 / + col1 + - col0 * - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - - 82 + + col1 FROM tab0 AS cor0
----
-148
-16
-178

query I rowsort
SELECT ALL - col0 * + 14 * + col0 + - 28 + + 73 + col1 * + 36 FROM tab0 AS cor0
----
-105165
-131645
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 84 col1 FROM tab2 AS cor0
----
-130
-148
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT DISTINCT - col2 * col0 DIV col2 * + + col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - col2 * col0 / col2 * + + col2 FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 col0, col0 * - 1 + - 40 FROM tab0
----
26
-127
26
-137
26
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - - MAX( - 97 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9833
SELECT - - MAX ( - 97 ) AS col0 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT ALL - ( + + ( + col1 ) ) AS col2, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + - COUNT( + col0 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9835
SELECT + - COUNT ( + col0 ) AS col1 FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL - col0 AS col1, col1 * + 44 + + col1 FROM tab0 AS cor0
----
-15
3645
-87
945
-97
45

query I rowsort
SELECT ALL + col1 * + col2 * 28 * + 25 FROM tab1
----
206500
2237200
940800

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + COUNT( ALL - 84 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9838
SELECT + COUNT ( ALL - 84 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, col0 col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + col0 * 39 * - col0 FROM tab1
----
-101439
-281775
-322959

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT ALL col0 DIV + + 42 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL col0 / + + 42 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - 63 * - col2 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT DISTINCT - - 95, COUNT( * ) AS col0 FROM tab2 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-9844
SELECT DISTINCT - - 95, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
95
3

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 64 >= - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT DISTINCT - - col2 * 55 DIV - col2 FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT - - col2 * 55 / - col2 FROM tab1 cor0
----
-55

query II rowsort
SELECT col0, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT ALL - MAX( ALL + - col1 ) DIV 19 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - MAX ( ALL + - col1 ) / 19 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col0 FROM tab0 AS cor0
----
22
22
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col2 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT SUM( - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9852
SELECT SUM ( - col2 ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT - ( MAX( - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - ( MAX ( - col2 ) ) AS col2 FROM tab0
----
10

query II rowsort
SELECT - 32 AS col2, col0 * - - col2 FROM tab0
----
-32
705
-32
870
-32
9603

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT - col0 * 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT MIN( ALL 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-9856
SELECT MIN ( ALL 37 ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT col2 * - + col2 AS col1 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - 41 * + + col2 + + col2 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT - CAST( + + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9860
SELECT - CAST ( + + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - 36 AS col2 FROM tab0 WHERE - col1 * - col1 * + 82 IS NOT NULL
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - + - col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT DISTINCT - col0 + + ( + CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT - col0 + + ( + CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 - - 17 col0 FROM tab2 cor0
----
112
112
112

query II rowsort
SELECT DISTINCT col0 AS col0, + 10 * - + 66 FROM tab0 AS cor0
----
15
-660
87
-660
97
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT DISTINCT + COUNT( * ) AS col0, - 6 AS col1 FROM tab0, tab0 AS cor0
----
9
-6

skipif mysql # not compatible
query II rowsort label-9867
SELECT DISTINCT + COUNT ( * ) AS col0, - 6 AS col1 FROM tab0, tab0 AS cor0
----
9
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT 7 * + COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9868
SELECT 7 * + COUNT ( * ) FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT + 26 DIV + - 54 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT + 26 / + - 54 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9870
SELECT ( col2 ) * - CAST( - col1 AS SIGNED ) AS col2, col2 FROM tab1
----
1344
96
295
59
3196
68

skipif mysql # not compatible
query II rowsort label-9870
SELECT ( col2 ) * - CAST ( - col1 AS INTEGER ) AS col2, col2 FROM tab1
----
1344
96
295
59
3196
68

query I rowsort
SELECT ALL + + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT COUNT( + + col2 ) * + 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT COUNT ( + + col2 ) * + 97 FROM tab0
----
291

query I rowsort
SELECT ALL + + 31 AS col0 FROM tab1 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 38 + - 78 ) <= - col2
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT - - COUNT( + 28 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - - COUNT ( + 28 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - ( + + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9877
SELECT SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + col1 * + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT 2 FROM tab2 AS cor0 WHERE NOT - col0 - col2 IN ( - col0 - - 18 )
----
2
2
2

query I rowsort
SELECT DISTINCT + col1 * + + col0 + + col1 AS col0 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT ALL 30 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL 30 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT MAX( - 93 ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9882
SELECT MAX ( - 93 ) AS col2 FROM tab1
----
-93

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT - - 31 + - col0 * 17 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9885
SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL - + col0 AS col1 FROM tab1 WHERE - col0 + col1 + + - 88 * + ( - ( - - 61 ) ) / + + CAST( NULL AS SIGNED ) - + col1 + - + col2 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - + col0 AS col1 FROM tab1 WHERE - col0 + col1 + + - 88 * + ( - ( - - 61 ) ) / + + CAST ( NULL AS INTEGER ) - + col1 + - + col2 IS NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT col1 + + ( + col0 ), 25 AS col1 FROM tab0
----
108
25
96
25
98
25

query II rowsort
SELECT + 91 + col0 + + col2 * - 50 * - 70 AS col1, - 89 - 52 * - col1 AS col2 FROM tab0 AS cor0
----
164606
4123
346688
-37
35178
1003

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT ALL col2 DIV - col2 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL col2 / - col2 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 54 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT ALL col0 + 88 AS col2, col0 FROM tab1
----
139
51
173
85
179
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL - CAST( + + ( + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL = + col2
----

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL - CAST ( + + ( + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT + 64 + 16 FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9897
SELECT + col2 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT + col2 * CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT + 10 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + 10 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT - + 30 - - 22 * + col0 AS col1 FROM tab1 AS cor0
----
1092
1840
1972

query I rowsort
SELECT ( - col0 ) * 42 - 23 FROM tab2 AS cor0
----
-1955
-2711
-3173

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9901
SELECT * FROM tab2 AS cor0 WHERE 6 - CAST( NULL AS DECIMAL ) + - col1 IS NOT NULL AND col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9901
SELECT * FROM tab2 AS cor0 WHERE 6 - CAST ( NULL AS REAL ) + - col1 IS NOT NULL AND col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 - - - 56 col0 FROM tab0 AS cor0
----
-112
-112
-112

query I rowsort
SELECT + - 76 - col0 FROM tab2 AS cor0
----
-122
-140
-151

query III rowsort
SELECT * FROM tab2 WHERE - + 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9905
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( + col1 AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9905
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( + col1 AS INTEGER ) + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 BETWEEN 27 AND - - col0 * + 10
----
87
21
10
97
1
99

query I rowsort
SELECT 71 * - 8 + ( + 13 ) FROM tab1
----
-555
-555
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + 4 + - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT + 4 + - COUNT ( * ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT 36 DIV + + col1 + + - col1 FROM tab0
----
-20
-81
35

skipif mysql # not compatible
query I rowsort label-9909
SELECT 36 / + + col1 + + - col1 FROM tab0
----
-20
-81
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - 22 + + COUNT( * ) col2 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9910
SELECT - 22 + + COUNT ( * ) col2 FROM tab2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT 96 * - 0 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9911
SELECT 96 * - 0 / - col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + MAX( + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9912
SELECT + MAX ( + col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT ALL col2, + 42 AS col2 FROM tab2
----
23
42
40
42
58
42

query I rowsort
SELECT ALL + col0 * + col2 * - + col2 * - col1 FROM tab1
----
1479425
19776848
6580224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + MAX( ALL 88 ) AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9916
SELECT + MAX ( ALL 88 ) AS col1 FROM tab1 AS cor0
----
88

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL <> + col0 * col2 * + - col1 )
----

query I rowsort
SELECT DISTINCT 64 * - + col1 AS col1 FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT + 9 + + 96 FROM tab2
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - COUNT( * ) + + ( - 35 ) AS col2 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-9920
SELECT - COUNT ( * ) + + ( - 35 ) AS col2 FROM tab0
----
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 - + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col1 ) + - + col0 NOT BETWEEN NULL AND + col1 * + col2 + - - col1 + - 68 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) * - + 68 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) * - + 68 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - ( 10 ) + - 22 = + + 50 * + col1 - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + CAST( + 46 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
4002
4462
690

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + CAST ( + 46 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
4002
4462
690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL - MAX( - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - MAX ( - col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - col2 + - + col2 AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL - COUNT( - + 30 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL - COUNT ( - + 30 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - + 49 / - 68 * + col2 FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL + - col1 + 49 AS col1 FROM tab1 cor0
----
2
35
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT DISTINCT 75 DIV col2 AS col1 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT 75 / col2 AS col1 FROM tab2 AS cor0
----
1
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 55 * + col0 + + col0 * - 64 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > + col0 + - col0
----

query II rowsort
SELECT + 82 AS col2, col0 AS col0 FROM tab1
----
82
51
82
85
82
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 > + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT CAST( ( col1 ) AS SIGNED ) * + + col1 - + 76 + - col2 AS col2 FROM tab0
----
-174
355
6438

skipif mysql # not compatible
query I rowsort label-9939
SELECT CAST ( ( col1 ) AS INTEGER ) * + + col1 - + 76 + - col2 AS col2 FROM tab0
----
-174
355
6438

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT 46 * COUNT( * ) * - 77 FROM tab0
----
-10626

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT 46 * COUNT ( * ) * - 77 FROM tab0
----
-10626

query I rowsort
SELECT + - 11 FROM tab1 WHERE NOT + - col0 <> - + col1
----

query II rowsort
SELECT + col1 AS col0, + ( + - 1 ) FROM tab1
----
14
-1
47
-1
5
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 AS col1, - 96 * col0 col1 FROM tab2 AS cor0
----
58
-4416
58
-6144
58
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab1 cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9945
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9945
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT - - ( - - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9946
SELECT DISTINCT - - ( - - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - - ( - + 44 ) * - 10 FROM tab0 AS cor0
----
440
440
440

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + + SUM( col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + + SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - - 58 ) col1, col2 - - col2 FROM tab0 AS cor0
----
58
198
58
20
58
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - COUNT( - 74 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9951
SELECT - COUNT ( - 74 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9952
SELECT DISTINCT col0, col1 / - - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9952
SELECT DISTINCT col0, col1 / - - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL col2 + + col0 * + - 54 FROM tab0
----
-4688
-5139
-763

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + - COUNT( * ) * + ( MIN( ALL col0 ) ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + - COUNT ( * ) * + ( MIN ( ALL col0 ) ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 27
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL BETWEEN NULL AND - 29 + + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL ( - 7 ) * COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL ( - 7 ) * COUNT ( * ) AS col2 FROM tab1
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 + - col0 col1 FROM tab0 cor0
----
-106
-24
-96

query I rowsort
SELECT + col1 * + col1 + - ( ( + 19 ) ) FROM tab1 AS cor0
----
177
2190
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col0 FROM tab0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 >= ( 63 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9963
SELECT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9964
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9964
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) <> ( NULL )
----

query I rowsort
SELECT col2 + 47 AS col2 FROM tab2 WHERE NULL > ( col0 )
----

query I rowsort
SELECT 47 + - 73 * - ( col1 + + ( col1 ) ) AS col0 FROM tab0
----
11873
193
3113

query I rowsort
SELECT DISTINCT - col0 * col1 + col0 * col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col1 + 61 * 25 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) NOT IN ( - col2 * - col2 )
----

query I rowsort
SELECT ALL + 62 * 42 FROM tab2
----
2604
2604
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT col2 DIV 22 AS col1 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-9970
SELECT col2 / 22 AS col1 FROM tab0
----
0
2
4

query I rowsort
SELECT DISTINCT + col0 + + 10 FROM tab1
----
101
61
95

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( 42 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT ALL CAST( + col1 AS SIGNED ) + - col0 AS col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL CAST ( + col1 AS INTEGER ) + - col0 AS col0 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE ( col0 + 55 ) NOT BETWEEN NULL AND - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT + CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9975
SELECT + CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 88 - + col2 FROM tab0
----
-11
41
78

query I rowsort
SELECT + 57 - + 67 AS col0 FROM tab1
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT - COUNT( * ) * 11 - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT - COUNT ( * ) * 11 - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE NOT ( col1 * + col0 ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT 44 + - COUNT( col0 + + col2 / + 64 ) col1 FROM tab0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9983
SELECT 44 + - COUNT ( col0 + + col2 / + 64 ) col1 FROM tab0
----
41

query I rowsort
SELECT col1 FROM tab0 WHERE NULL NOT IN ( - 15 )
----

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT col1 + ( - 56 ) FROM tab0
----
-35
-55
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9989
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( 55 AS SIGNED ) * 68 )
----

skipif mysql # not compatible
query III rowsort label-9989
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( 55 AS INTEGER ) * 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9990
SELECT + SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 20 / + col2 + + col0 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - 92 AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT col1 * col1 NOT IN ( 58 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 + - col1 NOT BETWEEN ( 64 * + col0 ) AND 31
----

query I rowsort
SELECT - + 86 * + col2 AS col2 FROM tab2 AS cor0
----
-1978
-3440
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT - 56 + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
-56

skipif mysql # not compatible
query I rowsort label-9998
SELECT - 56 + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
-56

query I rowsort
SELECT ALL + ( ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

