sqllogictest
Artifact Content
Not logged in

Artifact 6b5d84c8c1f83b6c566c8b1be14e95b2ea30c302:


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 I rowsort
SELECT DISTINCT + 24 * - col0 AS col2 FROM tab0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - - 59 < + 55 + - col1
----
3

skipif mysql # not compatible
query I rowsort label-1
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - 59 < + 55 + - col1
----
3

query I rowsort
SELECT DISTINCT col2 * + ( - - 29 ) FROM tab0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query II rowsort label-3
SELECT ALL - COUNT( * ) AS col1, + 65 AS col0 FROM tab1
----
-3
65

skipif mysql # not compatible
query II rowsort label-3
SELECT ALL - COUNT ( * ) AS col1, + 65 AS col0 FROM tab1
----
-3
65

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

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

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

query II rowsort
SELECT + col0 AS col2, + col0 * col0 AS col1 FROM tab0 cor0
----
15
225
87
7569
97
9409

query II rowsort
SELECT ALL - col1 AS col0, 34 * + + col2 AS col2 FROM tab1 AS cor0
----
-14
3264
-47
2312
-5
2006

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 35 + - + 24 * + + 74 AND NULL
----

query I rowsort
SELECT DISTINCT + 37 * + col2 FROM tab0 AS cor0
----
1739
3663
370

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT - 15 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT DISTINCT ( - COUNT( * ) ) * - MIN( + + 96 ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT ( - COUNT ( * ) ) * - MIN ( + + 96 ) AS col0 FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL 85 * + + COUNT( * ) AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL 85 * + + COUNT ( * ) AS col2 FROM tab0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-14
SELECT ALL + CAST( AVG ( - - col1 ) AS SIGNED ) + + 8 * 52 FROM tab0 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + CAST ( AVG ( - - col1 ) AS INTEGER ) + + 8 * 52 FROM tab0 AS cor0
----
450

query I rowsort
SELECT ALL - col1 * + - 55 + col0 FROM tab0 AS cor0
----
1242
152
4470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-16
SELECT ALL + CAST( - ( - + col0 ) AS SIGNED ) + - + ( + + 30 ) FROM tab1 AS cor0
----
21
55
61

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + CAST ( - ( - + col0 ) AS INTEGER ) + - + ( + + 30 ) FROM tab1 AS cor0
----
21
55
61

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 cor0
----
72

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT DISTINCT col0 DIV + 90 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT col0 / + 90 AS col1 FROM tab1
----
0
1

query II rowsort
SELECT col1 * + col1, 91 AS col0 FROM tab2
----
2601
91
4489
91
5929
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-23
SELECT ALL + 51 * - + CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-23
SELECT ALL + 51 * - + CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 70 AS col2 FROM tab2
----
-24
-6
5

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL - + 13 AS col0 FROM tab1 cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + col2 * 99 - - col1 FROM tab2 AS cor0
----
2328
4037
5809

query I rowsort
SELECT ALL + 69 + + col0 AS col1 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT - + col0 + + + 23 * + - 13 FROM tab0 AS cor0
----
-314
-386
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT col1 * + col0 * CAST( - + 40 AS SIGNED ) AS col0 FROM tab0
----
-3880
-48600
-73080

skipif mysql # not compatible
query I rowsort label-31
SELECT col1 * + col0 * CAST ( - + 40 AS INTEGER ) AS col0 FROM tab0
----
-3880
-48600
-73080

query I rowsort
SELECT col0 * - 75 FROM tab0
----
-1125
-6525
-7275

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

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

query I rowsort
SELECT - col2 * col2 * - 23 FROM tab0 AS cor0
----
225423
2300
50807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT DISTINCT - 97 FROM tab2 AS cor0 WHERE ( NULL ) <= col2 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT - 97 FROM tab2 AS cor0 WHERE ( NULL ) <= col2 / - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 70 * 92 + - col0 FROM tab2 AS cor0
----
-6486
-6504
-6515

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

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

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

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

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col2 + col2 ) = - col1
----
3

query I rowsort
SELECT - 21 * + 60 AS col2 FROM tab1
----
-1260
-1260
-1260

query II rowsort
SELECT ALL + 22, ( + col2 ) AS col2 FROM tab2
----
22
23
22
40
22
58

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

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

skipif mysql # not compatible
query II rowsort label-43
SELECT DISTINCT col0, - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL - 91 * - + col2 FROM tab2
----
2093
3640
5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-45
SELECT ALL ( - - MIN( - CAST( NULL AS SIGNED ) ) ), + 95 col2 FROM tab1
----
NULL
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-45
SELECT ALL ( - - MIN ( - CAST ( NULL AS INTEGER ) ) ), + 95 col2 FROM tab1
----
NULL
95

query I rowsort
SELECT + - 79 + col1 FROM tab2 AS cor0
----
-12
-2
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT + col0 DIV - 66 + 36 + + + col0 AS col1 FROM tab0 AS cor0
----
122
132
51

skipif mysql # not compatible
query I rowsort label-47
SELECT + col0 / - 66 + 36 + + + col0 AS col1 FROM tab0 AS cor0
----
122
132
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL + CAST( NULL AS SIGNED ) * 97 + + COUNT( ALL + ( 44 ) ) * SUM( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + CAST ( NULL AS INTEGER ) * 97 + + COUNT ( ALL + ( 44 ) ) * SUM ( col2 ) FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT 24 * col2 AS col0 FROM tab1
----
1416
1632
2304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT col2 + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT col2 + col2 < NULL
----
0

query I rowsort
SELECT ALL 65 * col2 AS col2 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-56
SELECT ALL * FROM tab2 WHERE NOT - 23 > 5 * col0 + - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-56
SELECT ALL * FROM tab2 WHERE NOT - 23 > 5 * col0 + - CAST ( NULL AS INTEGER ) * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 87 + 14 BETWEEN - 66 AND - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 13 ) * - 29 AND - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE ( col2 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 12 * + col1 + + 53 FROM tab1
----
-115
-511
-7

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

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

query I rowsort
SELECT DISTINCT col0 + 94 AS col0 FROM tab1
----
145
179
185

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT 42 DIV - col0 col1 FROM tab1 WHERE NOT + col1 IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-65
SELECT 42 / - col0 col1 FROM tab1 WHERE NOT + col1 IS NULL
----
0
0
0

query I rowsort
SELECT ALL 73 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + col1 * col2 AS col0 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT + col1 + 74 FROM tab0
----
155
75
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-69
SELECT * FROM tab1 WHERE NULL NOT IN ( + CAST( ( 57 ) AS DECIMAL ) * 90 )
----

skipif mysql # not compatible
query III rowsort label-69
SELECT * FROM tab1 WHERE NULL NOT IN ( + CAST ( ( 57 ) AS REAL ) * 90 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-70
SELECT + CAST( 17 AS SIGNED ) + - MAX( DISTINCT - 24 ) DIV - 62 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-70
SELECT + CAST ( 17 AS INTEGER ) + - MAX ( DISTINCT - 24 ) / - 62 FROM tab2
----
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-72
SELECT col0 DIV + ( - col2 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-72
SELECT col0 / + ( - col2 * col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 16
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL 87 DIV + col0 AS col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL 87 / + col0 AS col1 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT ( col2 ) * 3 FROM tab2 WHERE NOT + 37 NOT BETWEEN NULL AND col1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 17 ) col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT 13 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + col1 >= ( col2 )
----
13
13

query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND 64 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT + MAX( ALL 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT + MAX ( ALL 68 ) FROM tab1 AS cor0
----
68

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 55 IN ( col0 + - col1 )
----
-23
-40
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT + MAX( DISTINCT 69 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + MAX ( DISTINCT 69 ) FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT SUM( ALL 51 ) col0 FROM tab0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-88
SELECT DISTINCT SUM ( ALL 51 ) col0 FROM tab0
----
153

query I rowsort
SELECT ALL - 69 + + 64 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT ALL col1 + - ( col0 ) - + col0 FROM tab0
----
-153
-193
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL + 57 + COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + 57 + COUNT ( * ) FROM tab0 AS cor0
----
60

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

query I rowsort
SELECT 50 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND ( - col2 )
----

query I rowsort
SELECT + col1 * - 89 AS col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN - col0 * 87 + + 65 * + ( col2 + ( 8 + - col1 * col1 ) * 67 ) AND NULL
----

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

query I rowsort
SELECT DISTINCT + - 2 + col2 + + - col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL + 47 + - 53 FROM tab2 cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col0 * - + col0 + + 1 + 15 FROM tab1 AS cor0
----
-2585
-7209
-8265

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-103
SELECT * FROM tab1 AS cor0 WHERE ( col2 + 51 - CAST( NULL AS SIGNED ) ) NOT BETWEEN + 52 * + 51 AND NULL
----

skipif mysql # not compatible
query III rowsort label-103
SELECT * FROM tab1 AS cor0 WHERE ( col2 + 51 - CAST ( NULL AS INTEGER ) ) NOT BETWEEN + 52 * + 51 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 17 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 17 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL 71 * col0 - col1 AS col0 FROM tab0 AS cor0
----
6156
6886
984

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT + - MIN( col2 ) * - 50 - 38 col1 FROM tab2 AS cor0
----
1112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-107
SELECT DISTINCT + - MIN ( col2 ) * - 50 - 38 col1 FROM tab2 AS cor0
----
1112

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT - 24 - COUNT( col0 ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - 24 - COUNT ( col0 ) AS col2 FROM tab2
----
-27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-109
SELECT ( + CAST ( NULL AS REAL ) ) * + col0 - + col1 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 - ( + col1 ) FROM tab2
----
-62
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT COUNT( * ) * 45 - - COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-111
SELECT COUNT ( * ) * 45 - - COUNT ( * ) FROM tab1
----
138

query I rowsort
SELECT - col0 * + 55 AS col1 FROM tab1
----
-2805
-4675
-5005

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 BETWEEN - col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 95 / col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 + - 85 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT ALL + 84 DIV - col1 FROM tab1 AS cor0
----
-1
-16
-6

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + 84 / - col1 FROM tab1 AS cor0
----
-1
-16
-6

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 / - col1 * - col0 )
----

query II rowsort
SELECT - col2, col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
102
170
182

query II rowsort
SELECT + 42, 0 FROM tab0 WHERE NOT NULL = NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT DISTINCT + - 58 * - CAST( NULL AS SIGNED ) + + COUNT( * ) * + 1 AS col0 FROM tab0 AS cor0 WHERE NOT 71 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT + - 58 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 1 AS col0 FROM tab0 AS cor0 WHERE NOT 71 <= NULL
----
NULL

query I rowsort
SELECT + 10 FROM tab2 cor0 WHERE NOT col2 <> + + col2
----
10
10
10

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

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - 20 + + - 95 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col1 + 64 = ( col0 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT col1 DIV + 79 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-133
SELECT col1 / + 79 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( - 30 ) AS col1 FROM tab0
----
30
30
30

query II rowsort
SELECT ALL 52, ( + col1 ) FROM tab2
----
52
51
52
67
52
77

query I rowsort
SELECT ALL 87 + - 84 + + 36 FROM tab0
----
39
39
39

query I rowsort
SELECT DISTINCT + + ( AVG ( - col1 ) ) FROM tab2 AS cor0 WHERE - col2 * col1 * - 99 < + + 82
----
NULL

query II rowsort
SELECT + col1 AS col2, ( + col2 ) AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE - col0 * + col2 - 20 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 - - col0 col1 FROM tab1 WHERE - - col1 * - - col1 * + col0 NOT BETWEEN - col0 * + - col2 + col0 * + 15 AND ( NULL )
----
109

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

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

query I rowsort
SELECT DISTINCT col2 * - 34 AS col0 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT DISTINCT + - col0 DIV - 78 + - 56 AS col0 FROM tab0 AS cor0
----
-55
-56

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + - col0 / - 78 + - 56 AS col0 FROM tab0 AS cor0
----
-55
-56

query I rowsort
SELECT col1 - - + col0 FROM tab2 AS cor0
----
141
142
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT - ( - COUNT( * ) ) * + 76 + COUNT( * ) + - 75 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - ( - COUNT ( * ) ) * + 76 + COUNT ( * ) + - 75 FROM tab2 AS cor0
----
156

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL COUNT( DISTINCT + + col0 ) + + 5 FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL COUNT ( DISTINCT + + col0 ) + + 5 FROM tab1 cor0
----
8

query I rowsort
SELECT - col2 + + - 43 AS col2 FROM tab1 cor0
----
-102
-111
-139

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-152
SELECT - ( + CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE 35 IS NULL
----

skipif mysql # not compatible
query I rowsort label-152
SELECT - ( + CAST ( NULL AS REAL ) ) FROM tab2 WHERE 35 IS NULL
----

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

query II rowsort
SELECT DISTINCT 81 AS col2, - 60 * - col1 * + - col1 * - - 6 FROM tab2
----
81
-1616040
81
-2134440
81
-936360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT ALL - SUM( DISTINCT + + 5 ) * COUNT( + col1 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - SUM ( DISTINCT + + 5 ) * COUNT ( + col1 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-156
SELECT SUM( ALL ( + col1 ) ) AS col2, + MAX( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
103
99

skipif mysql # not compatible
query II rowsort label-156
SELECT SUM ( ALL ( + col1 ) ) AS col2, + MAX ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
103
99

query I rowsort
SELECT + 47 * - col0 * + 27 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
2685204
5197824
7138125

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT DISTINCT col2 DIV + + 75 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT col2 / + + 75 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT DISTINCT + 97 DIV + + col1 FROM tab0 AS cor0
----
1
4
97

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + 97 / + + col1 FROM tab0 AS cor0
----
1
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT + col1 DIV + col2 - 57 + + - col1 AS col0 FROM tab1 AS cor0
----
-104
-62
-71

skipif mysql # not compatible
query I rowsort label-160
SELECT + col1 / + col2 - 57 + + - col1 AS col0 FROM tab1 AS cor0
----
-104
-62
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT DISTINCT ( - + MAX( DISTINCT - - col1 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT ( - + MAX ( DISTINCT - - col1 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL - + COUNT( * ) * + 49 col2 FROM tab0 AS cor0
----
-147

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

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

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

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

query I rowsort
SELECT + - col2 + - 6 AS col2 FROM tab2 AS cor0
----
-29
-46
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-167
SELECT + 46 * + ( CAST( NULL AS SIGNED ) ) - COUNT( + col2 ) + + - COUNT( - 64 ) AS col0, + 42 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-167
SELECT + 46 * + ( CAST ( NULL AS INTEGER ) ) - COUNT ( + col2 ) + + - COUNT ( - 64 ) AS col0, + 42 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 IN ( + 81, - ( ( - + col0 ) ) - + 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + ( + col2 ) AS col2, 19 FROM tab0 AS cor0
----
10
19
47
19
99
19

query I rowsort
SELECT ALL + col1 * + 92 FROM tab1
----
1288
4324
460

query I rowsort
SELECT ALL col0 * - col2 * + 36 FROM tab0
----
-25380
-31320
-345708

query I rowsort
SELECT - 26 * + col1 * - + col0 * col1 AS col1 FROM tab0
----
2522
2558790
997542

query I rowsort
SELECT - 92 * - + col2 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT + 29 - + col0 AS col0 FROM tab0 AS cor0
----
-58
-68
14

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + COUNT( * ) + 74 col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-176
SELECT + COUNT ( * ) + 74 col2 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-178
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) <> + - 58 * ( - 48 )
----

skipif mysql # not compatible
query I rowsort label-178
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) <> + - 58 * ( - 48 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-179
SELECT ALL - col0 + - - 16 DIV - 72 + - + col1 AS col2, col0 + - - col1 FROM tab2 AS cor0
----
-141
141
-142
142
-97
97

skipif mysql # not compatible
query II rowsort label-179
SELECT ALL - col0 + - - 16 / - 72 + - + col1 AS col2, col0 + - - col1 FROM tab2 AS cor0
----
-141
141
-142
142
-97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT DISTINCT 42 AS col0, COUNT( * ) FROM tab2 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-180
SELECT DISTINCT 42 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
42
3

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

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

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

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

skipif mysql # not compatible
query I rowsort label-183
SELECT + - MIN ( 88 ) FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT COUNT( * ) * COUNT( * ) DIV ( + COUNT( * ) ) col2 FROM tab2
----
3

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 + + col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT - 41 * - 77 FROM tab1
----
3157

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * - - 0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-190
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 79 + + + 73 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
152
152
152

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-192
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= ( - 69 )
----

skipif mysql # not compatible
query III rowsort label-192
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= ( - 69 )
----

query II rowsort
SELECT 36 AS col0, col2 FROM tab2
----
36
23
36
40
36
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL - col0 * + - col2 DIV + col2 + - + col0 * + - col2 FROM tab1
----
4947
5100
6279

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - col0 * + - col2 / + col2 + - + col0 * + - col2 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT DISTINCT COUNT( * ) + + + 35 - - COUNT( * ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT COUNT ( * ) + + + 35 - - COUNT ( * ) FROM tab1 AS cor0
----
41

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT - MIN( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT - MIN ( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT + COUNT( * ) * + COUNT( * ) + - MAX( ALL ( col0 ) ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-200
SELECT + COUNT ( * ) * + COUNT ( * ) + - MAX ( ALL ( col0 ) ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + 26 * + - col1 AS col1 FROM tab1 AS cor0
----
-1222
-130
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT ALL - + CAST( + 86 AS SIGNED ) + - 51 col2 FROM tab1 cor0 WHERE NOT + col1 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-202
SELECT ALL - + CAST ( + 86 AS INTEGER ) + - 51 col2 FROM tab1 cor0 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT + 55 * + ( + - 96 ) + col2 FROM tab0 AS cor0
----
-5181
-5233
-5270

query I rowsort
SELECT DISTINCT + col1 * - 31 AS col0 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 76 * 61 - 96 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT 99 + + - MIN( - 80 ) col2 FROM tab0
----
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-206
SELECT 99 + + - MIN ( - 80 ) col2 FROM tab0
----
179

query I rowsort
SELECT ALL + 46 * 96 FROM tab2
----
4416
4416
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT ALL ( - - 66 ) DIV + + col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL ( - - 66 ) / + + col0 AS col1 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 ) NOT BETWEEN 5 AND - - 18 + + + col2 + col0 * + 8
----
97
1
99

query II rowsort
SELECT DISTINCT 9 + + - col1 + col2 * col2, + 22 AS col1 FROM tab0
----
2137
22
88
22
9809
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL - COUNT( * ) / 83 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - COUNT ( * ) / 83 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT DISTINCT - col2 * + 27 + + 70 - + CAST( - 34 AS SIGNED ) + - - col1 * - - 33 * - - col1 FROM tab2
----
146675
194681
85316

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT - col2 * + 27 + + 70 - + CAST ( - 34 AS INTEGER ) + - - col1 * - - 33 * - - col1 FROM tab2
----
146675
194681
85316

query I rowsort
SELECT ALL col0 - + + 87 FROM tab0 AS cor0
----
-72
0
10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT + 62 * - + ( + col1 ) - col1 + 33 + CAST( NULL AS SIGNED ) * - col1 * + 95 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT + 62 * - + ( + col1 ) - col1 + 33 + CAST ( NULL AS INTEGER ) * - col1 * + 95 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-219
SELECT * FROM tab2 cor0 WHERE col0 IN ( + 71 * + col2 + + CAST( + 83 AS SIGNED ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-219
SELECT * FROM tab2 cor0 WHERE col0 IN ( + 71 * + col2 + + CAST ( + 83 AS INTEGER ) - + col2 )
----

query I rowsort
SELECT + + ( + 21 ) FROM tab0 cor0
----
21
21
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT - COUNT( + - 68 ) * - 41 FROM tab1 AS cor0 WHERE NOT 35 <= - + ( - col1 ) + - col1 + col2 / - + col1
----
123

skipif mysql # not compatible
query I rowsort label-222
SELECT - COUNT ( + - 68 ) * - 41 FROM tab1 AS cor0 WHERE NOT 35 <= - + ( - col1 ) + - col1 + col2 / - + col1
----
123

query I rowsort
SELECT DISTINCT + 12 FROM tab1 AS cor0 WHERE NOT 29 IS NULL
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 46, 40 + - 8 * + 6 )
----

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT + ( - - col2 ) FROM tab2 AS cor0 WHERE NOT - 88 = + col0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-227
SELECT * FROM tab1 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN - - col1 AND 72
----

skipif mysql # not compatible
query III rowsort label-227
SELECT * FROM tab1 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - - col1 AND 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT - 99 * + COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-228
SELECT - 99 * + COUNT ( * ) FROM tab0
----
-297

query II rowsort
SELECT DISTINCT + col1, + ( + col1 ) FROM tab1
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 66 col0, - col1 FROM tab2
----
66
-51
66
-67
66
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-231
SELECT - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-231
SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-232
SELECT + 38, 21 DIV + COUNT( * ) AS col2 FROM tab0
----
38
7

skipif mysql # not compatible
query II rowsort label-232
SELECT + 38, 21 / + COUNT ( * ) AS col2 FROM tab0
----
38
7

query II rowsort
SELECT col1, 97 + - 79 FROM tab0 AS cor0
----
1
18
21
18
81
18

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT ALL - 35 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-35
3

skipif mysql # not compatible
query II rowsort label-236
SELECT ALL - 35 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-35
3

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

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE 93 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / + - col0 < - col2 * col2
----

query I rowsort
SELECT ALL col1 + 61 + + col1 FROM tab2 AS cor0
----
163
195
215

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT COUNT( * ) col0, 66 FROM tab2
----
3
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT DISTINCT - 85 + - + COUNT( + + col1 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT - 85 + - + COUNT ( + + col1 ) FROM tab1
----
-88

query II rowsort
SELECT ALL - col1 AS col1, + 26 AS col2 FROM tab0
----
-1
26
-21
26
-81
26

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT + 52 DIV - - 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-244
SELECT + 52 / - - 89 FROM tab1
----
0
0
0

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

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

query II rowsort
SELECT + 94, + ( col1 ) FROM tab1
----
94
14
94
47
94
5

query II rowsort
SELECT + col1 AS col0, col0 + 49 FROM tab0
----
1
146
21
136
81
64

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT + AVG ( - col1 ) * COUNT( * ) + + 92 FROM tab0 AS cor0 WHERE ( 0 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT + AVG ( - col1 ) * COUNT ( * ) + + 92 FROM tab0 AS cor0 WHERE ( 0 ) NOT BETWEEN NULL AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-249
SELECT + 69 + - 20 * col0 + + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL + col2 AS col0, col1 * + 99 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
2079
47
8019
99
99

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

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

query II rowsort
SELECT ALL - col0 * 74 + - col1 + + col0, + col1 AS col0 FROM tab0 AS cor0
----
-1176
81
-6372
21
-7082
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT ALL MIN( 38 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL MIN ( 38 ) / + COUNT ( * ) FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-255
SELECT + - 30 * + COUNT( * ) AS col1, CAST( 16 AS SIGNED ) FROM tab2 AS cor0
----
-90
16

skipif mysql # not compatible
query II rowsort label-255
SELECT + - 30 * + COUNT ( * ) AS col1, CAST ( 16 AS INTEGER ) FROM tab2 AS cor0
----
-90
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + MAX( - 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-257
SELECT + MAX ( - 17 ) FROM tab1
----
-17

query I rowsort
SELECT 82 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
82
82
82

query I rowsort
SELECT + 56 * - + 19 AS col0 FROM tab2
----
-1064
-1064
-1064

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL + + COUNT( * ) - + + 42 * + COUNT( * ) * + 35 AS col2 FROM tab2 cor0 WHERE NOT col1 * - 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + + COUNT ( * ) - + + 42 * + COUNT ( * ) * + 35 AS col2 FROM tab2 cor0 WHERE NOT col1 * - 87 IS NOT NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col1 / 84 IS NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1, col1 * - col0 * - col0 col0, 68 AS col1 FROM tab2 AS cor0
----
9 values hashing to 23c8698d8c96e1da99312209ad57922f

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-267
SELECT ALL - + COUNT( * ) * - + 47 + + CAST( + + COUNT( * ) AS SIGNED ) * + 33 AS col1 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - + COUNT ( * ) * - + 47 + + CAST ( + + COUNT ( * ) AS INTEGER ) * + 33 AS col1 FROM tab1 AS cor0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 - + + col2 * col0 col0 FROM tab1 AS cor0
----
-4855
-4974
-6147

query I rowsort
SELECT 8 - + col2 * ( - col1 ) * 22 AS col1 FROM tab2 AS cor0
----
25814
67768
85500

query II rowsort
SELECT DISTINCT - col2 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT + - 57 + col2 * + col2 * col2, 34 AS col1 FROM tab2 AS cor0
----
12110
34
195055
34
63943
34

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + MAX( ALL + - ( col2 ) ) + SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-286

skipif mysql # not compatible
query I rowsort label-272
SELECT + MAX ( ALL + - ( col2 ) ) + SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-286

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 83 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT + 66 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT + 66 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL col2 + - col1 + + col0 - - 20 + + col2 * - - col2 * col0 + + - 37 * 35 * - + col2 * + 51 AS col1 FROM tab2 AS cor0
----
1543407
2744247
4082996

query I rowsort
SELECT ALL ( + - 37 ) FROM tab2
----
-37
-37
-37

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

query I rowsort
SELECT - - col0 * ( - col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT - - col1 * - 21 FROM tab2 AS cor0
----
-1071
-1407
-1617

query I rowsort
SELECT - 10 * + col2 AS col2 FROM tab1 cor0
----
-590
-680
-960

query I rowsort
SELECT DISTINCT col2 * - - 9 FROM tab1 AS cor0
----
531
612
864

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

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT + - col0 DIV + 72 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-284
SELECT + - col0 / + 72 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - MAX( + col2 ) + - 3 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - MAX ( + col2 ) + - 3 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT ALL 17 - - SUM( ALL - col1 ), ( + + 51 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-178
51

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL 17 - - SUM ( ALL - col1 ), ( + + 51 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-178
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 * col1 col0 FROM tab2
----
-1785
-2345
-2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 97 + + + 27 + + col1 + + + ( + col2 ) col0 FROM tab1
----
-4810
-8154
-8685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT ALL - 91 * + CAST( - ( ( col0 ) ) AS SIGNED ) AS col1 FROM tab2
----
4186
5824
6825

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - 91 * + CAST ( - ( ( col0 ) ) AS INTEGER ) AS col1 FROM tab2
----
4186
5824
6825

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-292
SELECT CAST( NULL AS SIGNED ) * col0 + + col1 * - col0 - col2 * + + 24 col2, + 43 AS col1 FROM tab0
----
NULL
43
NULL
43
NULL
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-292
SELECT CAST ( NULL AS INTEGER ) * col0 + + col1 * - col0 - col2 * + + 24 col2, + 43 AS col1 FROM tab0
----
NULL
43
NULL
43
NULL
43

query I rowsort
SELECT 66 + col2 * - - col1 AS col0 FROM tab1
----
1410
3262
361

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

skipif mysql # not compatible
query I rowsort label-294
SELECT - CAST ( NULL AS REAL ) + col1 - - - col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 7 * col0 FROM tab2 AS cor0
----
-271
-371
-458

query I rowsort
SELECT - 85 * col1 + - 27 AS col2 FROM tab0 cor0
----
-112
-1812
-6912

query I rowsort
SELECT DISTINCT + + col2 + 32 FROM tab1 cor0
----
100
128
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 8 BETWEEN + + col2 AND - - 21 + - - 6
----

query I rowsort
SELECT + + AVG ( + col0 ) * - 26 + + - 79 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 54 * col1 AND - col1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 52, + col1 )
----

query I rowsort
SELECT DISTINCT - col2 - - ( - col0 ) FROM tab2 AS cor0
----
-104
-133
-69

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

onlyif mysql # DIV for integer division: 
query II rowsort label-303
SELECT DISTINCT 5 DIV + - ( - col0 ) + col1 + + col2, + col0 AS col2 FROM tab2 AS cor0
----
117
64
125
75
74
46

skipif mysql # not compatible
query II rowsort label-303
SELECT DISTINCT 5 / + - ( - col0 ) + col1 + + col2, + col0 AS col2 FROM tab2 AS cor0
----
117
64
125
75
74
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + ( MIN( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-306
SELECT + ( MIN ( + col0 ) ) FROM tab2
----
46

query I rowsort
SELECT ALL col0 - col2 * - 45 - col2 AS col1 FROM tab0
----
2083
4453
527

query II rowsort
SELECT + col2, 33 + + col1 FROM tab0
----
10
54
47
114
99
34

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= ( + col2 )
----

query I rowsort
SELECT - 78 - - 6 + + col1 FROM tab0
----
-51
-71
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT ALL SUM( ALL + - CAST( + col1 AS SIGNED ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL SUM ( ALL + - CAST ( + col1 AS INTEGER ) ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL MAX( DISTINCT + - col1 ) - - - 91 AS col2 FROM tab2
----
-142

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL MAX ( DISTINCT + - col1 ) - - - 91 AS col2 FROM tab2
----
-142

query I rowsort
SELECT ( + col2 ) - - col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT SUM( DISTINCT 3 ) - + 26 AS col0 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-314
SELECT SUM ( DISTINCT 3 ) - + 26 AS col0 FROM tab1
----
-23

query I rowsort
SELECT col0 - + - 98 AS col1 FROM tab2
----
144
162
173

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 * - - 54 + + - ( - 41 ) FROM tab1 cor0
----
-3145
-3631
-5143

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

query I rowsort
SELECT DISTINCT + ( 4 ) FROM tab0 cor0
----
4

query II rowsort
SELECT + 79 * + 17 AS col0, + col0 + col0 * - + 72 + + 96 * - + 72 + - + 66 FROM tab2 AS cor0
----
1343
-10244
1343
-11522
1343
-12303

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

skipif mysql # not compatible
query I rowsort label-322
SELECT - + col1 / - - col1 FROM tab1 AS cor0
----
-1
-1
-1

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ALL + COUNT( * ) * - + 93 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL + COUNT ( * ) * - + 93 FROM tab1
----
-279

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( ( + + col1 ) ) * 12 * + 25 + + 64 * + - 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL + col2 * 48 + + col1 + - + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
1104
1920
2784

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL + col2 * 48 + + col1 + - + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
1104
1920
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL + MIN( 46 ) FROM tab1 AS cor0 WHERE 16 <> - col1
----
46

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + MIN ( 46 ) FROM tab1 AS cor0 WHERE 16 <> - col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT - 85 + COUNT( * ) col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-333
SELECT DISTINCT - 85 + COUNT ( * ) col1 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col1 * 92 IS NULL
----

query I rowsort
SELECT - col2 * - col0 * - col1 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT + ( + 39 ) * COUNT( * ) + - + 2 AS col0 FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-336
SELECT + ( + 39 ) * COUNT ( * ) + - + 2 AS col0 FROM tab0
----
115

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) FROM tab0
----
-705
-870
-9603

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

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

query II rowsort
SELECT - 95 - + + col2, 4 + + col0 AS col0 FROM tab1 AS cor0
----
-154
89
-163
95
-191
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 17 + + ( col2 ) col2 FROM tab1 AS cor0
----
113
76
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 + col2 col1 FROM tab1 cor0
----
27
36
64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT col2 DIV + - col1 + - 43 AS col0 FROM tab2
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-343
SELECT col2 / + - col1 + - 43 AS col0 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT ALL ( - AVG ( - ( - + 2 ) ) ) AS col1 FROM tab0 WHERE NOT ( - 15 * + col2 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + 15 AS col1 FROM tab1
----
51
15
85
15
91
15

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT DISTINCT MIN( ALL - 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT MIN ( ALL - 90 ) FROM tab2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT 52 DIV - SUM( ALL - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT 52 / - SUM ( ALL - col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT 90 * - 71 * - COUNT( * ) * 21 AS col1 FROM tab1
----
402570

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT 90 * - 71 * - COUNT ( * ) * 21 AS col1 FROM tab1
----
402570

query I rowsort
SELECT col1 * + col0 * - col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL ( + + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 58 * + + 83 AS col2 FROM tab2 AS cor0
----
4814
4814
4814

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

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT + - MAX ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-354
SELECT DISTINCT col2 * 47 AS col1 FROM tab0 AS cor0 WHERE NOT ( 67 ) BETWEEN + CAST( NULL AS SIGNED ) AND ( + col1 - col2 * - col0 * + - col2 - + CAST( NULL AS SIGNED ) + + 26 )
----

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT col2 * 47 AS col1 FROM tab0 AS cor0 WHERE NOT ( 67 ) BETWEEN + CAST ( NULL AS INTEGER ) AND ( + col1 - col2 * - col0 * + - col2 - + CAST ( NULL AS INTEGER ) + + 26 )
----

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

query I rowsort
SELECT col2 + col2 - + 28 * 13 AS col0 FROM tab0 cor0
----
-166
-270
-344

query II rowsort
SELECT ALL - 95, - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-95
-8
-95
13
-95
5

query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab0 WHERE NOT - 48 = + 88
----
-50

query I rowsort
SELECT ALL col2 * 70 FROM tab2
----
1610
2800
4060

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL 81 + - + ( - + col1 ) * + - ( + - 85 ) * + ( + col2 ) AS col2 FROM tab1
----
114321
25156
271741

query I rowsort
SELECT 51 * ( - 8 ) AS col1 FROM tab0
----
-408
-408
-408

query I rowsort
SELECT DISTINCT 99 + - + col1 FROM tab0
----
18
78
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT 13 FROM tab0 WHERE ( col1 ) NOT IN ( + col1, + CAST( - col1 AS SIGNED ) * 53 * 62 + + col2 * - + col2 + col2 )
----

skipif mysql # not compatible
query I rowsort label-364
SELECT 13 FROM tab0 WHERE ( col1 ) NOT IN ( + col1, + CAST ( - col1 AS INTEGER ) * 53 * 62 + + col2 * - + col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 * + - col0 - + ( + 26 ) IS NOT NULL
----

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

query I rowsort
SELECT 89 + col1 FROM tab2
----
140
156
166

query I rowsort
SELECT DISTINCT col2 + 72 AS col1 FROM tab0
----
119
171
82

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT + COUNT( * ) * - + 32 AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + COUNT ( * ) * - + 32 AS col2 FROM tab0
----
-96

query I rowsort
SELECT - col2 * - col2 + col2 FROM tab0 cor0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT 80 * + 16 + MAX( + col0 ) AS col1 FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
1371

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT 80 * + 16 + MAX ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
1371

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT DISTINCT - 45 - + 52 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - 45 - + 52 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
111

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-374
SELECT * FROM tab2 WHERE NULL <= - CAST( NULL AS SIGNED ) + - - col2 * - col1
----

skipif mysql # not compatible
query III rowsort label-374
SELECT * FROM tab2 WHERE NULL <= - CAST ( NULL AS INTEGER ) + - - col2 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - SUM( DISTINCT + - 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-376
SELECT - SUM ( DISTINCT + - 70 ) FROM tab0
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT - + SUM( DISTINCT - 90 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT - + SUM ( DISTINCT - 90 ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT - 91 + 45 FROM tab2 cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= - - col1 + - + col2 + + - 60
----

query I rowsort
SELECT - 25 * 49 FROM tab2 AS cor0
----
-1225
-1225
-1225

query II rowsort
SELECT ALL + 98, - 60 + - + ( - 42 ) AS col1 FROM tab1
----
98
-18
98
-18
98
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT - COUNT( * ) * - + 69 col0 FROM tab0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-383
SELECT - COUNT ( * ) * - + 69 col0 FROM tab0
----
207

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

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

query II rowsort
SELECT DISTINCT + col1, col2 * col1 FROM tab0
----
1
99
21
210
81
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL MIN( DISTINCT - + col0 ) * COUNT( * ) AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL MIN ( DISTINCT - + col0 ) * COUNT ( * ) AS col2 FROM tab1
----
-273

query I rowsort
SELECT DISTINCT - 32 + + col0 AS col2 FROM tab2
----
14
32
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

query II rowsort
SELECT ALL + col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

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

query I rowsort
SELECT DISTINCT + 2 * + + col2 AS col0 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT DISTINCT - COUNT( DISTINCT + + 42 ), COUNT( * ) col0 FROM tab2 AS cor0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-392
SELECT DISTINCT - COUNT ( DISTINCT + + 42 ), COUNT ( * ) col0 FROM tab2 AS cor0
----
-1
3

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

query I rowsort
SELECT + 27 + + + ( col1 ) FROM tab0 AS cor0
----
108
28
48

query I rowsort
SELECT - col1 + + + col2 * - 12 FROM tab2 AS cor0
----
-327
-557
-763

query II rowsort
SELECT ALL + col0 + + + col0, col0 FROM tab0 AS cor0
----
174
87
194
97
30
15

query I rowsort
SELECT DISTINCT + col2 * - col2 * - col2 FROM tab2 AS cor0
----
12167
195112
64000

query II rowsort
SELECT ALL + + 25 * - col0 + + col2 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-2165
-21
-2326
-1
-328
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT ALL 17 DIV - col0 - - + 4 + col2 - col2 + col1 AS col0 FROM tab2 AS cor0
----
55
71
81

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL 17 / - col0 - - + 4 + col2 - col2 + col1 AS col0 FROM tab2 AS cor0
----
55
71
81

query II rowsort
SELECT DISTINCT - col0 * + 76 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
-3496
51
-4864
77
-5700
67

query I rowsort
SELECT DISTINCT - 2 + + col0 + col2 + + 32 + - col1 + + - col2 FROM tab2 WHERE NOT - - col2 > - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT + MIN( + ( + - 47 ) ) AS col1, COUNT( * ) col1 FROM tab1
----
-47
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-402
SELECT + MIN ( + ( + - 47 ) ) AS col1, COUNT ( * ) col1 FROM tab1
----
-47
3

onlyif mysql # aggregate syntax: 
query II rowsort label-403
SELECT ALL + COUNT( * ), - 28 AS col1 FROM tab1
----
3
-28

skipif mysql # not compatible
query II rowsort label-403
SELECT ALL + COUNT ( * ), - 28 AS col1 FROM tab1
----
3
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - 56 * 18 + MIN( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
-957

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-404
SELECT - 56 * 18 + MIN ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
-957

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-81

query I rowsort
SELECT ALL - 42 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT - 94 + - ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT 7 + + MAX( - 99 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT 7 + + MAX ( - 99 ) FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - MAX( DISTINCT + 19 ) + 33 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-409
SELECT - MAX ( DISTINCT + 19 ) + 33 FROM tab1 AS cor0
----
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-411
SELECT * FROM tab2 cor0 WHERE ( CAST( - + 77 AS SIGNED ) * - col2 * - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-411
SELECT * FROM tab2 cor0 WHERE ( CAST ( - + 77 AS INTEGER ) * - col2 * - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT ALL 9 col2, - COUNT( * ) FROM tab0
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-412
SELECT ALL 9 col2, - COUNT ( * ) FROM tab0
----
9
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - ( + col1 ) col2 FROM tab1
----
-2538
-270
-756

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN 25 AND - 37
----

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

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

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

query II rowsort
SELECT DISTINCT col2, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT - SUM( ALL - - 63 ) + - MAX( col0 ) AS col2 FROM tab0
----
-286

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT - SUM ( ALL - - 63 ) + - MAX ( col0 ) AS col2 FROM tab0
----
-286

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + 95 BETWEEN - - col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT 2 + - - MIN( - col0 ) / - + 71 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT 2 + - - MIN ( - col0 ) / - + 71 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - 87 * + col1 + - 55 + + + col2 AS col1 FROM tab2 AS cor0
----
-4469
-5826
-6714

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT DISTINCT col2 + + - 16 DIV + 83 + + - col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT col2 + + - 16 / + 83 + + - col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + + ( + ( + 29 ) ) + + + ( + + col0 ) FROM tab0 AS cor0
----
116
126
44

query I rowsort
SELECT col0 + - col0 + + 71 + col0 AS col1 FROM tab2
----
117
135
146

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT COUNT( * ) DIV - - 22 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-427
SELECT COUNT ( * ) / - - 22 + + COUNT ( * ) FROM tab0
----
3

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( - + 84 ) * - 55 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = + 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT DISTINCT + 95 * CAST( col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
2139
3736
5435

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + 95 * CAST ( col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
2139
3736
5435

query I rowsort
SELECT DISTINCT + 86 * + ( - + col0 ) * col1 FROM tab1 AS cor0
----
-36550
-367822
-61404

query II rowsort
SELECT - 46 AS col1, col2 AS col0 FROM tab1 AS cor0
----
-46
59
-46
68
-46
96

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL - COUNT( * ) * - + 81 FROM tab2 WHERE NULL IS NULL
----
243

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - COUNT ( * ) * - + 81 FROM tab2 WHERE NULL IS NULL
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT 92 * - MIN( - - 39 ) FROM tab1
----
-3588

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT 92 * - MIN ( - - 39 ) FROM tab1
----
-3588

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

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

query I rowsort
SELECT + 30 + - 17 AS col2 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-439
SELECT + 35 AS col0, ( 94 ) DIV - + SUM( DISTINCT + + col2 ) FROM tab2
----
35
0

skipif mysql # not compatible
query II rowsort label-439
SELECT + 35 AS col0, ( 94 ) / - + SUM ( DISTINCT + + col2 ) FROM tab2
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ( + 59 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN col0 * col1 * - col2 AND ( - 20 )
----
0

skipif mysql # not compatible
query I rowsort label-440
SELECT ( + 59 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN col0 * col1 * - col2 AND ( - 20 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 10 AS col1, + col2 * - col0 col1 FROM tab1 AS cor0
----
-10
-4896
-10
-5015
-10
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT - 51 + - ( 0 ) + COUNT( - + col0 ) * - 75 * + COUNT( * ) FROM tab1 AS cor0
----
-726

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT - 51 + - ( 0 ) + COUNT ( - + col0 ) * - 75 * + COUNT ( * ) FROM tab1 AS cor0
----
-726

query I rowsort
SELECT + 57 - + 33 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE NULL < col2
----

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

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

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

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

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

query I rowsort
SELECT - col2 + - col0 * + - ( col0 ) FROM tab0
----
178
7559
9310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-450
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + col2 * + col0 >= - - 46 + + col2 + + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + col2 * + col0 >= - - 46 + + col2 + + - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT + 36 DIV - - col0 + - ( + - col2 ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-451
SELECT + 36 / - - col0 + - ( + - col2 ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT col1 + - col2 + + col2 + - ( - - col0 ) * - col2 AS col0 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT col1 + - - col1 * + + col2 AS col1 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT DISTINCT + col2 - 48 + + col2 FROM tab1 AS cor0
----
144
70
88

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

query I rowsort
SELECT ALL - ( + + col1 ) / col1 * 47 + + 6 AS col1 FROM tab1 WHERE - col1 + + 88 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * + + 21 col1 FROM tab0
----
777
777
777

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL MIN( 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL MIN ( 71 ) FROM tab2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-460
SELECT - 3 * col1 * col0, - col0 + + 35 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-291
NULL
-3645
NULL
-5481
NULL

skipif mysql # not compatible
query II rowsort label-460
SELECT - 3 * col1 * col0, - col0 + + 35 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-291
NULL
-3645
NULL
-5481
NULL

query I rowsort
SELECT - + 77 * + col0 * - ( - + 95 ) FROM tab0 AS cor0
----
-109725
-636405
-709555

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( + ( - 96 ), col2, + 34, + 95, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + + col0 + - col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + 67 * 38 + COUNT( * ) AS col1 FROM tab1 cor0
----
2549

skipif mysql # not compatible
query I rowsort label-464
SELECT + 67 * 38 + COUNT ( * ) AS col1 FROM tab1 cor0
----
2549

query I rowsort
SELECT + + ( + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT + 87, - 74 AS col0 FROM tab2 AS cor0
----
87
-74

query III rowsort
SELECT DISTINCT + col1 AS col1, col1 * - - col0, ( + col0 ) FROM tab1 AS cor0
----
9 values hashing to 61bb8b30eb844e048dceaaff083ce023

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE + col2 = - - 35
----
0

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE + col2 = - - 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-469
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - col2 + + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-469
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - col2 + + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - 3 * col1 FROM tab1
----
-141
-15
-42

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

skipif mysql # not compatible
query I rowsort label-472
SELECT CAST ( + 19 AS INTEGER ) FROM tab0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-473
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND CAST( - col0 AS SIGNED ) - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-473
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND CAST ( - col0 AS INTEGER ) - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - + col1 * + ( col0 ) AS col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT - 10 * - SUM( - col1 ) FROM tab0
----
-1030

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT - 10 * - SUM ( - col1 ) FROM tab0
----
-1030

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-476
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-477
SELECT DISTINCT - 27 col2, + ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-27
3

query I rowsort
SELECT ( + - col0 ) * + 49 AS col1 FROM tab0 AS cor0
----
-4263
-4753
-735

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

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

query I rowsort
SELECT ALL 75 * col0 FROM tab2
----
3450
4800
5625

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL CAST( - col2 AS SIGNED ) * + 95 AS col1 FROM tab1 AS cor0
----
-5605
-6460
-9120

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL CAST ( - col2 AS INTEGER ) * + 95 AS col1 FROM tab1 AS cor0
----
-5605
-6460
-9120

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

query I rowsort
SELECT + col2 + + col0 + - + col2 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE + col0 + 25 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL + - 94 * MIN( ALL col1 ) FROM tab2 cor0
----
-4794

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + - 94 * MIN ( ALL col1 ) FROM tab2 cor0
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT 18 * COUNT( - + 78 ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-488
SELECT 18 * COUNT ( - + 78 ) AS col0 FROM tab1
----
54

query I rowsort
SELECT DISTINCT - 9 - col1 FROM tab1
----
-14
-23
-56

query I rowsort
SELECT col2 * - + 46 AS col0 FROM tab1
----
-2714
-3128
-4416

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

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

query I rowsort
SELECT col2 - - - 92 AS col0 FROM tab0
----
-45
-82
7

query I rowsort
SELECT ( + 69 ) - - + 50 FROM tab1
----
119
119
119

query I rowsort
SELECT col1 - 50 FROM tab2
----
1
17
27

query II rowsort
SELECT + 94, - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
94
-51
94
-67
94
-77

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT ( NULL ) IN ( + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab0 WHERE + col2 NOT BETWEEN - 81 AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE + col2 NOT BETWEEN - 81 AND ( col2 )
----
0

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

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

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

query I rowsort
SELECT + col0 * + 59 FROM tab2 WHERE ( + 0 * 73 ) IS NOT NULL
----
2714
3776
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 WHERE 20 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 WHERE 20 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 99 ) * - 65 + - 18 IN ( - col0 / 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 / + col1 AS col1 FROM tab0 WHERE NULL > ( col1 )
----

query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab1 WHERE ( - 85 ) - - col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * col1 AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
-210
-3807
-99

query I rowsort
SELECT ALL - 27 + - col1 AS col1 FROM tab1
----
-32
-41
-74

query I rowsort
SELECT - 12 FROM tab0 WHERE NOT ( ( 60 ) / - col0 ) IS NULL
----
-12
-12
-12

query I rowsort
SELECT 76 * col2 + col0 FROM tab2
----
1794
3104
4483

query I rowsort
SELECT col2 + - 9 AS col1 FROM tab0
----
1
38
90

query I rowsort
SELECT ALL + ( - 93 ) FROM tab1
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - 85 + col1 FROM tab1 WHERE NOT 88 NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT col1 + col0 FROM tab1 WHERE NULL = ( - col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) * col2 + col2 ) < + col0
----

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) * col2 + col2 ) < + col0
----

query I rowsort
SELECT ( col1 ) + 57 FROM tab1
----
104
62
71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + 64 >= + col0 * 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ( + MAX( ALL - col2 ) ) + - ( 9 ) AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-520
SELECT ( + MAX ( ALL - col2 ) ) + - ( 9 ) AS col1 FROM tab2
----
-32

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab2 WHERE NOT + col1 * col1 NOT IN ( col0 * + 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT + 4 FROM tab2 WHERE NOT NULL BETWEEN 13 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-522
SELECT + 4 FROM tab2 WHERE NOT NULL BETWEEN 13 AND + CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT 87 * - col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
-1401
-2036
361

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT COUNT( * ) + + MIN( - col2 + col2 * 35 ) AS col2 FROM tab1 cor0
----
2009

skipif mysql # not compatible
query I rowsort label-526
SELECT COUNT ( * ) + + MIN ( - col2 + col2 * 35 ) AS col2 FROM tab1 cor0
----
2009

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL + COUNT( * ) * 74 FROM tab0 AS cor0 CROSS JOIN tab1
----
666

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL + COUNT ( * ) * 74 FROM tab0 AS cor0 CROSS JOIN tab1
----
666

query I rowsort
SELECT DISTINCT - 61 FROM tab2 WHERE NOT NULL <> - 95 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 0 - 29 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( 71 ) AS col0 FROM tab0 WHERE NOT 16 + - col0 IS NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT 22 + + MAX( col2 ) FROM tab1 cor0
----
118

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 22 + + MAX ( col2 ) FROM tab1 cor0
----
118

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

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT + - col1 DIV - col2 - col1 AS col0 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-535
SELECT + - col1 / - col2 - col1 AS col0 FROM tab2 AS cor0
----
-49
-66
-76

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

query I rowsort
SELECT + - col2 + 57 FROM tab2 AS cor0
----
-1
17
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 65 + col2 col1 FROM tab2 AS cor0
----
1518
2640
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col2 FROM tab2 AS cor0
----
-17
-23
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 2 + ( COUNT( * ) ) * COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-541
SELECT 2 + ( COUNT ( * ) ) * COUNT ( * ) FROM tab0 AS cor0
----
11

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

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

query I rowsort
SELECT 38 + col2 + col2 FROM tab2
----
118
154
84

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT ALL - 43 DIV col0 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - 43 / col0 AS col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col1 - - ( - col2 ) * col1 AS col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT - 68 DIV - 57 FROM tab1 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-546
SELECT - 68 / - 57 FROM tab1 WHERE NULL IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT - MAX( DISTINCT 45 ) col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-547
SELECT - MAX ( DISTINCT 45 ) col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-45

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL - MAX( DISTINCT - 26 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-551
SELECT ALL - MAX ( DISTINCT - 26 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT + + col0 DIV + 23 FROM tab1 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-552
SELECT + + col0 / + 23 FROM tab1 AS cor0
----
2
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT DISTINCT - col0 DIV + ( col1 ) AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT - col0 / + ( col1 ) AS col1 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT ALL 36 FROM tab2 WHERE - - 11 = ( + 75 - col0 / + 50 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT + - 88 * - COUNT( * ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-556
SELECT + - 88 * - COUNT ( * ) FROM tab2 AS cor0
----
264

query I rowsort
SELECT - col1 * + 39 * - - col1 + col1 FROM tab2 AS cor0
----
-101388
-175004
-231154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-558
SELECT - ( + - CAST( + COUNT( * ) AS SIGNED ) ) * MAX( DISTINCT col2 * - col0 ) FROM tab1 AS cor0
----
-14688

skipif mysql # not compatible
query I rowsort label-558
SELECT - ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) * MAX ( DISTINCT col2 * - col0 ) FROM tab1 AS cor0
----
-14688

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 WHERE NOT + col0 * - - col2 IS NULL
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-562
SELECT ALL - col1 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-562
SELECT ALL - col1 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT - col2 / - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT - COUNT( DISTINCT 39 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT - COUNT ( DISTINCT 39 ) AS col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 + + 55 OR - col1 IN ( + col2 )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-568
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT 29 AS col2 FROM tab0 WHERE - col0 IS NULL AND NULL IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-572
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + + col2 + + + col1 + - 88 AS col0 FROM tab2
----
-11
-21
-37

query I rowsort
SELECT ALL - col0 + 55 FROM tab2
----
-20
-9
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT + - ( + col1 ) * ( 95 ) DIV 85 AS col1 FROM tab0 cor0
----
-1
-23
-90

skipif mysql # not compatible
query I rowsort label-577
SELECT + - ( + col1 ) * ( 95 ) / 85 AS col1 FROM tab0 cor0
----
-1
-23
-90

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( 89 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 5 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( - col0 ) * - col1 * 12 + ( col1 ) FROM tab2 AS cor0
----
28203
59213
60367

query I rowsort
SELECT + + col0 + - - col2 + + 71 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-572
-702
-9336

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 < ( - + 21 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT - ( + 58 ) DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-583
SELECT - ( + 58 ) / - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN ( 39 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN ( 39 ) AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + 21 )
----

query I rowsort
SELECT + 25 FROM tab0 cor0 WHERE col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 41 * + 64
----

query I rowsort
SELECT DISTINCT col1 - - + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL + MIN( col0 ) - - 51 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL + MIN ( col0 ) - - 51 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
100

query I rowsort
SELECT - ( + col0 ) - 7 AS col1 FROM tab0
----
-104
-22
-94

query I rowsort
SELECT ALL 54 - - - col0 * col2 FROM tab1
----
-4842
-4961
-6134

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 55 + - + col2 ) NOT BETWEEN ( NULL ) AND ( - 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - + col0 * + col1 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT - col2 - - 42 * - 20 AS col1 FROM tab0
----
-850
-887
-939

query I rowsort
SELECT - 0 * - col1 * + col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 25 * - ( - col1 ) AS col0 FROM tab1
----
-1175
-125
-350

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( ( - + 3 ) ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 77 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT SUM( ALL + - 22 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-602
SELECT SUM ( ALL + - 22 ) FROM tab1 cor0
----
-66

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + col0 + - col2 * + col2 NOT IN ( - - col2 )
----
-51
-67
-77

query I rowsort
SELECT - 81 * - ( col0 ) FROM tab2 AS cor0
----
3726
5184
6075

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col1 * col0 NOT IN ( - 52 )
----

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

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

query II rowsort
SELECT - 17, + col1 + col2 AS col0 FROM tab1
----
-17
110
-17
115
-17
64

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT ALL + COUNT( * ) AS col1, - 91 AS col0 FROM tab0
----
3
-91

skipif mysql # not compatible
query II rowsort label-609
SELECT ALL + COUNT ( * ) AS col1, - 91 AS col0 FROM tab0
----
3
-91

query II rowsort
SELECT - col0 AS col0, 82 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
82
-87
82
-97
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col0 ) <= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - 5 + - COUNT( * ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-614
SELECT - 5 + - COUNT ( * ) AS col2 FROM tab2
----
-8

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

query I rowsort
SELECT DISTINCT + 18 + + - col0 - + - ( - col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
-3548
-4697
-9249

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

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

query I rowsort
SELECT DISTINCT ( 58 ) FROM tab2
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL - MIN( - col1 ) + 99 FROM tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL - MIN ( - col1 ) + 99 FROM tab2 AS cor0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - 0 * - + ( 78 ) * + 35 * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-622
SELECT - 0 * - + ( 78 ) * + 35 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

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

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

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

query I rowsort
SELECT - col0 * + col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-627
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-627
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 5 AS col0, col2 FROM tab0
----
5
10
5
47
5
99

query II rowsort
SELECT ALL col2, - 28 AS col1 FROM tab0
----
10
-28
47
-28
99
-28

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 24 = + 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT DISTINCT - SUM( + - col2 ) * - COUNT( * ) * + + 91 FROM tab2
----
-33033

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - SUM ( + - col2 ) * - COUNT ( * ) * + + 91 FROM tab2
----
-33033

query I rowsort
SELECT ALL + 38 * + ( col2 ) * 69 - - col0 AS col2 FROM tab2
----
104944
152151
60352

query I rowsort
SELECT + ( 31 ) * + col0 * 82 FROM tab0
----
221154
246574
38130

query I rowsort
SELECT - 18 * - - 34 AS col2 FROM tab0 cor0
----
-612
-612
-612

query I rowsort
SELECT ALL - - ( + 91 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
91
91
91

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

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

query I rowsort
SELECT 98 * + 25 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-638
SELECT + COUNT( * ) AS col0, COUNT( * ) DIV + COUNT( * ) col0 FROM tab0 cor0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-638
SELECT + COUNT ( * ) AS col0, COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 cor0
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT 5 FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) - col1 + + + col2 / - 21 ) IS NOT NULL
----
5
5
5

skipif mysql # not compatible
query I rowsort label-639
SELECT 5 FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) - col1 + + + col2 / - 21 ) IS NOT NULL
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 37 = + 41 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 4 * col1 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT DISTINCT - 10 * - col1 AS col1 FROM tab2
----
510
670
770

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-644
SELECT COUNT( * ) AS col2, CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-644
SELECT COUNT ( * ) AS col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3
-3

query I rowsort
SELECT DISTINCT + + col0 * - - col1 * - 49 FROM tab0 AS cor0
----
-4753
-59535
-89523

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 29
----

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT + - SUM( 79 ) + + 22 col0 FROM tab2 AS cor0
----
-215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-649
SELECT + - SUM ( 79 ) + + 22 col0 FROM tab2 AS cor0
----
-215

query I rowsort
SELECT ( - 75 ) - - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-16
-7
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-651
SELECT + 37 / CAST( NULL AS DECIMAL ) * - - AVG ( + 53 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT + 37 / CAST ( NULL AS REAL ) * - - AVG ( + 53 ) AS col0 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-652
SELECT - 4 / + - COUNT ( * ) AS col1 FROM tab0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT + 22 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-654
SELECT + 22 / + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - 17 * - - 58 - + 57 + + col2 IS NULL
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT 19 * - 37 AS col0, + COUNT( * ) * 62 + + 86 FROM tab1
----
-703
272

skipif mysql # not compatible
query II rowsort label-657
SELECT 19 * - 37 AS col0, + COUNT ( * ) * 62 + + 86 FROM tab1
----
-703
272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT CAST( 53 AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-658
SELECT CAST ( 53 AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) + 75 + + col1 IS NULL
----

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

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

query II rowsort
SELECT ALL - + 51, - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT + 41 + - - col1 FROM tab1 AS cor0
----
46
55
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT ALL CAST( col2 AS SIGNED ) * + ( + col0 ) col1 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-664
SELECT ALL CAST ( col2 AS INTEGER ) * + ( + col0 ) col1 FROM tab0 AS cor0
----
705
870
9603

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col0 FROM tab2
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( + col2 ) ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - + 58 * + COUNT( * ) * 67 FROM tab0 WHERE NOT - - col2 + col2 + + + col0 IS NULL
----
-11658

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - + 58 * + COUNT ( * ) * 67 FROM tab0 WHERE NOT - - col2 + col2 + + + col0 IS NULL
----
-11658

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

query I rowsort
SELECT - 5 FROM tab0 AS cor0 WHERE NOT - 94 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 94 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col2 / - + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL MAX( DISTINCT + 47 ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-677
SELECT ALL MAX ( DISTINCT + 47 ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL + COUNT( * ) * - + 89 * - - 86 AS col0 FROM tab1
----
-22962

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + COUNT ( * ) * - + 89 * - - 86 AS col0 FROM tab1
----
-22962

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col0 + - col0 * + col0 * col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + 26 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT ALL - 4 + + 29 AS col0 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT col1 * - 13 + 43 AS col2 FROM tab1
----
-139
-22
-568

query II rowsort
SELECT - col2 + + 85 AS col1, col2 * - col2 AS col1 FROM tab0
----
-14
-9801
38
-2209
75
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT + col2 DIV + - col1 + + 23 AS col0 FROM tab1
----
12
17
22

skipif mysql # not compatible
query I rowsort label-684
SELECT + col2 / + - col1 + + 23 AS col0 FROM tab1
----
12
17
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 / - col0 < - col0 + + 62
----
85
5
59
91
47
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL SUM( - - ( + 51 ) ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL SUM ( - - ( + 51 ) ) FROM tab1
----
153

query II rowsort
SELECT DISTINCT - 37 AS col2, col1 AS col1 FROM tab0
----
-37
1
-37
21
-37
81

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT ALL COUNT( * ) * - COUNT( * ) + - - 19 col2 FROM tab2
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-689
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - - 19 col2 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT 88 + - COUNT( * ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-690
SELECT 88 + - COUNT ( * ) AS col1 FROM tab2
----
85

query I rowsort
SELECT DISTINCT - + ( 24 ) + - col2 FROM tab1 AS cor0
----
-120
-83
-92

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

query I rowsort
SELECT DISTINCT - + col0 * + col1 + + col0 + + + col1 - - - col0 AS col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

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

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

query I rowsort
SELECT col0 * - 22 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + ( 31 ) * 63 AS col1 FROM tab1 AS cor0
----
1953
1953
1953

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT 24 AS col1, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 64 < 19 + + col2
----
24
1

skipif mysql # not compatible
query II rowsort label-698
SELECT 24 AS col1, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 64 < 19 + + col2
----
24
1

query I rowsort
SELECT - 26 * - - 19 AS col2 FROM tab1 AS cor0
----
-494
-494
-494

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 IN ( col1, + col2 + 9 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - + 58, + 68, - col2 * + - col2, + - col0, 3 * + ( 7 ) * + + 81 + col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - COUNT( ALL + col0 ) * - - COUNT( DISTINCT - col1 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-702
SELECT - COUNT ( ALL + col0 ) * - - COUNT ( DISTINCT - col1 ) FROM tab1
----
-9

query I rowsort
SELECT DISTINCT 58 * + col2 AS col2 FROM tab2
----
1334
2320
3364

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 16 AS col2, 59 * - col2 col2 FROM tab2
----
16
-1357
16
-2360
16
-3422

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

query II rowsort
SELECT + - 74 AS col2, + ( + - col1 ) FROM tab1 AS cor0
----
-74
-14
-74
-47
-74
-5

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

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 7 col0 FROM tab1
----
357
595
637

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

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

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

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

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT ALL + 97 * + SUM( DISTINCT + col1 ) + - + SUM( ALL - col2 ) DIV + + 39 AS col0 FROM tab1 AS cor0
----
6407

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + 97 * + SUM ( DISTINCT + col1 ) + - + SUM ( ALL - col2 ) / + + 39 AS col0 FROM tab1 AS cor0
----
6407

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

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

query III rowsort
SELECT * FROM tab0 WHERE - + 26 IN ( - 80 + col1, - col2 * - col1 + + - 65 * 67 * - 22 / - 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT ( - col0 ) DIV col0 DIV + 64 * - col2 + col0 * - 79 AS col0 FROM tab0
----
-1185
-6873
-7663

skipif mysql # not compatible
query I rowsort label-718
SELECT ( - col0 ) / col0 / + 64 * - col2 + col0 * - 79 AS col0 FROM tab0
----
-1185
-6873
-7663

query I rowsort
SELECT ALL col1 + - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 + - + 49 FROM tab2 AS cor0
----
-107
-72
-89

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

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

query I rowsort
SELECT 44 * + col0 * - col0 FROM tab2
----
-180224
-247500
-93104

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT ALL - 38 DIV col1 AS col1 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - 38 / col1 AS col1 FROM tab1
----
-2
-7
0

query II rowsort
SELECT - ( - col0 ) AS col1, - col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL SUM( ALL - 17 ) FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL SUM ( ALL - 17 ) FROM tab0 cor0
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT + - col0 DIV + - col1 col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-727
SELECT + - col0 / + - col1 col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT MIN( DISTINCT - col2 ) col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-728
SELECT MIN ( DISTINCT - col2 ) col1 FROM tab1 cor0
----
-96

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-730
SELECT ALL + MAX ( DISTINCT - 1 ) col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + ( + + 95 ) + - col2 NOT IN ( + col0 + + col2, + 76, - + col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-732
SELECT - COUNT( + 76 ), - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-732
SELECT - COUNT ( + 76 ), - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----
0
0

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

query I rowsort
SELECT ALL 65 * col1 * - ( + 75 ) AS col0 FROM tab2 AS cor0
----
-248625
-326625
-375375

query I rowsort
SELECT - 36 + + col0 + + col0 FROM tab0 AS cor0
----
-6
138
158

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 88 * col2 NOT IN ( - ( + + 28 ) + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-737
SELECT + 40 * col0, + col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1840
NULL
2560
NULL
3000
NULL

skipif mysql # not compatible
query II rowsort label-737
SELECT + 40 * col0, + col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1840
NULL
2560
NULL
3000
NULL

query I rowsort
SELECT 98 * - col2 + + 54 FROM tab2 AS cor0
----
-2200
-3866
-5630

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

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL - MIN ( + - col2 ) + 5 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL COUNT( * ) + + SUM( + col0 ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL COUNT ( * ) + + SUM ( + col0 ) FROM tab1
----
230

query I rowsort
SELECT DISTINCT - - 36 + + + 97 FROM tab2 AS cor0
----
133

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

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

query I rowsort
SELECT - ( ( + + col0 ) ) + + 13 FROM tab2 AS cor0
----
-33
-51
-62

query I rowsort
SELECT + col1 + + col0 * - col2 + + col1 FROM tab0 cor0
----
-543
-828
-9601

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-745
SELECT 29 + COUNT( - CAST( + - 28 AS DECIMAL ) ) AS col0, SUM( - 12 ) FROM tab1
----
32
-36

skipif mysql # not compatible
query II rowsort label-745
SELECT 29 + COUNT ( - CAST ( + - 28 AS REAL ) ) AS col0, SUM ( - 12 ) FROM tab1
----
32
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT - COUNT( * ) * 22 + - COUNT( * ) FROM tab1 WHERE ( NOT ( + col0 * + col0 + 0 / - col2 + + col1 ) IS NULL )
----
-69

skipif mysql # not compatible
query I rowsort label-746
SELECT - COUNT ( * ) * 22 + - COUNT ( * ) FROM tab1 WHERE ( NOT ( + col0 * + col0 + 0 / - col2 + + col1 ) IS NULL )
----
-69

query I rowsort
SELECT col0 + col2 + + - col0 AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 1 IN ( + col2, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + + + 16 col1 FROM tab1
----
63
63
63

query I rowsort
SELECT - col0 * - 36 FROM tab2
----
1656
2304
2700

query III rowsort
SELECT * FROM tab1 WHERE 91 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col1 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT col2 + - + CAST( NULL AS SIGNED ) + - 24 - + - ( - col0 ) FROM tab1 AS cor0 WHERE NOT - col2 * + 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-754
SELECT col2 + - + CAST ( NULL AS INTEGER ) + - 24 - + - ( - col0 ) FROM tab1 AS cor0 WHERE NOT - col2 * + 70 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL - COUNT( * ) + 1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-8

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - COUNT ( * ) + 1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT SUM( ALL 18 ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT SUM ( ALL 18 ) AS col0 FROM tab0
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT DISTINCT + col0 DIV 2 - col0 AS col1 FROM tab2 AS cor0 WHERE + 16 + + col1 >= + col2 * - 86 - + - 42
----
-23
-32
-38

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT + col0 / 2 - col0 AS col1 FROM tab2 AS cor0 WHERE + 16 + + col1 >= + col2 * - 86 - + - 42
----
-23
-32
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL - - 96 * MIN( + 30 ) - - 38 - + 97 FROM tab1 AS cor0
----
2821

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - - 96 * MIN ( + 30 ) - - 38 - + 97 FROM tab1 AS cor0
----
2821

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

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + 75 * - - CAST ( NULL AS REAL ) - - col0 AS col0 FROM tab1 AS cor0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-764
SELECT COUNT ( * ) / - MIN ( ALL + 99 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * + + 2 * - + col1 col0 FROM tab0 AS cor0
----
-18818
-317898
-36450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-766
SELECT DISTINCT - - 5 DIV + CAST( - 70 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - - 5 / + CAST ( - 70 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col1 * + + 98 AS col2 FROM tab1 AS cor0
----
-1372
-4606
-490

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

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab1 WHERE NOT col0 + + 7 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, + col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-771
SELECT DISTINCT - - col1 * col0 + - ( 87 ) + + 63 * - 36 * - col0 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT - - col1 * col0 + - ( 87 ) + + 63 * - 36 * - col0 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-772
SELECT ALL - 20, 46 * - MIN( + CAST( NULL AS SIGNED ) ) + - 81 AS col2 FROM tab2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-772
SELECT ALL - 20, 46 * - MIN ( + CAST ( NULL AS INTEGER ) ) + - 81 AS col2 FROM tab2
----
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL COUNT( DISTINCT + + col2 ) * 84 + - COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL COUNT ( DISTINCT + + col2 ) * 84 + - COUNT ( * ) AS col0 FROM tab0
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT + 66 AS col2, COUNT( * ) AS col2 FROM tab2
----
66
3

skipif mysql # not compatible
query II rowsort label-774
SELECT + 66 AS col2, COUNT ( * ) AS col2 FROM tab2
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT - MAX( ALL - 61 ) FROM tab0 AS cor0 WHERE col2 + 40 + + 9 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT - MAX ( ALL - 61 ) FROM tab0 AS cor0 WHERE col2 + 40 + + 9 IS NOT NULL
----
61

query I rowsort
SELECT ALL - + 98 * 45 FROM tab1 AS cor0 WHERE NOT col0 IN ( - - 74, + 84 )
----
-4410
-4410
-4410

onlyif mysql # DIV for integer division: 
query II rowsort label-777
SELECT DISTINCT - 11 DIV - + 55 AS col1, + col0 * - col2 AS col2 FROM tab1 AS cor0
----
0
-4896
0
-5015
0
-6188

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT - 11 / - + 55 AS col1, + col0 * - col2 AS col2 FROM tab1 AS cor0
----
0
-4896
0
-5015
0
-6188

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-779
SELECT ALL * FROM tab1 AS cor0 WHERE + 30 * + 71 - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-779
SELECT ALL * FROM tab1 AS cor0 WHERE + 30 * + 71 - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 89 AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT MAX( + + col2 ) + MAX( ALL + - col1 ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-781
SELECT MAX ( + + col2 ) + MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
7

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-783
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - CAST( - col0 AS DECIMAL ) <= - + col2 + + 31
----

skipif mysql # not compatible
query III rowsort label-783
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - CAST ( - col0 AS REAL ) <= - + col2 + + 31
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 79 ) + - col0 + + 41 * + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-785
SELECT DISTINCT + 93, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-785
SELECT DISTINCT + 93, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
93
NULL

query II rowsort
SELECT DISTINCT 49 AS col1, col1 FROM tab2
----
49
51
49
67
49
77

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT - 39 * + + col2 - + col0 + - + col1 DIV - ( 91 ) FROM tab2
----
-1624
-2337
-943

skipif mysql # not compatible
query I rowsort label-787
SELECT - 39 * + + col2 - + col0 + - + col1 / - ( 91 ) FROM tab2
----
-1624
-2337
-943

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

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

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

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - + SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT - + MAX( col0 ) * - + COUNT( * ) * + - COUNT( * ) col2 FROM tab1 AS cor0
----
-819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-790
SELECT - + MAX ( col0 ) * - + COUNT ( * ) * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-819

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

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

query I rowsort
SELECT + col1 * + 46 AS col2 FROM tab0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT DISTINCT - COUNT( * ) * - 80 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - COUNT ( * ) * - 80 FROM tab0 AS cor0
----
240

query I rowsort
SELECT DISTINCT - - ( + col2 ) * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 68 * 37 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT - COUNT( * ) DIV MIN( 95 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT - COUNT ( * ) / MIN ( 95 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 51 * col2 * col2 FROM tab1 AS cor0
----
-177531
-235824
-470016

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

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

query I rowsort
SELECT - col2 * + col1 + + 89 AS col0 FROM tab2 AS cor0
----
-1084
-2991
-3797

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL COUNT( * ) * + 77 AS col0 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL COUNT ( * ) * + 77 AS col0 FROM tab1
----
231

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab1 WHERE NOT - + col0 NOT BETWEEN ( 89 ) AND - + 70
----

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT ALL + COUNT( * ) * - SUM( - - col1 ) AS col2, - COUNT( - + ( + - col2 ) ) FROM tab1
----
-198
-3

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL + COUNT ( * ) * - SUM ( - - col1 ) AS col2, - COUNT ( - + ( + - col2 ) ) FROM tab1
----
-198
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + ( - col0 ) col0 FROM tab1
----
-106
-112
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-809
SELECT * FROM tab1 AS cor0 WHERE col2 * - + col2 * ( CAST( NULL AS SIGNED ) ) * + + col2 NOT BETWEEN NULL AND + 68 * - col2
----

skipif mysql # not compatible
query III rowsort label-809
SELECT * FROM tab1 AS cor0 WHERE col2 * - + col2 * ( CAST ( NULL AS INTEGER ) ) * + + col2 NOT BETWEEN NULL AND + 68 * - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-811
SELECT CAST( col1 AS SIGNED ) * - - 79 FROM tab0 AS cor0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-811
SELECT CAST ( col1 AS INTEGER ) * - - 79 FROM tab0 AS cor0
----
1659
6399
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT COUNT( * ) * - 32 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-813
SELECT COUNT ( * ) * - 32 FROM tab2
----
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL 40 + ( 91 ) - - COUNT( * ) col2 FROM tab0
----
134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-815
SELECT ALL 40 + ( 91 ) - - COUNT ( * ) col2 FROM tab0
----
134

query I rowsort
SELECT ALL + col1 * + - col0 + + + 69 - + 65 FROM tab0 AS cor0
----
-1211
-1823
-93

query I rowsort
SELECT + col2 * + 47 + - col2 AS col1 FROM tab2 AS cor0
----
1058
1840
2668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 40 col2 FROM tab2 AS cor0 WHERE 29 - col0 BETWEEN + - ( - col2 ) + + + col2 AND - ( ( col2 ) )
----

query I rowsort
SELECT col0 * col0 * - - col2 + - col0 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
254643
431375
569387

query I rowsort
SELECT - + 79 + - + col2 AS col2 FROM tab2 cor0
----
-102
-119
-137

onlyif mysql # DIV for integer division: 
query II rowsort label-821
SELECT - col2 DIV col1 + - col0 * - col1 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

skipif mysql # not compatible
query II rowsort label-821
SELECT - col2 / col1 + - col0 * - col1 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query I rowsort
SELECT DISTINCT col1 * - col2 * - col2 - col1 - - col2 AS col1 FROM tab2 AS cor0
----
123163
225379
26951

query I rowsort
SELECT - 46 * - 48 + col0 + + + col1 FROM tab1 AS cor0
----
2273
2298
2346

query I rowsort
SELECT DISTINCT - col2 + + - 3 FROM tab0 AS cor0
----
-102
-13
-50

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

query II rowsort
SELECT ALL col0 * col2 * + 82 * - ( - - col0 ) AS col1, col1 AS col1 FROM tab1
----
-20475072
14
-34954550
5
-46174856
47

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

skipif mysql # not compatible
query I rowsort label-827
SELECT COUNT ( * ) * 23 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + col0 * col0 * - - col1 FROM tab1
----
36125
36414
389207

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT + 18 AS col1, - 91 * + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18
819

skipif mysql # not compatible
query II rowsort label-830
SELECT + 18 AS col1, - 91 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

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

query I rowsort
SELECT - ( 25 ) * + col2 * - 24 + - 15 FROM tab0 AS cor0
----
28185
59385
5985

query I rowsort
SELECT ALL + 71 + + col2 AS col0 FROM tab0 AS cor0
----
118
170
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 20
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT + 88 * - COUNT( * ) FROM tab0 WHERE NOT - + 8 / col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-839
SELECT + 88 * - COUNT ( * ) FROM tab0 WHERE NOT - + 8 / col2 >= NULL
----
0

query I rowsort
SELECT ALL 19 * col1 AS col0 FROM tab0
----
1539
19
399

query I rowsort
SELECT + col0 * 34 AS col0 FROM tab0
----
2958
3298
510

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) = - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = col1 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT + COUNT( * ) * + - 57 * - COUNT( * ) FROM tab0
----
513

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + COUNT ( * ) * + - 57 * - COUNT ( * ) FROM tab0
----
513

query I rowsort
SELECT ALL + + 3 + col0 FROM tab1 cor0
----
54
88
94

query I rowsort
SELECT DISTINCT + + 8 * - 58 AS col0 FROM tab0 AS cor0
----
-464

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 25 + + + 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT - + COUNT( * ), COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-848
SELECT - + COUNT ( * ), COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
9

query I rowsort
SELECT DISTINCT - - col1 - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT DISTINCT - 23 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 47, ( + col0 ) + + col1, col0, - col2 + 87 + 22, - col0, + col1 + + col2 + + col0 - col0 - + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT - 23 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 47, ( + col0 ) + + col1, col0, - col2 + 87 + 22, - col0, + col1 + + col2 + + col0 - col0 - + CAST ( NULL AS INTEGER ), col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT + 53 * SUM( DISTINCT col0 ) - + 79 FROM tab2 AS cor0
----
9726

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 53 * SUM ( DISTINCT col0 ) - + 79 FROM tab2 AS cor0
----
9726

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

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MAX( ALL col1 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-854
SELECT MAX ( ALL col1 ) col0 FROM tab0
----
81

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

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT - col1 IS NULL
----
1
21
81

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

query I rowsort
SELECT col2 * - 9 FROM tab0
----
-423
-891
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT DISTINCT 62 AS col0, - COUNT( 94 ) FROM tab2
----
62
-3

skipif mysql # not compatible
query II rowsort label-859
SELECT DISTINCT 62 AS col0, - COUNT ( 94 ) FROM tab2
----
62
-3

query II rowsort
SELECT ALL 64 AS col2, + col1 * 86 FROM tab2 cor0
----
64
4386
64
5762
64
6622

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

query I rowsort
SELECT ALL - 3 + - + col0 FROM tab2 AS cor0
----
-49
-67
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ALL + 88 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 88 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
85

query I rowsort
SELECT - - col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT col0 * - ( + - 68 ) FROM tab2 AS cor0
----
3128
4352
5100

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

query I rowsort
SELECT + col2 * - - 50 * - - col0 FROM tab1 AS cor0
----
244800
250750
309400

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT + COUNT( * ) * - MAX( ALL - col0 ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + COUNT ( * ) * - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT + col1 + - - col2 FROM tab0
----
100
128
31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT ALL + col2 + col1 DIV col2 * - - col0 + col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + col2 + col1 / col2 * - - col0 + col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT DISTINCT + ( + COUNT( * ) ) + + + 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT + ( + COUNT ( * ) ) + + + 16 FROM tab0 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT DISTINCT - 9 DIV col0 * + 70 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - 9 / col0 * + 70 + col2 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT + - 34 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-34
-14
-34
-47
-34
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT DISTINCT - - 37 + + - COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT - - 37 + + - COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-878
SELECT ALL - col0 + + + ( 72 ) * - CAST( NULL AS SIGNED ) AS col2, - col2 - col0 FROM tab0
----
NULL
-196
NULL
-62
NULL
-97

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL - col0 + + + ( 72 ) * - CAST ( NULL AS INTEGER ) AS col2, - col2 - col0 FROM tab0
----
NULL
-196
NULL
-62
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT - ( + COUNT( * ) ) - - + 5 col2 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT DISTINCT - ( + COUNT ( * ) ) - - + 5 col2 FROM tab1
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 99 + + - ( - - 49 ) + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT DISTINCT + 44 + - 26 DIV 80 AS col2 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + 44 + - 26 / 80 AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - + 81 + + col0 AS col0 FROM tab0 AS cor0
----
-66
16
6

query II rowsort
SELECT + - 55 + - + 69 AS col2, - col1 FROM tab1 AS cor0
----
-124
-14
-124
-47
-124
-5

query I rowsort
SELECT ALL 7 * + + 16 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT DISTINCT - col1 * + 67 * - 46 FROM tab2 AS cor0
----
157182
206494
237314

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT + 87 DIV 59 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-887
SELECT + 87 / 59 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT DISTINCT + COUNT( * ) DIV + + MIN( - col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + COUNT ( * ) / + + MIN ( - col0 ) AS col0 FROM tab2
----
0

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

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

query I rowsort
SELECT - + col0 * + 86 + - 46 AS col1 FROM tab0 AS cor0
----
-1336
-7528
-8388

query I rowsort
SELECT + + 76 * + 39 FROM tab0 cor0
----
2964
2964
2964

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

query I rowsort
SELECT - - 7 * + 77 AS col1 FROM tab1 AS cor0
----
539
539
539

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT DISTINCT - MIN( + 13 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT - MIN ( + 13 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-895
SELECT - COUNT( * ), + 39 AS col0 FROM tab2
----
-3
39

skipif mysql # not compatible
query II rowsort label-895
SELECT - COUNT ( * ), + 39 AS col0 FROM tab2
----
-3
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - ( - col0 ) col2 FROM tab1 AS cor0
----
149
183
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + + - col2 + + - col1 col0 FROM tab2 AS cor0
----
-107
-56
-99

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE 42 * + col2 + 25 IS NOT NULL
----
15
87
97

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

query I rowsort
SELECT 43 * + 35 * + 94 * + col1 * 35 FROM tab2
----
252523950
331747150
381261650

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

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

query I rowsort
SELECT col0 * + 17 FROM tab2
----
1088
1275
782

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT - col2 DIV ( - col1 ) AS col2 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-905
SELECT - col2 / ( - col1 ) AS col2 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT MIN( 36 ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-906
SELECT MIN ( 36 ) AS col1 FROM tab1
----
36

query II rowsort
SELECT + col2 - - - col0, - col2 + + col1 AS col2 FROM tab2
----
-17
9
-23
28
-24
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-909
SELECT - - col0 AS col1, ( - col2 ) AS col0 FROM tab2 cor0 WHERE col0 - - + col2 <= - col1 * CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query II rowsort label-909
SELECT - - col0 AS col1, ( - col2 ) AS col0 FROM tab2 cor0 WHERE col0 - - + col2 <= - col1 * CAST ( NULL AS INTEGER ) * col1
----

query I rowsort
SELECT + - 2 + + col0 * 86 FROM tab1 cor0
----
4384
7308
7824

query I rowsort
SELECT DISTINCT + col1 * + 81 + - + col2 AS col0 FROM tab0 AS cor0
----
-18
1691
6514

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

query I rowsort
SELECT ALL + col2 + - col0 AS col2 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT + 94 * 91 AS col1 FROM tab2 cor0
----
8554
8554
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT - + 7 * 82 * + SUM( ALL - + col1 ) FROM tab1 cor0
----
37884

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - + 7 * 82 * + SUM ( ALL - + col1 ) FROM tab1 cor0
----
37884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT DISTINCT + 58 * + CAST( - col0 AS SIGNED ) - + 59 + - col2 col1 FROM tab1 AS cor0
----
-3113
-5048
-5405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-916
SELECT DISTINCT + 58 * + CAST ( - col0 AS INTEGER ) - + 59 + - col2 col1 FROM tab1 AS cor0
----
-3113
-5048
-5405

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

query I rowsort
SELECT ALL + 28 * - + col1 + 79 + col0 + - - col1 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1252
-1655
-1936

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - - col1 NOT IN ( - + 84 * - + col1 - - col2 + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-921
SELECT - + ( + CAST( 72 AS SIGNED ) ) col1, 21 FROM tab1 AS cor0
----
-72
21
-72
21
-72
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-921
SELECT - + ( + CAST ( 72 AS INTEGER ) ) col1, 21 FROM tab1 AS cor0
----
-72
21
-72
21
-72
21

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

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

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

query I rowsort
SELECT - col1 * + 27 + - + 90 + col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL + COUNT( DISTINCT + 93 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + COUNT ( DISTINCT + 93 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * - 80 FROM tab2
----
246400
310880
93840

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT ALL col0 DIV 78 * - 18 AS col0 FROM tab1
----
-18
-18
0

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL col0 / 78 * - 18 AS col0 FROM tab1
----
-18
-18
0

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
-51

query II rowsort
SELECT DISTINCT + 94 + - + 3, + col2 FROM tab0 cor0
----
91
10
91
47
91
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-931
SELECT - col2 + + + col0 * - + CAST( NULL AS SIGNED ) + + col0 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-931
SELECT - col2 + + + col0 * - + CAST ( NULL AS INTEGER ) + + col0 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT DISTINCT + - 24 + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + - 24 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + MIN( ALL + col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-933
SELECT + MIN ( ALL + col0 ) AS col1 FROM tab2 cor0
----
46

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - col1 * - col1 <> NULL
----

query I rowsort
SELECT ( - ( - + col2 ) ) + 68 FROM tab0 cor0
----
115
167
78

query I rowsort
SELECT DISTINCT - 31 - - + col2 + col0 AS col0 FROM tab1 AS cor0
----
113
116
128

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT ALL 6, + 46 * COUNT( * ) + - 96 AS col2 FROM tab0
----
6
42

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL 6, + 46 * COUNT ( * ) + - 96 AS col2 FROM tab0
----
6
42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 95 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 <= col1
----

query I rowsort
SELECT ALL col1 + + - col0 AS col1 FROM tab0
----
-66
-96
66

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

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT - 7, MAX( ALL col2 ) * - MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-7
1334

skipif mysql # not compatible
query II rowsort label-943
SELECT - 7, MAX ( ALL col2 ) * - MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-7
1334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 69 + col2 col2 FROM tab1 AS cor0
----
75
78
90

query I rowsort
SELECT DISTINCT col0 - - 39 AS col0 FROM tab0 AS cor0
----
126
136
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT ALL + + 39 - - 56 - + - MAX( + + col0 ) DIV COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + + 39 - - 56 - + - MAX ( + + col0 ) / COUNT ( * ) FROM tab2 AS cor0
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT DISTINCT - - 42 + + 62 - - CAST( 27 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT - - 42 + + 62 - - CAST ( 27 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
131

query I rowsort
SELECT ALL 4 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-950
SELECT - - MAX( DISTINCT - - col2 ) DIV - 59 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-950
SELECT - - MAX ( DISTINCT - - col2 ) / - 59 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT DISTINCT + 62 * - - col1 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT - 25 col2, ( - MIN( ALL col1 ) ) FROM tab2
----
-25
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-953
SELECT - 25 col2, ( - MIN ( ALL col1 ) ) FROM tab2
----
-25
-51

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

skipif mysql # not compatible
query II rowsort label-954
SELECT CAST ( NULL AS INTEGER ) AS col1, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT - 40 * - 65 * 72 AS col1 FROM tab1
----
187200

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL - 35 DIV - 23 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - 35 / - 23 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL 94 * ( + 49 ) AS col0, col2 AS col2 FROM tab2
----
4606
23
4606
40
4606
58

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

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

query II rowsort
SELECT DISTINCT + col2, - ( 8 ) * - - 47 - + + col0 FROM tab1 AS cor0 WHERE 93 IS NULL
----

query II rowsort
SELECT DISTINCT - 22, col1 FROM tab2 AS cor0
----
-22
51
-22
67
-22
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT COUNT( * ) + MIN( 23 ) col1 FROM tab0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-962
SELECT DISTINCT COUNT ( * ) + MIN ( 23 ) col1 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL + 23 + ( + COUNT( * ) ) * - 47 AS col2 FROM tab0
----
-118

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + 23 + ( + COUNT ( * ) ) * - 47 AS col2 FROM tab0
----
-118

query I rowsort
SELECT + 98 * + ( + 11 * + 54 ) FROM tab2
----
58212
58212
58212

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT COUNT( DISTINCT 5 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT COUNT ( DISTINCT 5 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 29 * col0 <= ( NULL )
----

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

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN + ( 80 ) * 20 AND - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - ( + 56 ) * + col1 AS col1 FROM tab2
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + 67 * COUNT( * ) col1 FROM tab0
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-970
SELECT + 67 * COUNT ( * ) col1 FROM tab0
----
201

query I rowsort
SELECT - col2 * 48 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL 67 * COUNT( * ) AS col0 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 67 * COUNT ( * ) AS col0 FROM tab2
----
201

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND col0 / + col0
----

query I rowsort
SELECT DISTINCT col0 + 47 * + 23 FROM tab1
----
1132
1166
1172

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-979
SELECT ( CAST ( - 40 AS INTEGER ) ) + + SUM ( ALL 64 ) AS col2 FROM tab1
----
152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT - COUNT( * ) + + 93 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - COUNT ( * ) + + 93 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT COUNT( * ) DIV 30 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT COUNT ( * ) / 30 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE 76 + + 62 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE - col0 * col1 - col0 BETWEEN ( col0 * 75 + col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE - col0 * col1 - col0 BETWEEN ( col0 * 75 + col0 ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT col1 DIV 69 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-988
SELECT col1 / 69 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT 80 DIV MAX( + 81 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-989
SELECT 80 / MAX ( + 81 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 50 - col1 FROM tab1 AS cor0
----
3
36
45

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

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

query I rowsort
SELECT - 28 * col1 + col0 FROM tab0 AS cor0 WHERE NOT - col1 * - col0 + col2 IS NULL
----
-2253
-501
69

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT 24 * + MAX( + col2 ) FROM tab0 cor0 WHERE NOT NULL >= ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT 24 * + MAX ( + col2 ) FROM tab0 cor0 WHERE NOT NULL >= ( - col1 )
----
NULL

query I rowsort
SELECT ALL 17 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - COUNT( * ) * 34 col1 FROM tab0
----
-102

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT + MIN( ALL col2 ) * + 82 FROM tab0
----
820

skipif mysql # not compatible
query I rowsort label-997
SELECT + MIN ( ALL col2 ) * + 82 FROM tab0
----
820

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL ( col1 ) FROM tab1 WHERE NOT col1 IN ( - 10 / 77 + + col0 * col1 )
----
14
47
5

query I rowsort
SELECT ALL + 1 * col2 FROM tab0
----
10
47
99

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1006
SELECT * FROM tab2 WHERE NOT col1 BETWEEN col1 + - CAST( col2 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1006
SELECT * FROM tab2 WHERE NOT col1 BETWEEN col1 + - CAST ( col2 AS REAL ) AND NULL
----

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

query I rowsort
SELECT DISTINCT + 7 * + col0 FROM tab2
----
322
448
525

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

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

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE ( + ( col0 ) ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT COUNT( * ) * - 46 AS col2 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1011
SELECT COUNT ( * ) * - 46 AS col2 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT - 49 * + MAX( + col1 ) + MIN( col1 + - col0 ) FROM tab2
----
-3781

skipif mysql # not compatible
query I rowsort label-1012
SELECT - 49 * + MAX ( + col1 ) + MIN ( col1 + - col0 ) FROM tab2
----
-3781

query I rowsort
SELECT DISTINCT col2 + 66 FROM tab1 WHERE ( - col2 + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT + 6 * - SUM( + col1 ) FROM tab0
----
-618

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT + 6 * - SUM ( + col1 ) FROM tab0
----
-618

query I rowsort
SELECT DISTINCT - ( + - 93 ) + col1 AS col1 FROM tab1 AS cor0
----
107
140
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT ALL - ( + col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - ( + col1 ) / col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT - 22 * - col2 FROM tab1
----
1298
1496
2112

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1019
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1019
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <> CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT ALL 9 DIV - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL 9 / - col0 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + ( + + 66 ) / + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1023
SELECT DISTINCT - - col2 + + col2 + - ( CAST( - 79 AS SIGNED ) ) + - 74 * col1 FROM tab0 AS cor0
----
-1455
-5821
203

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - - col2 + + col2 + - ( CAST ( - 79 AS INTEGER ) ) + - 74 * col1 FROM tab0 AS cor0
----
-1455
-5821
203

query I rowsort
SELECT ALL 36 + + ( col0 ) FROM tab2 AS cor0
----
100
111
82

query I rowsort
SELECT - 3 + - ( + 16 ) AS col0 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT DISTINCT - + SUM( 9 ) + + 49 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - + SUM ( 9 ) + + 49 FROM tab0 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT ALL 77 DIV col0 * - 12 + col2 AS col1 FROM tab2 AS cor0
----
11
28
46

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL 77 / col0 * - 12 + col2 AS col1 FROM tab2 AS cor0
----
11
28
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1028
SELECT * FROM tab0 AS cor0 WHERE - CAST( 73 AS SIGNED ) <> ( 22 + - ( col1 + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1028
SELECT * FROM tab0 AS cor0 WHERE - CAST ( 73 AS INTEGER ) <> ( 22 + - ( col1 + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT + col1 + + + col2 * - 84 - - 83 DIV col1 FROM tab1 AS cor0
----
-4935
-5664
-8045

skipif mysql # not compatible
query I rowsort label-1029
SELECT + col1 + + + col2 * - 84 - - 83 / col1 FROM tab1 AS cor0
----
-4935
-5664
-8045

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT DISTINCT 88 - - + 42 DIV + 6 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-101
-2114
70

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT 88 - - + 42 / + 6 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-101
-2114
70

query I rowsort
SELECT + - col1 + + col1 + - 23 * 62 AS col0 FROM tab0 AS cor0
----
-1426
-1426
-1426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL - - CAST( + - ( - - col0 ) AS SIGNED ) - - col2 col0 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1033
SELECT ALL - - CAST ( + - ( - - col0 ) AS INTEGER ) - - col2 col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL 81 - - + col2 AS col2 FROM tab0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + SUM( - 21 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + SUM ( - 21 ) FROM tab1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1036
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ), - COUNT( * ) AS col2 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1036
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2 FROM tab2
----
NULL
-3

query I rowsort
SELECT + 7 AS col1 FROM tab2 WHERE - col0 / 59 * + ( + 66 ) + col0 NOT IN ( col2 )
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1038
SELECT + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT + COUNT ( * ) + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= + - ( 0 ) + 95
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT DISTINCT COUNT( - 19 ) + - 94 * + + COUNT( * ) AS col1 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT COUNT ( - 19 ) + - 94 * + + COUNT ( * ) AS col1 FROM tab2
----
-279

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT COUNT( * ) + COUNT( * ) * - 59 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 40 ) IS NULL
----
-522

skipif mysql # not compatible
query I rowsort label-1045
SELECT COUNT ( * ) + COUNT ( * ) * - 59 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 40 ) IS NULL
----
-522

query I rowsort
SELECT + - col2 * - col2 * + col1 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT ALL - 46 FROM tab2 cor0 WHERE NOT col2 + 12 IS NOT NULL
----

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT + 91 * + + 76 AS col2 FROM tab2
----
6916

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1051
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, - col2 * 55 col0 FROM tab1
----
14
-5280
47
-3740
5
-3245

query I rowsort
SELECT DISTINCT + col1 + ( - 73 ) FROM tab0
----
-52
-72
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT - MAX( - - 30 ) DIV - 31 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT - MAX ( - - 30 ) / - 31 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 + - - col1 + + + 30 AS col1 FROM tab1
----
124
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT AVG ( DISTINCT - 9 ) AS col0 FROM tab1 WHERE + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT AVG ( DISTINCT - 9 ) AS col0 FROM tab1 WHERE + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT col2 * col1 + + 29 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 + col1 * + - 81 - col1 ) < ( 87 )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE ( + col0 * - + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + col2 - - + 63 col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ( - - 99 ) + - ( + - 34 ) AS col2 FROM tab0
----
133
133
133

query I rowsort
SELECT + col1 + + col0 * + col0 AS col1 FROM tab2
----
2167
4173
5692

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT - 6 DIV - 9 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT - 6 / - 9 AS col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL - 37 + - - col2 * - ( - 55 ) * col1 AS col2 FROM tab1 AS cor0
----
16188
175743
73883

query I rowsort
SELECT ALL - - col2 + + 28 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT DISTINCT + col0 - - + 55 AS col0 FROM tab2 AS cor0
----
101
119
130

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

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN 24 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1070
SELECT ALL + + 11 - + CAST( NULL AS DECIMAL ) / - col2 * - col2 * - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL + + 11 - + CAST ( NULL AS REAL ) / - col2 * - col2 * - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 95 - ( - 58 ) AS col2 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + col0 * col2 FROM tab0 WHERE - - 36 IN ( - col2 + col1 + - - col0 + col1 * col0 * - 13 )
----

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

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

query II rowsort
SELECT ALL col0 AS col1, - ( + col2 ) - + ( - 43 ) AS col0 FROM tab1
----
51
-53
85
-16
91
-25

query I rowsort
SELECT DISTINCT col0 * + + 6 FROM tab0
----
522
582
90

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

query I rowsort
SELECT DISTINCT - col1 / - 14 AS col2 FROM tab1 AS cor0 WHERE col1 * + 29 * + - ( 2 ) BETWEEN ( - col2 ) AND col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1080
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1081
SELECT + 75 * col1 * + CAST( - 99 AS SIGNED ) FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-1081
SELECT + 75 * col1 * + CAST ( - 99 AS INTEGER ) FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT DISTINCT MAX( ALL - 18 ) col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1082
SELECT DISTINCT MAX ( ALL - 18 ) col0 FROM tab0 AS cor0
----
-18

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1084
SELECT - ( + col0 ) DIV + - col2 + + CAST( + col0 AS SIGNED ) * - + col2 AS col2 FROM tab0 AS cor0
----
-705
-862
-9603

skipif mysql # not compatible
query I rowsort label-1084
SELECT - ( + col0 ) / + - col2 + + CAST ( + col0 AS INTEGER ) * - + col2 AS col2 FROM tab0 AS cor0
----
-705
-862
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-1085
SELECT DISTINCT 62 DIV 22 AS col2, col2 * + - col2 AS col1 FROM tab1 AS cor0
----
2
-3481
2
-4624
2
-9216

skipif mysql # not compatible
query II rowsort label-1085
SELECT DISTINCT 62 / 22 AS col2, col2 * + - col2 AS col1 FROM tab1 AS cor0
----
2
-3481
2
-4624
2
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT + MAX( - 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + MAX ( - 62 ) FROM tab0
----
-62

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

query I rowsort
SELECT ( + + col0 ) * col2 + + col0 + - - 61 AS col0 FROM tab1
----
5008
5161
6340

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 >= + + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + + COUNT( * ) + - 40 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + + COUNT ( * ) + - 40 FROM tab0 cor0
----
-37

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

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 cor0 WHERE ( + col0 NOT IN ( - + col2 ) )
----
10
47
99

query I rowsort
SELECT col0 * + - col1 + - - 30 FROM tab0 AS cor0
----
-1185
-1797
-67

query I rowsort
SELECT + col1 + col1 - - + col0 * 77 * + - 86 * + - 3 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1728384
1927004
298152

query I rowsort
SELECT + + ( - 98 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, - 60 FROM tab0 AS cor0
----
1
-60
21
-60
81
-60

query I rowsort
SELECT + + 46 + - 99 AS col2 FROM tab0 cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - + 63 col1 FROM tab0 AS cor0
----
-42
-62
18

query I rowsort
SELECT + col2 * + 11 + - 10 + + col2 AS col1 FROM tab2 AS cor0
----
266
470
686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT + col0 + + CAST( - col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1103
SELECT DISTINCT + col0 + + CAST ( - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - - 70 ) col2 FROM tab2 AS cor0
----
70

query II rowsort
SELECT col2, 48 - - col1 AS col0 FROM tab0 AS cor0
----
10
69
47
129
99
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1106
SELECT DISTINCT - 39, + COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
-39
9

skipif mysql # not compatible
query II rowsort label-1106
SELECT DISTINCT - 39, + COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
-39
9

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

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

query I rowsort
SELECT ALL - 20 AS col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab1 WHERE 36 * - - col0 * - 14 * - 63 - - 18 + 89 IS NOT NULL
----
-92

query I rowsort
SELECT + col2 * + col0 * col1 FROM tab1 WHERE NOT NULL > - - col1
----

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

query I rowsort
SELECT DISTINCT + col1 * - 70 FROM tab2
----
-3570
-4690
-5390

query II rowsort
SELECT col2 / + col2 * - - 91, 21 * + 20 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 62 + + col1 AND ( + 17 )
----

query I rowsort
SELECT DISTINCT - 86 * - ( - + 48 ) + + 12 AS col2 FROM tab0 AS cor0
----
-4116

query I rowsort
SELECT - 89 * col1 AS col0 FROM tab1 AS cor0
----
-1246
-4183
-445

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + 27 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT + - 54 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1119
SELECT + - 54 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT + col2 FROM tab0 WHERE NOT NULL < - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1120
SELECT + col2 FROM tab0 WHERE NOT NULL < - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - 17 + + col2 + - col1 AS col0, - 11 AS col2 FROM tab2
----
-26
-11
-45
-11
-54
-11

query I rowsort
SELECT - + col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 48 * + + col2, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1123
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 48 * + + col2, + col0 )
----
0

query I rowsort
SELECT DISTINCT + + 78 + + col1 * + ( + - 40 ) FROM tab2 AS cor0
----
-1962
-2602
-3002

query I rowsort
SELECT - 68 + + + col0 FROM tab1 AS cor0
----
-17
17
23

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

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

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

query II rowsort
SELECT - col2 * - - col1 AS col0, + 36 FROM tab1
----
-1344
36
-295
36
-3196
36

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

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

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

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

query II rowsort
SELECT ALL + 73 + - col2 AS col0, 29 AS col1 FROM tab2 AS cor0
----
15
29
33
29
50
29

query I rowsort
SELECT + col1 + - 57 + + col2 FROM tab1
----
53
58
7

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

skipif mysql # not compatible
query I rowsort label-1133
SELECT col1 / + - 57 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL - 64 * COUNT( * ) * ( - COUNT( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - 64 * COUNT ( * ) * ( - COUNT ( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
576

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT DISTINCT CAST( 76 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT CAST ( 76 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, 14 * col2 * col0 AS col2 FROM tab1 cor0
----
59
70210
68
86632
96
68544

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * col1 col2 FROM tab0
----
2592
32
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - 33 col1 FROM tab2
----
-1518
-2112
-2475

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1142
SELECT DISTINCT + col1 * col0 col0, + ( + col0 ) DIV - - col0 + - col1 FROM tab1
----
425
-4
4277
-46
714
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1142
SELECT DISTINCT + col1 * col0 col0, + ( + col0 ) / - - col0 + - col1 FROM tab1
----
425
-4
4277
-46
714
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1143
SELECT DISTINCT 57, COUNT( * ) DIV + ( 37 ) col0 FROM tab0
----
57
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1143
SELECT DISTINCT 57, COUNT ( * ) / + ( 37 ) col0 FROM tab0
----
57
0

query I rowsort
SELECT DISTINCT + 61 * - col0 FROM tab2
----
-2806
-3904
-4575

query II rowsort
SELECT DISTINCT + - col2 AS col1, 31 FROM tab1 AS cor0
----
-59
31
-68
31
-96
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT + COUNT( * ) + + SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-153

skipif mysql # not compatible
query I rowsort label-1146
SELECT + COUNT ( * ) + + SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-153

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

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

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

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

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

query I rowsort
SELECT 55 * - col2 * - + col0 + + + col2 AS col0 FROM tab0 AS cor0
----
38822
47860
528264

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT - - 89 DIV + - col1 + - - 50 FROM tab1 AS cor0
----
33
44
49

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - - 89 / + - col1 + - - 50 FROM tab1 AS cor0
----
33
44
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + MIN( DISTINCT - 18 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1158
SELECT + MIN ( DISTINCT - 18 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT - - col0 * ( + + col1 ) + + - col2 * + col2, col2 FROM tab0 AS cor0
----
-9704
99
-994
47
1727
10

query I rowsort
SELECT - col1 + - 8 FROM tab1
----
-13
-22
-55

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + 76 FROM tab1
----
59
76
68
76
96
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT DISTINCT col0 DIV col2 * + col1 + + - col0 AS col2 FROM tab2
----
-8
13
56

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT col0 / col2 * + col1 + + - col0 AS col2 FROM tab2
----
-8
13
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT + 34 DIV + col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT + 34 / + col1 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1165
SELECT ALL + 28 + + 89 * - MIN( + col0 ) - + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + 28 + + 89 * - MIN ( + col0 ) - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - ( - 3 ) FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + - col2
----
3
3
3

query I rowsort
SELECT DISTINCT col2 * ( - + col2 ) + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-2115
-80
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT - SUM( - col2 ) - + COUNT( * ) * + ( ( - COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
232

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT - SUM ( - col2 ) - + COUNT ( * ) * + ( ( - COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
232

query I rowsort
SELECT + 76 - + col0 FROM tab2 AS cor0
----
1
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - - COUNT( * ) - 42 AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1170
SELECT - - COUNT ( * ) - 42 AS col0 FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1171
SELECT ALL - + 29 - CAST( + col1 AS SIGNED ) * + 56 * + + 94 FROM tab0 cor0
----
-110573
-426413
-5293

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - + 29 - CAST ( + col1 AS INTEGER ) * + 56 * + + 94 FROM tab0 cor0
----
-110573
-426413
-5293

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1172
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - - SUM( - col1 ) * - 73 * + ( + + 75 ) FROM tab2 AS cor0
----
1067625

skipif mysql # not compatible
query I rowsort label-1174
SELECT - - SUM ( - col1 ) * - 73 * + ( + + 75 ) FROM tab2 AS cor0
----
1067625

query I rowsort
SELECT col2 * + + 74 + + col0 FROM tab2 cor0
----
1748
3024
4367

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col0 FROM tab1
----
59
68
96

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

query I rowsort
SELECT 87 * - - col2 + - + 42 AS col1 FROM tab0 WHERE NOT - + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - ( + + 53 ) * + + COUNT( * ) + 76 AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-1179
SELECT - ( + + 53 ) * + + COUNT ( * ) + 76 AS col2 FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT - 83 * + COUNT( * ) AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-1180
SELECT - 83 * + COUNT ( * ) AS col2 FROM tab0
----
-249

query I rowsort
SELECT ALL - + AVG ( ALL + + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL + 92 + - 94 FROM tab0 AS cor0
----
-2
-2
-2

query II rowsort
SELECT ALL - col0 AS col2, col0 + col1 FROM tab2 AS cor0
----
-46
97
-64
141
-75
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, + 79 FROM tab1 AS cor0
----
-51
79
-85
79
-91
79

query I rowsort
SELECT DISTINCT - 14 FROM tab0 AS cor0 WHERE NOT NULL <> 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT 90 DIV - + ( + 13 ) AS col0 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1186
SELECT 90 / - + ( + 13 ) AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1188
SELECT ALL - col0 / ( + col0 ) col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + - col1 FROM tab1 WHERE + 30 IS NULL
----

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

query II rowsort
SELECT + 9 * + + col0, + col2 AS col0 FROM tab2 AS cor0
----
414
23
576
40
675
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1192
SELECT ALL - 29 + + MIN( col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - 29 + + MIN ( col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-46

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

query I rowsort
SELECT + + 55 + + col2 - - col0 + - - 7 * col0 FROM tab2 AS cor0 WHERE ( + - 83 ) - + col1 + + col0 * + col2 >= NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 BETWEEN - - col0 AND NULL
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1197
SELECT DISTINCT + col0 / col1 / + CAST( NULL AS SIGNED ), + 29 * - + col2 AS col2 FROM tab1
----
NULL
-1711
NULL
-1972
NULL
-2784

skipif mysql # not compatible
query II rowsort label-1197
SELECT DISTINCT + col0 / col1 / + CAST ( NULL AS INTEGER ), + 29 * - + col2 AS col2 FROM tab1
----
NULL
-1711
NULL
-1972
NULL
-2784

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1199
SELECT ALL - COUNT( * ) + - - 62, + 48 AS col0 FROM tab2
----
59
48

skipif mysql # not compatible
query II rowsort label-1199
SELECT ALL - COUNT ( * ) + - - 62, + 48 AS col0 FROM tab2
----
59
48

query I rowsort
SELECT - col2 * - col2 * col1 - - - 91 * + - col0 - col0 AS col2 FROM tab2
----
128960
232138
31119

onlyif mysql # DIV for integer division: 
query II rowsort label-1201
SELECT ALL - ( - col2 ) AS col1, 52 DIV + col0 AS col2 FROM tab0
----
10
0
47
3
99
0

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL - ( - col2 ) AS col1, 52 / + col0 AS col2 FROM tab0
----
10
0
47
3
99
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + col0 <= NULL
----

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

query II rowsort
SELECT DISTINCT 17 AS col0, + 71 FROM tab1
----
17
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1205
SELECT ALL col2 * + - col2 / CAST( NULL AS SIGNED ) AS col0, 31 FROM tab0
----
NULL
31
NULL
31
NULL
31

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL col2 * + - col2 / CAST ( NULL AS INTEGER ) AS col0, 31 FROM tab0
----
NULL
31
NULL
31
NULL
31

query I rowsort
SELECT DISTINCT + - col1 + - col1 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-10
-28
-94

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1208
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1208
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

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

query I rowsort
SELECT ALL + + 52 / ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 5 / col0 * - - 73 + + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT + COUNT( + col1 ) * 15 FROM tab1 WHERE NOT + 93 IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-1212
SELECT + COUNT ( + col1 ) * 15 FROM tab1 WHERE NOT + 93 IS NULL
----
45

query I rowsort
SELECT ALL + 50 * - col2 * - ( + col1 ) AS col1 FROM tab1 WHERE 53 * + + col1 >= col2
----
14750
159800
67200

query I rowsort
SELECT DISTINCT + col0 + + + 78 FROM tab2
----
124
142
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT - COUNT( * ) * 93 FROM tab2, tab0 AS cor0
----
-837

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT - COUNT ( * ) * 93 FROM tab2, tab0 AS cor0
----
-837

query I rowsort
SELECT ( + col0 ) + col2 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT + 20 + col1 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT col2 DIV - 45 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1218
SELECT col2 / - 45 FROM tab2
----
-1
0
0

query I rowsort
SELECT + col1 FROM tab0 WHERE - col0 / 9 + ( - 46 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT - 6 FROM tab2 WHERE - 67 IS NULL
----

query I rowsort
SELECT ALL 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL ( SUM( DISTINCT - 89 ) ) col1 FROM tab0 WHERE 19 * 92 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1222
SELECT ALL ( SUM ( DISTINCT - 89 ) ) col1 FROM tab0 WHERE 19 * 92 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 94 AS col1 FROM tab1 WHERE NULL IS NULL
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT ALL col0 * - - col2 DIV col2 + - + col0 DIV + col2 AS col0 FROM tab0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL col0 * - - col2 / col2 + - + col0 / + col2 AS col0 FROM tab0
----
15
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT + 91 + 21 * + COUNT( * ) FROM tab0 AS cor0 WHERE + 9 * - 75 <> - col1
----
154

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 91 + 21 * + COUNT ( * ) FROM tab0 AS cor0 WHERE + 9 * - 75 <> - col1
----
154

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE ( NULL ) > + - col1
----

query I rowsort
SELECT DISTINCT + - 17 * + col0 * - 5 * + col0 FROM tab2 AS cor0
----
179860
348160
478125

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - COUNT ( * ) / - 88 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT - col0 + - + col0 + + - 28 DIV - 62 col2 FROM tab2
----
-128
-150
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1231
SELECT - col0 + - + col0 + + - 28 / - 62 col2 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1232
SELECT ALL COUNT( * ), 45 DIV 96 AS col1 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-1232
SELECT ALL COUNT ( * ), 45 / 96 AS col1 FROM tab0
----
3
0

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

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - 51 + + 53 AS col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - 87 + + + col2 AS col1 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT - - col0 - - col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - + COUNT( * ) - - - 23 + - ( + + MIN( - col0 ) ) + - + 32 * - 40 FROM tab0 AS cor0
----
1351

skipif mysql # not compatible
query I rowsort label-1238
SELECT - + COUNT ( * ) - - - 23 + - ( + + MIN ( - col0 ) ) + - + 32 * - 40 FROM tab0 AS cor0
----
1351

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-1241
SELECT + col0 AS col0, + col2 DIV + ( + 59 ) AS col0, - col1 * - + 63 - - 15 * - col1 FROM tab0 AS cor0
----
9 values hashing to 74fdbe487ae6bb3772b8f4e7255552a1

skipif mysql # not compatible
query III rowsort label-1241
SELECT + col0 AS col0, + col2 / + ( + 59 ) AS col0, - col1 * - + 63 - - 15 * - col1 FROM tab0 AS cor0
----
9 values hashing to 74fdbe487ae6bb3772b8f4e7255552a1

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL + SUM( ALL - + 30 ) - - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-248

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + SUM ( ALL - + 30 ) - - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1243
SELECT ALL 94 * + + col1 AS col0, - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
4794
-23
6298
-58
7238
-40

skipif mysql # not compatible
query II rowsort label-1243
SELECT ALL 94 * + + col1 AS col0, - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
4794
-23
6298
-58
7238
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT - 64 * CAST( - col1 AS SIGNED ) + + 15 + - col2 FROM tab1 AS cor0
----
276
2955
815

skipif mysql # not compatible
query I rowsort label-1244
SELECT - 64 * CAST ( - col1 AS INTEGER ) + + 15 + - col2 FROM tab1 AS cor0
----
276
2955
815

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT + + 37 DIV - - col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1245
SELECT + + 37 / - - col2 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab0 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT 55 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT 55 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-165

query I rowsort
SELECT + + 64 * + col0 AS col1 FROM tab2 AS cor0
----
2944
4096
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT DISTINCT 89 DIV + col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT 89 / + col1 FROM tab1
----
1
17
6

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

query I rowsort
SELECT - 79 + 10 FROM tab2 WHERE NOT col2 IS NULL
----
-69
-69
-69

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

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

query I rowsort
SELECT ALL + + col2 * 43 + - col0 FROM tab2 AS cor0
----
1656
2419
943

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

query I rowsort
SELECT col0 + 77 * col1 AS col0 FROM tab0
----
1704
174
6252

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT DISTINCT MIN( + 86 ) + + 6 AS col1 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT MIN ( + 86 ) + + 6 AS col1 FROM tab1 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT col0 * - ( - col1 ) FROM tab2 AS cor0 WHERE 47 + + + col0 NOT IN ( col0 )
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 14 + 90 + - + col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
29
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1260
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( 2 AS SIGNED ) / + + 88 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1260
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( 2 AS INTEGER ) / + + 88 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT - col1 DIV - 96 - + ( + - col1 ) * + - 98 FROM tab0 AS cor0 WHERE + col0 DIV col0 IS NOT NULL
----
-2058
-7938
-98

skipif mysql # not compatible
query I rowsort label-1261
SELECT - col1 / - 96 - + ( + - col1 ) * + - 98 FROM tab0 AS cor0 WHERE + col0 / col0 IS NOT NULL
----
-2058
-7938
-98

query I rowsort
SELECT DISTINCT col1 - - - 71 * + col2 AS col2 FROM tab1 AS cor0 WHERE - ( + col2 ) + + ( - col1 ) < 85
----
-4184
-4781
-6802

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1264
SELECT ALL 47 * + col1 - + + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL 47 * + col1 - + + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - MIN( 88 ) AS col2 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - MIN ( 88 ) AS col2 FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - COUNT( * ) * + COUNT( * ) - - SUM( DISTINCT - col0 ) FROM tab0
----
-208

skipif mysql # not compatible
query I rowsort label-1266
SELECT - COUNT ( * ) * + COUNT ( * ) - - SUM ( DISTINCT - col0 ) FROM tab0
----
-208

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT + col2 DIV - 55 - + 80 AS col2 FROM tab2
----
-80
-80
-81

skipif mysql # not compatible
query I rowsort label-1268
SELECT + col2 / - 55 - + 80 AS col2 FROM tab2
----
-80
-80
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT 15 + - MAX( DISTINCT - + col1 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1269
SELECT 15 + - MAX ( DISTINCT - + col1 ) FROM tab2
----
66

query I rowsort
SELECT - 6 + - col1 AS col1 FROM tab0
----
-27
-7
-87

query I rowsort
SELECT + col2 * - col0 * 89 FROM tab0
----
-62745
-77430
-854667

query I rowsort
SELECT DISTINCT col1 * + 31 AS col2 FROM tab0 cor0
----
2511
31
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col1 ) col1 FROM tab0 AS cor0
----
1
21
81

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

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

query I rowsort
SELECT - + col0 * + + 36 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1656
-2304
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT ( - CAST( - MAX( + 33 ) AS SIGNED ) ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1276
SELECT ( - CAST ( - MAX ( + 33 ) AS INTEGER ) ) FROM tab0
----
33

query II rowsort
SELECT + 56, + col0 + - col2 AS col0 FROM tab0
----
56
-2
56
-32
56
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT DISTINCT - col1 / 78 + - + 47 col2 FROM tab0 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1278
SELECT DISTINCT - col1 / 78 + - + 47 col2 FROM tab0 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) IS NULL )
----

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

query I rowsort
SELECT ALL 48 - + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 27 IS NULL
----
-51
1
38

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

query I rowsort
SELECT + col1 * + + 41 FROM tab0 AS cor0
----
3321
41
861

onlyif mysql # DIV for integer division: 
query III rowsort label-1283
SELECT ALL 89 AS col1, col1 DIV ( col0 ), + + ( - 70 ) AS col0 FROM tab2 AS cor0
----
9 values hashing to e2ee44b138eb36ef95a7863605d035eb

skipif mysql # not compatible
query III rowsort label-1283
SELECT ALL 89 AS col1, col1 / ( col0 ), + + ( - 70 ) AS col0 FROM tab2 AS cor0
----
9 values hashing to e2ee44b138eb36ef95a7863605d035eb

query II rowsort
SELECT - col2 AS col0, + col1 * + + col1 * + col2 + + - col0 FROM tab0 AS cor0
----
-10
4323
-47
308352
-99
2

query I rowsort
SELECT DISTINCT col2 * - - 7 AS col1 FROM tab1
----
413
476
672

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

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

query I rowsort
SELECT DISTINCT - + col0 * + - col0 * - col0 + - 28 * - + col0 * + 41 AS col0 FROM tab2 AS cor0
----
-188672
-335775
-44528

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT col2 * col2 DIV + 90 AS col1 FROM tab0 AS cor0
----
1
108
24

skipif mysql # not compatible
query I rowsort label-1288
SELECT col2 * col2 / + 90 AS col1 FROM tab0 AS cor0
----
1
108
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 16 + - + col2 >= + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1290
SELECT - - COUNT ( * ) + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT - MIN( ALL - - col0 ) col1 FROM tab0 WHERE NOT 10 IS NULL
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1291
SELECT DISTINCT - MIN ( ALL - - col0 ) col1 FROM tab0 WHERE NOT 10 IS NULL
----
-15

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL BETWEEN - 55 AND 28 * + - 26
----

query I rowsort
SELECT ALL + 57 + + + col0 FROM tab1 AS cor0
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL - COUNT( * ) + 2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - COUNT ( * ) + 2 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT col2 + - 39 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
2012
2671
3043

skipif mysql # not compatible
query I rowsort label-1295
SELECT col2 + - 39 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
2012
2671
3043

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1297
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ), - col0, + col1, - + col2 + + + col2, + ( - col1 ), - col2, + - col2 )
----

skipif mysql # not compatible
query III rowsort label-1297
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ), - col0, + col1, - + col2 + + + col2, + ( - col1 ), - col2, + - col2 )
----

query I rowsort
SELECT DISTINCT ( - - 13 ) FROM tab0
----
13

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - - col0 + - - col1 * col2 AND - - 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * + col1 * - + col2 FROM tab0
----
-178929
-2100
-9801

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL 89 * + + MAX( col0 ) FROM tab0
----
8633

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 89 * + + MAX ( col0 ) FROM tab0
----
8633

query I rowsort
SELECT ( 82 ) * + 24 FROM tab1 WHERE NOT NULL = + col2
----

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

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

query I rowsort
SELECT + 66 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
3270
5551
5938

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 - - col0 >= NULL
----

query II rowsort
SELECT DISTINCT + col0, - 95 + col0 + - col1 FROM tab2 AS cor0
----
46
-100
64
-108
75
-87

query I rowsort
SELECT DISTINCT + 64 * + col1 AS col1 FROM tab0
----
1344
5184
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1311
SELECT DISTINCT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / + MAX( - 11 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / + MAX ( - 11 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT DISTINCT - CAST( + - 52 AS SIGNED ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT - CAST ( + - 52 AS INTEGER ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT 68 * + MAX( - ( + 57 ) ) FROM tab1
----
-3876

skipif mysql # not compatible
query I rowsort label-1313
SELECT 68 * + MAX ( - ( + 57 ) ) FROM tab1
----
-3876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 25 + - col2 + col2 + col1 * - col0 + + - col0 + col2 col0 FROM tab1
----
14
-644
47
-4275
5
-426

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

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

query II rowsort
SELECT DISTINCT 74 + - col1, col1 + - col2 AS col1 FROM tab1 AS cor0
----
27
-21
60
-82
69
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT DISTINCT - col2 DIV + col1 * + - 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT - col2 / + col1 * + - 96 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 25 + + 98 + - col1 AS col1 FROM tab2 AS cor0
----
46
56
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - MAX( ALL - col1 ) * - 82 + + - 70 * + + ( - + COUNT( * ) ) col1 FROM tab1 AS cor0
----
-200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1320
SELECT - MAX ( ALL - col1 ) * - 82 + + - 70 * + + ( - + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-200

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT DISTINCT - 82 * + ( - CAST( + col1 AS SIGNED ) ) - - col0 + + - 2 * + col2 AS col1 FROM tab1 cor0
----
1007
377
3809

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - 82 * + ( - CAST ( + col1 AS INTEGER ) ) - - col0 + + - 2 * + col2 AS col1 FROM tab1 cor0
----
1007
377
3809

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1324
SELECT DISTINCT + MIN ( ALL + + col0 ) col0 FROM tab0 AS cor0
----
15

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

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

query I rowsort
SELECT DISTINCT 99 * - 96 FROM tab1
----
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL 69 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL 69 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( ( - ( - col0 ) ) ) FROM tab1
----
51
85
91

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

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

skipif mysql # not compatible
query I rowsort label-1331
SELECT - 40 + + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 99 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + - 8 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT COUNT( * ) * - - ( - 13 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1336
SELECT COUNT ( * ) * - - ( - 13 ) FROM tab2 AS cor0
----
-39

query II rowsort
SELECT DISTINCT - col0 * + 79 AS col0, - ( + col2 ) FROM tab1 AS cor0
----
-4029
-96
-6715
-59
-7189
-68

query I rowsort
SELECT - col0 + + 48 AS col0 FROM tab1
----
-3
-37
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1339
SELECT - col2 * + CAST( col2 AS SIGNED ) + ( - col0 ) + + col0 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1339
SELECT - col2 * + CAST ( col2 AS INTEGER ) + ( - col0 ) + + col0 FROM tab0
----
-100
-2209
-9801

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

skipif mysql # not compatible
query I rowsort label-1340
SELECT COUNT ( col2 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + + col2 * + + 32 FROM tab2 AS cor0
----
1280
1856
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT ALL + col1 + - + 96 + + col0 + CAST( + 49 AS SIGNED ) FROM tab0 AS cor0
----
49
51
61

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + col1 + - + 96 + + col0 + CAST ( + 49 AS INTEGER ) FROM tab0 AS cor0
----
49
51
61

query I rowsort
SELECT ALL + 54 FROM tab0 AS cor0 WHERE NULL < + col1
----

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

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

query II rowsort
SELECT ALL ( 92 ) AS col2, - col1 AS col2 FROM tab0
----
92
-1
92
-21
92
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT + AVG ( DISTINCT - - col1 ) - - 72 + + CAST( - SUM( + - 11 ) AS SIGNED ) / - 21 * 51 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT + AVG ( DISTINCT - - col1 ) - - 72 + + CAST ( - SUM ( + - 11 ) AS INTEGER ) / - 21 * 51 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - 89 FROM tab1 cor0
----
-1246
-4183
-445

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( - - col0 )
----

query II rowsort
SELECT + 46 AS col0, - 57 FROM tab1 AS cor0
----
46
-57
46
-57
46
-57

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

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

query I rowsort
SELECT 68 + + 37 / + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= + col1 * + ( col1 ) * + col2 + - + col2
----

query I rowsort
SELECT DISTINCT + col0 * + ( - col0 ) FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( 94 ) IS NOT NULL
----

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

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

query III rowsort
SELECT ALL ( - col2 ) AS col1, col1, 38 AS col0 FROM tab2
----
9 values hashing to 29faabc2924686b768b03d11d8845d70

query I rowsort
SELECT + + ( + 10 ) * - - col0 FROM tab0 AS cor0
----
150
870
970

query II rowsort
SELECT ALL + col0, col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT DISTINCT - - 96 col1, - 5 * + SUM( ALL + 6 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
96
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1360
SELECT DISTINCT - - 96 col1, - 5 * + SUM ( ALL + 6 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
96
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT - MAX( col2 ) * + 2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT - MAX ( col2 ) * + 2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + + 79 + - col2 FROM tab1 AS cor0
----
-17
11
20

query I rowsort
SELECT ALL + col1 + 31 AS col0 FROM tab2 cor0
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT 76 + - 88 + - - 10 + - - SUM( col0 ) AS col0 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT 76 + - 88 + - - 10 + - - SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
183

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

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

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

query I rowsort
SELECT + 36 * + + col1 FROM tab2
----
1836
2412
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT - CAST( NULL AS SIGNED ) - 11 + + ( - - col0 ) + - 28 - - col0 - + col0 + + col1 * + + 91 - col1 - - - 71 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT - CAST ( NULL AS INTEGER ) - 11 + + ( - - col0 ) + - 28 - - col0 - + col0 + + col1 * + + 91 - col1 - - - 71 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col2 + + col1 * - 51 * - 77 * 85 FROM tab2 AS cor0
----
17023614
22364398
25702319

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT + COUNT ( ALL + 54 ) FROM tab2
----
3

query I rowsort
SELECT 3 * - 53 FROM tab1
----
-159
-159
-159

query I rowsort
SELECT ( col2 ) * + col0 - 9 AS col0 FROM tab1
----
4887
5006
6179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - + col0 col2 FROM tab2
----
-2346
-3264
-3825

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * 25 * - 9 BETWEEN + ( + 79 ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-102400
-24334
-252300

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1380
SELECT - CAST ( + + 57 AS INTEGER ) FROM tab0
----
-57
-57
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1381
SELECT CAST( NULL AS DECIMAL ) AS col2, 34 AS col2 FROM tab1
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-1381
SELECT CAST ( NULL AS REAL ) AS col2, 34 AS col2 FROM tab1
----
NULL
34
NULL
34
NULL
34

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 NOT BETWEEN - col2 * - col2 AND col0
----

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

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

query III rowsort
SELECT ALL - 93 AS col0, col0, col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to cce11322bdc15e1c3699aa7adea5c7bb

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT - 7 DIV col1 AS col1 FROM tab0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 7 / col1 AS col1 FROM tab0
----
-7
0
0

query II rowsort
SELECT DISTINCT ( - 66 ), 40 * - col1 AS col1 FROM tab0
----
-66
-3240
-66
-40
-66
-840

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 65 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
225
7569
9409

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1390
SELECT + CAST( - - AVG ( DISTINCT + 85 ) AS DECIMAL ), 35 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1390
SELECT + CAST ( - - AVG ( DISTINCT + 85 ) AS REAL ), 35 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL
35

query I rowsort
SELECT + - 93 + + + col2 - col1 FROM tab1 cor0
----
-11
-39
-72

query I rowsort
SELECT - col2 * - - col2 * + col0 + - - 16 FROM tab0
----
-33119
-8684
-950681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1393
SELECT DISTINCT - COUNT( - col2 ) * 60 FROM tab0 WHERE NULL NOT BETWEEN - + CAST( col2 AS SIGNED ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - COUNT ( - col2 ) * 60 FROM tab0 WHERE NULL NOT BETWEEN - + CAST ( col2 AS INTEGER ) AND col2
----
0

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

query I rowsort
SELECT DISTINCT - col0 + + 19 AS col1 FROM tab0 WHERE NOT ( - 95 * + 84 - 9 ) >= - 11 * - col2 / col1
----
-68
-78
4

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( 98 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1399
SELECT DISTINCT * FROM tab1 WHERE NOT 33 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1399
SELECT DISTINCT * FROM tab1 WHERE NOT 33 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL 58 * col0 + + 59 AS col0 FROM tab1
----
3017
4989
5337

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 88 + + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 84 = ( NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1407
SELECT - ( + CAST ( NULL AS INTEGER ) ) + - col0 * 76 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 40 - - 33 FROM tab2
----
73
73
73

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col0 AND col0 + + 74
----

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

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

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

query I rowsort
SELECT 35 + + ( + col1 ) FROM tab0
----
116
36
56

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

skipif mysql # not compatible
query III rowsort label-1414
SELECT * FROM tab1 WHERE + CAST ( NULL AS REAL ) * 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 50 FROM tab0 AS cor0 WHERE NOT - col2 * 99 - + col1 BETWEEN ( 38 ) AND ( NULL )
----
50
50
50

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT + MIN( ALL - col2 ) FROM tab1 WHERE NULL NOT BETWEEN + 65 * col1 AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT + MIN ( ALL - col2 ) FROM tab1 WHERE NULL NOT BETWEEN + 65 * col1 AND ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - 23 + COUNT( - col1 ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1421
SELECT - 23 + COUNT ( - col1 ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT 80 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
80
80
80

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

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

query I rowsort
SELECT DISTINCT - + col1 * 33 + col0 FROM tab0 AS cor0
----
-2658
-606
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT COUNT( * ) * - 36 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT COUNT ( * ) * - 36 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----
0

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - ( - MIN ( col2 ) ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - 18 * col2 - ( - col0 ) * + 35 FROM tab2 cor0
----
1196
1520
1581

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( 11 )
----

query I rowsort
SELECT col2 * - col2 * col1 AS col1 FROM tab0
----
-178929
-2100
-9801

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) >= NULL
----

query I rowsort
SELECT ALL - col2 - col1 + + col0 AS col0 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ALL + 23 * - col0 * 26 AS col2 FROM tab0
----
-52026
-58006
-8970

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - 25 col1 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT MAX( DISTINCT + + col2 ) - - 14 * SUM( col2 * 69 ) FROM tab1
----
215514

skipif mysql # not compatible
query I rowsort label-1436
SELECT MAX ( DISTINCT + + col2 ) - - 14 * SUM ( col2 * 69 ) FROM tab1
----
215514

query I rowsort
SELECT - col0 - + - col1 FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - ( - ( col2 ) ) * + 39 - 74 col0 FROM tab1
----
-191018
-195659
-241406

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1439
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 72 / - col1 )
----

query I rowsort
SELECT 21 + 13 * 57 AS col2 FROM tab2
----
762
762
762

query I rowsort
SELECT - ( - 97 ) * - 10 + - 92 AS col2 FROM tab0 cor0
----
-1062
-1062
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT SUM( ALL col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + 35 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 94 )
----

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

query I rowsort
SELECT ( + 17 ) FROM tab1 WHERE NOT ( 65 ) >= ( 81 )
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT + - COUNT( * ) - 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-1447
SELECT + - COUNT ( * ) - 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT ALL col0 * - col1 FROM tab1 WHERE - - 93 NOT BETWEEN ( NULL ) AND col1
----
-425
-4277
-714

query I rowsort
SELECT ALL 72 * + col2 - col1 FROM tab0 WHERE + 36 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT DISTINCT col2 * - CAST( + col2 AS SIGNED ) * + col0 FROM tab2
----
-102400
-24334
-252300

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT col2 * - CAST ( + col2 AS INTEGER ) * + col0 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL MAX( - ( + col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL MAX ( - ( + col0 ) ) FROM tab1
----
-51

query II rowsort
SELECT ALL + - 26 AS col1, 32 AS col1 FROM tab1 AS cor0
----
-26
32
-26
32
-26
32

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

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

query I rowsort
SELECT - - 78 + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
124
142
153

query II rowsort
SELECT DISTINCT - - 88, + col2 AS col1 FROM tab1 AS cor0
----
88
59
88
68
88
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT MIN( 40 ) AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1457
SELECT MIN ( 40 ) AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT 98 * + col2 FROM tab0 AS cor0
----
4606
9702
980

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 NOT BETWEEN - col0 AND col1 * - col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1462
SELECT col1 + + col2 col1, col1 DIV col2 * 51 AS col2 FROM tab2
----
117
51
125
51
74
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1462
SELECT col1 + + col2 col1, col1 / col2 * 51 AS col2 FROM tab2
----
117
51
125
51
74
102

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 * + - 7 ) IS NULL
----

query I rowsort
SELECT ALL col0 * + + 48 AS col0 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT col1 + - col1 * + 33 FROM tab1 WHERE NOT + 88 + - 36 IN ( + col0 )
----
-1504
-160
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT ALL + COUNT( * ) * + COUNT( DISTINCT CAST( - 39 AS SIGNED ) ) * COUNT( * ) + ( COUNT( * ) ) * + COUNT( ALL col2 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + COUNT ( * ) * + COUNT ( DISTINCT CAST ( - 39 AS INTEGER ) ) * COUNT ( * ) + ( COUNT ( * ) ) * + COUNT ( ALL col2 ) FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 * - col0 col1 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE ( - ( + col1 ) ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 12 + + col2 AS col2 FROM tab1 AS cor0 WHERE + 96 BETWEEN ( NULL ) AND - 98 * - 6
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT DISTINCT - col2 * - - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - col2 * - - col2 / col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1473
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + CAST( col1 AS DECIMAL ) + - 24 AND col0
----

skipif mysql # not compatible
query III rowsort label-1473
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + CAST ( col1 AS REAL ) + - 24 AND col0
----

query I rowsort
SELECT + ( + - 99 ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - + 14 * - col0 * - col0 + - 0 + - col2 AS col1 FROM tab2 cor0
----
-29647
-57384
-78808

query I rowsort
SELECT DISTINCT + 67 + + - col2 AS col2 FROM tab0 cor0
----
-32
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT DISTINCT 99 + + - 79 * - - COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT 99 + + - 79 * - - COUNT ( * ) FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + + 40 + - - COUNT( * ) + 29 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + + 40 + - - COUNT ( * ) + 29 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + 8 + 46 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT - col2 + - + 65 FROM tab1 AS cor0
----
-124
-133
-161

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

query I rowsort
SELECT 79 + - + ( + col2 ) FROM tab1 cor0
----
-17
11
20

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

query I rowsort
SELECT ALL 71 - 96 + + + col0 AS col1 FROM tab2
----
21
39
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT ALL - 24 DIV + - 41 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - 24 / + - 41 AS col2 FROM tab1
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT ALL + col1 DIV + col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT ALL + col1 / + col2 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - 78 FROM tab0
----
1
-78
21
-78
81
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL - - COUNT( * ) FROM tab2 cor0 WHERE + col1 + + col2 / + - ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - - COUNT ( * ) FROM tab2 cor0 WHERE + col1 + + col2 / + - ( + col0 ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT - COUNT ( * ) * + + SUM ( + - col1 ) AS col1 FROM tab1 AS cor0
----
198

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( - col1 * + + 5 ) IN ( 79 / + - 30 )
----
51
85
91

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col2 * - col2 * - col0 * + col1 IS NULL
----
15
87
97

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

query I rowsort
SELECT - col1 * + 94 * + 89 * + 98 FROM tab2 AS cor0
----
-41813268
-54931156
-63129836

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT 87 * - + COUNT( * ) * - 33 AS col0 FROM tab0 AS cor0
----
8613

skipif mysql # not compatible
query I rowsort label-1495
SELECT 87 * - + COUNT ( * ) * - 33 AS col0 FROM tab0 AS cor0
----
8613

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT ALL COUNT( * ), COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-1498
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3
3

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - 12 )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT - 97 DIV col0 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 97 / col0 FROM tab0
----
-1
-1
-6

query I rowsort
SELECT + 49 FROM tab0 WHERE NOT 87 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT - 70 col0, COUNT( * ) FROM tab1
----
-70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1505
SELECT - 70 col0, COUNT ( * ) FROM tab1
----
-70
3

query III rowsort
SELECT DISTINCT col1 * - 19 * - + col1, + col0 AS col1, col2 AS col0 FROM tab2
----
9 values hashing to 9e500723d903cbc859485d88979d0574

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + COUNT( * ) + AVG ( DISTINCT + col1 ) / - 34 AS col2 FROM tab0 WHERE + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT + COUNT ( * ) + AVG ( DISTINCT + col1 ) / - 34 AS col2 FROM tab0 WHERE + - col0 IS NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL + col0 + - + col1 + CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) * + 39 FROM tab0 cor0
----
1767
3957
456

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + col0 + - + col1 + CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) * + 39 FROM tab0 cor0
----
1767
3957
456

query I rowsort
SELECT ALL + - 71 * + 90 * - col1 FROM tab0 cor0
----
134190
517590
6390

query I rowsort
SELECT ALL - 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT 54 + + - col0 FROM tab1 WHERE ( NOT ( NOT col2 * - - col0 IS NOT NULL ) )
----
-31
-37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( + 25 ) IS NOT NULL )
----
9

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( + 25 ) IS NOT NULL )
----
9

query I rowsort
SELECT - 30 * + + 83 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 7530c3e2df637f5d2e44b96e39aa51c3

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT DISTINCT - - 95 - + - 24, COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
119
9

skipif mysql # not compatible
query II rowsort label-1515
SELECT DISTINCT - - 95 - + - 24, COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
119
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT DISTINCT + col1 + + col1 + + col2 - + 36 DIV - col0 * 97 FROM tab1 AS cor0
----
124
162
69

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + col1 + + col1 + + col2 - + 36 / - col0 * 97 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT DISTINCT + - 44 * + - 19 - - ( + + 25 ) FROM tab0 AS cor0
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT + - COUNT( * ) + - SUM( DISTINCT 73 ) AS col0 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT + - COUNT ( * ) + - SUM ( DISTINCT 73 ) AS col0 FROM tab1 cor0
----
-76

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

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL + 97 - + COUNT( * ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + 97 - + COUNT ( * ) AS col2 FROM tab1
----
94

query I rowsort
SELECT ( - - col2 ) * + col0 - - col2 AS col2 FROM tab1
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - COUNT( * ) * - 1 col1 FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT COUNT( * ) * COUNT( * ) * - + 69, 66 AS col0 FROM tab0
----
-621
66

skipif mysql # not compatible
query II rowsort label-1525
SELECT COUNT ( * ) * COUNT ( * ) * - + 69, 66 AS col0 FROM tab0
----
-621
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - 68 * + COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 68 * + COUNT ( * ) FROM tab1
----
-204

query I rowsort
SELECT - col0 * - ( - 19 ) * + + col1 FROM tab2
----
-44574
-93632
-95475

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

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

query II rowsort
SELECT ALL + col2, - 29 * + col0 FROM tab0
----
10
-2523
47
-435
99
-2813

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT + 36 * - MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
1836

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT + 36 * - MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
1836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1532
SELECT DISTINCT SUM( + + CAST( - 93 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT SUM ( + + CAST ( - 93 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + MAX( DISTINCT - - 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + MAX ( DISTINCT - - 69 ) FROM tab2
----
69

query II rowsort
SELECT DISTINCT + col1 AS col0, - 18 AS col0 FROM tab1 AS cor0
----
14
-18
47
-18
5
-18

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

skipif mysql # not compatible
query II rowsort label-1535
SELECT ALL COUNT ( * ) AS col0, - 54 FROM tab0 AS cor0
----
3
-54

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

query I rowsort
SELECT col1 * - col2 * 51 FROM tab2 cor0
----
-157080
-198186
-59823

query I rowsort
SELECT + + col1 + col1 + + 44 FROM tab2 AS cor0
----
146
178
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT - 88 + + COUNT( ALL ( col2 ) ) col2 FROM tab1
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1539
SELECT - 88 + + COUNT ( ALL ( col2 ) ) col2 FROM tab1
----
-85

query III rowsort
SELECT 71 + col2 AS col2, 38, + - 64 AS col2 FROM tab0
----
9 values hashing to 7befec651df5586e9100cb3be2273c79

query I rowsort
SELECT DISTINCT 74 + + col1 + - col2 * - 82 FROM tab0
----
4009
8193
915

query I rowsort
SELECT DISTINCT col0 - - - col1 + - - 15 AS col1 FROM tab0
----
-51
111
81

query I rowsort
SELECT DISTINCT 81 + - 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query I rowsort
SELECT 65 + col1 AS col2 FROM tab1
----
112
70
79

query I rowsort
SELECT - - ( - 55 ) + + col0 AS col2 FROM tab2 AS cor0
----
-9
20
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + - col2 * - col1 + + + col0 * 32 col2 FROM tab1 AS cor0
----
2912
2951
6044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * - col0 col2 FROM tab2 AS cor0
----
-2024
-2816
-3300

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

query II rowsort
SELECT + 36 AS col1, - col2 FROM tab0 AS cor0
----
36
-10
36
-47
36
-99

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

skipif mysql # not compatible
query I rowsort label-1550
SELECT MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col1 FROM tab0 WHERE 48 IS NOT NULL
----
210
3807
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 1 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * 78 AS col2 FROM tab0 AS cor0
----
-3666
-7722
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT - + 9 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-414
-576
-675

skipif mysql # not compatible
query I rowsort label-1556
SELECT - + 9 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1557
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-1557
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1560
SELECT ALL + 25 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL + 25 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + COUNT( * ) * - + 33 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1561
SELECT + COUNT ( * ) * - + 33 FROM tab0 cor0
----
-99

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1563
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

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

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

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

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

query II rowsort
SELECT ALL - 35, ( - col1 ) AS col2 FROM tab2
----
-35
-51
-35
-67
-35
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT 40 - - - COUNT( DISTINCT + 68 ) + + - 13 * COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT 40 - - - COUNT ( DISTINCT + 68 ) + + - 13 * COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 * + - col0 + + 0 + col1 FROM tab2 cor0
----
-2295
-4851
-4958

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT ALL + col1 + + col2 - - col0 + col1 DIV col2 AS col0 FROM tab2 AS cor0
----
122
182
201

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + col1 + + col2 - - col0 + col1 / col2 AS col0 FROM tab2 AS cor0
----
122
182
201

query I rowsort
SELECT col0 * - 75 * col0 FROM tab0
----
-16875
-567675
-705675

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT 84 + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
75

skipif mysql # not compatible
query I rowsort label-1572
SELECT 84 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
75

query I rowsort
SELECT DISTINCT col2 * - 85 AS col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 <> ( - 51 + - col0 )
----

query I rowsort
SELECT + 27 * col2 - 55 FROM tab2 AS cor0
----
1025
1511
566

query II rowsort
SELECT + 4 AS col2, - 37 AS col1 FROM tab2
----
4
-37
4
-37
4
-37

query I rowsort
SELECT - + 71 FROM tab1 WHERE NOT ( NOT - 68 - col1 NOT BETWEEN NULL AND - - 24 + + + 71 )
----

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

query I rowsort
SELECT ALL + 72 * - + col0 - 83 + 97 * col1 AS col2 FROM tab1 cor0
----
-2076
-2397
-5718

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT col0 DIV + 17 + 6 FROM tab1 AS cor0
----
11
9

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT col0 / + 17 + 6 FROM tab1 AS cor0
----
11
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT DISTINCT - COUNT( + + 47 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - COUNT ( + + 47 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab0 WHERE NOT ( + col2 * - 63 ) IS NOT NULL
----

query I rowsort
SELECT + 27 * 55 AS col2 FROM tab2
----
1485
1485
1485

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

query II rowsort
SELECT ALL + - col0 + - 67, + col0 AS col2 FROM tab2 AS cor0
----
-113
46
-131
64
-142
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT + 45 FROM tab2 AS cor0 WHERE ( + ( CAST( - - 67 AS SIGNED ) ) > NULL )
----

skipif mysql # not compatible
query I rowsort label-1586
SELECT + 45 FROM tab2 AS cor0 WHERE ( + ( CAST ( - - 67 AS INTEGER ) ) > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT 51 + ( 78 ) DIV col2 FROM tab1 AS cor0
----
51
52
52

skipif mysql # not compatible
query I rowsort label-1587
SELECT 51 + ( 78 ) / col2 FROM tab1 AS cor0
----
51
52
52

query II rowsort
SELECT ( - col1 ) + ( + col1 ) * col0 AS col2, + 55 * + 47 * - col1 FROM tab1
----
420
-12925
4230
-121495
700
-36190

query II rowsort
SELECT DISTINCT + col0, - col1 + - + col0 FROM tab2
----
46
-97
64
-141
75
-142

query I rowsort
SELECT ALL - 86 * + - col0 FROM tab0
----
1290
7482
8342

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

query III rowsort
SELECT * FROM tab2 WHERE - 87 NOT BETWEEN + 87 * col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT + COUNT( * ) - - MIN( ALL + 86 ) FROM tab2 WHERE - CAST( - col1 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT + COUNT ( * ) - - MIN ( ALL + 86 ) FROM tab2 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 31 + - 4 FROM tab0 cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT ALL - 5 + + - col2 - - + col0 DIV + 97 FROM tab1 AS cor0
----
-101
-64
-73

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - 5 + + - col2 - - + col0 / + 97 FROM tab1 AS cor0
----
-101
-64
-73

query I rowsort
SELECT DISTINCT col0 - + 45 FROM tab0
----
-30
42
52

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

query I rowsort
SELECT - - col2 * + ( - col0 ) AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT MAX( DISTINCT + col0 ) * + + 93 AS col1 FROM tab1
----
8463

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT MAX ( DISTINCT + col0 ) * + + 93 AS col1 FROM tab1
----
8463

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1603
SELECT - 32 * + COUNT( * ) AS col0 FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) + + + 60 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1603
SELECT - 32 * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) + + + 60 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1604
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + 83 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1604
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + 83 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1605
SELECT DISTINCT - col0 + 19 + - col2 DIV col1 + + col0 AS col0, + 40 + + 96 AS col1 FROM tab2 AS cor0
----
19
136

skipif mysql # not compatible
query II rowsort label-1605
SELECT DISTINCT - col0 + 19 + - col2 / col1 + + col0 AS col0, + 40 + + 96 AS col1 FROM tab2 AS cor0
----
19
136

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = ( + + 40 )
----
46
51
23
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL + SUM( ALL - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + SUM ( ALL - col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - + SUM( + + col0 ) col0 FROM tab0 AS cor0
----
-199

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT - 67 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1610
SELECT - 67 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-201

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 + - 23 * - col2 FROM tab0 AS cor0
----
-2726
20
2178

query I rowsort
SELECT ALL - col2 * - + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT col2 - 29 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-6
11
29

query I rowsort
SELECT ALL 87 - - 21 FROM tab1 cor0
----
108
108
108

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

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

query II rowsort
SELECT 91 - - + 87, col1 * + + ( + col2 ) AS col2 FROM tab0
----
178
210
178
3807
178
99

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN NULL AND - 36 + - 89 ) )
----

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

query I rowsort
SELECT 40 + - col2 + col1 * + 90 + - + ( 30 ) + - - ( - + 18 ) * - - col1 FROM tab1
----
311
3326
922

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

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

query I rowsort
SELECT - col1 * + + col2 + - col0 FROM tab2 cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL - col0 + - ( + 56 ) FROM tab1 AS cor0
----
-107
-141
-147

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT MIN( ALL + col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1626
SELECT MIN ( ALL + col1 ) col2 FROM tab0
----
1

query I rowsort
SELECT + col0 * col2 * - ( - + 59 ) FROM tab0
----
41595
51330
566577

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT - 98 * + - ( + 22 ) col0, MIN( ALL - + 78 ) FROM tab0
----
2156
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1628
SELECT - 98 * + - ( + 22 ) col0, MIN ( ALL - + 78 ) FROM tab0
----
2156
-78

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

query II rowsort
SELECT DISTINCT 83 AS col0, - col2 FROM tab1 AS cor0
----
83
-59
83
-68
83
-96

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

query I rowsort
SELECT DISTINCT + + 77 * + 23 AS col0 FROM tab0 AS cor0
----
1771

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 52, col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1634
SELECT DISTINCT col0, 29 DIV col2 FROM tab2
----
46
1
64
0
75
0

skipif mysql # not compatible
query II rowsort label-1634
SELECT DISTINCT col0, 29 / col2 FROM tab2
----
46
1
64
0
75
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 * + col2 * - 34 NOT IN ( col1, + 12 )
----

query I rowsort
SELECT + 67 * + col1 * col2 + + 74 AS col0 FROM tab0
----
14144
255143
6707

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT ALL - 24 * + + 60 + + - CAST( NULL AS SIGNED ) + + 43 * + - col2 * - col1 * 10 / - 16 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - 24 * + + 60 + + - CAST ( NULL AS INTEGER ) + + 43 * + - col2 * - col1 * 10 / - 16 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 70 * + ( - col1 ) * + ( + col1 ) + + - 13 FROM tab0
----
-30883
-459283
-83

query II rowsort
SELECT ALL - col0 * + col0, - col1 AS col2 FROM tab0
----
-225
-81
-7569
-21
-9409
-1

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

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

query I rowsort
SELECT - col1 + - 54 * + - 70 AS col1 FROM tab1 cor0
----
3733
3766
3775

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col0 ) <= + col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL 49 + + col1 * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1151
-1691
49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT + - 18, + MAX( DISTINCT + + 62 ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, col1 * - col2, col1 / - 68 )
----
-18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1649
SELECT + - 18, + MAX ( DISTINCT + + 62 ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, col1 * - col2, col1 / - 68 )
----
-18
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 + + - col1 * col2 col1 FROM tab1
----
-1389
-269
-3173

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

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

query II rowsort
SELECT DISTINCT 96, - col1 AS col2 FROM tab1
----
96
-14
96
-47
96
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1653
SELECT DISTINCT * FROM tab0 WHERE col1 + + + 19 + CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1653
SELECT DISTINCT * FROM tab0 WHERE col1 + + + 19 + CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT - 8 * - COUNT( * ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 8 * - COUNT ( * ) AS col1 FROM tab2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT - - col2 * 85 - - 75 DIV - col1 FROM tab0 AS cor0
----
3995
8340
847

skipif mysql # not compatible
query I rowsort label-1655
SELECT - - col2 * 85 - - 75 / - col1 FROM tab0 AS cor0
----
3995
8340
847

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT ALL COUNT( + col1 ) AS col2, 92 AS col1 FROM tab2
----
3
92

skipif mysql # not compatible
query II rowsort label-1658
SELECT ALL COUNT ( + col1 ) AS col2, 92 AS col1 FROM tab2
----
3
92

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

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - MIN ( ALL + ( 44 ) ) FROM tab0
----
-44

query I rowsort
SELECT ALL ( col0 ) * + - col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - SUM( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * col1 / + ( 97 ) / col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT - SUM ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * col1 / + ( 97 ) / col0 <> NULL
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1663
SELECT col2 / + 95 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT - col2 * col0 * + + 68 FROM tab1 cor0
----
-332928
-341020
-420784

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

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

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

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

query I rowsort
SELECT ALL col1 * + col1 + - - 1 FROM tab2 AS cor0
----
2602
4490
5930

query II rowsort
SELECT DISTINCT - col2 - + col2 * + col1 * + col2, - col2 AS col2 FROM tab0 AS cor0
----
-178976
-47
-2110
-10
-9900
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT DISTINCT + 20 * - 15 * + + CAST( NULL AS SIGNED ) - + col0 + - col2 + 9 * + - 8 + - 89 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT + 20 * - 15 * + + CAST ( NULL AS INTEGER ) - + col0 + - col2 + 9 * + - 8 + - 89 AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 + - col1 - - 0 * + - ( - col2 ) / - col1 AND 62 + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT COUNT( * ) - 85 AS col0 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT COUNT ( * ) - 85 AS col0 FROM tab2
----
-82

query I rowsort
SELECT - col2 - - + col0 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 23 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 84 / - 28 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 9, 41 col0 FROM tab1
----
14
41
23
41
56
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 <> + 73 / + ( col2 ) + + + 31
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 13 * + - col1 - - + col0 AND + - ( + + col2 ) + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1681
SELECT + ( - CAST( - + 19 AS SIGNED ) ) DIV + col2 + + col1 AS col2 FROM tab0
----
1
22
81

skipif mysql # not compatible
query I rowsort label-1681
SELECT + ( - CAST ( - + 19 AS INTEGER ) ) / + col2 + + col1 AS col2 FROM tab0
----
1
22
81

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1684
SELECT + CAST( NULL AS SIGNED ) AS col1, COUNT( ALL CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1684
SELECT + CAST ( NULL AS INTEGER ) AS col1, COUNT ( ALL CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
0

query I rowsort
SELECT DISTINCT col0 * 10 FROM tab1
----
510
850
910

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1686
SELECT CAST( - 71 AS DECIMAL ) * - - col0 FROM tab0 WHERE NOT + 30 < NULL
----

skipif mysql # not compatible
query I rowsort label-1686
SELECT CAST ( - 71 AS REAL ) * - - col0 FROM tab0 WHERE NOT + 30 < NULL
----

query I rowsort
SELECT ALL col0 * - 25 FROM tab0
----
-2175
-2425
-375

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col1 * 88 <= ( NULL )
----

query I rowsort
SELECT ALL + 38 + + + 11 + - 99 + + col2 - + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1610
-3356
-556

query II rowsort
SELECT ALL + 91, + col0 * + ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE 29 * - 10 BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT ALL + - CAST( NULL AS SIGNED ), + col0 + - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
NULL
-2070
NULL
-4032
NULL
-5550

skipif mysql # not compatible
query II rowsort label-1692
SELECT ALL + - CAST ( NULL AS INTEGER ), + col0 + - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
NULL
-2070
NULL
-4032
NULL
-5550

query II rowsort
SELECT ALL col1 AS col0, 6 AS col2 FROM tab1 AS cor0
----
14
6
47
6
5
6

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1696
SELECT ALL 90 * ( - - col1 ) DIV - 38, col1 AS col0 FROM tab2
----
-120
51
-158
67
-182
77

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL 90 * ( - - col1 ) / - 38, col1 AS col0 FROM tab2
----
-120
51
-158
67
-182
77

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

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

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

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE col0 <> - - 84 * - + col0
----
51
67
77

query I rowsort
SELECT - - col1 FROM tab1 WHERE + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT 86 + + - 98 AS col1 FROM tab0 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1702
SELECT - 14 + + MIN( + 82 ) AS col0, - 35 AS col2 FROM tab2 AS cor0
----
68
-35

skipif mysql # not compatible
query II rowsort label-1702
SELECT - 14 + + MIN ( + 82 ) AS col0, - 35 AS col2 FROM tab2 AS cor0
----
68
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT ALL 85 + col0 DIV 88 FROM tab2 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL 85 + col0 / 88 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT + 6 - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT + 6 - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col2 - - col1 * + 81 + + 41 FROM tab0 AS cor0
----
1732
23
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + COUNT( * ) * 47 AS col2 FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT + COUNT ( * ) * 47 AS col2 FROM tab2 WHERE + col2 IS NULL
----
0

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

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

query II rowsort
SELECT DISTINCT - - col1 AS col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL MAX( 11 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL MAX ( 11 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL 72 FROM tab1 WHERE col1 + - col0 <> ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 72 FROM tab1 WHERE col1 + - col0 <> ( - CAST ( NULL AS INTEGER ) )
----

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

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

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

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

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

query I rowsort
SELECT + - ( 18 ) * col0 AS col1 FROM tab2 AS cor0
----
-1152
-1350
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1718
SELECT ALL - + MAX( + col1 ), + ( - + CAST( 1 AS SIGNED ) ) * + - ( COUNT( * ) ) DIV + 56 AS col0 FROM tab1 AS cor0
----
-47
0

skipif mysql # not compatible
query II rowsort label-1718
SELECT ALL - + MAX ( + col1 ), + ( - + CAST ( 1 AS INTEGER ) ) * + - ( COUNT ( * ) ) / + 56 AS col0 FROM tab1 AS cor0
----
-47
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1720
SELECT 16 AS col1, + CAST( - - 26 AS SIGNED ) AS col0 FROM tab2
----
16
26
16
26
16
26

skipif mysql # not compatible
query II rowsort label-1720
SELECT 16 AS col1, + CAST ( - - 26 AS INTEGER ) AS col0 FROM tab2
----
16
26
16
26
16
26

query I rowsort
SELECT ALL + 58 FROM tab0 WHERE NOT NULL <> - - 46 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL 99 + + COUNT( * ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 99 + + COUNT ( * ) AS col1 FROM tab2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT DISTINCT + col2 DIV + - 7 AS col1 FROM tab0
----
-1
-14
-6

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + col2 / + - 7 AS col1 FROM tab0
----
-1
-14
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( + 94 / - - col0 * + 91 + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL 18 * + 15 * - SUM( ALL + col2 ) AS col0 FROM tab1
----
-60210

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL 18 * + 15 * - SUM ( ALL + col2 ) AS col0 FROM tab1
----
-60210

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + COUNT( * ) + - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
18

skipif mysql # not compatible
query I rowsort label-1727
SELECT + COUNT ( * ) + - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
18

query I rowsort
SELECT ALL - - col0 + + 82 * col1 FROM tab1 AS cor0
----
1199
3945
495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + col0 col0 FROM tab1
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT SUM( ALL - 4 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT SUM ( ALL - 4 ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT - 16 / + col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 < col2 * + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1740
SELECT DISTINCT + col0, + col1 / + 50 + + + col2 * - - col0 + - col2 - - 86 / + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1740
SELECT DISTINCT + col0, + col1 / + 50 + + + col2 * - - col0 + - col2 - - 86 / + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-1742
SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1743
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * + col1 NOT IN ( - 28 )
----

skipif mysql # not compatible
query III rowsort label-1743
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * + col1 NOT IN ( - 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT DISTINCT col2 * - col0 * + - CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT col2 * - col0 * + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ( - + MIN( - - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1745
SELECT ( - + MIN ( - - col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT - COUNT( * ) col2, + COUNT( * ) FROM tab2
----
-3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT 64 + - - COUNT( * ) AS col1 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT 64 + - - COUNT ( * ) AS col1 FROM tab1
----
67

query I rowsort
SELECT DISTINCT - ( + 6 ) + - + 24 FROM tab1 AS cor0
----
-30

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

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT COUNT ( + ( + 74 ) ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - col0 * col2, + col0 * - + 30 * - col2 AS col1 FROM tab0 AS cor0
----
-705
21150
-870
26100
-9603
288090

onlyif mysql # DIV for integer division: 
query II rowsort label-1751
SELECT col2 + - + col0, 9 DIV - 24 AS col1 FROM tab1 AS cor0
----
-23
0
-26
0
45
0

skipif mysql # not compatible
query II rowsort label-1751
SELECT col2 + - + col0, 9 / - 24 AS col1 FROM tab1 AS cor0
----
-23
0
-26
0
45
0

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT SUM( DISTINCT col2 ) + + 84 + + 3 AS col1 FROM tab2
----
208

skipif mysql # not compatible
query I rowsort label-1753
SELECT SUM ( DISTINCT col2 ) + + 84 + + 3 AS col1 FROM tab2
----
208

query I rowsort
SELECT 28 + - col2 + - 81 - - col0 AS col0 FROM tab2
----
-29
-30
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT MAX( 64 ) * - - 39 FROM tab0
----
2496

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT MAX ( 64 ) * - - 39 FROM tab0
----
2496

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

query I rowsort
SELECT DISTINCT - 4 + - col2 AS col0 FROM tab1
----
-100
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT COUNT( * ) + COUNT( * ) * ( - - 76 ) col0 FROM tab2
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1758
SELECT COUNT ( * ) + COUNT ( * ) * ( - - 76 ) col0 FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT 54 + - 16 DIV col2 AS col1 FROM tab1
----
54
54
54

skipif mysql # not compatible
query I rowsort label-1759
SELECT 54 + - 16 / col2 AS col1 FROM tab1
----
54
54
54

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

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

query I rowsort
SELECT DISTINCT 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT col1 DIV + + col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1762
SELECT col1 / + + col1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE - - ( - 33 ) IS NULL AND ( NULL ) IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT col1, + 2 FROM tab2 AS cor0
----
51
2
67
2
77
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + SUM( + + 17 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1767
SELECT + SUM ( + + 17 ) FROM tab2 cor0
----
51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1769
SELECT ALL - + CAST( - ( - 80 ) AS SIGNED ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - + CAST ( - ( - 80 ) AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT - 47 * - col2 AS col2 FROM tab0 cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 WHERE + col1 NOT IN ( + 88, ( + 29 ) )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1771
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 WHERE + col1 NOT IN ( + 88, ( + 29 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + 22 * - - COUNT( * ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1772
SELECT + 22 * - - COUNT ( * ) AS col2 FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 > - 33 * - + 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 91 * - col1 AS col2 FROM tab2 AS cor0
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - ( - SUM( DISTINCT + + col2 ) ) * + 95 AS col0 FROM tab0 AS cor0
----
14820

skipif mysql # not compatible
query I rowsort label-1776
SELECT - ( - SUM ( DISTINCT + + col2 ) ) * + 95 AS col0 FROM tab0 AS cor0
----
14820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + 94 * - col0 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 93 >= NULL
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE col2 / - + col0 <= + col1
----
59
68
96

query I rowsort
SELECT ALL - 86 * - ( + - 32 ) * - col0 + col1 - + + col2 AS col0 FROM tab1 AS cor0
----
140270
233866
250411

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

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

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

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

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + ( + 76 ) + + + 59 IS NULL
----

query I rowsort
SELECT col0 - - col2 * - + 72 AS col1 FROM tab0
----
-3369
-633
-7031

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT 67 + COUNT( * ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1793
SELECT 67 + COUNT ( * ) AS col0 FROM tab0
----
70

query II rowsort
SELECT ALL + col1, - 46 AS col2 FROM tab1
----
14
-46
47
-46
5
-46

query I rowsort
SELECT ALL col0 + - - col0 - - col1 AS col2 FROM tab0
----
111
195
195

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1797
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST( NULL AS SIGNED ) * - - col0, col2 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-1797
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ) * - - col0, col2 + - col1 )
----

query I rowsort
SELECT ALL + + col2 * + 99 * col2 FROM tab0 cor0
----
218691
970299
9900

query I rowsort
SELECT ALL col0 * - + 59 FROM tab0 AS cor0
----
-5133
-5723
-885

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + col1 / 46 / + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT - 28 DIV - 22 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1801
SELECT - 28 / - 22 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - 63 AS col2 FROM tab1 WHERE NOT ( col1 IS NULL )
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT ALL - COUNT( * ) col1, + 74 AS col2 FROM tab2
----
-3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1803
SELECT ALL - COUNT ( * ) col1, + 74 AS col2 FROM tab2
----
-3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - MIN( ALL col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1804
SELECT - MIN ( ALL col0 ) AS col2 FROM tab2
----
-46

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - 96 ) BETWEEN + - 19 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT - ( + COUNT( * ) ) * - SUM( ALL 70 ) FROM tab1
----
630

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - ( + COUNT ( * ) ) * - SUM ( ALL 70 ) FROM tab1
----
630

query I rowsort
SELECT + 65 * col1 * - - col1 + + + ( col2 ) AS col1 FROM tab0 AS cor0
----
164
28675
426512

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / 9 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1810
SELECT + MIN ( ALL + 63 ) AS col2 FROM tab2
----
63

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL - 24 * - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - 24 * - COUNT ( * ) FROM tab2
----
72

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * col0
----

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT - 31 * - COUNT( * ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1816
SELECT - 31 * - COUNT ( * ) AS col0 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT COUNT( * ) * 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-1817
SELECT COUNT ( * ) * 13 FROM tab0
----
39

query I rowsort
SELECT ALL + col2 * - 71 + col0 AS col0 FROM tab1
----
-4104
-4737
-6765

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL col1 DIV 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL col1 / 99 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL - SUM( 78 ) col1 FROM tab2
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1820
SELECT ALL - SUM ( 78 ) col1 FROM tab2
----
-234

query I rowsort
SELECT col0 * col0 + - 49 FROM tab2
----
2067
4047
5576

query I rowsort
SELECT + 55 + - 5 AS col1 FROM tab0
----
50
50
50

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

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

query I rowsort
SELECT ALL 99 + + col2 FROM tab2
----
122
139
157

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT - 44 + + col1 DIV - 28 FROM tab2
----
-45
-46
-46

skipif mysql # not compatible
query I rowsort label-1825
SELECT - 44 + + col1 / - 28 FROM tab2
----
-45
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT - col1 / - col1 + + ( + col1 + 42 * - col0 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - col1 / - col1 + + ( + col1 + 42 * - col0 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT 59 DIV + col0 + col0 FROM tab0
----
18
87
97

skipif mysql # not compatible
query I rowsort label-1827
SELECT 59 / + col0 + col0 FROM tab0
----
18
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT col0 DIV col1 + - col1 col0 FROM tab0
----
-17
-81
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1828
SELECT col0 / col1 + - col1 col0 FROM tab0
----
-17
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ( 74 ) + - ( - COUNT( * ) ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1829
SELECT ( 74 ) + - ( - COUNT ( * ) ) FROM tab1
----
77

query I rowsort
SELECT DISTINCT + 89 + + col0 * col2 FROM tab1 AS cor0
----
4985
5104
6277

query I rowsort
SELECT 7 - - col0 * 34 FROM tab2 AS cor0
----
1571
2183
2557

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - COUNT( * ) + 79 * COUNT( * ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - COUNT ( * ) + 79 * COUNT ( * ) FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT MIN( + col2 ) - 89 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-244

skipif mysql # not compatible
query I rowsort label-1833
SELECT MIN ( + col2 ) - 89 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-244

query I rowsort
SELECT + 9 - + 74 AS col0 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT 26 * 69 - + col1 AS col2 FROM tab1 AS cor0
----
1747
1780
1789

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) * + 37 + + ( col0 ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 ON NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 97 )
----

query I rowsort
SELECT ALL - - 17 * - 2 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT 38 * col2 AS col2 FROM tab2 AS cor0
----
1520
2204
874

query I rowsort
SELECT ALL 20 * - col1 FROM tab2 cor0 WHERE NOT ( - col0 ) >= ( - col2 )
----
-1020
-1340
-1540

query I rowsort
SELECT - col1 * 48 AS col0 FROM tab2 AS cor0
----
-2448
-3216
-3696

query I rowsort
SELECT DISTINCT col1 * 63 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) <> - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT col0 DIV 92 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1844
SELECT DISTINCT col0 / 92 col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT - 99 DIV 83 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 99 / 83 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = ( col2 * - 17 + + 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL 95 * COUNT( * ) * - 37 AS col2 FROM tab2
----
-10545

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 95 * COUNT ( * ) * - 37 AS col2 FROM tab2
----
-10545

query I rowsort
SELECT ALL col1 * + col1 + - 39 * + 95 AS col1 FROM tab2
----
-1104
2224
784

query I rowsort
SELECT DISTINCT + 49 + col2 FROM tab1
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL MAX( DISTINCT - + col2 ) * + 65 AS col0 FROM tab2
----
-1495

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL MAX ( DISTINCT - + col2 ) * + 65 AS col0 FROM tab2
----
-1495

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= 28 * col2 - + 40 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query I rowsort
SELECT ( col1 ) + + + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT - col0 + - - 55 FROM tab2
----
-20
-9
9

query I rowsort
SELECT - 81 + - col1 AS col2 FROM tab0
----
-102
-162
-82

query I rowsort
SELECT col0 * + col0 FROM tab0 WHERE ( + + col0 ) NOT BETWEEN ( NULL ) AND ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1860
SELECT 46 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT CAST( NULL AS SIGNED ) / - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT CAST ( NULL AS INTEGER ) / - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT COUNT( - 61 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1862
SELECT COUNT ( - 61 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1863
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) <> - 9
----

skipif mysql # not compatible
query III rowsort label-1863
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) <> - 9
----

query I rowsort
SELECT DISTINCT - - 83 + - 67 + + col2 - col0 * col1 AS col1 FROM tab1 AS cor0
----
-350
-4193
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - + 86 + COUNT( DISTINCT - 96 ) + - 91 col1 FROM tab1 AS cor0
----
-176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1865
SELECT ALL - + 86 + COUNT ( DISTINCT - 96 ) + - 91 col1 FROM tab1 AS cor0
----
-176

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 46 / - 22 * 97 )
----

query I rowsort
SELECT DISTINCT - + col2 * + col2 - 36 + - 15 AS col0 FROM tab2 AS cor0
----
-1651
-3415
-580

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <= - col1
----

query I rowsort
SELECT DISTINCT col0 + + 27 AS col2 FROM tab2 cor0
----
102
73
91

query III rowsort
SELECT * FROM tab0 WHERE - 44 * col1 IS NULL AND 6 * + 1 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL COUNT ( ALL + 28 ) FROM tab2
----
3

query I rowsort
SELECT ( ( + 72 ) ) + ( - 34 ) AS col0 FROM tab2
----
38
38
38

query I rowsort
SELECT - col2 + + + 51 AS col1 FROM tab0
----
-48
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT 89 + COUNT( * ) + - 80 * - 51 FROM tab1
----
4172

skipif mysql # not compatible
query I rowsort label-1877
SELECT 89 + COUNT ( * ) + - 80 * - 51 FROM tab1
----
4172

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT ALL col0 + - 13 + + col0 + ( col0 ) DIV col1 AS col0 FROM tab0
----
165
17
278

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL col0 + - 13 + + col0 + ( col0 ) / col1 AS col0 FROM tab0
----
165
17
278

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1879
SELECT - col0 + col2 - + CAST( - - col0 AS SIGNED ) + - ( + col2 ) DIV + col0 FROM tab1
----
-111
-114
-7

skipif mysql # not compatible
query I rowsort label-1879
SELECT - col0 + col2 - + CAST ( - - col0 AS INTEGER ) + - ( + col2 ) / + col0 FROM tab1
----
-111
-114
-7

query I rowsort
SELECT + + ( + - 17 ) + col0 - + 38 * + col0 FROM tab1 AS cor0
----
-1904
-3162
-3384

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 75 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + MAX( - - 84 ) * - 34 AS col2 FROM tab2
----
-2856

skipif mysql # not compatible
query I rowsort label-1882
SELECT + MAX ( - - 84 ) * - 34 AS col2 FROM tab2
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT COUNT( ALL 62 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1883
SELECT COUNT ( ALL 62 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 * + col1 * + 83 FROM tab1
----
111552
24485
265268

query I rowsort
SELECT DISTINCT - col0 * + 72 FROM tab1 AS cor0
----
-3672
-6120
-6552

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT + + 96 DIV + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - - 74 IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1886
SELECT + + 96 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - - 74 IS NULL
----
1
1
2

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

query II rowsort
SELECT + + 43 AS col0, - 58 AS col1 FROM tab2 AS cor0
----
43
-58
43
-58
43
-58

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT ALL + 63 col1, + 60 + - COUNT( + - col2 ) AS col1 FROM tab0
----
63
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1891
SELECT ALL + 63 col1, + 60 + - COUNT ( + - col2 ) AS col1 FROM tab0
----
63
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + col2 col0, col0 col0 FROM tab1
----
1344
51
295
85
3196
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 + - - 77 = + col1 / - + col1 * col0 + - 93
----

query I rowsort
SELECT 81 + col1 AS col1 FROM tab1
----
128
86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + 22 * + ( + COUNT( * ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + 22 * + ( + COUNT ( * ) ) FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1896
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * - COUNT( + + col1 ) FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1896
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * - COUNT ( + + col1 ) FROM tab0
----
0
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 29 + - - col1 FROM tab0
----
110
30
50

query I rowsort
SELECT + + 24 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col0 + + + col1, + col2 AS col1 FROM tab0 AS cor0
----
-66
10
-96
99
66
47

query I rowsort
SELECT ALL + 80 + - col2 - + - col2 AS col2 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT 20 * col2 AS col2 FROM tab0 AS cor0
----
1980
200
940

query I rowsort
SELECT ALL - 17 * 99 FROM tab1
----
-1683
-1683
-1683

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> 48 + - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT - SUM( 68 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-612

skipif mysql # not compatible
query I rowsort label-1905
SELECT - SUM ( 68 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-612

query I rowsort
SELECT DISTINCT + 54 * - col0 + 70 AS col1 FROM tab2
----
-2414
-3386
-3980

query I rowsort
SELECT DISTINCT + 43 * - col0 FROM tab1
----
-2193
-3655
-3913

query I rowsort
SELECT DISTINCT - col0 - + 76 FROM tab1 AS cor0
----
-127
-161
-167

query I rowsort
SELECT DISTINCT col0 - 1 AS col2 FROM tab1 cor0
----
50
84
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) = - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT - CAST( + 9 AS SIGNED ) + + - col2 AS col1 FROM tab1 AS cor0
----
-105
-68
-77

skipif mysql # not compatible
query I rowsort label-1911
SELECT - CAST ( + 9 AS INTEGER ) + + - col2 AS col1 FROM tab1 AS cor0
----
-105
-68
-77

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 * - 0 + - col2 <> - 64 * + - 37 * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 11 * - - col1 AS col2 FROM tab1
----
-154
-517
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-1915
SELECT DISTINCT - col0, 84 DIV - + col1 AS col2 FROM tab0
----
-15
-1
-87
-4
-97
-84

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT - col0, 84 / - + col1 AS col2 FROM tab0
----
-15
-1
-87
-4
-97
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT ALL - 5 AS col0, 96 * + COUNT( * ) FROM tab0 cor0
----
-5
288

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL - 5 AS col0, 96 * + COUNT ( * ) FROM tab0 cor0
----
-5
288

query I rowsort
SELECT + - 11 * - col2 FROM tab2 AS cor0
----
253
440
638

query I rowsort
SELECT - col0 * col1 * - + col0 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT 50 * - + 41 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT 50 * - + 41 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
0

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

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

query I rowsort
SELECT + 89 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + ( - 16 ) * - 76 FROM tab1
----
1216
1216
1216

query I rowsort
SELECT ALL 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT + COUNT( * ) * SUM( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( * ) * SUM ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL + 47 * + + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
423

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + 47 * + + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
423

query I rowsort
SELECT + - 14 * - 44 * col0 FROM tab1 AS cor0 WHERE NOT + col1 * + - ( + 41 ) <= - 10 / - 55 + 74
----

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

query II rowsort
SELECT DISTINCT + 93 AS col0, - 55 * + col2 * + col2 / col0 + - - 73 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1 )
----

query II rowsort
SELECT ( + col1 ) AS col2, - 56 + - 97 AS col0 FROM tab1 AS cor0
----
14
-153
47
-153
5
-153

query II rowsort
SELECT DISTINCT - 91 AS col2, col1 + 64 AS col0 FROM tab1
----
-91
111
-91
69
-91
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 - + + col0 col1 FROM tab1 WHERE NOT ( 86 ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT + COUNT( * ) * + 7 col1 FROM tab0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1932
SELECT DISTINCT + COUNT ( * ) * + 7 col1 FROM tab0
----
21

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT + 14 = - col2
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1934
SELECT ALL + + col1 AS col1 FROM tab1 WHERE + 23 BETWEEN - col1 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + + col1 AS col1 FROM tab1 WHERE + 23 BETWEEN - col1 AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col2 * + - col2 AS col2 FROM tab2
----
-1600
-3364
-529

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

query II rowsort
SELECT - 20 AS col2, 42 FROM tab0
----
-20
42
-20
42
-20
42

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1939
SELECT ALL col0 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL col0 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL - 87 * col1 + ( - - col1 ) DIV + col1 + - - col1 + - 43 FROM tab0
----
-128
-1848
-7008

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - 87 * col1 + ( - - col1 ) / + col1 + - - col1 + - 43 FROM tab0
----
-128
-1848
-7008

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1942
SELECT - 21 DIV - CAST( + col2 AS SIGNED ) col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1942
SELECT - 21 / - CAST ( + col2 AS INTEGER ) col2 FROM tab0
----
0
0
2

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 50 * - 72 * + 41 * - col0 * 35 IS NULL
----

query I rowsort
SELECT ALL - 49 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1649
-3413
-578

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 97 + 1, col2 col0 FROM tab1 AS cor0
----
98
59
98
68
98
96

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - 22 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT 21 DIV - col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT 21 / - col0 FROM tab0
----
-1
0

query I rowsort
SELECT + 25 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - 19 * - 62 * + + 29 + - 14 AND + + 7
----

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - 19 * - 62 * + + 29 + - 14 AND + + 7
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1957
SELECT ALL + col2 DIV + col0 + + CAST( + col2 AS SIGNED ) + 31 FROM tab1 AS cor0
----
128
90
99

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + col2 / + col0 + + CAST ( + col2 AS INTEGER ) + 31 FROM tab1 AS cor0
----
128
90
99

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

skipif mysql # not compatible
query I rowsort label-1958
SELECT - MAX ( ALL + 70 ) FROM tab2 AS cor0
----
-70

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 - + 48 - col0 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1962
SELECT ALL ( 57 ) + col2 * + 42 * + - 56 + + col1 + + 55 + - col0, ( + col2 ) DIV col2 * - col1 + + - col2 AS col0 FROM tab2 AS cor0
----
-136312
-125
-53979
-74
-93955
-117

skipif mysql # not compatible
query II rowsort label-1962
SELECT ALL ( 57 ) + col2 * + 42 * + - 56 + + col1 + + 55 + - col0, ( + col2 ) / col2 * - col1 + + - col2 AS col0 FROM tab2 AS cor0
----
-136312
-125
-53979
-74
-93955
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-1963
SELECT DISTINCT + + 48 AS col2, COUNT( * ) - - COUNT( * ) FROM tab0 cor0
----
48
6

skipif mysql # not compatible
query II rowsort label-1963
SELECT DISTINCT + + 48 AS col2, COUNT ( * ) - - COUNT ( * ) FROM tab0 cor0
----
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - MAX( + + 80 ) AS col2 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1964
SELECT - MAX ( + + 80 ) AS col2 FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL - - COUNT( ALL 75 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - - COUNT ( ALL 75 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12 * col2, + ( - col1 ) col0 FROM tab2
----
276
-51
480
-77
696
-67

query I rowsort
SELECT DISTINCT col0 * 10 + + col2 AS col2 FROM tab1
----
606
909
978

query I rowsort
SELECT ALL - col1 + + 98 AS col1 FROM tab0 AS cor0
----
17
77
97

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

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

query I rowsort
SELECT - 17 * col0 - col0 AS col2 FROM tab2
----
-1152
-1350
-828

query I rowsort
SELECT ALL - 33 + + col2 FROM tab0
----
-23
14
66

query I rowsort
SELECT - col0 + col2 - + 4 FROM tab0 AS cor0
----
-2
-81
28

query II rowsort
SELECT ( + col1 ) * - col1 + ( + - 59 ) AS col2, col0 + 76 AS col1 FROM tab2 cor0
----
-2660
122
-4548
151
-5988
140

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT DISTINCT col1 DIV - 4 AS col1 FROM tab2 AS cor0
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT col1 / - 4 AS col1 FROM tab2 AS cor0
----
-12
-16
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + 43 col0 FROM tab0 AS cor0
----
15
43
87
43
97
43

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

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT col2 / - + col1 FROM tab2 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL MIN ( 76 ) AS col2 FROM tab1 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1978
SELECT ( - - MAX( + + col2 ) ) * - ( + CAST( + - 17 AS SIGNED ) ) FROM tab1
----
1632

skipif mysql # not compatible
query I rowsort label-1978
SELECT ( - - MAX ( + + col2 ) ) * - ( + CAST ( + - 17 AS INTEGER ) ) FROM tab1
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1979
SELECT - + 72 DIV COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1979
SELECT - + 72 / COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-24

query II rowsort
SELECT col2 AS col0, col1 + + + col0 FROM tab2 AS cor0
----
23
97
40
141
58
142

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT - ( 30 ) DIV - ( + 17 ) + + col0 FROM tab2 cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1981
SELECT - ( 30 ) / - ( + 17 ) + + col0 FROM tab2 cor0
----
47
65
76

query I rowsort
SELECT - 70 AS col1 FROM tab0 cor0 WHERE 63 / - col1 >= + 7 + 13
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + - 29
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + COUNT( - 50 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1986
SELECT + COUNT ( - 50 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT 9 DIV col1 FROM tab0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-1987
SELECT 9 / col1 FROM tab0
----
0
0
9

query I rowsort
SELECT ALL - col0 + - 8 + col2 * + ( + col0 ) + - - col0 + col0 * + col0 * + 54 * + col1 FROM tab1
----
1955757
1971244
21023358

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

query I rowsort
SELECT 57 + + 65 FROM tab2
----
122
122
122

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT 95 DIV - col2 + col1 col2 FROM tab2
----
47
66
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1992
SELECT 95 / - col2 + col1 col2 FROM tab2
----
47
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + + 35 + + 68 + + - MAX( col2 ) FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + + 35 + + 68 + + - MAX ( col2 ) FROM tab0 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + 15 * + + MAX( ALL - 29 ) FROM tab2
----
-435

skipif mysql # not compatible
query I rowsort label-1994
SELECT + 15 * + + MAX ( ALL - 29 ) FROM tab2
----
-435

query I rowsort
SELECT + col0 * + + col0 AS col0 FROM tab0 cor0
----
225
7569
9409

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1999
SELECT DISTINCT - MIN( - 79 ) DIV 23 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - MIN ( - 79 ) / 23 AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT - ( MAX( - col2 ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - ( MAX ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE + 55 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + 55 IS NULL
----
0

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT - col0 * col0 * CAST( 99 AS SIGNED ) * - 21 col1 FROM tab0
----
15735951
19561311
467775

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2004
SELECT - col0 * col0 * CAST ( 99 AS INTEGER ) * - 21 col1 FROM tab0
----
15735951
19561311
467775

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL 85 * - COUNT( * ) col0 FROM tab0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT ALL 85 * - COUNT ( * ) col0 FROM tab0
----
-255

query I rowsort
SELECT ALL 12 * + 88 FROM tab2
----
1056
1056
1056

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col1 * - 94 - - - 84 * col1 IS NOT NULL
----

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-2011
SELECT DISTINCT + COUNT ( * ) AS col2, + 96 FROM tab2, tab1 AS cor0
----
9
96

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

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

query I rowsort
SELECT + + ( - - col0 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( 76, - 63 * - col1, + col0, - + ( - 78 ), - col1 )
----

query I rowsort
SELECT - - col2 * 67 + ( col0 ) + - + col0 FROM tab1 cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2015
SELECT + + COUNT( * ) + - ( + 46 ) - + + COUNT( * ) DIV COUNT( * ) * COUNT( * ) * + 9 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2015
SELECT + + COUNT ( * ) + - ( + 46 ) - + + COUNT ( * ) / COUNT ( * ) * COUNT ( * ) * + 9 FROM tab0 AS cor0
----
-70

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

query I rowsort
SELECT col0 * - + 88 * col1 + - col1 * - - col1 + - col0 AS col0 FROM tab1
----
-37510
-378676
-63079

query II rowsort
SELECT ALL 92 + - - col2 AS col1, col0 + col0 FROM tab0
----
102
174
139
30
191
194

query I rowsort
SELECT ALL col0 + + col2 * + - col0 AS col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2020
SELECT * FROM tab2 WHERE + CAST( + col1 AS SIGNED ) * + col1 NOT IN ( 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2020
SELECT * FROM tab2 WHERE + CAST ( + col1 AS INTEGER ) * + col1 NOT IN ( 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL + 86 + - + CAST( - + AVG ( DISTINCT - col2 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2022
SELECT ALL + 86 + - + CAST ( - + AVG ( DISTINCT - col2 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 - - 38 col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT 72 FROM tab2 AS cor0 WHERE NULL IS NULL
----
72
72
72

query I rowsort
SELECT col0 * + + col0 - - col1 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2026
SELECT - 64 DIV + COUNT( * ) - - MAX( col1 ) AS col2 FROM tab2 cor0
----
56

skipif mysql # not compatible
query I rowsort label-2026
SELECT - 64 / + COUNT ( * ) - - MAX ( col1 ) AS col2 FROM tab2 cor0
----
56

query I rowsort
SELECT ALL - 48 - + + col2 * - 14 + - 69 - col0 + + col1 FROM tab2 AS cor0
----
210
456
687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT - COUNT( * ) DIV + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT - COUNT ( * ) / + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - col0 * + 5 + + ( col0 ) FROM tab2 AS cor0
----
-184
-256
-300

query II rowsort
SELECT ALL - col1 AS col1, - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 69 BETWEEN + - col2 AND 53 * col1 + col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 + + - col1 * - col1 * + 9 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23455
40476
53425

query I rowsort
SELECT DISTINCT + + col1 / - - 80 AS col0 FROM tab1 cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 68 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 68 < NULL
----
0

query II rowsort
SELECT - col2, col2 + + 59 AS col2 FROM tab0 AS cor0
----
-10
69
-47
106
-99
158

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT DISTINCT - 30 DIV + - 83 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - 30 / + - 83 FROM tab0, tab0 AS cor0
----
0

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

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

query I rowsort
SELECT - 82 * - - col0 AS col0 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2041
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( - col2 + - ( - CAST( NULL AS SIGNED ) ), - col2, col2, - + col0, - + col2 + col1 / col1 * - + 49 )
----

skipif mysql # not compatible
query III rowsort label-2041
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( - col2 + - ( - CAST ( NULL AS INTEGER ) ), - col2, col2, - + col0, - + col2 + col1 / col1 * - + 49 )
----

query I rowsort
SELECT DISTINCT + + 40 * col0 + - col1 FROM tab1 AS cor0
----
2026
3395
3593

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT - - col0 - - - col2 AS col2, - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-45
96
23
68
26
59

skipif mysql # not compatible
query II rowsort label-2043
SELECT - - col0 - - - col2 AS col2, - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-45
96
23
68
26
59

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + col1 + + col2 BETWEEN + - 62 * col2 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-2046
SELECT + MIN ( ALL - col2 ) AS col0 FROM tab2
----
-58

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

query I rowsort
SELECT ALL - + col0 + - 35 * + col1 AS col1 FROM tab1 AS cor0
----
-1736
-260
-541

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - 72 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2049
SELECT - 72 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT - COUNT( * ) - 71 * 23 FROM tab1 AS cor0
----
-1636

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - COUNT ( * ) - 71 * 23 FROM tab1 AS cor0
----
-1636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2051
SELECT DISTINCT - + MAX( - + col1 ) + + CAST( NULL AS SIGNED ), + MIN( - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2051
SELECT DISTINCT - + MAX ( - + col1 ) + + CAST ( NULL AS INTEGER ), + MIN ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL
NULL

query I rowsort
SELECT ALL 61 * + - 93 FROM tab2 AS cor0
----
-5673
-5673
-5673

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

query I rowsort
SELECT ALL col2 * - - 98 FROM tab2
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT 72 + + SUM( + col0 ) col2 FROM tab2
----
257

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2055
SELECT 72 + + SUM ( + col0 ) col2 FROM tab2
----
257

query III rowsort
SELECT * FROM tab2 WHERE - 8 + - + 5 / - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + 17 AS col0 FROM tab0
----
18
38
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT DISTINCT + 8, - COUNT( * ) AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
8
-3

skipif mysql # not compatible
query II rowsort label-2058
SELECT DISTINCT + 8, - COUNT ( * ) AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
8
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL - col0 DIV - col0 col1 FROM tab2
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT + col0 DIV - col1 + 2 + col0 + - col2 col2 FROM tab0 AS cor0
----
-30
-97
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT + col0 / - col1 + 2 + col0 + - col2 col2 FROM tab0 AS cor0
----
-30
-97
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL < - col1 + - col0 + - 80 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-2061
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < - col1 + - col0 + - 80 * - 80
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - SUM( 61 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-549

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - SUM ( 61 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-549

query I rowsort
SELECT ALL 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT + + 95 DIV + col1 + ( 7 ) AS col0 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-2065
SELECT + + 95 / + col1 + ( 7 ) AS col0 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT + - 31 * + + 60 AS col2 FROM tab0 AS cor0
----
-1860
-1860
-1860

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 * + - col0 * col2 * - 40 >= + col1
----

query I rowsort
SELECT ALL - 30 AS col1 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL MAX( ALL - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL MAX ( ALL - col1 ) AS col1 FROM tab1
----
-5

query II rowsort
SELECT DISTINCT col0 AS col1, 86 * + 14 + + col2 FROM tab0
----
15
1251
87
1214
97
1303

query I rowsort
SELECT + 41 * 74 AS col0 FROM tab1
----
3034
3034
3034

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 >= + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-2073
SELECT 20 + + CAST ( NULL AS INTEGER ) - ( - - 75 ) + COUNT ( DISTINCT + ( - + col1 ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 64 * - 43 + col0, col0 col2 FROM tab0 AS cor0
----
-2655
97
-2665
87
-2737
15

query I rowsort
SELECT DISTINCT + 26 + + - col2 FROM tab2 AS cor0
----
-14
-32
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - 25 * - COUNT( * ) * - COUNT( DISTINCT - 68 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2077
SELECT - 25 * - COUNT ( * ) * - COUNT ( DISTINCT - 68 ) FROM tab1
----
-75

query I rowsort
SELECT + + 96 + - 34 AS col1 FROM tab0 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + - col0 col0 FROM tab0 AS cor0
----
-174
-194
-30

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

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

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

query I rowsort
SELECT ALL + - col0 * - + 48 * col2 * - - col2 FROM tab1 AS cor0
----
14202480
20197632
22560768

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL - - MIN( DISTINCT 1 ) FROM tab0 WHERE - col2 * - + CAST( NULL AS SIGNED ) + + 79 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - - MIN ( DISTINCT 1 ) FROM tab0 WHERE - col2 * - + CAST ( NULL AS INTEGER ) + + 79 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE ( col0 * col2 IS NOT NULL )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT col0 DIV 63 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2087
SELECT col0 / 63 FROM tab0
----
0
1
1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <= - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT 6 * + COUNT( * ) FROM tab0, tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT 6 * + COUNT ( * ) FROM tab0, tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL CAST( + + AVG ( DISTINCT - + col0 ) AS SIGNED ) AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL CAST ( + + AVG ( DISTINCT - + col0 ) AS INTEGER ) AS col0 FROM tab0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 1 col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2093
SELECT ALL - - 0 DIV - COUNT( * ) * - 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - - 0 / - COUNT ( * ) * - 63 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 67 * + + 18 * 2 FROM tab1 AS cor0
----
2412
2412
2412

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

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL CAST ( + + col1 AS INTEGER ) / - 85 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * + + 44 FROM tab1 cor0
----
2244
3740
4004

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

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

query I rowsort
SELECT 63 * col2 FROM tab2 AS cor0
----
1449
2520
3654

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + + 59 + + col0 AS col1, 90 * + col1 AS col1 FROM tab0 AS cor0
----
146
1890
156
90
74
7290

query I rowsort
SELECT DISTINCT - - col1 * - col1 - - 37 - col0 AS col0 FROM tab0 AS cor0
----
-491
-61
-6539

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

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

query II rowsort
SELECT DISTINCT - col1 + + 64 AS col2, col1 FROM tab2 AS cor0
----
-13
77
-3
67
13
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT - 69 col1, - MAX( + + 59 ) AS col0 FROM tab1
----
-69
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2108
SELECT - 69 col1, - MAX ( + + 59 ) AS col0 FROM tab1
----
-69
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + col0 col1 FROM tab0
----
105
177
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + - ( - col1 ), + col0 col2 FROM tab2 AS cor0
----
-8
75
13
64
5
46

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

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

skipif mysql # not compatible
query I rowsort label-2112
SELECT COUNT ( - - col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 - - + 66 * 71 + + col2 FROM tab2 AS cor0
----
4760
4803
4811

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

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

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

query I rowsort
SELECT ALL + 36 + - col0 AS col2 FROM tab0 AS cor0
----
-51
-61
21

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

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

query II rowsort
SELECT 31 + + col1, col1 - - col2 * + 72 AS col0 FROM tab1
----
36
4253
45
6926
78
4943

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL > 93 * - col0 * - + ( - 73 ) * + + col2 * col2 * - col0 + - col0
----

query I rowsort
SELECT ALL 13 AS col0 FROM tab2 WHERE NOT ( - - col1 ) + - + col1 = NULL
----

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

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

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

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

query II rowsort
SELECT - col1, + ( + col1 ) AS col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - 35 * MAX( ALL - 26 ) FROM tab0
----
910

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - 35 * MAX ( ALL - 26 ) FROM tab0
----
910

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 51 = + 6 + - 23
----

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

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

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) - - col1 FROM tab1 cor0
----
4910
5020
6235

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

query I rowsort
SELECT + - col1 FROM tab2 cor0 WHERE NOT - col1 < - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2130
SELECT ALL col2 + + col0 - + col1 * - CAST( NULL AS DECIMAL ) + + col0 - 39 + + 66 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL col2 + + col0 - + col1 * - CAST ( NULL AS REAL ) + + col0 - 39 + + 66 FROM tab0 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-2131
SELECT - CAST ( NULL AS INTEGER ) * + 84 * - col1 AS col0, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

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

query I rowsort
SELECT - col0 * + col1 + col1 AS col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT 25 * - + col2 + - col0 * - col2 AS col0 FROM tab2
----
1560
2900
483

query I rowsort
SELECT DISTINCT - col1 * + + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 * + - col1 col1 FROM tab2
----
-4182
-5494
-6314

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col1 + - col2 FROM tab1
----
51
-110
85
-64
91
-115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - 78 + COUNT( * ) col1 FROM tab0 AS cor0
----
-75

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2142
SELECT * FROM tab2 AS cor0 WHERE 89 * - + col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2142
SELECT * FROM tab2 AS cor0 WHERE 89 * - + col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - col1 + 31 + + col2 * - 67 * - + col2 FROM tab0 cor0
----
148000
656796
6720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT 95 + CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
141
159
170

skipif mysql # not compatible
query I rowsort label-2144
SELECT 95 + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
141
159
170

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col0 col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT DISTINCT + 71 DIV col0 - - 80 AS col1 FROM tab1 AS cor0
----
80
81

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + 71 / col0 - - 80 AS col1 FROM tab1 AS cor0
----
80
81

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

skipif mysql # not compatible
query I rowsort label-2148
SELECT + COUNT ( ALL - 7 ) FROM tab2
----
3

query II rowsort
SELECT - col0 AS col0, 45 * + col0 AS col0 FROM tab0
----
-15
675
-87
3915
-97
4365

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT ALL 34 AS col2, COUNT( * ) AS col0 FROM tab1
----
34
3

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL 34 AS col2, COUNT ( * ) AS col0 FROM tab1
----
34
3

query I rowsort
SELECT DISTINCT 57 * - col1 AS col2 FROM tab0
----
-1197
-4617
-57

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

skipif mysql # not compatible
query I rowsort label-2152
SELECT + COUNT ( * ) * + 41 FROM tab0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT ALL col2 * - - col1 DIV + col1 + + + 32 * + col1 AS col0 FROM tab2 AS cor0
----
1655
2202
2504

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL col2 * - - col1 / + col1 + + + 32 * + col1 AS col0 FROM tab2 AS cor0
----
1655
2202
2504

query I rowsort
SELECT - 46 * - - col2 AS col1 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2155
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + col1, - 43 * + CAST( NULL AS SIGNED ) + - col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2155
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + col1, - 43 * + CAST ( NULL AS INTEGER ) + - col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 42 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT - CAST( + - ( + 88 ) AS SIGNED ) * + 34 * ( - + ( + 77 ) ) + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT - CAST ( + - ( + 88 ) AS INTEGER ) * + 34 * ( - + ( + 77 ) ) + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 98 ) col1 FROM tab2 AS cor0
----
-98

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( - 4 ) NOT BETWEEN - 39 AND + - 73 - 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT 91 + - 95 + - COUNT( * ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 91 + - 95 + - COUNT ( * ) AS col1 FROM tab0
----
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 NOT BETWEEN 7 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + col0 * - col0 FROM tab0 AS cor0
----
-163
-7472
-9213

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

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

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

query I rowsort
SELECT - col2 * - 49 + - col0 AS col0 FROM tab2 AS cor0
----
1081
1896
2767

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT CAST( col1 AS SIGNED ) col2 FROM tab0
----
1
21
81

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

query I rowsort
SELECT ALL + 51 * + col2 FROM tab0
----
2397
5049
510

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + COUNT( * ) + + - COUNT( DISTINCT - 66 ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2172
SELECT + COUNT ( * ) + + - COUNT ( DISTINCT - 66 ) AS col0 FROM tab1
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2173
SELECT DISTINCT - col2 + ( 92 ) DIV + col2 + + - col1, col1 FROM tab1
----
-110
14
-114
47
-63
5

skipif mysql # not compatible
query II rowsort label-2173
SELECT DISTINCT - col2 + ( 92 ) / + col2 + + - col1, col1 FROM tab1
----
-110
14
-114
47
-63
5

query I rowsort
SELECT ALL + 69 + + col2 FROM tab1 AS cor0
----
128
137
165

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

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

query I rowsort
SELECT ALL 80 * 9 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + - ( 82 ) * - 23 AS col0 FROM tab2 AS cor0
----
1937
1953
1963

query I rowsort
SELECT DISTINCT col1 - + - 55 FROM tab1 AS cor0
----
102
60
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2179
SELECT ALL - SUM( - + col1 ) DIV - COUNT( * ) AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - SUM ( - + col1 ) / - COUNT ( * ) AS col2 FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT 85 * - + COUNT( * ) - + COUNT( * ) AS col0 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-2180
SELECT 85 * - + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1
----
-258

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2182
SELECT - CAST( - + 62 AS SIGNED ) - - col1 - 96 AS col0, ( - 52 ) - + 16 + 36 DIV - + 77 AS col0 FROM tab0 AS cor0
----
-13
-68
-33
-68
47
-68

skipif mysql # not compatible
query II rowsort label-2182
SELECT - CAST ( - + 62 AS INTEGER ) - - col1 - 96 AS col0, ( - 52 ) - + 16 + 36 / - + 77 AS col0 FROM tab0 AS cor0
----
-13
-68
-33
-68
47
-68

query II rowsort
SELECT DISTINCT 33 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
33
-46
33
-64
33
-75

query I rowsort
SELECT ALL + 49 AS col0 FROM tab0 cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, - 24 + col0 FROM tab0 AS cor0
----
15
-9
87
63
97
73

query II rowsort
SELECT ALL + col1, 90 * - 38 * col1 FROM tab2 AS cor0
----
51
-174420
67
-229140
77
-263340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2187
SELECT DISTINCT - CAST( SUM( DISTINCT - col0 ) AS SIGNED ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT - CAST ( SUM ( DISTINCT - col0 ) AS INTEGER ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * col2 * 81 col2 FROM tab2
----
11178
19440
28188

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 + - col2 + - 5 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 * + + 74 AS col0 FROM tab0
----
962
962
962

onlyif mysql # aggregate syntax: 
query II rowsort label-2191
SELECT DISTINCT - COUNT( DISTINCT 84 ) col2, MAX( DISTINCT 35 ) AS col2 FROM tab0
----
-1
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2191
SELECT DISTINCT - COUNT ( DISTINCT 84 ) col2, MAX ( DISTINCT 35 ) AS col2 FROM tab0
----
-1
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT ALL - CAST( ( ( CAST( + 25 AS SIGNED ) ) ) AS SIGNED ) FROM tab1
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - CAST ( ( ( CAST ( + 25 AS INTEGER ) ) ) AS INTEGER ) FROM tab1
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col2 * - 67 FROM tab2 WHERE NOT - 60 NOT BETWEEN NULL AND - - 80
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2194
SELECT 54 * + COUNT( DISTINCT + col2 ), 75 AS col2 FROM tab0
----
162
75

skipif mysql # not compatible
query II rowsort label-2194
SELECT 54 * + COUNT ( DISTINCT + col2 ), 75 AS col2 FROM tab0
----
162
75

query I rowsort
SELECT 57 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL - - MAX( 77 ) FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - - MAX ( 77 ) FROM tab0 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL - 41 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - 41 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) * - col1 * + col0 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT + MAX( - 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

skipif mysql # not compatible
query I rowsort label-2199
SELECT + MAX ( - 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL COUNT( ALL + 88 ) AS col1 FROM tab2 WHERE NULL BETWEEN - 6 * + - col2 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL COUNT ( ALL + 88 ) AS col1 FROM tab2 WHERE NULL BETWEEN - 6 * + - col2 AND - col0
----
0

query I rowsort
SELECT ALL + 75 * col2 + - 69 AS col0 FROM tab1
----
4356
5031
7131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT DISTINCT - - CAST( + 35 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
-23
-5
12

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT - - CAST ( + 35 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
-23
-5
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - - ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT MAX( DISTINCT col0 ) * - 75 AS col0 FROM tab0 AS cor0
----
-7275

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT MAX ( DISTINCT col0 ) * - 75 AS col0 FROM tab0 AS cor0
----
-7275

query I rowsort
SELECT + col1 + + + col0 * + + 97 * col1 AS col1 FROM tab0 cor0
----
117936
177240
9410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT + 62 DIV SUM( - col0 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2207
SELECT DISTINCT + 62 / SUM ( - col0 ) col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + 55 + - MIN( DISTINCT 16 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2208
SELECT + 55 + - MIN ( DISTINCT 16 ) FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT - 87 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-138
-154
-164

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 87 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-138
-154
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT DISTINCT - 41 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT - 41 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT DISTINCT + col1 + 88 + - - ( - + 51 ) + - - 78 DIV - + col1 AS col0 FROM tab0
----
-40
118
55

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + col1 + 88 + - - ( - + 51 ) + - - 78 / - + col1 AS col0 FROM tab0
----
-40
118
55

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col2 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT DISTINCT - col0 * - - col2 + 6 - + col1 AS col0, - col1 AS col1 FROM tab2
----
-1103
-51
-2631
-77
-4411
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT - col0 AS col0 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - col1 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2214
SELECT - col0 AS col0 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
-51
-85
-91

query II rowsort
SELECT - 1 - + col2 AS col1, - ( col0 ) AS col0 FROM tab0 AS cor0
----
-100
-97
-11
-87
-48
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT - 5 - - col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT - 5 - - col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2217
SELECT ALL MAX( ALL - 93 ) - 11 * + CAST( NULL AS DECIMAL ) * + 3 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL MAX ( ALL - 93 ) - 11 * + CAST ( NULL AS REAL ) * + 3 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - ( - - 82 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col2 / - - col2
----

query I rowsort
SELECT + ( - 73 ) FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + 28 * - 56 AS col2 FROM tab1 AS cor0
----
-1568
-1568
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT + - MIN( - 13 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + - MIN ( - 13 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT - col0 DIV col0 + 90 * - 23 + - 81 FROM tab0 cor0
----
-2152
-2152
-2152

skipif mysql # not compatible
query I rowsort label-2222
SELECT - col0 / col0 + 90 * - 23 + - 81 FROM tab0 cor0
----
-2152
-2152
-2152

query II rowsort
SELECT DISTINCT - - col2 AS col2, + 61 FROM tab1 AS cor0
----
59
61
68
61
96
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 51 ) < - ( + col0 ) * - 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col2 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2226
SELECT ALL 7, + COUNT( * ) * COUNT( * ) * - COUNT( * ) DIV + 1 AS col2 FROM tab1 AS cor0
----
7
-27

skipif mysql # not compatible
query II rowsort label-2226
SELECT ALL 7, + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) / + 1 AS col2 FROM tab1 AS cor0
----
7
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT + MIN( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + MIN ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT ALL - - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 32 AS col2, + col0 FROM tab0
----
32
15
32
87
32
97

query II rowsort
SELECT DISTINCT - col0, ( col2 ) FROM tab2
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col1 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT - col2, col2 FROM tab2
----
-23
23
-40
40
-58
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 96 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT - - 84 DIV col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2234
SELECT - - 84 / col2 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT 77 + col2 * + col0 FROM tab0
----
782
947
9680

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL 13 + - + 0 * - COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL 13 + - + 0 * - COUNT ( * ) FROM tab2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT + CAST( - 29 AS SIGNED ) FROM tab2 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-2237
SELECT + CAST ( - 29 AS INTEGER ) FROM tab2 AS cor0
----
-29
-29
-29

query II rowsort
SELECT + ( 2 ), + ( + col2 ) * + 73 * + col0 AS col2 FROM tab0 AS cor0
----
2
51465
2
63510
2
701019

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 / col0 * 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT CAST( - ( - MAX( ALL col2 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2240
SELECT CAST ( - ( - MAX ( ALL col2 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 51 <> - - col0
----

query I rowsort
SELECT DISTINCT 98 - - - col0 AS col1 FROM tab2
----
23
34
52

query I rowsort
SELECT 66 - ( + - 19 ) * ( + col1 ) FROM tab2
----
1035
1339
1529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2244
SELECT - - ( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1, col1 - + - col0 + - 25 FROM tab0 WHERE NULL >= - col1
----

skipif mysql # not compatible
query II rowsort label-2244
SELECT - - ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1, col1 - + - col0 + - 25 FROM tab0 WHERE NULL >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT + 7 DIV + + col1 + - + 41 AS col2 FROM tab0 AS cor0
----
-34
-41
-41

skipif mysql # not compatible
query I rowsort label-2245
SELECT + 7 / + + col1 + - + 41 AS col2 FROM tab0 AS cor0
----
-34
-41
-41

query I rowsort
SELECT ALL + col2 - - col2 + + col1 + col2 * - 76 * + + col0 AS col0 FROM tab0 cor0
----
-53405
-66079
-729629

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL - ( + 12 ) DIV 4 AS col0 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL - ( + 12 ) / 4 AS col0 FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT MIN( ALL - 51 ) FROM tab0 WHERE ( + ( - col1 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT MIN ( ALL - 51 ) FROM tab0 WHERE ( + ( - col1 ) ) IS NULL
----
NULL

query I rowsort
SELECT + ( - ( - 53 ) ) AS col1 FROM tab1
----
53
53
53

onlyif mysql # DIV for integer division: 
query III rowsort label-2250
SELECT DISTINCT * FROM tab1 WHERE col1 DIV + col1 NOT BETWEEN + col2 DIV 63 AND col1
----

skipif mysql # not compatible
query III rowsort label-2250
SELECT DISTINCT * FROM tab1 WHERE col1 / + col1 NOT BETWEEN + col2 / 63 AND col1
----

query I rowsort
SELECT ALL + 32 + - col2 FROM tab2 WHERE ( - col1 * 75 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + ( col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 AS col1 FROM tab2
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2254
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( CAST( col1 AS SIGNED ) + + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2254
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( CAST ( col1 AS INTEGER ) + + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab1 WHERE NOT ( 42 ) <= ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < col0 * + ( - 20 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col2 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 < + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + - col2 ) BETWEEN col0 AND ( 14 * + col2 )
----

query I rowsort
SELECT + 42 + - col2 * + 47 FROM tab0
----
-2167
-428
-4611

query III rowsort
SELECT * FROM tab1 WHERE ( 44 + col1 ) = ( col2 )
----

query I rowsort
SELECT - 31 + col1 FROM tab0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT COUNT( + 47 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2264
SELECT COUNT ( + 47 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL - SUM( col2 ) FROM tab1 WHERE NOT NULL IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL - SUM ( col2 ) FROM tab1 WHERE NOT NULL IN ( + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT col0 FROM tab1 WHERE NOT ( col0 * + col1 ) IN ( col0 * - CAST( - col2 AS SIGNED ) + - 20 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2266
SELECT col0 FROM tab1 WHERE NOT ( col0 * + col1 ) IN ( col0 * - CAST ( - col2 AS INTEGER ) + - 20 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL SUM( + col0 ) AS col1 FROM tab0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL SUM ( + col0 ) AS col1 FROM tab0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 - 77 FROM tab0
----
-30
-67
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL + MAX( ALL 24 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL + MAX ( ALL 24 ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT + ( - 31 ) * - 1 AS col2 FROM tab2 cor0 WHERE NOT - col2 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2271
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2271
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT DISTINCT 3 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2272
SELECT DISTINCT 3 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - SUM( 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - SUM ( 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2274
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2274
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( + ( + col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL + MAX( ALL col2 ) * 96 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9504

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + MAX ( ALL col2 ) * 96 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT DISTINCT - CAST( 98 AS SIGNED ) + + col1 AS col2 FROM tab0
----
-17
-77
-97

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - CAST ( 98 AS INTEGER ) + + col1 AS col2 FROM tab0
----
-17
-77
-97

query I rowsort
SELECT 54 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + 21 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 * col2 IS NULL
----

query I rowsort
SELECT + 10 + + 7 AS col1 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - - 48 + col2 * - 18 FROM tab0 AS cor0
----
-132
-1734
-798

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col2 ) AND - col2
----

query I rowsort
SELECT - 89 * - col1 + col2 AS col2 FROM tab2 cor0
----
4562
6021
6893

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( ( + 7 ) * - col1 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ( - MIN( DISTINCT 23 ) ) FROM tab0 cor0 WHERE NULL IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2287
SELECT ( - MIN ( DISTINCT 23 ) ) FROM tab0 cor0 WHERE NULL IS NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + - COUNT( * ) * COUNT( DISTINCT col2 ) + + ( + SUM( - ( col0 ) ) ) FROM tab2 cor0
----
-194

skipif mysql # not compatible
query I rowsort label-2288
SELECT + - COUNT ( * ) * COUNT ( DISTINCT col2 ) + + ( + SUM ( - ( col0 ) ) ) FROM tab2 cor0
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT + 73 - - COUNT( * ) * 54 AS col1 FROM tab2
----
235

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + 73 - - COUNT ( * ) * 54 AS col1 FROM tab2
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - COUNT( * ) * + - COUNT( * ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2290
SELECT - COUNT ( * ) * + - COUNT ( * ) col1 FROM tab0
----
9

query I rowsort
SELECT col2 * + col2 * 7 AS col2 FROM tab1
----
24367
32368
64512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT ( - ( CAST( NULL AS SIGNED ) ) ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT ( - ( CAST ( NULL AS INTEGER ) ) ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 + col0 * col2 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2294
SELECT + CAST( NULL AS DECIMAL ) * 78 - col1 / col1 FROM tab1 WHERE ( NULL ) <> + col0 + col0
----

skipif mysql # not compatible
query I rowsort label-2294
SELECT + CAST ( NULL AS REAL ) * 78 - col1 / col1 FROM tab1 WHERE ( NULL ) <> + col0 + col0
----

query I rowsort
SELECT + - col1 - - 84 * ( col2 ) FROM tab0 cor0
----
3867
819
8315

query I rowsort
SELECT ALL - + 59 * - + col2 + col0 * + col1 + 66 FROM tab0 AS cor0
----
2483
4054
6004

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * + 33 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 85 > ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT ALL - 33 * - - COUNT( * ) * - MIN( DISTINCT col0 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - 33 * - - COUNT ( * ) * - MIN ( DISTINCT col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE NOT 3 <> - - 78
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND 38
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - 93 )
----

query II rowsort
SELECT ALL + col0, 59 * + + col1 AS col2 FROM tab1 AS cor0
----
51
826
85
295
91
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT - COUNT( * ) * + 81 AS col1 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - COUNT ( * ) * + 81 AS col1 FROM tab1 AS cor0
----
-243

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 0 + col1 > 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + - col1 NOT BETWEEN - col2 * - col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-2306
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + - col1 NOT BETWEEN - col2 * - col2 AND col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT COUNT( * ) / 42 - 18 * - AVG ( col0 + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT COUNT ( * ) / 42 - 18 * - AVG ( col0 + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT ALL + col0 DIV - + 77 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + col0 / - + 77 AS col0 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND ( col1 * col2 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE - col2 * - col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + 7 + + - ( 69 ) FROM tab2
----
-62
-62
-62

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= ( - col0 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT col1 * - col0 + - 87 AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN - ( + CAST( NULL AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query I rowsort label-2314
SELECT col1 * - col0 + - 87 AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN - ( + CAST ( NULL AS INTEGER ) ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT MAX( ALL - ( + + 41 ) ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-2315
SELECT MAX ( ALL - ( + + 41 ) ) FROM tab2
----
-41

query I rowsort
SELECT ( - 40 ) AS col1 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT ALL + col1 / col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( - 60 + 3 ) <= col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE NOT ( + col2 IS NULL )
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL <= + - col0 )
----

query I rowsort
SELECT - 32 + + col0 FROM tab1 AS cor0
----
19
53
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col0 + - - col2 col0 FROM tab2 AS cor0
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT + CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab2 WHERE + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2322
SELECT + CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab2 WHERE + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 + - - col2 ) NOT IN ( - 27 )
----

query I rowsort
SELECT ALL 3 - 84 AS col2 FROM tab0 AS cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT col2 - + + col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT DISTINCT + 13 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + 13 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - 65 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 73 + + 97 + - - 43 * - col2 FROM tab2
----
-1550
-2324
-819

onlyif mysql # DIV for integer division: 
query II rowsort label-2330
SELECT ALL col0, col2 * + col1 + 37 DIV - - col0 AS col0 FROM tab1
----
51
1344
85
295
91
3196

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL col0, col2 * + col1 + 37 / - - col0 AS col0 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2331
SELECT COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2332
SELECT 14 + - CAST( NULL AS SIGNED ) * 68 * COUNT( DISTINCT col0 ) * - 83 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT 14 + - CAST ( NULL AS INTEGER ) * 68 * COUNT ( DISTINCT col0 ) * - 83 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT ALL COUNT( * ) DIV 53 FROM tab2 WHERE + 76 * col2 * - 95 + + - col2 - + col1 * - ( col2 + - 28 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL COUNT ( * ) / 53 FROM tab2 WHERE + 76 * col2 * - 95 + + - col2 - + col1 * - ( col2 + - 28 ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2334
SELECT COUNT( * ), 63 * - SUM( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2334
SELECT COUNT ( * ), 63 * - SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
3
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) < + col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT DISTINCT + col0 + CAST( + col0 AS SIGNED ) FROM tab2 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT + col0 + CAST ( + col0 AS INTEGER ) FROM tab2 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 23 ) col2 FROM tab0
----
23
23
23

query I rowsort
SELECT ALL 97 * - 87 FROM tab1
----
-8439
-8439
-8439

query I rowsort
SELECT DISTINCT - ( col1 ) * + - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT 22 * + - col0 AS col2 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT DISTINCT + - col0 DIV ( - col0 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + - col0 / ( - col0 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT ALL COUNT( * ) DIV - 17 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL COUNT ( * ) / - 17 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col2 ) BETWEEN NULL AND ( + col1 + + ( col0 ) ) )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + COUNT( DISTINCT - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2346
SELECT + COUNT ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT SUM( DISTINCT col2 ) AS col1, + 85 FROM tab2 AS cor0
----
121
85

skipif mysql # not compatible
query II rowsort label-2347
SELECT SUM ( DISTINCT col2 ) AS col1, + 85 FROM tab2 AS cor0
----
121
85

query I rowsort
SELECT ALL col1 * + 32 FROM tab2
----
1632
2144
2464

query III rowsort
SELECT * FROM tab1 WHERE NOT 80 * - col0 - + + ( + + 74 ) > - 54 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - 29 FROM tab2
----
-1160
-1682
-667

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + 88 / col0 + col0 + - col1 )
----

query I rowsort
SELECT col1 + + col0 - - + 59 FROM tab2
----
156
200
201

query I rowsort
SELECT DISTINCT + col2 * + 22 AS col1 FROM tab1
----
1298
1496
2112

query I rowsort
SELECT ALL - 83 * + 41 + + 79 AS col2 FROM tab0 WHERE ( - + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL + 78 * - + COUNT( * ) col2 FROM tab0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2356
SELECT ALL + 78 * - + COUNT ( * ) col2 FROM tab0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * + 56 + col2 col1 FROM tab2
----
415
432
450

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE + col1 > NULL
----

query II rowsort
SELECT + 59, 11 AS col2 FROM tab1 AS cor0
----
59
11
59
11
59
11

query I rowsort
SELECT ALL - 32 + - 92 + col0 * - col0 FROM tab0 AS cor0
----
-349
-7693
-9533

query I rowsort
SELECT + - 53 * col0 FROM tab2 AS cor0 WHERE + col1 + + col0 - + 0 IS NOT NULL
----
-2438
-3392
-3975

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 4 - - - col1 ) BETWEEN + col2 * col1 AND ( + 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT - 39 AS col0 FROM tab1 cor0 WHERE ( - 7 * + CAST( + + 79 AS SIGNED ) + + + 18 ) IS NOT NULL
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 39 AS col0 FROM tab1 cor0 WHERE ( - 7 * + CAST ( + + 79 AS INTEGER ) + + + 18 ) IS NOT NULL
----
-39
-39
-39

query I rowsort
SELECT col0 - col2 * - 52 AS col1 FROM tab2
----
1242
2144
3091

query III rowsort
SELECT ALL * FROM tab0 WHERE + 33 - - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2366
SELECT - col2 / + col1 * + 65 + + + col2 + CAST( + + col0 AS DECIMAL ) + col1 * 13 * col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2366
SELECT - col2 / + col1 * + 65 + + + col2 + CAST ( + + col0 AS REAL ) + col1 * 13 * col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - 43 AS col2 FROM tab1 AS cor0 WHERE 20 * + 82 / - + 9 IS NOT NULL
----
-43
-43
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL col2 - - col1 - + col0 DIV - col0 FROM tab0 cor0
----
101
129
32

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL col2 - - col1 - + col0 / - col0 FROM tab0 cor0
----
101
129
32

query I rowsort
SELECT col0 + - col1 + - + 33 + + col2 FROM tab1 AS cor0
----
100
106
79

query I rowsort
SELECT - + 79 + + - col1 AS col2 FROM tab2 AS cor0
----
-130
-146
-156

query I rowsort
SELECT ALL 66 - - - col1 FROM tab2 AS cor0
----
-1
-11
15

query I rowsort
SELECT ALL 0 - + + 33 * + 19 FROM tab1
----
-627
-627
-627

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col0 ) NOT BETWEEN NULL AND + col1 / - + 32 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT + 93 * - + CAST( NULL AS SIGNED ) - + 11 AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT + 93 * - + CAST ( NULL AS INTEGER ) - + 11 AS col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col1 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - - col0 * - col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN 4 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 42 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2380
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab1
----
78

query II rowsort
SELECT ALL col0 * - 67, + col1 AS col1 FROM tab0
----
-1005
81
-5829
21
-6499
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, + col2 + - + col1 col2 FROM tab2
----
23
-28
40
-37
58
-9

query I rowsort
SELECT ALL col2 * + + col0 * - col0 AS col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT - ( - 37 ) + + - 58 * col1 AS col0 FROM tab2 WHERE NOT - 69 * + + col0 IS NULL
----
-2921
-3849
-4429

query I rowsort
SELECT DISTINCT + - 35 + + col2 AS col2 FROM tab2 AS cor0
----
-12
23
5

query II rowsort
SELECT 0, + col2 AS col1 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ( + + 61 ) * + COUNT( * ) FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-2388
SELECT ( + + 61 ) * + COUNT ( * ) FROM tab0 cor0
----
183

query II rowsort
SELECT + - col2, + col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2390
SELECT DISTINCT - 10 col1, CAST( - + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-15
-10
-87
-10
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2390
SELECT DISTINCT - 10 col1, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-15
-10
-87
-10
-97

query II rowsort
SELECT - col0 AS col2, - col1 * - 44 - + 91 AS col0 FROM tab2 AS cor0
----
-46
2153
-64
3297
-75
2857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col0 FROM tab2 cor0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT + + col2 DIV - - col2 + col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2393
SELECT + + col2 / - - col2 + col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT DISTINCT + - 9 * + col0 * - col0 FROM tab1 AS cor0
----
23409
65025
74529

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 21 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2 * + col0 * - 47 + - + 35, 26 )
----

query I rowsort
SELECT DISTINCT 25 + - - 74 * + + col1 AS col0 FROM tab0
----
1579
6019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL + 68 * - COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + 68 * - COUNT ( * ) FROM tab1
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT + COUNT( - 83 ) + + MAX( DISTINCT col2 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + COUNT ( - 83 ) + + MAX ( DISTINCT col2 ) FROM tab0
----
102

query I rowsort
SELECT col1 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL + - col2 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-1536
-3289
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col0 + 96 col1 FROM tab1 AS cor0
----
2697
7321
8377

query I rowsort
SELECT DISTINCT col1 * - ( - + ( 2 ) ) AS col0 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT + + 56 + col0 AS col1 FROM tab1 cor0
----
107
141
147

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT 64 * ( + 35 ) AS col0 FROM tab1
----
2240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT - 79 DIV COUNT( * ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-2408
SELECT - 79 / COUNT ( * ) FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT ALL - COUNT( * ) AS col0, - 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9
-29

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL - COUNT ( * ) AS col0, - 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9
-29

query II rowsort
SELECT + + col0 AS col1, - 50 FROM tab0 AS cor0
----
15
-50
87
-50
97
-50

query I rowsort
SELECT col0 - - - 35 + col2 AS col0 FROM tab1 AS cor0
----
109
112
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + COUNT( * ) - SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + COUNT ( * ) - SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT + + 52 * + + COUNT( DISTINCT 45 ) FROM tab1 AS cor0 WHERE NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT + + 52 * + + COUNT ( DISTINCT 45 ) FROM tab1 AS cor0 WHERE NULL > + col2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 68 * - col2 + col0 + + ( - 5 ) - + ( col0 ) NOT BETWEEN ( col0 + + col0 + + - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT ( 80 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( 80 ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT + COUNT( * ) * 99 AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + COUNT ( * ) * 99 AS col1 FROM tab2
----
297

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col2 * - + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + col1 = - col1 + + + 76 * - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - 32 ) - + col0 AS col0 FROM tab0 cor0 WHERE NOT + col1 <= + col2 * - 52
----
-119
-129
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT + SUM( col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT + SUM ( col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - ( MIN( 10 ) ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2422
SELECT - ( MIN ( 10 ) ) FROM tab2 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - ( - col0 ) + - 79 FROM tab1 AS cor0
----
-28
12
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 21 NOT BETWEEN - + col0 * + 60 AND ( + - col2 - + - col2 + - 47 + + + 17 + + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - COUNT( + - 56 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - COUNT ( + - 56 ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + 26 + - 35 - - ( - 65 ) AS col0 FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - MIN( ALL - 49 ) + + 99 AS col0 FROM tab2 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-2428
SELECT - MIN ( ALL - 49 ) + + 99 AS col0 FROM tab2 AS cor0
----
148

query I rowsort
SELECT 69 + 35 - + + col1 AS col1 FROM tab2
----
27
37
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT - COUNT( * ) + + 75 FROM tab1 WHERE NOT 38 >= - 58 + - col0 / + col0
----
75

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - COUNT ( * ) + + 75 FROM tab1 WHERE NOT 38 >= - 58 + - col0 / + col0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 - + col1 col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT - COUNT( * ) DIV + + ( - COUNT( * ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2432
SELECT - COUNT ( * ) / + + ( - COUNT ( * ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab1 WHERE - + 96 IS NULL
----

query I rowsort
SELECT ALL + + 92 * + 84 + - 32 AS col2 FROM tab2 AS cor0
----
7696
7696
7696

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 / - ( 20 ) BETWEEN NULL AND - - 18
----

query II rowsort
SELECT DISTINCT col1, col1 * - 56 FROM tab2 cor0
----
51
-2856
67
-3752
77
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2437
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) - + col2 + + ( + - col1 ) * + col1 <> 34
----

skipif mysql # not compatible
query III rowsort label-2437
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) - + col2 + + ( + - col1 ) * + col1 <> 34
----

query I rowsort
SELECT - - 93 + col1 * col1 AS col1 FROM tab2 AS cor0
----
2694
4582
6022

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL 6 * + 97 * - MAX( + 49 ) AS col2 FROM tab0 cor0
----
-28518

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL 6 * + 97 * - MAX ( + 49 ) AS col2 FROM tab0 cor0
----
-28518

query II rowsort
SELECT ALL + - 81 * + - 24 AS col1, 50 AS col1 FROM tab1 cor0
----
1944
50
1944
50
1944
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * + + 21 + - col1 col0 FROM tab0 AS cor0
----
423
483
503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT + - 20 * 76 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-129200
-138320
-77520

skipif mysql # not compatible
query I rowsort label-2442
SELECT + - 20 * 76 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-129200
-138320
-77520

query I rowsort
SELECT ALL + 1 * - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT SUM( DISTINCT + - 29 ) FROM tab1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT SUM ( DISTINCT + - 29 ) FROM tab1 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 52 FROM tab0
----
2444
5148
520

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + MIN( - + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + MIN ( - + col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT ALL + - COUNT( * ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2447
SELECT ALL + - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT + - ( 2 ) AS col2 FROM tab0 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT DISTINCT 39 DIV - - col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT 39 / - - col0 FROM tab0 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + ( + col0 ) col1, + ( - - 66 ) * 48 - + - col2 + col1 AS col0, + 42 FROM tab0
----
9 values hashing to 96f749c35465b4d560d81d529ff79423

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - 44
----

query I rowsort
SELECT + ( ( + - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT + 12, ( 29 ) AS col0 FROM tab2
----
12
29
12
29
12
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + 71 AS col2 FROM tab1
----
130
139
167

query I rowsort
SELECT DISTINCT col2 * + + col2 + - col1 * + col0 + - - col2 * - ( - ( + col1 ) ) FROM tab2
----
-248
-644
2225

query I rowsort
SELECT ALL + - 41 + - + col2 AS col2 FROM tab1 AS cor0
----
-100
-109
-137

query II rowsort
SELECT + - 71 + + - col1 * + col2 * - 54 * + 43 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
3120697
14
684919
5
7421041
47

query I rowsort
SELECT ALL + col1 * col1 - col2 AS col0 FROM tab0 cor0
----
-98
431
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL COUNT( * ) * + MIN( ALL + - col0 ) + - 84 + 9 AS col1 FROM tab2 AS cor0
----
-300

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL COUNT ( * ) * + MIN ( ALL + - col0 ) + - 84 + 9 AS col1 FROM tab2 AS cor0
----
-300

query I rowsort
SELECT col1 * col0 * + col1 AS col0 FROM tab0
----
38367
97
98415

query II rowsort
SELECT - col1, 56 AS col1 FROM tab1
----
-14
56
-47
56
-5
56

query I rowsort
SELECT ALL + col2 - + + 59 FROM tab0
----
-12
-49
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT + COUNT( * ) DIV 8 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + COUNT ( * ) / 8 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 57
----

query II rowsort
SELECT DISTINCT + - 85 AS col2, 77 FROM tab0 AS cor0
----
-85
77

query II rowsort
SELECT - + 33 AS col2, + col1 FROM tab2 AS cor0
----
-33
51
-33
67
-33
77

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT + SUM( DISTINCT col1 ) AS col1, COUNT( * ) * + COUNT( * ) FROM tab0
----
103
9

skipif mysql # not compatible
query II rowsort label-2469
SELECT + SUM ( DISTINCT col1 ) AS col1, COUNT ( * ) * + COUNT ( * ) FROM tab0
----
103
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT + 25 * ( - MIN( - + col0 ) ) FROM tab0
----
2425

skipif mysql # not compatible
query I rowsort label-2470
SELECT + 25 * ( - MIN ( - + col0 ) ) FROM tab0
----
2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT ALL COUNT( * ) DIV + + COUNT( * ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT ALL COUNT ( * ) / + + COUNT ( * ) col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT ALL - 59 DIV + 14 AS col2 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - 59 / + 14 AS col2 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col0 * + col0 * - - col2 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2475
SELECT - CAST( NULL AS DECIMAL ) / + ( ( - + col2 ) ) - 26 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - CAST ( NULL AS REAL ) / + ( ( - + col2 ) ) - 26 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + - MIN( ALL - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2476
SELECT + - MIN ( ALL - col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - COUNT( * ) * + MIN( DISTINCT + 35 ) col1 FROM tab0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2477
SELECT - COUNT ( * ) * + MIN ( DISTINCT + 35 ) col1 FROM tab0
----
-105

query I rowsort
SELECT ALL + 43 + - - col2 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT col2 * + 70 + - + col1 FROM tab0 AS cor0
----
3209
679
6929

query II rowsort
SELECT + - col2, col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT + MAX( DISTINCT + col0 ) + 87 DIV COUNT( * ) * + 80 FROM tab1 AS cor0
----
2411

skipif mysql # not compatible
query I rowsort label-2481
SELECT + MAX ( DISTINCT + col0 ) + 87 / COUNT ( * ) * + 80 FROM tab1 AS cor0
----
2411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2482
SELECT ALL COUNT( * ) + + SUM( DISTINCT + + col1 ) AS col0, CAST( NULL AS SIGNED ) / + 24 FROM tab2 AS cor0
----
198
NULL

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL COUNT ( * ) + + SUM ( DISTINCT + + col1 ) AS col0, CAST ( NULL AS INTEGER ) / + 24 FROM tab2 AS cor0
----
198
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT - 71 * - col1 * col2 + 24 DIV + + col2 FROM tab1
----
20945
226916
95424

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 71 * - col1 * col2 + 24 / + + col2 FROM tab1
----
20945
226916
95424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT + CAST( 62 AS SIGNED ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + CAST ( 62 AS INTEGER ) AS col0 FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col0 + + col0 col1 FROM tab2
----
1280
1500
920

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col0 * - 15 BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT 77 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT 77 / - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----
0

query II rowsort
SELECT - col1 * - - col2, col1 AS col1 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT ALL + col1 * - - col2 + - 5 FROM tab0
----
205
3802
94

query I rowsort
SELECT ALL - 49 + + + 34 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT - + col2 - + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-2492
SELECT - + col2 - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-196
-62
-97

query II rowsort
SELECT ALL + - col1 + + - 84 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-105
10
-165
47
-85
99

query I rowsort
SELECT + 67 * - col2 * 40 * - 32 AS col2 FROM tab0 AS cor0
----
4030720
8490240
857600

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - - SUM( DISTINCT - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2495
SELECT - - SUM ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * 59 * + ( - + 27 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT - + 81 DIV 61 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2497
SELECT - + 81 / 61 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 54 * + 11 FROM tab2 AS cor0
----
594
594
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT 72 FROM tab1 WHERE NOT NULL BETWEEN col2 + - col2 AND NULL
----

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2502
SELECT - 7 AS col2, col0 * - + col0 + + - col2 DIV col0 DIV col0 + 83 AS col2 FROM tab0
----
-7
-142
-7
-7486
-7
-9326

skipif mysql # not compatible
query II rowsort label-2502
SELECT - 7 AS col2, col0 * - + col0 + + - col2 / col0 / col0 + 83 AS col2 FROM tab0
----
-7
-142
-7
-7486
-7
-9326

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2503
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col1, 5 FROM tab2 cor0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-2503
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col1, 5 FROM tab2 cor0
----
NULL
5
NULL
5
NULL
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT - + MIN( ALL 33 ) AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-2504
SELECT - + MIN ( ALL 33 ) AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-33
3

query I rowsort
SELECT col0 * + + 0 - col0 AS col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT + - COUNT( ALL - + col2 ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2506
SELECT + - COUNT ( ALL - + col2 ) col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - + col2 * 68 + - 9 AS col2 FROM tab2 cor0
----
-1573
-2729
-3953

query II rowsort
SELECT DISTINCT 50 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
50
-14
50
-47
50
-5

query I rowsort
SELECT - col2 + + + 16 FROM tab1
----
-43
-52
-80

query I rowsort
SELECT - col1 + + 33 + - col0 AS col0 FROM tab1
----
-105
-32
-57

query I rowsort
SELECT 65 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL CAST( - - 12 AS SIGNED ) * CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL CAST ( - - 12 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 92 * - col1 - - - 93 + - col0 FROM tab0 AS cor0
----
-98
1752
7344

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + ( + + COUNT( * ) ) * - + 64 * + ( + MIN( ALL + col1 ) ) FROM tab0 AS cor0 WHERE col1 = - + 2 / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT + ( + + COUNT ( * ) ) * - + 64 * + ( + MIN ( ALL + col1 ) ) FROM tab0 AS cor0 WHERE col1 = - + 2 / - col1
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * col1 * + col0 * + - col1 + + 46 * - 25 FROM tab0 AS cor0
----
-1053
7970465
804557

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL col2 * - col2 * + - col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT COUNT( * ) + + - 0 col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT COUNT ( * ) + + - 0 col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL 90 - - COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL 90 - - COUNT ( * ) FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT + COUNT( ALL - 44 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + COUNT ( ALL - 44 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2521
SELECT ALL MAX( CAST( + 53 AS SIGNED ) ) AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL MAX ( CAST ( + 53 AS INTEGER ) ) AS col1 FROM tab0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + - col0 + + + ( - ( - ( - col0 ) ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL SUM( ALL + 45 ) col0 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2524
SELECT ALL SUM ( ALL + 45 ) col0 FROM tab2 AS cor0
----
135

query I rowsort
SELECT col0 * + - 11 FROM tab2 AS cor0
----
-506
-704
-825

query I rowsort
SELECT ALL + - ( - - 7 ) AS col0 FROM tab1 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL 34 * col0 AS col2 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2528
SELECT DISTINCT - col1 * - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT - col1 * - - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT + MIN( + 11 ) + + COUNT( * ) + - + 34 AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2529
SELECT + MIN ( + 11 ) + + COUNT ( * ) + - + 34 AS col2 FROM tab1
----
-20

query I rowsort
SELECT 70 + - col1 * - col2 * - col0 FROM tab1
----
-25005
-290766
-68474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT COUNT( * ) + MIN( - + col0 ) DIV - 1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT COUNT ( * ) + MIN ( - + col0 ) / - 1 FROM tab0
----
100

query I rowsort
SELECT ALL - ( + + ( - - col1 ) ) * col2 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT - MIN( ALL - col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - MIN ( ALL - col1 ) FROM tab2 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 + + 68 col1 FROM tab0 cor0
----
154
154
154

query I rowsort
SELECT ( + 91 ) FROM tab2 cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT DISTINCT - 25 * col1 + + col2 * - + CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
-1954
-3283
-3326

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT - 25 * col1 + + col2 * - + CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
-1954
-3283
-3326

query II rowsort
SELECT - col1, - 80 + 40 * + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-51
-93920
-67
-201080
-77
-197200

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 * - col1 ) < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL + SUM( + - CAST( + col1 AS SIGNED ) ) * + 26 AS col1 FROM tab2 AS cor0
----
-5070

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + SUM ( + - CAST ( + col1 AS INTEGER ) ) * + 26 AS col1 FROM tab2 AS cor0
----
-5070

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT - 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL col0 + 83 FROM tab0
----
170
180
98

query I rowsort
SELECT DISTINCT 13 + col1 FROM tab0 AS cor0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col2 FROM tab1 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2545
SELECT col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2545
SELECT col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + - 16 * + - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-3568

skipif mysql # not compatible
query I rowsort label-2547
SELECT + - 16 * + - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-3568

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL 2 - + - 1 - - - 25 * + - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL 2 - + - 1 - - - 25 * + - COUNT ( * ) FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT - SUM( ALL + ( + + 80 ) ) AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - SUM ( ALL + ( + + 80 ) ) AS col1 FROM tab2
----
-240

query I rowsort
SELECT ( + - 58 ) FROM tab2
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT NULL > col2
----
0

query II rowsort
SELECT DISTINCT - - 25 * 7 AS col0, 16 FROM tab0 AS cor0
----
175
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 * - col0 + - 54 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT + + col1 DIV 95 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2554
SELECT DISTINCT + + col1 / 95 col2 FROM tab1 AS cor0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT 94 AS col2, - 93 FROM tab0
----
94
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL - CAST( + 27 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - CAST ( + 27 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT col2 DIV + 19 col0 FROM tab1
----
3
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2559
SELECT col2 / + 19 col0 FROM tab1
----
3
3
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0 AS col2, - 91 AS col1 FROM tab0 AS cor0
----
-15
-91
-87
-91
-97
-91

query I rowsort
SELECT - - ( col1 ) * - col1 + + 42 + - 59 + + - col0 * - + 16 AS col0 FROM tab1 AS cor0
----
-770
1318
603

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * 15 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + col2
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - MAX( - 39 ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - MAX ( - 39 ) AS col2 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT - CAST( + 39 AS SIGNED ) AS col2 FROM tab0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2567
SELECT - CAST ( + 39 AS INTEGER ) AS col2 FROM tab0
----
-39
-39
-39

query I rowsort
SELECT ALL - - col0 + col2 * + col2 FROM tab1 AS cor0
----
3566
4715
9267

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + col0 * + col0 + + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL + MAX( + CAST( + 80 AS SIGNED ) ) * - COUNT( * ) + - MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + MAX ( + CAST ( + 80 AS INTEGER ) ) * - COUNT ( * ) + - MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-315

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE 39 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 + - 75 ) < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 80 + - col1, - col2 AS col0 FROM tab2 AS cor0
----
13
-58
29
-23
3
-40

query I rowsort
SELECT ALL - + col2 + + - col2 * col1 AS col2 FROM tab2 cor0
----
-1196
-3120
-3944

query II rowsort
SELECT DISTINCT - col2 / 4 - 0, - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2576
SELECT DISTINCT + CAST( + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + CAST ( + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT + 63 AS col2, 48 AS col1 FROM tab1 AS cor0
----
63
48
63
48
63
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col1 * + - col2 + 17 * - 35 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT + + 87 + - COUNT( * ) + + - 28 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT + + 87 + - COUNT ( * ) + + - 28 FROM tab2 AS cor0
----
56

query I rowsort
SELECT - 8 - - col0 FROM tab0 AS cor0
----
7
79
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2581
SELECT ALL + CAST( - 76 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
-17
-8
20

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + CAST ( - 76 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
-17
-8
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT - - COUNT( * ) + + 96 DIV + MIN( - ( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - - COUNT ( * ) + + 96 / + MIN ( - ( col2 ) ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - + col0 * + col0 - - col1 AS col0, + col1 * + col0 FROM tab2 AS cor0
----
-2065
2346
-4019
4928
-5558
5025

query I rowsort
SELECT ALL 94 - - + col1 AS col2 FROM tab2 AS cor0
----
145
161
171

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 >= - + col1 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + col1 >= - 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 65 AS col0, col1 + - - 18 col1 FROM tab2
----
65
69
65
85
65
95

query I rowsort
SELECT ALL + + ( 79 ) FROM tab0 cor0 WHERE NOT - 48 + - + 79 IS NULL
----
79
79
79

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 75 < - - col1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2590
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 96 + - - col1 BETWEEN - col2 AND + CAST( - 94 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2590
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 96 + - - col1 BETWEEN - col2 AND + CAST ( - 94 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT SUM( ALL + 41 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-2591
SELECT SUM ( ALL + 41 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
369

query I rowsort
SELECT DISTINCT - 24 * 18 AS col2 FROM tab2
----
-432

query I rowsort
SELECT - + 99 / col0 + + col0 AS col1 FROM tab2 cor0 WHERE NOT ( NOT col0 * - 47 BETWEEN NULL AND + ( - col2 ) * + ( - col2 ) )
----

query I rowsort
SELECT DISTINCT - - 5 AS col0 FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 62 / - - 64 + + col0 * col0 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2596
SELECT DISTINCT - - SUM( + CAST( col1 AS SIGNED ) ) AS col0, + COUNT( * ) * COUNT( * ) + + 46 FROM tab1 AS cor0
----
66
55

skipif mysql # not compatible
query II rowsort label-2596
SELECT DISTINCT - - SUM ( + CAST ( col1 AS INTEGER ) ) AS col0, + COUNT ( * ) * COUNT ( * ) + + 46 FROM tab1 AS cor0
----
66
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL - ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2598
SELECT DISTINCT + 2 DIV 55 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + 2 / 55 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col1 FROM tab0
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT - col1 DIV - + col2 + + - col1 + - 83 * - 94 AS col0 FROM tab1
----
7755
7788
7797

skipif mysql # not compatible
query I rowsort label-2600
SELECT - col1 / - + col2 + + - col1 + - 83 * - 94 AS col0 FROM tab1
----
7755
7788
7797

query I rowsort
SELECT col2 * - + ( 46 ) + + - 92 FROM tab1
----
-2806
-3220
-4508

query I rowsort
SELECT ALL - - 24 FROM tab2 WHERE NOT - + 22 + - 25 IS NULL
----
24
24
24

query I rowsort
SELECT + col1 + - 87 + col0 * 0 FROM tab2
----
-10
-20
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col2 col1 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT ALL col0 + + - 96 FROM tab1
----
-11
-45
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT COUNT( * ) + 18 AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT COUNT ( * ) + 18 AS col2 FROM tab0
----
21

query I rowsort
SELECT ALL + - 81 FROM tab2 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT ALL - col0 * + 48 + - col0 AS col2 FROM tab0 cor0
----
-4263
-4753
-735

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - + col1 + - + col1 - + col1 IS NULL AND ( - 58 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - COUNT( * ) - - COUNT( ALL - ( 21 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT - COUNT ( * ) - - COUNT ( ALL - ( 21 ) ) FROM tab2
----
0

query I rowsort
SELECT - col0 - + + 61 AS col0 FROM tab2
----
-107
-125
-136

query I rowsort
SELECT + + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT 54 * - 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 00cdfc806c22c9613f84c2f07fef099f

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 18 AND - + col1 OR NOT NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - + MIN( col0 ) col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2615
SELECT - + MIN ( col0 ) col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + + col2 - 99 AS col0 FROM tab1 AS cor0
----
-3
-31
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT - ( - ( + COUNT( * ) ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2617
SELECT - ( - ( + COUNT ( * ) ) ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + 11 - 89 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1 + ( + col2 )
----

query I rowsort
SELECT - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 32 * + - col0 FROM tab0
----
-2784
-3104
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + COUNT( * ) + 27 col2 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2621
SELECT + COUNT ( * ) + 27 col2 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT COUNT( ( + - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT COUNT ( ( + - col2 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL 64 + col1 * - - ( + 14 ) + + - 95 AS col0 FROM tab2 AS cor0
----
1047
683
907

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT 19 * + 4 + SUM( ALL + - col2 ) col2 FROM tab2 AS cor0 WHERE + col2 > - 69
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2624
SELECT DISTINCT 19 * + 4 + SUM ( ALL + - col2 ) col2 FROM tab2 AS cor0 WHERE + col2 > - 69
----
-45

query I rowsort
SELECT + ( - + 1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * - 76 AS col0 FROM tab0 cor0
----
1140
6612
7372

query I rowsort
SELECT ALL + + col0 + - - 0 * col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - 9 * - 66 + COUNT( col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
594

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 9 * - 66 + COUNT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2629
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2629
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT + 58 * + COUNT( * ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2630
SELECT + 58 * + COUNT ( * ) FROM tab0 AS cor0
----
174

query I rowsort
SELECT ALL 14 AS col2 FROM tab0 WHERE NOT - 15 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + AVG ( - col1 ) col1, 87 AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
NULL
87

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL NOT BETWEEN + col1 / col1 + + + col2 / - 94 + - 5 AND - + 10
----

query I rowsort
SELECT ALL col2 + + - col1 * - + col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT + col1 + + + 31 + - - col0 AS col2 FROM tab0
----
127
129
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT 90 * 18 + + + SUM( ALL - 34 ) FROM tab1
----
1518

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT 90 * 18 + + + SUM ( ALL - 34 ) FROM tab1
----
1518

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 50 AND - ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL + + ( + 88 ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( col1 + CAST( NULL AS SIGNED ), col2 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + + ( + 88 ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( col1 + CAST ( NULL AS INTEGER ), col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT - col2 + - CAST( NULL AS SIGNED ) + + 80 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - col2 + - CAST ( NULL AS INTEGER ) + + 80 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - col0 + 22 AS col0 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT + COUNT( * ) col2, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2641
SELECT + COUNT ( * ) col2, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT COUNT( * ) - 91 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-2642
SELECT COUNT ( * ) - 91 FROM tab2
----
-88

query I rowsort
SELECT + col2 - - 56 AS col2 FROM tab2 AS cor0
----
114
79
96

query II rowsort
SELECT - - col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL + 29 AS col0 FROM tab2 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - - SUM( DISTINCT + - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2646
SELECT - - SUM ( DISTINCT + - col0 ) FROM tab0 cor0
----
-199

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 + 47 ) IS NULL
----

query II rowsort
SELECT DISTINCT col0 * - col0 AS col0, + col2 AS col0 FROM tab2
----
-2116
23
-4096
40
-5625
58

query I rowsort
SELECT - - col1 + + 78 * - col1 FROM tab0 WHERE NOT NULL >= - - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - COUNT( * ) * - - 10 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - COUNT ( * ) * - - 10 FROM tab1
----
-30

query I rowsort
SELECT - + 15 * + + col2 + - 12 FROM tab1 WHERE NOT 74 * + 45 BETWEEN + col0 * + 10 * + 35 + col2 AND + + col0
----
-1032
-1452
-897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT CAST( + + ( 37 ) AS SIGNED ) AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT CAST ( + + ( 37 ) AS INTEGER ) AS col0 FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * col1 IN ( - col1 + + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT COUNT( * ) * - - COUNT( * ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT COUNT ( * ) * - - COUNT ( * ) col1 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col0 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT col2 DIV + - col1 AS col2 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT col2 / + - col1 AS col2 FROM tab0
----
-99
0
0

query I rowsort
SELECT col2 * - - 68 AS col1 FROM tab1 AS cor0
----
4012
4624
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT 63 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 63 >= NULL
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL > col1 * - 61 - - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - COUNT( 84 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2660
SELECT - COUNT ( 84 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT COUNT( * ) + - + 81 * + 57 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-4608

skipif mysql # not compatible
query I rowsort label-2663
SELECT COUNT ( * ) + - + 81 * + 57 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-4608

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 6 FROM tab1 AS cor0 WHERE NOT col1 - - col2 <> - + col0 + + - col1
----

query I rowsort
SELECT DISTINCT + + col1 + - 97 AS col2 FROM tab2 AS cor0
----
-20
-30
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ( - COUNT( * ) ) + + ( - 19 ) + 5 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2667
SELECT ( - COUNT ( * ) ) + + ( - 19 ) + 5 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT + 37 + + 65 AS col0 FROM tab0 AS cor0
----
102
102
102

query I rowsort
SELECT - 25 + - col0 + - col0 * + + ( - col0 ) FROM tab1
----
2525
7115
8165

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT - COUNT( * ) * - 66 * - 29 col1 FROM tab2
----
-5742

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2670
SELECT DISTINCT - COUNT ( * ) * - 66 * - 29 col1 FROM tab2
----
-5742

query I rowsort
SELECT ALL - ( - 8 ) FROM tab2
----
8
8
8

query I rowsort
SELECT ALL + 19 + - col2 FROM tab0
----
-28
-80
9

query I rowsort
SELECT DISTINCT 84 * 4 AS col2 FROM tab1
----
336

query I rowsort
SELECT 1 * + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 25 + + 73 + - col2 AS col0 FROM tab2
----
40
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + MAX( ALL - - col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + MAX ( ALL - - col2 ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL CAST( NULL AS SIGNED ) + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL CAST ( NULL AS INTEGER ) + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + - COUNT( * ) * - COUNT( * ) + + 71 + + COUNT( DISTINCT - 75 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) + + 71 + + COUNT ( DISTINCT - 75 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + col0 * - ( + + 59 ) + - col2 - - col0 FROM tab1 AS cor0
----
-3054
-4989
-5346

query I rowsort
SELECT + + col1 - + - col1 + 18 AS col1 FROM tab0 AS cor0
----
180
20
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( 16 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 89 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * 45 / - - col1 IS NOT NULL
----

query I rowsort
SELECT + ( + 90 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1890
-7290
-90

query II rowsort
SELECT - col0 * + + 78, col0 FROM tab2 AS cor0
----
-3588
46
-4992
64
-5850
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 77 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + COUNT( * ) * - + 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2688
SELECT + COUNT ( * ) * - + 97 FROM tab1
----
-291

query II rowsort
SELECT - + 46 * - - col1 * - col2 + + 92 + - col1 + col0, - col2 + 43 AS col1 FROM tab1 AS cor0
----
13742
-16
147152
-25
61953
-53

query I rowsort
SELECT - + 31 * + 82 AS col0 FROM tab0 AS cor0
----
-2542
-2542
-2542

query I rowsort
SELECT + + col2 * + 33 AS col1 FROM tab2 AS cor0
----
1320
1914
759

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 51 AND + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL - 86 * - COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 86 * - COUNT ( * ) FROM tab1
----
258

query III rowsort
SELECT * FROM tab2 WHERE + col1 / 82 - + col0 >= ( - 41 )
----

query I rowsort
SELECT + ( + col0 ) * col1 AS col0 FROM tab0 WHERE NOT ( col2 ) > + col0 * 0 + - ( ( + col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2696
SELECT + CAST( NULL AS DECIMAL ) + 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT + CAST ( NULL AS REAL ) + 61 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
100
118
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT MAX( 37 ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2698
SELECT MAX ( 37 ) AS col2 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL COUNT( * ) * + MIN( - col0 * + col0 ) FROM tab1
----
-24843

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL COUNT ( * ) * + MIN ( - col0 * + col0 ) FROM tab1
----
-24843

query III rowsort
SELECT * FROM tab0 WHERE - 5 - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col1 ) FROM tab0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab1
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 WHERE 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 / + col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT 2 / ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT 2 / ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + col1 > ( 6 * + ( 74 ) )
----

query I rowsort
SELECT - col2 * + 63 AS col1 FROM tab0
----
-2961
-6237
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + 19 * COUNT( - 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 19 * COUNT ( - 57 ) FROM tab1
----
57

query I rowsort
SELECT ALL + 65 + - col1 AS col0 FROM tab2
----
-12
-2
14

query I rowsort
SELECT + 8 * - col1 FROM tab0
----
-168
-648
-8

query III rowsort
SELECT * FROM tab1 WHERE ( 67 ) = ( 69 )
----

query I rowsort
SELECT ALL col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT 62 + - SUM( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT 62 + - SUM ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-133

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col0 / - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT - COUNT( * ) * SUM( 47 * col2 ) + CAST( - MAX( DISTINCT col1 ) + ( 76 + + ( + COUNT( ALL - 95 ) + - SUM( ALL ( - col1 ) - + 7 ) ) ) AS SIGNED ) FROM tab1 AS cor0
----
-31324

skipif mysql # not compatible
query I rowsort label-2716
SELECT - COUNT ( * ) * SUM ( 47 * col2 ) + CAST ( - MAX ( DISTINCT col1 ) + ( 76 + + ( + COUNT ( ALL - 95 ) + - SUM ( ALL ( - col1 ) - + 7 ) ) ) AS INTEGER ) FROM tab1 AS cor0
----
-31324

query I rowsort
SELECT - col0 + + 80 AS col0 FROM tab2 AS cor0
----
16
34
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 69 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT - COUNT( * ) + + 33 AS col0 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-2719
SELECT - COUNT ( * ) + + 33 AS col0 FROM tab1 cor0
----
30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2721
SELECT CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT 57 BETWEEN ( NULL ) AND col0 * ( col2 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 57 BETWEEN ( NULL ) AND col0 * ( col2 * col0 )
----
0

query I rowsort
SELECT DISTINCT + 13 * col1 FROM tab0 AS cor0
----
1053
13
273

query I rowsort
SELECT ALL - + ( - 3 ) * col0 FROM tab0 AS cor0
----
261
291
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( 94 ) / - 21 AND + col2
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND ( - 44 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT DISTINCT col0 DIV - 79 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT col0 / - 79 FROM tab0 cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT - 0 DIV - col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 0 / - col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - 10 ) * - col0 FROM tab0 cor0
----
150
870
970

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 85 + - col2 * col1 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT - 80 * + CAST( col2 AS SIGNED ) FROM tab2
----
-1840
-3200
-4640

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 80 * + CAST ( col2 AS INTEGER ) FROM tab2
----
-1840
-3200
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + COUNT( ALL col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2735
SELECT + COUNT ( ALL col2 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + 68 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT + COUNT( * ) + - 31 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + COUNT ( * ) + - 31 FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + COUNT( * ) * + - COUNT( * ) + - 59 AS col1 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2738
SELECT + COUNT ( * ) * + - COUNT ( * ) + - 59 AS col1 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL + ( - 64 ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 90 - 58 = col2 * - col2 + - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT + MIN( ALL + col0 ) col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2741
SELECT DISTINCT + MIN ( ALL + col0 ) col1 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT 41 * COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT 41 * COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
369

query I rowsort
SELECT ALL - 21 FROM tab0 WHERE NULL IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT + 2 + - - ( - 21 ) DIV - 95 AS col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2746
SELECT + 2 + - - ( - 21 ) / - 95 AS col0 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 + - col0 ) NOT IN ( ( - col2 ) * 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 72 + + + col2 FROM tab2 cor0
----
112
130
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT DISTINCT - + col0 DIV + 44 + + 63 * - col2 col0 FROM tab2 AS cor0
----
-1450
-2521
-3655

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT DISTINCT - + col0 / + 44 + + 63 * - col2 col0 FROM tab2 AS cor0
----
-1450
-2521
-3655

query I rowsort
SELECT - ( col2 ) + 99 * col1 FROM tab0 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT + col1 + + ( col2 ) FROM tab2 AS cor0 WHERE col0 IN ( + + col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - COUNT( + col2 ) + 86 AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2752
SELECT - COUNT ( + col2 ) + 86 AS col0 FROM tab2 AS cor0
----
83

query I rowsort
SELECT - - col0 + 64 AS col0 FROM tab1 cor0
----
115
149
155

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2755
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NULL OR CAST( NULL AS SIGNED ) IN ( + 20 * 93 )
----

skipif mysql # not compatible
query III rowsort label-2755
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NULL OR CAST ( NULL AS INTEGER ) IN ( + 20 * 93 )
----

query I rowsort
SELECT DISTINCT + col1 - + 13 AS col2 FROM tab2 AS cor0
----
38
54
64

query II rowsort
SELECT DISTINCT 75 AS col2, - col0 FROM tab1 AS cor0
----
75
-51
75
-85
75
-91

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2759
SELECT * FROM tab2 WHERE NULL IN ( col2 * + col2 * - 44 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2759
SELECT * FROM tab2 WHERE NULL IN ( col2 * + col2 * - 44 - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + COUNT( * ) * + MAX( DISTINCT - - 87 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-2760
SELECT + COUNT ( * ) * + MAX ( DISTINCT - - 87 ) FROM tab2
----
261

query I rowsort
SELECT DISTINCT - 4 - + col1 + - col0 AS col2 FROM tab1
----
-142
-69
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - COUNT( * ) * + - MAX( ALL - col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-2762
SELECT - COUNT ( * ) * + - MAX ( ALL - col0 ) FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT COUNT( * ) * - + 15 AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT COUNT ( * ) * - + 15 AS col1 FROM tab2
----
-45

query I rowsort
SELECT ALL - 5 - col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( + - col0 ) >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + MAX( ALL col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL > 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT + MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL > 70 )
----
NULL

query I rowsort
SELECT + - 50 - - col2 FROM tab1 cor0
----
18
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT - - COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2767
SELECT - - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL - - COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - - COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2769
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2770
SELECT DISTINCT - 5 DIV - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT - 5 / - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

query I rowsort
SELECT DISTINCT + 12 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
12

query I rowsort
SELECT DISTINCT + col2 * + - col1 * - + 27 + + ( - + 90 ) AS col0 FROM tab2 AS cor0
----
104832
31581
83070

query I rowsort
SELECT ALL col1 * + col1 * - col2 * + + col0 * col2 AS col1 FROM tab1 AS cor0
----
-7397125
-92123136
-929511856

query I rowsort
SELECT col0 * - col1 FROM tab2 AS cor0 WHERE NOT - col0 + - + col2 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT - + 62 DIV + 71 + - 18 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - + 62 / + 71 + - 18 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT col1 * - 93 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( ( col0 ) IS NOT NULL )
----
-4743
-6231
-7161

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 * col0 * - - col2 / + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT 87 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT 87 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-261

query I rowsort
SELECT + 76 * - col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( 20 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT ALL + CAST( NULL AS SIGNED ) * + - 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 76 AS col2, 10 * + col0 AS col2 FROM tab1 AS cor0
----
-76
510
-76
850
-76
910

query I rowsort
SELECT DISTINCT + 99 / col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - + MAX( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2783
SELECT - + MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col0 FROM tab0 WHERE NOT + 68 + - ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + 34 ) * + col2 FROM tab2
----
1360
1972
782

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT COUNT( - 90 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2786
SELECT COUNT ( - 90 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL + MIN( - - ( - + 65 ) ) AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + MIN ( - - ( - + 65 ) ) AS col1 FROM tab1
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * + - col0 + - col1 col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col0
----

query II rowsort
SELECT ALL col0, + col1 AS col1 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15 + - col2 AS col0, + col1 col1 FROM tab0 AS cor0
----
-32
81
-84
1
5
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ( MIN( - - col2 ) ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2792
SELECT ( MIN ( - - col2 ) ) FROM tab0 cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 = - col0 + col2 * 48
----

query I rowsort
SELECT DISTINCT - col1 + - - 66 FROM tab2 AS cor0
----
-1
-11
15

query I rowsort
SELECT + col2 * - + 9 - - col2 + 31 FROM tab1 cor0
----
-441
-513
-737

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 cor0 WHERE NOT 71 IS NOT NULL
----

query I rowsort
SELECT - col1 + + col1 - + 13 FROM tab1 AS cor0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT + MIN( - 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-2799
SELECT + MIN ( - 42 ) FROM tab2
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 NOT BETWEEN 36 AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 NOT IN ( col0, - 85 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT - col1 DIV + 19 AS col1 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT - col1 / + 19 AS col1 FROM tab0 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 12 ) col2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL - + col0 + + 97 AS col2 FROM tab0 AS cor0
----
0
10
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2805
SELECT DISTINCT + col1 + + col2 AS col2, CAST( NULL AS SIGNED ) / + - col2 FROM tab0 AS cor0
----
100
NULL
128
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-2805
SELECT DISTINCT + col1 + + col2 AS col2, CAST ( NULL AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
100
NULL
128
NULL
31
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - 82 + col2 AS col1 FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT + 36 * - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 36 * - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col1 * + ( 49 ) * - col1 + - col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, 23 AS col1 FROM tab2
----
46
23
64
23
75
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2811
SELECT ALL - COUNT( * ) FROM tab0 WHERE col0 >= - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL - COUNT ( * ) FROM tab0 WHERE col0 >= - CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 WHERE NOT + 64 IS NULL
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL - - col1 * + col1 + 25 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + CAST( + + 70 AS SIGNED ) * + 87
----

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - - col1 * + col1 + 25 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + CAST ( + + 70 AS INTEGER ) * + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT DISTINCT 82 * - CAST( - 62 AS SIGNED ) AS col0 FROM tab0
----
5084

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT 82 * - CAST ( - 62 AS INTEGER ) AS col0 FROM tab0
----
5084

query I rowsort
SELECT DISTINCT + col1 + - 77 + - 71 FROM tab0
----
-127
-147
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL COUNT( * ) + COUNT( + col2 ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2816
SELECT ALL COUNT ( * ) + COUNT ( + col2 ) col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT DISTINCT + 88 AS col2, + SUM( ALL + col2 ) col1 FROM tab2
----
88
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2817
SELECT DISTINCT + 88 AS col2, + SUM ( ALL + col2 ) col1 FROM tab2
----
88
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2818
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - 32 * + 45 - CAST( - + ( + 29 ) AS SIGNED ) * + + 8 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2818
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - 32 * + 45 - CAST ( - + ( + 29 ) AS INTEGER ) * + + 8 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 64 AS col0 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT ALL - - 81 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3807
8019
810

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - - 81 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3807
8019
810

query I rowsort
SELECT ALL + col0 * ( + col1 ) FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 + col1, col0 * + + col0 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, + 88, + - 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT + col0 * + col1 + + - 57 col0 FROM tab0 AS cor0 WHERE NOT + CAST( - + 24 AS SIGNED ) IS NULL
----
1158
1770
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT + col0 * + col1 + + - 57 col0 FROM tab0 AS cor0 WHERE NOT + CAST ( - + 24 AS INTEGER ) IS NULL
----
1158
1770
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2825
SELECT DISTINCT - CAST( - 14 AS SIGNED ), - col1 * + col0 col2 FROM tab0 AS cor0
----
14
-1215
14
-1827
14
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2825
SELECT DISTINCT - CAST ( - 14 AS INTEGER ), - col1 * + col0 col2 FROM tab0 AS cor0
----
14
-1215
14
-1827
14
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL COUNT( * ) * MAX( DISTINCT col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL COUNT ( * ) * MAX ( DISTINCT col0 ) FROM tab2
----
225

query I rowsort
SELECT 5 + + col2 AS col2 FROM tab1
----
101
64
73

query I rowsort
SELECT DISTINCT - col2 * + 43 AS col1 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT 12 + 44 AS col2 FROM tab2
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2830
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - ( - col1 ) + col0 * - 49, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2830
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - ( - col1 ) + col0 * - 49, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT DISTINCT - 36 * MAX( ALL - 84 ) AS col2, 84 AS col2 FROM tab0
----
3024
84

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT - 36 * MAX ( ALL - 84 ) AS col2, 84 AS col2 FROM tab0
----
3024
84

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col2 + - col1 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL MIN( ALL - 23 ) AS col2 FROM tab0 WHERE col2 <> - col1 - + + col1
----
-23

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL MIN ( ALL - 23 ) AS col2 FROM tab0 WHERE col2 <> - col1 - + + col1
----
-23

query I rowsort
SELECT 53 * col1 * - col2 AS col1 FROM tab2
----
-163240
-205958
-62169

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - 3 + - - MIN( DISTINCT col1 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - 3 + - - MIN ( DISTINCT col1 ) FROM tab2
----
48

query III rowsort
SELECT * FROM tab0 WHERE ( - - col1 / + + col0 - - + col2 * - col0 - - 97 + + 69 * + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 54 + - + 29 AS col1 FROM tab1
----
-83
-83
-83

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - ( - col0 ), col1 * ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 95 + 53 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 95 + 53 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 33 * col1 col1 FROM tab2 cor0
----
148137
195657
85833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2841
SELECT + 34 + - 98 DIV + - COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2841
SELECT + 34 + - 98 / + - COUNT ( * ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL COUNT( * ) col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL - + col2 * + 0 - col0 * - col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col2 - + 27 AS col2 FROM tab2 AS cor0
----
-4
13
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 22 - col1 FROM tab2 AS cor0
----
-73
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - SUM( DISTINCT + ( - col0 ) ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT - SUM ( DISTINCT + ( - col0 ) ) col1 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 50 col1 FROM tab1 cor0
----
2350
250
700

query I rowsort
SELECT DISTINCT - 83 - col1 FROM tab1 AS cor0
----
-130
-88
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT + COUNT( * ) * + 67 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT + COUNT ( * ) * + 67 FROM tab2
----
201

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL COUNT( * ) + - + SUM( - 41 ) FROM tab0 cor0 WHERE + col2 > - col1
----
126

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL COUNT ( * ) + - + SUM ( - 41 ) FROM tab0 cor0 WHERE + col2 > - col1
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT + + 23 * CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT + + 23 * CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL SUM( + 55 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL SUM ( + 55 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 45 FROM tab0
----
2115
4455
450

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 47 + - - col2 FROM tab1 AS cor0
----
12
21
49

query II rowsort
SELECT - - col1, - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT 97 * + + ( + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2860
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT 97 * + + ( + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - COUNT( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2861
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2862
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - 0 = + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2862
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - 0 = + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - COUNT( DISTINCT 82 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2863
SELECT - COUNT ( DISTINCT 82 ) AS col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT - 99 IN ( col2 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - - SUM( + - 44 ) * COUNT( - col1 ) FROM tab0 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - - SUM ( + - 44 ) * COUNT ( - col1 ) FROM tab0 AS cor0
----
-396

query III rowsort
SELECT * FROM tab1 WHERE - + 31 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE 64 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL CAST( ( col2 ) AS SIGNED ) FROM tab1 WHERE - + col0 * - - col1 IN ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL CAST ( ( col2 ) AS INTEGER ) FROM tab1 WHERE - + col0 * - - col1 IN ( - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 WHERE NOT + - col0 / + col0 + + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT DISTINCT 83 * - - 12 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT 83 * - - 12 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * + 94 + + col1 FROM tab2
----
2213
3837
5519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT + 68 * MIN( DISTINCT + - col1 ) FROM tab0 WHERE - CAST( - col2 AS SIGNED ) IS NOT NULL
----
-5508

skipif mysql # not compatible
query I rowsort label-2872
SELECT + 68 * MIN ( DISTINCT + - col1 ) FROM tab0 WHERE - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-5508

query I rowsort
SELECT 22 + col0 + - col1 * + col2 * col1 FROM tab0
----
-308330
-4301
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT - col0 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - col0 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 * - 13 / + 81 * 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 + + col2 + - + col0 AS col2 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT CAST( NULL AS SIGNED ) * 10 + - CAST( MAX( - col1 ) AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT CAST ( NULL AS INTEGER ) * 10 + - CAST ( MAX ( - col1 ) AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 64 IS NULL
----

query I rowsort
SELECT ALL + col0 * - 14 * + col2 AS col1 FROM tab1 AS cor0
----
-68544
-70210
-86632

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT col2 DIV 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT col2 / 45 FROM tab0
----
0
1
2

query I rowsort
SELECT col0 FROM tab1 WHERE - 75 BETWEEN NULL AND + ( - + 2 ) * + 61
----

query I rowsort
SELECT - ( col1 ) * 5 - + + 0 FROM tab0 AS cor0
----
-105
-405
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 5 - - 41 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + col0 - col0 + col1 BETWEEN + 71 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT DISTINCT - 87 DIV + col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT - 87 / + col0 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT DISTINCT - col0 DIV 17 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - col0 / 17 FROM tab1
----
-3
-5

query I rowsort
SELECT 95 * - col2 AS col2 FROM tab2
----
-2185
-3800
-5510

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 >= + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2890
SELECT DISTINCT + - 60, CAST( NULL AS SIGNED ) * - CAST( - col0 AS SIGNED ) FROM tab0 WHERE NULL <> - - 19
----

skipif mysql # not compatible
query II rowsort label-2890
SELECT DISTINCT + - 60, CAST ( NULL AS INTEGER ) * - CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NULL <> - - 19
----

query I rowsort
SELECT - ( + 25 ) FROM tab0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - + col2 ) + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + ( - - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT + ( - - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT ALL - col1 * + + CAST( 16 AS SIGNED ) FROM tab2 cor0
----
-1072
-1232
-816

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL - col1 * + + CAST ( 16 AS INTEGER ) FROM tab2 cor0
----
-1072
-1232
-816

query I rowsort
SELECT + ( - 10 ) FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2896
SELECT 37 AS col0, + SUM( col0 ) FROM tab0 AS cor0
----
37
199

skipif mysql # not compatible
query II rowsort label-2896
SELECT 37 AS col0, + SUM ( col0 ) FROM tab0 AS cor0
----
37
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + - ( - + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2897
SELECT ALL + - ( - + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab2 WHERE NOT + - 60 BETWEEN - + col0 AND ( NULL )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT ALL - CAST( - 39 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
103
114
85

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - CAST ( - 39 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
103
114
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2900
SELECT + - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2900
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col2 FROM tab0 cor0 WHERE NOT - col0 >= + ( - + 43 )
----
10
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL - 61 + + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - 61 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT - MIN( - ( 51 ) ) FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - MIN ( - ( 51 ) ) FROM tab0 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + - ( 40 ) * + 8 + 70 * COUNT( * ) FROM tab1 cor0
----
-110

skipif mysql # not compatible
query I rowsort label-2904
SELECT + - ( 40 ) * + 8 + 70 * COUNT ( * ) FROM tab1 cor0
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT + ( COUNT( * ) ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT + ( COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 82 BETWEEN - col0 + + - col0 AND + - col0
----
51
14
96

query I rowsort
SELECT 94 + - col2 + - ( + 61 ) AS col2 FROM tab0
----
-14
-66
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - MIN( DISTINCT - 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-2908
SELECT - MIN ( DISTINCT - 56 ) FROM tab2
----
56

query II rowsort
SELECT DISTINCT 9 AS col2, + 78 AS col1 FROM tab2
----
9
78

query I rowsort
SELECT DISTINCT 14 * + + 82 FROM tab2
----
1148

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= + col0 + + 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL 33 + + 3 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 46 * + + col1 AS col1 FROM tab0 AS cor0
----
3726
46
966

query I rowsort
SELECT 95 + col2 + + - 17 FROM tab2 WHERE - 32 / + col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2916
SELECT 18 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2916
SELECT 18 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT 33 * + + col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT - CAST( - 77 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - col0
----

skipif mysql # not compatible
query I rowsort label-2918
SELECT - CAST ( - 77 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT + col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT + col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT - + 55 * col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 93 * + 4 AS col0 FROM tab1
----
372
372
372

query III rowsort
SELECT * FROM tab0 WHERE NOT - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - ( - COUNT( * ) ) + + 26 + + 17 * + ( SUM( DISTINCT - + col1 ) ) col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2925
SELECT - ( - COUNT ( * ) ) + + 26 + + 17 * + ( SUM ( DISTINCT - + col1 ) ) col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT + col2 DIV 9 AS col1 FROM tab0 AS cor0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + col2 / 9 AS col1 FROM tab0 AS cor0
----
1
11
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT + col0 + col2 + - col0 DIV - ( col2 ) FROM tab0 AS cor0
----
105
196
62

skipif mysql # not compatible
query I rowsort label-2927
SELECT + col0 + col2 + - col0 / - ( col2 ) FROM tab0 AS cor0
----
105
196
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT DISTINCT CAST( 31 AS SIGNED ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT CAST ( 31 AS INTEGER ) FROM tab1
----
31

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 40 <= 91
----
15

query II rowsort
SELECT col0 AS col1, - col1 AS col1 FROM tab1 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + - - 11 * - 11 - + col2 * + col0 AS col0 FROM tab1
----
-10586
-5561
-5731

onlyif mysql # aggregate syntax: 
query II rowsort label-2932
SELECT DISTINCT - - 75 AS col1, COUNT( * ) col0 FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2932
SELECT DISTINCT - - 75 AS col1, COUNT ( * ) col0 FROM tab2 AS cor0
----
75
3

query I rowsort
SELECT ALL + col0 + + 75 AS col2 FROM tab2 AS cor0
----
121
139
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT - + COUNT( * ) col0 FROM tab2 AS cor0 WHERE - col0 BETWEEN - 9 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2934
SELECT - + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE - col0 BETWEEN - 9 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL + CAST( - + 83 AS SIGNED ) col1 FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT ALL + CAST ( - + 83 AS INTEGER ) col1 FROM tab1 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 75 col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + MAX( ALL + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2937
SELECT + MAX ( ALL + - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - - ( 94 ) AS col1 FROM tab2 WHERE col1 + - + 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL SUM( DISTINCT - + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL SUM ( DISTINCT - + col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL - col2 + + + col0 DIV col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - col2 + + + col0 / col2 AS col0 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NOT NULL AND NOT col2 * + col0 * - + 86 IN ( + col2, - col1 + - col0 * + + 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL 23 + + CAST( NULL AS SIGNED ) - ( 77 ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 23 + + CAST ( NULL AS INTEGER ) - ( 77 ) * + col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 + + col2 AS col1, - col2 FROM tab0
----
0
-10
0
-47
0
-99

query I rowsort
SELECT DISTINCT + 50 + - col1 AS col2 FROM tab2
----
-1
-17
-27

query II rowsort
SELECT col1 + - - col2 AS col2, col1 FROM tab1
----
110
14
115
47
64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + COUNT( * ) + 35 + COUNT( * ) AS col0 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2946
SELECT + COUNT ( * ) + 35 + COUNT ( * ) AS col0 FROM tab2
----
41

query I rowsort
SELECT - 16 + + 76 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT - 20 + col1 * + - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
1324
275
3176

skipif mysql # not compatible
query I rowsort label-2948
SELECT - 20 + col1 * + - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
1324
275
3176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2949
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2949
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - COUNT( * ) * + - 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2950
SELECT - COUNT ( * ) * + - 92 FROM tab0
----
276

query II rowsort
SELECT - - ( - col2 ) * col2 AS col2, - col0 + 54 AS col1 FROM tab1 AS cor0
----
-3481
-31
-4624
-37
-9216
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT - ( + - col1 ) DIV - 82 + - + 17 - + 83 + - ( + 97 ) AS col2 FROM tab0 AS cor0
----
-197
-197
-197

skipif mysql # not compatible
query I rowsort label-2952
SELECT - ( + - col1 ) / - 82 + - + 17 - + 83 + - ( + 97 ) AS col2 FROM tab0 AS cor0
----
-197
-197
-197

query I rowsort
SELECT DISTINCT 71 * + col2 AS col1 FROM tab2 AS cor0
----
1633
2840
4118

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT ALL - - col2 DIV + 62 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - - col2 / + 62 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 66 * - 52 col1 FROM tab1 AS cor0
----
-202488
-233376
-329472

query I rowsort
SELECT ALL + 65 * col0 + - 9 AS col0 FROM tab1 AS cor0
----
3306
5516
5906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL + + CAST( - 33 AS SIGNED ) AS col1 FROM tab0 cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + + CAST ( - 33 AS INTEGER ) AS col1 FROM tab0 cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( - - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( - - col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL 14 * - + COUNT( 98 ) AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL 14 * - + COUNT ( 98 ) AS col1 FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT COUNT( * ) * + SUM( - + col0 ) AS col1 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT COUNT ( * ) * + SUM ( - + col0 ) AS col1 FROM tab0
----
-597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT ALL 83 DIV - COUNT( * ) + ( - 17 ) AS col2 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL 83 / - COUNT ( * ) + ( - 17 ) AS col2 FROM tab2
----
-44

query I rowsort
SELECT DISTINCT - 95 + - 35 AS col1 FROM tab0 AS cor0
----
-130

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 62 * + 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE ( - - col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2964
SELECT - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE ( - - col2 ) IS NOT NULL
----
-3

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT COUNT( DISTINCT - 56 ) * - - 86 + + MAX( ALL + 30 ) FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT COUNT ( DISTINCT - 56 ) * - - 86 + + MAX ( ALL + 30 ) FROM tab2 AS cor0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT ALL - 37 col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-37
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2968
SELECT ALL - 37 col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-37
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 + 6 IS NOT NULL
----

query I rowsort
SELECT + 65 + - 67 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - 2 * - 51 + - - 30 FROM tab2 AS cor0
----
132
132
132

query II rowsort
SELECT ALL - + col0 AS col1, + 42 AS col2 FROM tab1 AS cor0
----
-51
42
-85
42
-91
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT CAST( NULL AS SIGNED ) * + - ( - - COUNT( * ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT CAST ( NULL AS INTEGER ) * + - ( - - COUNT ( * ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT + col1 + - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col1 + - - col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT - 86 DIV - + 86 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2975
SELECT - 86 / - + 86 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL ( + ( - col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + 32 FROM tab1 WHERE - - col0 * - 69 < NULL
----

query I rowsort
SELECT ALL 24 FROM tab1 WHERE NOT 68 BETWEEN NULL AND - + col0
----
24
24
24

query I rowsort
SELECT DISTINCT + col2 - - 60 * - 15 AS col1 FROM tab0 AS cor0
----
-801
-853
-890

query I rowsort
SELECT DISTINCT - col0 + - + 34 FROM tab0 AS cor0
----
-121
-131
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT - 96, COUNT( * ) * 64 AS col0 FROM tab2 AS cor0
----
-96
192

skipif mysql # not compatible
query II rowsort label-2981
SELECT - 96, COUNT ( * ) * 64 AS col0 FROM tab2 AS cor0
----
-96
192

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( NOT ( 90 * + + col1 IS NOT NULL ) )
----
15
87
97

query I rowsort
SELECT + 94 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + ( + + col0 ) * - col0 * + col1
----

query I rowsort
SELECT - - col2 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT + + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2987
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2987
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
NULL
-3

query II rowsort
SELECT - col2 * + col1 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-1173
-51
-3080
-77
-3886
-67

query I rowsort
SELECT + 71 AS col0 FROM tab1 cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + - MAX( + 64 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2990
SELECT + - MAX ( + 64 ) FROM tab1 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2991
SELECT ALL - 19 * + 38 * - col0 * + 50 * + CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2991
SELECT ALL - 19 * + 38 * - col0 * + 50 * + CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ( + - SUM( DISTINCT col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2992
SELECT ( + - SUM ( DISTINCT col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT ALL col0 * + 60 AS col1 FROM tab2
----
2760
3840
4500

query III rowsort
SELECT ALL * FROM tab0 WHERE 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT - COUNT( ALL + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - COUNT ( ALL + - col2 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= 46
----

query I rowsort
SELECT DISTINCT + col2 + - 70 * + 96 AS col1 FROM tab0 AS cor0
----
-6621
-6673
-6710

query II rowsort
SELECT ALL - 84, col0 AS col1 FROM tab0 AS cor0
----
-84
15
-84
87
-84
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2999
SELECT - CAST( NULL AS DECIMAL ) + - + ( col2 ), col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2999
SELECT - CAST ( NULL AS REAL ) + - + ( col2 ), col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3000
SELECT col2 * + 64 + + ( - - col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN - col2 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3000
SELECT col2 * + 64 + + ( - - col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN - col2 AND CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 13 BETWEEN + - ( + - 37 ) AND NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL - 53 + + - col2 FROM tab2 AS cor0
----
-111
-76
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 24 - col2 col1, + col2 AS col2 FROM tab1 AS cor0
----
-120
96
-83
59
-92
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - - ( - MAX( DISTINCT + 24 ) ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3005
SELECT - - ( - MAX ( DISTINCT + 24 ) ) AS col1 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ALL - col2 + + col2 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3007
SELECT - 44 * - 65 * - SUM( ALL + - col1 ) AS col0, ( - - 88 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
188760
NULL

skipif mysql # not compatible
query II rowsort label-3007
SELECT - 44 * - 65 * - SUM ( ALL + - col1 ) AS col0, ( - - 88 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
188760
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT COUNT( * ) + - 48 AS col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT COUNT ( * ) + - 48 AS col2 FROM tab1 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT + col1 DIV + col0 - 72 FROM tab0 AS cor0
----
-67
-72

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT + col1 / + col0 - 72 FROM tab0 AS cor0
----
-67
-72

query I rowsort
SELECT - 63 FROM tab2 WHERE NULL <> + + col2 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL - COUNT( * ) - ( - 76 ) AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - COUNT ( * ) - ( - 76 ) AS col0 FROM tab1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3012
SELECT COUNT( * ) DIV SUM( + - col0 ) AS col2, - 42 FROM tab0 WHERE ( + col0 - - col1 IS NOT NULL )
----
0
-42

skipif mysql # not compatible
query II rowsort label-3012
SELECT COUNT ( * ) / SUM ( + - col0 ) AS col2, - 42 FROM tab0 WHERE ( + col0 - - col1 IS NOT NULL )
----
0
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL - MAX( ALL col2 ) * + - COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - MAX ( ALL col2 ) * + - COUNT ( * ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT - 55 + MAX( + - 70 ) FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - 55 + MAX ( + - 70 ) FROM tab1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT + - SUM( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + - SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= - + col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 8 ) FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT DISTINCT + COUNT( * ), + SUM( col0 ) AS col2 FROM tab1 AS cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-3017
SELECT DISTINCT + COUNT ( * ), + SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
3
227

query II rowsort
SELECT + 34 AS col1, col1 * col0 FROM tab1 AS cor0
----
34
425
34
4277
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * CAST( NULL AS SIGNED ) / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3019
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT DISTINCT COUNT( ALL ( - 18 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT COUNT ( ALL ( - 18 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - + COUNT( * ) * 41 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3021
SELECT - + COUNT ( * ) * 41 FROM tab0 AS cor0
----
-123

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 86 AND NULL
----

query I rowsort
SELECT - ( + col0 ) * - + col2 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT ALL + + 25, col1 * - col0 AS col0 FROM tab2 AS cor0
----
25
-2346
25
-4928
25
-5025

query I rowsort
SELECT ALL + col2 * - - col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + - col0 * + - col1 + + - 73 AS col0 FROM tab0 cor0
----
1142
1754
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL 22 + - 23 * - COUNT( * ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL 22 + - 23 * - COUNT ( * ) FROM tab2
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 5 + - col2 * + col0 col2 FROM tab2
----
-2175
-4015
-803

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + 4 * + + 8 col0 FROM tab1
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + 22 + ( + COUNT( * ) ) * + + 94 col1 FROM tab0
----
304

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3030
SELECT ALL + 22 + ( + COUNT ( * ) ) * + + 94 col1 FROM tab0
----
304

query I rowsort
SELECT 69 FROM tab0 WHERE NOT 20 / - + col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT MAX( + 35 ) AS col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT MAX ( + 35 ) AS col0 FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT + CAST( - + 15 AS SIGNED ) + + - ( 53 ) AS col2 FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-3033
SELECT + CAST ( - + 15 AS INTEGER ) + + - ( 53 ) AS col2 FROM tab2
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL 62 * - 21 FROM tab2
----
-1302
-1302
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL + COUNT( * ) + - + 17 col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT ALL + COUNT ( * ) + - + 17 col1 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL + + 37 - 10 AS col1 FROM tab1 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT 61 + - - SUM( DISTINCT - 27 ), + 38 AS col0 FROM tab1 AS cor0
----
34
38

skipif mysql # not compatible
query II rowsort label-3038
SELECT 61 + - - SUM ( DISTINCT - 27 ), + 38 AS col0 FROM tab1 AS cor0
----
34
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( - + 83 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( - + 83 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 12 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 12 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 51 col2 FROM tab2
----
-2346
-3264
-3825

query I rowsort
SELECT + col0 * + - col0 - + + col1 AS col0 FROM tab0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT DISTINCT COUNT( DISTINCT col1 ), ( + - 46 ) AS col2 FROM tab0
----
3
-46

skipif mysql # not compatible
query II rowsort label-3044
SELECT DISTINCT COUNT ( DISTINCT col1 ), ( + - 46 ) AS col2 FROM tab0
----
3
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT - 38 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 38 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 3 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL + 13 / CAST( NULL AS SIGNED ) - + - 52 * + col2 + 36 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - 25 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + 13 / CAST ( NULL AS INTEGER ) - + - 52 * + col2 + 36 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - 25 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT 40 DIV - - 16 col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT 40 / - - 16 col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT + CAST( NULL AS SIGNED ) * - col1 * col2 / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT + CAST ( NULL AS INTEGER ) * - col1 * col2 / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 20 * - col2 + + + 26 AS col1 FROM tab1 cor0
----
-1154
-1334
-1894

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 5 / - + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * - - col1 AS col1 FROM tab0 cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col0 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( - + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT 62 + + COUNT( - - col2 ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3056
SELECT 62 + + COUNT ( - - col2 ) AS col0 FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT - CAST( - 34 AS SIGNED ) * + COUNT( * ) + + - 47 AS col1 FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-3057
SELECT - CAST ( - 34 AS INTEGER ) * + COUNT ( * ) + + - 47 AS col1 FROM tab1 cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT col1 + + - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT col1 + + - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + - SUM( - 22 ) * MIN( ALL - col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6405

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + - SUM ( - 22 ) * MIN ( ALL - col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 * - - 91, col0 col0 FROM tab2
----
7644
46
7644
64
7644
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL + 80 + + COUNT( * ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + 80 + + COUNT ( * ) FROM tab1 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT + SUM( DISTINCT + col0 ) + + + MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
298

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + SUM ( DISTINCT + col0 ) + + + MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
298

query I rowsort
SELECT DISTINCT - + col1 - - 82 * + ( 76 ) AS col0 FROM tab2 cor0
----
6155
6165
6181

query I rowsort
SELECT + + col0 + + + col2 FROM tab1 cor0 WHERE NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT - + 88 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) * + 97
----

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - + 88 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) * + 97
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 25 + - 57 NOT BETWEEN + + col1 AND + 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col1, col2 + - + ( - 41 ) )
----

query II rowsort
SELECT DISTINCT col1, col2 * - col2 * - - 87 AS col0 FROM tab0
----
1
-852687
21
-8700
81
-192183

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT - MAX( ( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT - MAX ( ( col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT - col0 * + col1 * - 18 FROM tab2
----
42228
88704
90450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3073
SELECT DISTINCT + 79 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + 79 * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL 46 * + COUNT( * ) col1 FROM tab1 WHERE NOT + col0 IS NULL
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3074
SELECT ALL 46 * + COUNT ( * ) col1 FROM tab1 WHERE NOT + col0 IS NULL
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 26 col0 FROM tab0
----
2106
26
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT - CAST( NULL AS SIGNED ) * + ( MIN( ALL - 42 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT - CAST ( NULL AS INTEGER ) * + ( MIN ( ALL - 42 ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT SUM( + 76 ) FROM tab1, tab1 cor0
----
684

skipif mysql # not compatible
query I rowsort label-3078
SELECT SUM ( + 76 ) FROM tab1, tab1 cor0
----
684

query I rowsort
SELECT ALL - 49 * col2 AS col1 FROM tab2
----
-1127
-1960
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= + 83 + col2
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= + 83 + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT COUNT( * ) + + 59 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3081
SELECT COUNT ( * ) + + 59 FROM tab2 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT 65 + - + col0 DIV + + col2 FROM tab0 AS cor0
----
57
65
65

skipif mysql # not compatible
query I rowsort label-3082
SELECT 65 + - + col0 / + + col2 FROM tab0 AS cor0
----
57
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT + col1 * + 15 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT + col1 * + 15 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - ( - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT - MAX( ALL + col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3085
SELECT - MAX ( ALL + col2 ) col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT + SUM( ALL + 13 ) + - - COUNT( * ) AS col0 FROM tab0 WHERE NOT + col1 * 50 IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + SUM ( ALL + 13 ) + - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col1 * 50 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - SUM( DISTINCT - 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - SUM ( DISTINCT - 90 ) FROM tab0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT ALL 73 * - col2 + + col1 - + col2 + + 57 * - + 82 * - CAST( 50 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
226610
228715
229339

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL 73 * - col2 + + col1 - + col2 + + 57 * - + 82 * - CAST ( 50 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
226610
228715
229339

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + col0 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL + + ( - + 72 ) - - ( + COUNT( * ) ) + - + 94 FROM tab0 cor0
----
-163

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + + ( - + 72 ) - - ( + COUNT ( * ) ) + - + 94 FROM tab0 cor0
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT - - col0 - - col1 DIV - col0 - + col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-3091
SELECT - - col0 - - col1 / - col0 - + col1 FROM tab1 AS cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 13 + - col2 col2 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT ALL - col2 * + ( - + col0 ) - + 23 - 76 * + col2 FROM tab1
----
-2423
508
997

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + 17 ) FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + AVG ( ALL - 55 ) AS col1 FROM tab0 WHERE + + 66 * col1 * col2 * + - col1 * col0 BETWEEN col1 + - col2 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 + - - 19 AND - + col1 + + col1 * + + col2 + - 72 * + col2
----

query II rowsort
SELECT ALL + 46 AS col1, + ( + - ( + - col2 ) ) - - 86 FROM tab1
----
46
145
46
154
46
182

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT ALL 64 + - 63 + + - MIN( DISTINCT + + col0 ) AS col0, 29 FROM tab0 cor0
----
-14
29

skipif mysql # not compatible
query II rowsort label-3098
SELECT ALL 64 + - 63 + + - MIN ( DISTINCT + + col0 ) AS col0, 29 FROM tab0 cor0
----
-14
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3099
SELECT * FROM tab1 AS cor0 WHERE ( - - col1 ) + CAST( 63 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3099
SELECT * FROM tab1 AS cor0 WHERE ( - - col1 ) + CAST ( 63 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + 72 ) * + col2 AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT - ( - 82 ) DIV + - col1 FROM tab1 cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-3102
SELECT - ( - 82 ) / + - col1 FROM tab1 cor0
----
-1
-16
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3103
SELECT ALL COUNT( * ) AS col1, 37 - + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3103
SELECT ALL COUNT ( * ) AS col1, 37 - + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
3
NULL

query II rowsort
SELECT - col2 AS col0, col2 * ( - + col1 ) + - col0 FROM tab0 AS cor0
----
-10
-297
-47
-3822
-99
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3105
SELECT + CAST( - - 98 AS SIGNED ) AS col2, + ( MAX( - - col0 ) ) AS col1 FROM tab0
----
98
97

skipif mysql # not compatible
query II rowsort label-3105
SELECT + CAST ( - - 98 AS INTEGER ) AS col2, + ( MAX ( - - col0 ) ) AS col1 FROM tab0
----
98
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query I rowsort
SELECT 94 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT MIN( ALL 0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT MIN ( ALL 0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + 87 FROM tab2 WHERE NOT NULL >= - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 24 <> NULL
----

query I rowsort
SELECT ALL + + 38 * + col2 AS col0 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3114
SELECT * FROM tab1 WHERE NOT 2 * + col1 * + CAST( NULL AS SIGNED ) * 95 * + col1 >= - 41 * - col2 * col2 * + - col2 + + - ( + 38 ) * + CAST( NULL AS SIGNED ) * - col0 + + col0 * - - 53
----

skipif mysql # not compatible
query III rowsort label-3114
SELECT * FROM tab1 WHERE NOT 2 * + col1 * + CAST ( NULL AS INTEGER ) * 95 * + col1 >= - 41 * - col2 * col2 * + - col2 + + - ( + 38 ) * + CAST ( NULL AS INTEGER ) * - col0 + + col0 * - - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT - + CAST( + ( - - 38 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + 27 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3115
SELECT - + CAST ( + ( - - 38 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3117
SELECT DISTINCT - COUNT( * ) DIV + + 69 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT - COUNT ( * ) / + + 69 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 ) < 15 + - CAST( NULL AS SIGNED ) * col0 * + + 84
----

skipif mysql # not compatible
query III rowsort label-3118
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 ) < 15 + - CAST ( NULL AS INTEGER ) * col0 * + + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT + CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3119
SELECT + CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - + col1 * 71 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT DISTINCT - 44 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 99
----

query I rowsort
SELECT + 47 + 20 FROM tab2
----
67
67
67

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + 23 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 NOT IN ( + 93, col2 + + col2, + col0 - + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 39 * + col2, ( - 26 ) + + col1 AS col2 FROM tab1
----
2301
-21
2652
21
3744
-12

query III rowsort
SELECT * FROM tab1 WHERE 12 > + col2 - + - 91
----

query I rowsort
SELECT 5 * - col1 + - + col2 AS col1 FROM tab0
----
-104
-115
-452

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + 73 + + - col2 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT DISTINCT + col0 - + 30 * - ( + col1 ) * + col1 + + + 9 FROM tab0 AS cor0
----
13326
136
196854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL - + COUNT( - 92 ) * + - 19 FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - + COUNT ( - 92 ) * + - 19 FROM tab0 cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT DISTINCT - 7 AS col1, MIN( col2 ) FROM tab2 AS cor0
----
-7
23

skipif mysql # not compatible
query II rowsort label-3134
SELECT DISTINCT - 7 AS col1, MIN ( col2 ) FROM tab2 AS cor0
----
-7
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL - ( - - col0 ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + 65 * + - COUNT( * ) AS col2 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-3137
SELECT + 65 * + - COUNT ( * ) AS col2 FROM tab1
----
-195

query I rowsort
SELECT + col0 - + 23 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-8
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT 78 * COUNT( * ) col0 FROM tab2
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3139
SELECT 78 * COUNT ( * ) col0 FROM tab2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT COUNT( ALL - 26 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3140
SELECT COUNT ( ALL - 26 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT DISTINCT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3142
SELECT ALL 21 AS col1, + COUNT( * ) AS col0 FROM tab1
----
21
3

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL 21 AS col1, + COUNT ( * ) AS col0 FROM tab1
----
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - COUNT( * ) * 79 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-3143
SELECT - COUNT ( * ) * 79 FROM tab0 AS cor0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3144
SELECT DISTINCT - col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-3144
SELECT DISTINCT - col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, + ( - 50 ) FROM tab1 AS cor0
----
-59
-50
-68
-50
-96
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # DIV for integer division: 
query II rowsort label-3147
SELECT + col1 DIV - 17, - col1 AS col0 FROM tab1
----
-2
-47
0
-14
0
-5

skipif mysql # not compatible
query II rowsort label-3147
SELECT + col1 / - 17, - col1 AS col0 FROM tab1
----
-2
-47
0
-14
0
-5

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1 WHERE NULL IS NULL
----
71

query I rowsort
SELECT DISTINCT + + 48 * - - 29 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
1392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + col0 + + col0 col1 FROM tab2
----
174
210
232

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT - 27 + COUNT( * ) FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - 27 + COUNT ( * ) FROM tab2 cor0
----
-24

query I rowsort
SELECT ALL - col1 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL - COUNT( * ) + - 87 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - COUNT ( * ) + - 87 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT DISTINCT + 58 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + 58 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + 33 * + col2 * col0 + col1 + - ( + col2 ) FROM tab2 cor0
----
143559
34942
84517

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - 22 + col0
----

query I rowsort
SELECT + ( + + ( - - 77 ) ) + + + col0 FROM tab1 AS cor0
----
128
162
168

query I rowsort
SELECT DISTINCT + ( - col2 ) * + - 3 - + col1 AS col2 FROM tab1
----
157
172
274

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT MIN( + 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3159
SELECT MIN ( + 67 ) FROM tab1
----
67

query I rowsort
SELECT - col1 + - - col1 FROM tab1 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL + 56 * - + SUM( + col2 ) AS col0 FROM tab0
----
-8736

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + 56 * - + SUM ( + col2 ) AS col0 FROM tab0
----
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - + SUM( + + col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT - + SUM ( + + col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + + 51 FROM tab1
----
56
65
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL - - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT COUNT( * ) + 1 AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT COUNT ( * ) + 1 AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT col2 - + ( - 19 ) FROM tab1 AS cor0
----
115
78
87

query I rowsort
SELECT DISTINCT 44 - - col2 AS col0 FROM tab1 AS cor0
----
103
112
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab2 WHERE 60 NOT BETWEEN ( NULL ) AND col2
----
-51
-67
-77

query I rowsort
SELECT 15 * col1 FROM tab1 WHERE NOT col1 NOT IN ( ( col0 ) / - col2 )
----

query I rowsort
SELECT col2 * ( 54 * + col0 ) - + 27 AS col1 FROM tab0
----
38043
46953
518535

query I rowsort
SELECT DISTINCT + ( - 2 ) AS col2 FROM tab0
----
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 33 ) AS col2 FROM tab2
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 10 - - 31 IS NOT NULL
----

query I rowsort
SELECT ALL 64 AS col0 FROM tab1 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 4 ) AS col2 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col1 NOT BETWEEN + 56 AND NULL
----
1
21

query I rowsort
SELECT 76 + col2 FROM tab0
----
123
175
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT 45 + COUNT( * ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3179
SELECT 45 + COUNT ( * ) AS col2 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT 99 * 82 + - COUNT( * ) FROM tab0
----
8115

skipif mysql # not compatible
query I rowsort label-3180
SELECT 99 * 82 + - COUNT ( * ) FROM tab0
----
8115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT ( 3 ) * - CAST( NULL AS SIGNED ) + - COUNT( DISTINCT - col1 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT ( 3 ) * - CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col0 IN ( + col0 + + col0 * 17 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE col1 <> col2
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT CAST( + 92 AS SIGNED ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT CAST ( + 92 AS INTEGER ) AS col1 FROM tab2
----
92

query I rowsort
SELECT DISTINCT + col0 + + 77 FROM tab1
----
128
162
168

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col0 - 32 NOT IN ( 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT CAST( col2 AS SIGNED ) col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3187
SELECT DISTINCT CAST ( col2 AS INTEGER ) col1 FROM tab2 cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 44 AND col1 * + 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * + col0 col0 FROM tab1 AS cor0
----
4896
8160
8736

query I rowsort
SELECT DISTINCT + ( - 92 ) AS col0 FROM tab0 AS cor0
----
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( 59 * + col1 )
----

query I rowsort
SELECT ALL - 95 * + col0 AS col0 FROM tab0 cor0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL 0 * COUNT( + 43 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL 0 * COUNT ( + 43 ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( col1 ) ) < ( col1 + col0 / - 55 )
----

query I rowsort
SELECT DISTINCT - 6 * - 26 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( + 38 )
----

query I rowsort
SELECT DISTINCT 12 + - col1 FROM tab1
----
-2
-35
7

query I rowsort
SELECT ALL 52 + + col0 * col2 FROM tab2
----
1110
2612
4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - CAST( - 23 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3198
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - CAST ( - 23 AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT MIN( 79 ) / COUNT( * ) FROM tab0 AS cor0 WHERE 90 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT MIN ( 79 ) / COUNT ( * ) FROM tab0 AS cor0 WHERE 90 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab0 AS cor0 WHERE ( - 58 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 58 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 98 + col2 col1 FROM tab0 AS cor0
----
1517
8536
9605

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3202
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * col1 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3202
SELECT DISTINCT + - CAST ( NULL AS REAL ) * col1 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 cor0 WHERE - 5 / - ( col0 * col1 ) BETWEEN + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 71 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * 23 BETWEEN ( NULL ) AND 15
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 23 BETWEEN - 20 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT 85 + - 42 * + SUM( DISTINCT - col0 + 89 ) FROM tab2
----
-3359

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT 85 + - 42 * + SUM ( DISTINCT - col0 + 89 ) FROM tab2
----
-3359

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 87 IN ( + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + 45 + + col1 * 53 FROM tab2
----
2794
3671
4190

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL > + col2 * col1 + - 38
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL > + col2 * col1 + - 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT col1 DIV ( 91 ) + - 67 * - col2 AS col0 FROM tab1
----
3953
4556
6432

skipif mysql # not compatible
query I rowsort label-3211
SELECT col1 / ( 91 ) + - 67 * - col2 AS col0 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT ALL col2 + - col2 + 81 FROM tab1
----
81
81
81

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT DISTINCT + col0 DIV - 81 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + col0 / - 81 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT ( - col0 ) + 32 * col0 AS col2 FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT + ( COUNT( * ) ) + 72 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + ( COUNT ( * ) ) + 72 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - SUM( ALL + 67 ) * 16 + 86 FROM tab2
----
-3130

skipif mysql # not compatible
query I rowsort label-3217
SELECT - SUM ( ALL + 67 ) * 16 + 86 FROM tab2
----
-3130

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT - 71 * + + col0 AS col0 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + COUNT( * ) * 49 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3220
SELECT + COUNT ( * ) * 49 FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL MAX( DISTINCT + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL MAX ( DISTINCT + + col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT SUM( DISTINCT ( + + 94 ) ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT SUM ( DISTINCT ( + + 94 ) ) FROM tab0 AS cor0
----
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 + ( col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 * + col0 * col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + 66 FROM tab0 AS cor0 WHERE + ( col0 ) IS NOT NULL
----
113
165
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT 36 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3226
SELECT 36 / + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + SUM( ALL + ( - - col0 ) ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + SUM ( ALL + ( - - col0 ) ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT DISTINCT CAST( ( + 53 ) AS SIGNED ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT CAST ( ( + 53 ) AS INTEGER ) FROM tab2 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - 0 BETWEEN col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - MIN( DISTINCT - 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-3230
SELECT - MIN ( DISTINCT - 89 ) FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT - 18 AS col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL AND CAST( + 23 AS SIGNED ) NOT IN ( + ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3231
SELECT - 18 AS col2 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL AND CAST ( + 23 AS INTEGER ) NOT IN ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT SUM( col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT SUM ( col2 ) AS col1 FROM tab0
----
156

query II rowsort
SELECT - ( + 78 ) AS col1, - col1 AS col1 FROM tab2
----
-78
-51
-78
-67
-78
-77

query I rowsort
SELECT ALL + 88 + - 14 * 12 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT 68 * + - 63 * + + col0 AS col0 FROM tab1
----
-218484
-364140
-389844

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 6 * 57 AS col2 FROM tab1
----
342
342
342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( - col2 / + - col0 / - + CAST( col0 AS SIGNED ) * - col2 ) IN ( - CAST( NULL AS SIGNED ) ) OR NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( - col2 / + - col0 / - + CAST ( col0 AS INTEGER ) * - col2 ) IN ( - CAST ( NULL AS INTEGER ) ) OR NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 9 + + - col2 AS col0 FROM tab0
----
-1
-38
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col0 ) AND NOT NULL BETWEEN - col1 AND col0
----

query I rowsort
SELECT ( ( - col0 ) ) FROM tab1 AS cor0 WHERE col2 < ( 77 )
----
-85
-91

query I rowsort
SELECT ALL 49 - col0 FROM tab0 cor0
----
-38
-48
34

onlyif mysql # DIV for integer division: 
query II rowsort label-3243
SELECT DISTINCT 86 + ( + + col2 ) AS col1, - col1 - ( 96 ) * ( col2 DIV col1 ) FROM tab1 AS cor0
----
145
-1061
154
-143
182
-590

skipif mysql # not compatible
query II rowsort label-3243
SELECT DISTINCT 86 + ( + + col2 ) AS col1, - col1 - ( 96 ) * ( col2 / col1 ) FROM tab1 AS cor0
----
145
-1061
154
-143
182
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - COUNT( DISTINCT - + 6 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3244
SELECT - COUNT ( DISTINCT - + 6 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - 70 AS col1, col2 FROM tab1 AS cor0
----
-70
59
-70
68
-70
96

query I rowsort
SELECT + ( + - 46 ) AS col0 FROM tab1 AS cor0
----
-46
-46
-46

query III rowsort
SELECT col1, + col1 AS col0, 88 FROM tab2
----
9 values hashing to 18d8054b1cde7398c66fa7c13d9b849b

query I rowsort
SELECT ALL 11 * - 33 - 12 * col0 FROM tab1
----
-1383
-1455
-975

query III rowsort
SELECT * FROM tab2 WHERE col1 + 38 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 10 + - 3 FROM tab0 WHERE ( NOT - ( col1 ) IS NULL )
----
-13

query I rowsort
SELECT + 96 + + + col0 AS col1 FROM tab2 WHERE - - col0 < ( - 13 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> col1 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT - + col2 * - 13 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT - + col2 * - 13 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 28 * - 86 * + ( + + 33 ) AS col2 FROM tab1
----
79464
79464
79464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT + 75 FROM tab0 AS cor0 WHERE NOT + col1 * + 14 * + - col1 - + - col0 + - col2 = + CAST( + col0 AS SIGNED ) * 15
----
75
75
75

skipif mysql # not compatible
query I rowsort label-3255
SELECT + 75 FROM tab0 AS cor0 WHERE NOT + col1 * + 14 * + - col1 - + - col0 + - col2 = + CAST ( + col0 AS INTEGER ) * 15
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + - COUNT( * ) * - - 92 FROM tab0 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3256
SELECT + - COUNT ( * ) * - - 92 FROM tab0 cor0
----
-276

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col1 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 49 * + 2 AS col1 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT + ( - 36 ) DIV - - col1 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT + ( - 36 ) / - - col1 FROM tab1 AS cor0
----
-2
-7
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3260
SELECT DISTINCT - COUNT( * ) DIV + + 28 col0, - 68 FROM tab2 AS cor0
----
0
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3260
SELECT DISTINCT - COUNT ( * ) / + + 28 col0, - 68 FROM tab2 AS cor0
----
0
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - ( - + COUNT( - 26 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3262
SELECT - ( - + COUNT ( - 26 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE - col2 > - 30
----
-23

query II rowsort
SELECT ALL col0 AS col1, 1 FROM tab2
----
46
1
64
1
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT MAX( ALL + 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT MAX ( ALL + 65 ) FROM tab1
----
65

query II rowsort
SELECT + col2, 15 AS col0 FROM tab2
----
23
15
40
15
58
15

query III rowsort
SELECT * FROM tab1 WHERE - 56 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT + + MIN( DISTINCT - col0 ) + - 25 FROM tab1 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-3268
SELECT + + MIN ( DISTINCT - col0 ) + - 25 FROM tab1 AS cor0
----
-116

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3271
SELECT + CAST( NULL AS SIGNED ), + COUNT( * ) AS col0 FROM tab0 WHERE ( NOT 90 IS NULL )
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3271
SELECT + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT 90 IS NULL )
----
NULL
3

query I rowsort
SELECT DISTINCT + ( ( - 53 ) ) FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - col0 + 57 + col0 * - 62 AS col0 FROM tab2 AS cor0
----
-2841
-3975
-4668

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 * + col0 ) < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 13 * - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 50 * + 63 - - 6 - + - 67 FROM tab2 AS cor0
----
3223
3223
3223

query II rowsort
SELECT col2 + - ( col0 ) * - 74 + - 32 AS col1, - col2 AS col2 FROM tab1
----
3838
-96
6317
-59
6770
-68

query I rowsort
SELECT ALL col0 - 66 FROM tab2
----
-2
-20
9

query II rowsort
SELECT ALL + 54 AS col1, + col1 + - - col2 FROM tab1
----
54
110
54
115
54
64

query I rowsort
SELECT ALL - col0 * - - col1 * - col0 - - col2 AS col0 FROM tab1
----
36184
36510
389275

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * - + 49 * + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT MIN( 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-3282
SELECT MIN ( 74 ) FROM tab0
----
74

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 = NULL
----

query I rowsort
SELECT ALL - 70 - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 * - col1 * + - 56, col0 FROM tab1
----
23800
85
239512
91
39984
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + - MAX( ALL ( - ( - 19 ) ) ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3287
SELECT + - MAX ( ALL ( - ( - 19 ) ) ) AS col2 FROM tab0 AS cor0
----
-19

query II rowsort
SELECT ALL col0, ( - col0 ) FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - ( - + 53 ) FROM tab2
----
53
53
53

query I rowsort
SELECT - ( - 59 ) FROM tab0 WHERE NOT col2 = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL ( + ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL ( + ( - COUNT ( * ) ) ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 41 * + + 27 col2 FROM tab0 AS cor0
----
-109593
-11070
-52029

query I rowsort
SELECT DISTINCT - - ( + + ( col0 ) ) * - - 73 + + - col1 FROM tab2 AS cor0
----
3307
4595
5408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col0 IS NOT NULL
----

query I rowsort
SELECT - 10 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 26
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3298
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 / + + 40 NOT BETWEEN + CAST( - - 79 AS DECIMAL ) + + + col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3298
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 / + + 40 NOT BETWEEN + CAST ( - - 79 AS REAL ) + + + col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + 18 * - COUNT( * ) * - + COUNT( ALL col2 ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - - 24 + col0 * col2
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT + 18 * - COUNT ( * ) * - + COUNT ( ALL col2 ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - - 24 + col0 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - COUNT( * ) - + ( 62 ) AS col1 FROM tab0 WHERE ( + col1 / col1 * 27 ) IS NULL
----
-62

skipif mysql # not compatible
query I rowsort label-3300
SELECT - COUNT ( * ) - + ( 62 ) AS col1 FROM tab0 WHERE ( + col1 / col1 * 27 ) IS NULL
----
-62

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + col1 * + - col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + + col2 * + 66 * + col1 AS col1 FROM tab0 AS cor0
----
13860
251262
6534

query I rowsort
SELECT 65 + + col0 - + 90 + + + col2 AS col0 FROM tab2
----
108
44
79

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( + col0 ) - + + 38
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT DISTINCT + COUNT( * ) + + 84 * - - CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + COUNT ( * ) + + 84 * - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 33 + + col1 + - - col2 FROM tab1 AS cor0
----
31
77
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT - + MIN( + + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3307
SELECT - + MIN ( + + col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL col0 + - - 99 * + col0 AS col0 FROM tab2 AS cor0
----
4600
6400
7500

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 78 BETWEEN + + 51 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3310
SELECT DISTINCT + COUNT( * ) col0, 36 * + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3310
SELECT DISTINCT + COUNT ( * ) col0, 36 * + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT - col0 * - 36 AS col0 FROM tab1 AS cor0
----
1836
3060
3276

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 * - ( + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT COUNT( DISTINCT 53 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT COUNT ( DISTINCT 53 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - MAX( DISTINCT ( - col2 ) ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3314
SELECT - MAX ( DISTINCT ( - col2 ) ) AS col0 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT + col1 * + + CAST( - col0 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3315
SELECT + col1 * + + CAST ( - col0 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col0 ) / + col2 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3317
SELECT DISTINCT COUNT( * ) DIV 31 FROM tab0 WHERE NOT col1 DIV col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT COUNT ( * ) / 31 FROM tab0 WHERE NOT col1 / col1 <= NULL
----
0

query I rowsort
SELECT ALL col2 * + - col0 * - + ( col1 ) FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT 50 * + 81 FROM tab0 cor0
----
4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col0 FROM tab0 cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3321
SELECT COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL 96 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3323
SELECT ALL CAST( NULL AS SIGNED ) + - 46 * - - col0 / + CAST( - - col2 AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL CAST ( NULL AS INTEGER ) + - 46 * - - col0 / + CAST ( - - col2 AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT 98 * + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-3325
SELECT 98 * + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
882

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 = + col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT + MAX( ALL + 3 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + MAX ( ALL + 3 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT - + CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3328
SELECT - + CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab1 AS cor0 WHERE NULL = ( col2 ) / - 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col0 FROM tab0 AS cor0
----
71

query II rowsort
SELECT + col2 AS col2, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + col0 + + - 45 FROM tab1
----
40
46
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT DISTINCT col0 * col2 + - - 86 DIV - 38 AS col1 FROM tab1
----
4894
5013
6186

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT col0 * col2 + - - 86 / - 38 AS col1 FROM tab1
----
4894
5013
6186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT + CAST( col1 AS SIGNED ) + - - col2 + 85 * + 2 + + - col0 FROM tab1 AS cor0
----
149
194
229

skipif mysql # not compatible
query I rowsort label-3334
SELECT + CAST ( col1 AS INTEGER ) + - - col2 + 85 * + 2 + + - col0 FROM tab1 AS cor0
----
149
194
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3335
SELECT ALL CAST( + + col1 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL CAST ( + + col1 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - ( col2 ) - col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT + 76 * + col0 * - col1 - - col2 AS col1 FROM tab1
----
-32241
-324984
-54168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT + 38 * col0 - - CAST( + - col1 AS SIGNED ) FROM tab0 cor0
----
3285
3685
489

skipif mysql # not compatible
query I rowsort label-3338
SELECT + 38 * col0 - - CAST ( + - col1 AS INTEGER ) FROM tab0 cor0
----
3285
3685
489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 71 col0 FROM tab1 AS cor0
----
118
76
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col0 - 24 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 < ( - - col0 )
----
51
14
96

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col2 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT - col0 AS col0, col2 + - col0 FROM tab0
----
-15
32
-87
-77
-97
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - 85 * + COUNT( * ) AS col0 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-3344
SELECT - 85 * + COUNT ( * ) AS col0 FROM tab1
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT col1 DIV 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT col1 / 99 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL + MIN( DISTINCT + - 62 ) FROM tab1 WHERE - col2 > + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + MIN ( DISTINCT + - 62 ) FROM tab1 WHERE - col2 > + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + MIN( ALL - 8 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-8

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + MIN ( ALL - 8 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-8

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
17

query II rowsort
SELECT + col2 * + col0 AS col2, col0 FROM tab2
----
1058
46
2560
64
4350
75

query I rowsort
SELECT ALL + col2 + - 67 FROM tab2 AS cor0
----
-27
-44
-9

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + - 36 AS col2 FROM tab1 cor0
----
-22
-31
11

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( 41 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3354
SELECT - CAST( - MAX( DISTINCT col2 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - CAST ( - MAX ( DISTINCT col2 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, + 4 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 69 + - - col2 + + 48 AS col2 FROM tab2 AS cor0
----
140
157
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - 91 + + ( + COUNT( * ) ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 91 + + ( + COUNT ( * ) ) FROM tab0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL CAST( NULL AS SIGNED ) * + 23 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL CAST ( NULL AS INTEGER ) * + 23 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 3 + 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT col2 DIV 66 * + 9 AS col1 FROM tab0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-3360
SELECT col2 / 66 * + 9 AS col1 FROM tab0
----
0
0
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + col2 * - - col0 * + col1 )
----

query I rowsort
SELECT - 19 + - col1 FROM tab2 AS cor0
----
-70
-86
-96

query I rowsort
SELECT + col2 + 19 FROM tab1 AS cor0
----
115
78
87

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-94

query I rowsort
SELECT - 76 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <= col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT + COUNT( * ) * 27 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + COUNT ( * ) * 27 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL COUNT( - + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL COUNT ( - + col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - ( - ( - - col2 ) ) * - 21 + - 77 FROM tab1 AS cor0
----
-1316
-1505
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + 5 * + COUNT( * ) col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3370
SELECT ALL + 5 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3371
SELECT - 93, CAST( NULL AS SIGNED ) / + + col0 AS col2 FROM tab0 AS cor0
----
-93
NULL
-93
NULL
-93
NULL

skipif mysql # not compatible
query II rowsort label-3371
SELECT - 93, CAST ( NULL AS INTEGER ) / + + col0 AS col2 FROM tab0 AS cor0
----
-93
NULL
-93
NULL
-93
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + MAX( col2 ) DIV - 64 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + MAX ( col2 ) / - 64 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - + ( + + 72 ) AS col0 FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT + MIN( ALL + + ( + 35 ) ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT + MIN ( ALL + + ( + 35 ) ) AS col2 FROM tab0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col0 FROM tab0
----
33
33
33

query I rowsort
SELECT DISTINCT col2 * + ( - + ( - col2 ) ) FROM tab2
----
1600
3364
529

query I rowsort
SELECT + 97 AS col2 FROM tab2 cor0
----
97
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 <= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL 15 + - 15 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - 14 FROM tab0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT + MAX( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3381
SELECT + MAX ( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab1 AS cor0 WHERE NULL < - col1
----

query II rowsort
SELECT col2, col1 + + 17 FROM tab2 AS cor0
----
23
68
40
94
58
84

query I rowsort
SELECT - + 46 * - col0 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT ALL 8 + - 63 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> - - col0
----

query I rowsort
SELECT ALL - 91 + - 37 FROM tab2 AS cor0 WHERE NOT 5 * - col0 NOT BETWEEN + - col1 + - ( col2 ) AND + ( - col0 )
----

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0, tab2 cor0
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 col2, col0 * 32 * - 8 AS col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT - col0 + + col0 - col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col2 * - 67 + - ( + col1 ) AS col0 FROM tab0
----
-3230
-6634
-691

query II rowsort
SELECT col1 AS col0, - col0 FROM tab2 AS cor0 WHERE col2 * - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + COUNT( * ) * + 44 AS col2 FROM tab0 cor0
----
132

skipif mysql # not compatible
query I rowsort label-3394
SELECT + COUNT ( * ) * + 44 AS col2 FROM tab0 cor0
----
132

query I rowsort
SELECT DISTINCT ( - col2 ) * + 50 - + + 13 * - col0 * 73 AS col1 FROM tab0 AS cor0
----
11885
82063
87103

onlyif mysql # aggregate syntax: 
query III rowsort label-3396
SELECT ALL COUNT( * ) AS col0, - 21 AS col2, + MAX( - - 82 ) FROM tab0
----
3
-21
82

skipif mysql # not compatible
query III rowsort label-3396
SELECT ALL COUNT ( * ) AS col0, - 21 AS col2, + MAX ( - - 82 ) FROM tab0
----
3
-21
82

query II rowsort
SELECT ALL - 53 AS col0, col0 * + col0 AS col1 FROM tab2
----
-53
2116
-53
4096
-53
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - COUNT( DISTINCT + + 36 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT - COUNT ( DISTINCT + + 36 ) FROM tab2
----
-1

query I rowsort
SELECT ( col0 ) * ( col0 ) AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL col0 * - col1 * - col0 AS col0 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query II rowsort label-3401
SELECT + 36 AS col1, COUNT( * ) + - - 15 col0 FROM tab2
----
36
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3401
SELECT + 36 AS col1, COUNT ( * ) + - - 15 col0 FROM tab2
----
36
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + MIN( - - 20 ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + MIN ( - - 20 ) AS col0 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE 50 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE 50 IS NOT NULL
----
3

query I rowsort
SELECT ALL - ( + + col1 ) * - ( - + col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT DISTINCT + col2 DIV - col2 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT + col2 / - col2 AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT - + COUNT( col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3407
SELECT - + COUNT ( col2 ) FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + col2 col0, col1 * - - 90 col2 FROM tab2 AS cor0
----
0
4590
0
6030
0
6930

query II rowsort
SELECT ALL - col1 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT SUM( - - col2 ) FROM tab2 AS cor0 WHERE - CAST( + - col2 AS SIGNED ) * + 20 + col0 BETWEEN - col0 AND + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT SUM ( - - col2 ) FROM tab2 AS cor0 WHERE - CAST ( + - col2 AS INTEGER ) * + 20 + col0 BETWEEN - col0 AND + 34
----
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL + MIN( - + ( + + 30 ) ) + + - COUNT( * ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + MIN ( - + ( + + 30 ) ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL - 24 + - + col0 FROM tab2 AS cor0
----
-70
-88
-99

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 - + 59 FROM tab2
----
46
-110
64
-136
75
-126

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + + col2
----

query II rowsort
SELECT + col0 AS col2, - 47 AS col2 FROM tab2
----
46
-47
64
-47
75
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) - + + col2 * col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL - + col1 + - col2 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3420
SELECT ALL - CAST( - col0 AS SIGNED ) - - 65 AS col1, + 51 FROM tab1 AS cor0
----
116
51
150
51
156
51

skipif mysql # not compatible
query II rowsort label-3420
SELECT ALL - CAST ( - col0 AS INTEGER ) - - 65 AS col1, + 51 FROM tab1 AS cor0
----
116
51
150
51
156
51

query II rowsort
SELECT DISTINCT + + col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL + - col2 AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - 19 AS col1 FROM tab1 AS cor0 WHERE NOT 79 + + col0 IS NULL
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT COUNT( DISTINCT - 75 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3424
SELECT COUNT ( DISTINCT - 75 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL 86 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + ( - 34 ) + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query II rowsort
SELECT - 44 * - col0 AS col2, - col0 FROM tab0 AS cor0
----
3828
-87
4268
-97
660
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT COUNT( + 92 ) * + 85 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3428
SELECT COUNT ( + 92 ) * + 85 FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + SUM( ALL col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3429
SELECT + SUM ( ALL col0 ) AS col1 FROM tab1 cor0
----
227

query I rowsort
SELECT ALL + - 25 * - col1 FROM tab1 AS cor0
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL ( - MIN( DISTINCT - 66 ) ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL ( - MIN ( DISTINCT - 66 ) ) AS col2 FROM tab0 AS cor0
----
66

query II rowsort
SELECT - + ( col0 ), col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT 33 * - + 6 AS col2 FROM tab2
----
-198
-198
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT 79 + - MAX( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN - col2 + 77 - - col1 + + col2 * + + 82 AND NULL
----
4

skipif mysql # not compatible
query I rowsort label-3434
SELECT 79 + - MAX ( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN - col2 + 77 - - col1 + + col2 * + + 82 AND NULL
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3435
SELECT DISTINCT - COUNT( * ) DIV + 4 + 41 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - COUNT ( * ) / + 4 + 41 FROM tab1
----
41

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT 18 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col0 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + + 6 + 38 * - MIN( DISTINCT + 85 ) FROM tab1 AS cor0
----
-3224

skipif mysql # not compatible
query I rowsort label-3438
SELECT + + 6 + 38 * - MIN ( DISTINCT + 85 ) FROM tab1 AS cor0
----
-3224

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT DISTINCT col2 DIV + col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT col2 / + col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - - COUNT( * ) + - + 26 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3440
SELECT - - COUNT ( * ) + - + 26 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab2 WHERE - 54 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL <= + - col2 )
----

query I rowsort
SELECT + col0 * 51 * 37 FROM tab2 AS cor0
----
120768
141525
86802

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - + SUM( DISTINCT + col1 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - + SUM ( DISTINCT + col1 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT col2 - + 64 + + + col0 FROM tab2 cor0
----
40
5
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT DISTINCT col0 + + 26 DIV - col2 FROM tab0 AS cor0
----
15
85
97

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT col0 + + 26 / - col2 FROM tab0 AS cor0
----
15
85
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3448
SELECT DISTINCT col1 AS col2, CAST( NULL AS SIGNED ) + col1 / 94 AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3448
SELECT DISTINCT col1 AS col2, CAST ( NULL AS INTEGER ) + col1 / 94 AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT IN ( - - 77 * + col0 * - col0, + col0, + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT - + MAX( ALL + 16 ) + + - 79 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - + MAX ( ALL + 16 ) + + - 79 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + ( 70 ) + + - 50 FROM tab2
----
20
20
20

query I rowsort
SELECT - ( - - col2 ) + col0 FROM tab2
----
17
23
24

query I rowsort
SELECT - 9 + 45 + ( - 46 ) AS col2 FROM tab1
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT + 27 DIV - col0 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3454
SELECT + 27 / - col0 col0 FROM tab0
----
-1
0
0

query II rowsort
SELECT - + col0 * col0, 27 * - + ( + col1 ) AS col1 FROM tab1 cor0
----
-2601
-378
-7225
-135
-8281
-1269

query II rowsort
SELECT ALL + 82 AS col0, + 79 + + col1 AS col0 FROM tab2
----
82
130
82
146
82
156

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + 56 AND - 60
----

query I rowsort
SELECT - 2 * + + 20 * + col2 FROM tab2 cor0
----
-1600
-2320
-920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - SUM( ALL col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - SUM ( ALL col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT + col0 * - 21 * + col2 AS col2, - col0 + + 11 + - col0 AS col0, - + col2 * - col0 + + - col1 + + 61 AS col2 FROM tab2 AS cor0
----
9 values hashing to 32634dfc4672077720d59e6c49a824cf

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - - ( - + SUM( DISTINCT - col0 ) ) + - - COUNT( * ) FROM tab2 cor0
----
188

skipif mysql # not compatible
query I rowsort label-3462
SELECT - - ( - + SUM ( DISTINCT - col0 ) ) + - - COUNT ( * ) FROM tab2 cor0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT 2 + COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-3463
SELECT 2 + COUNT ( * ) FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL 98 + + - CAST( + - col0 AS SIGNED ) FROM tab1
----
149
183
189

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 98 + + - CAST ( + - col0 AS INTEGER ) FROM tab1
----
149
183
189

query I rowsort
SELECT DISTINCT + 85 * col2 FROM tab2
----
1955
3400
4930

query I rowsort
SELECT ALL - ( - col1 ) * - col0 * - ( + col2 ) + + + 46 AS col2 FROM tab1
----
25121
290882
68590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3468
SELECT COUNT( ALL + + col1 ) AS col2, - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3468
SELECT COUNT ( ALL + + col1 ) AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT MAX( + ( col1 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3469
SELECT MAX ( + ( col1 ) ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + COUNT( * ) + - 92 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + COUNT ( * ) + - 92 FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL COUNT( DISTINCT + + CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL COUNT ( DISTINCT + + CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT DISTINCT col2 * - 22 + - col2 + - CAST( col0 AS SIGNED ) + + + col0 AS col2 FROM tab2 AS cor0
----
-1334
-529
-920

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT col2 * - 22 + - col2 + - CAST ( col0 AS INTEGER ) + + + col0 AS col2 FROM tab2 AS cor0
----
-1334
-529
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL - - 18 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - - 18 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT + 75 DIV + + col0 AS col1 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + 75 / + + col0 AS col1 FROM tab0
----
0
5

query I rowsort
SELECT ALL col2 * + - 77 AS col2 FROM tab0
----
-3619
-7623
-770

query I rowsort
SELECT DISTINCT col1 + col1 + ( - col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + COUNT( * ) * + - SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + COUNT ( * ) * + - SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-309

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT ALL col1 DIV - + col0 - 93 AS col0 FROM tab2
----
-93
-94
-94

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL col1 / - + col0 - 93 AS col0 FROM tab2
----
-93
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT ALL 71 DIV ( - 98 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL 71 / ( - 98 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL NOT BETWEEN - col1 * col2 AND + - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + COUNT( 91 ) - + - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3482
SELECT + COUNT ( 91 ) - + - COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - MAX( DISTINCT - - 13 ) AS col2 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - MAX ( DISTINCT - - 13 ) AS col2 FROM tab1
----
-13

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 AND - + col1
----

query I rowsort
SELECT ALL ( - 96 ) AS col2 FROM tab2
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3486
SELECT DISTINCT - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT + 84 DIV 92 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + 84 / 92 AS col0 FROM tab2
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col1 col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + 50 * - COUNT( * ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3490
SELECT + 50 * - COUNT ( * ) FROM tab0 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT + SUM( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + SUM ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3492
SELECT + - CAST( NULL AS DECIMAL ) col2 FROM tab2 WHERE NOT 29 + + ( col2 ) * - col2 / 72 + - 80 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT + - CAST ( NULL AS REAL ) col2 FROM tab2 WHERE NOT 29 + + ( col2 ) * - col2 / 72 + - 80 IS NOT NULL
----

query II rowsort
SELECT + 69 AS col2, + 46 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
69
46
69
46
69
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3494
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-3494
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT - - col1 DIV 61 + - col1 * col0 * + col0 FROM tab2 AS cor0
----
-107916
-315391
-376874

skipif mysql # not compatible
query I rowsort label-3495
SELECT - - col1 / 61 + - col1 * col0 * + col0 FROM tab2 AS cor0
----
-107916
-315391
-376874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3496
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + COUNT( * ) * + 73 + - MIN( ALL 29 ) FROM tab1 cor0
----
190

skipif mysql # not compatible
query I rowsort label-3497
SELECT + COUNT ( * ) * + 73 + - MIN ( ALL 29 ) FROM tab1 cor0
----
190

query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - + 29 + col0 + + col0 / 10 < NULL
----

query I rowsort
SELECT ALL col2 + + 36 * col0 * - 58 FROM tab1
----
-106392
-177421
-189940

query I rowsort
SELECT DISTINCT + 51 + + col1 AS col1 FROM tab2
----
102
118
128

query II rowsort
SELECT ALL + col0 + - + col2 * 36 AS col0, + col1 * - 13 FROM tab1
----
-2039
-65
-2357
-611
-3405
-182

query I rowsort
SELECT ALL - col0 + - 80 FROM tab1 AS cor0
----
-131
-165
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT - 41 + + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - 41 + + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + col1 + + + col0 + col1 FROM tab0 AS cor0
----
-333
-6465
97

query I rowsort
SELECT + col1 + + 71 AS col2 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT - col2 - + col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT - ( - 96 ) * - CAST( NULL AS SIGNED ) - 43 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT - ( - 96 ) * - CAST ( NULL AS INTEGER ) - 43 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL - col0 - + 46 DIV + 90 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - col0 - + 46 / + 90 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + ( - 7 ) + - col0 FROM tab2 AS cor0
----
-53
-71
-82

query I rowsort
SELECT DISTINCT + 79 - + col1 FROM tab1 AS cor0
----
32
65
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3512
SELECT DISTINCT - 92 DIV + - MIN( + + col0 ) AS col2, COUNT( * ) * - 96 AS col1 FROM tab0
----
6
-288

skipif mysql # not compatible
query II rowsort label-3512
SELECT DISTINCT - 92 / + - MIN ( + + col0 ) AS col2, COUNT ( * ) * - 96 AS col1 FROM tab0
----
6
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - MIN( 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - MIN ( 74 ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT + 21 FROM tab2 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT COUNT( * ) * + ( + 23 ) * - 39 FROM tab1
----
-2691

skipif mysql # not compatible
query I rowsort label-3515
SELECT COUNT ( * ) * + ( + 23 ) * - 39 FROM tab1
----
-2691

query I rowsort
SELECT col1 * + + 63 AS col2 FROM tab2
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT 85 * + COUNT( * ) AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-3517
SELECT 85 * + COUNT ( * ) AS col2 FROM tab0
----
255

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT DISTINCT + COUNT( * ), - 25 AS col1 FROM tab0
----
3
-25

skipif mysql # not compatible
query II rowsort label-3518
SELECT DISTINCT + COUNT ( * ), - 25 AS col1 FROM tab0
----
3
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT DISTINCT + CAST( col1 AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0 WHERE - col1 - - 42 + col0 IS NOT NULL
----
162
2
42

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0 WHERE - col1 - - 42 + col0 IS NOT NULL
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT - + ( - MIN( ALL + + col1 ) ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT - + ( - MIN ( ALL + + col1 ) ) AS col2 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98 AS col1, col0 col2 FROM tab1 AS cor0
----
-98
51
-98
85
-98
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3524
SELECT - ( + col0 ) AS col2, + col2 DIV 62 FROM tab1
----
-51
1
-85
0
-91
1

skipif mysql # not compatible
query II rowsort label-3524
SELECT - ( + col0 ) AS col2, + col2 / 62 FROM tab1
----
-51
1
-85
0
-91
1

query I rowsort
SELECT ALL + 50 * - - col0 + - col1 * - 94 AS col0 FROM tab0 AS cor0
----
4944
6324
8364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT ALL + - CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 BETWEEN + col0 AND NULL
----

query II rowsort
SELECT ALL + 53, col1 AS col0 FROM tab0 AS cor0
----
53
1
53
21
53
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT - + 19 * + - 25 + CAST( - 70 AS SIGNED ) FROM tab2 AS cor0
----
405
405
405

skipif mysql # not compatible
query I rowsort label-3529
SELECT - + 19 * + - 25 + CAST ( - 70 AS INTEGER ) FROM tab2 AS cor0
----
405
405
405

query I rowsort
SELECT ALL - 10 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 / - - col1 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 99 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( col2 ), - col2 * + col0 AS col1 FROM tab2
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT ALL 20 + - + col0 FROM tab1
----
-31
-65
-71

query I rowsort
SELECT ALL - col0 * + col0 + - + col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
-2162
-4160
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT MAX( + + CAST( NULL AS SIGNED ) ) * MAX( DISTINCT col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT MAX ( + + CAST ( NULL AS INTEGER ) ) * MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + MAX( ALL + 45 ) col0 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3536
SELECT + MAX ( ALL + 45 ) col0 FROM tab2
----
45

query I rowsort
SELECT + col1 * + + 9 * + col1 FROM tab2
----
23409
40401
53361

query I rowsort
SELECT ALL ( - ( + - 48 ) ) FROM tab1
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3539
SELECT 94 * + + 89 * + 56, col0 * - 11 * + 10 AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * + 75 * - col1 * 4 * + - col0 BETWEEN NULL AND 47 - + + 64
----

skipif mysql # not compatible
query II rowsort label-3539
SELECT 94 * + + 89 * + 56, col0 * - 11 * + 10 AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * + 75 * - col1 * 4 * + - col0 BETWEEN NULL AND 47 - + + 64
----

query I rowsort
SELECT col0 - - + 76 * ( + + col2 ) FROM tab0 cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 98 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 78 * col1 FROM tab0
----
1638
6318
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3543
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT - + CAST( + - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - col1 * + + 99 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT + COUNT( * ) * - MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT MAX( ALL + 34 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3547
SELECT MAX ( ALL + 34 ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT + + ( 76 ) AS col0 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ALL 25 * 3 * - ( - - col1 ) FROM tab0 AS cor0
----
-1575
-6075
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3550
SELECT - col1, + CAST( - col0 AS SIGNED ) * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-51
2116
-67
5625
-77
4096

skipif mysql # not compatible
query II rowsort label-3550
SELECT - col1, + CAST ( - col0 AS INTEGER ) * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-51
2116
-67
5625
-77
4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 30 ) * - col1 + - col2 + - col2 + + col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + MIN( ALL - - 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3552
SELECT + MIN ( ALL - - 13 ) FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + + ( + ( + - MAX( ALL + 14 ) ) ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3553
SELECT + + ( + ( + - MAX ( ALL + 14 ) ) ) FROM tab1 AS cor0
----
-14

query I rowsort
SELECT DISTINCT col0 * + 36 * - 28 FROM tab2
----
-46368
-64512
-75600

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + col1 <> + 97 + - - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT BETWEEN NULL AND - - 87
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE col1 + - + col2 IN ( + + col0, col1, - - col2, - - 39, - col2, col2 + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 11 * + col1 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT + - 7 DIV + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT + - 7 / + + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3562
SELECT + col1 AS col2, col0 DIV + 29 AS col1 FROM tab2 AS cor0
----
51
1
67
2
77
2

skipif mysql # not compatible
query II rowsort label-3562
SELECT + col1 AS col2, col0 / + 29 AS col1 FROM tab2 AS cor0
----
51
1
67
2
77
2

query I rowsort
SELECT - ( - 1 ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 1 * - - col0 AS col2 FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT col0, 34 AS col0 FROM tab0
----
15
34
87
34
97
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT - col2 DIV + - ( + 33 ) + col1 AS col1 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-3566
SELECT - col2 / + - ( + 33 ) + col1 AS col1 FROM tab2
----
51
68
78

query I rowsort
SELECT 63 + - 47 AS col2 FROM tab2
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT DISTINCT CAST( + ( + - 26 ) AS SIGNED ) + - 56 - - col0 AS col2 FROM tab0
----
-67
15
5

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT CAST ( + ( + - 26 ) AS INTEGER ) + - 56 - - col0 AS col2 FROM tab0
----
-67
15
5

query I rowsort
SELECT col0 + + + 75 FROM tab1
----
126
160
166

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT DISTINCT + col0 * - - 89 + - 49 * - + col0 + col0 DIV + - col0 FROM tab0
----
12005
13385
2069

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + col0 * - - 89 + - 49 * - + col0 + col0 / + - col0 FROM tab0
----
12005
13385
2069

query I rowsort
SELECT ALL + 47 + - - 55 * - - col1 * - - col2 AS col0 FROM tab2 AS cor0
----
169447
213777
64562

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( * ) + - - 62 + 57 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
119

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( * ) + - - 62 + 57 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
119

query I rowsort
SELECT ALL - - 68 FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL + 93 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + 93 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT DISTINCT CAST( + 19 AS SIGNED ) - + 79 * - + 89 AS col2 FROM tab2 cor0
----
7050

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT CAST ( + 19 AS INTEGER ) - + 79 * - + 89 AS col2 FROM tab2 cor0
----
7050

query I rowsort
SELECT DISTINCT + ( + - ( + col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE 76 BETWEEN - 8 * 9 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > - 41 * - 15
----

query I rowsort
SELECT DISTINCT col0 * 14 + + col1 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + ( + col1 ) >= + - col0 + col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3580
SELECT - CAST( + col0 AS SIGNED ), - col1 AS col2 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

skipif mysql # not compatible
query II rowsort label-3580
SELECT - CAST ( + col0 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 91 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 91 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab2 WHERE - col2 + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE - col2 + col2 < NULL
----
0

query I rowsort
SELECT DISTINCT 31 * + col2 / - col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col1, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - 8 * + 68 AS col0 FROM tab0
----
-544
-544
-544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT + 54 * + col0 AS col2 FROM tab1
----
2754
4590
4914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT DISTINCT - COUNT( * ) DIV SUM( - 84 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - COUNT ( * ) / SUM ( - 84 ) FROM tab2
----
0

query I rowsort
SELECT - 21 * + col0 AS col2 FROM tab2
----
-1344
-1575
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL + MAX( DISTINCT + + col1 ) col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3591
SELECT ALL + MAX ( DISTINCT + + col1 ) col0 FROM tab2 cor0
----
77

query I rowsort
SELECT col1 FROM tab2 WHERE NULL < ( 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 - col1 ) <> NULL
----

query I rowsort
SELECT ALL - 49 * + col2 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT ALL col0 + - ( + col2 ) * - 26 AS col2 FROM tab1
----
1619
1859
2547

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + 79 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT - ( 74 ) * COUNT( CAST( NULL AS SIGNED ) / 71 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT - ( 74 ) * COUNT ( CAST ( NULL AS INTEGER ) / 71 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 61 * col0 AS col2 FROM tab1
----
3111
5185
5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT MIN( - CAST( NULL AS SIGNED ) ) * 99 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) * 99 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL 6 + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL 6 + COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( 91 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN ( 1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT COUNT( * ) + + 48 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( * ) + + 48 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT MAX( ALL - 26 ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT MAX ( ALL - 26 ) AS col2 FROM tab0
----
-26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 32 / - 54 ) < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col2 + 43 FROM tab2
----
1643
3407
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 + col0 col1 FROM tab2
----
-18
-29
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + col1 col0 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT ALL + col0 - + 69 AS col0 FROM tab0
----
-54
18
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT 77 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND 21 / + CAST( 91 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT 77 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND 21 / + CAST ( 91 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL col2 + - col0 DIV 71 FROM tab1 cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL col2 + - col0 / 71 FROM tab1 cor0
----
58
67
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 25 * + col0 + + 64 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - 46 NOT IN ( 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT MIN( ALL - col2 ) + 30 AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT MIN ( ALL - col2 ) + 30 AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT ALL 9 FROM tab0 AS cor0 WHERE col1 IN ( col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - COUNT( * ) - + 17 AS col2 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - COUNT ( * ) - + 17 AS col2 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 BETWEEN ( 83 ) AND + col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT DISTINCT - COUNT( 47 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT - COUNT ( 47 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL - MIN( 64 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
-64

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - MIN ( 64 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
-64

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 36 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 79 + - col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT CAST( col2 AS SIGNED ) * 16 FROM tab0 AS cor0
----
1584
160
752

skipif mysql # not compatible
query I rowsort label-3624
SELECT CAST ( col2 AS INTEGER ) * 16 FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT - COUNT( * ) DIV - 89 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT - COUNT ( * ) / - 89 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 73 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 ) > col2
----
73
73
73

query I rowsort
SELECT - 93 * + col2 AS col2 FROM tab1 AS cor0
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3628
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT + ( - MIN( 2 ) ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + ( - MIN ( 2 ) ) FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT - AVG ( 54 ) AS col2 FROM tab0 WHERE NOT 33 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 70 * - col0 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT + 44 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN col0 AND ( + col1 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3634
SELECT DISTINCT - COUNT( - CAST( NULL AS DECIMAL ) ) * 13 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - COUNT ( - CAST ( NULL AS REAL ) ) * 13 FROM tab2
----
0

query I rowsort
SELECT + col2 * col0 - - 69 * + 22 AS col0 FROM tab0 WHERE NOT - col0 + col1 IS NULL
----
11121
2223
2388

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3636
SELECT ALL * FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3636
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 66 * - col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - ( - 30 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3640
SELECT 32 + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL AND NOT ( + col0 * CAST( NULL AS DECIMAL ) - - 6 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT 32 + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL AND NOT ( + col0 * CAST ( NULL AS REAL ) - - 6 ) IS NOT NULL
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 52 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) < ( 33 )
----

query I rowsort
SELECT DISTINCT - 2 + 48 + - 40 AS col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + + ( - col1 ) + col0 + - col2 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT DISTINCT - 22 + col2 AS col1 FROM tab0 AS cor0
----
-12
25
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 38 < - 70 + + 8
----

query I rowsort
SELECT ALL + + col0 - - 15 + 91 * + col2 * col1 FROM tab2 AS cor0
----
106804
280359
353716

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT + 52 + + + COUNT( ALL + - ( col1 ) ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT + 52 + + + COUNT ( ALL + - ( col1 ) ) FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) + + 38 * + MIN( DISTINCT - col2 + col0 ) col2 FROM tab2 AS cor0
----
655

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3649
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + + 38 * + MIN ( DISTINCT - col2 + col0 ) col2 FROM tab2 AS cor0
----
655

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 19 <= - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 72 BETWEEN + col2 + + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3652
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( + col1 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3652
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( + col1 AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT ALL col2 * - + 65 + - 79 * 8 FROM tab1 AS cor0
----
-4467
-5052
-6872

query I rowsort
SELECT DISTINCT - + col2 * col0 AS col1 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - 70 + - - COUNT( * ) * - 48 * 66 col2 FROM tab0 cor0
----
-9574

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3655
SELECT - 70 + - - COUNT ( * ) * - 48 * 66 col2 FROM tab0 cor0
----
-9574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3656
SELECT - MIN( - ( CAST( 83 AS DECIMAL ) ) ) / + 79 + + COUNT( * ) * - 53 AS col1 FROM tab0 WHERE ( + col1 - + - col1 - col2 * - col0 ) >= ( 29 + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - MIN ( - ( CAST ( 83 AS REAL ) ) ) / + 79 + + COUNT ( * ) * - 53 AS col1 FROM tab0 WHERE ( + col1 - + - col1 - col2 * - col0 ) >= ( 29 + + CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 90 BETWEEN col1 + + col0 AND + 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT ALL 10 DIV - - col1 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL 10 / - - col1 AS col0 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT + 65 + + SUM( ALL + + col0 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + 65 + + SUM ( ALL + + col0 ) FROM tab0
----
264

query I rowsort
SELECT 84 / - 43 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + col0 + col1 FROM tab1
----
-4882
-5010
-6141

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 + col2 >= - col1
----
87
21
10

query I rowsort
SELECT - col0 * col0 * - - col2 + - - ( col1 ) AS col0 FROM tab0
----
-10494
-75669
-931490

query I rowsort
SELECT DISTINCT + col1 * - 63 + - 34 + col0 AS col2 FROM tab2
----
-3201
-4180
-4821

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL + MAX( DISTINCT 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + MAX ( DISTINCT 9 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + - COUNT( 12 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3666
SELECT + - COUNT ( 12 ) FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT + - 38 DIV + col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3667
SELECT + - 38 / + col2 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - 12 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN ( NULL ) AND + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT DISTINCT 23 DIV - col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT 23 / - col0 FROM tab0
----
-1
0

query I rowsort
SELECT ALL 2 FROM tab2 WHERE NOT - col1 IN ( - col1 )
----

query I rowsort
SELECT + col1 + 18 * + col0 AS col2 FROM tab1 WHERE NOT - ( + + col1 ) IS NULL
----
1535
1685
932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3673
SELECT + ( ( 95 ) ) col2, CAST( 58 AS SIGNED ) FROM tab2
----
95
58
95
58
95
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3673
SELECT + ( ( 95 ) ) col2, CAST ( 58 AS INTEGER ) FROM tab2
----
95
58
95
58
95
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT ( CAST( + ( - + 8 ) AS SIGNED ) * - + col0 + col2 + ( col0 ) ) > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3674
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( + ( - + 8 ) AS INTEGER ) * - + col0 + col2 + ( col0 ) ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT DISTINCT + 32 * + MIN( DISTINCT - col1 - + CAST( NULL AS SIGNED ) * 8 ) col2 FROM tab2 cor0 WHERE NOT col0 * + CAST( - 83 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3675
SELECT DISTINCT + 32 * + MIN ( DISTINCT - col1 - + CAST ( NULL AS INTEGER ) * 8 ) col2 FROM tab2 cor0 WHERE NOT col0 * + CAST ( - 83 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + - COUNT( * ) * MAX( DISTINCT 5 ) + + - 95 FROM tab1 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + - COUNT ( * ) * MAX ( DISTINCT 5 ) + + - 95 FROM tab1 AS cor0
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3677
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL ( + - 17 ) AS col1 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL + col1 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 17 + - col2 IS NULL
----
-425
-4277
-714

query I rowsort
SELECT ALL + col0 - - 65 FROM tab0 AS cor0 WHERE ( 35 + - + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col1 AS col2, + ( + col0 ) col2, col2 + - col1 FROM tab0 AS cor0
----
9 values hashing to 92e1f320d27aff2c72610c10d10a4187

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2 cor0
----
45

query II rowsort
SELECT ALL - ( + ( col2 ) ) AS col2, col0 * - col1 FROM tab0 cor0
----
-10
-1827
-47
-1215
-99
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 63 * + col2 IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( - col0 * - + ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + MAX( - 62 ) AS col1 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + MAX ( - 62 ) AS col1 FROM tab2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3687
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 13 + col1 col1, 69 col0 FROM tab2
----
38
69
54
69
64
69

query II rowsort
SELECT - col2, - 3 AS col2 FROM tab0
----
-10
-3
-47
-3
-99
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 >= + 59 * + ( + 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col0, - 47 * - 5 FROM tab1
----
-26
235

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT + 25 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + 25 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
75

query II rowsort
SELECT + col0 + - + 89 AS col1, + 99 * + col2 FROM tab2
----
-14
5742
-25
3960
-43
2277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + 78 col1, - col1 AS col2 FROM tab1 AS cor0
----
125
-47
83
-5
92
-14

query I rowsort
SELECT DISTINCT - col0 + + - 82 + - - col0 * + 54 AS col2 FROM tab1 AS cor0
----
2621
4423
4741

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT COUNT( * ) - + - 41 AS col1 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT COUNT ( * ) - + - 41 AS col1 FROM tab0 cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col0 * 35 col1 FROM tab2 AS cor0
----
143360
196875
74060

query I rowsort
SELECT ALL col1 - - 31 - - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
105
115
132

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 52 ) BETWEEN 9 * col1 AND ( col1 )
----

query I rowsort
SELECT ALL - col0 * + + col1 - + + col1 + + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - COUNT( * ) * - 84 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) * - 84 FROM tab1
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT ALL col2 DIV - 2 AS col0 FROM tab0
----
-23
-49
-5

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL col2 / - 2 AS col0 FROM tab0
----
-23
-49
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + 52 * - SUM( ALL - col0 ) FROM tab2
----
9620

skipif mysql # not compatible
query I rowsort label-3704
SELECT + 52 * - SUM ( ALL - col0 ) FROM tab2
----
9620

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL - MAX( - - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - MAX ( - - col2 ) FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - + col0 * + - col0 * 30 * - 80 ) = + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 2 ) AS col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col0 * 35 * - + col1 < + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT DISTINCT - + 0 DIV - 89 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - + 0 / - 89 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT MIN( + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3710
SELECT MIN ( + col2 ) FROM tab2 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 71 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 84 * + - 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4956

query I rowsort
SELECT - + 45 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT + + ( 71 ) + col1 / + 56 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL COUNT( * ) * - - ( + COUNT( * ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL COUNT ( * ) * - - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT col2 * col0 * + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-182700
-2683935
-950697

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL - 17 DIV + col0 * + 10 + 57 AS col1 FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - 17 / + col0 * + 10 + 57 AS col1 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT - col0 - + + 80 * - - 64 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * col0 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL 5 + - - 83 * + - col1 AS col1 FROM tab1
----
-1157
-3896
-410

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab1 WHERE 37 IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT col1 + + ( + col1 ) + + 70 + + col0 * 66 * + col2 * + 17 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - 76 IN ( - - col0 * 3 )
----
0

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - 76 IN ( - - col0 * 3 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - - 65 ) AS col2 FROM tab0
----
65
65
65

query II rowsort
SELECT 40, - col2 + + col0 AS col0 FROM tab0
----
40
-2
40
-32
40
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT - 56 DIV col1 - - 23 FROM tab1 AS cor0
----
12
19
22

skipif mysql # not compatible
query I rowsort label-3726
SELECT - 56 / col1 - - 23 FROM tab1 AS cor0
----
12
19
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT + + COUNT( * ) - 16 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + + COUNT ( * ) - 16 FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT + + 80 * col1 - + - 63 + + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
1234
3914
548

skipif mysql # not compatible
query I rowsort label-3729
SELECT + + 80 * col1 - + - 63 + + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
1234
3914
548

query I rowsort
SELECT ALL + 4 + col1 FROM tab1 AS cor0
----
18
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT + AVG ( ALL col2 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT + AVG ( ALL col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3732
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3732
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, 64 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL + col2 - + + 70 DIV 6 AS col2 FROM tab2
----
12
29
47

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + col2 - + + 70 / 6 AS col2 FROM tab2
----
12
29
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col0 * col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + COUNT( * ) * + - MAX( + ( + col0 ) ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-3737
SELECT + COUNT ( * ) * + - MAX ( + ( + col0 ) ) FROM tab0
----
-291

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 * - col2 AS col1 FROM tab2
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * col0 col1 FROM tab0
----
-1035
-6003
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT + CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT + 30 <> ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3740
SELECT + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT + 30 <> ( + col1 )
----

query I rowsort
SELECT - ( 83 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT + col1 DIV + - col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + col1 / + - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 + 28 AS col2 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT ALL - 0 DIV + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - 0 / + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 * + col0 >= + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 / + col1 AND NULL
----

query II rowsort
SELECT DISTINCT + + col1 AS col0, col1 - - + col2 * col2 AS col1 FROM tab1 AS cor0
----
14
9230
47
4671
5
3486

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + 10 * + 89 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT MAX( ALL - col1 ) + + 1 * + COUNT( * ) * + SUM( 15 ) FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-3749
SELECT MAX ( ALL - col1 ) + + 1 * + COUNT ( * ) * + SUM ( 15 ) FROM tab0
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT col1 DIV 79 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT col1 / 79 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 + + 75 FROM tab1
----
134
143
171

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + SUM( col1 ) * - 59 AS col2 FROM tab0
----
-6077

skipif mysql # not compatible
query I rowsort label-3753
SELECT + SUM ( col1 ) * - 59 AS col2 FROM tab0
----
-6077

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3754
SELECT - - MIN( ALL - - CAST( NULL AS DECIMAL ) ) + COUNT( DISTINCT + 69 ) col2, - 47 + - - MAX( ALL - - 34 ) + - 8 * + - 20 AS col1 FROM tab0 AS cor0
----
NULL
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3754
SELECT - - MIN ( ALL - - CAST ( NULL AS REAL ) ) + COUNT ( DISTINCT + 69 ) col2, - 47 + - - MAX ( ALL - - 34 ) + - 8 * + - 20 AS col1 FROM tab0 AS cor0
----
NULL
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 92 col1 FROM tab0
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + COUNT( * ) FROM tab1 WHERE - + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT + COUNT ( * ) FROM tab1 WHERE - + col0 <> NULL
----
0

query I rowsort
SELECT + 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3758
SELECT + - COUNT( * ) + - AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT + - COUNT ( * ) + - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT ALL + - 33 + col1 * + col2 * col2 FROM tab1 AS cor0
----
128991
17372
217295

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT + SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) >= - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) >= - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + COUNT( DISTINCT - 33 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3761
SELECT + COUNT ( DISTINCT - 33 ) AS col0 FROM tab2
----
1

query II rowsort
SELECT ALL 20, 93 AS col1 FROM tab2
----
20
93
20
93
20
93

query I rowsort
SELECT ALL ( + - 10 ) FROM tab1
----
-10
-10
-10

query II rowsort
SELECT + 81, 3 AS col2 FROM tab2
----
81
3
81
3
81
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + 35 / + - col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55 AS col0, + col0 * + + col0 * 54 * col2 col1 FROM tab2
----
-55
17617500
-55
2628072
-55
8847360

query II rowsort
SELECT + 17, + ( + - col2 ) AS col1 FROM tab0
----
17
-10
17
-47
17
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 32 AS col0 FROM tab0 AS cor0
----
-32

query II rowsort
SELECT col1 AS col1, ( + + col1 ) * - col2 + + col1 FROM tab1 AS cor0
----
14
-1330
47
-3149
5
-290

query II rowsort
SELECT - - 37 AS col1, - col0 FROM tab2 AS cor0
----
37
-46
37
-64
37
-75

query I rowsort
SELECT ALL + 66 * + col1 * + + 25 AS col0 FROM tab0
----
133650
1650
34650

query I rowsort
SELECT + + 87 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT - col1 * + - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-3775
SELECT - col1 * + - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + - col0 * + 91 * - + 15 AS col0 FROM tab2 AS cor0
----
102375
62790
87360

query I rowsort
SELECT 15 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT 44 DIV + + COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3778
SELECT 44 / + + COUNT ( * ) FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT - - ( + + col2 ) * - 51 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT - - ( + + col2 ) * - 51 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 9 * + col2 AS col2 FROM tab0 AS cor0
----
423
891
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - MIN( - + 80 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3781
SELECT - MIN ( - + 80 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT 85 * + + 17 FROM tab1
----
1445

query I rowsort
SELECT ALL - col1 * + 62 FROM tab1
----
-2914
-310
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 83 + + ( - 29 ) - - + col0 * + ( col2 ) col1 FROM tab0
----
2584
7399
9657

query II rowsort
SELECT col0 + - + col0 * + - col0 AS col2, - col2 - + col2 * + 2 AS col2 FROM tab0
----
240
-141
7656
-30
9506
-297

query I rowsort
SELECT - 51 + + col2 FROM tab1 AS cor0
----
17
45
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT - 55 + - MIN( ALL - - CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3787
SELECT - 55 + - MIN ( ALL - - CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL col2 - + ( - 7 ) + + + 70 * + + col1 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL col2 - + ( - 7 ) + + + 70 * + + col1 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 18 + + 54 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT - COUNT( - col0 ) * + + MIN( - col2 ) + + 7 + + COUNT( col1 ) FROM tab1 AS cor0
----
298

skipif mysql # not compatible
query I rowsort label-3790
SELECT - COUNT ( - col0 ) * + + MIN ( - col2 ) + + 7 + + COUNT ( col1 ) FROM tab1 AS cor0
----
298

query I rowsort
SELECT DISTINCT - col0 + ( - 70 ) - - col1 AS col2 FROM tab2 AS cor0
----
-57
-65
-78

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT ALL 58 DIV - col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 58 / - col0 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT - 16 * col0 * + - col2 - col2 FROM tab1
----
78240
80181
98940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 50 ) col2 FROM tab0 cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 1 > 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL + SUM( - - ( - 93 ) ) AS col1 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + SUM ( - - ( - 93 ) ) AS col1 FROM tab1 AS cor0
----
-279

query I rowsort
SELECT col2 * - 51 * + - col0 AS col0 FROM tab2
----
130560
221850
53958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3799
SELECT - 57, 99 + + - CAST( NULL AS SIGNED ) + + 20 AS col0 FROM tab1
----
-57
NULL
-57
NULL
-57
NULL

skipif mysql # not compatible
query II rowsort label-3799
SELECT - 57, 99 + + - CAST ( NULL AS INTEGER ) + + 20 AS col0 FROM tab1
----
-57
NULL
-57
NULL
-57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT MIN( - CAST( + - 20 AS SIGNED ) ) * - + COUNT( * ) AS col1 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT MIN ( - CAST ( + - 20 AS INTEGER ) ) * - + COUNT ( * ) AS col1 FROM tab2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT + 46 DIV 39 + 86 * col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
4387
5763
6623

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 46 / 39 + 86 * col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
4387
5763
6623

query I rowsort
SELECT 76 * + + col1 FROM tab1
----
1064
3572
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT - 15 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT - 15 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3806
SELECT DISTINCT + MAX( ALL - CAST( - col0 AS SIGNED ) ) AS col2, ( 80 ) FROM tab1 AS cor0
----
91
80

skipif mysql # not compatible
query II rowsort label-3806
SELECT DISTINCT + MAX ( ALL - CAST ( - col0 AS INTEGER ) ) AS col2, ( 80 ) FROM tab1 AS cor0
----
91
80

query I rowsort
SELECT + 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL 76 + + col2 FROM tab2
----
116
134
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - COUNT( ( - col1 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3809
SELECT - COUNT ( ( - col1 ) ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 + 91 * + col0 col0 FROM tab2
----
4196
5834
6835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT - ( - col2 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT - ( - col2 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - 48 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT + CAST( 16 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-3813
SELECT + CAST ( 16 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + + col2 + + col0 + + + col2 + - - col0 FROM tab0 AS cor0
----
124
194
392

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 82 < - - 5
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 32 NOT BETWEEN + col0 + 55 + ( - col2 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 55 ) AS col1 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - col0 * + + 40 AS col2 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT ALL + col1 DIV + - 58 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + col1 / + - 58 AS col2 FROM tab2
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE ( + + col1 ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL COUNT( * ) * MAX( + 89 ) FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL COUNT ( * ) * MAX ( + 89 ) FROM tab1
----
267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3823
SELECT ALL 18 * - ( - + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL 18 * - ( - + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT COUNT( * ) + COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT COUNT ( * ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT SUM( ALL + - col2 ) + + - 69 AS col0 FROM tab2
----
-190

skipif mysql # not compatible
query I rowsort label-3825
SELECT SUM ( ALL + - col2 ) + + - 69 AS col0 FROM tab2
----
-190

query I rowsort
SELECT 84 * + col1 * + 64 + + + col0 AS col0 FROM tab2
----
274222
360267
414016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 24 ) col1 FROM tab0
----
24

query I rowsort
SELECT col1 / + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT 11 DIV - 89 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT 11 / - 89 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * 7 * + col2 FROM tab0 AS cor0
----
1470
26649
693

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT + COUNT( * ), COUNT( * ) + + 8 AS col1 FROM tab1 cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-3832
SELECT + COUNT ( * ), COUNT ( * ) + + 8 AS col1 FROM tab1 cor0
----
3
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT ALL - ( + MAX( - 28 ) ) col2, 17 FROM tab1 AS cor0
----
28
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3833
SELECT ALL - ( + MAX ( - 28 ) ) col2, 17 FROM tab1 AS cor0
----
28
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT DISTINCT COUNT( * ), - 48 AS col2 FROM tab2 AS cor0
----
3
-48

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT COUNT ( * ), - 48 AS col2 FROM tab2 AS cor0
----
3
-48

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col1 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3837
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3837
SELECT DISTINCT ( CAST ( NULL AS REAL ) ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT ALL - ( - col1 ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - ( - col1 ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( 6 ) ) + + - col0 AS col1 FROM tab2 AS cor0
----
-52
-70
-81

query I rowsort
SELECT ALL + + col0 * - + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT COUNT( * ) + + SUM( - - 31 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3841
SELECT COUNT ( * ) + + SUM ( - - 31 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( col0 * + col1 / col0 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT + SUM( 5 ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT + SUM ( 5 ) AS col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT - + MIN( - 69 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
69

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT - + MIN ( - 69 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
69

query I rowsort
SELECT ALL 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT 5 + - + 90 AS col1 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT + ( - - ( + + COUNT( * ) ) ) + + - COUNT( * ) * + 48 AS col1 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + ( - - ( + + COUNT ( * ) ) ) + + - COUNT ( * ) * + 48 AS col1 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT col1 - 59 FROM tab0 AS cor0
----
-38
-58
22

query I rowsort
SELECT ALL - 22 - - 53 FROM tab2
----
31
31
31

query III rowsort
SELECT * FROM tab2 WHERE - 73 - + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3851
SELECT DISTINCT col1 AS col0, CAST( 52 AS SIGNED ) FROM tab2
----
51
52
67
52
77
52

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT col1 AS col0, CAST ( 52 AS INTEGER ) FROM tab2
----
51
52
67
52
77
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3852
SELECT + col1 + - - col2 - + ( + col2 ) DIV + + CAST( - + 33 AS SIGNED ) FROM tab2
----
118
126
74

skipif mysql # not compatible
query I rowsort label-3852
SELECT + col1 + - - col2 - + ( + col2 ) / + + CAST ( - + 33 AS INTEGER ) FROM tab2
----
118
126
74

query I rowsort
SELECT ALL + 36 FROM tab1 WHERE NOT + + 91 + - ( 77 ) < NULL
----

query I rowsort
SELECT + col0 + + 63 FROM tab2
----
109
127
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT SUM( DISTINCT - 71 ) AS col0 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3855
SELECT SUM ( DISTINCT - 71 ) AS col0 FROM tab2 AS cor0
----
-71

query II rowsort
SELECT - - 79 AS col1, 53 FROM tab2 AS cor0
----
79
53
79
53
79
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL + 64 + - COUNT( * ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + 64 + - COUNT ( * ) FROM tab2 AS cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( col0, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + 61 FROM tab0
----
2867
6039
610

query II rowsort
SELECT ALL + + col1 * - 75 + - col1 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
-1064
96
-3572
68
-380
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3862
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 2, + ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 2, + ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + + col0 * - col1 * + col0 * + ( 56 ) + - - col2 + + + col1 + - col2 FROM tab1 AS cor0
----
-2022995
-2039170
-21795545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL - 60 / - col2 + + - col1 + - - CAST( NULL AS SIGNED ) * 54 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - 60 / - col2 + + - col1 + - - CAST ( NULL AS INTEGER ) * 54 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - 0 AS col1 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 19 + 66 AS col2 FROM tab0 AS cor0 WHERE NOT - 69 + 57 IN ( + + col1, 25 )
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT - col0 DIV + 6 FROM tab2 AS cor0
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-3868
SELECT - col0 / + 6 FROM tab2 AS cor0
----
-10
-12
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT - + SUM( + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - + SUM ( + + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - col2 * + - 75 + - col0 FROM tab0
----
3510
663
7328

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL COUNT( DISTINCT ( 91 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL COUNT ( DISTINCT ( 91 ) ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 + - 27 FROM tab0 AS cor0
----
-108
-28
-48

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE 35 < col0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab1 cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3875
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( CAST( + ( 17 ) AS SIGNED ) * - + 81 + - - col1, col2 * + col2, - 37, col2 )
----

skipif mysql # not compatible
query III rowsort label-3875
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( CAST ( + ( 17 ) AS INTEGER ) * - + 81 + - - col1, col2 * + col2, - 37, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT + + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + 10 * - - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + 10 * - - COUNT ( * ) FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3879
SELECT + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + SUM( + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3880
SELECT + SUM ( + - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - + 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 49 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3883
SELECT DISTINCT - col2 + - + CAST( + + col0 AS SIGNED ), - col2 FROM tab2 AS cor0 WHERE NOT ( NOT - ( + 59 ) >= + - col2 )
----

skipif mysql # not compatible
query II rowsort label-3883
SELECT DISTINCT - col2 + - + CAST ( + + col0 AS INTEGER ), - col2 FROM tab2 AS cor0 WHERE NOT ( NOT - ( + 59 ) >= + - col2 )
----

query I rowsort
SELECT DISTINCT - col1 * - col0 * 42 AS col2 FROM tab2 AS cor0
----
206976
211050
98532

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT DISTINCT - col0 DIV + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - col0 / + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT - + 73 DIV - + col1 + + col2 AS col1 FROM tab0 AS cor0
----
13
172
47

skipif mysql # not compatible
query I rowsort label-3886
SELECT - + 73 / - + col1 + + col2 AS col1 FROM tab0 AS cor0
----
13
172
47

query II rowsort
SELECT col0, - 8 FROM tab1 AS cor0
----
51
-8
85
-8
91
-8

query II rowsort
SELECT - 89 AS col1, + col0 + - 34 AS col1 FROM tab2 AS cor0
----
-89
12
-89
30
-89
41

query II rowsort
SELECT DISTINCT - 39, col2 AS col0 FROM tab0 AS cor0
----
-39
10
-39
47
-39
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col2, 33 col2 FROM tab2 AS cor0
----
51
33
67
33
77
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT - 0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT - 0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1, col0 + - - 83 * + 98 AS col0 FROM tab2 AS cor0
----
51
8180
67
8209
77
8198

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - - 29 * 2, - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 37 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT + SUM( ALL - + ( + - col2 ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + SUM ( ALL - + ( + - col2 ) ) AS col0 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT DISTINCT 80 DIV + 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT 80 / + 94 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL - 99 + + - COUNT( * ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - 99 + + - COUNT ( * ) FROM tab2 AS cor0
----
-102

query I rowsort
SELECT - col1 * col2 + - + 38 + - col0 + + - 96 + - col2 FROM tab1 cor0
----
-1625
-3489
-573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 + - 46 * col2 col1 FROM tab1 AS cor0
----
-2704
-3118
-4406

query I rowsort
SELECT DISTINCT + - ( - - col2 ) / 44 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - ( + col1 ) * 62 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3903
SELECT CAST( NULL AS DECIMAL ) AS col0, 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f8375127e19666b0cc3850200b50483f

skipif mysql # not compatible
query II rowsort label-3903
SELECT CAST ( NULL AS REAL ) AS col0, 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f8375127e19666b0cc3850200b50483f

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + 0 NOT BETWEEN ( + 43 ) AND ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL + MIN( col2 ) + + - 55 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + MIN ( col2 ) + + - 55 FROM tab1 AS cor0
----
4

query I rowsort
SELECT - col1 - + col1 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - - COUNT( * ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT 96 * COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT 96 * COUNT ( * ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT ALL - 77 - + col2 AS col2 FROM tab0
----
-124
-176
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT DISTINCT - 72 * - ( + + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab1 WHERE NOT + + col2 IS NULL
----
216

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT - 72 * - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE NOT + + col2 IS NULL
----
216

query I rowsort
SELECT ALL + 58 FROM tab1 WHERE NOT NULL IS NOT NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - MAX( DISTINCT + col1 ) * + 92 AS col2 FROM tab1 WHERE col1 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT - MAX ( DISTINCT + col1 ) * + 92 AS col2 FROM tab1 WHERE col1 < col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT 2 DIV COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT 2 / COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT COUNT( * ) * + SUM( + 6 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3914
SELECT COUNT ( * ) * + SUM ( + 6 ) AS col2 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT - 98 * - COUNT( * ) * - + 66 FROM tab1
----
-19404

skipif mysql # not compatible
query I rowsort label-3915
SELECT - 98 * - COUNT ( * ) * - + 66 FROM tab1
----
-19404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94 AS col2, + col1 * + + col0 + + col2 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - MAX( - 60 ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3917
SELECT - MAX ( - 60 ) AS col2 FROM tab0
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT + col2 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT + col2 / - + col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL + - SUM( DISTINCT - 39 ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + - SUM ( DISTINCT - 39 ) AS col2 FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col0 col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL 90 * - + 45 FROM tab2
----
-4050
-4050
-4050

query II rowsort
SELECT col1, 65 FROM tab1
----
14
65
47
65
5
65

query II rowsort
SELECT 61, + 9 AS col0 FROM tab2
----
61
9
61
9
61
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL ( - SUM( - col1 ) ) + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL ( - SUM ( - col1 ) ) + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT - + COUNT( * ) AS col1, + 7 AS col0 FROM tab2 AS cor0
----
-3
7

skipif mysql # not compatible
query II rowsort label-3926
SELECT - + COUNT ( * ) AS col1, + 7 AS col0 FROM tab2 AS cor0
----
-3
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3927
SELECT DISTINCT 95 AS col1, COUNT( * ) + + 48 AS col2 FROM tab1 AS cor0
----
95
51

skipif mysql # not compatible
query II rowsort label-3927
SELECT DISTINCT 95 AS col1, COUNT ( * ) + + 48 AS col2 FROM tab1 AS cor0
----
95
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT - col0 * + CAST( NULL AS SIGNED ) + + ( - CAST( - col2 AS SIGNED ) ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3928
SELECT - col0 * + CAST ( NULL AS INTEGER ) + + ( - CAST ( - col2 AS INTEGER ) ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3929
SELECT * FROM tab1 AS cor0 WHERE 89 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3929
SELECT * FROM tab1 AS cor0 WHERE 89 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL - + 38 + ( + COUNT( * ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - + 38 + ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-29

query II rowsort
SELECT DISTINCT col0 - - 5 AS col0, col1 AS col2 FROM tab0 AS cor0
----
102
1
20
81
92
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT ALL + 42 DIV + + col1 FROM tab0
----
0
2
42

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL + 42 / + + col1 FROM tab0
----
0
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT * FROM tab0 WHERE NOT - 55 * + - 75 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT * FROM tab0 WHERE NOT - 55 * + - 75 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT + col2 + + col1 + 78 / - + col2 * + 65 FROM tab2 AS cor0 WHERE + ( - 21 ) NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT ALL col2 AS col1, + 17 AS col0 FROM tab1 AS cor0
----
59
17
68
17
96
17

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + - col2 + - + col1 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT COUNT( ALL - 5 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT COUNT ( ALL - 5 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + COUNT( * ) * - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3941
SELECT + COUNT ( * ) * - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + ( COUNT( * ) ) * - - COUNT( * ) * + 2 AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3942
SELECT + ( COUNT ( * ) ) * - - COUNT ( * ) * + 2 AS col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT + 15 IS NULL
----
51
67
77

query II rowsort
SELECT col1 * - 61 AS col0, col1 + - + col0 + 26 AS col1 FROM tab0 AS cor0
----
-1281
-40
-4941
92
-61
-70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 < NULL OR NOT NULL < NULL
----

query I rowsort
SELECT + 60 FROM tab1 WHERE NULL IS NULL
----
60
60
60

query I rowsort
SELECT ALL - 77 * 43 AS col2 FROM tab0
----
-3311
-3311
-3311

query I rowsort
SELECT + col2 * - - 64 + + - col2 + - - col2 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT ALL + 93 FROM tab0 AS cor0 WHERE + 51 IS NOT NULL
----
93
93
93

query I rowsort
SELECT col0 / + + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + + COUNT( col1 ) + 60 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3951
SELECT + + COUNT ( col1 ) + 60 FROM tab2 AS cor0
----
63

query I rowsort
SELECT - col0 + - 51 FROM tab1 cor0
----
-102
-136
-142

query I rowsort
SELECT - col0 + + 1 AS col0 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT SUM( DISTINCT 36 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3954
SELECT SUM ( DISTINCT 36 ) FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT MAX( - + 69 ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3955
SELECT MAX ( - + 69 ) AS col0 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + 66 + + - COUNT( ALL + ( + col2 ) ) + COUNT( * ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + 66 + + - COUNT ( ALL + ( + col2 ) ) + COUNT ( * ) AS col2 FROM tab0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - COUNT( ALL + - 70 ) * + 80 AS col0 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-3958
SELECT - COUNT ( ALL + - 70 ) * + 80 AS col0 FROM tab2
----
-240

query I rowsort
SELECT col2 - - - 65 + + col0 FROM tab1
----
79
82
94

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL < 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - 94 * 87 - - COUNT( * ) FROM tab0
----
-8175

skipif mysql # not compatible
query I rowsort label-3961
SELECT - 94 * 87 - - COUNT ( * ) FROM tab0
----
-8175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 >= ( NULL )
----

query I rowsort
SELECT + + col0 - + 6 FROM tab0 AS cor0
----
81
9
91

query I rowsort
SELECT + + 50 + + col0 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT DISTINCT - 10 - - col2 FROM tab2 AS cor0
----
13
30
48

query II rowsort
SELECT ALL - + col1 + - col2, + col0 AS col1 FROM tab2 AS cor0
----
-117
64
-125
75
-74
46

query I rowsort
SELECT DISTINCT - col1 - - 77 FROM tab1 cor0
----
30
63
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3968
SELECT ALL col1, - col1 AS col1, - - col1 * + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
9 values hashing to 5d72e66ed171b070beb523aafbbe208a

skipif mysql # not compatible
query III rowsort label-3968
SELECT ALL col1, - col1 AS col1, - - col1 * + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
9 values hashing to 5d72e66ed171b070beb523aafbbe208a

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + 40 * + COUNT( * ) col1 FROM tab2
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3969
SELECT + 40 * + COUNT ( * ) col1 FROM tab2
----
120

query I rowsort
SELECT 42 / - col1 * - col0 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3971
SELECT ALL - col1 DIV col0 AS col0, 45 - - col1 FROM tab1
----
0
50
0
59
0
92

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL - col1 / col0 AS col0, 45 - - col1 FROM tab1
----
0
50
0
59
0
92

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 * + 39 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 * + 39 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ( + 80 ) DIV - MAX( DISTINCT + 96 ) * - 31 * - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT ( + 80 ) / - MAX ( DISTINCT + 96 ) * - 31 * - + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 8 + + col1 * + col2 <= 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 + - 62 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 22 >= NULL
----

query II rowsort
SELECT - + 5 * - 2, col1 FROM tab0 AS cor0
----
10
1
10
21
10
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + 45 - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-3980
SELECT + 45 - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL + SUM( - 94 ) FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + SUM ( - 94 ) FROM tab2
----
-282

query I rowsort
SELECT - + col1 * - 11 AS col1 FROM tab2 WHERE NOT + 22 IS NOT NULL
----

query II rowsort
SELECT ALL col2 + - 63 - - - 77 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-130
87
-41
97
-93
15

query II rowsort
SELECT ALL + 84 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
84
15
84
87
84
97

query I rowsort
SELECT ALL 25 + + 46 FROM tab1 AS cor0
----
71
71
71

query II rowsort
SELECT ALL + 33, + col2 FROM tab2 AS cor0
----
33
23
33
40
33
58

query I rowsort
SELECT col0 * + - ( 74 ) FROM tab0
----
-1110
-6438
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - ( + + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - ( + + COUNT ( * ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL 10 * - col0 + col2 FROM tab1 AS cor0
----
-414
-791
-842

query II rowsort
SELECT DISTINCT - col0 - - col1, + col2 + 6 + - col2 * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-37
1350
-44
3202
-80
301

query I rowsort
SELECT - 47 + - + 49 * - + 45 AS col2 FROM tab1 cor0
----
2158
2158
2158

query I rowsort
SELECT ALL + + 82 - + col0 * - col0 * 45 + - 51 * - - col1 AS col1 FROM tab1 AS cor0
----
116413
324952
370330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL MAX( CAST( + 7 AS SIGNED ) ) AS col0 FROM tab2, tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL MAX ( CAST ( + 7 AS INTEGER ) ) AS col0 FROM tab2, tab2 AS cor0
----
7

query I rowsort
SELECT - 48 FROM tab1 WHERE - col1 IS NOT NULL
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + - 72 FROM tab0 AS cor0 WHERE - col1 / + col2 * 34 * - - col1 * + + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3996
SELECT 29 + + + 6 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST( + col2 AS DECIMAL ) ) NOT BETWEEN - col0 AND + 64
----
35
35

skipif mysql # not compatible
query I rowsort label-3996
SELECT 29 + + + 6 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST ( + col2 AS REAL ) ) NOT BETWEEN - col0 AND + 64
----
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT COUNT( ALL + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT COUNT ( ALL + col1 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT - + 61 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 32 * - - 86 FROM tab2
----
2752

query I rowsort
SELECT DISTINCT + 6 * - + col1 FROM tab0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + MAX( - + 1 ) * - + 11 AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4001
SELECT + MAX ( - + 1 ) * - + 11 AS col2 FROM tab0 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT ALL - 60 DIV + col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - 60 / + col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT col2 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) * + - ( + + col0 ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4003
SELECT col2 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) * + - ( + + col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT - + 74 + + col0 * - CAST( NULL AS SIGNED ) - - col2 FROM tab2 WHERE NOT NULL < - 18
----

skipif mysql # not compatible
query I rowsort label-4004
SELECT - + 74 + + col0 * - CAST ( NULL AS INTEGER ) - - col2 FROM tab2 WHERE NOT NULL < - 18
----

query I rowsort
SELECT DISTINCT ( - 94 ) FROM tab0 cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT 37 DIV + 78 + + 46 FROM tab1 cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4006
SELECT 37 / + 78 + + 46 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL MIN( 19 ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL MIN ( 19 ) AS col1 FROM tab0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT - col1 * col2 + CAST( + col1 AS SIGNED ) + 37 FROM tab0
----
-152
-3689
-61

skipif mysql # not compatible
query I rowsort label-4008
SELECT - col1 * col2 + CAST ( + col1 AS INTEGER ) + 37 FROM tab0
----
-152
-3689
-61

query I rowsort
SELECT + col1 + + col1 + - + col1 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + 55 + - 83 + col0 * + col1 * - col2 FROM tab1 AS cor0
----
-25103
-290864
-68572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4011
SELECT + + CAST( NULL AS SIGNED ), col1 * + + 38 AS col0 FROM tab0 AS cor0
----
NULL
3078
NULL
38
NULL
798

skipif mysql # not compatible
query II rowsort label-4011
SELECT + + CAST ( NULL AS INTEGER ), col1 * + + 38 AS col0 FROM tab0 AS cor0
----
NULL
3078
NULL
38
NULL
798

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL 50 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL 50 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT ALL ( COUNT( * ) ) DIV + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL ( COUNT ( * ) ) / + COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4014
SELECT ( + 43 ) DIV + col1 AS col2 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4014
SELECT ( + 43 ) / + col1 AS col2 FROM tab1
----
0
3
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL + col1 DIV + 13 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + col1 / + 13 FROM tab1
----
0
1
3

query I rowsort
SELECT DISTINCT ( 13 ) - + col1 AS col2 FROM tab0
----
-68
-8
12

query I rowsort
SELECT DISTINCT col0 + - col2 * 1 AS col2 FROM tab0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * + col0 + col0 col1 FROM tab0
----
-1170
-6786
-7566

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + + 22 IN ( - col1 + col0 )
----

query I rowsort
SELECT DISTINCT ( 1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - AVG ( DISTINCT 74 ) / COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - AVG ( DISTINCT 74 ) / COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col1 = 76
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 98 NOT BETWEEN NULL AND 99 - 42
----

query I rowsort
SELECT + col0 + 32 FROM tab2
----
107
78
96

query I rowsort
SELECT + 55 + 0 FROM tab0
----
55
55
55

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT + 28 + COUNT( * ) AS col2 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + 28 + COUNT ( * ) AS col2 FROM tab1
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4029
SELECT * FROM tab0 WHERE ( NULL ) < + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4029
SELECT * FROM tab0 WHERE ( NULL ) < + CAST ( col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4030
SELECT COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( * ) + - 63 AS col0 FROM tab0 WHERE NOT - ( + col2 ) / - 42 NOT BETWEEN col1 + col2 AND ( NULL )
----
-63

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( * ) + - 63 AS col0 FROM tab0 WHERE NOT - ( + col2 ) / - 42 NOT BETWEEN col1 + col2 AND ( NULL )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + SUM( DISTINCT col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT 66 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col2 ) - - 43 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT + col2 DIV + 24 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4036
SELECT + col2 / + 24 AS col0 FROM tab2 AS cor0
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 4 <> ( + col0 )
----

query I rowsort
SELECT col1 + - 15 AS col0 FROM tab2
----
36
52
62

query I rowsort
SELECT 49 * - col2 + - 90 AS col2 FROM tab2
----
-1217
-2050
-2932

query I rowsort
SELECT + col0 * + 79 + ( - col2 ) FROM tab2 AS cor0
----
3611
5016
5867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 55 ) + + 2 col0 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT ALL + - 79 AS col0 FROM tab0 cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 58 NOT BETWEEN ( + ( + 54 ) + + 67 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 * 65 AS col0 FROM tab2 AS cor0
----
3315
4355
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 - col1 * + col2 col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-139
-28
-3736

query I rowsort
SELECT ALL - ( - col1 ) - + col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL 4 * - ( col2 ) FROM tab0
----
-188
-396
-40

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT 60 DIV 97 + 29 col1 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4050
SELECT DISTINCT 60 / 97 + 29 col1 FROM tab0
----
29

query I rowsort
SELECT col0 * + 67 AS col1 FROM tab0 WHERE NULL BETWEEN col2 AND - ( - 25 ) * + col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT - CAST( col0 AS SIGNED ) * 14 col2 FROM tab0
----
-1218
-1358
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT - CAST ( col0 AS INTEGER ) * 14 col2 FROM tab0
----
-1218
-1358
-210

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( 74 ) IS NOT NULL
----

query I rowsort
SELECT + col0 + col2 FROM tab2 WHERE col0 NOT IN ( + col1 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT 32 - SUM( DISTINCT col1 ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-4055
SELECT 32 - SUM ( DISTINCT col1 ) FROM tab0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT ALL ( + col1 ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL ( + col1 ) / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL <> + col2
----

query I rowsort
SELECT col2 + 23 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT + - COUNT( * ) + + MIN( ALL + col2 ) AS col1 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + - COUNT ( * ) + + MIN ( ALL + col2 ) AS col1 FROM tab2 cor0
----
20

query I rowsort
SELECT ALL col1 - + - 43 AS col0 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT DISTINCT + - 17 - + + 96 FROM tab1 cor0
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT DISTINCT + 89 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT + 89 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 21 * 86 AS col2 FROM tab2 AS cor0
----
1806

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4064
SELECT + - CAST( NULL AS DECIMAL ) * CAST( col1 AS SIGNED ) * - ( col1 * - col0 + + ( + col1 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT + - CAST ( NULL AS REAL ) * CAST ( col1 AS INTEGER ) * - ( col1 * - col0 + + ( + col1 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
1173
3080
3886

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= 3
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - col0 + - + col1 FROM tab1 cor0
----
2587
7220
8234

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 47 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
47
47
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - - 7 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4072
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + CAST( col2 AS SIGNED ) AND NULL OR NOT ( + col0 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4072
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + CAST ( col2 AS INTEGER ) AND NULL OR NOT ( + col0 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4073
SELECT DISTINCT + col1, col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4073
SELECT DISTINCT + col1, col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT col1 DIV + ( - 60 ) * - 3 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT col1 / + ( - 60 ) * - 3 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 43 IS NULL OR + 92 + 45 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 65 NOT IN ( + + 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( NULL ) > ( + col1 )
----

query I rowsort
SELECT col0 * - col2 FROM tab0 WHERE NOT - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col2 * - 76 FROM tab2
----
-234080
-295336
-89148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4080
SELECT CAST( - 10 AS DECIMAL ) FROM tab2 WHERE NOT + - col2 * - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4080
SELECT CAST ( - 10 AS REAL ) FROM tab2 WHERE NOT + - col2 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT ALL + COUNT( * ) * + + COUNT( * ) AS col1, + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
9
-9

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) AS col1, + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
9
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN + 77 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT + - 61 * + - CAST( - 86 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4083
SELECT + - 61 * + - CAST ( - 86 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT - 78 DIV + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-4084
SELECT - 78 / + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-86
-92

query I rowsort
SELECT - - 17 * + col0 + + + col1 + + + col0 * col0 * + 34 FROM tab0 cor0
----
258846
321556
7986

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <> NULL
----

query I rowsort
SELECT + 84 * + - 41 + - col1 + + - 69 + 63 * - col2 AS col1 FROM tab1 cor0
----
-7235
-7844
-9575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 WHERE NOT 10 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4088
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE NOT 10 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( ( NULL ) <> ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( ( NULL ) <> ( NULL ) )
----
0

query I rowsort
SELECT ALL - col0 + + 26 FROM tab0
----
-61
-71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - MAX( ALL ( - + col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4091
SELECT - MAX ( ALL ( - + col2 ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT 84 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 10 col2 FROM tab0 AS cor0 WHERE + col1 + col2 IS NOT NULL
----
-100
-470
-990

query II rowsort
SELECT - + 81, col2 FROM tab1 AS cor0
----
-81
59
-81
68
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL - - COUNT( * ) + - 89 + 94 AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - - COUNT ( * ) + - 89 + 94 AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL + CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 16 AS col0 FROM tab2 AS cor0
----
24
42
7

query II rowsort
SELECT ALL col2 AS col0, ( + col0 ) AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4100
SELECT * FROM tab1 WHERE 82 BETWEEN NULL AND CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4100
SELECT * FROM tab1 WHERE 82 BETWEEN NULL AND CAST ( - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT col1 + + + col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT col1 + + + col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) = ( 35 * - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 50 + - + col1 FROM tab1 WHERE NOT ( + col0 * + 94 ) <= NULL
----

query I rowsort
SELECT DISTINCT + + 16 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + col1 * + 23 col0 FROM tab2
----
-1150
-1483
-1731

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL 87 + + MIN( col1 ) AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL 87 + + MIN ( col1 ) AS col2 FROM tab2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT + COUNT( * ) col1 FROM tab0 WHERE ( NOT + col2 BETWEEN - 15 * CAST( NULL AS SIGNED ) + col2 AND ( - col2 ) )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT + COUNT ( * ) col1 FROM tab0 WHERE ( NOT + col2 BETWEEN - 15 * CAST ( NULL AS INTEGER ) + col2 AND ( - col2 ) )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4108
SELECT 55 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT 55 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 54 + - + 75 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT DISTINCT 83 * - col0 * + col2 FROM tab1 AS cor0
----
-406368
-416245
-513604

query I rowsort
SELECT DISTINCT + - col0 * - 95 AS col2 FROM tab2 AS cor0
----
4370
6080
7125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT ALL - ( - 12 ) DIV + 97 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - ( - 12 ) / + 97 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4113
SELECT * FROM tab2 WHERE NOT - + 9 * + - 31 + col1 NOT IN ( + 79 + - col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4113
SELECT * FROM tab2 WHERE NOT - + 9 * + - 31 + col1 NOT IN ( + 79 + - col2 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT + col0 * col2 * 51 FROM tab2
----
130560
221850
53958

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( NULL ) AND 45
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4118
SELECT + 67, + col1 + 6 + col1 DIV + - col1 + + ( + col0 ) AS col1 FROM tab2
----
67
102
67
146
67
147

skipif mysql # not compatible
query II rowsort label-4118
SELECT + 67, + col1 + 6 + col1 / + - col1 + + ( + col0 ) AS col1 FROM tab2
----
67
102
67
146
67
147

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) + + + ( + 36 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4120
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col2 / - + CAST( + col1 AS DECIMAL ) + + col0 + - - col0 - - col2 * + ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4120
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col2 / - + CAST ( + col1 AS REAL ) + + col0 + - - col0 - - col2 * + ( col1 ) )
----

query II rowsort
SELECT col0 AS col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - COUNT( * ) FROM tab1 WHERE NOT + col2 * + col0 * 48 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + col2 * + col0 * 48 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 * col1 FROM tab0
----
1
-99
21
-210
81
-3807

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - 99, + col1 )
----

query I rowsort
SELECT + 52 * col2 FROM tab0
----
2444
5148
520

query II rowsort
SELECT DISTINCT - col2, + col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - 1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + - 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT - col2 + col1 + - col2 DIV - col0 AS col0 FROM tab0
----
-97
11
37

skipif mysql # not compatible
query I rowsort label-4129
SELECT - col2 + col1 + - col2 / - col0 AS col0 FROM tab0
----
-97
11
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4130
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-81

query I rowsort
SELECT DISTINCT 68 + + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL - SUM( ALL + + 71 ) + + + 8 FROM tab2 AS cor0
----
-205

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - SUM ( ALL + + 71 ) + + + 8 FROM tab2 AS cor0
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - MAX( ALL + ( + 27 ) ) * + MAX( DISTINCT + col0 ) * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-7854

skipif mysql # not compatible
query I rowsort label-4135
SELECT - MAX ( ALL + ( + 27 ) ) * + MAX ( DISTINCT + col0 ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-7854

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT COUNT( * ) * 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4136
SELECT COUNT ( * ) * 9 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT + col2 - col0 DIV col2 AS col0 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-4137
SELECT + col2 - col0 / col2 AS col0 FROM tab1
----
58
67
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4138
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - col0 + + 32 FROM tab2
----
NULL
-14
NULL
-32
NULL
-43

skipif mysql # not compatible
query II rowsort label-4138
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - col0 + + 32 FROM tab2
----
NULL
-14
NULL
-32
NULL
-43

query I rowsort
SELECT DISTINCT 64 - - - col2 AS col2 FROM tab2
----
24
41
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT DISTINCT col2 * + col1 + + CAST( - 1 AS SIGNED ) AS col1 FROM tab1
----
1343
294
3195

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT col2 * + col1 + + CAST ( - 1 AS INTEGER ) AS col1 FROM tab1
----
1343
294
3195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 51 ) - col1 AS col0, - 83 col2 FROM tab1
----
37
-83
4
-83
46
-83

query II rowsort
SELECT DISTINCT - 21 AS col0, col1 - 40 FROM tab0
----
-21
-19
-21
-39
-21
41

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL COUNT( * ) * - + COUNT( * ) col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4144
SELECT ALL COUNT ( * ) * - + COUNT ( * ) col1 FROM tab0 cor0
----
-9

query I rowsort
SELECT col0 * 77 AS col0 FROM tab2 cor0 WHERE NOT ( - + col0 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 * + 13 FROM tab1
----
59
1105
68
1183
96
663

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - col2 ) * + col1 + + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 47 * + col1 + 8 - + 92 FROM tab1 AS cor0
----
-2293
-319
-742

query I rowsort
SELECT DISTINCT - - 18 AS col0 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( DISTINCT + 75 ) AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( DISTINCT + 75 ) AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - 96 * 23 FROM tab2 AS cor0
----
-2208
-2208
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + COUNT( * ) + - 90 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4152
SELECT + COUNT ( * ) + - 90 FROM tab1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT ALL - col2 DIV - 10 + + col1 - + col2 AS col2 FROM tab1
----
-15
-49
-73

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - col2 / - 10 + + col1 - + col2 AS col2 FROM tab1
----
-15
-49
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + COUNT( * ) + - ( - 71 ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4154
SELECT + COUNT ( * ) + - ( - 71 ) FROM tab0 AS cor0
----
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 77 + 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 cor0 WHERE ( - 17 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4157
SELECT - COUNT( * ) AS col1, 70 DIV 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
0

skipif mysql # not compatible
query II rowsort label-4157
SELECT - COUNT ( * ) AS col1, 70 / 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
0

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT col2 - - + 49 + - - 32 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT ALL - col2 - + 41 + + 54 FROM tab1 AS cor0
----
-46
-55
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-4161
SELECT DISTINCT 83 * col1 + - col1 AS col0, 69 * 99 DIV - col2 col1 FROM tab2 AS cor0
----
4182
-297
5494
-117
6314
-170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4161
SELECT DISTINCT 83 * col1 + - col1 AS col0, 69 * 99 / - col2 col1 FROM tab2 AS cor0
----
4182
-297
5494
-117
6314
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + col2 - col2 * + col2 * - 29 col2 FROM tab0 AS cor0
----
284129
2869
63933

query I rowsort
SELECT ALL col2 + + + col2 + - 41 * + 85 FROM tab1 AS cor0
----
-3293
-3349
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT MIN( - ( col0 ) ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4164
SELECT MIN ( - ( col0 ) ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-78

query II rowsort
SELECT col2, - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
59
-5
68
-47
96
-14

query I rowsort
SELECT DISTINCT 59 FROM tab0 AS cor0 WHERE + col1 > - col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT col1 + + col0 - + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT col1 + + col0 - + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - 60 * - + SUM( + 12 ) FROM tab1
----
2160

skipif mysql # not compatible
query I rowsort label-4168
SELECT - 60 * - + SUM ( + 12 ) FROM tab1
----
2160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4169
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 94 * - col2 + - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 94 * - col2 + - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT col0 DIV ( - - 93 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4170
SELECT col0 / ( - - 93 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL 75 * MAX( - - col1 ) FROM tab1
----
3525

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 75 * MAX ( - - col1 ) FROM tab1
----
3525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT 85 DIV - ( + COUNT( * ) ) AS col0 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-4172
SELECT 85 / - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( - + 73 * + 64 ) AND - col1
----

query I rowsort
SELECT ALL - + col1 * - 59 AS col1 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4175
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col1 + - CAST( NULL AS SIGNED ) < - - 90 + - col0
----

skipif mysql # not compatible
query III rowsort label-4175
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col1 + - CAST ( NULL AS INTEGER ) < - - 90 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col1 FROM tab0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL - COUNT( * ) * MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - COUNT ( * ) * MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT 50 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - COUNT( ALL 31 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-4179
SELECT - COUNT ( ALL 31 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4180
SELECT + col0, - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + col2 = - - 86
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4180
SELECT + col0, - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col2 = - - 86
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + 4 * - col1 + + col2 + + + col0 * - col1 * + ( - - col2 ) FROM tab2 AS cor0
----
-197388
-291660
-54139

query I rowsort
SELECT - 8 + + - 23 + + - col0 AS col0 FROM tab1 AS cor0
----
-116
-122
-82

query I rowsort
SELECT DISTINCT - col0 * col0 * - - 3 AS col2 FROM tab0 AS cor0
----
-22707
-28227
-675

query II rowsort
SELECT - col2 AS col0, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT + 70 + + ( - CAST( - + ( + + AVG ( - - 5 ) ) AS SIGNED ) ) AS col2 FROM tab2 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + 70 + + ( - CAST ( - + ( + + AVG ( - - 5 ) ) AS INTEGER ) ) AS col2 FROM tab2 WHERE ( - col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT - ( + CAST( 49 AS SIGNED ) ) * 78 * + col0 FROM tab1
----
-194922
-324870
-347802

skipif mysql # not compatible
query I rowsort label-4186
SELECT - ( + CAST ( 49 AS INTEGER ) ) * 78 * + col0 FROM tab1
----
-194922
-324870
-347802

query II rowsort
SELECT + col0 AS col2, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL 66 + + - col0 * + col0 AS col0 FROM tab0
----
-159
-7503
-9343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT ( - - CAST( 38 AS SIGNED ) ) AS col2 FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-4189
SELECT ( - - CAST ( 38 AS INTEGER ) ) AS col2 FROM tab1
----
38
38
38

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT - 67 * + - 34 * + col0 / - CAST( NULL AS SIGNED ) + + col1 + - - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 67 * + - 34 * + col0 / - CAST ( NULL AS INTEGER ) + + col1 + - - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4192
SELECT ALL - - 20 - - col0 / 70 / col0 + + 28 - CAST( NULL AS SIGNED ) + + 26 AS col2, 7 * + 15 FROM tab2 AS cor0
----
NULL
105
NULL
105
NULL
105

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL - - 20 - - col0 / 70 / col0 + + 28 - CAST ( NULL AS INTEGER ) + + 26 AS col2, 7 * + 15 FROM tab2 AS cor0
----
NULL
105
NULL
105
NULL
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - MAX( DISTINCT - + 56 ) * + - 58 + - COUNT( * ) FROM tab1
----
-3251

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - MAX ( DISTINCT - + 56 ) * + - 58 + - COUNT ( * ) FROM tab1
----
-3251

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT col0 - + 54 FROM tab1 cor0
----
-3
31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - SUM( ALL col1 ) * + COUNT( * ) + - COUNT( * ) + - 16 FROM tab2 AS cor0
----
-604

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - SUM ( ALL col1 ) * + COUNT ( * ) + - COUNT ( * ) + - 16 FROM tab2 AS cor0
----
-604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 96 col2 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) > + 22
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4199
SELECT CAST( NULL AS SIGNED ), - COUNT( * ) * - - 13 - - - MIN( + col0 ) - COUNT( * ) col0 FROM tab1
----
NULL
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4199
SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) * - - 13 - - - MIN ( + col0 ) - COUNT ( * ) col0 FROM tab1
----
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - MAX( DISTINCT col1 ) FROM tab1 WHERE NOT - col0 BETWEEN NULL AND col2 + - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT - MAX ( DISTINCT col1 ) FROM tab1 WHERE NOT - col0 BETWEEN NULL AND col2 + - - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) * COUNT( * ) FROM tab1, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1, tab2 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL = col2 )
----

query I rowsort
SELECT ALL - 47 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + - col1 + - col1 + - 52 AS col1 FROM tab1 cor0
----
-4376
-482
-780

query I rowsort
SELECT DISTINCT + - 64 * col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT 65 * ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4207
SELECT 65 * ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
195

query II rowsort
SELECT - + 35, col1 AS col0 FROM tab0 AS cor0
----
-35
1
-35
21
-35
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - ( + 86 ) * - 88 * COUNT( DISTINCT - col1 ) FROM tab0
----
22704

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - ( + 86 ) * - 88 * COUNT ( DISTINCT - col1 ) FROM tab0
----
22704

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + - 91 - + + 57 * - - 28 * + 85 * - + col1 AS col0 FROM tab2 AS cor0
----
10445793
6918615
9089204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4212
SELECT MIN( ALL 81 ) * AVG ( DISTINCT + + CAST( NULL AS DECIMAL ) ) * - COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT MIN ( ALL 81 ) * AVG ( DISTINCT + + CAST ( NULL AS REAL ) ) * - COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE + col2 NOT IN ( - + 33 * ( - col2 ) )
----
-14
-47
-5

query I rowsort
SELECT ALL col0 * - col2 * - - col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 29 + + col2 * col0 / - 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + + col1 * 43 + + 76 IN ( - 70 + + + 42 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + + col1 * 43 + + 76 IN ( - 70 + + + 42 * + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT 45 DIV 47 + - + 78 FROM tab2
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-4217
SELECT 45 / 47 + - + 78 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT - col0 + - 36 FROM tab0
----
-123
-133
-51

query I rowsort
SELECT DISTINCT 76 * - 84 AS col1 FROM tab1
----
-6384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * + + col1 col2 FROM tab2
----
-306
-402
-462

query I rowsort
SELECT - col2 * + - 74 FROM tab1 AS cor0
----
4366
5032
7104

query II rowsort
SELECT ALL col2 AS col1, - 94 FROM tab1
----
59
-94
68
-94
96
-94

query I rowsort
SELECT - col2 - - 73 FROM tab2
----
15
33
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - - 23 * + 99 + + + col1 col0 FROM tab2
----
2351
2394
2402

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT + - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT + - col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + + 16 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT - col1 DIV - col0 * 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - col1 / - col0 * 53 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( + col2 ) * + 73 FROM tab0 AS cor0
----
3431
7227
730

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4230
SELECT DISTINCT - col1 AS col2, CAST( + col1 AS SIGNED ) * col0 + - ( ( + col0 ) ) AS col1, - 5 FROM tab1 AS cor0
----
9 values hashing to f23069504ca484cb6c23648d551b90ec

skipif mysql # not compatible
query III rowsort label-4230
SELECT DISTINCT - col1 AS col2, CAST ( + col1 AS INTEGER ) * col0 + - ( ( + col0 ) ) AS col1, - 5 FROM tab1 AS cor0
----
9 values hashing to f23069504ca484cb6c23648d551b90ec

query I rowsort
SELECT ALL ( 8 ) AS col0 FROM tab0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4232
SELECT ALL * FROM tab0 WHERE NOT + col2 * CAST( - col2 AS SIGNED ) + - 21 BETWEEN 22 + - 86 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4232
SELECT ALL * FROM tab0 WHERE NOT + col2 * CAST ( - col2 AS INTEGER ) + - 21 BETWEEN 22 + - 86 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN - col1 + 49 AND - + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - MIN( + + 26 ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - MIN ( + + 26 ) AS col2 FROM tab1
----
-26

query I rowsort
SELECT DISTINCT - ( + + ( col1 ) ) FROM tab2 AS cor0 WHERE NULL < 59
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 71 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT ( - 87 ) * col0 * - col1 * - 10 + col2 FROM tab0 AS cor0
----
-1057003
-1589480
-84291

query I rowsort
SELECT - + col1 + - + col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + COUNT( * ) + + + 20 col1 FROM tab0 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4239
SELECT + COUNT ( * ) + + + 20 col1 FROM tab0 cor0
----
23

query I rowsort
SELECT ALL - + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT DISTINCT + + col1 * col1 + - - 55 - col2 * - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-43
2809
286

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + + col1 * col1 + - - 55 - col2 * - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-43
2809
286

onlyif mysql # DIV for integer division: 
query II rowsort label-4242
SELECT 10 DIV - + 65 AS col1, col1 * - - ( + col0 ) AS col2 FROM tab1
----
0
425
0
4277
0
714

skipif mysql # not compatible
query II rowsort label-4242
SELECT 10 / - + 65 AS col1, col1 * - - ( + col0 ) AS col2 FROM tab1
----
0
425
0
4277
0
714

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT col0 DIV 38 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4243
SELECT col0 / 38 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT ( NULL <= col1 ) ) )
----

query I rowsort
SELECT ALL col2 * + col2 * + 79 FROM tab2
----
126400
265756
41791

query I rowsort
SELECT ALL 5 * - col2 AS col1 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT COUNT( * ) * - 57 FROM tab1 WHERE - + col2 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4247
SELECT COUNT ( * ) * - 57 FROM tab1 WHERE - + col2 * col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( - - col1 ) + 62 AS col0 FROM tab2
----
113
129
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + col2 + + col1 col1 FROM tab0 cor0
----
-13
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - + COUNT( * ) + + SUM( + col2 ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4250
SELECT - + COUNT ( * ) + + SUM ( + col2 ) FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT + - COUNT( * ) * 94 col0, + AVG ( ALL + 11 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4251
SELECT + - COUNT ( * ) * 94 col0, + AVG ( ALL + 11 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----
0
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4252
SELECT DISTINCT + - ( - col0 ) * + col2 * - + CAST( NULL AS DECIMAL ) AS col2, 61 FROM tab1 AS cor0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT + - ( - col0 ) * + col2 * - + CAST ( NULL AS REAL ) AS col2, 61 FROM tab1 AS cor0
----
NULL
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT + - ( ( COUNT( * ) ) ) + 87 - + - COUNT( * ) + - + 11 - + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT + - ( ( COUNT ( * ) ) ) + 87 - + - COUNT ( * ) + - + 11 - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL - COUNT( * ) * + ( - - 40 ) AS col0 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - COUNT ( * ) * + ( - - 40 ) AS col0 FROM tab1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT - ( - COUNT( DISTINCT + 51 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - ( - COUNT ( DISTINCT + 51 ) ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + MIN( + 55 ) FROM tab0 cor0
----
55

skipif mysql # not compatible
query I rowsort label-4257
SELECT + MIN ( + 55 ) FROM tab0 cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4258
SELECT CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL < + col0 * 65 * + col0 )
----

query I rowsort
SELECT col1 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - - 77 * + COUNT( * ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - - 77 * + COUNT ( * ) FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + COUNT( * ) * - + COUNT( + col1 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + COUNT ( * ) * - + COUNT ( + col1 ) FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN + - col1 AND - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT MIN( + 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT MIN ( + 93 ) FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT COUNT( * ) * + MIN( ALL + 70 ) + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT COUNT ( * ) * + MIN ( ALL + 70 ) + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT col1 DIV - + col2 + - + 50 col1 FROM tab0 AS cor0
----
-50
-51
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4266
SELECT col1 / - + col2 + - + 50 col1 FROM tab0 AS cor0
----
-50
-51
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + COUNT( * ) + + SUM( DISTINCT - + col1 ) AS col1 FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4267
SELECT + COUNT ( * ) + + SUM ( DISTINCT - + col1 ) AS col1 FROM tab2 cor0
----
-192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 59 / ( - col0 ) BETWEEN + + 38 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 53 * - col2 * - - col1 * - col2 AS col1 FROM tab1 cor0
----
11518384
6838272
922465

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT DISTINCT - - 0 AS col0, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
9

skipif mysql # not compatible
query II rowsort label-4270
SELECT DISTINCT - - 0 AS col0, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
9

query I rowsort
SELECT DISTINCT - 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query II rowsort
SELECT DISTINCT + col1 + - col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-8
67
13
77
5
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL 42 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL 42 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + 90 AND + 51
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4275
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE CAST( - col2 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4275
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE CAST ( - col2 AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 6 * 17 FROM tab0 AS cor0
----
-102
-2142
-8262

query II rowsort
SELECT + - 67 - - - ( - col0 ) + + 56 + - + col1 * + 31 + + 60 + - col0 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-106
59
-1408
68
-385
96

query II rowsort
SELECT col0 + col0 AS col1, col1 + + + 70 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * - col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - SUM( - + ( 46 ) ) FROM tab1 cor0
----
138

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - SUM ( - + ( 46 ) ) FROM tab1 cor0
----
138

query I rowsort
SELECT DISTINCT col1 * - 36 * - - col1 - - 53 AS col1 FROM tab2 AS cor0
----
-161551
-213391
-93583

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - 83 * + col1
----

query III rowsort
SELECT * FROM tab1 WHERE + 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - 83 + col0 col0, 50 AS col0 FROM tab1
----
4982
50
5735
50
8019
50

query I rowsort
SELECT col0 * + col1 + col0 AS col2 FROM tab1
----
4368
510
765

query I rowsort
SELECT DISTINCT col2 + + - col0 AS col0 FROM tab1
----
-23
-26
45

query II rowsort
SELECT - 46 AS col2, 98 * + col1 AS col0 FROM tab0
----
-46
2058
-46
7938
-46
98

query II rowsort
SELECT DISTINCT + 4 AS col1, - 28 * + + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
4
-1288
4
-1792
4
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT SUM( + 55 ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4289
SELECT SUM ( + 55 ) FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + MAX( - 31 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + MAX ( - 31 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT ALL col1 - - 19 FROM tab0 AS cor0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT COUNT( ALL + 63 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4292
SELECT COUNT ( ALL + 63 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4293
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + CAST( NULL AS SIGNED ) <= col0
----

skipif mysql # not compatible
query III rowsort label-4293
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + CAST ( NULL AS INTEGER ) <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT ALL - + 27 DIV + 90 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - + 27 / + 90 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT - - 62 DIV + 58 + - COUNT( 18 ) + + + 64 AS col2 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-4295
SELECT - - 62 / + 58 + - COUNT ( 18 ) + + + 64 AS col2 FROM tab1 cor0
----
62

query I rowsort
SELECT + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 29 NOT BETWEEN col1 + - 56 AND + - 77
----

query I rowsort
SELECT - col2 * col2 * + - 52 FROM tab2 AS cor0
----
174928
27508
83200

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + SUM( ALL 46 ) * - + 3 AS col0 FROM tab0 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-4298
SELECT + SUM ( ALL 46 ) * - + 3 AS col0 FROM tab0 AS cor0
----
-414

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - 61 * + col0 * - 57 NOT IN ( - + 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL - - COUNT( - col1 ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - - COUNT ( - col1 ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT DISTINCT - SUM( + + col0 ) AS col2, + 99 FROM tab0 AS cor0
----
-199
99

skipif mysql # not compatible
query II rowsort label-4301
SELECT DISTINCT - SUM ( + + col0 ) AS col2, + 99 FROM tab0 AS cor0
----
-199
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 91 * + 16 NOT IN ( ( col0 ), col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT DISTINCT - col2 DIV - 11 FROM tab0
----
0
4
9

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT - col2 / - 11 FROM tab0
----
0
4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + SUM( + 43 ) AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-4304
SELECT + SUM ( + 43 ) AS col2 FROM tab1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4305
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4305
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - - col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + 76 ) FROM tab1
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4308
SELECT DISTINCT * FROM tab2 WHERE + 7 NOT IN ( - 74 * + 57 * 63 / + CAST( NULL AS SIGNED ) * + + col1 + - 0, + 52, col2 * + 70 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-4308
SELECT DISTINCT * FROM tab2 WHERE + 7 NOT IN ( - 74 * + 57 * 63 / + CAST ( NULL AS INTEGER ) * + + col1 + - 0, + 52, col2 * + 70 * + col2 )
----

query II rowsort
SELECT ALL + ( - 41 ) AS col0, + 94 / + 74 AS col0 FROM tab1 WHERE NOT col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * + col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) * + col2 + col0 - 70 col1 FROM tab0
----
-760
-853
-9576

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4314
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - + col0 >= - + 26 * + CAST( NULL AS DECIMAL ) / + col0 * + - col1 * col1 * - + col2
----

skipif mysql # not compatible
query III rowsort label-4314
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - + col0 >= - + 26 * + CAST ( NULL AS REAL ) / + col0 * + - col1 * col1 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL - 50 * - MAX( + col2 ) + ( - + 64 ) * - SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
9024

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - 50 * - MAX ( + col2 ) + ( - + 64 ) * - SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
9024

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab1 AS cor0 WHERE 33 > - - col2
----

query II rowsort
SELECT 32, + col0 + - col0 AS col1 FROM tab0 AS cor0
----
32
0
32
0
32
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL SUM ( col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4320
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT ALL 73 - + 81 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - - col2 * col2 + - - col1 + + + 33 FROM tab0 AS cor0
----
154
2323
9835

query II rowsort
SELECT - col2 * col1, - col2 AS col0 FROM tab0
----
-210
-10
-3807
-47
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT + col0 DIV col0 - + 37 AS col2 FROM tab0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-4324
SELECT + col0 / col0 - + 37 AS col2 FROM tab0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT 17 - 56 + - 79 DIV - col1 AS col2 FROM tab1
----
-24
-34
-38

skipif mysql # not compatible
query I rowsort label-4325
SELECT 17 - 56 + - 79 / - col1 AS col2 FROM tab1
----
-24
-34
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59 - - + 34 + - - col2 col0, - ( 57 ) * + - col2 FROM tab0
----
103
570
140
2679
192
5643

query II rowsort
SELECT - 26 - - col0 AS col2, 81 AS col2 FROM tab1
----
25
81
59
81
65
81

query I rowsort
SELECT DISTINCT + col0 * + 68 FROM tab2 AS cor0 WHERE + col2 * - col1 < - col1 * + col1
----

query I rowsort
SELECT DISTINCT + + ( + - 94 ) AS col0 FROM tab1 AS cor0
----
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT - col0 * - col2 * + ( - 95 ) DIV + 95 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4331
SELECT - col0 * - col2 * + ( - 95 ) / + 95 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT 94 * - col2 DIV col2 col0 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4332
SELECT 94 * - col2 / col2 col0 FROM tab1 AS cor0
----
-94
-94
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 63 * - COUNT( * ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 63 * - COUNT ( * ) FROM tab0 AS cor0
----
189

query II rowsort
SELECT + - col0 AS col2, - 5 FROM tab2 AS cor0
----
-46
-5
-64
-5
-75
-5

query I rowsort
SELECT + ( - - ( + - 0 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 61 + - col1 FROM tab1
----
-108
-66
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT + CAST( 28 AS SIGNED ) * + col1 * - 83 / + ( col0 ) AS col2 FROM tab1 WHERE NOT 34 >= + + col1 * - col1
----

skipif mysql # not compatible
query I rowsort label-4339
SELECT + CAST ( 28 AS INTEGER ) * + col1 * - 83 / + ( col0 ) AS col2 FROM tab1 WHERE NOT 34 >= + + col1 * - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4340
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4340
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + + col1 col1 FROM tab0 cor0
----
105
25
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT ALL - - col2 / - + CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab2 AS cor0 WHERE ( + 11 / + + col0 * col2 NOT BETWEEN - col1 AND NULL )
----

skipif mysql # not compatible
query II rowsort label-4342
SELECT ALL - - col2 / - + CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab2 AS cor0 WHERE ( + 11 / + + col0 * col2 NOT BETWEEN - col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT - MIN( ALL + col2 ) + + MAX( ALL col2 ) AS col1, 58 - COUNT( * ) FROM tab0 AS cor0
----
89
55

skipif mysql # not compatible
query II rowsort label-4343
SELECT - MIN ( ALL + col2 ) + + MAX ( ALL col2 ) AS col1, 58 - COUNT ( * ) FROM tab0 AS cor0
----
89
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT - + CAST( NULL AS SIGNED ) + + 27 AS col2, - col1 + - + ( + - col0 ) FROM tab2 AS cor0
----
NULL
-13
NULL
-5
NULL
8

skipif mysql # not compatible
query II rowsort label-4344
SELECT - + CAST ( NULL AS INTEGER ) + + 27 AS col2, - col1 + - + ( + - col0 ) FROM tab2 AS cor0
----
NULL
-13
NULL
-5
NULL
8

query III rowsort
SELECT * FROM tab0 WHERE 46 - + col2 <> + 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - col1 + + col0 AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 93 col2 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL + COUNT( * ) * + 46 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + COUNT ( * ) * + 46 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
141

query I rowsort
SELECT + col2 * + col0 + + 75 FROM tab0 AS cor0
----
780
945
9678

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4350
SELECT + - 38 * 87 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT + - 38 * 87 + + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL - + ( + SUM( + 95 ) ) * + 14 + 45 * - COUNT( - col0 ) FROM tab2 AS cor0
----
-4125

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - + ( + SUM ( + 95 ) ) * + 14 + 45 * - COUNT ( - col0 ) FROM tab2 AS cor0
----
-4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT DISTINCT - MIN( - - CAST( - 40 AS SIGNED ) ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL AND NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - MIN ( - - CAST ( - 40 AS INTEGER ) ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL AND NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 63 + + COUNT( * ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 63 + + COUNT ( * ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - + 75 * + col2 + - col2 FROM tab2 AS cor0
----
-1748
-3040
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * - col1 - + col2 FROM tab2 WHERE NOT - col0 * col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4357
SELECT * FROM tab0 WHERE + - ( - + col0 ) >= + + CAST( + 32 AS DECIMAL ) * col2
----

skipif mysql # not compatible
query III rowsort label-4357
SELECT * FROM tab0 WHERE + - ( - + col0 ) >= + + CAST ( + 32 AS REAL ) * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4358
SELECT + 10 DIV - 20, - COUNT( * ) col1 FROM tab0
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4358
SELECT + 10 / - 20, - COUNT ( * ) col1 FROM tab0
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT MAX( + - 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT MAX ( + - 10 ) FROM tab2
----
-10

query I rowsort
SELECT + col0 * 54 * col1 AS col0 FROM tab1
----
22950
230958
38556

query I rowsort
SELECT - 74 * + 15 AS col1 FROM tab2
----
-1110
-1110
-1110

query II rowsort
SELECT DISTINCT - - 25, + col2 AS col2 FROM tab1 AS cor0
----
25
59
25
68
25
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT - - COUNT( ALL + col1 ) * - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4363
SELECT - - COUNT ( ALL + col1 ) * - COUNT ( * ) FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL 9 * - + COUNT( - col0 ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL 9 * - + COUNT ( - col0 ) AS col1 FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT DISTINCT - 24 * - 36, + COUNT( * ) AS col2 FROM tab1
----
864
3

skipif mysql # not compatible
query II rowsort label-4365
SELECT DISTINCT - 24 * - 36, + COUNT ( * ) AS col2 FROM tab1
----
864
3

query I rowsort
SELECT - 74 * + - ( + col0 ) FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT DISTINCT + - col2 * + + 59 / - 98 * 34 FROM tab0 AS cor0 WHERE NOT col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE NULL >= col2 - + col0 + + col0 / - 69
----

query I rowsort
SELECT DISTINCT + 69 * + col0 AS col0 FROM tab2
----
3174
4416
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL MIN( DISTINCT 21 ) AS col1 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL MIN ( DISTINCT 21 ) AS col1 FROM tab1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL + 0 * + ( + - CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + 0 * + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT col1 FROM tab0 WHERE - col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT + ( 43 ) * + 8, + COUNT( * ) AS col0 FROM tab1
----
344
3

skipif mysql # not compatible
query II rowsort label-4373
SELECT + ( 43 ) * + 8, + COUNT ( * ) AS col0 FROM tab1
----
344
3

query II rowsort
SELECT 51, col2 FROM tab2
----
51
23
51
40
51
58

query I rowsort
SELECT ALL 21 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-30
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT - 44 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - 44 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT SUM( ( + - col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT SUM ( ( + - col1 ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - 7 * + - 83 + - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
582
602
662

query I rowsort
SELECT col1 + + 54 + - + 98 FROM tab1
----
-30
-39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 23 col2 FROM tab2
----
-1334
-529
-920

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col2 * 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE ( - - 51 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT ( + - COUNT( * ) ) + - - 98 - + 65 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT ( + - COUNT ( * ) ) + - - 98 - + 65 FROM tab2
----
30

query I rowsort
SELECT ALL + - 1 + + + ( + col0 ) FROM tab1 AS cor0
----
50
84
90

query II rowsort
SELECT + + col1 - + col1 + + - col2 + col1 AS col0, col1 * - col0 * - 52 * 18 FROM tab1 AS cor0
----
-21
4003272
-54
397800
-82
668304

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( * ) - - - SUM( - - col1 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4386
SELECT + COUNT ( * ) - - - SUM ( - - col1 ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT col0 * + 73 AS col2 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT col1 * - - 93 * + col2 * + 77 * col1 FROM tab2
----
1698302760
1864452282
428392503

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL 19 * + SUM( DISTINCT + + ( - col0 ) ) FROM tab0
----
-3781

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL 19 * + SUM ( DISTINCT + + ( - col0 ) ) FROM tab0
----
-3781

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT COUNT( * ) * MIN( 74 ) + COUNT( * ) FROM tab0 WHERE NULL <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT COUNT ( * ) * MIN ( 74 ) + COUNT ( * ) FROM tab0 WHERE NULL <> + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT DISTINCT + 67 DIV + - 97 * - col2 * + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + 67 / + - 97 * - col2 * + col0 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4392
SELECT * FROM tab0 WHERE NOT col2 * col0 + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4392
SELECT * FROM tab0 WHERE NOT col2 * col0 + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4394
SELECT * FROM tab2 WHERE NOT col1 * col2 * - 12 - + + 81 + - col2 * 68 * - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4394
SELECT * FROM tab2 WHERE NOT col1 * col2 * - 12 - + + 81 + - col2 * 68 * - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL - COUNT( ALL - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - COUNT ( ALL - col1 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 78 ) * + col1 + + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 43 FROM tab0 AS cor0 WHERE 65 * - col2 IS NOT NULL
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col0 * - + 33 FROM tab1
----
-1683
-2805
-3003

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 18 < NULL
----

query II rowsort
SELECT ALL - + col2 AS col1, - col2 + + col1 AS col2 FROM tab0 WHERE + ( + 4 ) IN ( col1, - col2 + + - col0 / + 33 )
----

query II rowsort
SELECT ALL col0, 55 AS col0 FROM tab1
----
51
55
85
55
91
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - ( + SUM( ALL + col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4402
SELECT - ( + SUM ( ALL + col1 ) ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT + + col0 * - 4 FROM tab0 AS cor0
----
-348
-388
-60

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col2 FROM tab0 AS cor0
----
-187
-2224
-9898

query I rowsort
SELECT col1 * + col1 * + ( - + col0 ) + + col2 + + col2 * 99 FROM tab1 AS cor0
----
-194219
-396
3775

query I rowsort
SELECT ALL 29 * + 91 + - col0 AS col0 FROM tab1 AS cor0
----
2548
2554
2588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT + - CAST( - ( + COUNT( * ) ) AS SIGNED ) * + + 56 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4407
SELECT + - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * + + 56 FROM tab1 AS cor0
----
168

query I rowsort
SELECT ALL 36 * col0 AS col1 FROM tab0 AS cor0
----
3132
3492
540

query III rowsort
SELECT * FROM tab1 WHERE - - 30 NOT BETWEEN - col0 AND + - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + 34 * - COUNT( DISTINCT col1 ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + 34 * - COUNT ( DISTINCT col1 ) FROM tab2
----
-102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 83 * 11 * - 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 3 * ( - ( + col0 ) ) + 46 AS col2 FROM tab1
----
-107
-209
-227

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE - 81 * - + col2 NOT BETWEEN NULL AND + col1 + + - col0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT - - col1 / + col0 * - CAST( NULL AS SIGNED ) / - + col2 + col1 / - - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT - - col1 / + col0 * - CAST ( NULL AS INTEGER ) / - + col2 + col1 / - - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT col0 * + col2 + - col0 - col1 + - - col1 DIV col2 FROM tab0 AS cor0
----
610
764
9505

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT col0 * + col2 + - col0 - col1 + - - col1 / col2 FROM tab0 AS cor0
----
610
764
9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT 49 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT 49 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT - COUNT( * ) * 88 AS col1 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - COUNT ( * ) * 88 AS col1 FROM tab1 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT - - MAX( DISTINCT 41 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - - MAX ( DISTINCT 41 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT ALL + 35 DIV + - col1 AS col2 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL + 35 / + - col1 AS col2 FROM tab1
----
-2
-7
0

query I rowsort
SELECT DISTINCT col1 - ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + + col1 + - - col1 AS col0 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 3 * + + col0 * col0 IN ( - 33 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + - - col0 col1 FROM tab0 AS cor0
----
0
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT + + COUNT( * ) + + ( 85 ) AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + + COUNT ( * ) + + ( 85 ) AS col2 FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT - + 83 * 84 AS col1 FROM tab0 AS cor0
----
-6972

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 83 * + + col2 AS col1 FROM tab2
----
1909
3320
4814

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT ALL + 6 DIV + - col0 * + - 16 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 6 / + - col0 * + - 16 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 44 col1 FROM tab1
----
2244
3740
4004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 21 < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT MIN( DISTINCT + - col1 ) * 10 FROM tab0 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT MIN ( DISTINCT + - col1 ) * 10 FROM tab0 AS cor0
----
-810

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + MIN( ( col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4436
SELECT + MIN ( ( col2 ) ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT ALL - 1 * 89 * + ( + ( + + COUNT( - + col0 ) ) ) AS col0, COUNT( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL - 1 * 89 * + ( + ( + + COUNT ( - + col0 ) ) ) AS col0, COUNT ( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0
0

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
53

query I rowsort
SELECT - 40 AS col1 FROM tab1 AS cor0 WHERE NOT col2 / 31 <> NULL
----

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL = - 67 * - - col0
----

query I rowsort
SELECT ALL - 59 + col0 AS col0 FROM tab1 cor0
----
-8
26
32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 >= - 33 * 29
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 32, - 3 - col1 * col2, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / - col1 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * + + 76 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query II rowsort
SELECT col2 AS col0, col1 + col2 AS col0 FROM tab0
----
10
31
47
128
99
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL MAX( ALL + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL MAX ( ALL + col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT - CAST( ( 53 ) AS SIGNED ) AS col1 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-4448
SELECT - CAST ( ( 53 ) AS INTEGER ) AS col1 FROM tab2
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT COUNT( ALL 75 ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT COUNT ( ALL 75 ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 41 * + + 65 FROM tab0
----
2665
2665
2665

query II rowsort
SELECT - 91 AS col2, col2 * col0 AS col1 FROM tab2
----
-91
1058
-91
2560
-91
4350

query I rowsort
SELECT ALL - 8 * + - 53 + - + col1 AS col2 FROM tab0
----
343
403
423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 25 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * + 93 + + col2 col1 FROM tab2 AS cor0
----
4347
6056
7108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 + 90 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1, + CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4457
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1, + CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + ( + 90 ) + + ( + ( - col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT DISTINCT col2 DIV - 63 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
21
81

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT col2 / - 63 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - COUNT( * ) * - COUNT( ALL + + col0 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4460
SELECT - COUNT ( * ) * - COUNT ( ALL + + col0 ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT col2 * 53 FROM tab1
----
3127
3604
5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 * - - 32 col0 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL ( + - 49 ) FROM tab2 cor0
----
-49
-49
-49

query II rowsort
SELECT DISTINCT + col2 * + col0 AS col2, col2 * - + 60 + 64 AS col1 FROM tab0 cor0
----
705
-2756
870
-536
9603
-5876

query II rowsort
SELECT DISTINCT col1 * col0 AS col0, col0 FROM tab1 AS cor0
----
425
85
4277
91
714
51

query II rowsort
SELECT DISTINCT + col0 * 93, + 58 AS col0 FROM tab0 AS cor0
----
1395
58
8091
58
9021
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4467
SELECT DISTINCT SUM( DISTINCT - 38 ) AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-4467
SELECT DISTINCT SUM ( DISTINCT - 38 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-38
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - 70 FROM tab1
----
-59
-70
-68
-70
-96
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 58 col1, - col0 FROM tab2
----
58
-46
58
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT COUNT( + + 60 ) + COUNT( * ) * ( + 59 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
180

skipif mysql # not compatible
query I rowsort label-4470
SELECT COUNT ( + + 60 ) + COUNT ( * ) * ( + 59 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
180

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 11 / col1 * col0 * + + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 <> - 11 + ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + - 34 + 20 FROM tab1 WHERE NOT - CAST( + 68 AS SIGNED ) BETWEEN NULL AND 29 + - + col0 * - + 43 * - + 72
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-4473
SELECT + - 34 + 20 FROM tab1 WHERE NOT - CAST ( + 68 AS INTEGER ) BETWEEN NULL AND 29 + - + col0 * - + 43 * - + 72
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT + CAST( NULL AS SIGNED ) * + - col2 * - + col1 * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT + CAST ( NULL AS INTEGER ) * + - col2 * - + col1 * + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + - 5 col1 FROM tab2 AS cor0
----
1168
3075
3881

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - MAX( 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4477
SELECT - MAX ( 29 ) FROM tab2 AS cor0
----
-29

query II rowsort
SELECT ALL - 48 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-48
23
-48
40
-48
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4479
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - + 80 NOT BETWEEN - - col1 + + CAST( NULL AS DECIMAL ) AND - col0 + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4479
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - + 80 NOT BETWEEN - - col1 + + CAST ( NULL AS REAL ) AND - col0 + col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ( SUM( DISTINCT col0 ) ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4480
SELECT ( SUM ( DISTINCT col0 ) ) col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col2 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 <> + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL - col0 FROM tab0 WHERE 44 IN ( CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - col0 FROM tab0 WHERE 44 IN ( CAST ( NULL AS INTEGER ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL + COUNT( ALL col2 ) * 28 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + COUNT ( ALL col2 ) * 28 FROM tab2
----
84

query III rowsort
SELECT * FROM tab0 WHERE ( 16 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT 55 * + col1 FROM tab1
----
2585
275
770

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 94 * col0 BETWEEN NULL AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 24 * col0 AS col1 FROM tab0
----
-2088
-2328
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT + CAST( + 50 AS SIGNED ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + CAST ( + 50 AS INTEGER ) FROM tab2
----
50

query I rowsort
SELECT 42 * - 31 + - col1 AS col1 FROM tab0
----
-1303
-1323
-1383

query I rowsort
SELECT ( - 32 ) + + 6 AS col0 FROM tab2
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT 98 col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4494
SELECT 98 col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 21 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 72 <> ( + 75 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 86 + col0 * + col0 FROM tab1 WHERE NOT 73 + - col2 IS NOT NULL
----

query I rowsort
SELECT + 42 * col0 AS col2 FROM tab1
----
2142
3570
3822

query I rowsort
SELECT 31 * - col2 + 16 AS col2 FROM tab1
----
-1813
-2092
-2960

query I rowsort
SELECT + 32 + + 48 FROM tab0
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT + 21 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 21 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 11 * + 91 FROM tab0
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT 8 * COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4504
SELECT 8 * COUNT ( * ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT - 60 + + COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 - col2 IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - 60 + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 - col2 IS NOT NULL
----
-60

query I rowsort
SELECT 14 + + 85 FROM tab2
----
99
99
99

query I rowsort
SELECT + col0 * col0 + 86 FROM tab0
----
311
7655
9495

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + 62 + ( COUNT( * ) + - COUNT( * ) ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + 62 + ( COUNT ( * ) + - COUNT ( * ) ) FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT CAST( 82 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-4509
SELECT CAST ( 82 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT ALL + col2 * 59 AS col1 FROM tab0 AS cor0 WHERE - col0 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL - COUNT( * ) + - MIN( ALL 65 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - COUNT ( * ) + - MIN ( ALL 65 ) FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT 7 * - MIN( + 29 * - 57 ) AS col2 FROM tab0
----
11571

skipif mysql # not compatible
query I rowsort label-4512
SELECT 7 * - MIN ( + 29 * - 57 ) AS col2 FROM tab0
----
11571

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 70 + ( 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - ( ( - 23 ) ) - 70 * - COUNT( * ) FROM tab1 WHERE NOT ( ( 55 ) ) = NULL
----
23

skipif mysql # not compatible
query I rowsort label-4514
SELECT - ( ( - 23 ) ) - 70 * - COUNT ( * ) FROM tab1 WHERE NOT ( ( 55 ) ) = NULL
----
23

query I rowsort
SELECT DISTINCT 7 FROM tab0 AS cor0 CROSS JOIN tab0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 60 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 - 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4518
SELECT * FROM tab0 AS cor0 WHERE NOT ( 65 ) IN ( CAST( + col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4518
SELECT * FROM tab0 AS cor0 WHERE NOT ( 65 ) IN ( CAST ( + col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - 81 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 cor0 WHERE NOT col0 >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL - col1 * ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - col1 * ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT col0 DIV - 51 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4522
SELECT col0 / - 51 AS col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT DISTINCT ( CAST( AVG ( ALL - col2 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT ( CAST ( AVG ( ALL - col2 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - 34 * ( MAX( ALL + col1 ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1598

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - 34 * ( MAX ( ALL + col1 ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1598

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 94 + + 97 BETWEEN NULL AND col1 * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT COUNT( * ) * + - MAX( DISTINCT + ( 86 ) ) * COUNT( * ) FROM tab0
----
-774

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT COUNT ( * ) * + - MAX ( DISTINCT + ( 86 ) ) * COUNT ( * ) FROM tab0
----
-774

query I rowsort
SELECT 58 AS col0 FROM tab2 WHERE NOT col0 + - col0 BETWEEN - 29 * + 70 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col2 + + col0
----

query I rowsort
SELECT DISTINCT + 23 * + - col1 AS col2 FROM tab1
----
-1081
-115
-322

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) NOT BETWEEN ( col0 ) AND ( + ( 8 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + SUM( ALL - col2 ) * - 69 FROM tab2
----
8349

skipif mysql # not compatible
query I rowsort label-4533
SELECT + SUM ( ALL - col2 ) * - 69 FROM tab2
----
8349

query I rowsort
SELECT + 25 * col1 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL MIN( + 95 ) + - 10 FROM tab0 cor0
----
85

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL MIN ( + 95 ) + - 10 FROM tab0 cor0
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4536
SELECT + + MIN( - CAST( NULL AS DECIMAL ) ) * ( 0 - - 70 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT + + MIN ( - CAST ( NULL AS REAL ) ) * ( 0 - - 70 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col2 + col0 + + col2 + col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col0 + + - 28 + 89 + + col0 * 86 AS col2 FROM tab0 cor0
----
1366
7630
8500

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT IN ( 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + 84 - - col1 FROM tab0 AS cor0
----
180
182
192

query I rowsort
SELECT - + 47 * + col0 AS col1 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT + col2 * 68 AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT 0 * + + 26 AS col1, - col2 + - - col1 + - col1 AS col1 FROM tab1
----
0
-59
0
-68
0
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) <= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + ( col2 ) AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT COUNT( + - col1 ) - 75 * SUM( DISTINCT - 89 ) FROM tab2
----
6678

skipif mysql # not compatible
query I rowsort label-4546
SELECT COUNT ( + - col1 ) - 75 * SUM ( DISTINCT - 89 ) FROM tab2
----
6678

query I rowsort
SELECT - 27 - - - col1 FROM tab1
----
-32
-41
-74

query I rowsort
SELECT + 75 - + - col0 AS col1 FROM tab2
----
121
139
150

query I rowsort
SELECT - 93 - + col1 AS col1 FROM tab1
----
-107
-140
-98

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( NOT ( - 4 ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4551
SELECT * FROM tab0 cor0 WHERE - CAST( + - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4551
SELECT * FROM tab0 cor0 WHERE - CAST ( + - col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL 7 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 7 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT 76 * - col0 FROM tab2
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT col2 FROM tab2 WHERE NOT - + col0 NOT IN ( + ( + CAST( + 10 AS SIGNED ) ) / 24 + col1 )
----

skipif mysql # not compatible
query I rowsort label-4554
SELECT col2 FROM tab2 WHERE NOT - + col0 NOT IN ( + ( + CAST ( + 10 AS INTEGER ) ) / 24 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT MIN( + col0 ) * + + SUM( ALL - col2 ) + + 1 col0 FROM tab0
----
-2339

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4555
SELECT MIN ( + col0 ) * + + SUM ( ALL - col2 ) + + 1 col0 FROM tab0
----
-2339

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - ( 55 ) ) NOT BETWEEN col2 * - 19 + col2 AND ( - col0 ) AND NOT 40 IS NULL
----
85
5
59
91
47
68

query I rowsort
SELECT 12 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT - col1 DIV - - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT - col1 / - - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - COUNT( col0 ) + + AVG ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 + col2 >= + - col1 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT - COUNT ( col0 ) + + AVG ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 + col2 >= + - col1 / col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT + MAX( + 56 ) AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4561
SELECT + MAX ( + 56 ) AS col1 FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4562
SELECT - 73 AS col1, ( MIN( DISTINCT + + 70 ) ) FROM tab0 AS cor0
----
-73
70

skipif mysql # not compatible
query II rowsort label-4562
SELECT - 73 AS col1, ( MIN ( DISTINCT + + 70 ) ) FROM tab0 AS cor0
----
-73
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4563
SELECT * FROM tab0 WHERE NOT + col2 = - 25 + - + CAST( NULL AS SIGNED ) + + - col1 * 2
----

skipif mysql # not compatible
query III rowsort label-4563
SELECT * FROM tab0 WHERE NOT + col2 = - 25 + - + CAST ( NULL AS INTEGER ) + + - col1 * 2
----

query I rowsort
SELECT ALL + + col0 + - + 22 FROM tab1 WHERE + col0 <= + + col1
----

query I rowsort
SELECT - + 96 FROM tab2 WHERE NOT ( NOT + col1 IS NOT NULL )
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4566
SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( ( - col1 < ( NULL ) ) ) )
----

query I rowsort
SELECT - col1 * + - col2 + + col2 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query II rowsort label-4569
SELECT DISTINCT 56 AS col1, col0 DIV col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
56
1
56
17
56
3

skipif mysql # not compatible
query II rowsort label-4569
SELECT DISTINCT 56 AS col1, col0 / col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
56
1
56
17
56
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT - CAST( NULL AS SIGNED ) * + col0 + - 95 + + col0 * - + 12 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4570
SELECT - CAST ( NULL AS INTEGER ) * + col0 + - 95 + + col0 * - + 12 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT col0 DIV - 38 + col1 DIV - col2 col1 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT col0 / - 38 + col1 / - col2 col1 FROM tab2 AS cor0
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + - COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT + - COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4573
SELECT ALL 55 * COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2, 1 col1 FROM tab1
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4573
SELECT ALL 55 * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2, 1 col1 FROM tab1
----
NULL
1

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( + ( 61 ) ) NOT IN ( col2 )
----
46
64
75

query II rowsort
SELECT ALL + col1 + 37, + 61 AS col0 FROM tab1 AS cor0
----
42
61
51
61
84
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 - col2 - col1 FROM tab1 AS cor0
----
-11
-57
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT - 64 + + + 49 + + 39 * COUNT( * ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - 64 + + + 49 + + 39 * COUNT ( * ) FROM tab1 AS cor0
----
102

query I rowsort
SELECT - 33 + + col2 FROM tab0 AS cor0
----
-23
14
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 - + - 69 + + col1 col2, 94 FROM tab0 AS cor0
----
111
94
231
94
71
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - 37 + - MIN( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 37 + - MIN ( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 91 - 15 FROM tab1
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 + - col1 NOT BETWEEN + + col1 AND ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT DISTINCT + col2 DIV col0 * - 8 AS col0 FROM tab0
----
-24
-8
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + col2 / col0 * - 8 AS col0 FROM tab0
----
-24
-8
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4586
SELECT col0 DIV - ( col0 ), + col2 AS col2 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-4586
SELECT col0 / - ( col0 ), + col2 AS col2 FROM tab2
----
-1
23
-1
40
-1
58

query I rowsort
SELECT ALL 50 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + col2 ) * - ( 54 ) FROM tab1
----
-3186
-3672
-5184

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * ( ( 57 ) ) >= ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + + MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + + MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + ( 30 ) AS col1 FROM tab1
----
30

query I rowsort
SELECT ALL - 9 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT - - AVG ( - - col2 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT - - AVG ( - - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + ( + - 77 ) ) FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + 53 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 53 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT 9 * - ( - MAX( ALL col0 ) ) AS col2 FROM tab2
----
675

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT 9 * - ( - MAX ( ALL col0 ) ) AS col2 FROM tab2
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL COUNT( * ) + 0 col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT ALL COUNT ( * ) + 0 col2 FROM tab1
----
3

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( - - 30 ) + + col0 AS col1 FROM tab0
----
117
127
45

query I rowsort
SELECT DISTINCT + - col0 + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT + col0 AS col0, + 84 FROM tab1 AS cor0
----
51
84
85
84
91
84

query I rowsort
SELECT ALL - + col0 + + col1 * + - col0 FROM tab2 cor0
----
-2392
-4992
-5100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + col0 <> + + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 51 * - col1 FROM tab2 cor0
----
-2601
-3417
-3927

query I rowsort
SELECT DISTINCT - ( col2 ) * 31 * - 19 + + col0 AS col1 FROM tab1 WHERE NOT + ( + col2 ) IS NOT NULL OR NOT + - col0 < - + 19 + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + COUNT( * ) * - - 53 AS col0 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + COUNT ( * ) * - - 53 AS col0 FROM tab1
----
159

query II rowsort
SELECT - 15 + - col2 AS col2, col2 AS col1 FROM tab1
----
-111
96
-74
59
-83
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT ALL col2 DIV - - 31 AS col2 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL col2 / - - 31 AS col2 FROM tab1
----
1
2
3

query I rowsort
SELECT ALL - col0 * + - 18 + - + col2 FROM tab0 AS cor0
----
1556
1647
223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 93 / + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - - COUNT( * ) * + 32 - + + 37 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4611
SELECT - - COUNT ( * ) * + 32 - + + 37 FROM tab2 AS cor0
----
59

query II rowsort
SELECT col0 - + - col0 AS col0, col1 AS col1 FROM tab2
----
128
77
150
67
92
51

query II rowsort
SELECT ALL 55 - - col2 - - 65 + + 36 * 45 AS col2, - 73 AS col1 FROM tab0
----
1750
-73
1787
-73
1839
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + 22 - + SUM( DISTINCT - 54 ) * + + 85 col0 FROM tab1
----
4612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4614
SELECT + 22 - + SUM ( DISTINCT - 54 ) * + + 85 col0 FROM tab1
----
4612

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT 72 * - COUNT( * ) - - - COUNT( * ) AS col2 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4615
SELECT 72 * - COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab1
----
-219

query I rowsort
SELECT 66 * + - 58 * - 31 - - + col0 FROM tab0
----
118683
118755
118765

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 3 IN ( + - ( - col2 ) + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + - 11 AS col1 FROM tab0
----
11
231
891

query I rowsort
SELECT + 53 - + + ( - + ( col0 ) ) FROM tab2 WHERE NOT - col2 + + col1 + - col2 IS NULL
----
117
128
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL - - CAST( - - ( ( 67 ) ) AS SIGNED ) FROM tab2 cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - - CAST ( - - ( ( 67 ) ) AS INTEGER ) FROM tab2 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + + 82 * + col2 + - col2 AS col1 FROM tab1 cor0
----
4779
5508
7776

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT - col2 DIV + 23 + + + col1 + col0 * + - col0 * - + col1 AS col0 FROM tab2 AS cor0
----
107966
315468
376940

skipif mysql # not compatible
query I rowsort label-4622
SELECT - col2 / + 23 + + + col1 + col0 * + - col0 * - + col1 AS col0 FROM tab2 AS cor0
----
107966
315468
376940

query II rowsort
SELECT ( 18 ) AS col2, 24 AS col0 FROM tab2 AS cor0
----
18
24
18
24
18
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT ALL - 86 AS col2, + COUNT( * ) FROM tab2
----
-86
3

skipif mysql # not compatible
query II rowsort label-4624
SELECT ALL - 86 AS col2, + COUNT ( * ) FROM tab2
----
-86
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 64 ) col2 FROM tab0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col0 FROM tab2 AS cor0
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4627
SELECT ALL CAST( NULL AS DECIMAL ), col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4627
SELECT ALL CAST ( NULL AS REAL ), col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + 57 * col1 < - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT + COUNT( * ) DIV + 97 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + COUNT ( * ) / + 97 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT - col1 DIV + 35 col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4630
SELECT DISTINCT - col1 / + 35 col0 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT 71 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4632
SELECT + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - col1 + - + 22 * + - 19 + - - 82 AS col2 FROM tab2 AS cor0
----
423
433
449

query I rowsort
SELECT + 9 + + col0 FROM tab0 AS cor0
----
106
24
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - 94 - + COUNT( * ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - 94 - + COUNT ( * ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col1 - + 15 AS col1 FROM tab0 AS cor0
----
-14
6
66

query I rowsort
SELECT - - col2 + col0 + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL 90 + col0 AS col1 FROM tab0 AS cor0
----
105
177
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 - 35 col2 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT ( col2 ) + + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 93 AS col2, col0 AS col0 FROM tab0
----
93
15
93
87
93
97

query I rowsort
SELECT DISTINCT + ( - + ( - col1 ) ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT - col2 * - - 76 * - - 88 FROM tab1
----
-394592
-454784
-642048

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT COUNT( * ) * 84 * + 75 AS col0 FROM tab1
----
18900

skipif mysql # not compatible
query I rowsort label-4645
SELECT COUNT ( * ) * 84 * + 75 AS col0 FROM tab1
----
18900

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - - 10 * col1 AS col2 FROM tab2 AS cor0
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ( + COUNT( * ) ) * + + 99 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4648
SELECT ( + COUNT ( * ) ) * + + 99 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
297

query II rowsort
SELECT ALL + 95, + col0 + - + col1 AS col2 FROM tab2 cor0
----
95
-13
95
-5
95
8

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 * - ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 31 * - 86 AS col2 FROM tab2
----
-2666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL + - CAST( + - 33 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + - CAST ( + - 33 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col1 * - col0 + col2 + + col1 FROM tab0 AS cor0
----
-1087
-1796
3

query I rowsort
SELECT ALL + + col1 + + - col2 * + col2 FROM tab0 cor0
----
-2128
-79
-9800

query II rowsort
SELECT DISTINCT col1 * + col2, - col2 AS col0 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4657
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4657
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT col1 DIV + col2 + + 0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4658
SELECT col1 / + col2 + + 0 FROM tab0 cor0
----
0
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4659
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4659
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT ALL ( + + 86 ) FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + ( + + 79 ) + col0 + + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 97 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4662
SELECT 97 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - ( col1 ) FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT DISTINCT 2 * + + col2 AS col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT + CAST( - col1 AS SIGNED ) * 4 FROM tab0
----
-324
-4
-84

skipif mysql # not compatible
query I rowsort label-4666
SELECT + CAST ( - col1 AS INTEGER ) * 4 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT DISTINCT + col2 + + - 12 * - col0 FROM tab0
----
1054
1263
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + - col1 col0, - 40 FROM tab0 WHERE NULL IS NULL
----
-66
-40
66
-40
96
-40

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + - 75 - + 62 + col0 + - ( - 71 ) * col0 + col0 * + - 38 AS col2 FROM tab1 cor0
----
5497
9203
9857

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT COUNT( - col2 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4670
SELECT DISTINCT COUNT ( - col2 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4671
SELECT + + CAST( NULL AS DECIMAL ) * + col0 * + - col2 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + + CAST ( NULL AS REAL ) * + col0 * + - col2 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT col0 DIV + + col0 + - 0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4672
SELECT col0 / + + col0 + - 0 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - - 99
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 99 NOT BETWEEN + - 57 AND - + 21
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 38 AND NULL
----

query I rowsort
SELECT ALL - col2 + - + col0 - col2 AS col1 FROM tab0 AS cor0
----
-107
-109
-295

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 < 68 + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT DISTINCT + MIN( ALL + col2 ) AS col0, + COUNT( * ) FROM tab1 cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-4678
SELECT DISTINCT + MIN ( ALL + col2 ) AS col0, + COUNT ( * ) FROM tab1 cor0
----
59
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT DISTINCT - CAST( + 4 AS SIGNED ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT - CAST ( + 4 AS INTEGER ) FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - CAST( - 4 AS SIGNED ) FROM tab2 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4680
SELECT - CAST ( - 4 AS INTEGER ) FROM tab2 cor0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 68 + - col2 BETWEEN 31 AND - - col1
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4682
SELECT + 96 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
96
NULL
96
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4682
SELECT + 96 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
96
NULL
96
NULL
96
NULL

query II rowsort
SELECT ALL 48 AS col2, col2 FROM tab0
----
48
10
48
47
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT 64 + + COUNT( * ) FROM tab2 WHERE NOT - 95 IN ( + 72 * - + 55 / - - 14, + col0 )
----
67

skipif mysql # not compatible
query I rowsort label-4684
SELECT 64 + + COUNT ( * ) FROM tab2 WHERE NOT - 95 IN ( + 72 * - + 55 / - - 14, + col0 )
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + + col2 ) * + col1 col0 FROM tab1 cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT col0 + 53, col1 FROM tab2 WHERE NOT + col1 <> + col0
----

query I rowsort
SELECT ALL + - 72 FROM tab1 cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 69 AS col2, + ( + + col2 ) + + - 79 * + 17 col1 FROM tab0 AS cor0
----
69
-1244
69
-1296
69
-1333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT - + CAST( + + COUNT( ALL - - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - + CAST ( + + COUNT ( ALL - - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( + + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + 50 * + ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4692
SELECT + 50 * + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT CAST( - 60 AS SIGNED ) FROM tab0 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-4693
SELECT CAST ( - 60 AS INTEGER ) FROM tab0 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT - - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col2 ) + + - 92 col0 FROM tab0 AS cor0
----
-45
-82
7

query I rowsort
SELECT - col0 * - - col2 + col2 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 70 / col1 NOT BETWEEN NULL AND + 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + + col1 * col1 * + 63 col2 FROM tab1 AS cor0
----
-12252
-139099
-1516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( - + 34 ) ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT - col1 * + 11 + col2 DIV + + col2 FROM tab2 AS cor0
----
-560
-736
-846

skipif mysql # not compatible
query I rowsort label-4700
SELECT - col1 * + 11 + col2 / + + col2 FROM tab2 AS cor0
----
-560
-736
-846

query I rowsort
SELECT DISTINCT - - col1 - - 76 + col0 FROM tab0 cor0
----
172
174
184

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 11 * + col0 * - 30 + + col2 * + col0 * + col2 * - 1 + + - 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + COUNT( * ) * + COUNT( * ) * + - 26 AS col2 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4703
SELECT + COUNT ( * ) * + COUNT ( * ) * + - 26 AS col2 FROM tab0 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4704
SELECT * FROM tab1 AS cor0 WHERE NOT - 48 IN ( - - CAST( - col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4704
SELECT * FROM tab1 AS cor0 WHERE NOT - 48 IN ( - - CAST ( - col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 82 AS col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col0 + 27
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 67 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT + col0 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 58 * + - 32 AS col2 FROM tab0
----
1856
1856
1856

query II rowsort
SELECT ALL - col0 * col1, - col1 AS col1 FROM tab0
----
-1215
-81
-1827
-21
-97
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + ( - 10 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab1
----
85
85
85

query I rowsort
SELECT DISTINCT - 53 * + + col0 AS col0 FROM tab2
----
-2438
-3392
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + MAX( DISTINCT - - 4 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4715
SELECT + MAX ( DISTINCT - - 4 ) FROM tab2 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - 13 col1 FROM tab1
----
-1053
-1053
-1053

query I rowsort
SELECT 30 + - 16 FROM tab2
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT ALL col1 * col1 * col2 * - col0 DIV + 1 AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL col1 * col1 * col2 * - col0 / + 1 AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col1 <> + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 AS col2, + 89 AS col2 FROM tab0 AS cor0
----
1
89
21
89
81
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT + ( + ( col2 ) ) DIV + col0 + - - 67 + col2 - + 52 FROM tab0 cor0
----
115
25
65

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + ( + ( col2 ) ) / + col0 + - - 67 + col2 - + 52 FROM tab0 cor0
----
115
25
65

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 35 <> NULL
----

query I rowsort
SELECT 48 FROM tab2 WHERE col0 * col2 * col2 * - - col0 * 49 BETWEEN NULL AND + - 63
----

query I rowsort
SELECT DISTINCT col2 * col1 * 3 FROM tab2
----
11658
3519
9240

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT + COUNT( * ) * MIN( ALL - - col1 ) AS col2 FROM tab1 WHERE ( - ( - col0 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + COUNT ( * ) * MIN ( ALL - - col1 ) AS col2 FROM tab1 WHERE ( - ( - col0 ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL + + COUNT( * ) * - COUNT( DISTINCT - 80 ) AS col2 FROM tab0 WHERE col0 * - 46 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + + COUNT ( * ) * - COUNT ( DISTINCT - 80 ) AS col2 FROM tab0 WHERE col0 * - 46 IS NOT NULL
----
-3

query I rowsort
SELECT + col1 - + ( + 16 ) FROM tab0
----
-15
5
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT + col2 * + col2 - - 23 DIV + + col2 AS col2 FROM tab2
----
1600
3364
530

skipif mysql # not compatible
query I rowsort label-4728
SELECT + col2 * + col2 - - 23 / + + col2 AS col2 FROM tab2
----
1600
3364
530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT - 9 - - - CAST( col1 AS SIGNED ) FROM tab0
----
-10
-30
-90

skipif mysql # not compatible
query I rowsort label-4729
SELECT - 9 - - - CAST ( col1 AS INTEGER ) FROM tab0
----
-10
-30
-90

query I rowsort
SELECT 22 + col2 AS col2 FROM tab0 AS cor0 WHERE ( + col0 * - + col1 * col2 / + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT DISTINCT + 93 DIV col1 + - col2 * 21 FROM tab0 AS cor0
----
-1986
-206
-986

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT + 93 / col1 + - col2 * 21 FROM tab0 AS cor0
----
-1986
-206
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT COUNT( * ) - - MAX( + 18 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT COUNT ( * ) - - MAX ( + 18 ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT 28 / 26 AS col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT ( - 20 ) + col2 + + col0 FROM tab0 AS cor0
----
176
42
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT MIN( - col1 ) + + + 99 + + + 71 DIV - MIN( - col1 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4735
SELECT MIN ( - col1 ) + + + 99 + + + 71 / - MIN ( - col1 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL + + col2 - 7 AS col1 FROM tab1 AS cor0
----
52
61
89

query I rowsort
SELECT ALL + - col1 * 25 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * + + col0 * - col2 + col1 NOT IN ( + col0, 48 + + ( - 32 ) - + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL MAX( col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL MAX ( col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 63 + + 30 BETWEEN + 30 + + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4739
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 63 + + 30 BETWEEN + 30 + + col0 AND NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT - col0 DIV col0 DIV - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT - col0 / col0 / - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - 98 * - 88 AS col0, col2 FROM tab2 AS cor0
----
8624
23
8624
40
8624
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4742
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 + - - col2 * + - 14 + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4742
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 + - - col2 * + - 14 + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col2 * - 64 * + 17 AS col1 FROM tab0 AS cor0
----
-10663488
-108800
-2403392

query I rowsort
SELECT + col2 + 70 FROM tab2 WHERE NOT + - 2 / + col2 IS NULL
----
110
128
93

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND col1 * col0 + 97
----

query II rowsort
SELECT ALL col0 AS col0, - col1 + + + col0 AS col0 FROM tab1
----
51
37
85
80
91
44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4747
SELECT CAST( NULL AS DECIMAL ) AS col0, - 31 * col0 * ( - 32 ) AS col1 FROM tab0
----
NULL
14880
NULL
86304
NULL
96224

skipif mysql # not compatible
query II rowsort label-4747
SELECT CAST ( NULL AS REAL ) AS col0, - 31 * col0 * ( - 32 ) AS col1 FROM tab0
----
NULL
14880
NULL
86304
NULL
96224

query I rowsort
SELECT + col2 + + 87 FROM tab0 WHERE NOT NULL IS NOT NULL
----
134
186
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT COUNT( DISTINCT + 56 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4749
SELECT COUNT ( DISTINCT + 56 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + 47 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL CAST( + + 29 AS SIGNED ) AS col2 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL CAST ( + + 29 AS INTEGER ) AS col2 FROM tab0
----
29
29
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 - + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + - + 45 col1 FROM tab0 AS cor0
----
-109
-109
-109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4754
SELECT col0 + + - ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT col0 + + - ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT - COUNT( * ) * - + MAX( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4755
SELECT - COUNT ( * ) * - + MAX ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT - - col1 DIV + 94 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT - - col1 / + 94 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT col1 * + col2 * - col1 AS col2 FROM tab0 WHERE + - col2 * + + col0 IS NOT NULL
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + + MAX( col1 ) - - SUM( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
272

skipif mysql # not compatible
query I rowsort label-4759
SELECT + + MAX ( col1 ) - - SUM ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
272

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4760
SELECT ALL - col2 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - col2 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT 24 + + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4761
SELECT 24 + + COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4762
SELECT ALL + 79 * CAST( NULL AS SIGNED ) AS col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL + 79 * CAST ( NULL AS INTEGER ) AS col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4763
SELECT - 99 + + 17 + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT - 99 + + 17 + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - + COUNT( * ) + 58 col0 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4764
SELECT - + COUNT ( * ) + 58 col0 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + 53 + - COUNT( * ) AS col2 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-4765
SELECT + 53 + - COUNT ( * ) AS col2 FROM tab0
----
50

query I rowsort
SELECT 93 * - + 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 + + - 87 FROM tab2 AS cor0
----
-29
-47
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + COUNT( * ) * - - 92 AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4768
SELECT + COUNT ( * ) * - - 92 AS col0 FROM tab1
----
276

query I rowsort
SELECT ALL col2 * + - 50 AS col0 FROM tab1
----
-2950
-3400
-4800

query II rowsort
SELECT ALL col0, 75 AS col1 FROM tab0 AS cor0
----
15
75
87
75
97
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT + + MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + + MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 87 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL + CAST( NULL AS SIGNED ) / CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + CAST ( NULL AS INTEGER ) / CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 1 * + + 65 AS col2 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ALL ( 90 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL ( 90 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= - 5 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL COUNT( * ) col0 FROM tab0 AS cor0 WHERE 18 * + col2 NOT BETWEEN - + col0 * col0 AND ( + ( + col2 ) )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4777
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 WHERE 18 * + col2 NOT BETWEEN - + col0 * col0 AND ( + ( + col2 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + SUM( DISTINCT - - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4778
SELECT + SUM ( DISTINCT - - col2 ) AS col2 FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 WHERE NOT + 2 NOT IN ( + + 55, 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT ALL + col0 FROM tab1 WHERE NULL NOT BETWEEN col2 AND - + ( - CAST( + col2 AS SIGNED ) ) + - col0
----

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + col0 FROM tab1 WHERE NULL NOT BETWEEN col2 AND - + ( - CAST ( + col2 AS INTEGER ) ) + - col0
----

query I rowsort
SELECT DISTINCT col2 + - 23 FROM tab0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT COUNT( * ) * - 68 + 99 * + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-4782
SELECT COUNT ( * ) * - 68 + 99 * + COUNT ( * ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - ( SUM( col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4783
SELECT - ( SUM ( col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT 86 - + + col0 FROM tab1 AS cor0
----
-5
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IN ( + col0, - col2, - - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IN ( + col0, - col2, - - col0 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT DISTINCT col1 - - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT col1 - - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT + col1 AS col0, + col0 * col1 AS col2 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 1 + - - col1 * - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT DISTINCT - + COUNT( * ) AS col2, 88 FROM tab1 AS cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-4789
SELECT DISTINCT - + COUNT ( * ) AS col2, 88 FROM tab1 AS cor0
----
-3
88

query I rowsort
SELECT 24 - col1 - - ( 81 ) AS col1 FROM tab1
----
100
58
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) - - 27 AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) - - 27 AS col0 FROM tab1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT - 26 * + - COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4792
SELECT - 26 * + - COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 - - 14 col1 FROM tab1
----
79
79
79

query I rowsort
SELECT - 24 * - col2 AS col2 FROM tab2 cor0
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 18 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 18 > NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - + SUM( + + ( + + col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - + SUM ( + + ( + + col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL 9 * col2 AS col1 FROM tab2 AS cor0
----
207
360
522

query I rowsort
SELECT DISTINCT + 15 * 11 AS col2 FROM tab2
----
165

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 69 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + + 15 FROM tab0 AS cor0
----
1215
15
315

query I rowsort
SELECT DISTINCT - + ( 81 ) AS col2 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL < col2
----
0

query I rowsort
SELECT col1 * + col2 - - 74 AS col0 FROM tab1 WHERE NOT + 55 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT + col2 = + col0
----
-3

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + col2 = + col0
----
-3

query I rowsort
SELECT ALL + 36 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 92 + 18 * col1 AS col0 FROM tab0
----
-74
1366
286

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT ALL - ( + COUNT( * ) ) AS col1, + 57 AS col1 FROM tab1 cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-4811
SELECT ALL - ( + COUNT ( * ) ) AS col1, + 57 AS col1 FROM tab1 cor0
----
-3
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT + - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT + - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 FROM tab2 AS cor0 WHERE + 38 + col2 IS NULL
----

query I rowsort
SELECT + - 80 * 69 * col1 FROM tab2 AS cor0
----
-281520
-369840
-425040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + - + col0 * + 93 * col2 col2 FROM tab1 WHERE NULL NOT BETWEEN - 7 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL - 13 + - COUNT( DISTINCT - - col2 ) AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - 13 + - COUNT ( DISTINCT - - col2 ) AS col0 FROM tab0
----
-16

query I rowsort
SELECT DISTINCT + col1 - + 72 * + + col1 FROM tab0 AS cor0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - + 25 * + COUNT( * ) + + SUM( ALL col0 ) AS col0 FROM tab1 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-4818
SELECT - + 25 * + COUNT ( * ) + + SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
152

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT - COUNT( * ) + + MAX( - col1 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4820
SELECT - COUNT ( * ) + + MAX ( - col1 ) FROM tab1 AS cor0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 + - col2 col2, 76, + + 27 AS col2 FROM tab0 AS cor0
----
9 values hashing to ed2482c28ca3e144e9a72b8f1d06d202

query I rowsort
SELECT - + col1 + + col2 * - + 53 FROM tab2 AS cor0
----
-1270
-2197
-3141

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT col0 DIV col1 + col0 + - col0 + 52 + - - 3 AS col2 FROM tab1 AS cor0
----
56
58
72

skipif mysql # not compatible
query I rowsort label-4823
SELECT col0 / col1 + col0 + - col0 + 52 + - - 3 AS col2 FROM tab1 AS cor0
----
56
58
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4824
SELECT DISTINCT + 1 DIV - + 19 - - - col2 + + col0 + col2 + + - CAST( - ( - 39 ) AS SIGNED ) * - 87 * + col1 + - + 92 DIV + - 59 + - col0 AS col0 FROM tab1 AS cor0
----
159472
16966
47503

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT + 1 / - + 19 - - - col2 + + col0 + col2 + + - CAST ( - ( - 39 ) AS INTEGER ) * - 87 * + col1 + - + 92 / + - 59 + - col0 AS col0 FROM tab1 AS cor0
----
159472
16966
47503

query I rowsort
SELECT 54 + - + col1 AS col2 FROM tab2 AS cor0
----
-13
-23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT MIN( - col2 ) * - 80 + - + 27 FROM tab1 cor0
----
7653

skipif mysql # not compatible
query I rowsort label-4826
SELECT MIN ( - col2 ) * - 80 + - + 27 FROM tab1 cor0
----
7653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0 WHERE ( col1 ) IS NULL
----

query II rowsort
SELECT col2 + + 60 * - - col2, + col0 * col1 AS col2 FROM tab2 AS cor0
----
1403
2346
2440
4928
3538
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4829
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT - col0 ) - - AVG ( - 47 ) * - 64 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT - col0 ) - - AVG ( - 47 ) * - 64 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + col0 + - 34 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * 78 + + - col2 FROM tab2 WHERE NOT col2 IS NULL
----
-1817
-3160
-4582

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + ( - col0 )
----

query II rowsort
SELECT ALL - - col2 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab2 cor0
----
75

query I rowsort
SELECT + - 38 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= - 45
----

query I rowsort
SELECT ALL col0 * + ( + col1 ) * + col0 AS col2 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT + + 31 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-9
8

query I rowsort
SELECT 98 + - - col2 + col2 * col1 + - + 38 FROM tab0 AS cor0
----
258
280
3914

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT + COUNT( ALL 26 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT + COUNT ( ALL 26 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ALL + ( + col1 ) AS col0, - 80 AS col2 FROM tab1 AS cor0
----
14
-80
47
-80
5
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL COUNT( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL COUNT ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 18 * - col1 AS col2 FROM tab2 AS cor0
----
1206
1386
918

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL + MAX( ALL 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + MAX ( ALL 3 ) FROM tab1
----
3

query I rowsort
SELECT ALL ( + col1 ) + + + 6 FROM tab2
----
57
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT MAX( DISTINCT + - 4 ) AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-4849
SELECT MAX ( DISTINCT + - 4 ) AS col2 FROM tab1
----
-4

query I rowsort
SELECT ALL - 31 * - ( + - 65 ) FROM tab2
----
-2015
-2015
-2015

query I rowsort
SELECT DISTINCT 19 + + col2 AS col1 FROM tab1
----
115
78
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT - col2 + - CAST( NULL AS SIGNED ) * CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - col2 + - CAST ( NULL AS INTEGER ) * CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 4 * 46 AS col0 FROM tab0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 1 + + + SUM( ALL + - col1 ) FROM tab2
----
-194

skipif mysql # not compatible
query I rowsort label-4855
SELECT 1 + + + SUM ( ALL + - col1 ) FROM tab2
----
-194

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT 82 AS col1, - COUNT( DISTINCT - 35 ) * + + COUNT( * ) + + 98 AS col2 FROM tab0
----
82
95

skipif mysql # not compatible
query II rowsort label-4856
SELECT 82 AS col1, - COUNT ( DISTINCT - 35 ) * + + COUNT ( * ) + + 98 AS col2 FROM tab0
----
82
95

query I rowsort
SELECT DISTINCT + 53 + + + col0 FROM tab0
----
140
150
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 22 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + COUNT( * ) - 41 FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + COUNT ( * ) - 41 FROM tab1 cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( + 7 ) col2 FROM tab1 cor0
----
-12
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT ALL + - 26 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + - 26 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL CAST( NULL AS SIGNED ) / - col2 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT ALL - MAX( col1 ) AS col2, COUNT( * ) - - + COUNT( * ) + + + 4 FROM tab0
----
-81
10

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL - MAX ( col1 ) AS col2, COUNT ( * ) - - + COUNT ( * ) + + + 4 FROM tab0
----
-81
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - 45 * - COUNT( * ) FROM tab1 WHERE NOT 80 - col0 IS NULL
----
135

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 45 * - COUNT ( * ) FROM tab1 WHERE NOT 80 - col0 IS NULL
----
135

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 * col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT + 69 * - COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4866
SELECT + 69 * - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - 39 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL + MAX( ( + + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + MAX ( ( + + col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT COUNT( * ) DIV - ( 86 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT COUNT ( * ) / - ( 86 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - - 16 * - - 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to af6ba67e280190d1bd38bd7e5d1849fb

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT DISTINCT - - col0 * - + ( - col0 ) + + col0 DIV col1 AS col2 FROM tab1 cor0
----
2604
7242
8282

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - - col0 * - + ( - col0 ) + + col0 / col1 AS col2 FROM tab1 cor0
----
2604
7242
8282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * - + col0 col2 FROM tab2 AS cor0
----
1050
644
896

query I rowsort
SELECT + col1 * - - col0 * - + col1 AS col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4875
SELECT + CAST( + CAST( - 64 AS SIGNED ) AS SIGNED ) AS col0, col0 AS col2 FROM tab0 AS cor0
----
-64
15
-64
87
-64
97

skipif mysql # not compatible
query II rowsort label-4875
SELECT + CAST ( + CAST ( - 64 AS INTEGER ) AS INTEGER ) AS col0, col0 AS col2 FROM tab0 AS cor0
----
-64
15
-64
87
-64
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4876
SELECT ALL + col2, col0 DIV - + col1 FROM tab1 AS cor0
----
59
-17
68
-1
96
-3

skipif mysql # not compatible
query II rowsort label-4876
SELECT ALL + col2, col0 / - + col1 FROM tab1 AS cor0
----
59
-17
68
-1
96
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab0 AS cor0 WHERE NOT ( 93 * + col0 / + 8 IS NULL )
----
94
94
94

query I rowsort
SELECT ALL - col1 + 23 FROM tab2 WHERE NOT ( + 54 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT + 81 + + - SUM( ALL + - col1 ) col2 FROM tab0
----
184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT + 81 + + - SUM ( ALL + - col1 ) col2 FROM tab0
----
184

query I rowsort
SELECT DISTINCT - 92 * - col1 FROM tab2
----
4692
6164
7084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4881
SELECT - CAST( - - col2 AS SIGNED ), col0 FROM tab1 WHERE NULL IS NULL
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
query II rowsort label-4881
SELECT - CAST ( - - col2 AS INTEGER ), col0 FROM tab1 WHERE NULL IS NULL
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - col2 + + col0 * + - col2 AS col1 FROM tab1
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - COUNT( * ) + 32 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - COUNT ( * ) + 32 FROM tab2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT + COUNT( * ) * + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT + COUNT ( * ) * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT DISTINCT - 17 DIV col1 + - + col1 FROM tab0 AS cor0
----
-18
-21
-81

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - 17 / col1 + - + col1 FROM tab0 AS cor0
----
-18
-21
-81

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT - 63 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61 * - col2 + col2, + 82 col2 FROM tab2
----
-1380
82
-2400
82
-3480
82

query I rowsort
SELECT + col2 + + 84 - - 37 AS col2 FROM tab1 AS cor0
----
180
189
217

query I rowsort
SELECT ALL - col1 + 75 FROM tab2 AS cor0
----
-2
24
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + + COUNT( * ) + + - COUNT( * ) + + MIN( + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4891
SELECT + + COUNT ( * ) + + - COUNT ( * ) + + MIN ( + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT ( - COUNT( col1 ) ), - COUNT( * ) AS col1 FROM tab0 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4892
SELECT ( - COUNT ( col1 ) ), - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 88 ) col0 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT col0 * 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-4895
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT ALL col1 DIV ( - + col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL col1 / ( - + col2 ) FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT - CAST( + ( + 97 ) AS SIGNED ) FROM tab1
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-4897
SELECT - CAST ( + ( + 97 ) AS INTEGER ) FROM tab1
----
-97
-97
-97

query II rowsort
SELECT + col1 AS col0, - ( + col2 ) AS col1 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT 19 * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT 19 * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT col2 * + + col1 * ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT col2 * + + col1 * ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0, - col0 AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT - col2 * - - 84 FROM tab2 AS cor0
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - 40 + + COUNT( * ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-4903
SELECT - 40 + + COUNT ( * ) FROM tab0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + ( + col0 ) + col0 col0 FROM tab0 AS cor0
----
261
291
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 > - 54
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + MIN( DISTINCT + 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4906
SELECT + MIN ( DISTINCT + 91 ) FROM tab0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT 26 * CAST( - COUNT( * ) AS SIGNED ) * + COUNT( - 91 ) AS col1 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT 26 * CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( - 91 ) AS col1 FROM tab0
----
-234

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT ( + 41 IS NULL )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL CAST( NULL AS SIGNED ) + + 8 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL CAST ( NULL AS INTEGER ) + + 8 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + - 31 ) AS col0 FROM tab0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT SUM( DISTINCT + col0 ) - 24 FROM tab1
----
203

skipif mysql # not compatible
query I rowsort label-4912
SELECT SUM ( DISTINCT + col0 ) - 24 FROM tab1
----
203

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <= + 20 / - 72 * col2
----

query I rowsort
SELECT DISTINCT + col0 * - + col0 + col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL ( CAST( + 51 AS SIGNED ) ) + - + col2 FROM tab1 cor0
----
-17
-45
-8

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL ( CAST ( + 51 AS INTEGER ) ) + - + col2 FROM tab1 cor0
----
-17
-45
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4916
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( 8 AS SIGNED ) * - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-4916
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( 8 AS INTEGER ) * - col0 <= NULL
----

query I rowsort
SELECT col2 * - 78 AS col2 FROM tab0
----
-3666
-7722
-780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4918
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + col0 AS SIGNED ) / - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4918
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + col0 AS INTEGER ) / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT col0 * + 88 <= NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE 15 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( 98 ) AS col0 FROM tab1
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - SUM( DISTINCT col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4923
SELECT - SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT 19 * - 13 - + MAX( 9 + + col1 / CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT 19 * - 13 - + MAX ( 9 + + col1 / CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col2 FROM tab0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 / 59 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 - + 59 FROM tab2
----
-13
16
5

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN col1 * col0 AND + 31
----

query I rowsort
SELECT ( + 69 ) FROM tab2
----
69
69
69

query I rowsort
SELECT - ( - col0 ) + col2 * 2 AS col1 FROM tab0
----
107
109
295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT + COUNT( * ) DIV 67 + 23 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND 82 * 77
----
23

skipif mysql # not compatible
query I rowsort label-4932
SELECT + COUNT ( * ) / 67 + 23 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND 82 * 77
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 19 + COUNT( * ) * 37 FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 19 + COUNT ( * ) * 37 FROM tab0
----
130

query I rowsort
SELECT - 35 + - 53 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT + col2 + + 55 FROM tab2
----
113
78
95

query I rowsort
SELECT - 8 + ( - 13 - - 9 ) AS col1 FROM tab0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 + col0 col1 FROM tab0
----
112
122
40

query I rowsort
SELECT col2 * + col1 FROM tab1 WHERE NOT - col1 NOT IN ( - col2 )
----

query I rowsort
SELECT + 91 FROM tab0 WHERE col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + COUNT( ALL + 60 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + COUNT ( ALL + 60 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT + ( COUNT( * ) ) + + MIN( - 83 ) AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-4941
SELECT + ( COUNT ( * ) ) + + MIN ( - 83 ) AS col0 FROM tab0
----
-80

query I rowsort
SELECT ALL 20 * - col2 + 57 AS col2 FROM tab2 cor0
----
-1103
-403
-743

query I rowsort
SELECT 36 * + col2 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 IN ( - col0 * - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT DISTINCT 3 DIV + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT 3 / + col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4946
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4946
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT - col0 DIV - 27 FROM tab1 AS cor0
----
1
3
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT - col0 / - 27 FROM tab1 AS cor0
----
1
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT ALL COUNT( col1 ) DIV COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL COUNT ( col1 ) / COUNT ( * ) AS col0 FROM tab1
----
1

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NULL = col1 - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 56 col0 FROM tab0 AS cor0
----
1176
4536
56

query I rowsort
SELECT ALL - col0 * 18 + col2 FROM tab2 AS cor0
----
-1112
-1292
-805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT 79 + CAST( COUNT( DISTINCT + col1 ) + - 28 * + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4952
SELECT 79 + CAST ( COUNT ( DISTINCT + col1 ) + - 28 * + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-2

query I rowsort
SELECT + col1 * - col2 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT - 70 AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + 33 / + 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT ALL CAST( 3 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL CAST ( 3 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT DISTINCT - - COUNT( * ) + + 44 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - - COUNT ( * ) + + 44 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT 8 DIV - 23 * - 12 + + 79 AS col0 FROM tab0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-4958
SELECT 8 / - 23 * - 12 + + 79 AS col0 FROM tab0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT + 17 * COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + 17 * COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / col1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 52 * col2 + col2 * 37 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT DISTINCT - 14 * - col2 + col2 + col0 * + col2 FROM tab2 AS cor0
----
1403
3160
5220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * 38 - - ( 38 ) * - col1 col0 FROM tab1 AS cor0
----
1406
1672
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL - + SUM( ALL 57 ) + - SUM( DISTINCT - 0 ) AS col2 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - + SUM ( ALL 57 ) + - SUM ( DISTINCT - 0 ) AS col2 FROM tab2 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 - - col2 FROM tab1 WHERE NOT - + col2 / col1 = NULL
----

query I rowsort
SELECT + 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4969
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IS NULL OR col1 BETWEEN + 41 / col2 + CAST( NULL AS SIGNED ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4969
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IS NULL OR col1 BETWEEN + 41 / col2 + CAST ( NULL AS INTEGER ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + 37 + + col2 FROM tab0 AS cor0
----
3229
3688
602

query I rowsort
SELECT DISTINCT + ( + + col1 ) * - - col1 + col1 AS col2 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - - 90 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - - 90 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
270

query I rowsort
SELECT ALL col0 + - ( col0 ) FROM tab0 AS cor0 WHERE - col1 <> - col2
----
0
0
0

query II rowsort
SELECT 5 AS col1, ( + col0 ) * + 6 AS col0 FROM tab2 cor0
----
5
276
5
384
5
450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4975
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) + + 91 * - col1 NOT IN ( CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-4975
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) + + 91 * - col1 NOT IN ( CAST ( NULL AS INTEGER ) + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL 27 * + COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 27 * + COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT - + ( + COUNT( * ) ) * - 71 + + COUNT( + 49 ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT - + ( + COUNT ( * ) ) * - 71 + + COUNT ( + 49 ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - + col1 AS col2, 51 FROM tab1 AS cor0
----
-14
51
-47
51
-5
51

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL CAST( - ( + 54 ) AS SIGNED ) FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL CAST ( - ( + 54 ) AS INTEGER ) FROM tab1
----
-54
-54
-54

query I rowsort
SELECT - 99 - - col0 / 13 AS col2 FROM tab1 WHERE NOT ( col0 ) > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT - 81 * + CAST( + + ( - - col2 ) AS SIGNED ) col0 FROM tab2
----
-1863
-3240
-4698

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4982
SELECT DISTINCT - 81 * + CAST ( + + ( - - col2 ) AS INTEGER ) col0 FROM tab2
----
-1863
-3240
-4698

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( - 55 + - 43 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) = col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + col2 * - + col1 AS col1 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT col2 * - col1 * - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT - COUNT( * ) DIV + 30 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4987
SELECT DISTINCT - COUNT ( * ) / + 30 col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4988
SELECT - CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT - CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4990
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> ( CAST( NULL AS SIGNED ) * + col0 - - col2 )
----

skipif mysql # not compatible
query III rowsort label-4990
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> ( CAST ( NULL AS INTEGER ) * + col0 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT col1 * + col0 + + CAST( NULL AS SIGNED ) + - col2 * - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT col1 * + col0 + + CAST ( NULL AS INTEGER ) + - col2 * - - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4992
SELECT - col1 DIV + - 95 + 61 AS col0 FROM tab1
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4992
SELECT - col1 / + - 95 + 61 AS col0 FROM tab1
----
61
61
61

query I rowsort
SELECT - 1 + - - col2 FROM tab0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4994
SELECT - CAST( NULL AS SIGNED ) + - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT - CAST ( NULL AS INTEGER ) + - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 7 AS col1 FROM tab1 AS cor0 WHERE - 56 * - 40 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - ( - 81 ) )
----

query I rowsort
SELECT col2 * - 27 FROM tab0 AS cor0
----
-1269
-2673
-270

query I rowsort
SELECT - ( + + 45 ) * - 31 AS col0 FROM tab0 AS cor0
----
1395
1395
1395

query I rowsort
SELECT ALL - col1 * 4 FROM tab0 AS cor0
----
-324
-4
-84

query I rowsort
SELECT - col0 - + + 80 AS col1 FROM tab0
----
-167
-177
-95

query II rowsort
SELECT ALL + 81 AS col2, col2 + 87 FROM tab1
----
81
146
81
155
81
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL + MIN( DISTINCT - 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL + MIN ( DISTINCT - 17 ) FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + COUNT( * ) col2 FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN col2 AND NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5003
SELECT ALL + COUNT ( * ) col2 FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN col2 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT + 94, COUNT( * ) AS col1 FROM tab2 AS cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-5004
SELECT + 94, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
94
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT - + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5005
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 40 - - - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 76 <> + col0 - - + col0 / + + col0
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 14 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT ALL col1 DIV + 32 AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND col2 - - ( - col2 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL col1 / + 32 AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND col2 - - ( - col2 )
----
0
0
1

query I rowsort
SELECT - + ( - + 5 ) FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5014
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + COUNT( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5015
SELECT + COUNT ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 71 + - col1 FROM tab0
----
-152
-72
-92

query I rowsort
SELECT ALL - col1 * - + 53 * + ( - + 44 ) FROM tab1
----
-109604
-11660
-32648

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT DISTINCT + COUNT( * ) * - ( COUNT( * ) ), 67 * - 2 * + 54 AS col2 FROM tab0
----
-9
-7236

skipif mysql # not compatible
query II rowsort label-5018
SELECT DISTINCT + COUNT ( * ) * - ( COUNT ( * ) ), 67 * - 2 * + 54 AS col2 FROM tab0
----
-9
-7236

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5019
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( CAST( - - col2 AS SIGNED ), + 74 )
----

skipif mysql # not compatible
query III rowsort label-5019
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( - - col2 AS INTEGER ), + 74 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT 63 * 75 DIV - + 76 + - + CAST( 90 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT 63 * 75 / - + 76 + - + CAST ( 90 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT - + COUNT( * ) DIV COUNT( * ) + - - COUNT( * ) col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5021
SELECT - + COUNT ( * ) / COUNT ( * ) + - - COUNT ( * ) col2 FROM tab2 AS cor0
----
2

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 + - 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5023
SELECT ( CAST( NULL AS SIGNED ) ) * 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT ( CAST ( NULL AS INTEGER ) ) * 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT 75 + COUNT( * ) * + 9 + 20 AS col0 FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT 75 + COUNT ( * ) * + 9 + 20 AS col0 FROM tab0 AS cor0
----
122

query II rowsort
SELECT + 86 AS col0, 27 + col0 + + 56 FROM tab1 AS cor0
----
86
134
86
168
86
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT - + MIN( ALL col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5026
SELECT - + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT MIN( DISTINCT + - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5027
SELECT MIN ( DISTINCT + - 99 ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT - col0 * + + 3 * - CAST( NULL AS SIGNED ) + - 9 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT - col0 * + + 3 * - CAST ( NULL AS INTEGER ) + - 9 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col0 col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT col2 * col1 AS col2 FROM tab1 AS cor0 WHERE + 25 / + ( 10 ) + + col0 + col1 + - + col2 + + + col1 * - col2 * col0 IS NOT NULL
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT CAST( NULL AS SIGNED ) / - - 77 + 62 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT CAST ( NULL AS INTEGER ) / - - 77 + 62 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 2 <= ( 33 * + - 14 * - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT COUNT( * ) + + 78 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5034
SELECT COUNT ( * ) + + 78 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL - col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL >= + 40
----

query I rowsort
SELECT - 40 * - col1 + + 86 AS col0 FROM tab0 AS cor0
----
126
3326
926

query II rowsort
SELECT + col0 + + 29 AS col1, - 26 FROM tab1 AS cor0
----
114
-26
120
-26
80
-26

query I rowsort
SELECT ALL + ( col2 ) * - 53 * - col1 + - + 66 AS col1 FROM tab1 AS cor0
----
15569
169322
71166

query I rowsort
SELECT + col0 + + col1 * - + 87 AS col0 FROM tab0 cor0
----
-1740
-7032
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT - 83 * + COUNT( * ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - 83 * + COUNT ( * ) FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT COUNT( * ) * - + 43 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT COUNT ( * ) * - + 43 FROM tab1
----
-129

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT COUNT( * ) AS col1 FROM tab2 WHERE + 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE + 11 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT - 67 AS col2, - CAST( NULL AS SIGNED ) FROM tab0
----
-67
NULL
-67
NULL
-67
NULL

skipif mysql # not compatible
query II rowsort label-5045
SELECT - 67 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
-67
NULL
-67
NULL
-67
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT + col1 DIV 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT + col1 / 80 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT ALL - 25 DIV - col1 AS col2 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - 25 / - col1 AS col2 FROM tab1
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL - - CAST( + 4 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - - CAST ( + 4 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + - SUM( + 50 ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5049
SELECT + - SUM ( + 50 ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL - col2 AS col1, 66 AS col1 FROM tab2 AS cor0
----
-23
66
-40
66
-58
66

query III rowsort
SELECT * FROM tab1 WHERE NOT - 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT 55 * - COUNT( + - col1 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-5053
SELECT 55 * - COUNT ( + - col1 ) FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL + - MAX( - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + - MAX ( - col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 44 FROM tab0 AS cor0 WHERE NOT - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + - MIN( - + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5056
SELECT + - MIN ( - + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT + ( + - 37 ) DIV - - MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT + ( + - 37 ) / - - MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 AS cor0 WHERE + 81 IS NOT NULL
----
79

query II rowsort
SELECT DISTINCT + col2, 20 FROM tab1 cor0
----
59
20
68
20
96
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + col2 > - + col1 * 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1, - 45 + + + 81 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col1, + ( 30 ) * + col1 AS col0 FROM tab1 AS cor0
----
14
420
47
1410
5
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 31 ) col1 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT 8 DIV + col0 * - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT 8 / + col0 * - col2 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 + - col1 + + ( col0 ) + - col1 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - - col1 + + col0 AS col2 FROM tab1
----
116
175
229

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> col0
----

query I rowsort
SELECT DISTINCT col0 * - 35 AS col0 FROM tab2 cor0
----
-1610
-2240
-2625

query I rowsort
SELECT ALL + + col0 * + - col2 * + 35 + + 96 AS col2 FROM tab1 AS cor0
----
-171264
-175429
-216484

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT - + COUNT( * ) + + 42 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5071
SELECT - + COUNT ( * ) + + 42 FROM tab1 AS cor0
----
39

query I rowsort
SELECT - + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL 74 * - + col1 FROM tab0
----
-1554
-5994
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL MAX( ALL col1 ) + ( - - 19 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MAX ( ALL col1 ) + ( - - 19 ) FROM tab1 cor0
----
66

query I rowsort
SELECT ALL - + 94 - - + col2 FROM tab2 AS cor0
----
-36
-54
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( + col1 / col1 * + 57 )
----

query I rowsort
SELECT ALL - + 78 * - 33 - + col2 FROM tab2 cor0
----
2516
2534
2551

query I rowsort
SELECT DISTINCT 69 - - col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT + MIN( ALL - col0 ) - + COUNT( * ) + + COUNT( * ) col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5079
SELECT DISTINCT + MIN ( ALL - col0 ) - + COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 64 - - col0 col0 FROM tab0 AS cor0
----
-49
23
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5081
SELECT CAST( NULL AS SIGNED ) - - ( - + 7 ) AS col2, 83 + + 94 FROM tab2 AS cor0
----
NULL
177
NULL
177
NULL
177

skipif mysql # not compatible
query II rowsort label-5081
SELECT CAST ( NULL AS INTEGER ) - - ( - + 7 ) AS col2, 83 + + 94 FROM tab2 AS cor0
----
NULL
177
NULL
177
NULL
177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5082
SELECT col2 * col1 / 38 * col2 - + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT col2 * col1 / 38 * col2 - + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5083
SELECT + SUM( ALL + + col1 ) * - CAST( + 6 AS SIGNED ) - - CAST( NULL AS DECIMAL ) AS col1, - 81 FROM tab0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-5083
SELECT + SUM ( ALL + + col1 ) * - CAST ( + 6 AS INTEGER ) - - CAST ( NULL AS REAL ) AS col1, - 81 FROM tab0
----
NULL
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 + - col0 ) > 19 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 - + 33 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT + + col0 - col2 FROM tab2 WHERE NOT + + col0 + - col0 + 93 BETWEEN + + 51 * - ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + SUM( DISTINCT - - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + SUM ( DISTINCT - - col0 ) AS col2 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + MIN( + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5088
SELECT + MIN ( + - col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL ( - 60 ) * col1 + col1 * - + 28 AS col0 FROM tab1 AS cor0
----
-1232
-4136
-440

query I rowsort
SELECT DISTINCT + + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
87

query I rowsort
SELECT - - col0 * + col1 / - col2 - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 8 * - col1 AS col0 FROM tab2 AS cor0
----
-408
-536
-616

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col1 * 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT - + 50 DIV 69 DIV + + col1 * 33 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT - + 50 / 69 / + + col1 * 33 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ( + COUNT( * ) ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT ( + COUNT ( * ) ) col1 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 91, col0, col2 )
----

query II rowsort
SELECT + + 87, col0 - + - col0 + + 97 * col2 AS col0 FROM tab1 AS cor0
----
87
5893
87
6778
87
9414

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - - col1 BETWEEN - - col1 AND - col0 - - 63 * - 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 78 * + - col1 * - col1 FROM tab1 WHERE NOT - col1 IS NULL
----
15288
172302
1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT ALL - 16 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - 16 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col0 * - ( - 70 ) + + 1 FROM tab2
----
179201
304501
74061

query I rowsort
SELECT + col1 + ( + + col1 ) FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT - MAX( ALL 98 ) + - 72 AS col2 FROM tab1
----
-170

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - MAX ( ALL 98 ) + - 72 AS col2 FROM tab1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL 84 + 72 * COUNT( * ) AS col2 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL 84 + 72 * COUNT ( * ) AS col2 FROM tab1
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT + 79 DIV + 82 + + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5105
SELECT + 79 / + 82 + + + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT SUM( - col2 ) col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5106
SELECT SUM ( - col2 ) col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - COUNT( * ) FROM tab2 cor0 WHERE col2 IN ( - + col1, - 76, ( - - col1 ) + col0 * + ( - 26 ), - col2 - - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE col2 IN ( - + col1, - 76, ( - - col1 ) + col0 * + ( - 26 ), - col2 - - + col1 )
----
0

query I rowsort
SELECT + col0 * - - 73 AS col0 FROM tab1 cor0
----
3723
6205
6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT ALL + CAST( NULL AS SIGNED ) * - 18 * + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + CAST ( NULL AS INTEGER ) * - 18 * + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + + 10, + col1 FROM tab0 cor0
----
10
1
10
21
10
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 8 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT col2 * - + 36 - - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1677
-273
-3467

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL - COUNT( * ) + - 92 AS col2 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL - COUNT ( * ) + - 92 AS col2 FROM tab0 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5115
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( 49 )
----

skipif mysql # not compatible
query III rowsort label-5115
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( 49 )
----

query I rowsort
SELECT + - col1 + + - 29 AS col1 FROM tab2 AS cor0
----
-106
-80
-96

query I rowsort
SELECT ALL + col0 * + 66 FROM tab2 AS cor0
----
3036
4224
4950

query II rowsort
SELECT ALL 26 AS col2, - 31 FROM tab0
----
26
-31
26
-31
26
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT 99 DIV ( + - 3 ) AS col0 FROM tab2
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-5119
SELECT 99 / ( + - 3 ) AS col0 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT ( + - 73 ) AS col2 FROM tab0
----
-73
-73
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT - CAST( + - MIN( col1 ) AS SIGNED ) * + ( + 80 ) FROM tab2 AS cor0
----
4080

skipif mysql # not compatible
query I rowsort label-5121
SELECT - CAST ( + - MIN ( col1 ) AS INTEGER ) * + ( + 80 ) FROM tab2 AS cor0
----
4080

query I rowsort
SELECT DISTINCT + 46 * - 65 * + 16 FROM tab0 AS cor0
----
-47840

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT DISTINCT - 67 DIV - + col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT - 67 / - + col2 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT 19 DIV + 98 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5124
SELECT 19 / + 98 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - + 93 AS col2, 71 + - col1 FROM tab1 AS cor0
----
-93
24
-93
57
-93
66

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab0 WHERE NULL IS NULL
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT COUNT( DISTINCT + 41 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5128
SELECT COUNT ( DISTINCT + 41 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL - col1 * + 11 + 81 * + col0 * - col2 * 67 AS col2 FROM tab2
----
-13893967
-23608187
-5742327

query I rowsort
SELECT - - ( - 39 ) + col2 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT + 15 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT + 15 / col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5132
SELECT + col1 DIV 54 * + 87, ( + col0 ) FROM tab0
----
0
87
0
97
87
15

skipif mysql # not compatible
query II rowsort label-5132
SELECT + col1 / 54 * + 87, ( + col0 ) FROM tab0
----
0
87
0
97
87
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT - col2 DIV - - 96 * + - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT - col2 / - - 96 * + - col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT col2, + col0 * col0 * + col1 AS col1 FROM tab2
----
23
107916
40
315392
58
376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col2 col1 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + col2 * - col1 + - - col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NULL = 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + - 31 AS col2 FROM tab1 AS cor0
----
20
54
60

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + - 31 AS col2 FROM tab1 AS cor0
----
20
54
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + - - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 * + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 13 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - ( + 90 ) * 90 FROM tab1
----
-8100
-8100
-8100

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + SUM( ALL - col1 ) FROM tab2 AS cor0 WHERE col2 - - col0 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-5143
SELECT + SUM ( ALL - col1 ) FROM tab2 AS cor0 WHERE col2 - - col0 IS NOT NULL
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - - COUNT( * ) * 30 + - COUNT( * ) * ( - + 44 ) * MIN( ALL 15 ) FROM tab1 AS cor0
----
2070

skipif mysql # not compatible
query I rowsort label-5144
SELECT - - COUNT ( * ) * 30 + - COUNT ( * ) * ( - + 44 ) * MIN ( ALL 15 ) FROM tab1 AS cor0
----
2070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL CAST( + - col1 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL CAST ( + - col1 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5146
SELECT - col0 * - col2 AS col0, CAST( - col0 AS SIGNED ) + + - col0 FROM tab0
----
705
-30
870
-174
9603
-194

skipif mysql # not compatible
query II rowsort label-5146
SELECT - col0 * - col2 AS col0, CAST ( - col0 AS INTEGER ) + + - col0 FROM tab0
----
705
-30
870
-174
9603
-194

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5147
SELECT * FROM tab0 WHERE NOT NULL >= + 67 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5147
SELECT * FROM tab0 WHERE NOT NULL >= + 67 + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + col2 * - col2 * + 18 * 36 AS col1 FROM tab2
----
-1036800
-2179872
-342792

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - 66 * - SUM( - ( col1 ) ) FROM tab1
----
-4356

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - 66 * - SUM ( - ( col1 ) ) FROM tab1
----
-4356

query I rowsort
SELECT DISTINCT col2 * - col1 * + col2 AS col0 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT - ( + col0 ) DIV col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5151
SELECT - ( + col0 ) / col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT + + MIN( DISTINCT + ( 55 ) ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5152
SELECT + + MIN ( DISTINCT + ( 55 ) ) FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT + + MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + + MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT COUNT( * ) col0 FROM tab2 WHERE NOT NULL >= - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5154
SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT NULL >= - col0
----
0

query I rowsort
SELECT ALL col0 + 88 AS col2 FROM tab2
----
134
152
163

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 58 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL - ( + 5 ) + col2 + - 82 + - col2 + + + col1 * + + 6 * col2 * - col0 * col1 FROM tab2
----
-117162987
-16511235
-91069527

query I rowsort
SELECT DISTINCT col2 + + col1 * + + 32 AS col1 FROM tab2 AS cor0
----
1655
2202
2504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT + 20 DIV + 72 * + - COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5159
SELECT + 20 / + 72 * + - COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 86 FROM tab0 AS cor0 WHERE + 38 IS NOT NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT COUNT( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT COUNT ( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 5 + - 10 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT ( + 2 ) * + 11 FROM tab2
----
22

query I rowsort
SELECT DISTINCT - col2 * - - col2 + - 90 AS col0 FROM tab0
----
-190
-2299
-9891

query I rowsort
SELECT DISTINCT - - 18 FROM tab0 WHERE NOT + + col2 * + + col1 IS NULL
----
18

query II rowsort
SELECT DISTINCT 76 + + + ( col0 ) * - col1 AS col2, + 0 * + 69 AS col0 FROM tab0
----
-1139
0
-1751
0
-21
0

query I rowsort
SELECT ALL - ( - 37 ) - + + col1 * + col2 + 72 * + col0 FROM tab1 cor0
----
2365
3393
5862

query II rowsort
SELECT DISTINCT col0 - - - col1 - + - ( + col0 ), col2 FROM tab0 AS cor0
----
-51
47
153
10
193
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5170
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT SUM( ALL - ( col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5171
SELECT SUM ( ALL - ( col0 ) ) AS col1 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT 26 * - col2 AS col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 WHERE NULL IS NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 + + col1 + - - col0 IN ( 13, 40 * - + col0, + 60 * + - col2, + col2, col0 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 + + col1 + - - col0 IN ( 13, 40 * - + col0, + 60 * + - col2, + col2, col0 + - col1 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 * + col0 > ( + col0 )
----

query I rowsort
SELECT DISTINCT + + ( + + 79 ) AS col1 FROM tab1 cor0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT ALL - 20, MAX( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-20
97

skipif mysql # not compatible
query II rowsort label-5178
SELECT ALL - 20, MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-20
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 AS col0, - 58, col1 + + + col0 col0 FROM tab2
----
9 values hashing to 9a9af49826e33b5bba52c5fd19fca193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 * - 56 col2 FROM tab1
----
280
280
280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5181
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) * - + col2 * - col0 + col0 BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-5181
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) * - + col2 * - col0 + col0 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + COUNT( * ) FROM tab1 WHERE NOT col1 BETWEEN NULL AND - 52
----
3

skipif mysql # not compatible
query I rowsort label-5182
SELECT + COUNT ( * ) FROM tab1 WHERE NOT col1 BETWEEN NULL AND - 52
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - col2 * - col0 * - - col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 75 - + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT - - COUNT( * ) col2, 37 AS col0 FROM tab0 cor0
----
3
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5186
SELECT - - COUNT ( * ) col2, 37 AS col0 FROM tab0 cor0
----
3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT COUNT( * ) * - + COUNT( * ) - + 6 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-5187
SELECT COUNT ( * ) * - + COUNT ( * ) - + 6 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

query I rowsort
SELECT DISTINCT - ( 94 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-94

query I rowsort
SELECT ALL - - col2 + - col0 AS col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL - ( + 14 ) + 28 FROM tab1 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col2 * + - col1 + - 3 col0 FROM tab2 AS cor0
----
-237163
-260365
-59826

query I rowsort
SELECT DISTINCT 68 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT 41 * - COUNT( * ) * COUNT( * ) FROM tab2
----
-369

skipif mysql # not compatible
query I rowsort label-5193
SELECT 41 * - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-369

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT 10 col2, + COUNT( * ) AS col1 FROM tab1
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5194
SELECT 10 col2, + COUNT ( * ) AS col1 FROM tab1
----
10
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 76
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT + 35 - + ( - SUM( - - col2 ) ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT + 35 - + ( - SUM ( - - col2 ) ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 - + 98 AS col0 FROM tab2
----
-40
-58
-75

query I rowsort
SELECT 90 - col1 AS col0 FROM tab0
----
69
89
9

query I rowsort
SELECT - col0 - + 9 FROM tab1
----
-100
-60
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT ALL COUNT( * ) + 27 + - + COUNT( * ) AS col2, 80 FROM tab0 AS cor0 WHERE col0 * - 7 IS NOT NULL
----
27
80

skipif mysql # not compatible
query II rowsort label-5201
SELECT ALL COUNT ( * ) + 27 + - + COUNT ( * ) AS col2, 80 FROM tab0 AS cor0 WHERE col0 * - 7 IS NOT NULL
----
27
80

query I rowsort
SELECT - col0 + col0 + - col2 + + + 10 FROM tab2 AS cor0
----
-13
-30
-48

query I rowsort
SELECT DISTINCT col2 + - + ( 26 ) AS col1 FROM tab2 AS cor0 WHERE col2 * 49 + + + 15 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 73 col2 FROM tab0
----
3431
7227
730

query III rowsort
SELECT ALL * FROM tab2 WHERE 4 > col0
----

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT ( ( - 69 ) ) FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ( - + 18 ) * + 57 AS col0 FROM tab1 cor0
----
-1026
-1026
-1026

query I rowsort
SELECT col2 * - - col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NULL > NULL
----

query II rowsort
SELECT col2, + 37 AS col2 FROM tab1
----
59
37
68
37
96
37

query II rowsort
SELECT + 31 AS col0, + ( ( + col0 ) ) AS col2 FROM tab2
----
31
46
31
64
31
75

query I rowsort
SELECT + 20 * col0 * 18 AS col1 FROM tab2 AS cor0
----
16560
23040
27000

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT ALL + COUNT( * ) AS col0, - 72 AS col2 FROM tab2 AS cor0
----
3
-72

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL + COUNT ( * ) AS col0, - 72 AS col2 FROM tab2 AS cor0
----
3
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( - - col0 ) col2 FROM tab1
----
37
44
80

query I rowsort
SELECT + 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL 64 * + col1 * + + col0 FROM tab0
----
116928
6208
77760

query I rowsort
SELECT - - col2 + - - col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL CAST( NULL AS SIGNED ) + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col2 * + col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT + col1 + 38 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-132273
-175665
-350194

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - 94 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5222
SELECT - 94 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - MIN( DISTINCT + col1 ) + - 54 AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5223
SELECT - MIN ( DISTINCT + col1 ) + - 54 AS col0 FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT - + 71 * 20 AS col2 FROM tab1 AS cor0
----
-1420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT ( - col1 ) + CAST( + - ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-5225
SELECT ( - col1 ) + CAST ( + - ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT DISTINCT + 39 DIV col0 + - col2 * + 74 - - + col2 FROM tab2 AS cor0
----
-1679
-2920
-4234

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + 39 / col0 + - col2 * + 74 - - + col2 FROM tab2 AS cor0
----
-1679
-2920
-4234

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( - + col1 ) NOT BETWEEN ( NULL ) AND 83
----

query I rowsort
SELECT 20 + + col1 FROM tab0 AS cor0
----
101
21
41

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN - 50 * ( + col0 ) AND + + ( + col1 ) * + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 42 FROM tab0 WHERE 7 IS NOT NULL
----
42
42
42

query I rowsort
SELECT ALL - 50 FROM tab1 WHERE NOT - 88 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col2 ) NOT IN ( + - col1 )
----

query I rowsort
SELECT DISTINCT + 65 FROM tab0 WHERE NOT - col0 < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5235
SELECT + CAST( + col0 AS SIGNED ) AS col2, 24 + + col1 FROM tab2 AS cor0
----
46
75
64
101
75
91

skipif mysql # not compatible
query II rowsort label-5235
SELECT + CAST ( + col0 AS INTEGER ) AS col2, 24 + + col1 FROM tab2 AS cor0
----
46
75
64
101
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + - 38 * - COUNT( * ) * + 85 + - 14 * + - 48 AS col2 FROM tab0 AS cor0
----
10362

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - 38 * - COUNT ( * ) * + 85 + - 14 * + - 48 AS col2 FROM tab0 AS cor0
----
10362

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5237
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( ( col1 ) AS SIGNED ) * - col2 + + col1 ) NOT BETWEEN - col0 AND col1 * - col2 * + - ( ( 32 ) ) * 16 + 62 + - 78
----

skipif mysql # not compatible
query III rowsort label-5237
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( ( col1 ) AS INTEGER ) * - col2 + + col1 ) NOT BETWEEN - col0 AND col1 * - col2 * + - ( ( 32 ) ) * 16 + 62 + - 78
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - 23 + col0 AS col0 FROM tab2 AS cor0
----
1104
1536
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT 48 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT 48 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT + 53 DIV - + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT + 53 / - + col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - + 79 * - - col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT SUM( DISTINCT + col1 ) + + + 40 AS col2 FROM tab0
----
143

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT SUM ( DISTINCT + col1 ) + + + 40 AS col2 FROM tab0
----
143

query II rowsort
SELECT + ( - col1 ), col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + ( - - col0 ) + - - 76 FROM tab2
----
122
140
151

query II rowsort
SELECT ALL + col0, col1 * + 66 * - col0 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col0 + col1 AS col1 FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 70 + + + col0 * + col1 FROM tab2 AS cor0
----
2416
4998
5095

query I rowsort
SELECT - 95 + - ( - 9 ) * + 88 FROM tab2
----
697
697
697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT CAST( ( col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT CAST ( ( col2 ) AS INTEGER ) FROM tab0
----
10
47
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 93 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT col1, + col2 * + col0 AS col1 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL - SUM( col0 ) + 81 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - SUM ( col0 ) + 81 FROM tab2 AS cor0
----
-104

query I rowsort
SELECT - ( - 53 ) FROM tab2 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT ALL - + COUNT( * ) * 80 + + SUM( DISTINCT col2 ) AS col2, - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-84
-3

skipif mysql # not compatible
query II rowsort label-5258
SELECT ALL - + COUNT ( * ) * 80 + + SUM ( DISTINCT col2 ) AS col2, - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-84
-3

query I rowsort
SELECT col0 - + 52 - + 48 FROM tab0
----
-13
-3
-85

query I rowsort
SELECT col1 * - 13 - ( + + col1 ) FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT ALL + col1 + - 64 AS col2 FROM tab1
----
-17
-50
-59

query I rowsort
SELECT 54 * + col1 * - 4 FROM tab2
----
-11016
-14472
-16632

query I rowsort
SELECT DISTINCT + 50 * + col0 * col1 FROM tab0
----
4850
60750
91350

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT - col0 * col1 DIV + + col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5264
SELECT - col0 * col1 / + + col1 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT DISTINCT col0 DIV + 27 AS col0 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT col0 / + 27 AS col0 FROM tab1 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT DISTINCT 13 col1, - COUNT( * ) FROM tab2 AS cor0
----
13
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5266
SELECT DISTINCT 13 col1, - COUNT ( * ) FROM tab2 AS cor0
----
13
-3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE + 0 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 8 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 8 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT DISTINCT - 40 * + MAX( - col0 ) col0 FROM tab2
----
1840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5270
SELECT DISTINCT - 40 * + MAX ( - col0 ) col0 FROM tab2
----
1840

query II rowsort
SELECT DISTINCT + 4 * - col2 AS col2, - 66 FROM tab1
----
-236
-66
-272
-66
-384
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL 44 * COUNT( - col1 ) + COUNT( * ) FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL 44 * COUNT ( - col1 ) + COUNT ( * ) FROM tab1 cor0
----
135

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT + - col1 * col2 DIV - 99 AS col1 FROM tab0 AS cor0
----
1
2
38

skipif mysql # not compatible
query I rowsort label-5274
SELECT + - col1 * col2 / - 99 AS col1 FROM tab0 AS cor0
----
1
2
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5275
SELECT ALL - 6 DIV - COUNT( * ) col0, SUM( + 70 ) FROM tab2 AS cor0
----
2
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5275
SELECT ALL - 6 / - COUNT ( * ) col0, SUM ( + 70 ) FROM tab2 AS cor0
----
2
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT + 95 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + 41 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT + 95 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + 41 AND NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + - 2 * - col1 AS col1, col2 FROM tab1 AS cor0
----
10
59
28
96
94
68

onlyif mysql # DIV for integer division: 
query II rowsort label-5278
SELECT + - col0 col1, col2 DIV - col0 col0 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-3
-87
0
-97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5278
SELECT + - col0 col1, col2 / - col0 col0 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-3
-87
0
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 51 * + col0 + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 51 * + col0 + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5280
SELECT - ( + + ( - CAST( NULL AS SIGNED ) ) ), - ( - COUNT( * ) ) col0 FROM tab0 WHERE - + 78 = - - col2 * - col0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5280
SELECT - ( + + ( - CAST ( NULL AS INTEGER ) ) ), - ( - COUNT ( * ) ) col0 FROM tab0 WHERE - + 78 = - - col2 * - col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT + 50 + - COUNT( * ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + 50 + - COUNT ( * ) FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5282
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( - col0, col0, + + col0 - + + col1, - - col0, - + col0, + col1 )
----

query I rowsort
SELECT col0 * + + 94 AS col0 FROM tab0 AS cor0
----
1410
8178
9118

query II rowsort
SELECT DISTINCT + + col1 AS col0, 81 FROM tab0 AS cor0
----
1
81
21
81
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5286
SELECT ALL + - 86 AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-86
3

skipif mysql # not compatible
query II rowsort label-5286
SELECT ALL + - 86 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-86
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND 30
----

query I rowsort
SELECT ALL 99 + + 42 FROM tab2
----
141
141
141

query III rowsort
SELECT * FROM tab2 cor0 WHERE 54 < NULL
----

query I rowsort
SELECT + + 52 + + 61 FROM tab2 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT + - col1 * + - 11 + ( 47 ) * + col2 AS col1 FROM tab2 AS cor0
----
1642
2727
3463

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( + col0, + col0, + col0, + + 36, 77 )
----
46
51
23
75
67
58

query I rowsort
SELECT ALL - - col2 * - 0 + - - col1 * col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 93 + col0 AS col2 FROM tab1 AS cor0
----
-2
-42
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL + + COUNT( * ) - + - 20 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL + + COUNT ( * ) - + - 20 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL + CAST( + + col2 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5296
SELECT ALL + CAST ( + + col2 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT - COUNT( * ) col0, + 62 FROM tab1 AS cor0 WHERE col1 * + 67 > - 32
----
-3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5297
SELECT - COUNT ( * ) col0, + 62 FROM tab1 AS cor0 WHERE col1 * + 67 > - 32
----
-3
62

query I rowsort
SELECT DISTINCT + col0 * 22 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1914
2134
330

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - col0 + + 41 <= NULL
----

query II rowsort
SELECT ALL + 25 AS col1, + col0 FROM tab0
----
25
15
25
87
25
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + col0 col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 77 * + col0 AS col2 FROM tab2
----
3542
4928
5775

query II rowsort
SELECT ALL + col2, 20 + col1 FROM tab2 AS cor0
----
23
71
40
97
58
87

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab1 AS cor0 WHERE 87 + + + col1 < + col1
----

query I rowsort
SELECT ALL + + 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5306
SELECT 34 col0, col2 / + col1 - + + 34 * + - col0 - + 44 + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - - col0 * col2 NOT IN ( + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5306
SELECT 34 col0, col2 / + col1 - + + 34 * + - col0 - + 44 + - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - - col0 * col2 NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 col0 FROM tab0 WHERE NOT + 36 + - + col1 + col1 NOT BETWEEN ( - - 98 ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT - 23 + - - 39 DIV - + col0 AS col1 FROM tab2
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-5308
SELECT - 23 + - - 39 / - + col0 AS col1 FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - 25 + + COUNT( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
-22

skipif mysql # not compatible
query I rowsort label-5309
SELECT - 25 + + COUNT ( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 - col0 AND - + 26 + col0 + + + ( - + col2 ) + + col0 + 42 + - col1 * col1 * - - ( + 79 )
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT - 3 = NULL
----

query I rowsort
SELECT - - 39 * - + 71 * + 10 AS col0 FROM tab2 cor0
----
-27690
-27690
-27690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 18 col1, - ( - 88 ) FROM tab1 AS cor0
----
-18
88
-18
88
-18
88

query II rowsort
SELECT ALL col2 AS col0, col2 + - - 93 AS col0 FROM tab2 AS cor0
----
23
116
40
133
58
151

query II rowsort
SELECT DISTINCT - + col2 AS col0, + col1 + + + col2 AS col1 FROM tab0 AS cor0
----
-10
31
-47
128
-99
100

query II rowsort
SELECT ALL - col2 AS col1, 47 FROM tab2 cor0
----
-23
47
-40
47
-58
47

query I rowsort
SELECT ALL col1 * - col0 * + 71 FROM tab1 AS cor0
----
-30175
-303667
-50694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT - CAST( CAST( 36 AS SIGNED ) AS SIGNED ) FROM tab0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-5318
SELECT - CAST ( CAST ( 36 AS INTEGER ) AS INTEGER ) FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE - + col0 / 15 * + col1 - - 76 + + - col0 + - col2 - - col0 * 43 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE - + col0 / 15 * + col1 - - 76 + + - col0 + - col2 - - col0 * 43 IS NOT NULL
----
3

query I rowsort
SELECT ALL - col0 * + 92 AS col1 FROM tab0
----
-1380
-8004
-8924

query I rowsort
SELECT - - 21 * + col1 FROM tab0 WHERE - col1 <> - col0
----
1701
21
441

query I rowsort
SELECT ALL + 89 * - col1 AS col2 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT ALL - 7 + - 67 + + + col2 AS col1 FROM tab1
----
-15
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT ( - 12 ) - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT ( - 12 ) - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 0
----
NULL

query I rowsort
SELECT + - ( - + 57 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + ( 74 ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
83

skipif mysql # not compatible
query I rowsort label-5327
SELECT + ( 74 ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT - + COUNT( * ) + MIN( col0 ) * + 15 AS col2 FROM tab1 AS cor0
----
762

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - + COUNT ( * ) + MIN ( col0 ) * + 15 AS col2 FROM tab1 AS cor0
----
762

query I rowsort
SELECT DISTINCT - 95 - col0 AS col1 FROM tab0 cor0
----
-110
-182
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT DISTINCT + - 87 * - + CAST( NULL AS SIGNED ) + - col1 + - + col1 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT DISTINCT + - 87 * - + CAST ( NULL AS INTEGER ) + - col1 + - + col1 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT + + 48 + + - COUNT( - col1 ) FROM tab2 AS cor0 WHERE - 20 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT + + 48 + + - COUNT ( - col1 ) FROM tab2 AS cor0 WHERE - 20 IS NULL
----
48

query I rowsort
SELECT ALL + ( + 38 ) - + col0 AS col1 FROM tab2 cor0
----
-26
-37
-8

query I rowsort
SELECT DISTINCT - - col2 + - col2 - + 49 FROM tab2 AS cor0
----
-49

query II rowsort
SELECT 64 AS col2, col1 AS col1 FROM tab2 AS cor0
----
64
51
64
67
64
77

query I rowsort
SELECT ALL ( 84 ) FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5336
SELECT * FROM tab1 WHERE NOT + 17 * - + CAST( NULL AS SIGNED ) + + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-5336
SELECT * FROM tab1 WHERE NOT + 17 * - + CAST ( NULL AS INTEGER ) + + col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 80 * - col0 <= - - 10 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 13 * + 74 AS col1 FROM tab0
----
962
962
962

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 - + + 15 + + 11 * - - 95 * 61 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 - + + 15 + + 11 * - - 95 * 61 * + col0 IS NOT NULL
----
0

query II rowsort
SELECT 45, + col2 * - ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - - 71 - - col2 + + - 62
----

query I rowsort
SELECT col0 * - - ( 21 ) AS col1 FROM tab0 AS cor0
----
1827
2037
315

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 NOT IN ( - col2 / + + col2 - + - 80, - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT DISTINCT SUM( - CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5344
SELECT DISTINCT SUM ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL - CAST( NULL AS SIGNED ) + col2 - - + 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 - - + 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT - + 62 DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT - + 62 / col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT CAST( COUNT( * ) AS SIGNED ) * 10 AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5347
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 10 AS col0 FROM tab1 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 92 * + - col0 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL - COUNT( * ) + SUM( ALL - col0 ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - COUNT ( * ) + SUM ( ALL - col0 ) FROM tab1
----
-230

query III rowsort
SELECT * FROM tab2 WHERE col2 / 65 IS NULL
----

query I rowsort
SELECT col0 - - 96 FROM tab1 WHERE + - col1 IS NOT NULL
----
147
181
187

query I rowsort
SELECT ALL - 99 + + - 46 FROM tab2
----
-145
-145
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + 10 - + col2 + - 63 AS col0, col2 col1 FROM tab1 AS cor0
----
-19
96
-72
59
339
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + - SUM( col0 ) * 39 FROM tab1 AS cor0
----
-8853

skipif mysql # not compatible
query I rowsort label-5354
SELECT + - SUM ( col0 ) * 39 FROM tab1 AS cor0
----
-8853

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + COUNT( + 17 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT ALL + COUNT ( + 17 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT DISTINCT + - 20 - - col2 + - col1 - - - ( + 10 ) DIV + col0 * col0 FROM tab1 AS cor0
----
1
34
62

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT + - 20 - - col2 + - col1 - - - ( + 10 ) / + col0 * col0 FROM tab1 AS cor0
----
1
34
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 * col0 * - ( + - col0 ) FROM tab2
----
-105800
-204800
-281250

query I rowsort
SELECT - 80 + 41 FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT SUM( + ( 17 ) ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT SUM ( + ( 17 ) ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5361
SELECT ALL - - COUNT( * ) * - COUNT( * ) AS col2, 37 / - MIN( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) AS col2, 37 / - MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-9
NULL

query II rowsort
SELECT DISTINCT - - 17 * - col1 * - col0 * + col2 * + 38, - col2 + + col1 AS col2 FROM tab0 AS cor0
----
11802420
11
36889830
34
6203538
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL - - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE - col0 / + 10 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT NULL = NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT - - 18 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 WHERE NOT + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT ALL ( - col2 ) DIV - col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL ( - col2 ) / - col1 FROM tab0
----
0
0
99

query I rowsort
SELECT 2 * + col2 * - col1 FROM tab0
----
-198
-420
-7614

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT ( + 28 ) DIV + col2 + + ( - col1 ) + + col0 FROM tab0
----
-66
68
96

skipif mysql # not compatible
query I rowsort label-5370
SELECT ( + 28 ) / + col2 + + ( - col1 ) + + col0 FROM tab0
----
-66
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT + CAST( 40 AS SIGNED ) AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + CAST ( 40 AS INTEGER ) AS col1 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - COUNT( 1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - COUNT ( 1 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 40 ) / - col0 <> + - col2 + - - col1 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL - ( - 16 ) * COUNT( * ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - ( - 16 ) * COUNT ( * ) AS col1 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT COUNT( DISTINCT ( 2 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5376
SELECT COUNT ( DISTINCT ( 2 ) ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5377
SELECT DISTINCT MIN( DISTINCT col1 ) DIV + 82 + - 98 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT MIN ( DISTINCT col1 ) / + 82 + - 98 FROM tab1
----
-98

query I rowsort
SELECT DISTINCT + ( + 9 ) - col0 FROM tab0 WHERE + col0 * + col0 NOT IN ( + col2 + - col0 )
----
-6
-78
-88

query I rowsort
SELECT 54 + + col1 FROM tab0 WHERE NOT + 93 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - COUNT( * ) * - 23 AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5380
SELECT - COUNT ( * ) * - 23 AS col0 FROM tab2
----
69

query I rowsort
SELECT - col1 * 18 AS col0 FROM tab2
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL - MIN( DISTINCT ( 78 ) ) FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - MIN ( DISTINCT ( 78 ) ) FROM tab2 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 86 * + col2 AS col0 FROM tab2
----
-1978
-3440
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL - COUNT( col0 ) AS col1 FROM tab2 WHERE col2 + + col0 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL - COUNT ( col0 ) AS col1 FROM tab2 WHERE col2 + + col0 * col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 9 + col0 AS col2 FROM tab1
----
42
76
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT + COUNT( DISTINCT CAST( 63 AS SIGNED ) ) * + MAX( DISTINCT 85 ) col0 FROM tab1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5386
SELECT + COUNT ( DISTINCT CAST ( 63 AS INTEGER ) ) * + MAX ( DISTINCT 85 ) col0 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT 39 AS col2 FROM tab2 WHERE col0 * - CAST( - 13 AS SIGNED ) IS NOT NULL
----
39
39
39

skipif mysql # not compatible
query I rowsort label-5387
SELECT 39 AS col2 FROM tab2 WHERE col0 * - CAST ( - 13 AS INTEGER ) IS NOT NULL
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT DISTINCT + 92 / col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT + 92 / col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 * 64 + 19 FROM tab2
----
1491
2579
3731

query I rowsort
SELECT DISTINCT ( - 65 ) FROM tab2
----
-65

query I rowsort
SELECT ALL col0 + + 46 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 + 67 * 18 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-138
-1990
911

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT + 95 DIV + col1 AS col0 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-5393
SELECT + 95 / + col1 AS col0 FROM tab1
----
19
2
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5394
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 + col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col2 / - col1 >= ( + col0 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL CAST( NULL AS SIGNED ) + AVG ( + 85 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL CAST ( NULL AS INTEGER ) + AVG ( + 85 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL - MAX( 79 ) AS col2 FROM tab2 WHERE NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - MAX ( 79 ) AS col2 FROM tab2 WHERE NULL > col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT ALL col0 / CAST( NULL AS SIGNED ) - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL col0 / CAST ( NULL AS INTEGER ) - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 73 * - col2 AS col2 FROM tab0 AS cor0
----
-3431
-7227
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT MAX( col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL > - col0 * + 52
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5400
SELECT MAX ( col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL > - col0 * + 52
----
NULL

query I rowsort
SELECT + col0 + - 92 AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * + 95 + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5402
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN col0 + - ( 37 ) * 92 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5402
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN col0 + - ( 37 ) * 92 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT ALL - + 43 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - + 43 / + col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col2 FROM tab0 cor0 WHERE NULL BETWEEN + 9 * - 91 AND col0 * col0
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 33 AND col0 * 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 36 FROM tab1 WHERE NOT col1 + 48 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - COUNT( ALL - + 73 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5408
SELECT - COUNT ( ALL - + 73 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - ( - 64 ) FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + col0 * + 26 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 78 * + 96 FROM tab2
----
7488

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5412
SELECT * FROM tab2 WHERE NOT ( + col2 * CAST( NULL AS SIGNED ) ) NOT BETWEEN + col1 * col2 AND - 78
----

skipif mysql # not compatible
query III rowsort label-5412
SELECT * FROM tab2 WHERE NOT ( + col2 * CAST ( NULL AS INTEGER ) ) NOT BETWEEN + col1 * col2 AND - 78
----

query I rowsort
SELECT + - 22 * + col0 + + 53 AS col2 FROM tab0 cor0
----
-1861
-2081
-277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5414
SELECT - SUM( DISTINCT col1 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5414
SELECT - SUM ( DISTINCT col1 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 75 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 3 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5417
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT - col2 * col2 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-205464
-314523
-884787

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5419
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( - col0 AS DECIMAL ) - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5419
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( - col0 AS REAL ) - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - AVG ( ALL + 44 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 95 ) AND + col1 + 50 / col0
----
NULL

query I rowsort
SELECT - + 43 + + 18 - - col1 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ALL + - 6 - - - col2 * 14 AS col2 FROM tab0 AS cor0
----
-1392
-146
-664

query I rowsort
SELECT DISTINCT + 54 * + 74 AS col2 FROM tab2 AS cor0
----
3996

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + COUNT( * ) + 0 AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT + COUNT ( * ) + 0 AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 17 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * col0 + col0 * - col2 AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
-2295
2093
2210

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT - 45 * - 78 + + COUNT( * ) col0 FROM tab2
----
3513

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5428
SELECT DISTINCT - 45 * - 78 + + COUNT ( * ) col0 FROM tab2
----
3513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT DISTINCT 79 * col0 FROM tab2 WHERE - ( 23 ) + - CAST( col0 AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT 79 * col0 FROM tab2 WHERE - ( 23 ) + - CAST ( col0 AS INTEGER ) * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL + COUNT( * ) * + 20 + - 14 * - 46 * - COUNT( * ) col1 FROM tab1
----
-1872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5430
SELECT ALL + COUNT ( * ) * + 20 + - 14 * - 46 * - COUNT ( * ) col1 FROM tab1
----
-1872

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 64 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 54 ) > ( col0 )
----
51
14
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - - col2 + + + col1 NOT IN ( 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + - col2 - + 2 = + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 63 - + col0 AS col2 FROM tab1 AS cor0
----
-114
-148
-154

query I rowsort
SELECT DISTINCT + ( + 29 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT - 66 * + SUM( col0 ) AS col1 FROM tab2
----
-12210

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - 66 * + SUM ( col0 ) AS col1 FROM tab2
----
-12210

query I rowsort
SELECT + 89 AS col0 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN - 57 * col0 * 86 * - - col2 AND + 95 + + 96 / col1
----

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab1 AS cor0 WHERE NOT ( - 18 * - 64 ) IN ( - col2 * 38 )
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col2 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col0 * + - 44 * + - col1 / ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5443
SELECT ALL col2, col2 + - CAST( col1 AS SIGNED ) + - col2 * + - 34 * + col1 FROM tab0
----
10
7129
47
129404
99
3464

skipif mysql # not compatible
query II rowsort label-5443
SELECT ALL col2, col2 + - CAST ( col1 AS INTEGER ) + - col2 * + - 34 * + col1 FROM tab0
----
10
7129
47
129404
99
3464

query I rowsort
SELECT + ( 56 ) * + + col0 AS col0 FROM tab2
----
2576
3584
4200

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - + col1 * 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT SUM( DISTINCT ( - 41 ) ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT SUM ( DISTINCT ( - 41 ) ) FROM tab2
----
-41

query II rowsort
SELECT ALL col2 * - col0 AS col1, col1 AS col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT + col1 * + - 87 AS col0 FROM tab0
----
-1827
-7047
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col2 + - - col0 * col0 NOT IN ( col0 )
----

query II rowsort
SELECT col1 AS col1, - 56 * - + col1 AS col1 FROM tab0
----
1
56
21
1176
81
4536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 cor0 WHERE NOT NULL < - col1 OR NULL >= 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 10 col2 FROM tab2 AS cor0
----
-61
-77
-87

query I rowsort
SELECT ALL + 63 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
63
63
63

query I rowsort
SELECT + 59 + col1 - + col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - 39 * - 79 * 57 + + 81 AS col2 FROM tab0
----
175698
175698
175698

query I rowsort
SELECT DISTINCT - col2 + + 12 FROM tab0 AS cor0
----
-35
-87
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5457
SELECT DISTINCT 43 + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) + 41 FROM tab0 AS cor0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5457
SELECT DISTINCT 43 + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + 41 FROM tab0 AS cor0
----
46
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - 52 IN ( - ( + col1 ) + - + 71 + - ( + col0 ) * 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT 31 + + + CAST( + + ( + 82 ) AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
113
113
113

skipif mysql # not compatible
query I rowsort label-5459
SELECT 31 + + + CAST ( + + ( + 82 ) AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
113
113
113

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL MIN( DISTINCT - - 35 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL MIN ( DISTINCT - - 35 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
105

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 77 - + - col2 ) <> + 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT MIN( ALL - 75 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT MIN ( ALL - 75 ) AS col2 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5464
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5464
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 51 * col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL COUNT( - - 89 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL COUNT ( - - 89 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL col0 + + ( col1 ) FROM tab0
----
108
96
98

query III rowsort
SELECT * FROM tab1 WHERE 12 < + - col0 * - col2 / - col0 * ( 42 ) OR NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT ALL col2 + - + 68 AS col1 FROM tab0
----
-21
-58
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5471
SELECT ALL * FROM tab0 WHERE NOT col1 + + col2 - - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5471
SELECT ALL * FROM tab0 WHERE NOT col1 + + col2 - - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col1 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - 95 * CAST( - col1 AS SIGNED ) FROM tab0
----
1995
7695
95

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 95 * CAST ( - col1 AS INTEGER ) FROM tab0
----
1995
7695
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 57 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT + 90 - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT + 90 - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
81

query I rowsort
SELECT col0 * + - 54 AS col2 FROM tab2
----
-2484
-3456
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + COUNT( * ) - + - COUNT( DISTINCT - 28 ) FROM tab2, tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + COUNT ( * ) - + - COUNT ( DISTINCT - 28 ) FROM tab2, tab2 cor0
----
10

query II rowsort
SELECT ALL col1 AS col2, 24 + 19 + + 28 * + col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
14
2731
47
1947
5
1695

query I rowsort
SELECT col0 * + col2 + col1 + + 76 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 + col0 - col2, - col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT - CAST( - AVG ( ALL - + col1 ) AS SIGNED ) FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - CAST ( - AVG ( ALL - + col1 ) AS INTEGER ) FROM tab1 cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - + MAX( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5481
SELECT - + MAX ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT - col1 * + col0 * 4 * col1 - - - col0, col2 FROM tab1 AS cor0
----
-40035
96
-804167
68
-8585
59

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 >= - ( + + ( - + col0 ) )
----

query I rowsort
SELECT DISTINCT + col2 * - 81 FROM tab0
----
-3807
-8019
-810

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + col1 * + 54 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT - CAST( - + 88 AS SIGNED ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - CAST ( - + 88 AS INTEGER ) AS col1 FROM tab2
----
88

query I rowsort
SELECT ALL + 83 + + col2 AS col2 FROM tab1
----
142
151
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT + 66 * - - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
6534

skipif mysql # not compatible
query I rowsort label-5488
SELECT + 66 * - - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
6534

query II rowsort
SELECT + - col0, - col2 * col1 AS col2 FROM tab2 AS cor0
----
-46
-1173
-64
-3080
-75
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT ALL + COUNT( * ) * + + COUNT( ALL - - col0 ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-5490
SELECT ALL + COUNT ( * ) * + + COUNT ( ALL - - col0 ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - SUM( ALL + - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5491
SELECT - SUM ( ALL + - col0 ) AS col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT DISTINCT col0 FROM tab0 WHERE + 23 * col2 * CAST( + 97 AS SIGNED ) NOT IN ( - col2 - - + col0 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT col0 FROM tab0 WHERE + 23 * col2 * CAST ( + 97 AS INTEGER ) NOT IN ( - col2 - - + col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL 74 + + + 79 + ( + COUNT( * ) ) * - ( - + 59 ) AS col1 FROM tab2
----
330

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL 74 + + + 79 + ( + COUNT ( * ) ) * - ( - + 59 ) AS col1 FROM tab2
----
330

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5494
SELECT * FROM tab0 AS cor0 WHERE - col1 * + - CAST( + + 51 AS DECIMAL ) * + col1 IN ( - 28 * + 68, - 5 + - - col1 )
----

skipif mysql # not compatible
query III rowsort label-5494
SELECT * FROM tab0 AS cor0 WHERE - col1 * + - CAST ( + + 51 AS REAL ) * + col1 IN ( - 28 * + 68, - 5 + - - col1 )
----

query I rowsort
SELECT DISTINCT - - col1 + - - col0 + + 43 + + col1 AS col0 FROM tab2 AS cor0
----
191
252
261

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL + COUNT( * ) - - 87 FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + COUNT ( * ) - - 87 FROM tab1 cor0
----
90

query I rowsort
SELECT + - 17 * + + col2 + - col1 AS col0 FROM tab2 cor0
----
-1053
-442
-757

query I rowsort
SELECT - - 4 + + col2 AS col0 FROM tab0 AS cor0
----
103
14
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL + col1 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + col1 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col1 col0 FROM tab1 AS cor0 WHERE NULL <= + col1 + + - ( + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT COUNT( * ) * - 41 * COUNT( * ) FROM tab1 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT COUNT ( * ) * - 41 * COUNT ( * ) FROM tab1 AS cor0
----
-369

query I rowsort
SELECT DISTINCT 73 - col2 + + - ( + 15 ) + + - 68 AS col0 FROM tab2 AS cor0
----
-33
-50
-68

query I rowsort
SELECT - 9 + - col2 + col2 FROM tab2 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 + + col0 = + 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 38 FROM tab0 WHERE ( NOT ( col1 ) BETWEEN ( + 37 ) AND NULL )
----
38
38

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT 86 AS col0, col0 FROM tab2 WHERE NULL IN ( - + col1, col1 * + - col2 * + - 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT ALL + 83 DIV - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 83 / - col0 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - 54 FROM tab0 WHERE NOT col1 IS NULL
----
-54
-54
-54

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT DISTINCT + - col0 * - col0 - + col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + ( col2 ) NOT BETWEEN NULL AND + col1 + 94 * ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + - col0 * - col0 - + col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + ( col2 ) NOT BETWEEN NULL AND + col1 + 94 * ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - MIN( - - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - MIN ( - - col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT ALL col2, 92 * + + 17 AS col2 FROM tab1 AS cor0
----
59
1564
68
1564
96
1564

query II rowsort
SELECT - + col2, + col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT - + COUNT( * ), 11 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0
11

skipif mysql # not compatible
query II rowsort label-5515
SELECT - + COUNT ( * ), 11 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5516
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( NULL ) <> CAST( NULL AS SIGNED ) + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-5516
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( NULL ) <> CAST ( NULL AS INTEGER ) + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT MIN( ALL + col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT ( ( col0 ) IS NOT NULL ) )
----
5

skipif mysql # not compatible
query I rowsort label-5517
SELECT MIN ( ALL + col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT ( ( col0 ) IS NOT NULL ) )
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 13, col2 col2 FROM tab0 AS cor0
----
-13
10
-13
47
-13
99

query I rowsort
SELECT + col2 * + col2 * + + col2 * + col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE 65 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5520
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE 65 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5523
SELECT CAST( NULL AS SIGNED ) + + col2 * col0 * + col0, 16 AS col1 FROM tab2 cor0
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
query II rowsort label-5523
SELECT CAST ( NULL AS INTEGER ) + + col2 * col0 * + col0, 16 AS col1 FROM tab2 cor0
----
NULL
16
NULL
16
NULL
16

query II rowsort
SELECT ALL - col0 + - + col1 AS col1, + 34 FROM tab1 AS cor0
----
-138
34
-65
34
-90
34

query I rowsort
SELECT DISTINCT col2 * col1 * + + col0 + col2 FROM tab0 AS cor0
----
18280
57152
9702

query I rowsort
SELECT DISTINCT 84 * col2 * + col0 * + col0 AS col1 FROM tab0
----
6357960
78245244
888300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT DISTINCT - + COUNT( * ) + + - 58 AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - + COUNT ( * ) + + - 58 AS col1 FROM tab2 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + - col0 - + + col0 * + - col1 + - - col2 col2 FROM tab1 cor0
----
10442
5414
5655

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 77 * - + col0 FROM tab2 AS cor0 WHERE NULL >= 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE + 18 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5532
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + 18 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5533
SELECT ALL + col0 DIV 77 * col1, 1 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
0
-1173
0
-3080
0
-3886

skipif mysql # not compatible
query II rowsort label-5533
SELECT ALL + col0 / 77 * col1, 1 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
0
-1173
0
-3080
0
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + 74 - SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5534
SELECT + 74 - SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT MAX( - 25 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-5535
SELECT MAX ( - 25 ) FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - 3 * + - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 3 * + - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT + 66 * + 57 FROM tab0
----
3762

query I rowsort
SELECT - 70 * col0 AS col1 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL + COUNT( * ) * + MAX( - + col0 ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL + COUNT ( * ) * + MAX ( - + col0 ) AS col0 FROM tab1
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT ALL CAST( + + ( + COUNT( ALL + - col1 ) ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL CAST ( + + ( + COUNT ( ALL + - col1 ) ) AS INTEGER ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 50 + - - ( - col1 ) * + 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT DI