sqllogictest
Artifact Content
Not logged in

Artifact 59a67b382dfd82dee38ca703764bbd7b59f67931:


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 WHER