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 DISTINCT CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5544
SELECT + 12 AS col0, + 59 DIV col1 AS col2 FROM tab0 cor0
----
12
0
12
2
12
59

skipif mysql # not compatible
query II rowsort label-5544
SELECT + 12 AS col0, + 59 / col1 AS col2 FROM tab0 cor0
----
12
0
12
2
12
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 * + + 2 + + AVG ( ALL + - col0 ) col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT + ( + - col2 ), 95 + - 58 + + col0 * + ( + col2 ) AS col2 FROM tab0
----
-10
907
-47
742
-99
9640

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

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

skipif mysql # not compatible
query I rowsort label-5550
SELECT + 31 / + col1 FROM tab0 AS cor0
----
0
1
31

query II rowsort
SELECT + 40 + - 19, + ( col1 ) FROM tab1 AS cor0
----
21
14
21
47
21
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + - 99 + - SUM( + 37 ) AS col0 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5552
SELECT + - 99 + - SUM ( + 37 ) AS col0 FROM tab2 AS cor0
----
-210

query I rowsort
SELECT 67 + - col2 * col2 * + + 44 FROM tab0 AS cor0
----
-431177
-4333
-97129

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

query I rowsort
SELECT - col0 + 69 FROM tab1
----
-16
-22
18

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE - col0 <> + col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT DISTINCT + MIN( ALL + 67 ) FROM tab0, tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT + MIN ( ALL + 67 ) FROM tab0, tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT - - col2 * + col0 * + - 93 AS col0 FROM tab2 AS cor0
----
-238080
-404550
-98394

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT ALL + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) - - COUNT( * ) + - 88 * - CAST( 35 AS SIGNED ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - 88 * - CAST ( 35 AS INTEGER ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT - + 18 + + 47 FROM tab0 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL + 81 * + 28 * ( - - 65 ) + COUNT( * ) FROM tab0 cor0
----
147423

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + 81 * + 28 * ( - - 65 ) + COUNT ( * ) FROM tab0 cor0
----
147423

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT MAX( - 76 ) FROM tab0 AS cor0 WHERE ( NOT NULL > - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT MAX ( - 76 ) FROM tab0 AS cor0 WHERE ( NOT NULL > - 61 )
----
NULL

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

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

query I rowsort
SELECT 41 + + + 49 AS col0 FROM tab0 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 * - col0 AND 91 * - col1 + + 94
----
97
1
99

query II rowsort
SELECT 65 * - col1 * - col2 + 17, col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 88 ) NOT BETWEEN + - ( + ( - col1 ) ) - + col1 AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT ( + CAST( + + 27 AS SIGNED ) ) * + col2 FROM tab0
----
1269
2673
270

skipif mysql # not compatible
query I rowsort label-5570
SELECT ( + CAST ( + + 27 AS INTEGER ) ) * + col2 FROM tab0
----
1269
2673
270

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT - col2 DIV - col1 col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT - col2 / - col1 col0 FROM tab0
----
0
0
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT SUM( + 49 ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-5574
SELECT SUM ( + 49 ) FROM tab2 AS cor0
----
147

query II rowsort
SELECT DISTINCT + col1, col0 * + + col1 * - + 31 FROM tab2 AS cor0
----
51
-72726
67
-155775
77
-152768

query I rowsort
SELECT + - col1 * ( - 45 ) * - - col0 * + 26 + - 39 AS col1 FROM tab2 AS cor0
----
2744781
5765721
5879211

query I rowsort
SELECT + 31 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

query I rowsort
SELECT col2 * ( + - col2 ) + - 16 AS col0 FROM tab0
----
-116
-2225
-9817

onlyif mysql # DIV for integer division: 
query II rowsort label-5580
SELECT + 39 + + 80 AS col1, col2 + + col2 + - 33 - + + 44 DIV - - col1 FROM tab0 cor0
----
119
-15
119
121
119
61

skipif mysql # not compatible
query II rowsort label-5580
SELECT + 39 + + 80 AS col1, col2 + + col2 + - 33 - + + 44 / - - col1 FROM tab0 cor0
----
119
-15
119
121
119
61

query I rowsort
SELECT 20 + - + col1 FROM tab2 AS cor0
----
-31
-47
-57

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5584
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col2 AND + CAST( + 17 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5584
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col2 AND + CAST ( + 17 AS INTEGER )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT + + ( + - col2 ) DIV + - 10 AS col0 FROM tab0 AS cor0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + + ( + - col2 ) / + - 10 AS col0 FROM tab0 AS cor0
----
1
4
9

query III rowsort
SELECT * FROM tab2 WHERE + + 84 IS NULL
----

query I rowsort
SELECT DISTINCT - + 93 + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-46
-83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT COUNT( * ) * + - 48 AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5591
SELECT COUNT ( * ) * + - 48 AS col1 FROM tab2
----
-144

query II rowsort
SELECT 99 - col0 AS col2, col1 FROM tab1
----
14
5
48
14
8
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 - + + 18 - - 49 * + 62 col0 FROM tab2
----
3035
3035
3035

query I rowsort
SELECT DISTINCT + 80 + - + 38 AS col1 FROM tab2
----
42

query III rowsort
SELECT * FROM tab0 WHERE + 39 + + col2 - + 63 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT - 82 * - - COUNT( * ) col2 FROM tab1 AS cor0
----
-246

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

query I rowsort
SELECT DISTINCT + col1 * - - 49 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + col2 * + + 43 FROM tab1 AS cor0
----
2537
2924
4128

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

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

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

skipif mysql # not compatible
query II rowsort label-5602
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) AS col0, + col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - col2 - - col2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - col2 - - col2 ) < NULL
----
0

query I rowsort
SELECT ALL col0 * + 21 FROM tab1
----
1071
1785
1911

query I rowsort
SELECT DISTINCT + col2 * 56 AS col0 FROM tab2 AS cor0
----
1288
2240
3248

query I rowsort
SELECT + + 28 * col2 * col2 FROM tab2 cor0
----
14812
44800
94192

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5608
SELECT + 90, CAST( NULL AS SIGNED ) * - ( - col1 ) AS col1 FROM tab2
----
90
NULL
90
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-5608
SELECT + 90, CAST ( NULL AS INTEGER ) * - ( - col1 ) AS col1 FROM tab2
----
90
NULL
90
NULL
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + SUM( 44 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + SUM ( 44 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
396

query I rowsort
SELECT ALL col2 * - col1 + ( + 24 ) + col1 - - 71 * col0 AS col1 FROM tab1
----
2315
3336
5769

query I rowsort
SELECT DISTINCT - 38 + - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-120
-59
-92

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

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 68, - 66 + + 65, - - col1 + + col2 + col2 - - + col2, col2 * + - col0 * + 27 / + + col1 )
----

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

query I rowsort
SELECT + 93 * - 8 - + ( - col0 ) + col0 + - col1 + col1 AS col0 FROM tab2 AS cor0
----
-594
-616
-652

onlyif mysql # aggregate syntax: 
query II rowsort label-5617
SELECT DISTINCT - COUNT( * ), 39 col1 FROM tab0
----
-3
39

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

query I rowsort
SELECT - col1 * + + 75 FROM tab1 WHERE + 44 = NULL
----

query I rowsort
SELECT + + col2 / + col2 FROM tab1 WHERE - col2 * + col1 * - - col2 / - col2 + + 38 = + col0
----

query I rowsort
SELECT ALL 68 + col0 AS col0 FROM tab0
----
155
165
83

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

query I rowsort
SELECT ALL - 94 - - col2 FROM tab1 AS cor0
----
-26
-35
2

query I rowsort
SELECT DISTINCT + - 87 - + col2 * - + 61 AS col2 FROM tab0 AS cor0
----
2780
523
5952

query I rowsort
SELECT - + 0 - - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL > ( + 99 * - 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT + COUNT( + + col2 ) AS col2 FROM tab0 WHERE NOT 6 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + COUNT ( + + col2 ) AS col2 FROM tab0 WHERE NOT 6 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5627
SELECT + COUNT( * ) AS col2, - 53 * - 16 AS col0, + 54 + 96 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
848
150

skipif mysql # not compatible
query III rowsort label-5627
SELECT + COUNT ( * ) AS col2, - 53 * - 16 AS col0, + 54 + 96 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
848
150

query II rowsort
SELECT + 43, + 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 3ff10bc6a7fe475a6bcf63ac390d59ff

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT + + 87 * - + 69 - - COUNT( * ) FROM tab0 AS cor0
----
-6000

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + + 87 * - + 69 - - COUNT ( * ) FROM tab0 AS cor0
----
-6000

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col1 FROM tab2 cor0
----
35
35
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + + COUNT( * ) * + - ( + - 67 ) * + 23 - + + 39 * - COUNT( * ) AS col1 FROM tab0 cor0
----
4740

skipif mysql # not compatible
query I rowsort label-5634
SELECT + + COUNT ( * ) * + - ( + - 67 ) * + 23 - + + 39 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
4740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT - ( + col2 ) FROM tab2 AS cor0 WHERE + col1 / - + col0 IN ( - ( - 52 ) * col0, col2 * + CAST( NULL AS SIGNED ) * 31 * + - 86 / 28 )
----

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - ( + col2 ) FROM tab2 AS cor0 WHERE + col1 / - + col0 IN ( - ( - 52 ) * col0, col2 * + CAST ( NULL AS INTEGER ) * 31 * + - 86 / 28 )
----

query II rowsort
SELECT ALL + col2, col1 * + 87 FROM tab2
----
23
4437
40
6699
58
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT 19 * + ( MIN( DISTINCT - + col1 ) ) AS col0 FROM tab1
----
-893

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT 19 * + ( MIN ( DISTINCT - + col1 ) ) AS col0 FROM tab1
----
-893

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT MIN( 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5639
SELECT MIN ( 33 ) FROM tab2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT col2 DIV + + col2 + - 85 + 61 FROM tab0 cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-5640
SELECT col2 / + + col2 + - 85 + 61 FROM tab0 cor0
----
-23
-23
-23

query II rowsort
SELECT DISTINCT + 91, 27 AS col2 FROM tab0 AS cor0
----
91
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL - 40 * - MAX( ALL col0 ) FROM tab2
----
3000

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - 40 * - MAX ( ALL col0 ) FROM tab2
----
3000

query I rowsort
SELECT DISTINCT col0 + - + 61 + + 72 - - + col0 * 85 AS col1 FROM tab1
----
4397
7321
7837

query I rowsort
SELECT - col2 * + 91 + col0 FROM tab1
----
-5284
-6097
-8685

query I rowsort
SELECT ALL - col1 + + 21 + col0 AS col2 FROM tab1 AS cor0
----
101
58
65

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

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

query I rowsort
SELECT DISTINCT + 17 * - 41 AS col1 FROM tab2 AS cor0
----
-697

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5651
SELECT - - col1 * + 42, - col0 DIV + - col1 + + - 82 col0 FROM tab1 AS cor0
----
1974
-81
210
-65
588
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5651
SELECT - - col1 * + 42, - col0 / + - col1 + + - 82 col0 FROM tab1 AS cor0
----
1974
-81
210
-65
588
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT 64 * + COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT 64 * + COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT + col0 - + - col0 AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 97 >= - 10
----

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

skipif mysql # not compatible
query I rowsort label-5655
SELECT + COUNT ( * ) - + - 66 * - + CAST ( NULL AS REAL ) * - COUNT ( ALL 9 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - 91 FROM tab0
----
-4277
-9009
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * + 91 + - - col1 AS col2 FROM tab0
----
1446
7938
8828

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * + 91 + - - col1 AS col2 FROM tab0
----
1446
7938
8828

query I rowsort
SELECT DISTINCT - 1 / - ( - col2 ) + - col1 * col1 FROM tab1 WHERE NOT NULL <> + col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT 79 + + COUNT( * ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5659
SELECT 79 + + COUNT ( * ) AS col2 FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL + ( + COUNT( * ) ) + + + 68 FROM tab0, tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + ( + COUNT ( * ) ) + + + 68 FROM tab0, tab2 AS cor0
----
77

query I rowsort
SELECT ALL + col1 * - col2 * - + ( 6 ) FROM tab0 AS cor0
----
1260
22842
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5662
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 49 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 0 * - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) * - + col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < - col2 * - col1 * + 93
----

query II rowsort
SELECT + + col2 AS col1, 47 + + col0 FROM tab1 AS cor0
----
59
132
68
138
96
98

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

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

query I rowsort
SELECT ALL col1 * - + col1 + - ( - 35 ) + - col1 * + - col0 FROM tab0
----
-5311
131
1421

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT 62 - + col2 BETWEEN col1 AND NULL
----
47
99

query I rowsort
SELECT ALL - 59 + + 32 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT ( 74 ) DIV - ( - col1 ) AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5674
SELECT ( 74 ) / - ( - col1 ) AS col1 FROM tab2
----
0
1
1

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT 57 + + 29 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT DISTINCT 72 + COUNT( * ) + + MAX( + col2 ), - 97 AS col0 FROM tab0 AS cor0
----
174
-97

skipif mysql # not compatible
query II rowsort label-5676
SELECT DISTINCT 72 + COUNT ( * ) + + MAX ( + col2 ), - 97 AS col0 FROM tab0 AS cor0
----
174
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL - - 26 + - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - - 26 + - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 28 ) + - - col1 * + 47 col0 FROM tab2 AS cor0
----
2425
3177
3647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT + 57 + + col1 + + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-39
-9
123

skipif mysql # not compatible
query I rowsort label-5679
SELECT + 57 + + col1 + + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-39
-9
123

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 / + 62 * + - col2 >= NULL
----

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

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

query I rowsort
SELECT DISTINCT 8 + - 10 AS col0 FROM tab2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT col2 DIV - col0 - + 30 FROM tab1
----
-30
-30
-31

skipif mysql # not compatible
query I rowsort label-5684
SELECT col2 / - col0 - + 30 FROM tab1
----
-30
-30
-31

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

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

query I rowsort
SELECT DISTINCT - + col0 * col2 * + + col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query II rowsort
SELECT ALL - col0, 98 - - - 20 * - + col2 FROM tab1 WHERE NOT + 24 * + ( - 79 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT - 34 - - 43 + - col2 + + col0 / - 80 FROM tab0 WHERE NOT - 50 / + 8 * - ( - CAST( + - 74 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5688
SELECT - 34 - - 43 + - col2 + + col0 / - 80 FROM tab0 WHERE NOT - 50 / + 8 * - ( - CAST ( + - 74 AS INTEGER ) ) IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5691
SELECT ALL - 11 FROM tab0 AS cor0 WHERE - CAST( col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - 11 FROM tab0 AS cor0 WHERE - CAST ( col1 AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col1 * + 65 AS col1 FROM tab0 AS cor0
----
15
5265
87
1365
97
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5693
SELECT DISTINCT + col2 + - col1 * - 25 FROM tab2 AS cor0 WHERE col0 + - - col1 + CAST( NULL AS DECIMAL ) + - 11 * - col1 IS NULL
----
1298
1733
1965

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + col2 + - col1 * - 25 FROM tab2 AS cor0 WHERE col0 + - - col1 + CAST ( NULL AS REAL ) + - 11 * - col1 IS NULL
----
1298
1733
1965

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

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

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

query I rowsort
SELECT ALL - 41 + - - col2 FROM tab2
----
-1
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5697
SELECT DISTINCT * FROM tab1 WHERE NULL > - + CAST( - col2 AS SIGNED ) / + 97 + 14
----

skipif mysql # not compatible
query III rowsort label-5697
SELECT DISTINCT * FROM tab1 WHERE NULL > - + CAST ( - col2 AS INTEGER ) / + 97 + 14
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 49 + + + col0 col1 FROM tab2
----
-2453
-3208
-3709

onlyif mysql # DIV for integer division: 
query II rowsort label-5701
SELECT ALL + 31 + + col0 DIV - col0 AS col0, - 30 + - col0 FROM tab0
----
30
-117
30
-127
30
-45

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL + 31 + + col0 / - col0 AS col0, - 30 + - col0 FROM tab0
----
30
-117
30
-127
30
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 >= + 68 + ( - - col0 )
----

query I rowsort
SELECT - ( - 56 ) AS col2 FROM tab0
----
56
56
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL - - COUNT( * ) * + SUM( + 77 ) + - - 77 + - - COUNT( * ) - 42 FROM tab2 AS cor0
----
731

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - - COUNT ( * ) * + SUM ( + 77 ) + - - 77 + - - COUNT ( * ) - 42 FROM tab2 AS cor0
----
731

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT + MIN ( col2 ) col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + col2 + col2 - + col1 * col1 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
-1476131
-3337909
-9211

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

query I rowsort
SELECT DISTINCT - col1 * + 76 * + col0 - + col1 + 17 + - col0 FROM tab1 AS cor0
----
-32373
-325173
-54312

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT + col2 * - 53 - col0 DIV + 56 FROM tab1
----
-3128
-3605
-5088

skipif mysql # not compatible
query I rowsort label-5710
SELECT + col2 * - 53 - col0 / + 56 FROM tab1
----
-3128
-3605
-5088

query I rowsort
SELECT + col0 - - 81 FROM tab2
----
127
145
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 - + 21 col2 FROM tab0
----
63
63
63

query I rowsort
SELECT col0 * - 40 AS col0 FROM tab1
----
-2040
-3400
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT ALL - SUM( - col0 ) * COUNT( * ) AS col1, - 22 AS col0 FROM tab0
----
597
-22

skipif mysql # not compatible
query II rowsort label-5714
SELECT ALL - SUM ( - col0 ) * COUNT ( * ) AS col1, - 22 AS col0 FROM tab0
----
597
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT MAX( DISTINCT col1 ) * 57 col1 FROM tab2
----
4389

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5715
SELECT MAX ( DISTINCT col1 ) * 57 col1 FROM tab2
----
4389

query II rowsort
SELECT col2 AS col2, + col2 * + + col0 AS col2 FROM tab0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= + 70
----
51
14
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 IN ( + col2, - 92 / + - col1 * + col0 * - 50 * + col0, 75, - col2 * + col1 )
----

query I rowsort
SELECT ALL ( + col2 ) * ( + - 20 ) + - ( col0 ) FROM tab1 cor0
----
-1265
-1451
-1971

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

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

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

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

query I rowsort
SELECT DISTINCT + - 50 AS col0 FROM tab0 cor0
----
-50

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

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

query I rowsort
SELECT DISTINCT - 14 * - ( + + 56 ) * - - col2 * + col2 * - - col0 AS col1 FROM tab1 cor0
----
231973840
329894656
368492544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5725
SELECT ALL - CAST( + col0 AS SIGNED ) AS col0, + col2 + 58 FROM tab1 AS cor0
----
-51
154
-85
117
-91
126

skipif mysql # not compatible
query II rowsort label-5725
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col0, + col2 + 58 FROM tab1 AS cor0
----
-51
154
-85
117
-91
126

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

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

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

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

query I rowsort
SELECT 29 + + col2 AS col2 FROM tab2
----
52
69
87

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

query I rowsort
SELECT ALL 18 * + - col2 + col0 FROM tab0
----
-1685
-831
-93

query I rowsort
SELECT - col2 + + + col2 + col0 * col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT ALL + 6 + + CAST( + col1 AS SIGNED ) FROM tab2
----
57
73
83

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + 6 + + CAST ( + col1 AS INTEGER ) FROM tab2
----
57
73
83

query I rowsort
SELECT ALL - ( + 78 ) - + col0 * + - 55 AS col1 FROM tab2 AS cor0
----
2452
3442
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT SUM( + 77 ) + 13 FROM tab1
----
244

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT SUM ( + 77 ) + 13 FROM tab1
----
244

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

query I rowsort
SELECT + 86 * - col0 + + col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

query III rowsort
SELECT + col2, + 35 AS col0, + - 73 FROM tab0 AS cor0
----
9 values hashing to 2dbc3d093396e33952bd9eb3e29e6bfe

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT 68 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT 68 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) OR NULL BETWEEN 35 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT DISTINCT 48 * - SUM( DISTINCT - 42 ) col2 FROM tab2 AS cor0
----
2016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5745
SELECT DISTINCT 48 * - SUM ( DISTINCT - 42 ) col2 FROM tab2 AS cor0
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT + 81 + + + col2 * - + CAST( + + col1 AS SIGNED ) FROM tab1
----
-1263
-214
-3115

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 81 + + + col2 * - + CAST ( + + col1 AS INTEGER ) FROM tab1
----
-1263
-214
-3115

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5748
SELECT col2 * - CAST( 85 AS SIGNED ), + col1 FROM tab0 cor0
----
-3995
81
-8415
1
-850
21

skipif mysql # not compatible
query II rowsort label-5748
SELECT col2 * - CAST ( 85 AS INTEGER ), + col1 FROM tab0 cor0
----
-3995
81
-8415
1
-850
21

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

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

query I rowsort
SELECT ALL + 97 + col0 FROM tab1 AS cor0
----
148
182
188

query I rowsort
SELECT DISTINCT col0 * + + col2 - - 59 + + col0 + col1 FROM tab0 cor0
----
1037
860
9760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT DISTINCT - 62 * CAST( NULL AS SIGNED ) * - 27 * + col0 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 * + col0 = + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - 62 * CAST ( NULL AS INTEGER ) * - 27 * + col0 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 * + col0 = + 96
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT + AVG ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL >= + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL >= + - col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT 74 + + + COUNT( * ) AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT 74 + + + COUNT ( * ) AS col0 FROM tab1
----
77

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

skipif mysql # not compatible
query I rowsort label-5757
SELECT CAST ( + 23 AS INTEGER ) FROM tab1
----
23
23
23

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

query I rowsort
SELECT ALL - + col2 * - col0 * - col2 FROM tab0 WHERE + col0 + - 80 <> - 30
----
-33135
-8700
-950697

query I rowsort
SELECT DISTINCT 1 + + col1 FROM tab0
----
2
22
82

query I rowsort
SELECT DISTINCT + 46 + - + col1 AS col0 FROM tab1
----
-1
32
41

query I rowsort
SELECT ALL col0 * 83 + + col2 * - + col2 * + col2 AS col0 FROM tab2
----
-188887
-58688
-8349

query I rowsort
SELECT - col2 + - col2 + - 0 AS col0 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT ALL col1 + - 29 AS col1 FROM tab0
----
-28
-8
52

query II rowsort
SELECT DISTINCT + 96 + + - col2 - + - 98 * - - col2, + col2 AS col0 FROM tab0
----
1066
10
4655
47
9699
99

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

query I rowsort
SELECT DISTINCT 60 + - col2 AS col0 FROM tab1
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT + COUNT( * ) + - 52 FROM tab0, tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5768
SELECT + COUNT ( * ) + - 52 FROM tab0, tab2 AS cor0
----
-43

query II rowsort
SELECT col2 AS col2, col2 - col2 FROM tab0
----
10
0
47
0
99
0

query I rowsort
SELECT - 75 AS col2 FROM tab0 cor0 WHERE NULL NOT IN ( + col2, + 90, + 27 * - + col2 + + 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT - 13 - - - col2 + + CAST( NULL AS SIGNED ) + + 62 * - - 80 * - 60 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT - 13 - - - col2 + + CAST ( NULL AS INTEGER ) + + 62 * - - 80 * - 60 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT ALL + col1 + - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE 32 * col1 + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + col1 + - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE 32 * col1 + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 84, col0 FROM tab1 AS cor0
----
-84
51
-84
85
-84
91

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

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

query I rowsort
SELECT ALL - col1 - - - 24 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-105
-25
-45

query II rowsort
SELECT col1, - col0 * ( - col2 ) FROM tab1
----
14
4896
47
6188
5
5015

query I rowsort
SELECT + col1 * col0 * - 64 FROM tab0
----
-116928
-6208
-77760

query I rowsort
SELECT 63 * + + col2 * - col1 AS col2 FROM tab2
----
-194040
-244818
-73899

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5782
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 44 AS col2 FROM tab1
----
NULL
-44
NULL
-44
NULL
-44

skipif mysql # not compatible
query II rowsort label-5782
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 44 AS col2 FROM tab1
----
NULL
-44
NULL
-44
NULL
-44

query I rowsort
SELECT - + col2 + 29 / 66 * - 90 AS col0 FROM tab2 WHERE NOT NULL = col1 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + MIN( ALL + 9 ) * + 48 AS col0 FROM tab1
----
432

skipif mysql # not compatible
query I rowsort label-5784
SELECT + MIN ( ALL + 9 ) * + 48 AS col0 FROM tab1
----
432

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 * col1 BETWEEN + col1 AND - col2 - + col2 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + + col1 * - + 85 FROM tab2 cor0
----
-4335
-5695
-6545

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

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

query I rowsort
SELECT ALL + - 20 FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT - COUNT( * ) * ( - 5 ) DIV - 31 FROM tab2 AS cor0 WHERE NOT NULL <= - 28
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT - COUNT ( * ) * ( - 5 ) / - 31 FROM tab2 AS cor0 WHERE NOT NULL <= - 28
----
0

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

query I rowsort
SELECT col2 + + 96 * col1 FROM tab1 AS cor0
----
1440
4580
539

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

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

query I rowsort
SELECT + col2 + 69 + - 91 AS col0 FROM tab2 AS cor0
----
1
18
36

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

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

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

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

query I rowsort
SELECT ALL col2 * + 34 FROM tab1
----
2006
2312
3264

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

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

query I rowsort
SELECT + 78 FROM tab1, tab2 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL - 19 + 8 AS col0 FROM tab1 cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT ALL - 80 + - CAST( col2 AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
-142
-177
-276

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - 80 + - CAST ( col2 AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
-142
-177
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT + CAST( + col0 AS SIGNED ) * + 38 FROM tab1 cor0 WHERE - 25 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5803
SELECT + CAST ( + col0 AS INTEGER ) * + 38 FROM tab1 cor0 WHERE - 25 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 59 * col2 FROM tab1
----
3481
4012
5664

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= ( col2 )
----

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

query I rowsort
SELECT + col0 + + 73 FROM tab1
----
124
158
164

query III rowsort
SELECT * FROM tab1 WHERE ( + 99 + - 7 ) = + 66
----

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col0 + - ( col0 ) * 70 FROM tab2
----
-3174
-4416
-5175

query I rowsort
SELECT - ( col0 ) + col0 FROM tab1 WHERE ( NULL ) <> + ( + col0 ) + + 95
----

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

query I rowsort
SELECT DISTINCT col2 - 72 FROM tab2
----
-14
-32
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL MIN( - ( + col2 ) ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5817
SELECT ALL MIN ( - ( + col2 ) ) col0 FROM tab1
----
-96

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT - 42 + + col1 BETWEEN NULL AND - col0 + + 57 * col1
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - col1 * + 46 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col1 IN ( col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL + AVG ( ALL - 6 ) * - MIN( DISTINCT - 38 ) FROM tab2 WHERE col0 - + col0 IN ( + ( - 29 ) + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + AVG ( ALL - 6 ) * - MIN ( DISTINCT - 38 ) FROM tab2 WHERE col0 - + col0 IN ( + ( - 29 ) + - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT COUNT( DISTINCT col0 ) AS col2 FROM tab2 WHERE + ( - col2 ) BETWEEN + 59 * 83 + 25 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT COUNT ( DISTINCT col0 ) AS col2 FROM tab2 WHERE + ( - col2 ) BETWEEN + 59 * 83 + 25 AND - col1
----
0

query I rowsort
SELECT - col1 + 55 AS col1 FROM tab0
----
-26
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT 67 + col2 DIV col2 AS col0 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5825
SELECT 67 + col2 / col2 AS col0 FROM tab1
----
68
68
68

query I rowsort
SELECT 5 + + col2 FROM tab2
----
28
45
63

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

query I rowsort
SELECT ALL + ( 16 ) + 76 FROM tab1
----
92
92
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT - col2 FROM tab1 WHERE + CAST( + col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - col2 FROM tab1 WHERE + CAST ( + col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT - SUM( col1 ) FROM tab2 WHERE ( col0 * col0 ) IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-5832
SELECT - SUM ( col1 ) FROM tab2 WHERE ( col0 * col0 ) IS NOT NULL
----
-195

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 12 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
21

skipif mysql # not compatible
query I rowsort label-5835
SELECT 12 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
21

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL ( + 93 ) + - 43 FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL 95 + + COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL 95 + + COUNT ( * ) FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - COUNT( * ) * 43 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-5839
SELECT - COUNT ( * ) * 43 FROM tab1 AS cor0
----
-129

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT DISTINCT CAST( 49 AS SIGNED ) + 47 AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT CAST ( 49 AS INTEGER ) + 47 AS col2 FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL - 84 * - col1 FROM tab0 cor0
----
1764
6804
84

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

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

query I rowsort
SELECT ALL 34 - 23 FROM tab1 AS cor0 WHERE NOT ( - 63 ) IS NULL
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 * - 4 col2 FROM tab1 cor0
----
-136
-136
-136

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

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

query I rowsort
SELECT ALL col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) * + 54 AND ( ( col2 ) + - 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5851
SELECT * FROM tab0 WHERE + col2 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5851
SELECT * FROM tab0 WHERE + col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN col1 + + 59 AND col2
----

query I rowsort
SELECT - col2 * ( 4 ) + ( - col0 ) FROM tab2 WHERE col0 IS NOT NULL
----
-138
-224
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT + 47 - - COUNT( * ) + + 42 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-5855
SELECT + 47 - - COUNT ( * ) + + 42 FROM tab1
----
92

query I rowsort
SELECT ALL 26 * col1 AS col2 FROM tab2
----
1326
1742
2002

query I rowsort
SELECT col0 * - col0 - - col0 AS col0 FROM tab1
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT - SUM( ALL col1 ) AS col1 FROM tab2 WHERE NOT col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - SUM ( ALL col1 ) AS col1 FROM tab2 WHERE NOT col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT + COUNT( * ) * + - 21 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + COUNT ( * ) * + - 21 FROM tab1
----
-63

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( 75 / col0 ) NOT IN ( col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( - 58 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 + col0 col2 FROM tab0
----
115
125
43

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 3 * + col1 + + 86 AS col0 FROM tab1 cor0
----
101
128
227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL + COUNT( * ) - - 90 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + COUNT ( * ) - - 90 FROM tab2 AS cor0
----
93

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

query I rowsort
SELECT col0 * 19 FROM tab1
----
1615
1729
969

query II rowsort
SELECT DISTINCT - 76, col2 FROM tab0
----
-76
10
-76
47
-76
99

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( + col0 / - col0 IS NOT NULL ) OR NOT ( 35 + 52 ) <= ( - 41 - 16 * 47 )
----
-51
-67
-77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 AS col2, 64 col0 FROM tab1 cor0
----
59
64
68
64
96
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 77 * + 78 - col0 ) NOT BETWEEN col2 AND col2 / + 76 - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col2 AND col1 + col0 / col2
----
46
51
23
64
77
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + SUM( ALL - 38 ) AS col1 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5883
SELECT + SUM ( ALL - 38 ) AS col1 FROM tab2 AS cor0
----
-114

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 61 * - + 89 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT ALL + SUM( - col2 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + SUM ( - col2 ) / - COUNT ( * ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT + 69 * + col1 AS col2 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT 19 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT ALL 99 DIV COUNT( * ) * MIN( ALL - col1 ) FROM tab2
----
-2541

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL 99 / COUNT ( * ) * MIN ( ALL - col1 ) FROM tab2
----
-2541

query I rowsort
SELECT + - 15 * + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + 73 NOT IN ( 41 + col2 * 38 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT ALL ( - col0 ) DIV + col2 - 7 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-8
-8
-9

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL ( - col0 ) / + col2 - 7 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-8
-8
-9

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

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

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col2 FROM tab2 WHERE NOT - col0 = + col0
----
141
142
97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) >= ( - CAST( NULL AS SIGNED ) * col0 ) )
----

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) >= ( - CAST ( NULL AS INTEGER ) * col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5899
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> ( + col0 * + - CAST( + 2 AS SIGNED ) / + ( col2 ) )
----

skipif mysql # not compatible
query III rowsort label-5899
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> ( + col0 * + - CAST ( + 2 AS INTEGER ) / + ( col2 ) )
----

query I rowsort
SELECT ALL - 20 FROM tab2 AS cor0 WHERE NOT ( + col1 ) < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT 65 DIV 50 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5902
SELECT 65 / 50 AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL col1 + col0 * - 95, + col2 AS col1 FROM tab0
----
-1344
47
-8244
10
-9214
99

query I rowsort
SELECT ALL - 75 + - col2 AS col1 FROM tab1 AS cor0
----
-134
-143
-171

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

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

query I rowsort
SELECT - - col2 + + + col2 FROM tab2 AS cor0
----
116
46
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT COUNT( * ) + + + COUNT( ALL 74 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5908
SELECT COUNT ( * ) + + + COUNT ( ALL 74 ) AS col2 FROM tab2 AS cor0
----
6

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

skipif mysql # not compatible
query I rowsort label-5909
SELECT 31 * MAX ( ALL col1 ) / + 43 + COUNT ( ALL + col1 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT - 32 + col1 AS col0 FROM tab2 AS cor0
----
19
35
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5911
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( - col1 AS SIGNED ) * 95 * - - col1 + col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5911
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( - col1 AS INTEGER ) * 95 * - - col1 + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT - 34 * - + 95 + - COUNT( * ) FROM tab1 AS cor0
----
3227

skipif mysql # not compatible
query I rowsort label-5912
SELECT - 34 * - + 95 + - COUNT ( * ) FROM tab1 AS cor0
----
3227

query I rowsort
SELECT ( 55 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
55
55
55

query II rowsort
SELECT ALL 13 AS col2, - 37 FROM tab1
----
13
-37
13
-37
13
-37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT ALL - col2 + - col2 DIV + col0 AS col1 FROM tab1
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - col2 + - col2 / + col0 AS col1 FROM tab1
----
-59
-68
-97

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

query I rowsort
SELECT ALL col2 + + col2 FROM tab1 WHERE NOT 68 = ( - - col1 )
----
118
136
192

query I rowsort
SELECT DISTINCT - 40 - 37 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( - col2 * + 45 ) AND col2
----

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

query I rowsort
SELECT ALL col1 * - - 29 FROM tab1 AS cor0
----
1363
145
406

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( ( 21 ) ) NOT IN ( + col0 / col2 ) ) )
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + col1 * - - col1 AS col0 FROM tab2
----
23
2601
40
5929
58
4489

query I rowsort
SELECT DISTINCT + 2 * - + 83 AS col2 FROM tab0
----
-166

query I rowsort
SELECT + col0 * ( 57 ) FROM tab0 WHERE NOT NULL < - 57
----

query II rowsort
SELECT 21 AS col2, col2 + + col1 + - 17 + + - col2 * col0 AS col1 FROM tab0
----
21
-594
21
-856
21
-9520

query I rowsort
SELECT ALL col1 * - + 98 AS col2 FROM tab2
----
-4998
-6566
-7546

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ( + - 75 ) * COUNT( * ) AS col2 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-5933
SELECT ( + - 75 ) * COUNT ( * ) AS col2 FROM tab0
----
-225

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

query I rowsort
SELECT ALL - col1 * - - col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5939
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - + 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

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

query I rowsort
SELECT DISTINCT - + 24 AS col1 FROM tab1 cor0
----
-24

query I rowsort
SELECT DISTINCT + 94 - + col1 AS col0 FROM tab0 AS cor0
----
13
73
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NOT - col2 <> col0 + - 50 + col0 AND CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NOT - col2 <> col0 + - 50 + col0 AND CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - ( - col0 ) - col1 + + col2 AS col0 FROM tab0
----
-19
195
76

query I rowsort
SELECT 67 + + col1 + - + ( col0 ) + 15 / - col2 AS col2 FROM tab2 WHERE + 13 < + 11 * - col0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT 21 * COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-5950
SELECT 21 * COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL + COUNT( DISTINCT - + 1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + COUNT ( DISTINCT - + 1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + 67 + + 11 AS col1 FROM tab0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT col0 + + col0 DIV - 48 FROM tab0
----
15
86
95

skipif mysql # not compatible
query I rowsort label-5954
SELECT col0 + + col0 / - 48 FROM tab0
----
15
86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL 33 + COUNT( * ) * - 49 * + COUNT( ALL 86 ) FROM tab1
----
-408

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL 33 + COUNT ( * ) * - 49 * + COUNT ( ALL 86 ) FROM tab1
----
-408

query I rowsort
SELECT 72 + + col2 FROM tab2
----
112
130
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col1 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL + col0 * - 25 FROM tab0 AS cor0
----
-2175
-2425
-375

query II rowsort
SELECT ALL + + col1 AS col0, - col2 * - col2 * 6 AS col1 FROM tab1 AS cor0
----
14
55296
47
27744
5
20886

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT MIN( DISTINCT ( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT MIN ( DISTINCT ( + col2 ) ) FROM tab1
----
59

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

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

skipif mysql # not compatible
query I rowsort label-5963
SELECT - col1 / + 99 * ( + col1 ) AS col0 FROM tab0 cor0
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, + 78 * + 25 AS col0 FROM tab0 AS cor0
----
-10
1950
-47
1950
-99
1950

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

skipif mysql # not compatible
query II rowsort label-5966
SELECT col0 / + - col0 AS col0, col0 FROM tab2
----
-1
46
-1
64
-1
75

query II rowsort
SELECT col2 + + - 16, col2 + col1 + - - col2 * 0 AS col1 FROM tab2
----
24
117
42
125
7
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 90 <= 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT ALL - 85 + + COUNT( * ) * 10, - 22 AS col0 FROM tab2
----
-55
-22

skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL - 85 + + COUNT ( * ) * 10, - 22 AS col0 FROM tab2
----
-55
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT - MIN( ALL - 65 ) + + + 1 * + - COUNT( * ) col0 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT DISTINCT - MIN ( ALL - 65 ) + + + 1 * + - COUNT ( * ) col0 FROM tab1
----
62

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + col0 * - + col1 <> - 83
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT DISTINCT COUNT( * ) DIV - 68 + - 10, 45 + - 45 AS col1 FROM tab1 AS cor0
----
-10
0

skipif mysql # not compatible
query II rowsort label-5975
SELECT DISTINCT COUNT ( * ) / - 68 + - 10, 45 + - 45 AS col1 FROM tab1 AS cor0
----
-10
0

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

skipif mysql # not compatible
query I rowsort label-5976
SELECT AVG ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + COUNT ( - col1 ) / + + 16 + COUNT ( * ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 * col0 col1 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + + 70 + + COUNT( * ) * 43 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + + 70 + + COUNT ( * ) * 43 FROM tab0 AS cor0
----
199

query I rowsort
SELECT - 68 + col2 FROM tab0 AS cor0
----
-21
-58
31

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

query I rowsort
SELECT 92 * - 82 FROM tab0
----
-7544
-7544
-7544

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

query I rowsort
SELECT ALL + 94 AS col2 FROM tab2 WHERE NOT + col0 NOT IN ( + col2 * + col2 * + col1 * col0, 16 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5985
SELECT DISTINCT CAST( col0 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT CAST ( col0 AS REAL ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

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

skipif mysql # not compatible
query I rowsort label-5986
SELECT MAX ( + 60 ) AS col0 FROM tab1
----
60

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 63 IN ( col2 )
----

query I rowsort
SELECT ( - - col0 ) * + - col0 * - col2 * ( - + col1 ) * + + 27 AS col0 FROM tab0 AS cor0
----
-23127525
-25150257
-42916230

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5990
SELECT 57 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) / - col2 * + - col0 * - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5990
SELECT 57 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) / - col2 * + - col0 * - col1 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT COUNT ( ALL + col2 ) * + MAX ( col0 ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT - 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

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

query II rowsort
SELECT - - 70 AS col1, + col0 * col1 FROM tab0 AS cor0
----
70
1215
70
1827
70
97

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

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

query I rowsort
SELECT ALL - - ( - 80 ) FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5998
SELECT ALL + col0 col1, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5998
SELECT ALL + col0 col1, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

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

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

query I rowsort
SELECT - ( - 63 ) AS col0 FROM tab2
----
63
63
63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 93 col1 FROM tab1
----
-144
-178
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT DISTINCT - COUNT( * ) DIV - - 69 * + COUNT( * ) + - COUNT( col2 ) + + 53 + 54 + + + 38 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
142

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - COUNT ( * ) / - - 69 * + COUNT ( * ) + - COUNT ( col2 ) + + 53 + 54 + + + 38 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
142

query I rowsort
SELECT DISTINCT col0 - + 75 + + 78 FROM tab2 AS cor0
----
49
67
78

query I rowsort
SELECT DISTINCT - - 99 * col1 AS col1 FROM tab0 AS cor0
----
2079
8019
99

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 89 * - 43 + col0 FROM tab2 cor0
----
-3752
-3763
-3781

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

skipif mysql # not compatible
query I rowsort label-6011
SELECT - MAX ( DISTINCT - 78 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE 97 = NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 - + - col0 + col0 AS col2 FROM tab0 AS cor0
----
184
293
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 35 - - + col2 col1, 75 FROM tab0 AS cor0
----
-25
75
12
75
64
75

query I rowsort
SELECT DISTINCT - - col1 - - col2 + + + 5 + - col0 FROM tab2 AS cor0
----
33
55
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT DISTINCT + COUNT( * ) * + 11 AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + COUNT ( * ) * + 11 AS col0 FROM tab1
----
33

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

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

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NOT NULL > 67 )
----

query I rowsort
SELECT 23 * + 41 FROM tab0
----
943
943
943

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

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

query II rowsort
SELECT + col0 AS col2, - col1 * col0 + + 4 FROM tab1
----
51
-710
85
-421
91
-4273

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL - SUM( + 4 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL - SUM ( + 4 ) FROM tab2 AS cor0
----
-12

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

skipif mysql # not compatible
query I rowsort label-6028
SELECT SUM ( - col1 ) AS col0 FROM tab0 cor0
----
-103

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

query II rowsort
SELECT DISTINCT - 12 AS col0, ( col0 ) - - - col1 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6031
SELECT - 11 DIV + - col2 + - - col2 * - - 20 + - + CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1239
1428
2016

skipif mysql # not compatible
query I rowsort label-6031
SELECT - 11 / + - col2 + - - col2 * - - 20 + - + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1239
1428
2016

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT MIN( DISTINCT col0 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT MIN ( DISTINCT col0 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + col1 + - 40 AS col0, + 98 AS col1 FROM tab0 AS cor0
----
-19
98
-39
98
41
98

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN - 74 * - col0 + + col1 * col1 + col0 + 47 + - col0 * col1 / + 83 * - 33 / + col2 AND NULL
----

query I rowsort
SELECT - col0 + - + col2 * - + col0 AS col0 FROM tab2
----
1012
2496
4275

query I rowsort
SELECT DISTINCT col2 + col1 * col0 AS col1 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL 85 + 2 FROM tab1
----
87
87
87

query I rowsort
SELECT + 15 * + + 33 FROM tab0 WHERE - - col0 IS NOT NULL
----
495
495
495

query I rowsort
SELECT - + 95 AS col0 FROM tab0 WHERE - - 4 <> NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col0 + - col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - + col0 * ( 92 ) * + - col0 AS col1 FROM tab2 cor0
----
194672
376832
517500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT CAST( - 55 AS SIGNED ) + 19 FROM tab1
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-6044
SELECT CAST ( - 55 AS INTEGER ) + 19 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT - 58 * - + col1 + col0 FROM tab1 cor0
----
2817
375
863

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

skipif mysql # not compatible
query I rowsort label-6046
SELECT COUNT ( * ) + 51 AS col1 FROM tab1 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col2 ) <= ( NULL )
----

query I rowsort
SELECT col0 * + - col0 AS col1 FROM tab0 AS cor0 WHERE 10 > - col0
----
-225
-7569
-9409

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

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

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

query II rowsort
SELECT col0, - col0 - col0 FROM tab1 AS cor0
----
51
-102
85
-170
91
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT DISTINCT 24 * MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
1848

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT 24 * MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL 28 * + 63 * + 60 * MAX( ALL col2 ) FROM tab1 AS cor0
----
10160640

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL 28 * + 63 * + 60 * MAX ( ALL col2 ) FROM tab1 AS cor0
----
10160640

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

query I rowsort
SELECT ALL col2 * + + col0 * + col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT + 24 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6059
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 col0, + 54 AS col0 FROM tab1 AS cor0
----
NULL
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6059
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 col0, + 54 AS col0 FROM tab1 AS cor0
----
NULL
54

query I rowsort
SELECT + + 58 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( NULL = col2 - ( - 21 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 12 ) col0 FROM tab2 AS cor0
----
-12

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

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

query I rowsort
SELECT 68 + + - 58 AS col1 FROM tab1
----
10
10
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL - CAST( + col1 AS SIGNED ) * - - 24 + 94 AS col0 FROM tab0
----
-1850
-410
70

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - CAST ( + col1 AS INTEGER ) * - - 24 + 94 AS col0 FROM tab0
----
-1850
-410
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 40 col1, - 60 col1 FROM tab2 AS cor0
----
-40
-60
-40
-60
-40
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT DISTINCT + col0 + + col2 DIV + - col1 * 20 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT + col0 + + col2 / + - col1 * 20 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE ( 37 < - ( + ( col1 ) ) )
----

query I rowsort
SELECT - col2 - + - col2 * col1 AS col2 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT ALL col2 + - col1 + col0 FROM tab2
----
18
27
66

query I rowsort
SELECT ALL col1 + + - ( + 72 ) FROM tab1
----
-25
-58
-67

query I rowsort
SELECT + col2 FROM tab1 WHERE + col0 > - 83 + - col2
----
59
68
96

query I rowsort
SELECT ALL col2 + 29 FROM tab0 cor0
----
128
39
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - - 22 col0 FROM tab2 AS cor0
----
-29
-45
-55

query I rowsort
SELECT ALL 29 AS col0 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT - col1 * - 67 * - - col1 + - + col0 + col1 + col1 AS col0 FROM tab2 cor0
----
174323
300822
397333

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

skipif mysql # not compatible
query I rowsort label-6077
SELECT - SUM ( DISTINCT + 6 ) AS col2 FROM tab0 AS cor0
----
-6

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

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

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

query II rowsort
SELECT - - col2 AS col1, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT DISTINCT + CAST( COUNT( DISTINCT + 26 ) AS SIGNED ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + CAST ( COUNT ( DISTINCT + 26 ) AS INTEGER ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query II rowsort
SELECT + col0 AS col2, 73 * 88 FROM tab1
----
51
6424
85
6424
91
6424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6084
SELECT - 50, 48 * - CAST( - + 65 AS SIGNED ) AS col0 FROM tab0
----
-50
3120
-50
3120
-50
3120

skipif mysql # not compatible
query II rowsort label-6084
SELECT - 50, 48 * - CAST ( - + 65 AS INTEGER ) AS col0 FROM tab0
----
-50
3120
-50
3120
-50
3120

query I rowsort
SELECT - ( - + 62 ) AS col2 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + COUNT( * ) * - 83 AS col1 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-6086
SELECT + COUNT ( * ) * - 83 AS col1 FROM tab0
----
-249

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

skipif mysql # not compatible
query I rowsort label-6087
SELECT + MAX ( 81 ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col1, 8 AS col2 FROM tab2
----
9
8

skipif mysql # not compatible
query II rowsort label-6088
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col1, 8 AS col2 FROM tab2
----
9
8

query I rowsort
SELECT - 43 * - 48 AS col0 FROM tab1 AS cor0
----
2064
2064
2064

query II rowsort
SELECT - + col2, - col1 * - - 68 AS col1 FROM tab1 AS cor0
----
-59
-340
-68
-3196
-96
-952

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6091
SELECT + col0, + CAST( + 49 AS SIGNED ) DIV - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
15
-1
87
-4
97
0

skipif mysql # not compatible
query II rowsort label-6091
SELECT + col0, + CAST ( + 49 AS INTEGER ) / - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
15
-1
87
-4
97
0

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

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

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

query I rowsort
SELECT - col0 + + 88 + + 28 + 90 * ( + 42 ) FROM tab2 AS cor0
----
3821
3832
3850

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT DISTINCT 97 + - col1 * ( - col2 ) DIV - col2 AS col2 FROM tab2 AS cor0
----
20
30
46

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT 97 + - col1 * ( - col2 ) / - col2 AS col2 FROM tab2 AS cor0
----
20
30
46

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

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

query I rowsort
SELECT + 77 + col0 AS col1 FROM tab1 AS cor0
----
128
162
168

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

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

query I rowsort
SELECT + col1 * + 4 + - - col2 * - + col2 FROM tab1
----
-3461
-4436
-9160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6101
SELECT * FROM tab0 WHERE - + col2 * + + CAST( - col2 AS SIGNED ) >= + col0 * - - col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6101
SELECT * FROM tab0 WHERE - + col2 * + + CAST ( - col2 AS INTEGER ) >= + col0 * - - col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 76 FROM tab1 WHERE + + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6103
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) BETWEEN + + col0 - + 34 AND - 31 * + - col1
----

skipif mysql # not compatible
query III rowsort label-6103
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) BETWEEN + + col0 - + 34 AND - 31 * + - col1
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + 79 AND - - col0
----

query I rowsort
SELECT + col2 * + col0 + - 1 + 17 * + 14 * + 81 / col2 AS col0 FROM tab1 cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT + col1, 24 * 86 FROM tab2 AS cor0
----
51
2064
67
2064
77
2064

query I rowsort
SELECT ALL + 67 + + col2 FROM tab1 AS cor0
----
126
135
163

query I rowsort
SELECT col2 * - + 26 - - 20 - + 85 AS col0 FROM tab0 AS cor0
----
-1287
-2639
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT + + COUNT( * ) - - + 82 * + COUNT( * ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6109
SELECT + + COUNT ( * ) - - + 82 * + COUNT ( * ) FROM tab0 AS cor0
----
249

query I rowsort
SELECT col0 * + 74 FROM tab2
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL - SUM( DISTINCT + col0 ) col2 FROM tab0
----
-199

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT col0 * + ( + CAST( col0 AS SIGNED ) ) * + - col2 + + 77 FROM tab1 AS cor0
----
-249619
-426198
-563031

skipif mysql # not compatible
query I rowsort label-6113
SELECT col0 * + ( + CAST ( col0 AS INTEGER ) ) * + - col2 + + 77 FROM tab1 AS cor0
----
-249619
-426198
-563031

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT DISTINCT - - COUNT( * ) * - 86 AS col1 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT - - COUNT ( * ) * - 86 AS col1 FROM tab1 AS cor0
----
-258

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * col0 + + + col0 + - + col0 AS col1 FROM tab1 WHERE NOT - - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 + + + col0 + - + col0 AS col1 FROM tab1 WHERE NOT - - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - COUNT( * ) * - 84 AS col2 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-6118
SELECT - COUNT ( * ) * - 84 AS col2 FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - 59 * - SUM( DISTINCT - 46 ) FROM tab2 AS cor0
----
-2714

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 59 * - SUM ( DISTINCT - 46 ) FROM tab2 AS cor0
----
-2714

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6121
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( - + ( + 86 ) AS SIGNED ) < - 12
----

skipif mysql # not compatible
query III rowsort label-6121
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( - + ( + 86 ) AS INTEGER ) < - 12
----

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

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

skipif mysql # not compatible
query I rowsort label-6123
SELECT - + COUNT ( * ) + - ( - + 61 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52

query I rowsort
SELECT + col1 + + 23 FROM tab0
----
104
24
44

query II rowsort
SELECT - col2 AS col2, + col2 * + - ( col0 ) FROM tab0 AS cor0
----
-10
-870
-47
-705
-99
-9603

query I rowsort
SELECT ALL - col2 * col1 + 64 AS col1 FROM tab1 AS cor0
----
-1280
-231
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT ALL - - col2 + - - 48 DIV - col0 + - + 68 FROM tab0 AS cor0
----
-24
-58
31

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - - col2 + - - 48 / - col0 + - + 68 FROM tab0 AS cor0
----
-24
-58
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 70 <= 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - + - 0 FROM tab1 AS cor0
----
51
85
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0 WHERE col1 < - col1 * 47 + + - 69 * - col0 * + col2
----
10
47
99

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

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

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL COUNT ( * ) + AVG ( DISTINCT 75 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL SUM( DISTINCT + - col2 ) * - COUNT( * ) * 48 + - - SUM( 25 ) AS col1 FROM tab2
----
17499

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL SUM ( DISTINCT + - col2 ) * - COUNT ( * ) * 48 + - - SUM ( 25 ) AS col1 FROM tab2
----
17499

query I rowsort
SELECT + 83 + col2 * + 26 + col2 FROM tab2
----
1163
1649
704

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6137
SELECT + COUNT ( * ) * - - 29 + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + ( + 28 ) * + + 43 FROM tab2
----
1129
1140
1158

query II rowsort
SELECT ALL + 60 + + 36 * - col0 * col1 * col2 AS col1, - col2 + + col1 AS col1 FROM tab0
----
-2055720
34
-345648
-98
-657660
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT ( - COUNT( * ) ) + - 58 + - 97 FROM tab2
----
-158

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT ( - COUNT ( * ) ) + - 58 + - 97 FROM tab2
----
-158

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

query I rowsort
SELECT DISTINCT + col0 - + 23 + col1 + + 49 FROM tab0 cor0
----
122
124
134

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

query I rowsort
SELECT ALL 16 * col1 + + col2 + + col1 * + 41 * - 16 FROM tab0 AS cor0
----
-13430
-51793
-541

query I rowsort
SELECT + - 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT CAST( 9 AS SIGNED ) col1 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT CAST ( 9 AS INTEGER ) col1 FROM tab1 AS cor0
----
9
9
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT DISTINCT MAX( - ( col1 ) ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT MAX ( - ( col1 ) ) FROM tab2 cor0
----
-51

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - - 41 / + 44 + + 63
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 11 IS NULL
----

query I rowsort
SELECT - 7 + + col1 AS col0 FROM tab0
----
-6
14
74

query II rowsort
SELECT + 74 + col1 AS col1, col0 + 51 AS col0 FROM tab1
----
121
142
79
136
88
102

query II rowsort
SELECT DISTINCT - 65 * + 75, + col2 FROM tab1
----
-4875
59
-4875
68
-4875
96

query I rowsort
SELECT ALL + col0 * 52 * col2 AS col0 FROM tab0
----
36660
45240
499356

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL + ( + MAX( - 37 ) ) AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + ( + MAX ( - 37 ) ) AS col2 FROM tab2
----
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = - 25 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + - 13 * MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
611

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + - 13 * MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
611

query I rowsort
SELECT DISTINCT col0 + + 6 AS col1 FROM tab0
----
103
21
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT DISTINCT - 55 DIV + 89 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT - 55 / + 89 * - COUNT ( * ) FROM tab0
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col1 AND - - 37
----

query I rowsort
SELECT - ( col0 ) + + 40 AS col0 FROM tab0 AS cor0
----
-47
-57
25

query I rowsort
SELECT ALL - 62 + - 86 * - + ( col0 ) AS col2 FROM tab0 cor0
----
1228
7420
8280

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

query I rowsort
SELECT + + col1 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT 81 + + - col2 AS col2 FROM tab2 AS cor0
----
23
41
58

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

skipif mysql # not compatible
query I rowsort label-6169
SELECT - 34 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT - 28 - col2 FROM tab0 AS cor0
----
-127
-38
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col0 ) NOT BETWEEN col0 * + - 31 * col1 - + col2 / - - 14 AND - - col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6172
SELECT + 53 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
53
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT DISTINCT + 59 * + COUNT( * ) * MIN( ALL 52 ) FROM tab2
----
9204

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT + 59 * + COUNT ( * ) * MIN ( ALL 52 ) FROM tab2
----
9204

query I rowsort
SELECT ALL - col0 * col0 * + - col0 FROM tab1
----
132651
614125
753571

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col2 * + + col0 <= 55 )
----

query I rowsort
SELECT ALL col1 * + 35 + col2 FROM tab2
----
1808
2403
2735

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL SUM( DISTINCT col1 ) + - + 74 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL SUM ( DISTINCT col1 ) + - + 74 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL - + 51 * + COUNT( * ) col0 FROM tab0 AS cor0
----
-153

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6180
SELECT + COUNT ( * ) col0, 77 AS col2 FROM tab0 AS cor0
----
3
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT 15 DIV 64 * - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6181
SELECT 15 / 64 * - col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + COUNT( * ) * + 92 * 40 FROM tab0 AS cor0
----
11040

skipif mysql # not compatible
query I rowsort label-6183
SELECT + COUNT ( * ) * + 92 * 40 FROM tab0 AS cor0
----
11040

query II rowsort
SELECT 71 * - col0 AS col2, - col1 + 5 + col0 FROM tab0 cor0
----
-1065
-61
-6177
71
-6887
101

query I rowsort
SELECT - col0 * - - 38 + - + ( col2 ) FROM tab2 AS cor0
----
-1771
-2472
-2908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 * - 83, + 15 * - col1 * - 77 AS col0, + ( + - 66 ) col0 FROM tab0 cor0
----
9 values hashing to 063439bd7cdcc3bb484cdbe2faecc913

query I rowsort
SELECT - + 59 * - + 99 + 75 * - - col2 FROM tab0 AS cor0
----
13266
6591
9366

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

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

query II rowsort
SELECT ALL 50, - 76 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT MAX( ALL ( + CAST( - - col0 AS SIGNED ) ) ) AS col0 FROM tab0
----
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + - - col2 col1 FROM tab2
----
114
131
149

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

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL ( + - COUNT ( - col1 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + COUNT( DISTINCT + 25 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6193
SELECT + COUNT ( DISTINCT + 25 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6194
SELECT + COUNT( * ), 79 + - 93 AS col2 FROM tab1
----
3
-14

skipif mysql # not compatible
query II rowsort label-6194
SELECT + COUNT ( * ), 79 + - 93 AS col2 FROM tab1
----
3
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT ALL COUNT( + col1 ) DIV + - ( 37 ) + + 51 + + 59 * + - 49 AS col1 FROM tab0
----
-2840

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL COUNT ( + col1 ) / + - ( 37 ) + + 51 + + 59 * + - 49 AS col1 FROM tab0
----
-2840

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT - 31 + - COUNT( * ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - 31 + - COUNT ( * ) FROM tab1
----
-34

query I rowsort
SELECT col2 + col2 + - 68 AS col1 FROM tab2 AS cor0
----
-22
12
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT 65 + - - SUM( - - col0 ) FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-6199
SELECT 65 + - - SUM ( - - col0 ) FROM tab0 AS cor0
----
264

query I rowsort
SELECT ALL - 49 FROM tab0, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 BETWEEN - - col0 + - 51 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + 21 AS col0 FROM tab2
----
67
85
96

query I rowsort
SELECT ALL - col1 + + 8 FROM tab0 AS cor0
----
-13
-73
7

query II rowsort
SELECT DISTINCT 49 + + col1, + col2 - 21 AS col2 FROM tab1 AS cor0
----
54
38
63
75
96
47

query I rowsort
SELECT DISTINCT 21 - + col2 + - col2 AS col2 FROM tab2 cor0
----
-25
-59
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + 15
----

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

query II rowsort
SELECT - - col1 - - col0 AS col2, - col0 FROM tab1 AS cor0
----
138
-91
65
-51
90
-85

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

query I rowsort
SELECT - col1 - + 14 * + - col2 FROM tab0 cor0
----
119
1385
577

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6212
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) - + MIN( - 57 ), - 61 col0 FROM tab0
----
NULL
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6212
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + MIN ( - 57 ), - 61 col0 FROM tab0
----
NULL
-61

query I rowsort
SELECT 6 + - col2 - - col2 AS col1 FROM tab0
----
6
6
6

query I rowsort
SELECT + 42 + - 98 + + col2 + - 57 * + ( - + col1 ) * 87 AS col1 FROM tab0
----
104093
401670
5002

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT - 55 DIV - col1 + + - 98 + + ( - col2 ) FROM tab2
----
-120
-138
-156

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 55 / - col1 + + - 98 + + ( - col2 ) FROM tab2
----
-120
-138
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - COUNT( * ) * 93 AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - COUNT ( * ) * 93 AS col0 FROM tab0
----
-279

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

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

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

query II rowsort
SELECT ALL + col1, + col1 + col1 AS col0 FROM tab0 cor0
----
1
2
21
42
81
162

query I rowsort
SELECT DISTINCT 16 * ( col1 ) * col0 FROM tab2 cor0
----
37536
78848
80400

query I rowsort
SELECT + 94 * ( + ( col1 ) ) FROM tab0 AS cor0
----
1974
7614
94

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

query II rowsort
SELECT + - col1 + + 30 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-21
23
-37
58
-47
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT MIN( - - col0 ) + - 12 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6224
SELECT MIN ( - - col0 ) + - 12 FROM tab1
----
39

query I rowsort
SELECT - col2 + - 4 AS col2 FROM tab0
----
-103
-14
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT col0 * + col2 + + + col1 DIV + - col1 col0 FROM tab0
----
704
869
9602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT DISTINCT col0 * + col2 + + + col1 / + - col1 col0 FROM tab0
----
704
869
9602

query I rowsort
SELECT DISTINCT - 31 + col0 AS col1 FROM tab1
----
20
54
60

query II rowsort
SELECT - col0 * col1 * + 53 - + col1, + ( ( - col2 ) ) + + 46 AS col2 FROM tab0
----
-5142
-53
-64476
-1
-96852
36

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - 94 / SUM( - + 4 ) - - 28 AS col1 FROM tab0 WHERE - 45 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 94 / SUM ( - + 4 ) - - 28 AS col1 FROM tab0 WHERE - 45 > NULL
----
NULL

query I rowsort
SELECT - col0 + + ( + - ( - - col2 ) ) * 77 FROM tab0 AS cor0
----
-3634
-7720
-857

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

query I rowsort
SELECT + - col2 AS col0 FROM tab1 AS cor0 WHERE - col2 * - - 33 * + 26 + - col0 + - ( 10 ) * - 42 IS NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 15
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6240
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - COUNT( - col2 ) * - + 12 AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - COUNT ( - col2 ) * - + 12 AS col0 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT MAX( + 85 ) * - + COUNT( * ) FROM tab2 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6243
SELECT MAX ( + 85 ) * - + COUNT ( * ) FROM tab2 cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT + 73 * COUNT( * ) * - - 85 AS col1 FROM tab2 AS cor0
----
18615

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT + 73 * COUNT ( * ) * - - 85 AS col1 FROM tab2 AS cor0
----
18615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT - col0 + 81 - - col0 * + - 97 * + 17 + + CAST( - 30 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6245
SELECT - col0 + 81 - - col0 * + - 97 * + 17 + + CAST ( - 30 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 79 * 72 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * - col0 + - 92 / + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL col1 * - col2 + + col2 + col2 FROM tab2
----
-1127
-3000
-3770

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

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

query I rowsort
SELECT - + col1 * - 85 AS col2 FROM tab0 AS cor0
----
1785
6885
85

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

query I rowsort
SELECT ALL ( + - 44 ) AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT 56 FROM tab2 AS cor0 WHERE + 59 * + 67 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 * 36 FROM tab0 AS cor0
----
-1692
-3564
-360

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

query I rowsort
SELECT + 25 AS col2 FROM tab1 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL + col0 * + + col1 * 38 + + ( + + 65 ) FROM tab1
----
16215
162591
27197

query I rowsort
SELECT DISTINCT - 4 * - - col1 AS col2 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT 7 + - ( + col2 ) AS col2 FROM tab2
----
-16
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - 98 + 2 * - COUNT( * ) FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 98 + 2 * - COUNT ( * ) FROM tab1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - 60 + + MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - 60 + + MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6263
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 58 * + CAST( NULL AS DECIMAL ) * 15 <= 73
----

skipif mysql # not compatible
query III rowsort label-6263
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 58 * + CAST ( NULL AS REAL ) * 15 <= 73
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 11 = ( NULL )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6267
SELECT - + col2 - - col2, CAST( + ( - - col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-6267
SELECT - + col2 - - col2, CAST ( + ( - - col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT ALL - - CAST( - 98 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - - CAST ( - 98 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-98
-98
-98

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

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

skipif mysql # not compatible
query I rowsort label-6271
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 91 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab2
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-6274
SELECT CAST ( + + 65 AS INTEGER ) FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT 16 * - col2 AS col2 FROM tab2
----
-368
-640
-928

query II rowsort
SELECT DISTINCT 46, + ( + col2 ) AS col1 FROM tab1
----
46
59
46
68
46
96

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

skipif mysql # not compatible
query II rowsort label-6277
SELECT ALL - + 36, + COUNT ( * ) AS col1 FROM tab0 cor0
----
-36
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + - ( col2 ) NOT BETWEEN - - col0 * + - 53 AND + - 19
----

query II rowsort
SELECT ALL + - col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

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

query I rowsort
SELECT ALL + 59 + 2 FROM tab2
----
61
61
61

query I rowsort
SELECT ALL col2 * 21 FROM tab2
----
1218
483
840

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 43
----

query I rowsort
SELECT ALL col0 * - col1 + col1 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT + col0 * 67 AS col1 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT ALL + 31 * col2 FROM tab1
----
1829
2108
2976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6288
SELECT DISTINCT MAX( - 97 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT MAX ( - 97 ) * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 * col0 col2 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT MIN( col1 ) * + COUNT( * ) + 88 FROM tab2
----
241

skipif mysql # not compatible
query I rowsort label-6291
SELECT MIN ( col1 ) * + COUNT ( * ) + 88 FROM tab2
----
241

onlyif mysql # DIV for integer division: 
query III rowsort label-6292
SELECT * FROM tab1 WHERE NOT 74 NOT BETWEEN ( col1 DIV col0 ) AND - col2 DIV col1 + ( col0 )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-6292
SELECT * FROM tab1 WHERE NOT 74 NOT BETWEEN ( col1 / col0 ) AND - col2 / col1 + ( col0 )
----
85
5
59
91
47
68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT col2 AS col1 FROM tab2 WHERE CAST( 1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6294
SELECT col2 AS col1 FROM tab2 WHERE CAST ( 1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 82 + + 58 FROM tab1
----
140

query I rowsort
SELECT 80 + + 87 AS col2 FROM tab0
----
167
167
167

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 * 31 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT + col2 DIV col0 + col2 * col2 FROM tab1
----
3481
4624
9217

skipif mysql # not compatible
query I rowsort label-6298
SELECT + col2 / col0 + col2 * col2 FROM tab1
----
3481
4624
9217

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

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

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

query I rowsort
SELECT ALL 34 + + ( col1 ) FROM tab0
----
115
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + ( 95 ) * COUNT( * ) AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-6302
SELECT + ( 95 ) * COUNT ( * ) AS col2 FROM tab1
----
285

query I rowsort
SELECT col0 + col2 AS col1 FROM tab2 WHERE NOT col1 <> col1
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 55 ) = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT MIN( ALL ( col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6306
SELECT MIN ( ALL ( col0 ) ) FROM tab1
----
51

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 30 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT + MIN( ALL col1 ) * + COUNT( * ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6309
SELECT DISTINCT + MIN ( ALL col1 ) * + COUNT ( * ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT COUNT( * ) * 77 - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT COUNT ( * ) * 77 - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
222

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

query I rowsort
SELECT - 8 - col0 AS col2 FROM tab0 AS cor0
----
-105
-23
-95

query I rowsort
SELECT DISTINCT + col2 - + col2 * 25 AS col1 FROM tab1 AS cor0
----
-1416
-1632
-2304

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT + 74 - + col1 AS col1 FROM tab1 AS cor0
----
27
60
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 46 col2 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT + col2 * ( - 10 ) FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6319
SELECT + 62 * col2 FROM tab2 AS cor0 WHERE NOT ( 50 ) <> ( 46 * CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 62 * col2 FROM tab2 AS cor0 WHERE NOT ( 50 ) <> ( 46 * CAST ( col2 AS REAL ) )
----

query I rowsort
SELECT DISTINCT 48 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT DISTINCT 39 DIV col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT 39 / col1 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL - 65 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3315
5525
5915

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - 65 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3315
5525
5915

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

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

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

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

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

query I rowsort
SELECT 57 * + col0 AS col0 FROM tab0
----
4959
5529
855

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL + COUNT( * ) * + 70 AS col2 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL + COUNT ( * ) * + 70 AS col2 FROM tab0
----
210

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL MIN( DISTINCT ( ( ( - col2 ) ) ) ) + 99 / 79 AS col2 FROM tab2 AS cor0 WHERE ( - 42 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL MIN ( DISTINCT ( ( ( - col2 ) ) ) ) + 99 / 79 AS col2 FROM tab2 AS cor0 WHERE ( - 42 ) = NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6332
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN ( ( + col1 ) ) AND ( col1 - ( 80 ) * ( + 74 * col0 ) )
----
0

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

query I rowsort
SELECT DISTINCT 90 * 58 AS col1 FROM tab1 WHERE NOT ( col0 ) <> col0
----
5220

query I rowsort
SELECT col1 + - - col1 + + col2 AS col1 FROM tab0
----
101
209
52

query I rowsort
SELECT + col2 * + + 9 * - 40 + col0 AS col2 FROM tab2
----
-14336
-20805
-8234

query I rowsort
SELECT ALL + 8 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT + 61 IS NULL
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < ( - 48 + col2 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 <= + 90 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + 52 - COUNT( * ) * - ( - 42 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6348
SELECT + 52 - COUNT ( * ) * - ( - 42 ) FROM tab1
----
-74

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + col2 NOT IN ( - 74 + + ( - 67 ) )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL 52 + COUNT( * ) FROM tab2 WHERE ( + 26 ) BETWEEN ( - col1 ) AND NULL AND - 60 IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL 52 + COUNT ( * ) FROM tab2 WHERE ( + 26 ) BETWEEN ( - col1 ) AND NULL AND - 60 IS NOT NULL
----
52

query I rowsort
SELECT DISTINCT - col1 * + 79 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT col1 - + - col1 + + col2 FROM tab0
----
101
209
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6353
SELECT ALL + COUNT( * ) / - 15 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + COUNT ( * ) / - 15 / + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 71 + - + 57 FROM tab0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 + - col1 col2 FROM tab0
----
68
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT + MAX( col1 ) + + 85 AS col0 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-6357
SELECT + MAX ( col1 ) + + 85 AS col0 FROM tab2
----
162

query I rowsort
SELECT DISTINCT col0 * - + col0 * col2 + 10 AS col1 FROM tab1
----
-249686
-426265
-563098

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab2 WHERE ( + - col1 ) IN ( 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab2 WHERE ( + - col1 ) IN ( 15 )
----
NULL

query I rowsort
SELECT - 18 + 46 FROM tab0
----
28
28
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * - 23 * col1 ) <> 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 26 * - 30 AS col2 FROM tab1 AS cor0 WHERE 96 BETWEEN + - 25 AND ( col2 )
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6363
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE ( 41 NOT IN ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE ( 41 NOT IN ( - CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 WHERE ( - - 98 ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6365
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( ALL - col2 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6365
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( ALL - col2 ) col0 FROM tab0
----
NULL

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN NULL AND NULL ) ) OR NOT 55 + - 41 IS NULL
----
-15
-87
-97

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

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

query I rowsort
SELECT 51 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6371
SELECT + COUNT( * ), COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-6371
SELECT + COUNT ( * ), COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
1

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

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

query II rowsort
SELECT col0, - 65 FROM tab1
----
51
-65
85
-65
91
-65

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

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

query I rowsort
SELECT DISTINCT + 93 * + + 92 AS col1 FROM tab1
----
8556

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + MIN( DISTINCT + - 36 ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( col1 * 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT + MIN ( DISTINCT + - 36 ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( col1 * 61 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT DISTINCT CAST( ( ( col2 ) ) AS SIGNED ) * + col1 + col1 - + 92 AS col2 FROM tab0 AS cor0
----
139
3796
8

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT CAST ( ( ( col2 ) ) AS INTEGER ) * + col1 + col1 - + 92 AS col2 FROM tab0 AS cor0
----
139
3796
8

query I rowsort
SELECT + + col1 * + ( + ( 95 ) ) + col0 AS col1 FROM tab0 AS cor0
----
192
2082
7710

query I rowsort
SELECT col2 * - - col0 + - 5 - col2 + - col0 AS col1 FROM tab1
----
4744
4866
6024

query I rowsort
SELECT col0 + col1 * - col0 - - 36 AS col1 FROM tab1 AS cor0
----
-304
-4150
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT - COUNT( * ) * + 85 FROM tab0 cor0 WHERE - col1 * + col1 = - + col2 - + + col1
----
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT - COUNT ( * ) * + 85 FROM tab0 cor0 WHERE - col1 * + col1 = - + col2 - + + col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT col2 / col2 + - col0 + + col0 FROM tab0 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT - - 58 FROM tab0 AS cor0 WHERE - ( col2 ) BETWEEN - CAST( NULL AS SIGNED ) * + col1 + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6387
SELECT - - 58 FROM tab0 AS cor0 WHERE - ( col2 ) BETWEEN - CAST ( NULL AS INTEGER ) * + col1 + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6388
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( 29, col1 )
----

skipif mysql # not compatible
query III rowsort label-6388
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( 29, col1 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6391
SELECT + - ( MAX( + + col1 ) ) + COUNT( + col2 ) + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT + - ( MAX ( + + col1 ) ) + COUNT ( + col2 ) + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 45 + - - col1 AS col1 FROM tab2
----
22
32
6

query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab2 WHERE NULL NOT IN ( - 40, - 3, col0 * - ( - 83 ) )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE + col1 + + col1 < + 96 + + col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL - MAX( ALL col2 ) + - ( 61 ) FROM tab1
----
-157

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - MAX ( ALL col2 ) + - ( 61 ) FROM tab1
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT DISTINCT + CAST( - ( col2 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT + col0 IN ( - + ( col2 ) )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + CAST ( - ( col2 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT + col0 IN ( - + ( col2 ) )
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT - - col2 - 41 FROM tab1 AS cor0
----
18
27
55

query II rowsort
SELECT ALL + ( - 27 ) * + + col1, + 61 + + - col1 AS col0 FROM tab1 AS cor0
----
-1269
14
-135
56
-378
47

query II rowsort
SELECT + 82 AS col2, 29 FROM tab0 cor0
----
82
29
82
29
82
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT col2 * 18 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
1782
180
846

skipif mysql # not compatible
query I rowsort label-6402
SELECT col2 * 18 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1782
180
846

query I rowsort
SELECT ALL 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - + SUM( DISTINCT + 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6405
SELECT - + SUM ( DISTINCT + 36 ) FROM tab1 AS cor0
----
-36

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

query I rowsort
SELECT ALL col1 * - col0 * + + 53 FROM tab0 AS cor0
----
-5141
-64395
-96831

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 70 * + 64 - + - col0 AS col0 FROM tab2 AS cor0
----
-4405
-4416
-4434

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT + MIN( - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT + MIN ( - + col1 ) FROM tab2
----
-77

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

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

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

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL 45 * + 98 + - 64 FROM tab0
----
4346
4346
4346

query I rowsort
SELECT 41 * col0 * - + col1 FROM tab1
----
-17425
-175357
-29274

query I rowsort
SELECT + col1 * - 28 FROM tab0
----
-2268
-28
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 21 * - - COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6423
SELECT 21 * - - COUNT ( * ) AS col2 FROM tab1
----
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 99 > ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 50 + col1 AS col1 FROM tab1 AS cor0
----
-3
-36
-45

query I rowsort
SELECT - 25 * ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
2025
25
525

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

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

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

query I rowsort
SELECT DISTINCT + + ( - + ( - 24 ) ) + + 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
53

query I rowsort
SELECT DISTINCT - col1 + col2 + + col1 + - col2 * - ( col1 ) + - col0 AS col0 FROM tab0 AS cor0
----
101
133
3839

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 18 + - col0 > NULL
----

query I rowsort
SELECT DISTINCT - + col0 - + col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 + + + col1 * 50 col0, col0 AS col1 FROM tab0
----
1129
87
129
97
4129
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL 91 + - SUM( ALL - - 25 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL 91 + - SUM ( ALL - - 25 ) FROM tab1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT 20 DIV + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6435
SELECT 20 / + COUNT ( * ) AS col1 FROM tab0
----
6

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

query II rowsort
SELECT DISTINCT ( + col0 ) * + + col1, col0 FROM tab0
----
1215
15
1827
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT + 63 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 63 / + - col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT - 78 / - + 22 + + + 91 + CAST( NULL AS SIGNED ) * - + MIN( - col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 78 / - + 22 + + + 91 + CAST ( NULL AS INTEGER ) * - + MIN ( - col2 ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + 49 + + COUNT( * ) AS col1 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-6441
SELECT + 49 + + COUNT ( * ) AS col1 FROM tab0
----
52

query II rowsort
SELECT col0 + 71, col1 FROM tab0
----
158
21
168
1
86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT MIN( DISTINCT - col1 ) + - + MAX( + - col1 ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6443
SELECT MIN ( DISTINCT - col1 ) + - + MAX ( + - col1 ) AS col0 FROM tab2
----
-26

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

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

query I rowsort
SELECT 47 * col2 FROM tab0 AS cor0
----
2209
4653
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * - 7 + - 13 col2 FROM tab0 AS cor0
----
-608
-608
-608

query II rowsort
SELECT ALL + - col1 * col0, col0 AS col2 FROM tab2 AS cor0
----
-2346
46
-4928
64
-5025
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6449
SELECT DISTINCT + 26 DIV 67 * + col0 * CAST( - col1 AS SIGNED ) + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + 26 / 67 * + col0 * CAST ( - col1 AS INTEGER ) + - col2 AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 89 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL < 37
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 66 > + col0 * col1 + + ( - + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 63 FROM tab2 AS cor0
----
103
121
86

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

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

query I rowsort
SELECT col0 * 80 * + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
208176
578059
662548

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT + COUNT( * ) * + - 18 AS col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6460
SELECT + COUNT ( * ) * + - 18 AS col0 FROM tab0 AS cor0
----
-54

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

query I rowsort
SELECT + - ( - 27 ) FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT - + 6 + 89 * ( 85 ) FROM tab0 AS cor0 WHERE ( NULL ) < + - col1 * - - 28 - 32
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT - 46 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 81 = ( NULL )
----

query I rowsort
SELECT col1 + + 44 AS col1 FROM tab2 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT + + MIN( ALL - col1 ) * 38 - - MIN( + + col2 ) FROM tab2 AS cor0
----
-2903

skipif mysql # not compatible
query I rowsort label-6467
SELECT + + MIN ( ALL - col1 ) * 38 - - MIN ( + + col2 ) FROM tab2 AS cor0
----
-2903

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT 74 * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
666

skipif mysql # not compatible
query I rowsort label-6470
SELECT 74 * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * + - col1 col2 FROM tab2
----
2295
3015
3465

query III rowsort
SELECT * FROM tab1 WHERE NOT - 13 BETWEEN NULL AND + col1 + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT COUNT( * ) * - + MIN( ALL 69 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT COUNT ( * ) * - + MIN ( ALL 69 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - MAX( + + ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6475
SELECT - MAX ( + + ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

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

query I rowsort
SELECT DISTINCT - 16 + - - col2 AS col2 FROM tab0
----
-6
31
83

query I rowsort
SELECT 72 * + + ( - col2 ) AS col0 FROM tab2
----
-1656
-2880
-4176

query I rowsort
SELECT ALL col0 + - 46 AS col0 FROM tab2
----
0
18
29

query I rowsort
SELECT DISTINCT + 90 + ( col2 ) + + 65 * 69 FROM tab2
----
4598
4615
4633

query I rowsort
SELECT - 10 / - col0 + - col1 + + col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT - ( - - COUNT( * ) ) + + 31 AS col2 FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - ( - - COUNT ( * ) ) + + 31 AS col2 FROM tab2 cor0
----
28

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL >= + col1
----

query I rowsort
SELECT ALL + - col1 - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
1122
3003
3819

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= NULL OR NULL IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - 68 * + - col2, + col0 AS col2 FROM tab0
----
3196
15
6732
97
680
87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT ALL + col0 + - - 4 DIV - col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL + col0 + - - 4 / - col2 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL + col0 + - - 51 AS col1, - col0 FROM tab2 AS cor0
----
115
-64
126
-75
97
-46

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

query I rowsort
SELECT ALL 60 + - 49 FROM tab0 cor0
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT + - 28 * 97 * COUNT( * ) + - CAST( - COUNT( + - col1 ) AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - 86 >= - col1 * + - col1
----
-8145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6494
SELECT + - 28 * 97 * COUNT ( * ) + - CAST ( - COUNT ( + - col1 ) AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - 86 >= - col1 * + - col1
----
-8145

query I rowsort
SELECT ALL 32 * - col1 AS col2 FROM tab1
----
-1504
-160
-448

query I rowsort
SELECT ( - 93 ) AS col0 FROM tab1
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-6497
SELECT col1, + 94 + + col0 DIV 74 AS col0 FROM tab0
----
1
95
21
95
81
94

skipif mysql # not compatible
query II rowsort label-6497
SELECT col1, + 94 + + col0 / 74 AS col0 FROM tab0
----
1
95
21
95
81
94

query I rowsort
SELECT col1 * - ( 85 ) FROM tab2
----
-4335
-5695
-6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL - CAST( + + ( - + col0 ) AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - CAST ( + + ( - + col0 ) AS INTEGER ) AS col0 FROM tab2
----
46
64
75

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

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

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab1
----
-5

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT 41 + + - ( + COUNT( * ) ) DIV + 72 col1 FROM tab0, tab2 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6506
SELECT 41 + + - ( + COUNT ( * ) ) / + 72 col1 FROM tab0, tab2 AS cor0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + + ( + COUNT( - col0 ) ) FROM tab0 AS cor0 WHERE + 91 - - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6509
SELECT + + ( + COUNT ( - col0 ) ) FROM tab0 AS cor0 WHERE + 91 - - col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + COUNT( * ) + 89 + + 12 * + + SUM( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
2816

skipif mysql # not compatible
query I rowsort label-6510
SELECT + COUNT ( * ) + 89 + + 12 * + + SUM ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
2816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6511
SELECT DISTINCT - col0 - - CAST( NULL AS SIGNED ) + col0 AS col0, - 69 * - col2 * + ( - 39 ) FROM tab0 cor0 WHERE - 1 / + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6511
SELECT DISTINCT - col0 - - CAST ( NULL AS INTEGER ) + col0 AS col0, - 69 * - col2 * + ( - 39 ) FROM tab0 cor0 WHERE - 1 / + col0 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT + CAST( + col0 AS SIGNED ) + + + 51 FROM tab1
----
102
136
142

skipif mysql # not compatible
query I rowsort label-6514
SELECT + CAST ( + col0 AS INTEGER ) + + + 51 FROM tab1
----
102
136
142

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT DISTINCT + col1 DIV + + col1 + 31 + + - col2 * + col0 AS col2 FROM tab2
----
-1026
-2528
-4318

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + col1 / + + col1 + 31 + + - col2 * + col0 AS col2 FROM tab2
----
-1026
-2528
-4318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + - col0 col0, col1 AS col2 FROM tab2
----
-2116
51
-4096
77
-5625
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT ALL 77 + + + col0 DIV + + col2 + + - col2 + + - col1 * - col1 AS col2 FROM tab1
----
177
2219
44

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL 77 + + + col0 / + + col2 + + - col2 + + - col1 * - col1 AS col2 FROM tab1
----
177
2219
44

query I rowsort
SELECT + 74 AS col1 FROM tab2 WHERE + col1 * + col2 + + col2 + + col1 IS NULL
----

query I rowsort
SELECT ( + ( + col1 ) ) + - 11 FROM tab1
----
-6
3
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT ALL - 11 FROM tab0 WHERE + col1 - - 93 / col1 + CAST( - ( + ( col0 ) ) AS SIGNED ) + + + col2 + - col0 + - 32 * + col0 * + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - 11 FROM tab0 WHERE + col1 - - 93 / col1 + CAST ( - ( + ( col0 ) ) AS INTEGER ) + + + col2 + - col0 + - 32 * + col0 * + col1 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col1 + - + 84 FROM tab0
----
1131
13
1743

query I rowsort
SELECT ALL 23 + + col2 + - col2 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT + col1 - - - col1 + + + 20 * - + 59 FROM tab0 cor0
----
-1180

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab1 cor0 WHERE NULL > col1 - col2
----

query II rowsort
SELECT col1 - - col0 - col0 - col2 * + col0, - 43 * + - col0 AS col2 FROM tab2 AS cor0
----
-1007
1978
-2483
2752
-4283
3225

query I rowsort
SELECT 10 + col1 FROM tab2 AS cor0 WHERE 91 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT + ( + MAX( DISTINCT + col1 ) ) - - + 10 - COUNT( * ) + + COUNT( * ) + + 24 AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6528
SELECT + ( + MAX ( DISTINCT + col1 ) ) - - + 10 - COUNT ( * ) + + COUNT ( * ) + + 24 AS col1 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + ( + + 4 ) - - SUM( + - col0 ) + - MAX( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6529
SELECT + ( + + 4 ) - - SUM ( + - col0 ) + - MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-180

query I rowsort
SELECT - 8 + - col1 AS col2 FROM tab2
----
-59
-75
-85

query I rowsort
SELECT ALL col2 - - col1 * + - col2 + 61 FROM tab1
----
-1187
-175
-3067

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6535
SELECT col2 AS col0, - CAST( + col0 AS SIGNED ) * - 92 * col1 + col1 AS col1 FROM tab0 AS cor0
----
10
168105
47
111861
99
8925

skipif mysql # not compatible
query II rowsort label-6535
SELECT col2 AS col0, - CAST ( + col0 AS INTEGER ) * - 92 * col1 + col1 AS col1 FROM tab0 AS cor0
----
10
168105
47
111861
99
8925

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

query I rowsort
SELECT ALL - 19 * - col1 FROM tab2 AS cor0
----
1273
1463
969

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 71 * + + 89 FROM tab2 cor0
----
23
6319
40
6319
58
6319

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

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

query II rowsort
SELECT ALL 1, 82 AS col2 FROM tab2 AS cor0
----
1
82
1
82
1
82

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

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

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

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT + SUM ( DISTINCT + + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT DISTINCT + COUNT( * ) * - 40 col2 FROM tab1
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6546
SELECT DISTINCT + COUNT ( * ) * - 40 col2 FROM tab1
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT + CAST( - 72 AS SIGNED ) * - + col0 * - col0 + - - col2 AS col2 FROM tab1
----
-187176
-520141
-596164

skipif mysql # not compatible
query I rowsort label-6547
SELECT + CAST ( - 72 AS INTEGER ) * - + col0 * - col0 + - - col2 AS col2 FROM tab1
----
-187176
-520141
-596164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6548
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col0 / + col0 FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col0 / + col0 FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + - 6 * 74 AS col0 FROM tab1 cor0
----
-444

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT - COUNT( 79 ) * - 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
801

skipif mysql # not compatible
query I rowsort label-6552
SELECT - COUNT ( 79 ) * - 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
801

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

query I rowsort
SELECT - col1 + - col2 FROM tab2 WHERE NOT - 53 + + - col2 / - col1 IS NULL
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT 12 DIV col0 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6555
SELECT 12 / col0 + - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

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

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

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab0 cor0
----
58

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

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

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

query I rowsort
SELECT 66 * + + 26 + col0 * + col0 * + col0 AS col0 FROM tab1
----
134367
615841
755287

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT COUNT( * ) + SUM( ALL - - 88 ) AS col0 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-6563
SELECT COUNT ( * ) + SUM ( ALL - - 88 ) AS col0 FROM tab1
----
267

query I rowsort
SELECT col2 * - + col2 + - col1 AS col1 FROM tab2
----
-1677
-3431
-580

query I rowsort
SELECT ALL + col2 + + 38 FROM tab1
----
106
134
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL 33 + COUNT( * ) * + 60 * - - 68 AS col1 FROM tab0
----
12273

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL 33 + COUNT ( * ) * + 60 * - - 68 AS col1 FROM tab0
----
12273

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT DISTINCT 3 DIV col1 DIV - col2 + + - col1 AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT 3 / col1 / - col2 + + - col1 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - + ( + + col1 ) - - col0 * + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
36120
36400
389160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL + 73 - - + COUNT( * ) + + 97 * + + MAX( col0 ) FROM tab0 cor0
----
9485

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + 73 - - + COUNT ( * ) + + 97 * + + MAX ( col0 ) FROM tab0 cor0
----
9485

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

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

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

query I rowsort
SELECT DISTINCT - 63 * + col0 AS col0 FROM tab0 cor0
----
-5481
-6111
-945

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

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

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

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + COUNT ( * ) * - + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col2 * + 29 * - - 47 AS col0 FROM tab2 AS cor0
----
-31349
-54520
-79054

query I rowsort
SELECT 95 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN - col2 + + - col0 AND + + col0 / + 35
----

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

skipif mysql # not compatible
query I rowsort label-6578
SELECT - MAX ( DISTINCT - - col0 ) FROM tab2
----
-75

query I rowsort
SELECT col2 * - - 41 * + ( col2 ) FROM tab1
----
142721
189584
377856

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

skipif mysql # not compatible
query I rowsort label-6580
SELECT - MAX ( DISTINCT col1 ) FROM tab0
----
-81

query II rowsort
SELECT ALL - col1 AS col0, col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL 6 * - - col0 * - col1 * - - col2 FROM tab0
----
-109620
-342630
-57618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * - col0 col1 FROM tab0
----
-2088
-2328
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT ALL 28 DIV + 25 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL 28 / + 25 FROM tab2 cor0
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 56, + col2 col2 FROM tab1 AS cor0
----
56
59
56
68
56
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT - + COUNT( - 14 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT - + COUNT ( - 14 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6588
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) + + ( - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6588
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + + ( - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + 93 + COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6589
SELECT + 93 + COUNT ( * ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE - 78 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 0 * + + 68 IS NULL
----

query II rowsort
SELECT DISTINCT - 20, - ( - 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-20
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - + 92 + + col2 col1 FROM tab1 AS cor0
----
1384
4392
519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6594
SELECT ALL + 78 DIV + SUM( + col2 ) FROM tab1 WHERE NOT + ( - - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + 78 / + SUM ( + col2 ) FROM tab1 WHERE NOT + ( - - col0 ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL ( - col0 ) / col2 + - col1 AS col1 FROM tab1
----
-14
-48
-6

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE + 91 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 42 * + 47 * + col0 + + - 38 AS col1 FROM tab1 AS cor0
----
-100712
-167828
-179672

query I rowsort
SELECT ALL - - 25 + - col0 + + + 97 FROM tab1 AS cor0
----
31
37
71

query I rowsort
SELECT col2 - col0 + col2 - - col0 AS col1 FROM tab1 AS cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

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

query I rowsort
SELECT ALL + + col2 * + 9 FROM tab2 AS cor0
----
207
360
522

query I rowsort
SELECT DISTINCT - col0 * - col2 + - 33 AS col2 FROM tab1 AS cor0
----
4863
4982
6155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL 66 * - 30 + - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1995
-2067
-2077

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL 66 * - 30 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1995
-2067
-2077

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / 28 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - - col0 ) FROM tab0 cor0
----
15
87
97

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * + col0 + 14 / + col0 + col2 NOT BETWEEN ( NULL ) AND - col0 * 53
----

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

skipif mysql # not compatible
query I rowsort label-6612
SELECT CAST ( + 21 AS INTEGER ) FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6613
SELECT * FROM tab0 WHERE NOT 38 <= CAST( NULL AS SIGNED ) - col0 OR NOT NULL > + + col1
----

skipif mysql # not compatible
query III rowsort label-6613
SELECT * FROM tab0 WHERE NOT 38 <= CAST ( NULL AS INTEGER ) - col0 OR NOT NULL > + + col1
----

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

query I rowsort
SELECT col2 * - 30 FROM tab1 AS cor0
----
-1770
-2040
-2880

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

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

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

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

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

query I rowsort
SELECT ALL + + col1 + + - col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT 7 AS col0, - 54 - - col0 * - - col0 FROM tab1 AS cor0
----
7
2547
7
7171
7
8227

query I rowsort
SELECT col0 + + - col2 * col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-13
-2194
-9704

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6622
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST( - + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6622
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST ( - + col2 AS REAL )
----

query I rowsort
SELECT DISTINCT + col2 - + - 4 FROM tab2 cor0
----
27
44
62

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT + col1 DIV - 45 - col0 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + col1 / - 45 - col0 FROM tab1 AS cor0
----
-51
-85
-92

query III rowsort
SELECT * FROM tab0 WHERE - + 80 >= - col1
----
15
81
47

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

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

query I rowsort
SELECT DISTINCT - 45 + ( + col1 ) + + col0 - - + col2 AS col1 FROM tab2
----
136
155
75

query I rowsort
SELECT + 12 + - col2 FROM tab0
----
-35
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT COUNT( * ) + + ( - - 12 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6631
SELECT COUNT ( * ) + + ( - - 12 ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ( + + SUM( ALL + 4 ) ) + 81 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6632
SELECT ( + + SUM ( ALL + 4 ) ) + 81 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT MAX( - 49 ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT MAX ( - 49 ) FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT ALL 23 col1, + COUNT( * ) + + - 79 + + + 10 AS col1 FROM tab0
----
23
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6634
SELECT ALL 23 col1, + COUNT ( * ) + + - 79 + + + 10 AS col1 FROM tab0
----
23
-66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - ( 78 ) FROM tab2 cor0
----
-78
-78
-78

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> 88
----

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > 86
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6644
SELECT col1 DIV 66 AS col2, col0 + + 72 + + 58 * - - 36 col0 FROM tab0
----
0
2247
0
2257
1
2175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6644
SELECT col1 / 66 AS col2, col0 + + 72 + + 58 * - - 36 col0 FROM tab0
----
0
2247
0
2257
1
2175

query I rowsort
SELECT ALL col0 * + ( - - 86 ) * 2 FROM tab1
----
14620
15652
8772

query I rowsort
SELECT + 32 FROM tab1, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL - 90 * + - col2 AS col0 FROM tab1
----
5310
6120
8640

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6649
SELECT ALL + ( COUNT( * ) ) AS col2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6649
SELECT ALL + ( COUNT ( * ) ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT + ( + - 24 ) AS col1 FROM tab1 AS cor0
----
-24
-24
-24

query II rowsort
SELECT + 95 AS col0, + 10 AS col1 FROM tab1 AS cor0
----
95
10
95
10
95
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6652
SELECT + COUNT( * ) AS col2, + SUM( DISTINCT - + col2 ) DIV + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
-40

skipif mysql # not compatible
query II rowsort label-6652
SELECT + COUNT ( * ) AS col2, + SUM ( DISTINCT - + col2 ) / + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - COUNT( * ) + - MAX( ALL - 40 ) AS col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6653
SELECT - COUNT ( * ) + - MAX ( ALL - 40 ) AS col1 FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT - SUM( ALL col0 ) + - 28 col2 FROM tab2 cor0
----
-213

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

query I rowsort
SELECT ALL - 80 * + col0 AS col2 FROM tab0 AS cor0
----
-1200
-6960
-7760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6656
SELECT DISTINCT MAX( + + col2 ) - - + 9 DIV - 67 + - 56 * - + ( + CAST( - 84 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-4605

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT MAX ( + + col2 ) - - + 9 / - 67 + - 56 * - + ( + CAST ( - 84 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-4605

query I rowsort
SELECT col1 * 4 FROM tab0 AS cor0
----
324
4
84

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

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

query I rowsort
SELECT DISTINCT 4 - - 44 AS col1 FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT DISTINCT col2 DIV - 74 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT col2 / - 74 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + col2 + - - 52 FROM tab2
----
110
75
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6662
SELECT COUNT( * ) FROM tab2 WHERE ( + CAST( NULL AS DECIMAL ) * + col0 + + 28 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6662
SELECT COUNT ( * ) FROM tab2 WHERE ( + CAST ( NULL AS REAL ) * + col0 + + 28 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT - - COUNT( + col2 ) AS col0 FROM tab0 WHERE NOT 76 * col2 > - + col1
----
0

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT - - COUNT ( + col2 ) AS col0 FROM tab0 WHERE NOT 76 * col2 > - + col1
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 = + col2 * col1 + + 10 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT ALL - 22 * + ( - + col0 ), + col1 * + + col1 AS col0 FROM tab2
----
1012
2601
1408
5929
1650
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT MAX( DISTINCT 14 ) AS col0 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT MAX ( DISTINCT 14 ) AS col0 FROM tab1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL + 57 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2 / - - 22 * + - CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + 57 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2 / - - 22 * + - CAST ( NULL AS INTEGER ) * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6670
SELECT ALL col1, CAST( NULL AS DECIMAL ) + - col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6670
SELECT ALL col1, CAST ( NULL AS REAL ) + - col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ( col0 ) * col0 * col2 + - + 83 FROM tab1
----
249613
426192
563025

query II rowsort
SELECT - col2 * - 9 AS col2, - col1 FROM tab1 AS cor0
----
531
-5
612
-47
864
-14

query I rowsort
SELECT ALL - col2 * - + 88 AS col2 FROM tab0 AS cor0
----
4136
8712
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 26 ) * + col2 col0 FROM tab0 cor0
----
-1222
-2574
-260

onlyif mysql # DIV for integer division: 
query II rowsort label-6675
SELECT - col2 DIV + col2 + + 9 * + col0, col2 col1 FROM tab0 AS cor0
----
134
47
782
10
872
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6675
SELECT - col2 / + col2 + + 9 * + col0, col2 col1 FROM tab0 AS cor0
----
134
47
782
10
872
99

query II rowsort
SELECT 51 * 44 AS col1, col0 AS col1 FROM tab2 AS cor0
----
2244
46
2244
64
2244
75

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( col1 )
----

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

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

query I rowsort
SELECT DISTINCT + 56 + + + col2 FROM tab0
----
103
155
66

query I rowsort
SELECT DISTINCT col1 + - - 77 - + - 95 FROM tab0
----
173
193
253

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT + col1 * + + col1 DIV col1 + - col0 AS col1 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-6683
SELECT + col1 * + + col1 / col1 + - col0 AS col1 FROM tab0
----
-66
-96
66

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

skipif mysql # not compatible
query I rowsort label-6684
SELECT + 61 + - COUNT ( * ) / - 87 FROM tab0 AS cor0
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT - col2 + - col1 + - CAST( + ( - col1 ) AS SIGNED ) * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-200
-482
-6736

skipif mysql # not compatible
query I rowsort label-6686
SELECT - col2 + - col1 + - CAST ( + ( - col1 ) AS INTEGER ) * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-200
-482
-6736

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col0 + + + ( ( 39 ) ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 2 * - col2 * + + 34 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
15

query I rowsort
SELECT ALL - 45 + - col1 FROM tab2
----
-112
-122
-96

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 74 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6693
SELECT 30 - + 79 / - col0 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT + + 32 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND 76
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 43 * + ( 21 ) IS NOT NULL AND ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT DISTINCT col2 DIV + + 24 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT col2 / + + 24 FROM tab2
----
0
1
2

query I rowsort
SELECT - 32 * + 14 * 58 AS col2 FROM tab0
----
-25984
-25984
-25984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6698
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 22 AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6698
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 22 AS col0 FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6699
SELECT * FROM tab1 WHERE NOT ( + CAST( NULL AS DECIMAL ) NOT IN ( - col0, - ( 40 ), + - col1 * + col0 * + col1 + 24 + - - ( col2 ) + - CAST( + col2 AS SIGNED ), 67, + col0 * CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6699
SELECT * FROM tab1 WHERE NOT ( + CAST ( NULL AS REAL ) NOT IN ( - col0, - ( 40 ), + - col1 * + col0 * + col1 + 24 + - - ( col2 ) + - CAST ( + col2 AS INTEGER ), 67, + col0 * CAST ( NULL AS INTEGER ) ) )
----

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

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

query I rowsort
SELECT DISTINCT - 0 * 13 FROM tab1
----
0

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 53 + 56 + + 0 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 85 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 85 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT ALL 89 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL 89 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 87 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6710
SELECT col2 + + CAST( NULL AS SIGNED ) * - col0 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6710
SELECT col2 + + CAST ( NULL AS INTEGER ) * - col0 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

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

query I rowsort
SELECT DISTINCT - col1 * 17 + + 99 AS col2 FROM tab1
----
-139
-700
14

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

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

query I rowsort
SELECT DISTINCT - col1 + + 79 + - col1 AS col2 FROM tab0 AS cor0
----
-83
37
77

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

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

query I rowsort
SELECT DISTINCT + + col2 - - 56 FROM tab2 AS cor0
----
114
79
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT - col1 * - - 9 + 29 DIV + - col2 FROM tab0 AS cor0
----
-191
-729
-9

skipif mysql # not compatible
query I rowsort label-6717
SELECT - col1 * - - 9 + 29 / + - col2 FROM tab0 AS cor0
----
-191
-729
-9

query I rowsort
SELECT ALL + col2 + - - col0 + + col0 * - 28 AS col1 FROM tab0
----
-2339
-2520
-358

query I rowsort
SELECT ALL 85 + - 49 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT + MIN( - 77 ) DIV - 74 col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6720
SELECT + MIN ( - 77 ) / - 74 col1 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6722
SELECT DISTINCT + - CAST( - - col1 AS SIGNED ) - + - 47 + + + 49 * - - col1, col2 AS col0 FROM tab0 AS cor0
----
1055
10
3935
47
95
99

skipif mysql # not compatible
query II rowsort label-6722
SELECT DISTINCT + - CAST ( - - col1 AS INTEGER ) - + - 47 + + + 49 * - - col1, col2 AS col0 FROM tab0 AS cor0
----
1055
10
3935
47
95
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 col2, col2 AS col2 FROM tab1
----
85
59
85
68
85
96

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

query I rowsort
SELECT ALL + 34 * - col1 + col1 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
-1551
-165
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * + col0 col2 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT DISTINCT - 35 * + + 39 AS col0 FROM tab0 cor0
----
-1365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6729
SELECT DISTINCT + - 31, CAST( NULL AS SIGNED ) * + - SUM( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-31
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6729
SELECT DISTINCT + - 31, CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-31
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6731
SELECT ALL COUNT( * ) AS col1, MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-6731
SELECT ALL COUNT ( * ) AS col1, MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT COUNT( - - 75 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6733
SELECT COUNT ( - - 75 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT DISTINCT + MAX( + + ( - col1 ) ) DIV - 33 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT + MAX ( + + ( - col1 ) ) / - 33 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6735
SELECT - col2 DIV 11, col0 + - 96 AS col2 FROM tab2 AS cor0
----
-2
-50
-3
-32
-5
-21

skipif mysql # not compatible
query II rowsort label-6735
SELECT - col2 / 11, col0 + - 96 AS col2 FROM tab2 AS cor0
----
-2
-50
-3
-32
-5
-21

query I rowsort
SELECT col0 + - col1 FROM tab0 AS cor0 WHERE - 23 IS NOT NULL
----
-66
66
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT + col2 * + - CAST( - 43 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
1012
1760
2552

skipif mysql # not compatible
query I rowsort label-6738
SELECT + col2 * + - CAST ( - 43 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
1012
1760
2552

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

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NULL BETWEEN + + col0 AND - - 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT + 20 + ( - 28 ) + + col0 DIV + - col1 AS col1 FROM tab0
----
-105
-12
-8

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 20 + ( - 28 ) + + col0 / + - col1 AS col1 FROM tab0
----
-105
-12
-8

query III rowsort
SELECT * FROM tab1 WHERE - - 78 >= - col0 / - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - 12 FROM tab2
----
39
55
65

query III rowsort
SELECT * FROM tab2 WHERE + + col0 BETWEEN + - 42 - - - 85 * + + col2 AND + col2 * + 60 * 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT 45 + + ( + - col1 ) DIV - - 43 AS col1 FROM tab0
----
44
45
45

skipif mysql # not compatible
query I rowsort label-6745
SELECT 45 + + ( + - col1 ) / - - 43 AS col1 FROM tab0
----
44
45
45

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2, 49 )
----

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

query I rowsort
SELECT 50 * + 75 + - 69 + - col1 * - col2 AS col1 FROM tab0 cor0
----
3780
3891
7488

query II rowsort
SELECT ALL - + 98 AS col2, ( - + 59 ) FROM tab0 AS cor0
----
-98
-59
-98
-59
-98
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT col2 DIV 45 AS col1 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT col2 / 45 AS col1 FROM tab1
----
1
2

query I rowsort
SELECT ALL + col0 * + ( + ( - 66 ) ) FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE ( col0 + + col2 ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6753
SELECT 37 DIV + 36 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6753
SELECT 37 / + 36 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT 75 DIV - COUNT( * ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6754
SELECT 75 / - COUNT ( * ) AS col2 FROM tab2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT 44 DIV 11 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6755
SELECT 44 / 11 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL + 15 * CAST( NULL AS SIGNED ) + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + 15 * CAST ( NULL AS INTEGER ) + + col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT - 8 - + 46 DIV 6 AS col2 FROM tab1
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-6758
SELECT - 8 - + 46 / 6 AS col2 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT + 85 FROM tab2 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT - 80 + COUNT( * ) AS col1 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT - 80 + COUNT ( * ) AS col1 FROM tab0
----
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / + 23 + + 25 > - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 48 - col1 AS col1 FROM tab0
----
-33
27
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( 76 ) NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( 76 ) NOT IN ( - col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 22 <> ( 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT MIN( ALL col1 ) * + 76 + + COUNT( * ) * 8 AS col0 FROM tab2
----
3900

skipif mysql # not compatible
query I rowsort label-6768
SELECT MIN ( ALL col1 ) * + 76 + + COUNT ( * ) * 8 AS col0 FROM tab2
----
3900

query I rowsort
SELECT col1 + ( + col2 + + col1 * col0 ) FROM tab0
----
1343
1858
197

query I rowsort
SELECT ( col2 ) FROM tab1 cor0 WHERE NOT ( - col0 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 11 = col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - - MIN( - col2 ) + - SUM( + col1 ) * 72 FROM tab1 AS cor0
----
-4848

skipif mysql # not compatible
query I rowsort label-6773
SELECT - - MIN ( - col2 ) + - SUM ( + col1 ) * 72 FROM tab1 AS cor0
----
-4848

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

query I rowsort
SELECT - + col1 + 3 AS col2 FROM tab2 AS cor0
----
-48
-64
-74

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

query I rowsort
SELECT + col0 * - ( col2 ) + - 55 FROM tab0 cor0
----
-760
-925
-9658

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT - - 39 DIV + 87 + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6778
SELECT - - 39 / + 87 + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < - 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * col0 col2 FROM tab1 AS cor0
----
1938
3230
3458

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE 18 <= ( NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL - 36 * + COUNT( * ) * - COUNT( * ) + 45 AS col1 FROM tab0
----
369

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL - 36 * + COUNT ( * ) * - COUNT ( * ) + 45 AS col1 FROM tab0
----
369

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

query I rowsort
SELECT DISTINCT 75 * - col0 + - col0 AS col2 FROM tab2
----
-3496
-4864
-5700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 34 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT col2 col2 FROM tab2 WHERE ( col1 ) IN ( - 82 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT col2 col2 FROM tab2 WHERE ( col1 ) IN ( - 82 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6789
SELECT * FROM tab2 WHERE - col0 + + 81 * CAST( NULL AS SIGNED ) <= 55 / 49
----

skipif mysql # not compatible
query III rowsort label-6789
SELECT * FROM tab2 WHERE - col0 + + 81 * CAST ( NULL AS INTEGER ) <= 55 / 49
----

query I rowsort
SELECT + col1 - - col1 * 83 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
1176
3948
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT + COUNT( * ) + - MAX( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE ( col1 ) NOT IN ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT + COUNT ( * ) + - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE ( col1 ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + + col0 + ( - 86 ) AS col2 FROM tab2 AS cor0
----
-11
-22
-40

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

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

query I rowsort
SELECT DISTINCT - - col0 - + 2 FROM tab1 AS cor0
----
49
83
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6798
SELECT - CAST( 86 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif mysql # not compatible
query I rowsort label-6798
SELECT - CAST ( 86 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( 96 )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT 8 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT 8 / + col0 FROM tab0 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6802
SELECT - - 86 / + COUNT ( * ) FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - + COUNT( DISTINCT - col1 ) * - ( 24 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - + COUNT ( DISTINCT - col1 ) * - ( 24 ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT + col2 AS col2, - 26 + + - col1 FROM tab2 AS cor0
----
23
-77
40
-103
58
-93

query II rowsort
SELECT ALL - col2, 98 + 39 AS col0 FROM tab2 AS cor0
----
-23
137
-40
137
-58
137

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 53 ) + + 86 < + 15 * 19
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE ( 82 ) > CAST( + 88 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6808
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE ( 82 ) > CAST ( + 88 AS INTEGER )
----

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

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

query I rowsort
SELECT 78 FROM tab0 WHERE NOT - - 13 * + - col1 IS NULL
----
78
78
78

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

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

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

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

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

query I rowsort
SELECT + col1 * + col1 * + + 86 FROM tab2
----
223686
386054
509894

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

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

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

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - COUNT( ALL 57 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - COUNT ( ALL 57 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + - 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL + MAX( - col0 ) + - - MIN( ALL + + 68 ) FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + MAX ( - col0 ) + - - MIN ( ALL + + 68 ) FROM tab2 cor0
----
22

query II rowsort
SELECT ( - + col0 ) AS col1, - 97 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - col0 - + - ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - - 58 * - col2 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT DISTINCT + - col1 * 70 AS col0 FROM tab0 cor0
----
-1470
-5670
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - 23 * + - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - 23 * + - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
66

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

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

query I rowsort
SELECT ALL + col0 * + 13 + col1 FROM tab0
----
1152
1262
276

query I rowsort
SELECT ( + 81 ) * - + col1 + - col1 + - + col1 * col0 - + 34 * col2 FROM tab0
----
-3545
-3889
-9455

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

query I rowsort
SELECT + ( + 66 ) + - col0 FROM tab2
----
-9
2
20

query I rowsort
SELECT ALL + col0 * ( - col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT DISTINCT - ( col0 ) DIV - + col0 + - col2 + + + col1 FROM tab1
----
-20
-53
-81

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - ( col0 ) / - + col0 + - col2 + + + col1 FROM tab1
----
-20
-53
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6835
SELECT - CAST( + 43 AS SIGNED ) + - + 13 + - 98 * - SUM( + col2 ) FROM tab1 AS cor0
----
21798

skipif mysql # not compatible
query I rowsort label-6835
SELECT - CAST ( + 43 AS INTEGER ) + - + 13 + - 98 * - SUM ( + col2 ) FROM tab1 AS cor0
----
21798

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * - - 84 NOT BETWEEN NULL AND - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col2 * 41 * + col0 FROM tab0
----
28905
35670
393723

query I rowsort
SELECT 30 AS col1 FROM tab0 cor0 WHERE NOT + 64 * - - col2 * col2 <= - ( col1 )
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL - MIN( + 23 ) FROM tab0 cor0 WHERE NOT ( col0 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL - MIN ( + 23 ) FROM tab0 cor0 WHERE NOT ( col0 ) < NULL
----
NULL

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

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

query II rowsort
SELECT ALL - 69 AS col1, - 12 FROM tab2
----
-69
-12
-69
-12
-69
-12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 72 AND - 61
----

query II rowsort
SELECT ALL col2 AS col0, - 33 AS col1 FROM tab0
----
10
-33
47
-33
99
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT 31 * - COUNT( * ) + + ( 77 ) AS col1 FROM tab1 WHERE NOT + - ( - CAST( NULL AS SIGNED ) ) * col1 + + col1 IS NOT NULL
----
-16

skipif mysql # not compatible
query I rowsort label-6845
SELECT 31 * - COUNT ( * ) + + ( 77 ) AS col1 FROM tab1 WHERE NOT + - ( - CAST ( NULL AS INTEGER ) ) * col1 + + col1 IS NOT NULL
----
-16

query II rowsort
SELECT 51, col1 AS col2 FROM tab1
----
51
14
51
47
51
5

query I rowsort
SELECT + ( - 29 ) FROM tab2
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6848
SELECT DISTINCT CAST( + - CAST( + - col0 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT CAST ( + - CAST ( + - col0 AS REAL ) AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query II rowsort
SELECT + 34 AS col1, col1 + col1 FROM tab2
----
34
102
34
134
34
154

query I rowsort
SELECT 18 * + + col2 AS col1 FROM tab0
----
1782
180
846

query I rowsort
SELECT ALL 36 * - 38 * col0 + + - col0 + - 75 AS col1 FROM tab1
----
-116440
-124654
-69894

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 46 - ( + col2 ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - - MAX( - 54 ) * + 27 * + 53 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT - - MAX ( - 54 ) * + 27 * + 53 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6856
SELECT - + col1 / - - col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT ALL - + col2 AS col2, 61 FROM tab0 AS cor0
----
-10
61
-47
61
-99
61

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

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

query II rowsort
SELECT col2, col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 95 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL + + MAX( ( - - col0 ) ) - - MIN( - 73 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + + MAX ( ( - - col0 ) ) - - MIN ( - 73 ) FROM tab2 AS cor0
----
2

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

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

query I rowsort
SELECT - col1 + col2 * + - 84 FROM tab1 AS cor0
----
-4961
-5759
-8078

query I rowsort
SELECT - 4 * col0 + + + ( - 8 ) FROM tab2 AS cor0
----
-192
-264
-308

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + 41 ) IN ( + 61 )
----

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

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE + - col0 IS NOT NULL
----
-15
-87
-97

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

query I rowsort
SELECT ALL + - col2 * + col0 * col2 - + col0 FROM tab1 AS cor0
----
-295970
-420875
-470067

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT ALL - COUNT( * ) * COUNT( * ), + 85 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9
85

skipif mysql # not compatible
query II rowsort label-6873
SELECT ALL - COUNT ( * ) * COUNT ( * ), + 85 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT DISTINCT - + COUNT( ALL + + 98 ) AS col0, 11 * - + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-352

skipif mysql # not compatible
query II rowsort label-6874
SELECT DISTINCT - + COUNT ( ALL + + 98 ) AS col0, 11 * - + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-352

query I rowsort
SELECT DISTINCT col0 * - col2 + + - 18 AS col2 FROM tab0 AS cor0
----
-723
-888
-9621

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * - 36 * - + ( ( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT ALL - col0 + + 67 + + col2 * + col0 FROM tab1 WHERE NULL BETWEEN - - 85 + - 52 AND ( NULL )
----

query I rowsort
SELECT - ( + 10 ) * + 34 FROM tab2
----
-340
-340
-340

query I rowsort
SELECT + - 14 + - col2 AS col2 FROM tab1 AS cor0
----
-110
-73
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * + + ( + 73 ) + - col2 * + col2 col0 FROM tab2 cor0
----
-140
-1904
931

onlyif mysql # DIV for integer division: 
query II rowsort label-6886
SELECT DISTINCT col2, 64 DIV + col0 AS col1 FROM tab2
----
23
1
40
1
58
0

skipif mysql # not compatible
query II rowsort label-6886
SELECT DISTINCT col2, 64 / + col0 AS col1 FROM tab2
----
23
1
40
1
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT COUNT( * ) * - - 96 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-6887
SELECT COUNT ( * ) * - - 96 FROM tab2
----
288

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6888
SELECT - 62 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL COUNT ( * ) - - - CAST ( + + AVG ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-31

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

query I rowsort
SELECT DISTINCT + 0 - - - col2 + 31 * - col0 AS col0 FROM tab2 cor0
----
-1449
-2024
-2383

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 * 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + COUNT( - + 90 ) + - 78 AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6893
SELECT + COUNT ( - + 90 ) + - 78 AS col0 FROM tab2
----
-75

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

query I rowsort
SELECT col0 + - + 25 * - col1 FROM tab1
----
1266
210
401

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + SUM( + + 74 ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + SUM ( + + 74 ) AS col1 FROM tab0
----
222

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

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

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

query I rowsort
SELECT col1 + - col0 + col2 * 7 AS col2 FROM tab1
----
333
432
635

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

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

query II rowsort
SELECT ( col1 ) AS col1, + col1 * + + 87 FROM tab1
----
14
1218
47
4089
5
435

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

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

query I rowsort
SELECT DISTINCT + - 32 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-32

query I rowsort
SELECT DISTINCT - 76 FROM tab2, tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 44 * - - 73 AS col2 FROM tab1 AS cor0
----
3212
3212
3212

query II rowsort
SELECT DISTINCT - + 49 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
-49
1
-49
21
-49
81

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 * + 2
----

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 * + 2
----

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

query I rowsort
SELECT - col2 + - 21 AS col1 FROM tab1 cor0
----
-117
-80
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT - 11 DIV - + 14 + col1 * - ( + 10 ) FROM tab1 AS cor0
----
-140
-470
-50

skipif mysql # not compatible
query I rowsort label-6914
SELECT - 11 / - + 14 + col1 * - ( + 10 ) FROM tab1 AS cor0
----
-140
-470
-50

query I rowsort
SELECT + 55 + 14 + - ( - col1 ) FROM tab0
----
150
70
90

query I rowsort
SELECT DISTINCT col1 * col1 + + 57 FROM tab2
----
2658
4546
5986

query I rowsort
SELECT + 39 + + 77 AS col0 FROM tab0
----
116
116
116

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

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

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

query I rowsort
SELECT DISTINCT 92 + - col0 FROM tab0
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + 14 + - SUM( DISTINCT - - 64 ) col2 FROM tab1
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6921
SELECT ALL + 14 + - SUM ( DISTINCT - - 64 ) col2 FROM tab1
----
-50

query I rowsort
SELECT DISTINCT - col2 + 11 * - col1 FROM tab0
----
-110
-241
-938

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

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

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

query I rowsort
SELECT ALL - + 8 + + col2 FROM tab0 AS cor0
----
2
39
91

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * - 2 col2 FROM tab2
----
-125
-192
-194

query I rowsort
SELECT - ( - 75 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - 41 AND 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6930
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE + col1 * + col0 * col0 + 54 + + 19 * + - col2 + + 22 + - col0 + + CAST( NULL AS SIGNED ) * col1 * - + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 * + col0 * col0 + 54 + + 19 * + - col2 + + 22 + - col0 + + CAST ( NULL AS INTEGER ) * col1 * - + col2 IS NULL
----
-3

query I rowsort
SELECT - ( col2 ) + - 38 AS col0 FROM tab0 AS cor0
----
-137
-48
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 96 ) * + 30 * col2 col1 FROM tab1 AS cor0
----
-169920
-195840
-276480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT + + CAST( - SUM( + + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-121

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

query I rowsort
SELECT + col1 * - 34 AS col2 FROM tab2 AS cor0
----
-1734
-2278
-2618

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

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT ( NULL IN ( - 83 * + col2, - ( col2 ), col0, - col0 * - col0 + + + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT - ( - col1 ) FROM tab2 WHERE NOT ( + col0 * + CAST( NULL AS SIGNED ) * + - 4 * + 77 + + CAST( col1 AS SIGNED ) + col0 <= NULL )
----

skipif mysql # not compatible
query I rowsort label-6937
SELECT - ( - col1 ) FROM tab2 WHERE NOT ( + col0 * + CAST ( NULL AS INTEGER ) * + - 4 * + 77 + + CAST ( col1 AS INTEGER ) + col0 <= NULL )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + - col0 FROM tab2 WHERE + 90 > - + col0
----
-17
-23
-24

query II rowsort
SELECT DISTINCT col0 * + col1 AS col2, - col1 FROM tab0
----
1215
-81
1827
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT DISTINCT + 84 col2 FROM tab1 cor0 WHERE NOT ( + CAST( + 74 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6943
SELECT DISTINCT + 84 col2 FROM tab1 cor0 WHERE NOT ( + CAST ( + 74 AS INTEGER ) ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6945
SELECT + col2 DIV col1 + + - 23 - col0 AS col2 FROM tab0 cor0
----
-110
-21
-38

skipif mysql # not compatible
query I rowsort label-6945
SELECT + col2 / col1 + + - 23 - col0 AS col2 FROM tab0 cor0
----
-110
-21
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-6946
SELECT + + ( - col0 ) DIV - ( - col0 ) AS col0, + col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-6946
SELECT + + ( - col0 ) / - ( - col0 ) AS col0, + col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT - col1 * 71 + - col2 DIV + - col0 * CAST( + - 7 AS SIGNED ) FROM tab2
----
-3621
-4757
-5467

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - col1 * 71 + - col2 / + - col0 * CAST ( + - 7 AS INTEGER ) FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT 21 AS col2 FROM tab2 WHERE - - 84 IS NOT NULL
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6951
SELECT DISTINCT COUNT( * ) + - COUNT( * ) DIV - COUNT( * ), - 67 AS col2 FROM tab1
----
4
-67

skipif mysql # not compatible
query II rowsort label-6951
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ), - 67 AS col2 FROM tab1
----
4
-67

query I rowsort
SELECT DISTINCT 37 * 4 + + + col0 FROM tab0
----
163
235
245

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT + AVG ( - col2 ) + AVG ( ALL - col0 ) * - SUM( ALL + CAST( NULL AS SIGNED ) ) * ( - AVG ( - - 23 ) ) / + 84 - - COUNT( * ) * - - 44 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT + AVG ( - col2 ) + AVG ( ALL - col0 ) * - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * ( - AVG ( - - 23 ) ) / + 84 - - COUNT ( * ) * - - 44 AS col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT + ( + + 56 ) * + - MAX( + ( + 55 ) ) FROM tab1
----
-3080

skipif mysql # not compatible
query I rowsort label-6956
SELECT + ( + + 56 ) * + - MAX ( + ( + 55 ) ) FROM tab1
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE ( NOT NULL > col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE ( NOT NULL > col0 )
----
0

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

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

query I rowsort
SELECT - col2 - - 2 AS col0 FROM tab2
----
-21
-38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT COUNT( * ) + + - 37 AS col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT COUNT ( * ) + + - 37 AS col0 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6962
SELECT DISTINCT - + COUNT( * ) - - - COUNT( * ) AS col2, ( - ( - + MIN( DISTINCT + col1 ) ) ) col0 FROM tab0 AS cor0
----
-6
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6962
SELECT DISTINCT - + COUNT ( * ) - - - COUNT ( * ) AS col2, ( - ( - + MIN ( DISTINCT + col1 ) ) ) col0 FROM tab0 AS cor0
----
-6
1

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6964
SELECT CAST( NULL AS DECIMAL ) * + COUNT( * ) + + + 73 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT CAST ( NULL AS REAL ) * + COUNT ( * ) + + + 73 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 10 FROM tab1 cor0
----
-140
-470
-50

query I rowsort
SELECT + col0 * + + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 98 * - col1 BETWEEN + col0 / + + col0 AND - col2 * - + ( + col1 )
----

query I rowsort
SELECT ALL - ( - + AVG ( - col2 ) ) * - + 35 FROM tab2 WHERE + col2 + col0 - - + col2 = NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT col2 DIV + 72 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6970
SELECT col2 / + 72 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 9 ) NOT IN ( col1, - col1 )
----

query I rowsort
SELECT DISTINCT - + col0 * + 89 + - + col2 + - 2 FROM tab1 WHERE + + col2 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 col2, + 46 * - + 82 * - 28, + col1 FROM tab2
----
9 values hashing to d432737cc980336e8219207b4311ecf7

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

skipif mysql # not compatible
query II rowsort label-6977
SELECT 94 AS col1, COUNT ( * ) FROM tab2
----
94
3

query I rowsort
SELECT + 15 + col0 AS col2 FROM tab2 AS cor0
----
61
79
90

query II rowsort
SELECT DISTINCT - 48 AS col1, 44 AS col1 FROM tab1 AS cor0
----
-48
44

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

query I rowsort
SELECT DISTINCT - 11 * col2 + - 65 - - col2 + + col1 FROM tab2 AS cor0 WHERE NOT 19 + + - col2 NOT BETWEEN + col0 * 45 AND - col0 + + col2 + - + col2 / - + col0
----

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

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + CAST ( + - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6983
SELECT col2 DIV + ( + col0 ) + ( col1 ) + + + col0 + col2 + - + CAST( - 94 AS SIGNED ) DIV + + 55 - + col2 * + ( 66 ) AS col0 FROM tab2 AS cor0
----
-1397
-2458
-3627

skipif mysql # not compatible
query I rowsort label-6983
SELECT col2 / + ( + col0 ) + ( col1 ) + + + col0 + col2 + - + CAST ( - 94 AS INTEGER ) / + + 55 - + col2 * + ( 66 ) AS col0 FROM tab2 AS cor0
----
-1397
-2458
-3627

query I rowsort
SELECT ALL - 8 * - ( + 13 ) FROM tab2 AS cor0
----
104
104
104

query II rowsort
SELECT DISTINCT col2 + + ( + - 49 ) + col2 * + 10 AS col0, col2 AS col0 FROM tab2
----
204
23
391
40
589
58

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 29 IN ( ( + 43 ), col0 + - 50, - - 18 * 89 + - - col2, col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 47 + 25 FROM tab2
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * + - col2 col1 FROM tab2
----
-1160
-460
-800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 87 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT - 14 / - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT - 14 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL 67 + + - CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) FROM tab0
----
64

query II rowsort
SELECT ALL + 18 + - col2, col2 FROM tab0
----
-29
47
-81
99
8
10

query I rowsort
SELECT ALL ( + + 76 ) + col2 AS col1 FROM tab2
----
116
134
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT - COUNT( * ) * 55 FROM tab0 cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - COUNT ( * ) * 55 FROM tab0 cor0
----
-165

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

query I rowsort
SELECT ALL - - col1 * + col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT col2 - - 16 AS col0, 30 FROM tab1 AS cor0
----
112
30
75
30
84
30

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 70
----

query II rowsort
SELECT - 55 - + 65 AS col2, col2 * col1 - + 19 AS col1 FROM tab2 AS cor0
----
-120
1154
-120
3061
-120
3867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7001
SELECT COUNT( * ) + - CAST( + MIN( ALL - col2 ) AS SIGNED ), + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7001
SELECT COUNT ( * ) + - CAST ( + MIN ( ALL - col2 ) AS INTEGER ), + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
61
NULL

query II rowsort
SELECT DISTINCT - ( - - col0 ) + + col1 AS col2, col1 FROM tab0
----
-66
21
-96
1
66
81

query I rowsort
SELECT - - 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT DISTINCT - 73 AS col2, COUNT( * ) - + 55 AS col1 FROM tab2 AS cor0
----
-73
-52

skipif mysql # not compatible
query II rowsort label-7005
SELECT DISTINCT - 73 AS col2, COUNT ( * ) - + 55 AS col1 FROM tab2 AS cor0
----
-73
-52

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

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

query II rowsort
SELECT DISTINCT - - 7, col0 FROM tab2 AS cor0 WHERE ( NOT + 57 IS NULL )
----
7
46
7
64
7
75

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

skipif mysql # not compatible
query I rowsort label-7008
SELECT + MAX ( ALL - - 47 ) FROM tab2 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-7009
SELECT col0, 43 DIV col2 * col1 - + - col0 * 44 AS col1 FROM tab2 AS cor0
----
46
2075
64
2893
75
3300

skipif mysql # not compatible
query II rowsort label-7009
SELECT col0, 43 / col2 * col1 - + - col0 * 44 AS col1 FROM tab2 AS cor0
----
46
2075
64
2893
75
3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT DISTINCT + CAST( + + ( + col2 ) AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT + CAST ( + + ( + col2 ) AS INTEGER ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT ALL 69, + ( + ( + COUNT( * ) ) ) + - - COUNT( * ) AS col0 FROM tab0
----
69
6

skipif mysql # not compatible
query II rowsort label-7011
SELECT ALL 69, + ( + ( + COUNT ( * ) ) ) + - - COUNT ( * ) AS col0 FROM tab0
----
69
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT col2 DIV - - 4 FROM tab0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT col2 / - - 4 FROM tab0
----
11
2
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT col2 DIV + ( + 26 ) AS col0 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-7013
SELECT col2 / + ( + 26 ) AS col0 FROM tab1
----
2
2
3

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

query II rowsort
SELECT ALL + 16, + 99 AS col1 FROM tab0 AS cor0
----
16
99
16
99
16
99

query I rowsort
SELECT + col1 * - 48 FROM tab2
----
-2448
-3216
-3696

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 90 * - 90 * 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col1 * - 69
----

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col2 FROM tab1
----
-59
-68
-96

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

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

skipif mysql # not compatible
query I rowsort label-7022
SELECT COUNT ( * ) + + + 86 FROM tab2
----
89

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

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

query I rowsort
SELECT - + 54 FROM tab0 WHERE + col1 < - 15
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 86 IS NULL
----

query I rowsort
SELECT DISTINCT 21 * - col0 - + 93 AS col0 FROM tab1 AS cor0
----
-1164
-1878
-2004

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT DISTINCT 22 DIV + col2 + + col2 + 70 * + - 17 FROM tab2 cor0
----
-1132
-1150
-1167

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT 22 / + col2 + + col2 + 70 * + - 17 FROM tab2 cor0
----
-1132
-1150
-1167

query I rowsort
SELECT ALL + + col0 + ( - + col1 ) FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7029
SELECT + + col2 * - - col0 + + + col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + - ( 47 ) IS NULL
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + col2 * - - col0 + + + col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) + - ( 47 ) IS NULL
----
752
880
9702

query I rowsort
SELECT + 4 AS col2 FROM tab2 WHERE - 97 * 55 - + - col1 + - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( * ) * + 20 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( * ) * + 20 FROM tab1
----
60

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7033
SELECT DISTINCT * FROM tab1 WHERE + col1 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7033
SELECT DISTINCT * FROM tab1 WHERE + col1 >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + - col0 * - 53 + + + col0 AS col2 FROM tab0 AS cor0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query II rowsort label-7035
SELECT - 82 * - - ( - COUNT( * ) ) - + 78 AS col2, + 76 AS col2 FROM tab2 AS cor0
----
168
76

skipif mysql # not compatible
query II rowsort label-7035
SELECT - 82 * - - ( - COUNT ( * ) ) - + 78 AS col2, + 76 AS col2 FROM tab2 AS cor0
----
168
76

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 52 col0 FROM tab1
----
-3068
-3536
-4992

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

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

query I rowsort
SELECT DISTINCT + 70 * + - col0 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT ALL col1 * + col0 * + 39 * - 85 + + - col1 AS col1 FROM tab1 AS cor0
----
-1408880
-14178302
-2366924

query I rowsort
SELECT DISTINCT - 92 * + col2 - + col2 AS col1 FROM tab0 cor0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7043
SELECT - + MIN( DISTINCT - col1 ) * + + COUNT( + CAST( 22 AS SIGNED ) ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-7043
SELECT - + MIN ( DISTINCT - col1 ) * + + COUNT ( + CAST ( 22 AS INTEGER ) ) FROM tab0 AS cor0
----
243

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 > + + col1 + - 2
----

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

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

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

query I rowsort
SELECT ALL - 52 + - 22 FROM tab1
----
-74
-74
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT ALL col1 + + col0 DIV col1 * col1 FROM tab1 AS cor0
----
56
90
94

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL col1 + + col0 / col1 * col1 FROM tab1 AS cor0
----
56
90
94

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

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

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

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

query I rowsort
SELECT + + col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL + SUM( + 10 ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + SUM ( + 10 ) FROM tab2 cor0
----
30

query II rowsort
SELECT - 35 * + 32 AS col2, 65 FROM tab0
----
-1120
65
-1120
65
-1120
65

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

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

query I rowsort
SELECT col2 * + - 42 AS col0 FROM tab2
----
-1680
-2436
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 + + 55 * + ( - + col2 ) + - - col0 col2 FROM tab0
----
-2612
-505
-5390

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7060
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE ( - 91 ) + + col1 / + - CAST( + - col1 AS DECIMAL ) >= + ( + 67 ) * 96 * + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE ( - 91 ) + + col1 / + - CAST ( + - col1 AS REAL ) >= + ( + 67 ) * 96 * + CAST ( NULL AS INTEGER )
----
0

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

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

query II rowsort
SELECT - 92 - - + 19, + col1 + + col1 AS col2 FROM tab0
----
-73
162
-73
2
-73
42

query I rowsort
SELECT 62 - + col0 FROM tab0 AS cor0
----
-25
-35
47

query I rowsort
SELECT ( 37 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT CAST( NULL AS SIGNED ) * 12 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT CAST ( NULL AS INTEGER ) * 12 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 51 * - 63 FROM tab0 AS cor0
----
3213
3213
3213

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

skipif mysql # not compatible
query I rowsort label-7068
SELECT - + col0 / - - col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT ALL + + col1 DIV + ( + col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL + + col1 / + ( + col0 ) FROM tab0 AS cor0
----
0
0
5

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

query II rowsort
SELECT ALL col2, 81 * + + col1 FROM tab2 AS cor0
----
23
4131
40
6237
58
5427

query I rowsort
SELECT + col0 * + 41 AS col1 FROM tab1 AS cor0
----
2091
3485
3731

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

query I rowsort
SELECT DISTINCT 64 * - 61 AS col2 FROM tab1
----
-3904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7075
SELECT 16 * - col1 FROM tab2 WHERE NOT - col1 < + col2 / + CAST( - col2 AS SIGNED ) + + - ( 91 ) + + + col2
----
-816

skipif mysql # not compatible
query I rowsort label-7075
SELECT 16 * - col1 FROM tab2 WHERE NOT - col1 < + col2 / + CAST ( - col2 AS INTEGER ) + + - ( 91 ) + + + col2
----
-816

query I rowsort
SELECT 39 * - 16 * col2 AS col1 FROM tab2
----
-14352
-24960
-36192

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT - 84 * col2 DIV - col1 AS col1 FROM tab1
----
121
576
991

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 84 * col2 / - col1 AS col1 FROM tab1
----
121
576
991

query I rowsort
SELECT - col2 * + - col2 * - - 18 FROM tab1
----
165888
62658
83232

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7080
SELECT col0 AS col0, CAST( - col0 AS SIGNED ) * 10 FROM tab1 AS cor0
----
51
-510
85
-850
91
-910

skipif mysql # not compatible
query II rowsort label-7080
SELECT col0 AS col0, CAST ( - col0 AS INTEGER ) * 10 FROM tab1 AS cor0
----
51
-510
85
-850
91
-910

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

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

query I rowsort
SELECT DISTINCT + - col2 - col1 + + - 49 FROM tab1 cor0
----
-113
-159
-164

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

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

query I rowsort
SELECT DISTINCT + - col2 * + ( - 14 ) FROM tab2 AS cor0
----
322
560
812

query I rowsort
SELECT + 36 + + + col2 * col0 FROM tab0
----
741
906
9639

query II rowsort
SELECT ALL + ( 48 ) AS col0, + 17 AS col0 FROM tab1
----
48
17
48
17
48
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT - COUNT( DISTINCT - + 94 ) + - 75 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - COUNT ( DISTINCT - + 94 ) + - 75 FROM tab1
----
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT CAST( - 85 AS SIGNED ) + + - 1 FROM tab0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-7089
SELECT CAST ( - 85 AS INTEGER ) + + - 1 FROM tab0
----
-86
-86
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7090
SELECT COUNT( * ) + + 76 DIV + 30 + - 4 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7090
SELECT COUNT ( * ) + + 76 / + 30 + - 4 FROM tab2
----
1

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-7093
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - 53 - - 69 + + col0 - - - col2 * - - ( CAST ( NULL AS INTEGER ) ) IN ( + col2, col1, + col0 - - col1 )
----

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

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

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

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

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

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

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

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT ( 33 + - 11 + 44 IS NULL )
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 80 * col2 + col2 NOT IN ( 81, - 99 / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT DISTINCT - col2, 85 AS col0 FROM tab0 WHERE NULL >= ( NULL ) OR NOT + 80 IS NULL
----
-10
85
-47
85
-99
85

query I rowsort
SELECT ALL 90 + 10 AS col0 FROM tab0
----
100
100
100

query I rowsort
SELECT + 62 * 66 FROM tab2 WHERE NOT 59 BETWEEN NULL AND 39
----
4092
4092
4092

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

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

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

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

query II rowsort
SELECT DISTINCT col2 + + - col1 + - col2, - 6 * - + col0 AS col2 FROM tab0 cor0
----
-1
582
-21
522
-81
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT ALL + + 8 DIV - - 34 - + col1 + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + + 8 / - - 34 - + col1 + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT col0 * + 43 AS col2 FROM tab2 AS cor0
----
1978
2752
3225

query I rowsort
SELECT + col1 * - col1 * - col2 + - - col2 AS col2 FROM tab1 AS cor0
----
150280
1534
18912

query I rowsort
SELECT DISTINCT + col1 + + 75 AS col0 FROM tab2 AS cor0
----
126
142
152

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = 58
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT 10 + - ( + + COUNT( * ) ) AS col1 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT 10 + - ( + + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT ALL - 43 + + COUNT( * ) DIV - 26 AS col0 FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - 43 + + COUNT ( * ) / - 26 AS col0 FROM tab1 cor0
----
-43

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

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + col0 - CAST ( NULL AS INTEGER ) + - 80 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 5 * - col0, 85 * col2 col0 FROM tab1 AS cor0
----
-255
8160
-425
5015
-455
5780

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

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT + + ( + 69 ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT COUNT( * ) * + SUM( ALL - 80 ) AS col0 FROM tab2 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-7122
SELECT COUNT ( * ) * + SUM ( ALL - 80 ) AS col0 FROM tab2 AS cor0
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT DISTINCT - ( + col2 ) DIV + 29 + - col1 DIV - col0 FROM tab1 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - ( + col2 ) / + 29 + - col1 / - col0 FROM tab1 AS cor0
----
-2
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7124
SELECT DISTINCT 15 - - col2 col0, + col1 / ( + CAST( NULL AS DECIMAL ) ) * - 47 / - col1 AS col2 FROM tab1 AS cor0
----
111
NULL
74
NULL
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7124
SELECT DISTINCT 15 - - col2 col0, + col1 / ( + CAST ( NULL AS REAL ) ) * - 47 / - col1 AS col2 FROM tab1 AS cor0
----
111
NULL
74
NULL
83
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT ALL 82 DIV + col2 col1 FROM tab0 AS cor0
----
0
1
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT - 28 - + 43 DIV + + col0 * + col2 FROM tab1
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-7126
SELECT - 28 - + 43 / + + col0 * + col2 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + 80 * - col2 * + + 92 * - 82 * col2 AS col1 FROM tab2
----
2030241280
319262080
965632000

query I rowsort
SELECT - 0 * + col1 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - 67 * + 6 * - - col0 * ( - col1 ) AS col0 FROM tab2
----
1981056
2020050
943092

query II rowsort
SELECT - col0, col2 * - + col0 AS col1 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + SUM( + - 39 ) col1 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7132
SELECT + SUM ( + - 39 ) col1 FROM tab0 AS cor0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT ALL - - 60 DIV - - 99 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - - 60 / - - 99 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 43 AS col1 FROM tab2 cor0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT col0 DIV col2 * - 60 FROM tab1
----
-60
-60
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT col0 / col2 * - 60 FROM tab1
----
-60
-60
0

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col1 AND - + col2 * - 69
----

query I rowsort
SELECT - col1 * - - 67 + - 70 AS col2 FROM tab2 AS cor0
----
-3487
-4559
-5229

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT - + col1 * - 29 FROM tab1 AS cor0
----
1363
145
406

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

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

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

query II rowsort
SELECT ALL col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL 67 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - 71 + 68 AS col2 FROM tab0
----
-3
-3
-3

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

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

query I rowsort
SELECT + 62 + col2 AS col2 FROM tab1 AS cor0
----
121
130
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT MIN( + + 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT MIN ( + + 89 ) FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - MAX( ALL + 27 ) FROM tab1 AS cor0 WHERE + col1 / col0 * - + col0 IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-7149
SELECT - MAX ( ALL + 27 ) FROM tab1 AS cor0 WHERE + col1 / col0 * - + col0 IS NOT NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT 15 * + - SUM( col0 ) AS col1 FROM tab0
----
-2985

skipif mysql # not compatible
query I rowsort label-7150
SELECT 15 * + - SUM ( col0 ) AS col1 FROM tab0
----
-2985

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 61 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7152
SELECT DISTINCT - COUNT( * ) * MAX( + - CAST( 8 AS SIGNED ) ) + - 52 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - COUNT ( * ) * MAX ( + - CAST ( 8 AS INTEGER ) ) + - 52 FROM tab0
----
-28

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

query I rowsort
SELECT DISTINCT + 86 + + + col1 AS col1 FROM tab2 cor0
----
137
153
163

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

skipif mysql # not compatible
query II rowsort label-7155
SELECT DISTINCT + COUNT ( * ) * COUNT ( col1 ) * + + 78 AS col1, 75 FROM tab1 AS cor0
----
702
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL COUNT( * ) - - 15 AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL COUNT ( * ) - - 15 AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - + col1 * col1 * col0 - - + col0 + 76 AS col2 FROM tab0 AS cor0
----
-38204
-98324
76

query I rowsort
SELECT + ( - 74 ) AS col0 FROM tab1 WHERE NOT - - 59 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT DISTINCT col2 * col0 DIV col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT col2 * col0 / col2 FROM tab1
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-7160
SELECT + COUNT ( - + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7161
SELECT + col1 * - + col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-7161
SELECT + col1 * - + col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - col2 col1 FROM tab1
----
-3127
-3604
-5088

query I rowsort
SELECT ALL - 98 * + + 9 AS col2 FROM tab1
----
-882
-882
-882

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

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

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

query I rowsort
SELECT DISTINCT + AVG ( + col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + col0 * + ( - + 84 ) <= + + 7 + - col2 * - 2
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT DISTINCT - 33 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-7171
SELECT DISTINCT - 33 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-33
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 62 col0 FROM tab0 AS cor0
----
-149
-159
-77

query I rowsort
SELECT - 78 FROM tab1 AS cor0 WHERE NOT - 52 - + - 1 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT + col1, + col2 + - ( - + col2 ) - col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL - MIN( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE + col2 + + + col1 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - MIN ( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE + col2 + + + col1 IS NOT NULL
----
47

query I rowsort
SELECT - 42 AS col2 FROM tab2 AS cor0 WHERE ( + 74 ) IS NOT NULL
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT - CAST( + + col2 AS SIGNED ) + + 89 FROM tab1 AS cor0
----
-7
21
30

skipif mysql # not compatible
query I rowsort label-7178
SELECT - CAST ( + + col2 AS INTEGER ) + + 89 FROM tab1 AS cor0
----
-7
21
30

query I rowsort
SELECT DISTINCT + - col1 + - + col1 FROM tab0 WHERE + - 55 IS NULL
----

query I rowsort
SELECT 44 * 66 + 14 AS col1 FROM tab1
----
2918
2918
2918

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7182
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) + 84 + - - col1 + - col1 + col0 + 70 * - 44 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7182
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + 84 + - - col1 + - col1 + col0 + 70 * - 44 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 30 + - col2 FROM tab2
----
-10
-28
7

query I rowsort
SELECT - 21 * col0 FROM tab1 WHERE - col2 > 49
----

query I rowsort
SELECT ALL + 95 AS col1 FROM tab1 WHERE - col0 BETWEEN - - 65 * col2 / 90 / + + 89 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + MIN( ALL ( col1 ) ) * + SUM( - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + MIN ( ALL ( col1 ) ) * + SUM ( - col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7188
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / col0 - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7188
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / col0 - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7189
SELECT * FROM tab0 cor0 WHERE - CAST( + col2 AS DECIMAL ) / + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7189
SELECT * FROM tab0 cor0 WHERE - CAST ( + col2 AS REAL ) / + - col1 IS NULL
----

query I rowsort
SELECT col0 + - 35 * - col0 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7191
SELECT 39 DIV - + col0 + CAST( - 35 AS SIGNED ) FROM tab2 AS cor0
----
-35
-35
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL + MAX( DISTINCT + + col1 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + MAX ( DISTINCT + + col1 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT - - col1 * + col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + + 94 AS col0 FROM tab0 AS cor0
----
94
94
94

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

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

query I rowsort
SELECT 22 * + col0 FROM tab1
----
1122
1870
2002

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

skipif mysql # not compatible
query I rowsort label-7197
SELECT MAX ( + - 10 ) FROM tab1 AS cor0
----
-10

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7200
SELECT + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 WHERE col0 / col1 + + 55 NOT BETWEEN - col1 AND + 13 + col2
----

skipif mysql # not compatible
query I rowsort label-7200
SELECT + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1 WHERE col0 / col1 + + 55 NOT BETWEEN - col1 AND + 13 + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7202
SELECT ( + 50 ) * + 72 FROM tab1 WHERE NOT ( NULL ) < ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7202
SELECT ( + 50 ) * + 72 FROM tab1 WHERE NOT ( NULL ) < ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT + 34 + - COUNT( * ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + 34 + - COUNT ( * ) FROM tab2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT DISTINCT 42 + - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT 42 + - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL + ( + 10 ) * - COUNT( * ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + ( + 10 ) * - COUNT ( * ) AS col0 FROM tab2
----
-30

query III rowsort
SELECT * FROM tab2 WHERE NOT 87 + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + MAX( 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-7207
SELECT + MAX ( 95 ) FROM tab2
----
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT col2 + + CAST( - col1 AS SIGNED ) * + 11 FROM tab0
----
-221
-844
88

skipif mysql # not compatible
query I rowsort label-7209
SELECT col2 + + CAST ( - col1 AS INTEGER ) * + 11 FROM tab0
----
-221
-844
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( + col1 + - 53 ) = ( + 48 * col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( + col1 + - 53 ) = ( + 48 * col1 )
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT col0 * - CAST( - col2 AS SIGNED ) + - 34 FROM tab0
----
671
836
9569

skipif mysql # not compatible
query I rowsort label-7212
SELECT col0 * - CAST ( - col2 AS INTEGER ) + - 34 FROM tab0
----
671
836
9569

query I rowsort
SELECT ALL + col0 - - col1 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE 8 >= NULL
----

query I rowsort
SELECT col1 + 12 * + 60 FROM tab1
----
725
734
767

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 84 ) + 44 col0 FROM tab1
----
-40
-40
-40

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

query I rowsort
SELECT DISTINCT 79 - - 59 AS col2 FROM tab0 AS cor0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL SUM( col1 ) - 16 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL SUM ( col1 ) - 16 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT - SUM( - col1 ) * - 3 col0 FROM tab2
----
-585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7222
SELECT - SUM ( - col1 ) * - 3 col0 FROM tab2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - 66 * + COUNT( * ) AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-7223
SELECT - 66 * + COUNT ( * ) AS col0 FROM tab2
----
-198

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

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

query I rowsort
SELECT - 99 - 65 * 4 AS col0 FROM tab0
----
-359
-359
-359

query I rowsort
SELECT col2 * - 39 - 71 FROM tab0
----
-1904
-3932
-461

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT DISTINCT + MAX( col0 ) + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT + MAX ( col0 ) + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT ALL ( 24 ) FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - - col1 * 69 AS col1 FROM tab1 AS cor0
----
3243
345
966

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE ( + col0 + + 94 ) >= col1 + - col1
----
10
47
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7234
SELECT - + CAST ( - 63 AS INTEGER ) FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT 77 AS col0 FROM tab0 AS cor0 WHERE NOT ( 29 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + 82 < ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT COUNT( * ) * - + MAX( DISTINCT + 10 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-7238
SELECT COUNT ( * ) * - + MAX ( DISTINCT + 10 ) FROM tab2
----
-30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT 42 DIV + 51 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT 42 / + 51 * col1 FROM tab2
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - + 0 NOT BETWEEN ( 68 * col1 ) AND ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT 20 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7244
SELECT 20 / - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( col0 * - 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE ( col2 ) BETWEEN ( + col2 ) AND + 40
----

query I rowsort
SELECT - 50 + + + col1 AS col0 FROM tab0 AS cor0
----
-29
-49
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( col2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + - SUM ( DISTINCT - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT col0 * + 15 * - 51 + - col1 + - col1 FROM tab1 AS cor0
----
-39043
-65035
-69709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT + - col2 + - CAST( 38 AS SIGNED ) FROM tab0 AS cor0
----
-137
-48
-85

skipif mysql # not compatible
query I rowsort label-7251
SELECT + - col2 + - CAST ( 38 AS INTEGER ) FROM tab0 AS cor0
----
-137
-48
-85

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT + ( ( col2 ) ) / col0 <= ( + 71 - 90 )
----
-10
-47
-99

query II rowsort
SELECT + + 12, + 62 * - col2 AS col1 FROM tab2 AS cor0
----
12
-1426
12
-2480
12
-3596

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

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / - 55 * MAX ( col1 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT - col0 DIV + + 5 AS col2 FROM tab0
----
-17
-19
-3

skipif mysql # not compatible
query I rowsort label-7255
SELECT - col0 / + + 5 AS col2 FROM tab0
----
-17
-19
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT - SUM( DISTINCT - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - SUM ( DISTINCT - col1 ) FROM tab0
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL - COUNT( * ) + 82 col0 FROM tab0
----
79

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

query I rowsort
SELECT - + 54 - + col1 + + - col2 FROM tab2 AS cor0
----
-128
-171
-179

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

skipif mysql # not compatible
query I rowsort label-7260
SELECT - 52 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT DISTINCT + 94 FROM tab1 WHERE NOT + CAST( + col2 AS SIGNED ) IS NULL
----
94

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT + 94 FROM tab1 WHERE NOT + CAST ( + col2 AS INTEGER ) IS NULL
----
94

query I rowsort
SELECT ( + 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

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

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

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

query I rowsort
SELECT - - 95 * + col0 * col0 FROM tab0 AS cor0
----
21375
719055
893855

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + - col0 + + col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + - 96 AS col1 FROM tab1
----
-4896
-8160
-8736

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT ( ( + col0 ) NOT IN ( 42 ) ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( col1 + - col2 + + col0 * + 75 ) IN ( + 64 ) )
----

query I rowsort
SELECT - 81 * ( - col0 ) FROM tab1
----
4131
6885
7371

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL <> 64
----

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

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

query I rowsort
SELECT + + 44 FROM tab0 cor0
----
44
44
44

query I rowsort
SELECT - col1 + - 77 AS col0 FROM tab1 AS cor0
----
-124
-82
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 95 * - ( + ( - 57 ) ) col0 FROM tab2 AS cor0
----
-5338
-5348
-5364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> - + 24 * 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 * col2 AS col0, col2 + + - col2 FROM tab0 AS cor0
----
-705
0
-870
0
-9603
0

query II rowsort
SELECT ALL + 66 + + 59, col0 FROM tab1 AS cor0
----
125
51
125
85
125
91

query I rowsort
SELECT ALL - col2 * + 87 + - col0 FROM tab0 cor0
----
-4104
-8710
-957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT DISTINCT - 92 + + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-115
-132
-150

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT - 92 + + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-115
-132
-150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT 60 * 37 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7287
SELECT DISTINCT - col0 * - col2 AS col1, 60 DIV col2 FROM tab2 AS cor0
----
1058
2
2560
1
4350
1

skipif mysql # not compatible
query II rowsort label-7287
SELECT DISTINCT - col0 * - col2 AS col1, 60 / col2 FROM tab2 AS cor0
----
1058
2
2560
1
4350
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL + col0 * - - 61 * - 64 - - col1 + - CAST( + - 62 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-179471
-249717
-292671

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + col0 * - - 61 * - 64 - - col1 + - CAST ( + - 62 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-179471
-249717
-292671

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

query II rowsort
SELECT DISTINCT ( + 90 ) + + - 80 AS col2, 23 FROM tab1
----
10
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT COUNT( * ) * 31 + - 36 + + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
234

skipif mysql # not compatible
query I rowsort label-7292
SELECT COUNT ( * ) * 31 + - 36 + + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
234

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - MAX( DISTINCT - + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7294
SELECT - MAX ( DISTINCT - + col2 ) FROM tab2
----
23

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL COUNT ( * ) / + 18 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - - AVG ( DISTINCT - col1 ) AS col0 FROM tab0 WHERE - 20 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT CAST( 41 AS SIGNED ) * + + col2 * 88 FROM tab1
----
212872
245344
346368

skipif mysql # not compatible
query I rowsort label-7300
SELECT CAST ( 41 AS INTEGER ) * + + col2 * 88 FROM tab1
----
212872
245344
346368

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - - col2 IN ( + + 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT IN ( - - col1, + col1, + 58 * - 37 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 = + + 72 ) )
----

query I rowsort
SELECT + - col0 * + - col2 * + col0 FROM tab1 AS cor0
----
249696
426275
563108

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 7 col2 FROM tab1
----
103
66
75

query I rowsort
SELECT ALL + col1 + + + 68 FROM tab1
----
115
73
82

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

query I rowsort
SELECT - - col0 + ( 37 ) - - 63 * + 46 AS col2 FROM tab0 AS cor0
----
2950
3022
3032

query I rowsort
SELECT DISTINCT - + 31 * + 20 AS col0 FROM tab1 AS cor0
----
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 70 col0, - 22 AS col1 FROM tab1 AS cor0
----
-70
-22
-70
-22
-70
-22

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL MIN( ALL + ( col1 ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL MIN ( ALL + ( col1 ) ) AS col2 FROM tab2
----
51

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

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

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

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

query I rowsort
SELECT - col2 * + 40 AS col1 FROM tab2 AS cor0
----
-1600
-2320
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT DISTINCT + 45 DIV - col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT + 45 / - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT + 96 * + - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
21792

skipif mysql # not compatible
query I rowsort label-7320
SELECT + 96 * + - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
21792

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 / - ( + col2 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT - 52 DIV + - 20 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7323
SELECT - 52 / + - 20 FROM tab1 AS cor0
----
2
2
2

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7325
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 NOT BETWEEN CAST( - - 57 AS DECIMAL ) - - - 25 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7325
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 NOT BETWEEN CAST ( - - 57 AS REAL ) - - - 25 AND NULL
----

query II rowsort
SELECT ALL col0 AS col0, col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( + + col1 * - - 10 * - + 26 )
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7327
SELECT DISTINCT + + 51 col0, - MAX( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
51
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7327
SELECT DISTINCT + + 51 col0, - MAX ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
51
51

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

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

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

query I rowsort
SELECT ALL - 69 FROM tab0 WHERE col1 * - + col2 IS NOT NULL
----
-69
-69
-69

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

query I rowsort
SELECT - + col2 + - + 46 FROM tab0 cor0 WHERE - 70 + - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT + 78 + col2 DIV col2 * - + col2 * - - col0 FROM tab1 AS cor0
----
-4818
-4937
-6110

skipif mysql # not compatible
query I rowsort label-7333
SELECT + 78 + col2 / col2 * - + col2 * - - col0 FROM tab1 AS cor0
----
-4818
-4937
-6110

query I rowsort
SELECT col2 + + - 98 AS col0 FROM tab1 AS cor0
----
-2
-30
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT 9 DIV - - 58 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT 9 / - - 58 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 12 * - 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-984

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT DISTINCT CAST( - 9 AS SIGNED ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT CAST ( - 9 AS INTEGER ) AS col1 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 19 = - - col2
----

query I rowsort
SELECT - - col0 - col2 AS col2 FROM tab2 cor0
----
17
23
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 12 + col1 + - 74 + + col1 * - 80 >= - col0
----

query I rowsort
SELECT col1 - + ( + col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-37
-44
-80

query I rowsort
SELECT - col2 + - 92 * col1 AS col1 FROM tab2
----
-4715
-6222
-7124

query I rowsort
SELECT ALL col1 * + + col0 - + + col0 FROM tab0
----
0
1200
1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT DISTINCT - SUM( ALL - CAST( - 64 AS SIGNED ) ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - SUM ( ALL - CAST ( - 64 AS INTEGER ) ) FROM tab2
----
-192

query I rowsort
SELECT - ( col1 ) + - 64 AS col2 FROM tab2
----
-115
-131
-141

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - + 84
----

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

query I rowsort
SELECT + ( + + ( - 13 ) ) * - col2 FROM tab0
----
1287
130
611

query I rowsort
SELECT + col1 * - 22 * - - col2 FROM tab1
----
-29568
-6490
-70312

query II rowsort
SELECT col1, col1 * 91 AS col2 FROM tab1
----
14
1274
47
4277
5
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT - 94 / - SUM( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 94 / - SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 11 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
11
11
11

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

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT + col1 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT + + 80 AS col1 FROM tab0 cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, 59 FROM tab0 AS cor0
----
1
59
21
59
81
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE + + 18 * CAST( + col0 AS SIGNED ) * - col2 BETWEEN + + col2 AND ( - 4 )
----

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE + + 18 * CAST ( + col0 AS INTEGER ) * - col2 BETWEEN + + col2 AND ( - 4 )
----

query I rowsort
SELECT ALL + - col0 * + col1 * - col2 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - 99
----

query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT col0 * - col1 + - + 29 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4306
-454
-743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * + + 95 col0 FROM tab2 AS cor0
----
5225

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + + MAX( DISTINCT - - col1 ) * - + 84 FROM tab0 cor0
----
-6804

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + + MAX ( DISTINCT - - col1 ) * - + 84 FROM tab0 cor0
----
-6804

query I rowsort
SELECT DISTINCT col2 * col1 + + + col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT ( + 31 ) FROM tab1 AS cor0 WHERE - col0 IN ( + col2 )
----

query I rowsort
SELECT - 74 * + - col0 + col1 - + + col1 + + 91 - col2 AS col2 FROM tab2 cor0
----
3472
4787
5583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT 24 DIV - + 25 + - + MIN( - 45 ) col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7367
SELECT 24 / - + 25 + - + MIN ( - 45 ) col2 FROM tab2 AS cor0
----
45

query I rowsort
SELECT col1 * - - col1 * col2 + - + col2 FROM tab2
----
237120
260304
59800

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 35 * + - ( - col1 ) FROM tab2
----
1785
2345
2695

query I rowsort
SELECT col2 * - - 73 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT ALL 99 * + + 65 * + + ( 26 ) + col2 FROM tab0
----
167320
167357
167409

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL NOT IN ( + col1, - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL COUNT( * ) + + ( - COUNT( * ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL COUNT ( * ) + + ( - COUNT ( * ) ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT + ( - ( + COUNT( DISTINCT col1 ) ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + ( - ( + COUNT ( DISTINCT col1 ) ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT + MAX( ALL - 13 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT + MAX ( ALL - 13 ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + + col1 * - ( col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND - 58
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * - col0 NOT BETWEEN + 43 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + col0 ) / - col1 FROM tab2 cor0 WHERE - 5 IS NULL
----

query I rowsort
SELECT DISTINCT - 40 - - col1 FROM tab0 AS cor0
----
-19
-39
41

query I rowsort
SELECT + ( - col2 ) * - 76 AS col2 FROM tab1 AS cor0
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT DISTINCT - COUNT( + col0 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7384
SELECT DISTINCT - COUNT ( + col0 ) col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL ( - SUM( + 87 ) ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL ( - SUM ( + 87 ) ) FROM tab0
----
-261

query II rowsort
SELECT DISTINCT col1, - col2 * - ( - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
-99
21
-210
81
-3807

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND - 48
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7389
SELECT + 50 AS col1, SUM( CAST( + - 97 AS DECIMAL ) ) - - - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 * - + col0 IS NOT NULL
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7389
SELECT + 50 AS col1, SUM ( CAST ( + - 97 AS REAL ) ) - - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 * - + col0 IS NOT NULL
----
50
NULL

query II rowsort
SELECT + 25, - ( + col1 ) AS col2 FROM tab0
----
25
-1
25
-21
25
-81

query I rowsort
SELECT + 22 * + 83 * - + col1 AS col1 FROM tab1
----
-25564
-85822
-9130

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + - SUM( - + col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7392
SELECT + - SUM ( - + col2 ) col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - ( 5 ) FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + col0 * - - col0 + + 24 FROM tab2 AS cor0
----
2140
4120
5649

query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 * + col1 * + col1 + - + 84 FROM tab1
----
14
-10080
47
-201103
5
-2209

query I rowsort
SELECT + - 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + ( 54 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
51
67
77

query II rowsort
SELECT + col2 AS col2, col0 * - col1 AS col0 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT + - 15 * - MAX( DISTINCT + - 59 ) FROM tab2 cor0
----
-885

skipif mysql # not compatible
query I rowsort label-7400
SELECT + - 15 * - MAX ( DISTINCT + - 59 ) FROM tab2 cor0
----
-885

query II rowsort
SELECT ALL - + col0, + ( 45 ) + - ( - - 4 ) + + + 35 AS col2 FROM tab1 AS cor0
----
-51
76
-85
76
-91
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - + SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7402
SELECT - + SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
199

query II rowsort
SELECT + col0, + 32 FROM tab1 AS cor0
----
51
32
85
32
91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + 11 * + + COUNT( * ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + 11 * + + COUNT ( * ) AS col0 FROM tab0
----
33

query I rowsort
SELECT ALL - col0 + + - 8 FROM tab2
----
-54
-72
-83

query I rowsort
SELECT col0 + + col1 - + + col2 AS col1 FROM tab2
----
101
74
84

query I rowsort
SELECT DISTINCT + col2 + + - 33 AS col1 FROM tab0
----
-23
14
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT ( col2 ) FROM tab1 WHERE + col0 NOT BETWEEN + + col0 + CAST( NULL AS SIGNED ) AND 45 * col1
----

skipif mysql # not compatible
query I rowsort label-7408
SELECT ( col2 ) FROM tab1 WHERE + col0 NOT BETWEEN + + col0 + CAST ( NULL AS INTEGER ) AND 45 * col1
----

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 AS cor0 WHERE 44 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND + col0 * + col0 * - col0
----

query I rowsort
SELECT DISTINCT - col2 + + - 29 AS col2 FROM tab2 AS cor0
----
-52
-69
-87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - 92 AND ( - col0 * - col1 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE col2 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT 94 * + - COUNT( * ) AS col2 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT 94 * + - COUNT ( * ) AS col2 FROM tab1
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7415
SELECT CAST( + col0 AS SIGNED ) - + col0 AS col1, col0 AS col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-7415
SELECT CAST ( + col0 AS INTEGER ) - + col0 AS col1, col0 AS col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT + + 35 * 38 - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT + + 35 * 38 - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 67 AS col2, - 34 + - + col0 AS col0 FROM tab1 AS cor0
----
67
-119
67
-125
67
-85

query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 95 * - ( + - col0 ) + - 7 >= - - col2
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7419
SELECT DISTINCT + 82, COUNT( * ) AS col1 FROM tab1 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-7419
SELECT DISTINCT + 82, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL MAX( ALL - 71 ) FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL MAX ( ALL - 71 ) FROM tab1 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - COUNT( col1 ) col0 FROM tab1 AS cor0 WHERE NULL = + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7421
SELECT ALL - COUNT ( col1 ) col0 FROM tab1 AS cor0 WHERE NULL = + col0
----
0

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 > + col2
----
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT 38 * - col2 AS col2 FROM tab1
----
-2242
-2584
-3648

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 92, 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT - MIN( col2 ) DIV - + COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - MIN ( col2 ) / - + COUNT ( * ) FROM tab1
----
19

query I rowsort
SELECT col0 * + 45 AS col0 FROM tab2
----
2070
2880
3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT DISTINCT - MAX( CAST( col1 AS SIGNED ) ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - MAX ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT - + CAST( + 59 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT - col2 <> - - 80
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7429
SELECT - + CAST ( + 59 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT - col2 <> - - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT + - ( - ( + COUNT( * ) ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT + - ( - ( + COUNT ( * ) ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
71

query I rowsort
SELECT ALL + - 5 + col1 AS col0 FROM tab0 AS cor0
----
-4
16
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL + - COUNT( col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL + - COUNT ( col2 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL - - MAX( - + 6 ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7434
SELECT ALL - - MAX ( - + 6 ) col0 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 < + + 62 * - col2
----

query I rowsort
SELECT - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col1 * - 46 FROM tab0 AS cor0
----
3726
46
966

query I rowsort
SELECT DISTINCT + 70 * + 84 FROM tab0 AS cor0
----
5880

query I rowsort
SELECT 32 + + col1 AS col2 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT MIN( DISTINCT - col0 ) AS col0 FROM tab2 WHERE + - 70 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT MIN ( DISTINCT - col0 ) AS col0 FROM tab2 WHERE + - 70 IS NULL
----
NULL

query I rowsort
SELECT + - col1 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND - col2
----

query II rowsort
SELECT - col0 / + col2, col1 * - - col2 + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) * - col0 + - col0 + - - col1 FROM tab2
----
-1053
-2547
-4358

query I rowsort
SELECT ALL + 50 + + - col1 FROM tab2
----
-1
-17
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT - col2 DIV + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - col2 / + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - - 59 <> NULL
----

query I rowsort
SELECT - + col0 + + + 97 + - 35 AS col1 FROM tab0 cor0
----
-25
-35
47

query II rowsort
SELECT + col0 * - - col1, col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT DISTINCT - - MAX( - 7 ) + COUNT( * ), 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2
31

skipif mysql # not compatible
query II rowsort label-7451
SELECT DISTINCT - - MAX ( - 7 ) + COUNT ( * ), 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT col1 DIV 3 + + + col2 DIV - col2 col1 FROM tab0 AS cor0
----
-1
26
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7452
SELECT col1 / 3 + + + col2 / - col2 col1 FROM tab0 AS cor0
----
-1
26
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 58 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT SUM( col0 ) AS col1, 12 - + COUNT( * ) FROM tab0 AS cor0
----
199
9

skipif mysql # not compatible
query II rowsort label-7454
SELECT SUM ( col0 ) AS col1, 12 - + COUNT ( * ) FROM tab0 AS cor0
----
199
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT + COUNT( * ) * + 96 col0 FROM tab2 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-7455
SELECT DISTINCT + COUNT ( * ) * + 96 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + AVG ( - 93 ) col0 FROM tab1 WHERE - + 91 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - MAX( DISTINCT + col2 ) - - 32 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-7457
SELECT - MAX ( DISTINCT + col2 ) - - 32 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT DISTINCT col2 DIV - + 31 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT col2 / - + 31 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7459
SELECT CAST( NULL AS DECIMAL ) - + col1 FROM tab0 WHERE NOT + col0 * + ( col2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT CAST ( NULL AS REAL ) - + col1 FROM tab0 WHERE NOT + col0 * + ( col2 ) IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - 37, + col1 AS col0 FROM tab2
----
-37
51
-37
67
-37
77

query I rowsort
SELECT ALL - ( - 3 ) AS col0 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT + ( + - CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7462
SELECT + ( + - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT - SUM( + 23 ) * + - 4 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-7463
SELECT - SUM ( + 23 ) * + - 4 FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT + COUNT( ALL + + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 92 + col1 NOT IN ( col2 - - 47, + 67, - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT + COUNT ( ALL + + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 92 + col1 NOT IN ( col2 - - 47, + 67, - 88 )
----
0

query II rowsort
SELECT DISTINCT + ( col2 ), - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT SUM( + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT SUM ( + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL - + ( - col1 ) * - col2 + + 36 AS col1 FROM tab1 WHERE NULL <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - + col0 + + - col1 col2 FROM tab0
----
-4110
-4560
-786

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT MIN( DISTINCT + - col1 ) + + ( + COUNT( + - col0 ) ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-7469
SELECT MIN ( DISTINCT + - col1 ) + + ( + COUNT ( + - col0 ) ) FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT - col0 + - + 72 + - col2 * col2 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-205536
-314595
-884859

skipif mysql # not compatible
query I rowsort label-7470
SELECT - col0 + - + 72 + - col2 * col2 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-205536
-314595
-884859

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > + ( - - col2 )
----

query I rowsort
SELECT DISTINCT + + 68 * + 99 FROM tab0 AS cor0 WHERE NOT col0 + + col0 IN ( col0, + col2 + + + ( + + col0 ) )
----
6732

query I rowsort
SELECT ALL + - 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT ALL COUNT( * ) + - - 9 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) > NULL
----
9

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL COUNT ( * ) + - - 9 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) > NULL
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 * + col0 + 62 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 56 ) NOT BETWEEN + col1 + 26 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col0 / 78 < - + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN - - 11 AND NULL
----

query II rowsort
SELECT 38, col0 FROM tab1 AS cor0
----
38
51
38
85
38
91

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + + 52 / + - col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL MAX( ALL + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL MAX ( ALL + + col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL COUNT( * ) * + ( + 53 ) AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL COUNT ( * ) * + ( + 53 ) AS col1 FROM tab1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT - - col1 FROM tab2 WHERE NOT NULL >= - ( CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7483
SELECT - - col1 FROM tab2 WHERE NOT NULL >= - ( CAST ( - col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL - MIN( + - ( + col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - MIN ( + - ( + col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col2 + + col1 - 14 AS col1 FROM tab2
----
103
111
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + col1 + - + 0 + 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 40 * - 45 AS col2 FROM tab1
----
1704
1732
1741

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( NULL <> - 33 ) )
----

query I rowsort
SELECT DISTINCT col1 + - + 54 - - - 2 + col1 * - + col2 AS col2 FROM tab0
----
-154
-245
-3782

query I rowsort
SELECT DISTINCT - col2 + 26 FROM tab2 cor0
----
-14
-32
3

query I rowsort
SELECT ALL - - 10 + - 45 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT ALL + 19 DIV + MAX( ALL + col0 ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7493
SELECT ALL + 19 / + MAX ( ALL + col0 ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + col0 + - 23 * col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-108120
-110007
-134043

query II rowsort
SELECT + - 47, 11 + - + col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-47
-48
-47
-57
-47
-85

query I rowsort
SELECT ALL ( - 55 ) AS col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT 37 * - 85 FROM tab1 AS cor0
----
-3145
-3145
-3145

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * - 65 * + + col1 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + + ( + col0 ) FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT ALL + col2 + - col2 AS col1, - 82 FROM tab0 cor0
----
0
-82
0
-82
0
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7501
SELECT ALL + 51 * CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - COUNT( * ) + + 77 * + - 32 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + 51 * CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - COUNT ( * ) + + 77 * + - 32 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 26 * + 11 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - - - 16 col0 FROM tab0 WHERE NOT + col2 IS NULL
----
-15
5
65

query I rowsort
SELECT + ( + 30 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - ( + + ( - col2 ) ) * - 95 <= + + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + SUM( - - 38 ) AS col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7506
SELECT + SUM ( - - 38 ) AS col0 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT - COUNT( - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT - COUNT ( - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7508
SELECT + - 61 * COUNT( * ) DIV MAX( ALL + 10 ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7508
SELECT + - 61 * COUNT ( * ) / MAX ( ALL + 10 ) FROM tab1 cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT ALL - - COUNT( ALL + ( - 59 ) ) AS col2, 48 AS col0 FROM tab2 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-7510
SELECT ALL - - COUNT ( ALL + ( - 59 ) ) AS col2, 48 AS col0 FROM tab2 AS cor0
----
3
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT - - 15 AS col2, + ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
15
-3

skipif mysql # not compatible
query II rowsort label-7511
SELECT - - 15 AS col2, + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
15
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT DISTINCT + col1 * - CAST( + + 29 AS SIGNED ) * - 16 AS col2 FROM tab2 cor0
----
23664
31088
35728

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + col1 * - CAST ( + + 29 AS INTEGER ) * - 16 AS col2 FROM tab2 cor0
----
23664
31088
35728

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL - - COUNT( * ) * COUNT( * ) FROM tab0 WHERE + + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL - - COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE + + col0 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * - 91 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 65 * - + col0 FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT SUM( - + 21 ), + COUNT( * ) AS col2 FROM tab0
----
-63
3

skipif mysql # not compatible
query II rowsort label-7516
SELECT SUM ( - + 21 ), + COUNT ( * ) AS col2 FROM tab0
----
-63
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT COUNT( - + 8 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7517
SELECT COUNT ( - + 8 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL col0 + - 9 + - + 78 AS col1 FROM tab0
----
-72
0
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT + col1 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT + col1 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT + 16 + + + COUNT( ALL - + 0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + 16 + + + COUNT ( ALL - + 0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
25

query I rowsort
SELECT + - 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - 19 - - 3 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT 26 - - - 78 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT 29 + + - 53 DIV COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7526
SELECT 29 + + - 53 / COUNT ( * ) FROM tab1
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 * + col2 col2 FROM tab0
----
423
891
90

query I rowsort
SELECT ALL + 32 + + col2 AS col1 FROM tab2
----
55
72
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7529
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( + col0 AS SIGNED ) < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7529
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( + col0 AS INTEGER ) < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 92, + 52 + - + col1 + + 88 * col0 AS col1 FROM tab1
----
92
4526
92
7527
92
8013

query I rowsort
SELECT ALL col0 + 9 * + - col1 * - 15 + + + col2 FROM tab2
----
10499
6954
9178

query II rowsort
SELECT - + 98, 48 * + col2 FROM tab2 WHERE NOT - 72 * col0 * col1 IS NOT NULL
----

query I rowsort
SELECT - 98 * - ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col1, - 80 FROM tab0 cor0
----
1
-80
21
-80
81
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT + 86 - COUNT( * ) col2, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
77
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7535
SELECT + 86 - COUNT ( * ) col2, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
77
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + - + col2 col0 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT DISTINCT + + col1 + - - col2 + + col1 AS col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7538
SELECT * FROM tab0 WHERE NOT + col2 + + + CAST( 13 AS SIGNED ) NOT BETWEEN + 22 + + + 8 AND + col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-7538
SELECT * FROM tab0 WHERE NOT + col2 + + + CAST ( 13 AS INTEGER ) NOT BETWEEN + 22 + + + 8 AND + col1
----
15
81
47

query I rowsort
SELECT ALL - col0 * + col2 / - + col0 FROM tab2 WHERE - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + col1 NOT BETWEEN + - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) * + + 94 + ( 13 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + 94 + ( 13 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT + col2 DIV 68 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7542
SELECT + col2 / 68 AS col2 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col0 AND + - col0
----

query I rowsort
SELECT ALL - + 52 * 40 * - col1 + + 42 * col2 * 36 * - col2 * + col2 * - col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - ( - col0 ) / - + 21 / + - 10 + + col0
----

query I rowsort
SELECT DISTINCT col2 + - ( col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT - - 56 + col0 + - 41 FROM tab1 cor0
----
100
106
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + COUNT( * ) + + 9 AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7547
SELECT + COUNT ( * ) + + 9 AS col2 FROM tab0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7548
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + CAST ( NULL AS REAL ) + - col1 * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT AVG ( + col1 ) - COUNT( * ) AS col0 FROM tab2 WHERE 50 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT AVG ( + col1 ) - COUNT ( * ) AS col0 FROM tab2 WHERE 50 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7551
SELECT + CAST( col0 AS SIGNED ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-7551
SELECT + CAST ( col0 AS INTEGER ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7552
SELECT + + COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7552
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT + col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - - 50, + col2 FROM tab0 AS cor0
----
50
10
50
47
50
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT COUNT( ALL ( + 27 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7555
SELECT COUNT ( ALL ( + 27 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + - MIN( - 49 ) FROM tab2 AS cor0 WHERE col0 BETWEEN ( - col1 ) AND + col0
----
49

skipif mysql # not compatible
query I rowsort label-7556
SELECT + - MIN ( - 49 ) FROM tab2 AS cor0 WHERE col0 BETWEEN ( - col1 ) AND + col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT ALL COUNT( * ) - + COUNT( * ) AS col1, + COUNT( * ) FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-7557
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7558
SELECT ALL - COUNT( * ) DIV ( + + 96 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - COUNT ( * ) / ( + + 96 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7559
SELECT ALL * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) * 5 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-7559
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) * 5 IS NULL )
----

query II rowsort
SELECT ALL - col1, 6 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
6
-67
6
-77
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + MIN( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

query I rowsort
SELECT - 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT col2 * + col2 + - col2 + + col0 * + col2 DIV col2 FROM tab0 AS cor0
----
177
2177
9799

skipif mysql # not compatible
query I rowsort label-7563
SELECT col2 * + col2 + - col2 + + col0 * + col2 / col2 FROM tab0 AS cor0
----
177
2177
9799

query I rowsort
SELECT - 67 + col2 FROM tab0 AS cor0 WHERE NOT col1 * - + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col0 + 73 FROM tab1 cor0
----
-352
-4204
-641

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT + col0 DIV + - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT + col0 / + - col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT col2 * + + 95 FROM tab2 AS cor0
----
2185
3800
5510

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + col0 BETWEEN + col1 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - 6 AS col1 FROM tab2 AS cor0
----
276
384
450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 90 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL + 39 + + SUM( - 3 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + 39 + + SUM ( - 3 ) FROM tab1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL + col2 + ( CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + col2 + ( CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT col0 + CAST( NULL AS SIGNED ) + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7573
SELECT col0 + CAST ( NULL AS INTEGER ) + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + - col2 * + col0 col0 FROM tab2
----
-1029
-2531
-4321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - + col2 * + CAST( - col2 AS SIGNED ) + - 61 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - + col2 * + CAST ( - col2 AS INTEGER ) + - 61 IS NULL
----

query I rowsort
SELECT col2 + 86 + - + col0 AS col1 FROM tab1
----
131
60
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT col0 - - col1 DIV col2 DIV - 88 AS col0 FROM tab2 AS cor0 WHERE 80 > col2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7577
SELECT col0 - - col1 / col2 / - 88 AS col0 FROM tab2 AS cor0 WHERE 80 > col2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 74 NOT BETWEEN NULL AND + - col2
----

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 74 NOT BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT + - CAST( - col2 AS SIGNED ) + - + 13 AS col2 FROM tab2 AS cor0
----
10
27
45

skipif mysql # not compatible
query I rowsort label-7579
SELECT + - CAST ( - col2 AS INTEGER ) + - + 13 AS col2 FROM tab2 AS cor0
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - 38 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - 38 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
114

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN col2 AND - + col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + 62 IS NOT NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT DISTINCT + 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7584
SELECT DISTINCT CAST( - - 12 AS SIGNED ) DIV + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT CAST ( - - 12 AS INTEGER ) / + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7585
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) <> - 8
----

skipif mysql # not compatible
query III rowsort label-7585
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) <> - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT DISTINCT + col0 - + col1 + + 85 DIV + 98 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT + col0 - + col1 + + 85 / + 98 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 74 - col1 * + + col0 FROM tab0 cor0
----
-1289
-171
-1901

query I rowsort
SELECT DISTINCT - + col1 * - 21 * + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2512566
7070175
7968576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 25 col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL - col2 DIV + 59 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - col2 / + 59 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT 88 DIV + - 53 col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7592
SELECT DISTINCT 88 / + - 53 col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT ( + col2 ) DIV + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7593
SELECT ( + col2 ) / + col1 AS col1 FROM tab0
----
0
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col1 col0 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT + col2 * + 2 * col0 FROM tab2
----
2116
5120
8700

query I rowsort
SELECT - col0 * - ( col0 ) AS col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - 87 * - - 52 AS col2 FROM tab0
----
-4524

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7598
SELECT ALL - - 60 * + - 23 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS DECIMAL ) <> - 20 + 25
----

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - - 60 * + - 23 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS REAL ) <> - 20 + 25
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT ALL + COUNT( * ) DIV + 6 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + COUNT ( * ) / + 6 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, + 58 col0 FROM tab1 AS cor0
----
14
58
47
58
5
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT NULL NOT BETWEEN - col1 AND NULL ) )
----

query I rowsort
SELECT DISTINCT + col2 * - 18 * + 92 AS col0 FROM tab0
----
-163944
-16560
-77832

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + + col0, col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 4 * col0 + + + col1 BETWEEN + col2 AND + 90 / + col0 * 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 41 + + - col1 AS col2 FROM tab1 AS cor0
----
-46
-55
-88

query I rowsort
SELECT - - col1 * col2 * + col0 + - + 43 FROM tab1 cor0
----
25032
290793
68501

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT + 53 DIV + + 25 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7608
SELECT + 53 / + + 25 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7609
SELECT + COUNT( * ), 74 DIV - + MAX( DISTINCT - col0 ) col2 FROM tab0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7609
SELECT + COUNT ( * ), 74 / - + MAX ( DISTINCT - col0 ) col2 FROM tab0
----
3
4

query III rowsort
SELECT * FROM tab0 WHERE - col1 < - + col0 - 31 * + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col1 / + + col1 / + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL + COUNT( * ) + ( + + ( COUNT( ALL - 73 ) ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL + COUNT ( * ) + ( + + ( COUNT ( ALL - 73 ) ) ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 14 + - + 36 >= - col1 + - + col2
----

query I rowsort
SELECT 51 + + 30 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL - COUNT( * ) * 64 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL - COUNT ( * ) * 64 FROM tab1
----
-192

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + + 68 AS col0 FROM tab1
----
127
136
164

query I rowsort
SELECT - 17 FROM tab0 WHERE NULL IS NULL
----
-17
-17
-17

query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + col1 * - col1 + 93 FROM tab1 WHERE NOT ( - ( col1 ) ) NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT DISTINCT COUNT( - col1 ) DIV + 70 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT COUNT ( - col1 ) / + 70 AS col1 FROM tab0
----
0

query I rowsort
SELECT - 75 AS col2 FROM tab2 WHERE NOT col2 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL + COUNT( DISTINCT - 98 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + COUNT ( DISTINCT - 98 ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + col2 col0 FROM tab2
----
100
117
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT col2 + 31 DIV col1 AS col1 FROM tab1
----
65
68
98

skipif mysql # not compatible
query I rowsort label-7626
SELECT col2 + 31 / col1 AS col1 FROM tab1
----
65
68
98

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 57 * - col2 + 2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 93 + + 92 AS col1 FROM tab0 WHERE ( 90 * + 96 ) <> ( + 58 )
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT MAX( ALL - col0 ) FROM tab2 WHERE NULL NOT IN ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT MAX ( ALL - col0 ) FROM tab2 WHERE NULL NOT IN ( 27 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN + col1 AND + 5 + - 71
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7632
SELECT + 95 + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7632
SELECT + 95 + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT + CAST( - 9 AS SIGNED ) FROM tab2
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-7633
SELECT + CAST ( - 9 AS INTEGER ) FROM tab2
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab1 WHERE 64 IN ( col1 + + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT - 99 * - col0 AS col0 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT 88 DIV COUNT( * ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7637
SELECT 88 / COUNT ( * ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT ( - 78 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT + COUNT( * ) + 28 col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7639
SELECT + COUNT ( * ) + 28 col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT COUNT( DISTINCT 60 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT COUNT ( DISTINCT 60 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL - + col1 + + ( - col1 + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - SUM( ALL 21 ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7642
SELECT - SUM ( ALL 21 ) FROM tab2 AS cor0
----
-63

query I rowsort
SELECT - - 52 * col2 FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT MIN( col1 ) DIV 60 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7644
SELECT MIN ( col1 ) / 60 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT DISTINCT + 62 DIV ( - col0 ) FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + 62 / ( - col0 ) FROM tab1 cor0
----
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 90 IN ( + 87 + + 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT DISTINCT col2 DIV - 18 FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT col2 / - 18 FROM tab1 AS cor0
----
-3
-5

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN 79 AND - col1 + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - ( - ( - 12 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + - 79 * - COUNT( * ) col1 FROM tab0 cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT + - 79 * - COUNT ( * ) col1 FROM tab0 cor0
----
237

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + + ( - 2 + + col0 ) <> col1 / col1
----

query I rowsort
SELECT - 99 * - col1 + 2 AS col1 FROM tab2
----
5051
6635
7625

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT 82 DIV + col0 + + 96 FROM tab0
----
101
96
96

skipif mysql # not compatible
query I rowsort label-7653
SELECT 82 / + col0 + + 96 FROM tab0
----
101
96
96

query I rowsort
SELECT - col2 + + 41 FROM tab0
----
-58
-6
31

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - 44 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT col0 * - - col1 + - col1 DIV col1 col1 FROM tab1
----
424
4276
713

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7656
SELECT col0 * - - col1 + - col1 / col1 col1 FROM tab1
----
424
4276
713

query I rowsort
SELECT - 89 + + 86 + col0 FROM tab2
----
43
61
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT - SUM( ALL 6 ) FROM tab2 WHERE col2 IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT - SUM ( ALL 6 ) FROM tab2 WHERE col2 IS NOT NULL
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + + 27 + + col0 * + 34 col2 FROM tab2
----
1685
2297
2671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT DISTINCT 16 + - col1 * - CAST( col1 / col1 AS SIGNED ) AS col1 FROM tab2
----
67
83
93

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT 16 + - col1 * - CAST ( col1 / col1 AS INTEGER ) AS col1 FROM tab2
----
67
83
93

query I rowsort
SELECT DISTINCT col2 + + col2 * - col1 AS col1 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL - col1 + + 4 FROM tab2
----
-47
-63
-73

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - MIN( col2 ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-7665
SELECT - MIN ( col2 ) + - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col0 FROM tab0 AS cor0 WHERE ( 91 * + col2 ) IS NOT NULL
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( + 57 / col0 )
----

query I rowsort
SELECT ALL 25 * col0 - + 56 AS col1 FROM tab1 WHERE NOT ( - 8 * col1 ) IS NULL
----
1219
2069
2219

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT - col1 DIV + ( + col0 ) col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7670
SELECT - col1 / + ( + col0 ) col1 FROM tab1
----
0
0
0

query II rowsort
SELECT col0, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 62 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 * - col2 NOT IN ( col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - col0 ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - - 86 FROM tab1 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT MAX( + + 79 ) col2 FROM tab0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT MAX ( + + 79 ) col2 FROM tab0
----
79

query I rowsort
SELECT + 42 * - - 87 * + + 90 * col0 FROM tab1
----
16771860
27953100
29926260

query I rowsort
SELECT ALL - col0 * - col1 * + col2 AS col0 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT SUM( ALL col0 ) * - 78 FROM tab2
----
-14430

skipif mysql # not compatible
query I rowsort label-7680
SELECT SUM ( ALL col0 ) * - 78 FROM tab2
----
-14430

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT col2 * - col0 * - - 30 * col1 DIV - col1 col1 FROM tab0
----
21150
26100
288090

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7681
SELECT col2 * - col0 * - - 30 * col1 / - col1 col1 FROM tab0
----
21150
26100
288090

query I rowsort
SELECT DISTINCT 62 * - col0 * - col2 + + 38 FROM tab2 AS cor0
----
158758
269738
65634

query I rowsort
SELECT + col1 * - col0 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN ( + - col2 * + col1 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT - - COUNT( DISTINCT + 13 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7684
SELECT - - COUNT ( DISTINCT + 13 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT - col0 AS col2, 25 * - - col2 FROM tab2
----
-46
575
-64
1000
-75
1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + CAST( + - ( 26 ) AS SIGNED ) ) BETWEEN - 84 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + CAST ( + - ( 26 ) AS INTEGER ) ) BETWEEN - 84 AND NULL
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE ( + - 49 + + 45 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT - - SUM( ALL - - col0 ) * - + ( 75 ) + - - 80 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT - - SUM ( ALL - - col0 ) * - + ( 75 ) + - - 80 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col0, + col2 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + + col0 * + 83 + - col1 - + 61 + 59 FROM tab1 AS cor0
----
4217
7048
7504

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE + col1 * - 81 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - - SUM( ALL - - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7693
SELECT - - SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - col1 + - ( + col0 ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT - + 82 / + + COUNT( * ) + CAST( NULL AS SIGNED ) * 14 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT - + 82 / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * 14 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 77 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + 48 * - COUNT( DISTINCT - 16 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-7697
SELECT + 48 * - COUNT ( DISTINCT - 16 ) FROM tab0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 72, + 45 * 56 col2 FROM tab2
----
-72
2520
-72
2520
-72
2520

query II rowsort
SELECT col1, + ( - col0 ) AS col1 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL ( 35 ) FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----

query II rowsort
SELECT col0 AS col1, - 31 AS col2 FROM tab0
----
15
-31
87
-31
97
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL + SUM( + 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + SUM ( + 91 ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT ALL - 9 - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL - 9 - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
-9

query I rowsort
SELECT ALL 63 + - - 9 FROM tab2 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL 70 + + SUM( + + col0 ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL 70 + + SUM ( + + col0 ) FROM tab1 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT - COUNT( col2 ) FROM tab1 cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7708
SELECT - COUNT ( col2 ) FROM tab1 cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL + - ( + - ( - + 52 ) ) - + col2 + col0 * - col1 FROM tab0 AS cor0
----
-1314
-1889
-248

query I rowsort
SELECT ALL + 12 - - 77 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT - COUNT( * ) * - ( - 77 ) FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - COUNT ( * ) * - ( - 77 ) FROM tab1 AS cor0
----
-231

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - - 86 BETWEEN - 30 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7713
SELECT * FROM tab2 WHERE NOT ( + col0 * + + 97 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7713
SELECT * FROM tab2 WHERE NOT ( + col0 * + + 97 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT - MIN( ALL - + 36 ) col2 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7714
SELECT DISTINCT - MIN ( ALL - + 36 ) col2 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + - COUNT( ALL col1 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND - 81
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + - COUNT ( ALL col1 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND - 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT - - col2 DIV + + col1 AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7716
SELECT - - col2 / + + col1 AS col0 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7717
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 BETWEEN + 23 AND ( CAST( NULL AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7717
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 BETWEEN + 23 AND ( CAST ( NULL AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + + MAX( ALL - 5 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7718
SELECT + + MAX ( ALL - 5 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT - - MAX( - 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7719
SELECT - - MAX ( - 51 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - + ( - col2 ) IN ( - 28 * - - col2 / - col1 + col0 / - col2 )
----

query I rowsort
SELECT 72 * 66 AS col2 FROM tab1
----
4752
4752
4752

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 + - - col1 + + col2 + + 96 IN ( + col2 + - col2 + + 19 * + 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT 78 + + - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-7723
SELECT 78 + + - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7725
SELECT ALL 90 + COUNT( * ) + - COUNT( * ) DIV + 21 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL 90 + COUNT ( * ) + - COUNT ( * ) / + 21 FROM tab2
----
93

query I rowsort
SELECT 72 AS col1 FROM tab2 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1012
2496
4275

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / 44 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT - 93 - 26 FROM tab1 AS cor0
----
-119
-119
-119

query I rowsort
SELECT DISTINCT 25 + col2 - col1 * col2 * - 61 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 - + 85 FROM tab0 cor0
----
-132
-184
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL SUM( ALL + col2 ) + + ( 49 ) AS col0 FROM tab2
----
170

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL SUM ( ALL + col2 ) + + ( 49 ) AS col0 FROM tab2
----
170

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - col1 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT MIN( + + col1 ) + - - 35 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-7734
SELECT MIN ( + + col1 ) + - - 35 FROM tab1
----
40

query I rowsort
SELECT - col0 + + col2 * + ( 29 ) AS col0 FROM tab2
----
1096
1607
621

query I rowsort
SELECT DISTINCT - 71 * + 73 + col1 FROM tab1
----
-5136
-5169
-5178

query I rowsort
SELECT ALL col2 + ( + ( + col2 ) ) AS col2 FROM tab0
----
198
20
94

query II rowsort
SELECT - - col0 AS col1, 99 * - 10 FROM tab2 AS cor0
----
46
-990
64
-990
75
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL + - 20 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL + - 20 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL CAST( NULL AS SIGNED ) * - + 24 * - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CAST ( NULL AS INTEGER ) * - + 24 * - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL + - SUM( - - 14 ) AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL + - SUM ( - - 14 ) AS col1 FROM tab2 AS cor0
----
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT + COUNT( * ) * + 30 AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-7743
SELECT + COUNT ( * ) * + 30 AS col1 FROM tab2
----
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + col1 / - - ( + col2 )
----

query I rowsort
SELECT - ( + 76 ) AS col2 FROM tab1 AS cor0
----
-76
-76
-76

query II rowsort
SELECT + 21 AS col1, col0 - - + 45 AS col2 FROM tab2 cor0
----
21
109
21
120
21
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL + 24 + - + MAX( + 16 ) col0 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7747
SELECT ALL + 24 + - + MAX ( + 16 ) col0 FROM tab0
----
8

query I rowsort
SELECT ALL col2 * + 17 * 41 * - 1 FROM tab1
----
-41123
-47396
-66912

query I rowsort
SELECT DISTINCT - 82 * ( col1 ) AS col1 FROM tab0 WHERE ( NULL ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + 43 + ( - + col0 ) col2 FROM tab0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT col1 / + col1 * 49 / - 17 + - ( + 13 ) * - col2 * + - 21 / + col0 + - + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7751
SELECT DISTINCT col1 / + col1 * 49 / - 17 + - ( + 13 ) * - col2 * + - 21 / + col0 + - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - 18 AS col2 FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - col1 + 81 AS col1 FROM tab0
----
0
60
80

query I rowsort
SELECT ALL col2 * + col1 * col1 * 45 FROM tab2
----
10672200
11716290
2692035

query I rowsort
SELECT DISTINCT col2 * - col2 - + 84 FROM tab1 AS cor0
----
-3565
-4708
-9300

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - MAX( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - MAX ( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL col1 * - col1 * - col2 FROM tab0 AS cor0
----
308367
4410
99

query II rowsort
SELECT DISTINCT + + col1, - 75 - + col1 FROM tab2 AS cor0
----
51
-126
67
-142
77
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 + 72 + + + col1 col1 FROM tab1
----
102
60
69

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * - + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT ( + col2 ) - + 88 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ( + col2 ) - + 88 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - 18 + + 42 AS col2 FROM tab2
----
-1164
-1344
-876

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + - 47 * - col0 + - 73
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT ALL - col1 DIV + ( 50 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7766
SELECT ALL - col1 / + ( 50 ) col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL SUM( + 73 ) AS col0 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL SUM ( + 73 ) AS col0 FROM tab2 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT - COUNT( * ) * + + 28 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - COUNT ( * ) * + + 28 FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + SUM( DISTINCT 78 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-7769
SELECT + SUM ( DISTINCT 78 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + 13 * - - MIN( ALL - col0 ) FROM tab0
----
-1261

skipif mysql # not compatible
query I rowsort label-7770
SELECT + 13 * - - MIN ( ALL - col0 ) FROM tab0
----
-1261

query I rowsort
SELECT - 54 * + col1 AS col2 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 <= col1
----
3

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 <= col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT - 24 DIV col1 FROM tab0 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT - 24 / col1 FROM tab0 AS cor0
----
-1
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - - COUNT( * ) * - 49 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - - COUNT ( * ) * - 49 FROM tab0 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL - - COUNT( * ) * + MAX( - col2 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL - - COUNT ( * ) * + MAX ( - col2 ) FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT DISTINCT - 54 DIV - col1 AS col0 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT - 54 / - col1 AS col0 FROM tab2 cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col2 ) + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7779
SELECT * FROM tab1 WHERE NOT - 56 + + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7779
SELECT * FROM tab1 WHERE NOT - 56 + + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL SUM( + ( + + col1 ) ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL SUM ( + ( + + col1 ) ) AS col0 FROM tab0
----
103

query II rowsort
SELECT DISTINCT col1, - 78 FROM tab0
----
1
-78
21
-78
81
-78

query II rowsort
SELECT DISTINCT + 87 * + col2, + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 13 * - + col2 FROM tab2
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT COUNT( * ) + + 81 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT COUNT ( * ) + + 81 FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT - 97 + + + col2 DIV 93 AS col1 FROM tab2
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 97 + + + col2 / 93 AS col1 FROM tab2
----
-97
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7786
SELECT DISTINCT MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0, 46 + + + 68 FROM tab2 AS cor0
----
NULL
114

skipif mysql # not compatible
query II rowsort label-7786
SELECT DISTINCT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0, 46 + + + 68 FROM tab2 AS cor0
----
NULL
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 53 + + 27 col1 FROM tab2 AS cor0
----
126
144
155

query I rowsort
SELECT DISTINCT - + ( - 44 ) FROM tab1 AS cor0
----
44

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT ( + + 38 ) + col0 AS col1 FROM tab0
----
125
135
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT + col1 DIV + 89 - + + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7793
SELECT + col1 / + 89 - + + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col2 ) IS NULL AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 84 + - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
105
165
85

query I rowsort
SELECT ALL + + col1 * + ( - 41 ) + - col1 - + - 61 * - col0 AS col1 FROM tab0 AS cor0
----
-4317
-5959
-6189

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - + col0 * - - col2 - + col2 IS NOT NULL AND NOT ( NOT ( NOT + col0 * + ( - col2 ) * col1 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - - 58 + col2 col0 FROM tab2 AS cor0
----
104
138
174

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7800
SELECT * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) / + - col1 + + - col2 / - 43 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7800
SELECT * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) / + - col1 + + - col2 / - 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT ALL - col0 - + 42 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - col0 - + 42 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( col0 ), col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT - 9 * + col1 * + col2 + - + col1 FROM tab1 AS cor0
----
-12110
-2660
-28811

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT + 40 * - - COUNT( - + col1 ) col1 FROM tab1 cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7804
SELECT DISTINCT + 40 * - - COUNT ( - + col1 ) col1 FROM tab1 cor0
----
120

query II rowsort
SELECT ALL 42 AS col2, - col2 FROM tab0 AS cor0
----
42
-10
42
-47
42
-99

query I rowsort
SELECT + 80 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query II rowsort
SELECT ALL - col1 AS col0, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - + ( + MIN( ALL + 37 ) ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - + ( + MIN ( ALL + 37 ) ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ALL - col1 * - - 14 AS col0 FROM tab2
----
-1078
-714
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT - 57 * + COUNT( * ) AS col2 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT - 57 * + COUNT ( * ) AS col2 FROM tab1
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT ALL + col0 DIV + + col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + col0 / + + col2 AS col0 FROM tab0
----
0
0
8

query I rowsort
SELECT ALL - 45 * 39 AS col2 FROM tab0 AS cor0
----
-1755
-1755
-1755

query II rowsort
SELECT + + ( - col1 ) + - 71 * col2 AS col0, col1 FROM tab1 AS cor0
----
-4194
5
-4875
47
-6830
14

query I rowsort
SELECT 87 * col0 + - - col0 AS col1 FROM tab1 cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT 82 + + 57 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-7815
SELECT 82 + + 57 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
136

query I rowsort
SELECT + 87 * 93 AS col0 FROM tab0 AS cor0
----
8091
8091
8091

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT DISTINCT 11 DIV - col2 + col0 DIV - - col2 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT 11 / - col2 + col0 / - - col2 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + 28 + + col2 AS col1 FROM tab2
----
51
68
86

query I rowsort
SELECT - 88 * - col0 AS col0 FROM tab1
----
4488
7480
8008

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT ALL + col2 + - col1 DIV col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + col2 + - col1 / col1 FROM tab2
----
22
39
57

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - 24
----

query I rowsort
SELECT DISTINCT col0 * 30 + - + col0 + col0 * + + col1 FROM tab2
----
3680
6784
7200

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - - 20 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 52 * - 72 + + 76, - 65 )
----

query I rowsort
SELECT ALL - + ( - + 61 ) AS col1 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT COUNT( * ) * + COUNT( * ) + 23 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7826
SELECT COUNT ( * ) * + COUNT ( * ) + 23 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL MIN( DISTINCT + col1 ) - - + 6 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL MIN ( DISTINCT + col1 ) - - + 6 FROM tab1 cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7828
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7828
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - col2 * - col2 >= - 40 + + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL + COUNT( * ) + + + MIN( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + COUNT ( * ) + + + MIN ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
62

query II rowsort
SELECT ALL + + col2 AS col2, + 1 FROM tab0 AS cor0
----
10
1
47
1
99
1

query II rowsort
SELECT - col0 AS col0, 38 - - col0 + col0 + - col0 * + col2 FROM tab0 AS cor0
----
-15
-637
-87
-658
-97
-9371

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 <> 4 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7834
SELECT DISTINCT - ( col2 ), col2 * - col1 / col0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-7834
SELECT DISTINCT - ( col2 ), col2 * - col1 / col0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT + + COUNT( * ) DIV - + 96 AS col0 FROM tab0 WHERE NOT + col1 * + 58 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7835
SELECT + + COUNT ( * ) / - + 96 AS col0 FROM tab0 WHERE NOT + col1 * + 58 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7837
SELECT ALL + 1 * + COUNT( * ) DIV + + ( + SUM( + - col1 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + 1 * + COUNT ( * ) / + + ( + SUM ( + - col1 ) ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 + + 38 IN ( - - 14, 78, col0 )
----

query II rowsort
SELECT ( - col0 ) * - - col1 AS col2, - 32 * - 92 FROM tab2 cor0
----
-2346
2944
-4928
2944
-5025
2944

query I rowsort
SELECT ALL - + 52 + - col1 FROM tab1 AS cor0
----
-57
-66
-99

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1
21
81

query II rowsort
SELECT + + col0 AS col1, - col2 * col1 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
46
-26979
64
-123200
75
-225388

query II rowsort
SELECT DISTINCT 63 AS col1, col1 FROM tab2 AS cor0
----
63
51
63
67
63
77

query I rowsort
SELECT ALL - col2 + - col2 FROM tab2 AS cor0 WHERE NOT + 54 - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT + - col0 DIV + col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-7845
SELECT + - col0 / + col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-15
-194
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 + - - col0 - ( - - 91 ) col0 FROM tab2
----
41
59
70

query I rowsort
SELECT 95 + - - col2 FROM tab2
----
118
135
153

query II rowsort
SELECT col0 + + col1 + - col2 * + col0 AS col0, + col2 FROM tab0
----
-609
47
-762
10
-9505
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 8 BETWEEN - col1 + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( + 61 * + col2 / - col2 )
----

query I rowsort
SELECT - 90 - 12 FROM tab0
----
-102
-102
-102

query I rowsort
SELECT + col1 - + 76 FROM tab1
----
-29
-62
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT ALL - 95 DIV col0 * + - 7 col0 FROM tab1
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7853
SELECT ALL - 95 / col0 * + - 7 col0 FROM tab1
----
7
7
7

query II rowsort
SELECT ALL 76, ( col0 ) AS col1 FROM tab2 cor0
----
76
46
76
64
76
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT DISTINCT - CAST( + + 99 AS SIGNED ) FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT - CAST ( + + 99 AS INTEGER ) FROM tab2 cor0
----
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0 - - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT 56 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 76 * + + 15 FROM tab0 cor0
----
1140
1140
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT DISTINCT - MIN( - 16 ) AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - MIN ( - 16 ) AS col1 FROM tab2
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, 95 col2 FROM tab1
----
51
95
85
95
91
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 50, + ( + col2 ) col1 FROM tab0
----
50
10
50
47
50
99

query I rowsort
SELECT - col2 * + + 97 FROM tab0
----
-4559
-9603
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 3 col2 FROM tab2
----
46
3
64
3
75
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab2 WHERE NOT - col2 * ( + - col1 ) * 81 IS NOT NULL
----

query I rowsort
SELECT ALL - 8 * - 0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col1 / - col2 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( col0, + 42 * col1 / 7 * - 3 - - col0 + - col1 + - col2, + + col1 * + 51 * - + 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT - - CAST( 1 AS SIGNED ) * + - 1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7868
SELECT - - CAST ( 1 AS INTEGER ) * + - 1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT 88 * CAST( 13 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 11b26ca3a9d94ac1acd6ecdcdcf0bc30

skipif mysql # not compatible
query I rowsort label-7869
SELECT 88 * CAST ( 13 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 11b26ca3a9d94ac1acd6ecdcdcf0bc30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col2 FROM tab1 AS cor0
----
90

query II rowsort
SELECT ALL col0 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 + + 10 - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-5
-77
-87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT - AVG ( + col2 ) * MAX( ALL col2 ) AS col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN col0 / - - 63 AND - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT - AVG ( + col2 ) * MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN col0 / - - 63 AND - - 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7875
SELECT + 43 DIV COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7875
SELECT + 43 / COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT + - ( - col1 ) DIV 8 + - col1 AS col0 FROM tab1 AS cor0
----
-13
-42
-5

skipif mysql # not compatible
query I rowsort label-7876
SELECT + - ( - col1 ) / 8 + - col1 AS col0 FROM tab1 AS cor0
----
-13
-42
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 35 * col2 col0 FROM tab1
----
121835
161840
322560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 * + col0 col0 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT - - col2 FROM tab2 WHERE - 34 <= NULL
----

query I rowsort
SELECT 64 * - + col2 FROM tab0
----
-3008
-6336
-640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 72 col0 FROM tab0
----
1080
6264
6984

query II rowsort
SELECT ALL + 52 + col2 - + + col1 AS col0, col1 FROM tab2
----
15
77
24
51
43
67

query I rowsort
SELECT ALL 1 * + 12 FROM tab0
----
12
12
12

query II rowsort
SELECT - 70 + col2 * - - 91 / + 37 / ( + col0 ), + 66 / - + 64 + - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2 WHERE - col2 + + + col0 >= 72 / + 11 + - - 90
----

query I rowsort
SELECT ALL col2 * col0 + - 84 FROM tab1
----
4812
4931
6104

query I rowsort
SELECT ALL 69 + - col0 AS col0 FROM tab0
----
-18
-28
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col1 * - 54 FROM tab1 AS cor0
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + SUM( - - col1 ) + SUM( - col2 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7890
SELECT + SUM ( - - col1 ) + SUM ( - col2 ) FROM tab2 AS cor0
----
74

query I rowsort
SELECT + col0 + + col0 + + + 45 * + 16 AS col1 FROM tab2 cor0
----
812
848
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7892
SELECT DISTINCT 53 * + 91 - + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4826

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT 53 * + 91 - + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4826

query I rowsort
SELECT DISTINCT + 61 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + col0 / - 11 / - - col2 * + col1 * - col2 * - 25 * col1 )
----

query I rowsort
SELECT + 83 * + 52 * + 99 FROM tab0 AS cor0
----
427284
427284
427284

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE 59 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + + col2 * - + col2 + col0 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT + 23 * + 26 + - - ( + - 48 ) * COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
454

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT + 23 * + 26 + - - ( + - 48 ) * COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
454

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT col2 DIV - - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT col2 / - - col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + COUNT( DISTINCT + 6 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7900
SELECT + COUNT ( DISTINCT + 6 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT - col0 + - CAST( - - col2 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-7901
SELECT - col0 + - CAST ( - - col2 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-144
-147
-159

query II rowsort
SELECT ALL col0 AS col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 47 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT - SUM( DISTINCT + 45 ) DIV - - SUM( - 85 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT - SUM ( DISTINCT + 45 ) / - - SUM ( - 85 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col1 * - 93 * - + col0 FROM tab1
----
-39525
-397761
-66402

query I rowsort
SELECT + 27 * - col1 AS col1 FROM tab2
----
-1377
-1809
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT MAX( DISTINCT - 50 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7908
SELECT MAX ( DISTINCT - 50 ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT DISTINCT + + col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL col0 + - 70 FROM tab0 AS cor0
----
-55
17
27

query II rowsort
SELECT - col1, - 54 AS col1 FROM tab1 cor0
----
-14
-54
-47
-54
-5
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT - col1 * - 37 + - + ( + col1 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT - col1 * - 37 + - + ( + col1 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT - 36, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-36
3

skipif mysql # not compatible
query II rowsort label-7913
SELECT - 36, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-36
3

query I rowsort
SELECT 91 + - col0 + - 14 - - - col2 FROM tab2 AS cor0
----
-27
-56
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 78 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + 74 * + ( 49 ) FROM tab0
----
3626
3626
3626

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab1 WHERE - + col1 = NULL
----

query I rowsort
SELECT col0 + - ( col2 ) AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL col2 + + - col0 + ( - + 87 ) AS col2 FROM tab0
----
-164
-55
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7921
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) + col1 / - 41 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) + col1 / - 41 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 - + col2 + - 4 * + col0 AS col1 FROM tab1
----
-204
-340
-364

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 91 * + 37 = NULL
----

query I rowsort
SELECT ALL - 54 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 0 )
----

query I rowsort
SELECT + col1 * 13 AS col0 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT 35 * + - col1 AS col0 FROM tab2 AS cor0
----
-1785
-2345
-2695

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7927
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 77 + + CAST( NULL AS SIGNED ) AND - ( + - 52 )
----

skipif mysql # not compatible
query III rowsort label-7927
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 77 + + CAST ( NULL AS INTEGER ) AND - ( + - 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL - 6 * COUNT( * ) * + 70 AS col2 FROM tab1 cor0
----
-1260

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - 6 * COUNT ( * ) * + 70 AS col2 FROM tab1 cor0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + - SUM( + - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7929
SELECT + - SUM ( + - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT col2 DIV - - 41 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT col2 / - - 41 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col0 * - 53 AS col1 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL + ( - ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + ( - ( COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + MAX( - ( col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7933
SELECT + MAX ( - ( col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT ( + + MAX( - col2 ) ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT ( + + MAX ( - col2 ) ) AS col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7935
SELECT ALL * FROM tab2 WHERE + + col2 * ( 71 ) / - - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7935
SELECT ALL * FROM tab2 WHERE + + col2 * ( 71 ) / - - CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT + + col0 AS col1, - col0 * + + 0 + - col2 * - 63 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + + 12
----

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, - col2 AS col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT 67 DIV + + col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-15
-30
-84

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT 67 / + + col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-15
-30
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT + col0 + CAST( NULL AS SIGNED ) * + + 76 + + - 62 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT + col0 + CAST ( NULL AS INTEGER ) * + + 76 + + - 62 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT MIN( - - col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT MIN ( - - col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL - 93 + + 94 + - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - 93 + + 94 + - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + ( + 10 ), col0, - ( 55 ), + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 81
----

query I rowsort
SELECT ALL col2 * - 35 AS col1 FROM tab1
----
-2065
-2380
-3360

query II rowsort
SELECT DISTINCT - - col1 + 18 AS col1, + col0 AS col2 FROM tab0 WHERE NOT - col1 + - + 18 IS NOT NULL
----

query I rowsort
SELECT col1 * + - 57 - + col0 FROM tab0
----
-1284
-154
-4632

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - COUNT( * ) - 55 + 15 + + MAX( - col2 ) AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7949
SELECT - COUNT ( * ) - 55 + 15 + + MAX ( - col2 ) AS col0 FROM tab0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT ALL col1 DIV + col1 - + col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL col1 / + col1 - + col0 FROM tab2
----
-45
-63
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 * col0 IN ( col2, - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - SUM( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT - SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 47 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col1 ) / + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT DISTINCT + + COUNT( * ) col1, 91 * + - 71 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
-6461

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7954
SELECT DISTINCT + + COUNT ( * ) col1, 91 * + - 71 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
-6461

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT DISTINCT + 20 * - + 65 AS col1, COUNT( * ) * 50 FROM tab1
----
-1300
150

skipif mysql # not compatible
query II rowsort label-7955
SELECT DISTINCT + 20 * - + 65 AS col1, COUNT ( * ) * 50 FROM tab1
----
-1300
150

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL < + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT - MIN( + col2 ), COUNT( * ) col0 FROM tab1 cor0
----
-59
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7957
SELECT - MIN ( + col2 ), COUNT ( * ) col0 FROM tab1 cor0
----
-59
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL + - COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + - COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < + ( col1 ) )
----

query I rowsort
SELECT + - 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT - MIN( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col1 col0 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT + 23 + - col2 FROM tab0
----
-24
-76
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + 26 * - 72 AS col2 FROM tab1
----
51
-1872
85
-1872
91
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT COUNT( * ) + 58 AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT COUNT ( * ) + 58 AS col2 FROM tab0
----
61

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ( COUNT( * ) ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7969
SELECT ( COUNT ( * ) ) + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT - 13 + COUNT( * ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-7970
SELECT - 13 + COUNT ( * ) FROM tab1
----
-10

query I rowsort
SELECT + col2 + - + 50 FROM tab0 AS cor0
----
-3
-40
49

query I rowsort
SELECT DISTINCT + 26 * col1 + - 84 + - 35 FROM tab2 AS cor0
----
1207
1623
1883

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7973
SELECT + - col0 + + CAST( 7 AS SIGNED ) + col0 + col0 - col0 * + col2 * col1, col1 FROM tab2 cor0
----
-197049
77
-291368
67
-53905
51

skipif mysql # not compatible
query II rowsort label-7973
SELECT + - col0 + + CAST ( 7 AS INTEGER ) + col0 + col0 - col0 * + col2 * col1, col1 FROM tab2 cor0
----
-197049
77
-291368
67
-53905
51

query I rowsort
SELECT DISTINCT - + ( - 60 ) AS col2 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT ALL - 96 AS col1, - 24 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-96
-72

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL - 96 AS col1, - 24 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-96
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT - CAST( CAST( SUM( + 25 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-225

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - CAST ( CAST ( SUM ( + 25 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-225

query I rowsort
SELECT - 39 + - - 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col0 >= + + 19 )
----
15
81
47

query I rowsort
SELECT col0 - - - ( - col1 ) - col0 AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT - - CAST( NULL AS SIGNED ) - + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT - - CAST ( NULL AS INTEGER ) - + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 99 * - col2 - - - 45 AS col2 FROM tab0 cor0
----
-1035
-4698
-9846

query I rowsort
SELECT + col2 + 35 AS col1 FROM tab1 WHERE + col2 = NULL
----

query II rowsort
SELECT + col1 + - col1 + + col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT + 64 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + 20 * COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 20 * COUNT ( * ) FROM tab0
----
60

query III rowsort
SELECT * FROM tab2 WHERE 46 = - 5 + + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT MIN( DISTINCT + - 59 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7987
SELECT MIN ( DISTINCT + - 59 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT 35 * + col2 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT + - CAST( + 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + - CAST ( + 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT - + 16 AS col1, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 16 <= - 36
----
-16
0

skipif mysql # not compatible
query II rowsort label-7990
SELECT - + 16 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 16 <= - 36
----
-16
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * col2 + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT - col0 * CAST( col0 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

skipif mysql # not compatible
query I rowsort label-7992
SELECT - col0 * CAST ( col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT COUNT( ALL 5 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7993
SELECT COUNT ( ALL 5 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT ( + col1 ) AS col1, - 21 AS col1 FROM tab0
----
1
-21
21
-21
81
-21

query I rowsort
SELECT ALL - 63 * 26 FROM tab0
----
-1638
-1638
-1638

query I rowsort
SELECT + 24 * col0 * - + col2 AS col1 FROM tab1
----
-117504
-120360
-148512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 + - col0 col2, + col2 + + 94 + - col1 FROM tab1
----
-48
176
-82
148
-88
115

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT MAX( col0 ) AS col2, MIN( - 22 ) + - + COUNT( + 52 ) col0 FROM tab2
----
75
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7998
SELECT MAX ( col0 ) AS col2, MIN ( - 22 ) + - + COUNT ( + 52 ) col0 FROM tab2
----
75
-25

query I rowsort
SELECT ALL - 87 + col1 AS col1 FROM tab2 cor0
----
-10
-20
-36

query I rowsort
SELECT - + col1 + + col2 * col1 FROM tab0 cor0
----
189
3726
98

query III rowsort
SELECT DISTINCT + col0 + - col2 / col0 * - 30 * - col1, ( - 92 ) + - col1 AS col2, + 16 FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 + col2 AND 60 * - - col1 * - col1 - - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT + ( CAST( + col2 AS SIGNED ) ) + - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT + ( CAST ( + col2 AS INTEGER ) ) + - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT ALL CAST( - - col0 AS SIGNED ) + 46 + - + col1 * + 92 + - + col1 * + col0 FROM tab2
----
-11068
-11902
-6946

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL CAST ( - - col0 AS INTEGER ) + 46 + - + col1 * + 92 + - + col1 * + col0 FROM tab2
----
-11068
-11902
-6946

query I rowsort
SELECT DISTINCT 10 + + col2 AS col2 FROM tab2
----
33
50
68

query I rowsort
SELECT DISTINCT + 57 + + - col0 AS col0 FROM tab1
----
-28
-34
6

query I rowsort
SELECT ALL + + 27 + - col0 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
1
4
72

query II rowsort
SELECT ALL col2, - 35 AS col1 FROM tab2 AS cor0
----
23
-35
40
-35
58
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - + COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8008
SELECT - + COUNT ( * ) col0 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT DISTINCT - col2 DIV + - col2 - - col1 AS col2 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - col2 / + - col2 - - col1 AS col2 FROM tab1 AS cor0
----
15
48
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 < - col2 + 53
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 19 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND - - 69
----

query II rowsort
SELECT ALL + 36 AS col1, - col0 * + + col1 + - col2 FROM tab2 AS cor0
----
36
-2369
36
-4968
36
-5083

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 3 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( - 22 ) AS col0 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + + 15 * + col2 AS col1 FROM tab0 AS cor0
----
1485
150
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col1 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - 94 / + + col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 50 col1 FROM tab2 cor0
----
50

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT COUNT( * ) + - ( + COUNT( * ) ) + - + MAX( 74 ) AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-8022
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) + - + MAX ( 74 ) AS col2 FROM tab0
----
-74

query I rowsort
SELECT DISTINCT + 34 + 39 AS col0 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT 70 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8024
SELECT 70 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT - COUNT( * ) * + 39 FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - COUNT ( * ) * + 39 FROM tab1 cor0
----
-117

query I rowsort
SELECT ALL + 63 FROM tab0 WHERE NOT + + 60 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col0 * 11 AS col0 FROM tab2
----
11638
28160
47850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT + - col2 + - - CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8029
SELECT + - col2 + - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-21
-54
-82

query II rowsort
SELECT ALL - - col0 * - col0 - - col0 AS col2, - 56 * + - col2 AS col2 FROM tab2 cor0
----
-2070
1288
-4032
2240
-5550
3248

query I rowsort
SELECT DISTINCT - col0 + - 29 / + ( + - col0 ) + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8032
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col2 >= NULL )
----

query II rowsort
SELECT - 71 AS col2, 97 FROM tab0
----
-71
97
-71
97
-71
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8035
SELECT CAST( NULL AS SIGNED ) * col1 * + - col1 AS col0, 97 AS col1 FROM tab0
----
NULL
97
NULL
97
NULL
97

skipif mysql # not compatible
query II rowsort label-8035
SELECT CAST ( NULL AS INTEGER ) * col1 * + - col1 AS col0, 97 AS col1 FROM tab0
----
NULL
97
NULL
97
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT 26 * - 70 * + COUNT( * ) FROM tab1
----
-5460

skipif mysql # not compatible
query I rowsort label-8036
SELECT 26 * - 70 * + COUNT ( * ) FROM tab1
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT + COUNT( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8037
SELECT + COUNT ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 77 FROM tab2 cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT ALL + col1 * - - col1 AS col2 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 WHERE ( + 56 + ( - 76 + ( 57 + - col2 ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> col1 / col1
----

query I rowsort
SELECT + 72 AS col1 FROM tab0 WHERE NOT NULL IN ( 93 )
----

query I rowsort
SELECT DISTINCT 53 - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + col2 * col2 ) BETWEEN col2 - - 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - COUNT( * ) * + COUNT( * ) - 71 AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-8045
SELECT - COUNT ( * ) * + COUNT ( * ) - 71 AS col1 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT - 51 * 39 - - MAX( ALL + 84 ) col2 FROM tab2
----
-1905

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8046
SELECT - 51 * 39 - - MAX ( ALL + 84 ) col2 FROM tab2
----
-1905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT + 34 * CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-8047
SELECT + 34 * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL + 38 * + COUNT( * ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL + 38 * + COUNT ( * ) FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ( 17 ) * 18 + - COUNT( * ) AS col0 FROM tab2
----
303

skipif mysql # not compatible
query I rowsort label-8049
SELECT ( 17 ) * 18 + - COUNT ( * ) AS col0 FROM tab2
----
303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * - col0 col0 FROM tab0
----
-5481
-6111
-945

query I rowsort
SELECT - 70 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT 1 * COUNT( - col2 * col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8052
SELECT 1 * COUNT ( - col2 * col0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( - col0 ) ) col1 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) * - SUM( ALL + 74 * + 41 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - SUM ( ALL + 74 * + 41 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT CAST( NULL AS SIGNED ) * 49 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT CAST ( NULL AS INTEGER ) * 49 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 69 * 69 FROM tab0
----
4762
4782
4842

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT MIN( ALL 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-8057
SELECT MIN ( ALL 91 ) FROM tab0
----
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col1 ) < ( col0 )
----

query I rowsort
SELECT 94 FROM tab2 WHERE NULL NOT BETWEEN - col2 AND 63
----

query I rowsort
SELECT 94 FROM tab1 WHERE + col0 IN ( 34 + col0 )
----

query I rowsort
SELECT ALL 62 * col2 AS col1 FROM tab0
----
2914
6138
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT - col1 + col1 * ( 20 * 41 + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT - col1 + col1 * ( 20 * 41 + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT MIN( DISTINCT - 9 ) FROM tab1 AS cor0 WHERE ( 15 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT MIN ( DISTINCT - 9 ) FROM tab1 AS cor0 WHERE ( 15 ) < NULL
----
NULL

query I rowsort
SELECT DISTINCT - 74 * - 35 - 95 FROM tab1 AS cor0
----
2495

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8067
SELECT ALL col0 * CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL col0 * CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE ( - col2 ) IN ( + col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT - 83 + + col2 * CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT - 83 + + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab0 WHERE ( - col0 * 86 ) > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT 52 * COUNT( * ) - + 44 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) > 30 / - col1
----
-44

skipif mysql # not compatible
query I rowsort label-8071
SELECT 52 * COUNT ( * ) - + 44 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) > 30 / - col1
----
-44

query I rowsort
SELECT DISTINCT + 69 * col1 AS col0 FROM tab1 AS cor0
----
3243
345
966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8073
SELECT COUNT( * ) * 31 AS col0 FROM tab0 cor0 WHERE NOT ( - CAST( - col2 AS DECIMAL ) ) NOT IN ( 84 )
----
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT COUNT ( * ) * 31 AS col0 FROM tab0 cor0 WHERE NOT ( - CAST ( - col2 AS REAL ) ) NOT IN ( 84 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8074
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col0 + + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8074
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col0 + + CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT + 17 * 10 FROM tab2 AS cor0
----
170
170
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT ( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT 97 * + COUNT( * ) AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-8077
SELECT 97 * + COUNT ( * ) AS col2 FROM tab1
----
291

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT CAST( NULL AS SIGNED ) * + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8079
SELECT CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + col0 FROM tab1 WHERE NOT - ( col2 ) IN ( col0 * col0 + col0 )
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT COUNT( * ) + 22 FROM tab1 cor0 WHERE NOT - 93 BETWEEN ( NULL ) AND NULL
----
22

skipif mysql # not compatible
query I rowsort label-8081
SELECT COUNT ( * ) + 22 FROM tab1 cor0 WHERE NOT - 93 BETWEEN ( NULL ) AND NULL
----
22

query I rowsort
SELECT ALL 98 * col2 * - col0 AS col1 FROM tab1 AS cor0
----
-479808
-491470
-606424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 60 col0 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT - - 86 DIV - ( ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8084
SELECT - - 86 / - ( ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + + COUNT( - col0 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8085
SELECT + + COUNT ( - col0 ) col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col1 col0 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT + + 53 * + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8087
SELECT + + 53 * + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
477

query I rowsort
SELECT DISTINCT col0 * col1 + + - col0 + - col1 FROM tab2
----
2249
4787
4883

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + + 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 39 * + col0 / + col0 + ( col0 + col2 ) ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT 95 * + + COUNT( * ) FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8092
SELECT 95 * + + COUNT ( * ) FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
3

query I rowsort
SELECT - - 75 * + + 71 + + + col2 FROM tab1 cor0
----
5384
5393
5421

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT - - MAX( DISTINCT + 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - - MAX ( DISTINCT + 29 ) FROM tab0 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query III rowsort label-8096
SELECT * FROM tab1 AS cor0 WHERE - 48 + col0 DIV + col1 NOT BETWEEN - 54 + - 80 DIV col1 AND ( - col1 ) OR NOT NULL BETWEEN - col2 - + col2 AND 53
----

skipif mysql # not compatible
query III rowsort label-8096
SELECT * FROM tab1 AS cor0 WHERE - 48 + col0 / + col1 NOT BETWEEN - 54 + - 80 / col1 AND ( - col1 ) OR NOT NULL BETWEEN - col2 - + col2 AND 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8097
SELECT SUM( + + CAST( - col0 AS SIGNED ) ) * 4 FROM tab0 AS cor0
----
-796

skipif mysql # not compatible
query I rowsort label-8097
SELECT SUM ( + + CAST ( - col0 AS INTEGER ) ) * 4 FROM tab0 AS cor0
----
-796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT CAST( + - ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT CAST ( + - ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 37 * + 76 BETWEEN - col1 + - col1 AND + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + ( col1 + col1 ) col2 FROM tab0 WHERE 50 BETWEEN + + 19 AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8100
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + ( col1 + col1 ) col2 FROM tab0 WHERE 50 BETWEEN + + 19 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8101
SELECT * FROM tab2 WHERE NULL >= ( col2 - + + col2 / CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8101
SELECT * FROM tab2 WHERE NULL >= ( col2 - + + col2 / CAST ( col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT + 75 + - + 19 + + col0 DIV col2 * + col1 - + 86 FROM tab1
----
-25
-30
17

skipif mysql # not compatible
query I rowsort label-8102
SELECT + 75 + - + 19 + + col0 / col2 * + col1 - + 86 FROM tab1
----
-25
-30
17

query I rowsort
SELECT - 93 + + ( - 67 ) + col0 * col2 FROM tab1
----
4736
4855
6028

query I rowsort
SELECT DISTINCT 71 FROM tab0 WHERE + + ( + col0 ) NOT IN ( 30 * 4 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + SUM( ALL 11 ) AS col0 FROM tab1 WHERE - col0 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT + SUM ( ALL 11 ) AS col0 FROM tab1 WHERE - col0 >= ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - 28 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT - + COUNT( col2 ) - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - + COUNT ( col2 ) - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL col1 - + ( - CAST( NULL AS SIGNED ) ) + col0 * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL col1 - + ( - CAST ( NULL AS INTEGER ) ) + col0 * col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8109
SELECT - - col0 * + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE 16 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT - - col0 * + CAST ( CAST ( NULL AS REAL ) AS REAL ) AS col0 FROM tab0 AS cor0 WHERE 16 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT - 60 FROM tab2 WHERE NULL < ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 60 FROM tab2 WHERE NULL < ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8111
SELECT ALL * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * + - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8111
SELECT ALL * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT - - SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT 56 DIV + + col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT 56 / + + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + 82 * + 32 AS col1 FROM tab0 AS cor0
----
2624
2624
2624

query I rowsort
SELECT DISTINCT + col1 * + + col2 AS col2 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT ALL - ( CAST( + COUNT( ALL col2 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - ( CAST ( + COUNT ( ALL col2 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 41 <= + - col2
----

query I rowsort
SELECT 39 FROM tab1 WHERE NOT - 60 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - MAX( ALL - + 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-8119
SELECT - MAX ( ALL - + 40 ) FROM tab1
----
40

query II rowsort
SELECT ALL + col1 * + col2, col1 * + col1 AS col0 FROM tab1
----
1344
196
295
25
3196
2209

query I rowsort
SELECT + 87 FROM tab0, tab1 cor0 WHERE 24 IS NOT NULL
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8122
SELECT - CAST( NULL AS SIGNED ) * CAST( - 36 AS DECIMAL ) * + col1 * + 55 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT - CAST ( NULL AS INTEGER ) * CAST ( - 36 AS REAL ) * + col1 * + 55 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL COUNT( + + col1 ) * - + 10 * - MAX( DISTINCT + 54 ) FROM tab1
----
1620

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL COUNT ( + + col1 ) * - + 10 * - MAX ( DISTINCT + 54 ) FROM tab1
----
1620

query II rowsort
SELECT ALL col1 * + col2, 41 AS col1 FROM tab0
----
210
41
3807
41
99
41

query I rowsort
SELECT + 32 * + 10 * - col1 FROM tab1
----
-15040
-1600
-4480

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT ALL COUNT( * ) AS col0, - ( + 4 ) AS col2 FROM tab2
----
3
-4

skipif mysql # not compatible
query II rowsort label-8127
SELECT ALL COUNT ( * ) AS col0, - ( + 4 ) AS col2 FROM tab2
----
3
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8128
SELECT - 18 AS col0, COUNT( * ) + - + ( + - COUNT( * ) ) + - + MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-18
7

skipif mysql # not compatible
query II rowsort label-8128
SELECT - 18 AS col0, COUNT ( * ) + - + ( + - COUNT ( * ) ) + - + MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-18
7

query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT BETWEEN - + 82 AND ( NULL )
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 - + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 + + 5 col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col1 IN ( + 16, col2 + + 98 )
----

query I rowsort
SELECT ALL + 98 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 22 * col0 + 58 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT + COUNT( * ) * + - 60 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT + COUNT ( * ) * + - 60 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT col0 * col2 + - CAST( - ( - + ( + + 41 ) ) AS SIGNED ) FROM tab0 AS cor0
----
664
829
9562

skipif mysql # not compatible
query I rowsort label-8136
SELECT col0 * col2 + - CAST ( - ( - + ( + + 41 ) ) AS INTEGER ) FROM tab0 AS cor0
----
664
829
9562

query I rowsort
SELECT - col2 * + - col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT + MIN( - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT + MIN ( - col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL 72 * - - MIN( DISTINCT 57 ) * + 76 FROM tab2
----
311904

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL 72 * - - MIN ( DISTINCT 57 ) * + 76 FROM tab2
----
311904

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT COUNT( * ) AS col1, 41 AS col0 FROM tab0
----
3
41

skipif mysql # not compatible
query II rowsort label-8140
SELECT COUNT ( * ) AS col1, 41 AS col0 FROM tab0
----
3
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - SUM( DISTINCT - + col2 ) AS col1 FROM tab1 WHERE ( + col0 ) NOT BETWEEN - 62 + - col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT - SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 WHERE ( + col0 ) NOT BETWEEN - 62 + - col2 AND col0
----
NULL

query II rowsort
SELECT ALL - 84 * + 10 * - 35 + + col2 AS col0, 62 AS col2 FROM tab2
----
29423
62
29440
62
29458
62

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN - - col1 AND col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - 76 - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - 76 - col1 IS NULL
----
0

query I rowsort
SELECT ALL col2 + + 7 AS col2 FROM tab1 AS cor0
----
103
66
75

query I rowsort
SELECT ALL 76 * + 41 FROM tab0, tab1 AS cor0
----
9 values hashing to 669b900defbbfdbb9b169e226668e922

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT DISTINCT - 12 DIV + 34 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - 12 / + 34 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 31 - + 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT + + MAX( ALL col2 ) col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8150
SELECT DISTINCT + + MAX ( ALL col2 ) col1 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - MAX( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8151
SELECT - MAX ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab0 cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT - - CAST( - 35 AS SIGNED ) FROM tab0 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-8153
SELECT - - CAST ( - 35 AS INTEGER ) FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - col1 * - 32 AS col1 FROM tab0
----
2592
32
672

query I rowsort
SELECT DISTINCT + col2 * + col0 * 67 + + + col2 - - col2 * - 30 * - - col0 FROM tab2
----
161008
39169
94760

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / - - col1 + + 80 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col1 - + - col2 - - col0 * 13 NOT IN ( 58 + 44 + + col1 + col2 / 57 * - col2 )
----

query I rowsort
SELECT DISTINCT ( + 4 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8162
SELECT + COUNT( * ) DIV 25 * ( COUNT( * ) ) + 99 - + - 9 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8162
SELECT + COUNT ( * ) / 25 * ( COUNT ( * ) ) + 99 - + - 9 FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL + 11 * 70 + + + 23 FROM tab0 AS cor0
----
793
793
793

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL <= + col0
----

query I rowsort
SELECT DISTINCT + 87 * - ( 91 ) FROM tab2
----
-7917

query I rowsort
SELECT - 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query II rowsort
SELECT DISTINCT - col1, 98 AS col1 FROM tab1
----
-14
98
-47
98
-5
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + - MIN( - 19 ) * 86 * 32 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
52288

skipif mysql # not compatible
query I rowsort label-8168
SELECT + - MIN ( - 19 ) * 86 * 32 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
52288

query I rowsort
SELECT DISTINCT col0 + - 22 + - + col1 + - + col1 AS col1 FROM tab2
----
-112
-78
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + + 77 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - - col2 - - col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < NULL AND NOT + col0 IS NULL
----

query I rowsort
SELECT col1 * - col2 + - + col2 + + - 51 AS col2 FROM tab1 AS cor0
----
-1491
-3315
-405

query I rowsort
SELECT DISTINCT col2 - - col1 * + - col0 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT - + col0 + - col2 + - 96 AS col1 FROM tab0 AS cor0
----
-158
-193
-292

query I rowsort
SELECT DISTINCT + + 5 * + col0 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT ALL + - col0 * - 5 AS col1 FROM tab0 cor0
----
435
485
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8178
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL CAST ( NULL AS REAL ) * + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT - COUNT( * ) FROM tab1 WHERE + + col0 / col1 BETWEEN - + CAST( NULL AS SIGNED ) AND - 73
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT - COUNT ( * ) FROM tab1 WHERE + + col0 / col1 BETWEEN - + CAST ( NULL AS INTEGER ) AND - 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT - col2 + + - col2 + CAST( + 24 AS SIGNED ) + col0 FROM tab1
----
-117
-21
-9

skipif mysql # not compatible
query I rowsort label-8180
SELECT - col2 + + - col2 + CAST ( + 24 AS INTEGER ) + col0 FROM tab1
----
-117
-21
-9

query I rowsort
SELECT - 4 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ( + - 49 ) AS col1 FROM tab2
----
-49
-49
-49

query II rowsort
SELECT DISTINCT + col0 * + - 75, + 86 AS col0 FROM tab1 AS cor0
----
-3825
86
-6375
86
-6825
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + - COUNT( * ) FROM tab2 WHERE NOT - col1 / - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8184
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT - col1 / - col0 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT DISTINCT - - COUNT( * ) AS col1, - COUNT( * ) col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8186
SELECT DISTINCT - - COUNT ( * ) AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT ALL + 68 AS col2 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT ALL col2 + + ( 33 ) FROM tab2 AS cor0 WHERE - 24 < NULL
----

query I rowsort
SELECT ALL col0 * + ( 94 ) FROM tab1
----
4794
7990
8554

query I rowsort
SELECT ALL + ( + - col0 ) * + 98 + col0 * col1 FROM tab1
----
-4284
-4641
-7905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8191
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - col2 col0, + col2 AS col0 FROM tab0
----
-98
99
11
10
34
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 35 + col0 * - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT + - MAX( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8194
SELECT DISTINCT + - MAX ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 * + col0 > NULL
----

query I rowsort
SELECT + 40 + + - col0 FROM tab2
----
-24
-35
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT DISTINCT col2 + - 93 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT col2 + - 93 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - + 11 + - col1 AS col0 FROM tab2 cor0
----
-62
-78
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - - - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 48 ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT - 90 - + 54 FROM tab0 AS cor0
----
-144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col2 NOT IN ( + col0 + + col0 - - 30, - col1, - col1 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + 19 - ( + COUNT( * ) ) + - + 18 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 19 - ( + COUNT ( * ) ) + - + 18 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT + col0 - 86 AS col1 FROM tab2
----
-11
-22
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT ALL - 54 DIV + - MAX( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - 54 / + - MAX ( DISTINCT + col2 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL - 49 + + ( + + COUNT( * ) ) * - + 31 AS col2 FROM tab0
----
-142

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - 49 + + ( + + COUNT ( * ) ) * - + 31 AS col2 FROM tab0
----
-142

query I rowsort
SELECT ALL col0 + - + ( - 84 ) FROM tab2
----
130
148
159

query I rowsort
SELECT DISTINCT - + 83 * - col0 * + col2 AS col2 FROM tab1 AS cor0
----
406368
416245
513604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8211
SELECT DISTINCT + 26 DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + 26 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT ( - 54 + - - col1 ) <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 + + col2 / 26 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col0, + 80 col0 FROM tab0 AS cor0
----
-705
80
-870
80
-9603
80

query I rowsort
SELECT ALL + ( + 47 ) + + col1 FROM tab0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - + ( + 3 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - + ( + 3 ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + COUNT( * ) + + 1 AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8217
SELECT + COUNT ( * ) + + 1 AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + col1 < col2
----
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 < col2
----
0

query I rowsort
SELECT ALL - col0 * + + 20 AS col0 FROM tab1 cor0
----
-1020
-1700
-1820

query I rowsort
SELECT + 4 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND + ( - 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT 60 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT 60 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8222
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN CAST( NULL AS DECIMAL ) * - - ( + 70 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8222
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS REAL ) * - - ( + 70 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 62 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT COUNT( * ) - + - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT COUNT ( * ) - + - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + - + col1 + + + 30 * col1 + col2 * col0 col2 FROM tab1 AS cor0
----
5241
5383
7632

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT DISTINCT - 1 - SUM( ALL + + 42 ) col2 FROM tab2 AS cor0
----
-127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8228
SELECT DISTINCT - 1 - SUM ( ALL + + 42 ) col2 FROM tab2 AS cor0
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT - - CAST( NULL AS SIGNED ) + 18 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - CAST ( NULL AS INTEGER ) + 18 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 91 / - - col1 + + + col0 / + col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - + 29, ( - col0 ) FROM tab1 AS cor0 WHERE - col1 + - + col2 - - 74 + + col2 * - col1 - + - col0 > - col2 * 85 / col0 / + - col0
----

query I rowsort
SELECT col1 + - - 63 FROM tab0 AS cor0
----
144
64
84

query I rowsort
SELECT DISTINCT + col0 - - 62 + col0 FROM tab0 AS cor0
----
236
256
92

query II rowsort
SELECT + 28 * - - col2 * + - col2 AS col0, + 39 FROM tab0
----
-274428
39
-2800
39
-61852
39

query I rowsort
SELECT DISTINCT 95 * 48 FROM tab2
----
4560

query I rowsort
SELECT ALL - col2 * - 11 AS col0 FROM tab1
----
1056
649
748

query I rowsort
SELECT ALL + col0 * col1 + + 43 AS col0 FROM tab1 cor0
----
4320
468
757

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8238
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + - CAST( NULL AS DECIMAL ) < + 57
----

skipif mysql # not compatible
query III rowsort label-8238
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + - CAST ( NULL AS REAL ) < + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + MIN( + 43 ) FROM tab0 cor0
----
43

skipif mysql # not compatible
query I rowsort label-8239
SELECT + MIN ( + 43 ) FROM tab0 cor0
----
43

query I rowsort
SELECT + - 39 * - 17 AS col0 FROM tab2 cor0
----
663
663
663

query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

query I rowsort
SELECT DISTINCT + - col2 * - + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8243
SELECT DISTINCT + 88 DIV MIN( col1 ) FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT + 88 / MIN ( col1 ) FROM tab1 cor0
----
17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT COUNT( * ) + + SUM( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-8245
SELECT COUNT ( * ) + + SUM ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
106

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN col2 + - 33 + + col0 AND ( - col1 )
----

query I rowsort
SELECT + col1 * + 42 FROM tab2 WHERE NULL IS NULL
----
2142
2814
3234

query I rowsort
SELECT + 79 * + 58 FROM tab0
----
4582
4582
4582

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE col0 < col2 * - col1 - + + 75 + - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8250
SELECT ALL + 86 + + 35 AS col0, 36 DIV col2 AS col2 FROM tab0
----
121
0
121
0
121
3

skipif mysql # not compatible
query II rowsort label-8250
SELECT ALL + 86 + + 35 AS col0, 36 / col2 AS col2 FROM tab0
----
121
0
121
0
121
3

query I rowsort
SELECT DISTINCT 25 - - ( - + 5 ) AS col0 FROM tab2 WHERE + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT COUNT( + col2 ) FROM tab0 AS cor0 WHERE ( NOT + col1 * - col1 / - - col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 AS cor0 WHERE ( NOT + col1 * - col1 / - - col1 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL + 44 + 65 * + 23 + + COUNT( * ) col1 FROM tab1 AS cor0
----
1542

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8253
SELECT ALL + 44 + 65 * + 23 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
1542

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8254
SELECT DISTINCT - + CAST( col2 AS SIGNED ), - 87 AS col1 FROM tab1 AS cor0
----
-59
-87
-68
-87
-96
-87

skipif mysql # not compatible
query II rowsort label-8254
SELECT DISTINCT - + CAST ( col2 AS INTEGER ), - 87 AS col1 FROM tab1 AS cor0
----
-59
-87
-68
-87
-96
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8255
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 80 BETWEEN + CAST( NULL AS SIGNED ) AND + 34 / - + col0
----

skipif mysql # not compatible
query III rowsort label-8255
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 80 BETWEEN + CAST ( NULL AS INTEGER ) AND + 34 / - + col0
----

query I rowsort
SELECT - col1 + ( + 51 ) * 87 AS col2 FROM tab0 cor0
----
4356
4416
4436

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + 56 * + col2 + + col1 FROM tab2 AS cor0
----
1339
2317
3315

query II rowsort
SELECT 39 AS col2, col0 AS col2 FROM tab2 AS cor0
----
39
46
39
64
39
75

query I rowsort
SELECT DISTINCT - + 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col2, 4 * - col1 FROM tab1 AS cor0
----
59
-20
68
-188
96
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT 94 - + COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT 94 - + COUNT ( * ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < NULL AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 68 * - col1 AS col0 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT DISTINCT CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL > ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL > ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8266
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 63 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8266
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 63 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8267
SELECT DISTINCT - - 88 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT - - 88 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
88
NULL

query I rowsort
SELECT DISTINCT - 26 * - + col1 * - - col0 * + col2 AS col0 FROM tab0
----
1484730
249678
475020

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / + - col0 + - 47 IS NOT NULL
----

query II rowsort
SELECT + col0 * + - col2 AS col2, + col0 * + col1 FROM tab1
----
-4896
714
-5015
425
-6188
4277

query I rowsort
SELECT - + ( + 0 ) FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT - - COUNT( - 79 ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8272
SELECT - - COUNT ( - 79 ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT - - 72 * 18 AS col1 FROM tab2 AS cor0
----
1296
1296
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT ALL 85 DIV - - 70 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL 85 / - - 70 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + + 21 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8275
SELECT + + 21 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL > 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT DISTINCT - col2 DIV 84 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT - col2 / 84 AS col1 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31, 25 col2 FROM tab1 AS cor0
----
-31
25

query I rowsort
SELECT + + 97 * + col2 AS col1 FROM tab0 cor0
----
4559
9603
970

query I rowsort
SELECT DISTINCT - 26 * + - 68 AS col2 FROM tab2
----
1768

query I rowsort
SELECT DISTINCT - col0 + + + 19 AS col1 FROM tab1
----
-32
-66
-72

query I rowsort
SELECT ALL col1 * - 67 FROM tab2
----
-3417
-4489
-5159

query I rowsort
SELECT DISTINCT + col1 * - - col0 FROM tab1 WHERE - col0 IN ( col1 * - col0 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT COUNT( * ) + - 54 col1 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8284
SELECT DISTINCT COUNT ( * ) + - 54 col1 FROM tab0
----
-51

query I rowsort
SELECT - col2 * + + col2 + + + col2 FROM tab0
----
-2162
-90
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT ( - + col0 ) + + + col2 + + CAST( NULL AS SIGNED ) / + - col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT DISTINCT ( - + col0 ) + + + col2 + + CAST ( NULL AS INTEGER ) / + - col0 col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - 23 + + col2 AS col1, col2 + + + 91 AS col0 FROM tab1 cor0 WHERE 82 IS NOT NULL
----
36
150
45
159
73
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8288
SELECT DISTINCT 17 - + CAST( + + 47 AS SIGNED ) - col2 * + col0 FROM tab0 AS cor0
----
-735
-900
-9633

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT 17 - + CAST ( + + 47 AS INTEGER ) - col2 * + col0 FROM tab0 AS cor0
----
-735
-900
-9633

query I rowsort
SELECT DISTINCT 25 - - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-26
-42
-52

query II rowsort
SELECT ALL + col2, - 78 FROM tab2 cor0
----
23
-78
40
-78
58
-78

query I rowsort
SELECT ALL + 33 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + - ( - col0 )
----

query I rowsort
SELECT DISTINCT - ( 1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE - 82 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ALL + col1 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + col1 / + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col2 * col1 <> col2 / + - 26
----

query II rowsort
SELECT DISTINCT 31 AS col0, col1 + + 32 FROM tab0
----
31
113
31
33
31
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - 59 * - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - col1 col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 85 <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 75 AS col0, col0 * - + 47 col1 FROM tab2
----
75
-2162
75
-3008
75
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT MAX( DISTINCT 43 ) col1 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8303
SELECT MAX ( DISTINCT 43 ) col1 FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT - col1 AS col2 FROM tab0 WHERE NOT col2 * + CAST( NULL AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8304
SELECT - col1 AS col2 FROM tab0 WHERE NOT col2 * + CAST ( NULL AS INTEGER ) + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT DISTINCT + 28 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) = col2 * + col1
----

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + 28 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) = col2 * + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 83
----

query I rowsort
SELECT DISTINCT - 14 + 4 AS col1 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT 87 + + ( + COUNT( DISTINCT - 54 ) ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-8308
SELECT 87 + + ( + COUNT ( DISTINCT - 54 ) ) AS col0 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL MIN( col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - - col1 + - 88 AS col2 FROM tab2 cor0
----
-11
-21
-37

query I rowsort
SELECT - col0 + + col1 + col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + + col0 + - 73 FROM tab0 cor0
----
-58
14
24

query I rowsort
SELECT DISTINCT - + 14 * - + col0 * + - col2 AS col2 FROM tab1 AS cor0
----
-68544
-70210
-86632

query II rowsort
SELECT col0, 42 FROM tab2 AS cor0 WHERE ( NULL ) <= col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 * 68 ) IS NOT NULL
----

query I rowsort
SELECT - 48 * + col2 FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT DISTINCT + + col0 * + - 28 AS col2 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT ALL col1 * + col2 + ( - col1 ) FROM tab2
----
1122
3003
3819

query I rowsort
SELECT - - col2 AS col1 FROM tab2 WHERE - + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 2 >= + 93 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT + SUM( + 2 ) FROM tab0, tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT + SUM ( + 2 ) FROM tab0, tab1 cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8324
SELECT * FROM tab1 WHERE - 13 * + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8324
SELECT * FROM tab1 WHERE - 13 * + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT - 89 + - + COUNT( * ) col0 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8325
SELECT DISTINCT - 89 + - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - - col1 + col2 - + 25 FROM tab2 cor0
----
100
49
92

query I rowsort
SELECT - 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT + col2 - - CAST( NULL AS SIGNED ) + + - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + col2 - - CAST ( NULL AS INTEGER ) + + - col1 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 77 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT + COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8330
SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL + SUM( + 60 ) * - 97 col0 FROM tab2 AS cor0
----
-17460

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8332
SELECT ALL + SUM ( + 60 ) * - 97 col0 FROM tab2 AS cor0
----
-17460

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL <= - 86 / - 12 )
----

query I rowsort
SELECT - 40 * - 44 + col1 AS col1 FROM tab2 AS cor0
----
1811
1827
1837

query II rowsort
SELECT DISTINCT - + col2, + col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 19 = 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - ( + col2 ) + + col2 + - - col0 NOT BETWEEN NULL AND - col2 + - - col2 * - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT - COUNT( * ) + - + 42 * - 64 AS col1 FROM tab1 WHERE NOT - col0 = - 71 * + + 5
----
2685

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - COUNT ( * ) + - + 42 * - 64 AS col1 FROM tab1 WHERE NOT - col0 = - 71 * + + 5
----
2685

onlyif mysql # aggregate syntax: 
query II rowsort label-8339
SELECT SUM( col0 ) AS col0, + COUNT( * ) FROM tab2
----
185
3

skipif mysql # not compatible
query II rowsort label-8339
SELECT SUM ( col0 ) AS col0, + COUNT ( * ) FROM tab2
----
185
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ( SUM( col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8340
SELECT ( SUM ( col0 ) ) FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 WHERE NOT + 31 / col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
45

query I rowsort
SELECT - col2 * + col2 + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + col0 * + - col2 AS col2 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT COUNT( * ) * - + 2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8345
SELECT COUNT ( * ) * - + 2 FROM tab1
----
-6

query II rowsort
SELECT + 2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
2
59
2
68
2
96

query I rowsort
SELECT DISTINCT + 31 * + - col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2496
-564
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT - MAX( ALL - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8349
SELECT - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 25 ) col1 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 89 + - col2 * + col0 FROM tab2 cor0
----
-2471
-4261
-969

query II rowsort
SELECT - - col2 AS col1, + col1 FROM tab2 AS cor0 WHERE col1 > col1
----

query I rowsort
SELECT + - col0 + 4 FROM tab2 AS cor0
----
-42
-60
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL + COUNT( * ) * - 91 AS col1 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL + COUNT ( * ) * - 91 AS col1 FROM tab0 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * + + col0 * - col0 col2 FROM tab2 AS cor0
----
24285184
25250625
5503716

query III rowsort
SELECT * FROM tab2 WHERE + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col1 * + 53 * col2 FROM tab1
----
15635
169388
71232

query I rowsort
SELECT 43 * - - col0 FROM tab0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - ( + MIN( - col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8361
SELECT - ( + MIN ( - col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - COUNT( * ) FROM tab2 WHERE 59 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8362
SELECT - COUNT ( * ) FROM tab2 WHERE 59 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 + - - col0 * col2 * + ( - col0 ) AS col2 FROM tab1
----
-249645
-426190
-563017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 + + col2 col2 FROM tab2
----
-14
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + - COUNT( * ) - ( + 88 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + - COUNT ( * ) - ( + 88 ) AS col0 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col1 > + - ( ( - + col0 ) ) ) )
----

query I rowsort
SELECT ALL - 69 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT ALL - COUNT( * ) AS col0, 59 FROM tab2 AS cor0 WHERE ( NOT - col1 <> NULL )
----
0
59

skipif mysql # not compatible
query II rowsort label-8368
SELECT ALL - COUNT ( * ) AS col0, 59 FROM tab2 AS cor0 WHERE ( NOT - col1 <> NULL )
----
0
59

query I rowsort
SELECT DISTINCT 56 + + col2 AS col0 FROM tab2 AS cor0
----
114
79
96

query I rowsort
SELECT DISTINCT + 59 * + 11 * + col1 AS col0 FROM tab1 AS cor0
----
30503
3245
9086

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 21
----

query I rowsort
SELECT - 87 * + col1 AS col0 FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT - col0 * + + 39 AS col2 FROM tab0
----
-3393
-3783
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT DISTINCT + 58 * + col0 * - CAST( 4 AS SIGNED ) FROM tab1 AS cor0
----
-11832
-19720
-21112

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + 58 * + col0 * - CAST ( 4 AS INTEGER ) FROM tab1 AS cor0
----
-11832
-19720
-21112

query I rowsort
SELECT DISTINCT - 88 * - - 51 FROM tab1 AS cor0
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - + COUNT( col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8376
SELECT - + COUNT ( col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN - col1 AND 64 + 22
----
-185

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN - col1 AND 64 + 22
----
-185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + + COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8379
SELECT + + COUNT ( col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8380
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + - 19 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8380
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + - 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - ( - 36 ) ) FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT + col0 * + 76 * + col1 FROM tab1
----
32300
325052
54264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8383
SELECT + 81 AS col0, - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8383
SELECT + 81 AS col0, - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
81
NULL
81
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT - CAST( + col0 AS SIGNED ) * + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-8384
SELECT - CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8386
SELECT ALL * FROM tab2 WHERE NOT - col2 + - - 41 < + + ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8386
SELECT ALL * FROM tab2 WHERE NOT - col2 + - - 41 < + + ( + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL ( 15 ) * - col2 FROM tab1
----
-1020
-1440
-885

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8388
SELECT DISTINCT - COUNT( - CAST( 18 AS DECIMAL ) ) + - - 53 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - COUNT ( - CAST ( 18 AS REAL ) ) + - - 53 FROM tab2
----
50

query I rowsort
SELECT DISTINCT + 63 FROM tab0, tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT ALL + col1 DIV + ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + col1 / + ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - col1, col2 * - 19 * + col0 AS col0 FROM tab0 AS cor0
----
-1
-182457
-21
-16530
-81
-13395

query I rowsort
SELECT - col0 + + col1 * 80 + + col0 FROM tab2
----
4080
5360
6160

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT + 22 DIV 62 + - + col2 col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8393
SELECT DISTINCT + 22 / 62 + - + col2 col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col2 + 99 FROM tab2
----
122
139
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT + col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE - CAST( + col2 AS SIGNED ) <= - col0
----
-196

skipif mysql # not compatible
query I rowsort label-8395
SELECT + col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) <= - col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE - ( + ( - col0 ) ) + + col0 / - col1 / - col2 + + + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - ( + ( - col0 ) ) + + col0 / - col1 / - col2 + + + col2 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT DISTINCT - - col1 * + CAST( NULL AS SIGNED ) + 14 - col1 FROM tab0 AS cor0 WHERE + col1 = - col2
----

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) + 14 - col1 FROM tab0 AS cor0 WHERE + col1 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT - - CAST( col0 AS SIGNED ) - + - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) - + - col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL 3 - + col2 AS col0 FROM tab2 cor0
----
-20
-37
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8401
SELECT col2 * - 78 - - col0 DIV + + 25 col2, + col2 * - - 90 FROM tab1
----
-4599
5310
-5301
6120
-7486
8640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8401
SELECT col2 * - 78 - - col0 / + + 25 col2, + col2 * - - 90 FROM tab1
----
-4599
5310
-5301
6120
-7486
8640

query I rowsort
SELECT col0 - + - 75 FROM tab2
----
121
139
150

query I rowsort
SELECT ALL 67 + + 90 FROM tab2
----
157
157
157

query II rowsort
SELECT - 47 - col0 + - 65 - - 60 * - col2 * + - col0 AS col0, col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT CAST( + + col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8405
SELECT CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 * - 47 FROM tab0
----
-2209
-4653
-470

query I rowsort
SELECT + 86 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 94 * - + col1 - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT ALL - - 14 DIV + col1 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - - 14 / + col1 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 46 < + + 9
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT - + MIN( 51 ) col2, + COUNT( * ) FROM tab1 AS cor0
----
-51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8411
SELECT - + MIN ( 51 ) col2, + COUNT ( * ) FROM tab1 AS cor0
----
-51
3

query I rowsort
SELECT DISTINCT - 2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + COUNT( ALL + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + COUNT ( ALL + + col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT + MIN( 7 ) + + - MIN( DISTINCT - - col2 ) + 52 AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + MIN ( 7 ) + + - MIN ( DISTINCT - - col2 ) + 52 AS col2 FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8415
SELECT ALL * FROM tab2 WHERE - - col0 - - - 44 - + + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT ALL * FROM tab2 WHERE - - col0 - - - 44 - + + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8416
SELECT DISTINCT CAST( 54 AS SIGNED ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT CAST ( 54 AS INTEGER ) FROM tab1
----
54

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL - + col1 * + - col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - 19 - MIN( ALL - col1 ) + + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT - 19 - MIN ( ALL - col1 ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 96 AS col1 FROM tab0 cor0 WHERE NOT ( 42 / + col2 * - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT - 21 DIV + + COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 21 / + + COUNT ( * ) FROM tab1 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - 48 * - 62 * + col0 AS col0 FROM tab1 AS cor0
----
-51
151776
-85
252960
-91
270816

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + col0 - + ( - 67 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8424
SELECT 79 / - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT 79 / - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 4 + + 41 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - 81 - + MIN( ALL - col0 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8426
SELECT - 81 - + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + - 22 * - 11 col0 FROM tab1 AS cor0
----
-301
-310
-338

query I rowsort
SELECT col2 * + + col0 + + col0 + col2 + - col1 FROM tab0 cor0
----
686
946
9798

query II rowsort
SELECT DISTINCT + 33 AS col0, - col2 FROM tab1 AS cor0
----
33
-59
33
-68
33
-96

query I rowsort
SELECT col0 * - 78 * + 27 * 80 AS col2 FROM tab2
----
-10782720
-12636000
-7750080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL - col0 + - col1 + - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - col0 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ( + MAX( DISTINCT col0 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8432
SELECT ( + MAX ( DISTINCT col0 ) ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT COUNT( ALL - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8433
SELECT COUNT ( ALL - + col2 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 82 AS col1, - col1 col1 FROM tab0
----
82
-1
82
-21
82
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 * col1 + - - col2 + - 57 - - 27 col2 FROM tab0 cor0
----
1637
400
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL + COUNT( - - col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + COUNT ( - - col0 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + col2 * + col0 - 42 * + + 84 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-2470
-968
822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT + col0 * col2 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT 68 + + + COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT 68 + + + COUNT ( * ) FROM tab2
----
71

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT - col0 * 83 AS col0 FROM tab2
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL COUNT( * ) + 73 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL COUNT ( * ) + 73 FROM tab1
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 98 col1 FROM tab1 WHERE col0 <= - + col0
----

query I rowsort
SELECT + 71 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - 26 + + - 90 AS col2 FROM tab0
----
-116

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 91 * + col2 AS col2 FROM tab2 AS cor0
----
-2093
-3640
-5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 9 * col1 + - + col1 * - col0 col2, col2 + - + ( ( - 49 ) ) AS col1 FROM tab1 AS cor0
----
470
108
4700
117
840
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL 14 * COUNT( * ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL 14 * COUNT ( * ) AS col0 FROM tab1
----
42

query I rowsort
SELECT - 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT + ( - + col2 ) * col1 + + 18 * + + col0 FROM tab0 AS cor0
----
-3537
1356
1647

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL + 50 + + COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL + 50 + + COUNT ( * ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL - 35 - - col1 FROM tab2 cor0
----
16
32
42

query I rowsort
SELECT - + ( - ( - ( + + 35 ) ) ) FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT col2 + - col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + + 52 - col2 * col0 FROM tab1 AS cor0
----
-4844
-4963
-6136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT + + ( 61 ) - + + ( 11 ) DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8459
SELECT + + ( 61 ) - + + ( 11 ) / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
58

query I rowsort
SELECT - col1 * + + col1 * - col0 - + + col0 AS col1 FROM tab1 AS cor0
----
200928
2040
9945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8461
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8461
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT 22 * - - col1 AS col1 FROM tab0
----
1782
22
462

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT ALL - 86 DIV 75 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL - 86 / 75 AS col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0 col0, 17 * + col2 * + col0, + 67 AS col1 FROM tab2 AS cor0
----
9 values hashing to 9934ee71a852db4105a81f436433fa07

query II rowsort
SELECT col1, + 40 + col2 FROM tab1 AS cor0
----
14
136
47
108
5
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 40 ) = + 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ( - MIN( - col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8467
SELECT ( - MIN ( - col1 ) ) FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT 45 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8469
SELECT 45 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 27 * + col0 col2, - col1 + + 7 * - 22 col2, + + col1 - col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to c8c3e1a0603b5b480d6e718a3c20a61d

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + SUM( ALL - - 3 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8471
SELECT + SUM ( ALL - - 3 ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ( col2 ) * - 50 FROM tab1 cor0
----
-2950
-3400
-4800

query II rowsort
SELECT + col2 * col1, col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

query I rowsort
SELECT ALL 15 * - ( + 65 ) AS col0 FROM tab2 AS cor0
----
-975
-975
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT - - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 12 AS col1 FROM tab2 WHERE - 33 IS NOT NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL 25 + COUNT( * ) col0 FROM tab0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8477
SELECT ALL 25 + COUNT ( * ) col0 FROM tab0
----
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 * ( col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 31 + + 86 FROM tab0
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - SUM( ALL col2 ) + - MIN( col1 ) AS col2 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-8480
SELECT - SUM ( ALL col2 ) + - MIN ( col1 ) AS col2 FROM tab1
----
-228

query I rowsort
SELECT col0 * + + ( - 25 ) + + - col0 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 >= col0 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 >= col0 * - 86
----
NULL

query II rowsort
SELECT DISTINCT col2 + - - col0 + + - col1, col0 AS col2 FROM tab0 AS cor0
----
-19
15
195
97
76
87

query I rowsort
SELECT 50 * + col0 * + 93 AS col2 FROM tab2 AS cor0
----
213900
297600
348750

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT MIN( ALL + 83 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
83

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT MIN ( ALL + 83 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
83

query I rowsort
SELECT DISTINCT - + col2 - - col1 * - col1 + - col1 * + - col2 FROM tab1 AS cor0
----
1052
211
919

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8487
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8487
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) + 95 FROM tab1
----
48
81
90

query I rowsort
SELECT col2 * - col1 FROM tab0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL 86 - - 61 AS col2 FROM tab0
----
147
147
147

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE NOT NULL = + ( - col1 )
----

query I rowsort
SELECT + 26 AS col2 FROM tab1 WHERE ( - col1 * + col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8493
SELECT + ( + 58 ) DIV COUNT( * ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-8493
SELECT + ( + 58 ) / COUNT ( * ) AS col0 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT + 12 * SUM( - col2 ) AS col2 FROM tab2
----
-1452

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT + 12 * SUM ( - col2 ) AS col2 FROM tab2
----
-1452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT DISTINCT col2 * - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT col2 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * col2 col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + 21 * 57 FROM tab0
----
1197
1197
1197

query I rowsort
SELECT ALL - col2 + 65 * col2 FROM tab2
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL COUNT( * ) FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL COUNT ( * ) FROM tab1 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT MAX( col2 ) + COUNT( * ) * + 90 AS col2 FROM tab2
----
328

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT MAX ( col2 ) + COUNT ( * ) * + 90 AS col2 FROM tab2
----
328

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT DISTINCT - 28 DIV - col1 FROM tab0
----
0
1
28

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - 28 / - col1 FROM tab0
----
0
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab2 WHERE 30 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8502
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab2 WHERE 30 = NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT COUNT( * ) + - 55 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-8504
SELECT COUNT ( * ) + - 55 FROM tab0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 96 IN ( 14 - 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL + MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL + MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col0 / 52 AS col0 FROM tab2 WHERE ( 20 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT ALL 38 + 13 DIV COUNT( * ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL 38 + 13 / COUNT ( * ) AS col1 FROM tab0
----
42

query I rowsort
SELECT DISTINCT + 7 + - col2 * 62 AS col1 FROM tab0
----
-2907
-613
-6131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT DISTINCT CAST( col2 AS SIGNED ) * + ( col1 ) FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + ( col1 ) FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 38 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8516
SELECT MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT col0 * - 64 + + col2 AS col1 FROM tab2
----
-2921
-4056
-4742

query I rowsort
SELECT ALL 88 + - col0 FROM tab1
----
-3
3
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 44 * col1 + + col1 col2 FROM tab0 cor0
----
3645
45
945

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 38 + 80 * + 63 AND + 49
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - 21 <> ( - ( + 42 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8523
SELECT * FROM tab2 cor0 WHERE NULL IN ( CAST( 4 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8523
SELECT * FROM tab2 cor0 WHERE NULL IN ( CAST ( 4 AS INTEGER ) )
----

query I rowsort
SELECT ALL - + col1 * col0 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT DISTINCT + CAST( + 89 AS SIGNED ) * + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT + CAST ( + 89 AS INTEGER ) * + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-267

query I rowsort
SELECT - col0 * + col2 + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IN ( 18 )
----

query I rowsort
SELECT 75 * - col2 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8528
SELECT CAST( NULL AS DECIMAL ) * + + 80 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT CAST ( NULL AS REAL ) * + + 80 * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - ( - col0 ) AND ( + 52 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT col1 DIV + col2 + + col2 DIV + 15 AS col1 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT col1 / + col2 + + col2 / + 15 AS col1 FROM tab1
----
3
4
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8531
SELECT CAST( NULL AS DECIMAL ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT CAST ( NULL AS REAL ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE - 88 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 - col1 ) <= col2 * - 14
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8534
SELECT ALL * FROM tab2 WHERE NULL IN ( + CAST( ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) + 1 )
----

skipif mysql # not compatible
query III rowsort label-8534
SELECT ALL * FROM tab2 WHERE NULL IN ( + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS REAL ) + 1 )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL OR + col2 / 9 <= + 84
----
46
64
75

query I rowsort
SELECT col0 + - 56 FROM tab0 WHERE NULL IS NULL
----
-41
31
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = NULL OR NOT NULL NOT BETWEEN NULL AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab2 AS cor0 WHERE 93 = col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT - CAST( + col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8539
SELECT - CAST ( + col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT 73 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT 73 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + COUNT( * ) * - + MAX( 5 ) + + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8541
SELECT + COUNT ( * ) * - + MAX ( 5 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + 39 + - ( - 26 ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 39 + - ( - 26 ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
62

query III rowsort
SELECT * FROM tab1 WHERE ( ( 43 ) >= + col1 )
----
51
14
96
85
5
59

query I rowsort
SELECT ALL col1 + ( col1 ) FROM tab0 WHERE NOT - col1 * + 84 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) < + col0
----

query I rowsort
SELECT DISTINCT - 31 * - col1 * col2 FROM tab2 cor0
----
120466
36363
95480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT ALL - + ( COUNT( * ) ) DIV 19 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - + ( COUNT ( * ) ) / 19 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( - col1 ) * + + 58 FROM tab1 AS cor0
----
2726
290
812

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT ALL + 23 DIV + 42 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + 23 / + 42 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + col1 FROM tab0 cor0 WHERE ( - col0 ) NOT IN ( col0 / ( col0 ) )
----
210
3807
99

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( col2 * + col2 ) IS NULL
----
46
64
75

query I rowsort
SELECT ALL 89 * + + 83 * col2 * + col1 AS col1 FROM tab2 AS cor0
----
22751960
28705882
8664951

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 76 / + 63 + 88 BETWEEN NULL AND col2 * + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 * - 19 ) = + col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 81 * + - col1 AS col0, - 18 FROM tab1
----
-1134
-18
-3807
-18
-405
-18

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 WHERE NOT ( - - col0 ) NOT IN ( - 97 * 34 + 10 / - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 > - col0
----

query I rowsort
SELECT + - 97 * - 7 FROM tab0 AS cor0
----
679
679
679

query II rowsort
SELECT DISTINCT col0 * col1 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
1215
-15
1827
-87
97
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8560
SELECT - col2 DIV + + 58 col1, 40 FROM tab1 AS cor0
----
-1
40
-1
40
-1
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8560
SELECT - col2 / + + 58 col1, 40 FROM tab1 AS cor0
----
-1
40
-1
40
-1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL ( - COUNT( * ) ) * + 76 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-684

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL ( - COUNT ( * ) ) * + 76 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-684

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - 73
----

query I rowsort
SELECT - col0 * - - 53 * - 76 FROM tab1 cor0
----
205428
342380
366548

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + + COUNT( * ) * 93 col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8564
SELECT + + COUNT ( * ) * 93 col0 FROM tab2 AS cor0
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT + + 33 * col2 * col1 DIV col0 FROM tab0 AS cor0
----
33
79
8375

skipif mysql # not compatible
query I rowsort label-8565
SELECT + + 33 * col2 * col1 / col0 FROM tab0 AS cor0
----
33
79
8375

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - + col2 NOT IN ( col0 ) AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + 78 * - COUNT( * ) * - 97 + - + 63 AS col1 FROM tab0 AS cor0
----
22635

skipif mysql # not compatible
query I rowsort label-8567
SELECT + 78 * - COUNT ( * ) * - 97 + - + 63 AS col1 FROM tab0 AS cor0
----
22635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT - 29 FROM tab2 WHERE + - col0 - - - 11 + + - CAST( NULL AS SIGNED ) IS NULL
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-8568
SELECT - 29 FROM tab2 WHERE + - col0 - - - 11 + + - CAST ( NULL AS INTEGER ) IS NULL
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab0 WHERE - + col0 * - 23 + + + 34 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( ( - col2 ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL - COUNT( * ) FROM tab2 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8572
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT - col2 DIV 73 + + + col1 AS col2 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-8573
SELECT - col2 / 73 + + + col1 AS col2 FROM tab1
----
13
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8574
SELECT DISTINCT + 38 DIV - + COUNT( * ) + 45 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + 38 / - + COUNT ( * ) + 45 FROM tab0
----
33

query II rowsort
SELECT + col1 AS col0, + ( - col0 ) FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT DISTINCT - 48 * col2 - col0 * + - ( 50 ) FROM tab0 AS cor0
----
-1506
3870
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT - + COUNT( * ) * - 24 * - 93 FROM tab0 AS cor0
----
-6696

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - + COUNT ( * ) * - 24 * - 93 FROM tab0 AS cor0
----
-6696

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + ( MIN( + 28 ) ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8578
SELECT + ( MIN ( + 28 ) ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + col2 + 78 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 86 + - col0 + - + ( col0 ) ) > - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - ( - 35 ) col0 FROM tab2
----
23
35
40
35
58
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - SUM( ALL - + col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8583
SELECT - SUM ( ALL - + col1 ) col1 FROM tab2
----
195

query I rowsort
SELECT 35 * col1 AS col2 FROM tab2
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT + - COUNT( * ) AS col1, AVG ( + col1 ) FROM tab1 WHERE NOT NULL < - ( + col1 ) + - col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8586
SELECT + - COUNT ( * ) AS col1, AVG ( + col1 ) FROM tab1 WHERE NOT NULL < - ( + col1 ) + - col2
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT + ( 81 ) DIV 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT + ( 81 ) / 85 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + COUNT( * ) * + 11 AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-8588
SELECT + COUNT ( * ) * + 11 AS col2 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8589
SELECT DISTINCT - + 41, 5 - - - col1 + + col0 DIV - col1 + + + col2 * CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-41
-18290
-41
-57181
-41
-9696

skipif mysql # not compatible
query II rowsort label-8589
SELECT DISTINCT - + 41, 5 - - - col1 + + col0 / - col1 + + + col2 * CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-41
-18290
-41
-57181
-41
-9696

query I rowsort
SELECT ALL - 60 * - + 77 FROM tab1 AS cor0
----
4620
4620
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT ALL + + 92 DIV + 98 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL + + 92 / + 98 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ( + col0 ) * - col0 + + + col0 AS col1, + col2 FROM tab1
----
-2550
96
-7140
59
-8190
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8593
SELECT * FROM tab2 WHERE NULL IN ( + col2 * 53 * + CAST( - 48 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8593
SELECT * FROM tab2 WHERE NULL IN ( + col2 * 53 * + CAST ( - 48 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT - COUNT( * ) - + + 87 col1 FROM tab2 cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8594
SELECT DISTINCT - COUNT ( * ) - + + 87 col1 FROM tab2 cor0
----
-90

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT - 76 * SUM( - 68 ) - - - 9 AS col1 FROM tab1 AS cor0
----
15495

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - 76 * SUM ( - 68 ) - - - 9 AS col1 FROM tab1 AS cor0
----
15495

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT + + 7 * col1 DIV + - col0 + - col1 - + 0 FROM tab2 cor0
----
-58
-73
-85

skipif mysql # not compatible
query I rowsort label-8597
SELECT + + 7 * col1 / + - col0 + - col1 - + 0 FROM tab2 cor0
----
-58
-73
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + + MIN( DISTINCT - + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8598
SELECT + + MIN ( DISTINCT - + col1 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT - 50 * - - COUNT( * ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8599
SELECT - 50 * - - COUNT ( * ) FROM tab0 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT ALL + 49, MAX( ALL - - 12 ) col2 FROM tab2
----
49
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8600
SELECT ALL + 49, MAX ( ALL - - 12 ) col2 FROM tab2
----
49
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT SUM( ALL - col0 ) - 38 FROM tab2
----
-223

skipif mysql # not compatible
query I rowsort label-8601
SELECT SUM ( ALL - col0 ) - 38 FROM tab2
----
-223

query I rowsort
SELECT ALL 27 + + + 96 FROM tab0
----
123
123
123

query I rowsort
SELECT - col2 - - + 53 AS col0 FROM tab1
----
-15
-43
-6

query I rowsort
SELECT 0 * 47 * 30 - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT + col0 * + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT + col0 * + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 47 + - col0 AS col0 FROM tab0 AS cor0
----
-40
-50
32

query II rowsort
SELECT - + col0 AS col1, 71 FROM tab1 AS cor0
----
-51
71
-85
71
-91
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 = - 99 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - 57 * + - 57 FROM tab0
----
152703
321651
32490

query I rowsort
SELECT + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT DISTINCT col1 * 30 DIV col1 FROM tab1 WHERE NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT col1 * 30 / col1 FROM tab1 WHERE NULL IS NULL
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8612
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, COUNT( + + ( 16 ) ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8612
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( + + ( 16 ) ) FROM tab0 AS cor0
----
NULL
3

query II rowsort
SELECT DISTINCT - col2 AS col1, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT + - col2, col0 * + 4 AS col0 FROM tab2 AS cor0
----
-23
184
-40
256
-58
300

query I rowsort
SELECT - 44 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + COUNT( - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + COUNT ( - + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + ( - col1 ) * - + col1 * col2 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT 0 * - MAX( + - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT 0 * - MAX ( + - col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - 6 * - + COUNT( col1 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - 6 * - + COUNT ( col1 ) FROM tab0
----
18

query III rowsort
SELECT * FROM tab2 WHERE NOT 96 + + 25 BETWEEN + col2 * col0 + + 4 + + col0 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 + 0, ( 62 ) AS col1 FROM tab0
----
10
62
47
62
99
62

query I rowsort
SELECT DISTINCT + col2 * + 31 + col1 FROM tab1
----
1834
2155
2990

query I rowsort
SELECT DISTINCT 74 * + - col0 AS col0 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8624
SELECT col1 * - col1 + - + 47 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT col1 * - col1 + - + 47 * - + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8625
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8626
SELECT - col1 DIV - 67 AS col0, ( 16 ) col2 FROM tab0 AS cor0
----
0
16
0
16
1
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8626
SELECT - col1 / - 67 AS col0, ( 16 ) col2 FROM tab0 AS cor0
----
0
16
0
16
1
16

query I rowsort
SELECT DISTINCT + 77 * - col1 FROM tab1
----
-1078
-3619
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT DISTINCT - - col2 DIV col2 - 36 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - - col2 / col2 - 36 FROM tab0 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 57 + + col0 col2 FROM tab1 AS cor0
----
-6
28
34

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 74 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL - 10 * + COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - 10 * + COUNT ( * ) FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT DISTINCT + + ( - 87 ) * col2 + 46 - col1 + + + col1 + - col0 + col1 * + 30 + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-4550
-5021
-7936

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + + ( - 87 ) * col2 + 46 - col1 + + + col1 + - col0 + col1 * + 30 + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
-4550
-5021
-7936

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL COUNT( * ) * - 81 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL COUNT ( * ) * - 81 FROM tab2
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT + COUNT( * ) + - + 53 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT + COUNT ( * ) + - + 53 FROM tab0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT + col1 DIV col2 * + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT + col1 / col2 * + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - - col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT - 25 DIV - - ( + col1 ) FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 25 / - - ( + col1 ) FROM tab1
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT CAST( NULL AS SIGNED ) / - + col0 * - col1 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT CAST ( NULL AS INTEGER ) / - + col0 * - col1 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( - - col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL ( + - MAX( col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL ( + - MAX ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + + col2 IS NULL
----

query I rowsort
SELECT ALL + 95 * + col1 * col1 FROM tab2 AS cor0
----
247095
426455
563255

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 94, + col2 )
----

query I rowsort
SELECT 10 + - ( + 52 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT MAX( DISTINCT 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8648
SELECT MAX ( DISTINCT 28 ) FROM tab1
----
28

query I rowsort
SELECT + col0 * - 32 AS col1 FROM tab1
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL - ( - MIN( - 29 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL - ( - MIN ( - 29 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8651
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) * ( + - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8651
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS REAL ) * ( + - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - 12 col0 FROM tab2 AS cor0
----
-51
-12
-67
-12
-77
-12

query I rowsort
SELECT - - 93 AS col2 FROM tab1 AS cor0 WHERE NOT 88 + - + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 95 ) AND 57 / + + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 49 * - - ( col1 ) - + col1 <> + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - - 25 ) col1, col0 AS col0 FROM tab0
----
25
15
25
87
25
97

query II rowsort
SELECT - 4 AS col0, col2 * - 52 FROM tab0
----
-4
-2444
-4
-5148
-4
-520

query I rowsort
SELECT - 30 * - + 57 * 83 FROM tab2
----
141930
141930
141930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8659
SELECT - 0, - 93 * CAST( 5 AS SIGNED ) AS col0 FROM tab0
----
0
-465
0
-465
0
-465

skipif mysql # not compatible
query II rowsort label-8659
SELECT - 0, - 93 * CAST ( 5 AS INTEGER ) AS col0 FROM tab0
----
0
-465
0
-465
0
-465

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col0 * col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT MIN( DISTINCT - col2 ) + - 77 col2 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8663
SELECT DISTINCT MIN ( DISTINCT - col2 ) + - 77 col2 FROM tab2 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL - CAST( NULL AS SIGNED ) + + 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - CAST ( NULL AS INTEGER ) + + 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 42 * + + col1 AS col1 FROM tab2 cor0
----
-2142
-2814
-3234

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 96 * - 59 + - 44 - - 64 * col0 * - - col1 FROM tab1 AS cor0
----
21492
268020
39988

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - COUNT( DISTINCT col2 ) - + ( 55 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT - COUNT ( DISTINCT col2 ) - + ( 55 ) col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + 35 - - - col0 AS col1 FROM tab1
----
-16
-50
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT ALL 75 * 61 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL 75 * 61 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - - col2 AS col0 FROM tab2
----
-104
-133
-69

query II rowsort
SELECT 54, col1 FROM tab0 cor0
----
54
1
54
21
54
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT DISTINCT col2 DIV col2 DIV - col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT col2 / col2 / - col1 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - ( - - col1 ) AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT - col2 DIV - - ( - 60 ) AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8677
SELECT - col2 / - - ( - 60 ) AS col2 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT + + ( + col0 ) * - col2 + + col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT - - 83 * col2 AS col0 FROM tab1 AS cor0
----
4897
5644
7968

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - 42
----

query I rowsort
SELECT - ( 67 ) * 13 AS col1 FROM tab1 AS cor0
----
-871
-871
-871

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 NOT BETWEEN NULL AND + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 57 AND NULL
----

query I rowsort
SELECT - - 38 AS col1 FROM tab1 WHERE NOT + + col2 * - - 19 + - 25 + - 31 IS NULL
----
38
38
38

query I rowsort
SELECT ALL 93 + - 10 FROM tab2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT col1 DIV - col1 AS col0 FROM tab2 WHERE col0 NOT IN ( 2 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8687
SELECT col1 / - col1 AS col0 FROM tab2 WHERE col0 NOT IN ( 2 )
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + + col2 * - col2 col1 FROM tab2
----
-1553
-3317
-482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT DISTINCT + 84 + - CAST( - 10 AS SIGNED ) AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + 84 + - CAST ( - 10 AS INTEGER ) AS col0 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL SUM( + 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL SUM ( + 89 ) FROM tab2
----
267

query I rowsort
SELECT - 42 FROM tab1 WHERE ( + col2 * + + 93 ) IS NULL OR ( NOT + 34 BETWEEN NULL AND + col1 )
----
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col1 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col1 - - col0
----
0

query I rowsort
SELECT + + 38 + 0 + 61 + + col1 * - 61 * + col0 FROM tab1 AS cor0
----
-25826
-260798
-43455

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 98 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 98 * - ( col0 ) FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - ( + + ( COUNT( DISTINCT - 61 ) ) ) - - 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - ( + + ( COUNT ( DISTINCT - 61 ) ) ) - - 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query I rowsort
SELECT DISTINCT col2 + + 15 * col2 * + ( 26 ) AS col0 FROM tab1
----
23069
26588
37536

query I rowsort
SELECT DISTINCT - col0 + - 9 FROM tab1
----
-100
-60
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT - col1 + + col0 + + CAST( col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-291
-7503
-9313

skipif mysql # not compatible
query I rowsort label-8700
SELECT - col1 + + col0 + + CAST ( col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-291
-7503
-9313

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + ( 58 ) + - - ( + COUNT( * ) ) * + 46 FROM tab1 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-8701
SELECT + ( 58 ) + - - ( + COUNT ( * ) ) * + 46 FROM tab1 AS cor0
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT + - CAST( + + 22 AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
37
46
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8702
SELECT + - CAST ( + + 22 AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
37
46
74

query I rowsort
SELECT + col0 * + 19 + col1 AS col0 FROM tab1 cor0
----
1620
1776
983

query I rowsort
SELECT ALL 73 - - col0 FROM tab1 cor0
----
124
158
164

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < - col2 * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 54 ) col2 FROM tab0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT 49 DIV - col2 * + - col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8707
SELECT 49 / - col2 * + - col0 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col2 col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT COUNT( * ) * + + 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8709
SELECT COUNT ( * ) * + + 27 FROM tab1
----
81

query I rowsort
SELECT ALL col0 * col1 * - col1 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT - MAX( DISTINCT - 31 ) DIV - COUNT( * ) AS col2 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8711
SELECT - MAX ( DISTINCT - 31 ) / - COUNT ( * ) AS col2 FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT DISTINCT - 18 * - COUNT( * ), - 49 AS col0 FROM tab2
----
54
-49

skipif mysql # not compatible
query II rowsort label-8712
SELECT DISTINCT - 18 * - COUNT ( * ), - 49 AS col0 FROM tab2
----
54
-49

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT col2 * + 81 * 81 BETWEEN - col0 + 1 AND - + col2
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL - col0 * - + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - col0 * - + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 25 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT DISTINCT + col0 DIV - col2 + - - ( + + col1 ) + - 31 + - 29 col1 FROM tab1 AS cor0
----
-14
-46
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8716
SELECT DISTINCT + col0 / - col2 + - - ( + + col1 ) + - 31 + - 29 col1 FROM tab1 AS cor0
----
-14
-46
-56

query III rowsort
SELECT * FROM tab2 WHERE NOT - 24 * - col2 * + col0 * - col0 - - + 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT 71 * - MAX( DISTINCT + 27 ) * - + SUM( ALL + - col1 ) FROM tab1
----
-126522

skipif mysql # not compatible
query I rowsort label-8718
SELECT 71 * - MAX ( DISTINCT + 27 ) * - + SUM ( ALL + - col1 ) FROM tab1
----
-126522

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT + MIN( - - 15 ) col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8719
SELECT + MIN ( - - 15 ) col2 FROM tab2
----
15

query II rowsort
SELECT ALL - col2, + col1 * col2 + + - 84 AS col2 FROM tab2
----
-23
1089
-40
2996
-58
3802

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL + + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 21 IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8721
SELECT ALL + + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 21 IS NULL
----
9

query I rowsort
SELECT ALL - ( + col2 ) * + + 68 * + col1 FROM tab0
----
-14280
-258876
-6732

query I rowsort
SELECT + col1 + - - col1 + - 0 * + col1 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 + - 41 col1 FROM tab1 cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT - ( - 40 ) DIV 3 FROM tab2 cor0
----
13

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - ( - 40 ) / 3 FROM tab2 cor0
----
13

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE + - 32 / col2 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 92 + - col1 col1 FROM tab0
----
1911
7371
91

query I rowsort
SELECT ALL + 18 + - col2 AS col0 FROM tab2
----
-22
-40
-5

query I rowsort
SELECT ALL col0 + + - 43 * - col0 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT DISTINCT - + col0 + col0 * + - col1 AS col2 FROM tab0 cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT + COUNT( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - 69 * - + col0 + + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT + COUNT ( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - 69 * - + col0 + + + col0 )
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - + 2 + - 54 FROM tab0 AS cor0
----
-12
-52
108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8734
SELECT - col1 + col1 DIV CAST( - col0 AS SIGNED ) + - col0 + + + col1 FROM tab0
----
-20
-87
-97

skipif mysql # not compatible
query I rowsort label-8734
SELECT - col1 + col1 / CAST ( - col0 AS INTEGER ) + - col0 + + + col1 FROM tab0
----
-20
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - COUNT( * ) * - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 WHERE NOT + + ( + col2 ) * - - col2 * - 43 - - col0 - + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + ( + col2 ) * - - col2 * - 43 - - col0 - + col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT ALL 21 + - + col1 DIV col2 AS col2 FROM tab1
----
21
21
21

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL 21 + - + col1 / col2 AS col2 FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8737
SELECT DISTINCT COUNT( * ) + - - SUM( col1 ) AS col2, CAST( NULL AS SIGNED ) * - MAX( - col2 ) FROM tab1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8737
SELECT DISTINCT COUNT ( * ) + - - SUM ( col1 ) AS col2, CAST ( NULL AS INTEGER ) * - MAX ( - col2 ) FROM tab1
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) * 92 AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) * 92 AS col1 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT - MAX( + ( + + col0 ) ) + + ( + SUM( DISTINCT + - col0 ) ) col0 FROM tab0 AS cor0
----
-296

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8739
SELECT DISTINCT - MAX ( + ( + + col0 ) ) + + ( + SUM ( DISTINCT + - col0 ) ) col0 FROM tab0 AS cor0
----
-296

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 38 - + - 47 * + col1 * + + col1 IS NULL
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL CAST( - col1 AS SIGNED ) * - CAST( NULL AS SIGNED ) * + col2 * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL CAST ( - col1 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + col2 * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8744
SELECT DISTINCT + + col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8744
SELECT DISTINCT + + col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT DISTINCT - col2, col2 + - 3 AS col2 FROM tab1 AS cor0
----
-59
56
-68
65
-96
93

query I rowsort
SELECT + + ( + - col0 ) * - 84 * - + col0 AS col0 FROM tab1 AS cor0
----
-218484
-606900
-695604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT + SUM( DISTINCT - CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8747
SELECT + SUM ( DISTINCT - CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + SUM( DISTINCT col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8748
SELECT + SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab2
----
46

query II rowsort
SELECT ALL 41 * - + col1 * col1 * - col0 AS col2, 18 FROM tab1
----
409836
18
8241779
18
87125
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8751
SELECT - CAST( + col0 AS DECIMAL ) FROM tab1 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-8751
SELECT - CAST ( + col0 AS REAL ) FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 13 AS col0, col2 FROM tab2
----
13
23
13
40
13
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT MIN( DISTINCT col1 ) * - 59 FROM tab1 AS cor0
----
-295

skipif mysql # not compatible
query I rowsort label-8754
SELECT MIN ( DISTINCT col1 ) * - 59 FROM tab1 AS cor0
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT MAX( ALL + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT MAX ( ALL + - col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT ALL - 73 DIV + MIN( DISTINCT - - col1 ) col0 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8757
SELECT ALL - 73 / + MIN ( DISTINCT - - col1 ) col0 FROM tab0
----
-73

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT + - ( col1 ) DIV + - col0 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8759
SELECT + - ( col1 ) / + - col0 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + + 22 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
22
22
22

query I rowsort
SELECT - col2 + + 56 FROM tab1 cor0
----
-12
-3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT MAX( ALL - - ( col1 ) ) col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8762
SELECT DISTINCT MAX ( ALL - - ( col1 ) ) col0 FROM tab0 cor0
----
81

query I rowsort
SELECT ALL + 51 * - col1 AS col1 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT DISTINCT - col2 + - col1 * - - col2 AS col0 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT ALL ( col2 ) + + col0 AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT 88 + - 41 FROM tab2
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8767
SELECT 42 col1, + CAST( NULL AS DECIMAL ) * - + col0 col0 FROM tab1
----
42
NULL
42
NULL
42
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8767
SELECT 42 col1, + CAST ( NULL AS REAL ) * - + col0 col0 FROM tab1
----
42
NULL
42
NULL
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT COUNT( * ) * + - 28 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-8768
SELECT COUNT ( * ) * + - 28 FROM tab2
----
-84

query I rowsort
SELECT - 16 * - col0 AS col0 FROM tab1 AS cor0
----
1360
1456
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT - + COUNT( - col1 ) * + CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT - + COUNT ( - col1 ) * + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + ( + + COUNT( * ) ) * + 26 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
234

skipif mysql # not compatible
query I rowsort label-8771
SELECT + ( + + COUNT ( * ) ) * + 26 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
234

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8773
SELECT - CAST( + col2 AS SIGNED ) * 1 * + - col2 * - + 62 + - CAST( NULL AS SIGNED ) + + col2 AS col1, 1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-8773
SELECT - CAST ( + col2 AS INTEGER ) * 1 * + - col2 * - + 62 + - CAST ( NULL AS INTEGER ) + + col2 AS col1, 1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT + + 70 * + - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT + + 70 * + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT ALL col0 - - col0 FROM tab1 AS cor0 WHERE col0 + col0 / - 25 * + col2 IS NOT NULL
----
102
170
182

query III rowsort
SELECT * FROM tab0 WHERE NOT - 55 * col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL ( - - ( - COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL ( - - ( - COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT - + col1 * - CAST( NULL AS SIGNED ) - + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT - + col1 * - CAST ( NULL AS INTEGER ) - + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + col0 * col2 - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT 21 * 59 + - COUNT( * ) AS col0 FROM tab1
----
1236

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT 21 * 59 + - COUNT ( * ) AS col0 FROM tab1
----
1236

query II rowsort
SELECT ALL col1 * - + 4 AS col0, + 37 FROM tab1 WHERE NULL IS NULL
----
-188
37
-20
37
-56
37

query I rowsort
SELECT - 92 + + - col0 FROM tab2
----
-138
-156
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT DISTINCT col0 * col0 + + col2 DIV - col0 AS col1 FROM tab0
----
222
7569
9408

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT col0 * col0 + + col2 / - col0 AS col1 FROM tab0
----
222
7569
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT COUNT( + + ( + + 82 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT COUNT ( + + ( + + 82 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT + SUM( DISTINCT 70 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + SUM ( DISTINCT 70 ) FROM tab2 AS cor0
----
70

query I rowsort
SELECT DISTINCT - 63 * + - col2 + + + col1 AS col1 FROM tab2 AS cor0
----
1500
2597
3721

query I rowsort
SELECT - col1 * + + ( + col0 ) + - col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

query II rowsort
SELECT DISTINCT + 99, + ( + col0 ) AS col0 FROM tab1 AS cor0
----
99
51
99
85
99
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT + COUNT( DISTINCT + col2 ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT col0 DIV - 43 AS col2 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8792
SELECT col0 / - 43 AS col2 FROM tab1
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT + ( - + 79 ) DIV col2 DIV + col1 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8793
SELECT + ( - + 79 ) / col2 / + col1 col1 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - col1 * 95 AS col2, 69 + + - 45 AS col0 FROM tab2
----
-4845
24
-6365
24
-7315
24

query I rowsort
SELECT col0 - - 53 AS col1 FROM tab0
----
140
150
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - - col0 + 42 IS NULL
----

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE + col0 + + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE + - col2 NOT IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8799
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE + - col2 NOT IN ( - col0 )
----
3

query I rowsort
SELECT + col0 * col2 * 86 + - col1 FROM tab0 AS cor0
----
60549
74799
825857

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8801
SELECT ALL * FROM tab2 WHERE NOT NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8801
SELECT ALL * FROM tab2 WHERE NOT NULL < + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, ( + 41 ) FROM tab2
----
-51
41
-67
41
-77
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL - + MIN( - + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - + MIN ( - + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 38 col0, col0 AS col0 FROM tab0 AS cor0
----
38
15
38
87
38
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8805
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( - col2 AS SIGNED ) ) NOT BETWEEN col0 * + col2 - - - col1 + + 72 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-8805
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( - col2 AS INTEGER ) ) NOT BETWEEN col0 * + col2 - - - col1 + + 72 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8806
SELECT - ( + CAST( - 97 AS SIGNED ) ) col0, 71 + - col1 AS col2 FROM tab2 AS cor0
----
97
-6
97
20
97
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8806
SELECT - ( + CAST ( - 97 AS INTEGER ) ) col0, 71 + - col1 AS col2 FROM tab2 AS cor0
----
97
-6
97
20
97
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL MIN( DISTINCT + 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL MIN ( DISTINCT + 25 ) FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL - COUNT( - + 39 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - COUNT ( - + 39 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT - MIN( - 69 ), COUNT( * ) * 10 AS col0 FROM tab1
----
69
30

skipif mysql # not compatible
query II rowsort label-8809
SELECT - MIN ( - 69 ), COUNT ( * ) * 10 AS col0 FROM tab1
----
69
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> 17 + col2 / - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL + MIN( + 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + MIN ( + 37 ) FROM tab1
----
37

query I rowsort
SELECT - 80 + - 62 + col1 FROM tab2 AS cor0
----
-65
-75
-91

query I rowsort
SELECT DISTINCT 7 * col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL <> col1 * + col1 * 64
----

query I rowsort
SELECT DISTINCT col0 + - 8 AS col2 FROM tab1
----
43
77
83

query I rowsort
SELECT 18 + + 67 AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + 22 + + - SUM( - - ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8816
SELECT + 22 + + - SUM ( - - ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
-201

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8817
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT SUM( + col1 ) + - + COUNT( * ) + + 65 FROM tab2 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-8818
SELECT SUM ( + col1 ) + - + COUNT ( * ) + + 65 FROM tab2 AS cor0
----
257

query I rowsort
SELECT - col1 * + 0 + + + 8 AS col1 FROM tab0 cor0
----
8
8
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - 70 * + + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT - COUNT( * ) + + + CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( * ) + + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL 7 + + 98 FROM tab0
----
105
105
105

query I rowsort
SELECT - 61 * + + 69 * + col2 * + + ( - - col1 ) FROM tab1
----
-1241655
-13451964
-5656896

onlyif mysql # aggregate syntax: 
query II rowsort label-8824
SELECT + COUNT( * ), COUNT( - col0 ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8824
SELECT + COUNT ( * ), COUNT ( - col0 ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT + col0 + + ( - col0 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 * 86 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * - ( + + 90 ) col2 FROM tab2
----
-2340

query I rowsort
SELECT ALL ( + col2 ) * - col1 * + 89 FROM tab1 AS cor0
----
-119616
-26255
-284444

query I rowsort
SELECT - col0 * + 17 AS col2 FROM tab0 AS cor0
----
-1479
-1649
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0 WHERE NOT ( ( NOT + ( - col2 ) IS NOT NULL ) )
----
10
47
99

query I rowsort
SELECT 61 FROM tab0 AS cor0 WHERE NOT 58 <> - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 63 - + ( col0 ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL + 17 * MAX( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
1309

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + 17 * MAX ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
1309

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col0 * + + 33 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - - col0 + - 94 * 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT + MAX( col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + MAX ( col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT MIN( + - col2 ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT MIN ( + - col2 ) col1 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT ALL col0 DIV 72 * col2 col2 FROM tab1
----
0
59
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8839
SELECT ALL col0 / 72 * col2 col2 FROM tab1
----
0
59
68

query I rowsort
SELECT DISTINCT + 73 + + col0 AS col1 FROM tab2
----
119
137
148

query I rowsort
SELECT DISTINCT ( 39 ) AS col2 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - MAX( DISTINCT col0 ) col0 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8842
SELECT - MAX ( DISTINCT col0 ) col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT ALL + COUNT( DISTINCT - + 25 ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + COUNT ( DISTINCT - + 25 ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 + 87 AS col2 FROM tab1
----
146
155
183

query II rowsort
SELECT col0 AS col0, col0 + 56 + + 17 - - + 90 * 54 + - col2 - + col2 + - + 87 AS col2 FROM tab2
----
46
4846
64
4830
75
4805

query I rowsort
SELECT ALL 99 * - 63 FROM tab0
----
-6237
-6237
-6237

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT + col1 + + col0 * col2 DIV col1 + + 92 FROM tab1 AS cor0
----
1100
270
455

skipif mysql # not compatible
query I rowsort label-8847
SELECT + col1 + + col0 * col2 / col1 + + 92 FROM tab1 AS cor0
----
1100
270
455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL - col0 FROM tab0 WHERE ( - col2 * + col0 * + col2 * - - col2 + CAST( + ( + col0 ) AS SIGNED ) + col1 + col1 + - col1 + + + col0 + + 43 * - - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - col0 FROM tab0 WHERE ( - col2 * + col0 * + col2 * - - col2 + CAST ( + ( + col0 ) AS INTEGER ) + col1 + col1 + - col1 + + + col0 + + 43 * - - col1 ) IS NULL
----

query I rowsort
SELECT 25 + + col0 AS col1 FROM tab2
----
100
71
89

query I rowsort
SELECT ALL 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT 31 + - ( + COUNT( * ) ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT 31 + - ( + COUNT ( * ) ) FROM tab1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT - 0 AS col1 FROM tab2 cor0 WHERE - col0 - + CAST( + 34 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 0 AS col1 FROM tab2 cor0 WHERE - col0 - + CAST ( + 34 AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8854
SELECT ALL SUM( 70 ), 71 AS col0 FROM tab0 AS cor0
----
210
71

skipif mysql # not compatible
query II rowsort label-8854
SELECT ALL SUM ( 70 ), 71 AS col0 FROM tab0 AS cor0
----
210
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT COUNT( * ) - - - COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT COUNT ( * ) - - - COUNT ( * ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + col1 * col0 AS col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL col2 + + 60 FROM tab1
----
119
128
156

query I rowsort
SELECT - col0 - - - col0 AS col0 FROM tab1
----
-102
-170
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * + 7 col1 FROM tab2 AS cor0
----
434

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT col1 DIV + - col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8860
SELECT col1 / + - col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

query II rowsort
SELECT - col1 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE - col1 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col2 FROM tab0
----
196
62
97

query II rowsort
SELECT + 15 + + col2, + ( col2 ) AS col0 FROM tab0
----
114
99
25
10
62
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT - col2 + col0 - - + 74 col2 FROM tab1 WHERE - col2 * - col1 + + CAST( + + 45 AS SIGNED ) < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8865
SELECT - col2 + col0 - - + 74 col2 FROM tab1 WHERE - col2 * - col1 + + CAST ( + + 45 AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * 80 col0, col2 * - + col0 FROM tab1
----
1120
-4896
3760
-6188
400
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT SUM( - col1 ) * - - COUNT( + col1 ) + COUNT( * ) AS col2 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT SUM ( - col1 ) * - - COUNT ( + col1 ) + COUNT ( * ) AS col2 FROM tab1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT 10 + COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-8868
SELECT 10 + COUNT ( * ) FROM tab2
----
13

query I rowsort
SELECT DISTINCT + 11 * 62 AS col1 FROM tab1
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT ALL - col0 DIV + 42 + + col1 * col1 + + 38 * + - 16 FROM tab0 AS cor0
----
-169
-609
5953

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - col0 / + 42 + + col1 * col1 + + 38 * + - 16 FROM tab0 AS cor0
----
-169
-609
5953

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL 52 * COUNT( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL 52 * COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
156

query I rowsort
SELECT DISTINCT - 63 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL - COUNT( * ) + - + 23 AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - COUNT ( * ) + - + 23 AS col1 FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT - MAX( - + col2 ) + - - COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8874
SELECT - MAX ( - + col2 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT + col1 + + col1 - col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + 4 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + 4 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( + + 82 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT + 68 * + COUNT( * ) col1 FROM tab1
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8879
SELECT + 68 * + COUNT ( * ) col1 FROM tab1
----
204

query I rowsort
SELECT ( + 27 ) AS col2 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - MIN( ALL col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8881
SELECT - MIN ( ALL col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT + ( - 21 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - col0 * + - ( - - 69 ) FROM tab1
----
3519
5865
6279

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + + 26 + + COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8885
SELECT + + 26 + + COUNT ( * ) FROM tab2 AS cor0
----
29

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 BETWEEN - col0 AND col1
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 8 - + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT + 30 AS col0, MIN( ALL col2 ) FROM tab2 cor0
----
30
23

skipif mysql # not compatible
query II rowsort label-8888
SELECT + 30 AS col0, MIN ( ALL col2 ) FROM tab2 cor0
----
30
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8889
SELECT DISTINCT - 42 AS col1 FROM tab2 WHERE - + CAST( + - 77 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT - 42 AS col1 FROM tab2 WHERE - + CAST ( + - 77 AS REAL ) IS NULL
----

query I rowsort
SELECT - col2 * + col1 * - - col0 AS col2 FROM tab0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 75 ) col2 FROM tab1
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT CAST( + - 30 AS SIGNED ) AS col1 FROM tab2
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-8892
SELECT CAST ( + - 30 AS INTEGER ) AS col1 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT DISTINCT 60 + + - 29 AS col0 FROM tab0
----
31

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 - + - col1 * - col1 + - col1 FROM tab0 AS cor0
----
-101
-472
-6689

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + COUNT( ALL + + col0 ) + + - COUNT( * ) + + 96 AS col2 FROM tab0 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8896
SELECT + COUNT ( ALL + + col0 ) + + - COUNT ( * ) + + 96 AS col2 FROM tab0 cor0
----
96

query I rowsort
SELECT 93 + + col1 * + col2 FROM tab0 cor0
----
192
303
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT 68 + + - COUNT( * ) AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8898
SELECT 68 + + - COUNT ( * ) AS col1 FROM tab1
----
65

query I rowsort
SELECT ALL - 98 + col0 + - 18 AS col2 FROM tab0 AS cor0
----
-101
-19
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT + + ( - 63 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT + + ( - 63 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT - COUNT( * ) * + 72 - + 17 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT - COUNT ( * ) * + 72 - + 17 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT - + CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8902
SELECT - + CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL + MIN( 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + MIN ( 18 ) AS col1 FROM tab2 AS cor0
----
18

query II rowsort
SELECT - 93, + col2 * - 20 AS col2 FROM tab0
----
-93
-1980
-93
-200
-93
-940

query I rowsort
SELECT DISTINCT 97 * col2 FROM tab1
----
5723
6596
9312

query II rowsort
SELECT DISTINCT col2, + col1 * - ( + col2 ) * 88 * - col0 + col2 FROM tab0
----
10
1607770
47
5025287
99
845163

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT - MAX( ALL + - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT - MAX ( ALL + - col1 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 / col1 + + - 6 * + col2 <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69 col0, 86 + - - 73 + - 57 AS col0 FROM tab1 AS cor0
----
69
102
69
102
69
102

query I rowsort
SELECT ALL + ( + + col0 ) * + col1 AS col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT 10 * - col1 - col0 * 66 FROM tab0
----
-1800
-5952
-6412

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * 70 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * ( col1 * - col1 ) - col2 AS col2 FROM tab0
----
-100
-531488
-9271

query I rowsort
SELECT ALL + col2 * - 87 + - col2 AS col1 FROM tab2
----
-2024
-3520
-5104

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE col0 + - 39 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE col0 + - 39 IS NULL
----
0

query I rowsort
SELECT 13 * ( col2 * - col2 ) AS col2 FROM tab1 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + SUM( DISTINCT 68 ) AS col2 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-8918
SELECT + SUM ( DISTINCT 68 ) AS col2 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - ( + MAX( ALL - 36 ) ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8919
SELECT - ( + MAX ( ALL - 36 ) ) FROM tab1
----
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab0 WHERE NOT - col1 >= col1
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab0 WHERE NOT - col1 >= col1
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) <> col1
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) <> col1
----
0

query I rowsort
SELECT ALL 69 * ( col2 * + col1 ) FROM tab2 WHERE NOT ( 56 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = 69
----

query I rowsort
SELECT + col1 * + col2 + - ( + col1 ) FROM tab1
----
1330
290
3149

query I rowsort
SELECT ALL col0 * - col0 + 85 AS col2 FROM tab0
----
-140
-7484
-9324

query I rowsort
SELECT + col2 - 85 AS col0 FROM tab2 WHERE NULL > + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 1 AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8930
SELECT CAST( NULL AS DECIMAL ) + 6 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT CAST ( NULL AS REAL ) + 6 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8931
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-8931
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8932
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8932
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ( - col1 ) * 41 FROM tab1
----
-1927
-205
-574

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT 52 DIV + 32 col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8934
SELECT DISTINCT 52 / + 32 col0 FROM tab0
----
1

query I rowsort
SELECT 17 * col0 AS col2 FROM tab2 AS cor0
----
1088
1275
782

query I rowsort
SELECT DISTINCT 34 - - 43 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL + MAX( - 77 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + MAX ( - 77 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-80

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col1 + - 64 ) >= NULL
----

query I rowsort
SELECT ALL col0 * col0 + + col2 * col0 AS col0 FROM tab1
----
12240
14469
7497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 19 col1 FROM tab1 WHERE + col1 IS NOT NULL
----
115
78
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL - 44 * SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - 44 * SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + col1 FROM tab2 WHERE NOT NULL = - 52
----

query I rowsort
SELECT col0 + 39 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 88 * COUNT( * ) + 76 FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 88 * COUNT ( * ) + 76 FROM tab2 AS cor0
----
-188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 67 - + col2 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - col2 * ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 43 * + col0 AS col1 FROM tab0 AS cor0
----
3741
4171
645

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 86 col0 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL ( MIN( DISTINCT col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL ( MIN ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT + SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE col1 * + col1 + 58 / + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE col1 * + col1 + 58 / + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT DISTINCT 88 * col0 AS col1 FROM tab0 AS cor0
----
1320
7656
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 * + col0 col1 FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT DISTINCT + MIN( DISTINCT + 61 ) * COUNT( * ) AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + MIN ( DISTINCT + 61 ) * COUNT ( * ) AS col2 FROM tab0
----
183

query I rowsort
SELECT col1 * col2 * ( + col0 * ( - 49 ) ) FROM tab2
----
-14281050
-2643942
-9658880

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE col2 <= 1
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT col0 BETWEEN NULL AND col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT + ( CAST( NULL AS SIGNED ) ) col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8959
SELECT + ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8960
SELECT ALL + 34 DIV MIN( + col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + 34 / MIN ( + col1 ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT ( + col0 ) DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8961
SELECT ( + col0 ) / col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT MIN( + 65 ) * SUM( DISTINCT 44 ) AS col0 FROM tab1
----
2860

skipif mysql # not compatible
query I rowsort label-8962
SELECT MIN ( + 65 ) * SUM ( DISTINCT 44 ) AS col0 FROM tab1
----
2860

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 92 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT - CAST( - COUNT( ALL col2 ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8964
SELECT - CAST ( - COUNT ( ALL col2 ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ( col0 ) * col1 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 31 + col1 NOT BETWEEN NULL AND ( 77 + col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT - 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 col2, - 67 FROM tab1
----
86
-67
86
-67
86
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ALL + COUNT( * ) DIV + 52 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + COUNT ( * ) / + 52 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL 20 + MIN( ALL + col2 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 20 + MIN ( ALL + col2 ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( + 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT + CAST( NULL AS SIGNED ) + - ( + col1 + col0 ) * col1 AS col2 FROM tab0 AS cor0 WHERE - col1 <> - 12 * 88 + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT + CAST ( NULL AS INTEGER ) + - ( + col1 + col0 ) * col1 AS col2 FROM tab0 AS cor0 WHERE - col1 <> - 12 * 88 + col0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + 31 + col0 NOT BETWEEN col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8976
SELECT DISTINCT - COUNT( * ) AS col2, - MIN( ALL - + 64 ) DIV - MIN( ALL col1 ) col0 FROM tab0 AS cor0
----
-3
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8976
SELECT DISTINCT - COUNT ( * ) AS col2, - MIN ( ALL - + 64 ) / - MIN ( ALL col1 ) col0 FROM tab0 AS cor0
----
-3
-64

query II rowsort
SELECT + col2 AS col0, 84 AS col0 FROM tab1 AS cor0
----
59
84
68
84
96
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 36 + 59 + - 1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - col1 ) col0, 98 FROM tab2
----
-51
98
-67
98
-77
98

query I rowsort
SELECT col1 - + col2 FROM tab1 WHERE col1 IN ( 31 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 62 + - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 15 * 90 FROM tab2 WHERE col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL - COUNT( * ) + + - 62 * + 93 FROM tab0
----
-5769

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - COUNT ( * ) + + - 62 * + 93 FROM tab0
----
-5769

query III rowsort
SELECT * FROM tab2 WHERE ( + 25 + + col0 * - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8985
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IS NULL AND NOT ( NULL ) BETWEEN + 36 * col2 AND 38
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + col1 >= 28
----
51
14
96
91
47
68

query II rowsort
SELECT DISTINCT + 14 * + + col0, col2 FROM tab2 AS cor0
----
1050
58
644
23
896
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 47 AND ( 11 + + 50 + col0 * col0 )
----

query I rowsort
SELECT ALL - + 76 - col0 + 28 AS col2 FROM tab1 AS cor0
----
-133
-139
-99

query II rowsort
SELECT DISTINCT - 5 * + - col1 AS col1, 36 * - + 28 AS col0 FROM tab1 AS cor0
----
235
-1008
25
-1008
70
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT COUNT( * ) - - 34 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT COUNT ( * ) - - 34 FROM tab0
----
37

query III rowsort
SELECT * FROM tab0 WHERE - - col1 IN ( - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8994
SELECT + col1 * - 60 * + col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
-17700
NULL
-191760
NULL
-80640
NULL

skipif mysql # not compatible
query II rowsort label-8994
SELECT + col1 * - 60 * + col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
-17700
NULL
-191760
NULL
-80640
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - 31 * - COUNT( * ) AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8996
SELECT - 31 * - COUNT ( * ) AS col1 FROM tab0
----
93

query I rowsort
SELECT ALL - 29 * 33 * - col0 FROM tab1
----
48807
81345
87087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8998
SELECT - MIN( ALL - col1 ) / MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT - MIN ( ALL - col1 ) / MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + + col0
----

query I rowsort
SELECT DISTINCT + col0 * - - col2 * + 27 FROM tab1 AS cor0
----
132192
135405
167076

query I rowsort
SELECT ALL + 54 * - - col0 FROM tab1 AS cor0
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL + col2 DIV + col1 + - + 39 DIV + 2 FROM tab0 AS cor0
----
-19
-19
80

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + col2 / + col1 + - + 39 / + 2 FROM tab0 AS cor0
----
-19
-19
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT COUNT( * ) * + 24 FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT COUNT ( * ) * + 24 FROM tab0 cor0
----
72

query I rowsort
SELECT DISTINCT - - ( 27 ) AS col1 FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT - + COUNT( * ) * 64 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT - + COUNT ( * ) * 64 FROM tab2 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - col1 * - col1 FROM tab1 AS cor0 WHERE NOT ( col0 * + + CAST( + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9008
SELECT - col1 * - col1 FROM tab1 AS cor0 WHERE NOT ( col0 * + + CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT ALL - 90 AS col2, col1 FROM tab1 AS cor0
----
-90
14
-90
47
-90
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT col0 DIV - 45 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT col0 / - 45 FROM tab1
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT + - 59 * COUNT( + 89 ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9011
SELECT + - 59 * COUNT ( + 89 ) FROM tab2 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT DISTINCT - 97 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-9012
SELECT DISTINCT - 97 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-97
3

query I rowsort
SELECT ALL - col1 * - 29 FROM tab1 WHERE col1 + - + 83 NOT BETWEEN + - col2 + - + col1 AND - col1 + col0
----
145

query II rowsort
SELECT 23 AS col1, + ( - - 82 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 0d580c79b0bb04c1dce4cdc39b2a857a

query I rowsort
SELECT + ( 46 ) AS col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE + ( - 40 ) + + 85 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + - 29 + + col1 FROM tab1 AS cor0
----
-15
-24
18

query I rowsort
SELECT + + 80 + - 70 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL + ( COUNT( DISTINCT col1 ) ) + 45 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + ( COUNT ( DISTINCT col1 ) ) + 45 FROM tab0 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT ALL - col2 DIV + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - col2 / + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT + 68 + + + 51 AS col1 FROM tab0 cor0
----
119
119
119

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 14 IN ( - col2 + + + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND ( - - col2 - - col2 ) )
----

query I rowsort
SELECT ALL + col1 / - 40 AS col0 FROM tab0 AS cor0 WHERE 80 * col0 BETWEEN + 48 AND ( - + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - 62 + + ( + COUNT( * ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 62 + + ( + COUNT ( * ) ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - col1 + + + 60 FROM tab1
----
13
46
55

query I rowsort
SELECT - col1 + - col1 FROM tab1 WHERE NULL < col1 + + ( - - 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9028
SELECT + ( + + ( + col0 ) ), CAST( 9 AS SIGNED ) AS col1 FROM tab0
----
15
9
87
9
97
9

skipif mysql # not compatible
query II rowsort label-9028
SELECT + ( + + ( + col0 ) ), CAST ( 9 AS INTEGER ) AS col1 FROM tab0
----
15
9
87
9
97
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL - COUNT( * ) + + MIN( + col0 ) * + ( 38 ) col1 FROM tab0 AS cor0
----
567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9029
SELECT ALL - COUNT ( * ) + + MIN ( + col0 ) * + ( 38 ) col1 FROM tab0 AS cor0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT SUM( ALL - + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9030
SELECT SUM ( ALL - + col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT - col0 * + + 37 AS col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + COUNT( ALL + col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9032
SELECT + COUNT ( ALL + col2 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab1 AS cor0 WHERE ( + ( 33 ) - + - col1 + - col0 / - ( + + col2 ) ) = ( + 45 )
----

query II rowsort
SELECT DISTINCT + col2 * + col0 * - ( col1 ) AS col0, col0 FROM tab2 AS cor0
----
-197120
64
-291450
75
-53958
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT + - col1 + col1 + col0 * - - 70 + + - col2 + + col0 + - col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - + col0
----

query II rowsort
SELECT ALL + 91 * + 36 * - col2 AS col2, col0 AS col0 FROM tab0
----
-153972
15
-324324
97
-32760
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT - CAST( NULL AS SIGNED ) * 93 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT - CAST ( NULL AS INTEGER ) * 93 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 39 FROM tab1
----
-1833
-195
-546

query I rowsort
SELECT - 13 * - col1 FROM tab2
----
1001
663
871

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9041
SELECT DISTINCT AVG ( - col1 ) * - CAST( NULL AS DECIMAL ) * + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT AVG ( - col1 ) * - CAST ( NULL AS REAL ) * + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * - 76 AS col2 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT DISTINCT + - 47 DIV 54 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT + - 47 / 54 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT - MAX( col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT - MAX ( col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL 64 + + ( - 8 ) AS col0 FROM tab1 cor0
----
56
56
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9049
SELECT - + col2 * - + CAST( NULL AS DECIMAL ) / + 73 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT - + col2 * - + CAST ( NULL AS REAL ) / + 73 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT - COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9050
SELECT - COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( - col2 ) * - col0 - - 82 - + 64 FROM tab0
----
723
888
9621

query I rowsort
SELECT - ( - col1 ) - + - ( - + col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + ( 30 ) - + col0 AS col2 FROM tab1
----
-21
-55
-61

query II rowsort
SELECT DISTINCT + col1 * - col1, + col2 * col1 AS col0 FROM tab0
----
-1
99
-441
210
-6561
3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 87 + - col1 col2, + col1 * + col2 AS col2 FROM tab1
----
-101
1344
-134
3196
-92
295

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - MAX( ALL - - 35 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - MAX ( ALL - - 35 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT CAST( + col2 AS SIGNED ) * - - ( - col2 ) FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-9057
SELECT CAST ( + col2 AS INTEGER ) * - - ( - col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-9058
SELECT 29 AS col1, SUM( ( + col0 ) ) FROM tab0
----
29
199

skipif mysql # not compatible
query II rowsort label-9058
SELECT 29 AS col1, SUM ( ( + col0 ) ) FROM tab0
----
29
199

query II rowsort
SELECT + col0 AS col1, - col0 - - col2 FROM tab0 AS cor0
----
15
32
87
-77
97
2

query I rowsort
SELECT + + 8 * - 73 + + col1 / + + col0 FROM tab0 cor0 WHERE NOT + ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT + 15 * + - MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + 15 * + - MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
150

query I rowsort
SELECT 93 FROM tab1 cor0 WHERE NOT ( ( - col2 + col0 * col2 + + ( + - col2 ) * + col1 >= - col1 ) )
----

query II rowsort
SELECT ALL + col2, - 6 FROM tab0 AS cor0
----
10
-6
47
-6
99
-6

query I rowsort
SELECT - - 33 AS col0 FROM tab2 AS cor0
----
33
33
33

query II rowsort
SELECT ALL col0, 26 AS col0 FROM tab1 cor0
----
51
26
85
26
91
26

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 84
----

query I rowsort
SELECT + col1 * 75 FROM tab0 WHERE NOT ( 76 ) IS NULL
----
1575
6075
75

query I rowsort
SELECT - 48 FROM tab1 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9069
SELECT - - col1 DIV - + col1, 83 * + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab2 cor0
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-9069
SELECT - - col1 / - + col1, 83 * + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab2 cor0
----
-1
NULL
-1
NULL
-1
NULL

query III rowsort
SELECT * FROM tab2 WHERE 63 NOT BETWEEN + col2 AND ( 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + + ( - 39 ) + + col1 + + col2 / - - col2 * + col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT - 82 + - CAST( + col2 AS SIGNED ) FROM tab1
----
-141
-150
-178

skipif mysql # not compatible
query I rowsort label-9074
SELECT - 82 + - CAST ( + col2 AS INTEGER ) FROM tab1
----
-141
-150
-178

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + ( 49 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 + 57 col1 FROM tab0 AS cor0
----
148
148
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT + CAST( ( - col1 ) AS SIGNED ) + - - 99 AS col1 FROM tab1 cor0
----
52
85
94

skipif mysql # not compatible
query I rowsort label-9077
SELECT + CAST ( ( - col1 ) AS INTEGER ) + - - 99 AS col1 FROM tab1 cor0
----
52
85
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 + + - col1 col2 FROM tab2 AS cor0
----
-10
-26
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9079
SELECT DISTINCT + ( + - ( + CAST( NULL AS SIGNED ) ) ) - + - AVG ( ALL - col0 ) * - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + ( + - ( + CAST ( NULL AS INTEGER ) ) ) - + - AVG ( ALL - col0 ) * - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + 27 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 27 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT + 2 + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT + 2 + - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - MIN( + 12 ) + - 68 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9082
SELECT - MIN ( + 12 ) + - 68 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT ALL col1 - + 78 FROM tab2 AS cor0
----
-1
-11
-27

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT - - 17 + - + 17 * col1 * + - col2 FROM tab0 AS cor0
----
1700
3587
64736

query I rowsort
SELECT col2 * + - col1 * col2 * + col2 - - - col0 - + 3 * + + col1 + + + col1 FROM tab1 cor0
----
-1026990
-12386383
-14778489

query II rowsort
SELECT col1, 28 FROM tab2
----
51
28
67
28
77
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT col2 DIV - 52 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT col2 / - 52 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 * + 58 FROM tab1
----
3422
3944
5568

query II rowsort
SELECT + 98 AS col0, - col0 * + col1 AS col2 FROM tab1
----
98
-425
98
-4277
98
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT 83 * + MAX( + - ( - col2 ) ) FROM tab2 AS cor0
----
4814

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT 83 * + MAX ( + - ( - col2 ) ) FROM tab2 AS cor0
----
4814

query II rowsort
SELECT DISTINCT col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT COUNT( * ) * + - SUM( ALL + 90 ) FROM tab0
----
-810

skipif mysql # not compatible
query I rowsort label-9093
SELECT COUNT ( * ) * + - SUM ( ALL + 90 ) FROM tab0
----
-810

query I rowsort
SELECT DISTINCT + - 18 AS col2 FROM tab2 cor0
----
-18

query II rowsort
SELECT col1 AS col1, ( + - col0 ) AS col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT 65 * + 92 AS col2 FROM tab0
----
5980
5980
5980

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT DISTINCT + 96 + - col2 DIV + 55 FROM tab2
----
95
96

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + 96 + - col2 / + 55 FROM tab2
----
95
96

query I rowsort
SELECT DISTINCT + 4 * - - col1 + + col2 AS col1 FROM tab0
----
103
371
94

query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 13 * + - col0 * - 57 * + col2 * + 53 FROM tab1
----
192280608
196954095
243021324

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT + MIN( DISTINCT col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + MIN ( DISTINCT col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT DISTINCT 1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * - - col2 * + col2 col0 FROM tab0 AS cor0
----
-11045
-49005
-500

query I rowsort
SELECT ALL + 47 * + 49 FROM tab2
----
2303
2303
2303

query I rowsort
SELECT + + col2 - + 43 * + col2 AS col1 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL 10 - + COUNT( ALL col1 ) AS col2 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL 10 - + COUNT ( ALL col1 ) AS col2 FROM tab2 cor0
----
7

query I rowsort
SELECT col1 - - col1 + + 42 AS col1 FROM tab1 AS cor0
----
136
52
70

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 29 AS col2 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT - col2 - - - 69 FROM tab2 cor0
----
-109
-127
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT DISTINCT + 69 DIV + col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + 69 / + col2 AS col2 FROM tab0
----
0
1
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 37 ) col2 FROM tab2
----
37

query I rowsort
SELECT - 40 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 * + col0 col2 FROM tab1 AS cor0
----
-59
7225
-68
8281
-96
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL - COUNT( + - ( + col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - COUNT ( + - ( + col1 ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 87 col1 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT MIN( ALL col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9117
SELECT MIN ( ALL col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9118
SELECT 46 DIV + 52 * COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9118
SELECT 46 / + 52 * COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9119
SELECT DISTINCT * FROM tab1 WHERE + col1 + + CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9119
SELECT DISTINCT * FROM tab1 WHERE + col1 + + CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT DISTINCT col2 DIV ( col2 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT col2 / ( col2 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9121
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <> + + 60 * 77 + - col2 * + 41 + + - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9121
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <> + + 60 * 77 + - col2 * + 41 + + - CAST ( col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 4 ) col1 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - COUNT( - - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9123
SELECT - COUNT ( - - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT ALL 77 DIV + - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL 77 / + - col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 53 * - - col0 + + col2 FROM tab0 cor0
----
4621
5240
842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE col0 + 54 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT col0 + - + col0 + ( col2 ) + + col1 * - CAST( - col1 AS SIGNED ) * + ( + 39 ) - - col2 col0 FROM tab1
----
1093
7836
86287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9128
SELECT col0 + - + col0 + ( col2 ) + + col1 * - CAST ( - col1 AS INTEGER ) * + ( + 39 ) - - col2 col0 FROM tab1
----
1093
7836
86287

query I rowsort
SELECT + col2 FROM tab1 WHERE - - col0 >= NULL
----

query I rowsort
SELECT ALL + ( col2 ) * col0 + + + col1 FROM tab1 AS cor0
----
4910
5020
6235

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 93 * + + col2 / 22 + + 3 + + + ( - + col0 ) * - col1 - 19 + col0
----

query I rowsort
SELECT - - 23 + - + 79 FROM tab2 AS cor0 WHERE - col0 + col2 <= - col2
----
-56

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * - 13 + - col2 AS col1 FROM tab1
----
-124
-278
-679

query I rowsort
SELECT 89 + + - col2 FROM tab1
----
-7
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + 57 + COUNT( * ) + + 42 * + COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-9136
SELECT + 57 + COUNT ( * ) + + 42 * + COUNT ( * ) FROM tab0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + col2 col2 FROM tab0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT 84 - + + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT 84 - + + COUNT ( * ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT col2 * - - 1 + + col1 + - + col1 * - 35 AS col0 FROM tab2 AS cor0
----
1859
2470
2812

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + - col0 NOT IN ( + col1 ) AND - 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 29 col1 FROM tab2 AS cor0
----
-11
-29
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9142
SELECT * FROM tab0 AS cor0 WHERE - 58 >= - 28 * ( - col2 ) * + + CAST( NULL AS SIGNED ) + - 27
----

skipif mysql # not compatible
query III rowsort label-9142
SELECT * FROM tab0 AS cor0 WHERE - 58 >= - 28 * ( - col2 ) * + + CAST ( NULL AS INTEGER ) + - 27
----

query I rowsort
SELECT ALL + 32 - ( - col0 ) FROM tab1 AS cor0
----
117
123
83

query I rowsort
SELECT col1 + - - 14 AS col0 FROM tab0 cor0
----
15
35
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT - COUNT( * ) * + SUM( ALL col2 ) * COUNT( * ) * 95 FROM tab0 AS cor0
----
-133380

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL col2 ) * COUNT ( * ) * 95 FROM tab0 AS cor0
----
-133380

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT + MIN( ALL + col2 ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + MIN ( ALL + col2 ) AS col0 FROM tab2 cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 2 / - - col1 - - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ALL MIN( + - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL MIN ( + - col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9149
SELECT DISTINCT col2 DIV + - 40 AS col2, - 84 DIV col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-1
NULL
-2
NULL

skipif mysql # not compatible
query II rowsort label-9149
SELECT DISTINCT col2 / + - 40 AS col2, - 84 / col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-1
NULL
-2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT + 57 * + COUNT( * ) DIV COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9150
SELECT + 57 * + COUNT ( * ) / COUNT ( * ) FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT - 23 * + + SUM( ALL col0 ) AS col0 FROM tab0
----
-4577

skipif mysql # not compatible
query I rowsort label-9151
SELECT - 23 * + + SUM ( ALL col0 ) AS col0 FROM tab0
----
-4577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT 73 / - CAST( NULL AS SIGNED ) * 30 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT 73 / - CAST ( NULL AS INTEGER ) * 30 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 9 col2 FROM tab0 AS cor0
----
-135
-783
-873

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT ALL 16 DIV + 10 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 16 / + 10 AS col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + - MIN( 52 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT + - MIN ( 52 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 * col1
----
NULL

query I rowsort
SELECT + col1 * + 31 FROM tab2
----
1581
2077
2387

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + col0 * + col0 - + 98 / + col2 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL - SUM( ALL + 23 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1 - 21 / 12 * col2, + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9158
SELECT ALL - SUM ( ALL + 23 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1 - 21 / 12 * col2, + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT col2 DIV + - col1 - + col1 - - col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-9159
SELECT col2 / + - col1 - + col1 - - col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query III rowsort label-9160
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - col1 + + col1 ) IN ( - 10 DIV - ( col1 ), - 95 ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9160
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - col1 + + col1 ) IN ( - 10 / - ( col1 ), - 95 ) )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT ALL + - col0 DIV + col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL + - col0 / + col2 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT + col2 AS col0, - col2 + - + col1 + + + col0 FROM tab2 AS cor0
----
23
-28
40
-53
58
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT ALL + 69 + + - MAX( DISTINCT - 8 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL + 69 + + - MAX ( DISTINCT - 8 ) FROM tab0
----
77

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NOT NULL > NULL ) OR NOT + col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL 48 * + col2 + - + col1 FROM tab2
----
1053
1843
2717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 col1, - 40 * - col2 col0 FROM tab2
----
87
1600
87
2320
87
920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9167
SELECT ALL * FROM tab1 WHERE + col2 + CAST( - - 14 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9167
SELECT ALL * FROM tab1 WHERE + col2 + CAST ( - - 14 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + 81 AS col2 FROM tab1
----
140
149
177

query I rowsort
SELECT DISTINCT - 66 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + COUNT( * ) - - MIN( + 67 ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-9170
SELECT + COUNT ( * ) - - MIN ( + 67 ) AS col0 FROM tab0
----
70

query I rowsort
SELECT DISTINCT - ( + 2 ) * - col0 * - 19 + col0 FROM tab0
----
-3219
-3589
-555

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9172
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 20 AND + col1 AND NOT ( NULL ) BETWEEN + - col1 + - col0 + col0 * - col0 AND - col1 * 38 * ( - col2 ) * + ( col1 ) * - CAST( + - 18 AS SIGNED ) - 28
----

skipif mysql # not compatible
query III rowsort label-9172
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 20 AND + col1 AND NOT ( NULL ) BETWEEN + - col1 + - col0 + col0 * - col0 AND - col1 * 38 * ( - col2 ) * + ( col1 ) * - CAST ( + - 18 AS INTEGER ) - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT - - 6 * + 0 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - - 6 * + 0 * + COUNT ( * ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - + col0 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + + 0 + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col2 * + 68 AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 IS NULL )
----

query II rowsort
SELECT + ( - col2 ), col2 FROM tab2
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col1 FROM tab2 cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) * - col1 NOT BETWEEN + + col1 * - - col0 * - col1 AND 9
----

query I rowsort
SELECT DISTINCT + + col1 * 13 * + 87 AS col2 FROM tab2 AS cor0
----
57681
75777
87087

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT 46 * - COUNT( * ) + + 68 + COUNT( * ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT 46 * - COUNT ( * ) + + 68 + COUNT ( * ) FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL - ( 28 ) FROM tab2
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / + + col1 + + - col2 / ( + col0 ) * + 94 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT ALL - 41 * MAX( DISTINCT - + 1 ), 37 AS col0 FROM tab2
----
41
37

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL - 41 * MAX ( DISTINCT - + 1 ), 37 AS col0 FROM tab2
----
41
37

query I rowsort
SELECT + 2 * + 98 FROM tab2 AS cor0
----
196
196
196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - col1 + + 25 + 7 + - + col2 * + 30 FROM tab2 AS cor0
----
1943
2781
4761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT DISTINCT - ( + + 79 ) DIV + MAX( DISTINCT + 8 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT - ( + + 79 ) / + MAX ( DISTINCT + 8 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - 87 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL 6 + + - 1 * + - 53 DIV - - 80 AS col0 FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL 6 + + - 1 * + - 53 / - - 80 AS col0 FROM tab2
----
6
6
6

query I rowsort
SELECT DISTINCT 91 + - col2 AS col2 FROM tab1
----
-5
23
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 * col0 col0 FROM tab2
----
-2852
-3968
-4650

query I rowsort
SELECT DISTINCT - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL - MAX( - ( - 59 ) ) AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL - MAX ( - ( - 59 ) ) AS col0 FROM tab2 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-9196
SELECT ALL - 51 DIV 92, col1 * col2 AS col1 FROM tab2 AS cor0
----
0
1173
0
3080
0
3886

skipif mysql # not compatible
query II rowsort label-9196
SELECT ALL - 51 / 92, col1 * col2 AS col1 FROM tab2 AS cor0
----
0
1173
0
3080
0
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-9197
SELECT ALL - col2 DIV + col1, col0 AS col1 FROM tab1 AS cor0
----
-1
91
-11
85
-6
51

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL - col2 / + col1, col0 AS col1 FROM tab1 AS cor0
----
-1
91
-11
85
-6
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 35 + col0 + ( col2 ) * + ( col0 ) col2 FROM tab1 AS cor0
----
6732
8075
9464

query I rowsort
SELECT - - 78 + - col1 AS col0 FROM tab2 AS cor0
----
1
11
27

query II rowsort
SELECT ALL + col0 * + 58 + + col0 AS col0, col1 FROM tab0
----
5133
21
5723
1
885
81

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 42 * 79 BETWEEN NULL AND + col2
----

query II rowsort
SELECT 46, 6 * + ( + - 75 ) AS col2 FROM tab2
----
46
-450
46
-450
46
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL - 13 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - 13 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT DISTINCT col0 - - - col1 DIV + + ( 38 ) FROM tab1
----
51
85
90

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT col0 - - - col1 / + + ( 38 ) FROM tab1
----
51
85
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - col1 * - col0 col1, - col2 FROM tab2
----
2397
-23
5005
-40
5092
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT MIN( - - col0 ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9206
SELECT MIN ( - - col0 ) col1 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT - col1 + col1 + - CAST( + + col0 AS SIGNED ) * + col2 * + - col1 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - col1 + col1 + - CAST ( + + col0 AS INTEGER ) * + col2 * + - col1 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + 79 * + col2 AS col1 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query II rowsort label-9209
SELECT ALL col0 DIV + - col1 AS col2, col0 * col0 FROM tab2
----
-1
5625
0
2116
0
4096

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL col0 / + - col1 AS col2, col0 * col0 FROM tab2
----
-1
5625
0
2116
0
4096

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - MAX( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9211
SELECT - MAX ( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0
----
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) / - - 4 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9213
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT - SUM( DISTINCT + - 81 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - SUM ( DISTINCT + - 81 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL + 33 AS col2 FROM tab0 cor0
----
33
33
33

query II rowsort
SELECT ALL 81 AS col2, 65 + col0 FROM tab0 AS cor0
----
81
152
81
162
81
80

query I rowsort
SELECT + 85 AS col0 FROM tab2 AS cor0 WHERE NOT 88 IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT + + COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + + COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col1 col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query II rowsort label-9220
SELECT + col0, + col1 * 19 * col0 DIV - col1 FROM tab0 AS cor0
----
15
-285
87
-1653
97
-1843

skipif mysql # not compatible
query II rowsort label-9220
SELECT + col0, + col1 * 19 * col0 / - col1 FROM tab0 AS cor0
----
15
-285
87
-1653
97
-1843

query I rowsort
SELECT ALL 36 * + col1 + + - col2 FROM tab0 WHERE NOT - - 36 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - 64 * - 3, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9223
SELECT COUNT( ALL + + col1 ) AS col0, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9223
SELECT COUNT ( ALL + + col1 ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT ALL col2 * - + 50 FROM tab1
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL - COUNT( * ) * + - 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL - COUNT ( * ) * + - 65 FROM tab1
----
195

query I rowsort
SELECT ( - - 86 ) * - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT col2 / - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT col2 / - + col0 IS NOT NULL
----
0

query I rowsort
SELECT 67 * + - ( - ( + col1 ) ) - + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-31
1299
5331

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - MIN( - ( col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - MIN ( - ( col0 ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 77 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL 75 + + COUNT( * ) - - + 33 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL 75 + + COUNT ( * ) - - + 33 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT COUNT( * ) + + 77 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-9232
SELECT COUNT ( * ) + + 77 FROM tab0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 66 = col2
----

query I rowsort
SELECT + 25 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9236
SELECT DISTINCT + 34 + - CAST( NULL AS SIGNED ) + col0, 27 col2 FROM tab1 AS cor0
----
NULL
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9236
SELECT DISTINCT + 34 + - CAST ( NULL AS INTEGER ) + col0, 27 col2 FROM tab1 AS cor0
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + + MIN( col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + + MIN ( col0 ) AS col0 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT col1 * - + col2 * + col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT + col2 DIV 66 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT + col2 / 66 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT 79 <> col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT DISTINCT - COUNT( * ) col0, MAX( + ( - col0 ) ) FROM tab1 cor0
----
-3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9241
SELECT DISTINCT - COUNT ( * ) col0, MAX ( + ( - col0 ) ) FROM tab1 cor0
----
-3
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT - col0 DIV + - 65 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9242
SELECT - col0 / + - 65 AS col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 6 >= col2
----

query I rowsort
SELECT ALL + col0 * + 17 FROM tab0
----
1479
1649
255

onlyif mysql # DIV for integer division: 
query II rowsort label-9245
SELECT ALL 74 * - col1, - col1 DIV - - 63 AS col2 FROM tab0
----
-1554
0
-5994
-1
-74
0

skipif mysql # not compatible
query II rowsort label-9245
SELECT ALL 74 * - col1, - col1 / - - 63 AS col2 FROM tab0
----
-1554
0
-5994
-1
-74
0

query I rowsort
SELECT + col0 - + 2 FROM tab0
----
13
85
95

query I rowsort
SELECT - 2 + col0 + col0 * - + col2 FROM tab0
----
-692
-785
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT 23 DIV + col0 * - col2 AS col1 FROM tab2 WHERE + - 80 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT 23 / + col0 * - col2 AS col1 FROM tab2 WHERE + - 80 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 22 + - 8 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT - ( + 64 ) - COUNT( * ) FROM tab1 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT - ( + 64 ) - COUNT ( * ) FROM tab1 cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL - 11 * COUNT( * ) * + + 69 AS col2 FROM tab2 AS cor0
----
-2277

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - 11 * COUNT ( * ) * + + 69 AS col2 FROM tab2 AS cor0
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL - 3 * 20 + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - 3 * 20 + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 73 ) * - 15 * 67 IS NOT NULL
----

query I rowsort
SELECT 59 * 75 AS col1 FROM tab1
----
4425
4425
4425

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT + ( + COUNT( * ) ) * 27 DIV + COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9256
SELECT + ( + COUNT ( * ) ) * 27 / + COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT SUM( + col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT SUM ( + col1 ) AS col1 FROM tab2 cor0
----
195

query II rowsort
SELECT 79, - col1 AS col0 FROM tab2 cor0
----
79
-51
79
-67
79
-77

query I rowsort
SELECT + 12 * - - col0 AS col2 FROM tab0 AS cor0
----
1044
1164
180

query I rowsort
SELECT - 83 * + + col2 AS col1 FROM tab0 AS cor0
----
-3901
-8217
-830

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab0 AS cor0 WHERE 20 * + col0 + col2 IS NOT NULL
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col2, 9 * - col1 + - + col0 FROM tab2 AS cor0
----
51
-505
67
-678
77
-757

query I rowsort
SELECT ALL + col0 * + col0 + + col0 FROM tab2
----
2162
4160
5700

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + - ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT - col1 DIV + 69 * - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT - col1 / + 69 * - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 91 * - + col1 + + col2 FROM tab0 AS cor0
----
-1901
-7324
8

query I rowsort
SELECT ALL + 8 AS col1 FROM tab2 WHERE NOT 47 IS NULL
----
8
8
8

query I rowsort
SELECT + 84 + 13 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT COUNT( DISTINCT - 33 ) + + SUM( - - 61 ) AS col1 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-9269
SELECT COUNT ( DISTINCT - 33 ) + + SUM ( - - 61 ) AS col1 FROM tab1 AS cor0
----
184

query I rowsort
SELECT ALL 92 + + - ( - col1 ) + - col0 * col2 + - 7 AS col1 FROM tab2 AS cor0
----
-2398
-4198
-922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT DISTINCT - - ( - + ( + - col2 ) ) * - col2 * CAST( NULL AS SIGNED ) * - - 11 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT - - ( - + ( + - col2 ) ) * - col2 * CAST ( NULL AS INTEGER ) * - - 11 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 69 * - 96 * - col2 - + col2 AS col0 FROM tab1 AS cor0
----
390757
450364
635808

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL SUM( ALL + + col2 ) * - - COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL SUM ( ALL + + col2 ) * - - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
468

query I rowsort
SELECT - col1 + - col2 * + 43 AS col1 FROM tab1 AS cor0
----
-2542
-2971
-4142

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL COUNT( * ) - + - MIN( ALL 22 ) AS col1 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL COUNT ( * ) - + - MIN ( ALL 22 ) AS col1 FROM tab0 AS cor0
----
25

query III rowsort
SELECT * FROM tab0 WHERE ( - 29 ) > + 11 + 74 + + col2 + col1
----

query I rowsort
SELECT ALL 32 * col1 AS col1 FROM tab0
----
2592
32
672

query III rowsort
SELECT * FROM tab0 WHERE - 36 + + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL - 24 * - 82 + - COUNT( * ) AS col1 FROM tab1
----
1965

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL - 24 * - 82 + - COUNT ( * ) AS col1 FROM tab1
----
1965

query I rowsort
SELECT DISTINCT col2 + 64 FROM tab1
----
123
132
160

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 DISTINCT + 2 - + 11 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - 89 * - + col1 - + 16 FROM tab2 AS cor0
----
4523
5947
6837

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT - 64 DIV 39 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - 64 / 39 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT MIN( DISTINCT - + CAST( + + col0 AS SIGNED ) ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9285
SELECT MIN ( DISTINCT - + CAST ( + + col0 AS INTEGER ) ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col0 + - + col0 + 68 + - 5 * + 32 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9287
SELECT - 71 DIV col2 AS col0, 29 FROM tab2
----
-1
29
-1
29
-3
29

skipif mysql # not compatible
query II rowsort label-9287
SELECT - 71 / col2 AS col0, 29 FROM tab2
----
-1
29
-1
29
-3
29

query I rowsort
SELECT DISTINCT 69 * + - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + COUNT( * ) col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9289
SELECT + COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 9 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 1 = - + col2 + col1
----

query I rowsort
SELECT - 76 * + - col0 FROM tab2
----
3496
4864
5700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 10 IN ( + col0, + 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 + + - col1 = + 53
----

query I rowsort
SELECT DISTINCT - 35 + - col1 FROM tab0
----
-116
-36
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 40 col1 FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT COUNT( * ) + + MAX( + col1 ) FROM tab0 cor0 WHERE ( NOT 14 * - col2 * - 72 * - + col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT COUNT ( * ) + + MAX ( + col1 ) FROM tab0 cor0 WHERE ( NOT 14 * - col2 * - 72 * - + col0 IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col2 FROM tab1 AS cor0 WHERE NOT col1 * - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT + MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) < col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + COUNT( * ) + + ( - + 83 ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + COUNT ( * ) + + ( - + 83 ) AS col0 FROM tab1
----
-80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + - col0 / + col2 * + 95 NOT IN ( col0 * - - col2 + - - 83, + col0 * 91 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT ( - 34 ) * + COUNT( * ) * 18 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ( - 34 ) * + COUNT ( * ) * 18 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 66 - + col0 AS col2 FROM tab1 AS cor0
----
-117
-151
-157

query II rowsort
SELECT ALL - 2 AS col1, 98 AS col0 FROM tab2 AS cor0
----
-2
98
-2
98
-2
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9305
SELECT COUNT( ALL - + 74 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + 5 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9305
SELECT COUNT ( ALL - + 74 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + 5 IS NULL
----
0
NULL

query I rowsort
SELECT + 75 - + col1 + + - 21 FROM tab2
----
-13
-23
3

query I rowsort
SELECT ALL - 81 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + 32 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL + CAST( MAX( ALL + - ( - col0 ) ) AS SIGNED ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + CAST ( MAX ( ALL + - ( - col0 ) ) AS INTEGER ) AS col1 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL - - col1 * col2 - col2 FROM tab0 cor0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ( COUNT( DISTINCT 99 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9311
SELECT ( COUNT ( DISTINCT 99 ) ) AS col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL col2 AS col1, + 34 + + + col0 AS col0 FROM tab2 AS cor0 WHERE col1 + ( ( - - 50 ) ) * + + col2 * + - col2 IS NOT NULL
----
23
80
40
98
58
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + MAX( DISTINCT - 72 ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9313
SELECT + MAX ( DISTINCT - 72 ) AS col2 FROM tab1 AS cor0
----
-72

query II rowsort
SELECT ALL + col1 * col0, 69 AS col1 FROM tab1 AS cor0
----
425
69
4277
69
714
69

query I rowsort
SELECT + ( + 60 ) AS col1 FROM tab0
----
60
60
60

query III rowsort
SELECT * FROM tab2 WHERE NOT + 30 * - + col0 < - col1 AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT 63 * - CAST( 39 AS SIGNED ) AS col0 FROM tab1
----
-2457
-2457
-2457

skipif mysql # not compatible
query I rowsort label-9317
SELECT 63 * - CAST ( 39 AS INTEGER ) AS col0 FROM tab1
----
-2457
-2457
-2457

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col1 ) * + col0 = - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL CAST( + 80 AS SIGNED ) * + col2 FROM tab1 cor0
----
4720
5440
7680

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL CAST ( + 80 AS INTEGER ) * + col2 FROM tab1 cor0
----
4720
5440
7680

query I rowsort
SELECT - + col0 * + col1 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT ALL + + 2 * + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - - col0 + + 1 FROM tab0 AS cor0 WHERE NOT ( 77 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT - col0 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT - col0 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT + + COUNT( * ) * 51 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-459

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9324
SELECT DISTINCT + + COUNT ( * ) * 51 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-459

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + 73 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9326
SELECT COUNT( * ) DIV - - 76 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9326
SELECT COUNT ( * ) / - - 76 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 78 + 58 FROM tab1
----
136
136
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT COUNT( * ) + - COUNT( + col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT COUNT ( * ) + - COUNT ( + col0 ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT DISTINCT 85 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT 85 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9331
SELECT col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col0, CAST( + 0 AS DECIMAL ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-9331
SELECT col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col0, CAST ( + 0 AS REAL ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT COUNT( ALL - + 75 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9332
SELECT COUNT ( ALL - + 75 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 + + 92 AS col1 FROM tab2 AS cor0
----
15
25
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9334
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 80 + - + 42 FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9336
SELECT DISTINCT - - col2 AS col2, col0 AS col0 FROM tab1 AS cor0 WHERE - 93 / + + CAST( NULL AS DECIMAL ) / + CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9336
SELECT DISTINCT - - col2 AS col2, col0 AS col0 FROM tab1 AS cor0 WHERE - 93 / + + CAST ( NULL AS REAL ) / + CAST ( - col0 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + col0 + ( - 0 ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> - 64 * + col2
----

query II rowsort
SELECT + col1 * - 11 AS col2, col0 * col2 * - col0 * ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9340
SELECT * FROM tab2 AS cor0 WHERE + CAST( col2 AS DECIMAL ) - - + 69 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9340
SELECT * FROM tab2 AS cor0 WHERE + CAST ( col2 AS REAL ) - - + 69 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 41 * + col2 * + col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + 64 col1 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT col0 + - col0 * col2 * + 90 AS col1 FROM tab1 AS cor0
----
-440589
-451265
-556829

query I rowsort
SELECT DISTINCT + - col2 - + col2 * + 65 FROM tab2 AS cor0
----
-1518
-2640
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL - CAST( col0 AS SIGNED ) * + col2 - 16 + - - col0 - - ( - 68 ) + col0 * - - col0 AS col1 FROM tab2 AS cor0
----
1020
1266
1516

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - CAST ( col0 AS INTEGER ) * + col2 - 16 + - - col0 - - ( - 68 ) + col0 * - - col0 AS col1 FROM tab2 AS cor0
----
1020
1266
1516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT - + col2 - - CAST( - 83 AS SIGNED ) FROM tab1 AS cor0
----
-142
-151
-179

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - + col2 - - CAST ( - 83 AS INTEGER ) FROM tab1 AS cor0
----
-142
-151
-179

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * ( - + col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT 77 * 35 FROM tab1
----
2695
2695
2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 AS col0, + 11 col2 FROM tab0
----
99
11
99
11
99
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT MIN( ALL + + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9351
SELECT MIN ( ALL + + col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL <= 6
----

query I rowsort
SELECT 97 * - - col2 FROM tab2
----
2231
3880
5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT - MIN( DISTINCT + col2 ) * + CAST( NULL AS SIGNED ) * + 69 + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT - MIN ( DISTINCT + col2 ) * + CAST ( NULL AS INTEGER ) * + 69 + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + - col0 = ( + 22 )
----

query I rowsort
SELECT + 10 * + - col0 + 32 + - col2 * col0 FROM tab1
----
-5374
-5833
-7066

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT + 20 * 4 AS col0, - ( - COUNT( * ) ) FROM tab1 AS cor0
----
80
3

skipif mysql # not compatible
query II rowsort label-9358
SELECT + 20 * 4 AS col0, - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
80
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL - - MIN( + ( - col0 ) ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9359
SELECT ALL - - MIN ( + ( - col0 ) ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT - COUNT( DISTINCT - + col1 ) + - + ( - + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT - COUNT ( DISTINCT - + col1 ) + - + ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT ALL - 6 + 27, + COUNT( * ) AS col2 FROM tab2 cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-9361
SELECT ALL - 6 + 27, + COUNT ( * ) AS col2 FROM tab2 cor0
----
21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT - MAX( + - 40 ) + 14 AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - MAX ( + - 40 ) + 14 AS col1 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9364
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN CAST( 16 AS SIGNED ) + - col0 AND - 71
----

skipif mysql # not compatible
query III rowsort label-9364
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN CAST ( 16 AS INTEGER ) + - col0 AND - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL SUM( + 27 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL SUM ( + 27 ) FROM tab0 cor0
----
81

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( - 34 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL ( - + ( col2 ) ) FROM tab1 AS cor0 WHERE + 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT col0 DIV - + col0 + col2 * - col0 - - col2 AS col0 FROM tab2 AS cor0
----
-1036
-2521
-4293

skipif mysql # not compatible
query I rowsort label-9368
SELECT col0 / - + col0 + col2 * - col0 - - col2 AS col0 FROM tab2 AS cor0
----
-1036
-2521
-4293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 26 + + + 0 col0 FROM tab2 AS cor0
----
-1326
-1742
-2002

query I rowsort
SELECT ALL + ( + 14 ) AS col1 FROM tab0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT 81 * 95 AS col2 FROM tab1
----
7695
7695
7695

query I rowsort
SELECT col2 * + 86 FROM tab0
----
4042
8514
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * + col1 col0 FROM tab2
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL COUNT( DISTINCT col2 ) * 35 AS col0 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL COUNT ( DISTINCT col2 ) * 35 AS col0 FROM tab2
----
105

query I rowsort
SELECT DISTINCT col2 * + 91 AS col1 FROM tab1
----
5369
6188
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT MAX( 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT MAX ( 14 ) FROM tab2
----
14

query I rowsort
SELECT 30 - + col0 FROM tab2
----
-16
-34
-45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND 74 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT MAX( DISTINCT col2 ) * 75 FROM tab1
----
7200

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT MAX ( DISTINCT col2 ) * 75 FROM tab1
----
7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9380
SELECT ALL CAST( NULL AS DECIMAL ) * AVG ( DISTINCT ( - 57 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL CAST ( NULL AS REAL ) * AVG ( DISTINCT ( - 57 ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT - col2 <> col0 - - 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( + col1 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT - col2 DIV 22 AS col1 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-9384
SELECT - col2 / 22 AS col1 FROM tab1
----
-2
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( col0 ) col0 FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9387
SELECT CAST( - ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT CAST ( - ( - CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + 27 FROM tab2
----
-13
-31
4

query I rowsort
SELECT + 25 * + col2 FROM tab2 WHERE - col1 BETWEEN 22 + col2 AND - 56 * col2 + + 25 * - ( col1 + col1 )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 53 + 52 FROM tab1 WHERE NULL IS NULL
----
-1

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + 14 IS NOT NULL
----

query I rowsort
SELECT 21 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + 36 + + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + 36 + + COUNT ( * ) FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT 12 + - CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT + 9 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9395
SELECT 12 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT + 9 IS NOT NULL
----

query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
-141
-142
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + - col1 * - 47 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN - 31 + 16 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab1 WHERE ( - col0 - - 56 ) = 39
----

query I rowsort
SELECT ALL + ( ( + col0 ) ) * 30 AS col1 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT ALL + col1 * 53 AS col2 FROM tab2
----
2703
3551
4081

query I rowsort
SELECT - 76 FROM tab0 WHERE NOT - 93 BETWEEN NULL AND ( 35 )
----

query I rowsort
SELECT - ( 54 ) * + col1 AS col2 FROM tab1 cor0
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT - SUM( ALL ( - col1 ) ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9404
SELECT - SUM ( ALL ( - col1 ) ) col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + - ( 72 ) * + 74 AS col2 FROM tab2 AS cor0
----
-5328
-5328
-5328

query I rowsort
SELECT ALL - 58 * + col1 AS col2 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT COUNT( * ) * MIN( - col0 * + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-24843

skipif mysql # not compatible
query I rowsort label-9407
SELECT COUNT ( * ) * MIN ( - col0 * + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-24843

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - - 43 + + 14 AS col0 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT + 60 * + col2 + col1 FROM tab2 AS cor0
----
1431
2477
3547

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT - col0 DIV 87 + col2 DIV col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9411
SELECT - col0 / 87 + col2 / col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + col0 col0 FROM tab0 AS cor0
----
103
175
185

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND 27 * 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + col1 col2 FROM tab2
----
123
139
149

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 * col0 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col1 NOT IN ( 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + COUNT( * ) + 2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COUNT ( * ) + 2 FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col1 * - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT COUNT( - col0 ) * + ( + 90 ) - - COUNT( 18 ) col2 FROM tab0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9419
SELECT DISTINCT COUNT ( - col0 ) * + ( + 90 ) - - COUNT ( 18 ) col2 FROM tab0
----
273

query III rowsort
SELECT * FROM tab1 WHERE ( 1 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 32 + + + col2 FROM tab0
----
-22
15
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + MIN( 76 ) * 80 AS col2 FROM tab1 AS cor0
----
6080

skipif mysql # not compatible
query I rowsort label-9424
SELECT + MIN ( 76 ) * 80 AS col2 FROM tab1 AS cor0
----
6080

query I rowsort
SELECT 43 * col0 AS col0 FROM tab2 cor0
----
1978
2752
3225

query I rowsort
SELECT 78 - 33 AS col0 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + + col0 - + ( col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT DISTINCT col0 * - + CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT col0 * - + CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ( + ( - col1 ) ) + col0 AS col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - COUNT( * ) + + 18 AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - COUNT ( * ) + + 18 AS col0 FROM tab2
----
15

query I rowsort
SELECT 81 * col2 + - 81 FROM tab2
----
1782
3159
4617

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT DISTINCT col2 DIV - 12 AS col1 FROM tab1
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT col2 / - 12 AS col1 FROM tab1
----
-4
-5
-8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 0 <= + col0
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( - - 94 ) AND ( col1 )
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( col1 ) * - 85 AND ( 19 ) OR NOT col0 * col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 59 * + - 93 FROM tab1 cor0
----
5487

query I rowsort
SELECT ALL + col1 * + col0 + 53 FROM tab1 AS cor0
----
4330
478
767

query I rowsort
SELECT 45 AS col1 FROM tab1 cor0
----
45
45
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 26 >= NULL
----

query I rowsort
SELECT col2 * 30 * + col2 * - col1 FROM tab2
----
-3696000
-6761640
-809370

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL + MIN( - col1 ) * COUNT( * ) FROM tab0 WHERE NOT - col1 <= - col1 * 4
----
-243

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + MIN ( - col1 ) * COUNT ( * ) FROM tab0 WHERE NOT - col1 <= - col1 * 4
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col1 col1 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9445
SELECT col2 / - - CAST( + col2 AS DECIMAL ) * 4 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9445
SELECT col2 / - - CAST ( + col2 AS REAL ) * 4 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - COUNT( * ) * 58 AS col0 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-9446
SELECT - COUNT ( * ) * 58 AS col0 FROM tab2
----
-174

query I rowsort
SELECT DISTINCT 71 + 53 AS col1 FROM tab2
----
124

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9450
SELECT + CAST( NULL AS DECIMAL ) * + col1 * - 47 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT + CAST ( NULL AS REAL ) * + col1 * - 47 + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - ( + - 17 ) + - COUNT( * ) + + COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - ( + - 17 ) + - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
17

onlyif mysql # DIV for integer division: 
query III rowsort label-9452
SELECT DISTINCT + + 85 col0, + col1 DIV + - col0 col2, col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to a2a74a75363381d4ac3bd7fc8bb26a5f

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9452
SELECT DISTINCT + + 85 col0, + col1 / + - col0 col2, col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to a2a74a75363381d4ac3bd7fc8bb26a5f

query I rowsort
SELECT + + 84 AS col1 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 69 ) * + 22 * + 12 * + col0 + + col2 FROM tab0 AS cor0
----
-1584782
-1766853
-273193

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + ( + 7 ) * + 81 + - col1 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9458
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + + col2 - + CAST( NULL AS DECIMAL ) IN ( - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9458
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + + col2 - + CAST ( NULL AS REAL ) IN ( - CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT ALL - + CAST( + 66 AS SIGNED ) AS col1 FROM tab0 cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - + CAST ( + 66 AS INTEGER ) AS col1 FROM tab0 cor0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT ( - col1 ) DIV 67 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT ( - col1 ) / 67 AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL - 98 * - col2 AS col1 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 - + - col0 col1 FROM tab0
----
109
119
37

query I rowsort
SELECT ALL 77 * + 3 - col2 + + col0 FROM tab1
----
186
254
257

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT DISTINCT + 38 DIV 28 + - - col0 AS col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + 38 / 28 + - - col0 AS col0 FROM tab1
----
52
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 * col0 - - - col0 col1 FROM tab0
----
-1230
-7134
-7954

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE ( + + col0 ) NOT IN ( col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT MAX( - - 20 ) - + - 69 AS col1 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT MAX ( - - 20 ) - + - 69 AS col1 FROM tab0 AS cor0
----
89

query III rowsort
SELECT * FROM tab2 WHERE - col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9470
SELECT + COUNT( * ), MIN( - 10 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-10

skipif mysql # not compatible
query II rowsort label-9470
SELECT + COUNT ( * ), MIN ( - 10 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-10

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NOT + 23 IS NULL, tab0 AS cor2
----
243 values hashing to 5a5e6faadf06feb19acd092d0a5487aa

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT + col0 + + CAST( 84 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 63 ) >= + CAST( col0 AS SIGNED ) )
----
169
175

skipif mysql # not compatible
query I rowsort label-9472
SELECT + col0 + + CAST ( 84 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 63 ) >= + CAST ( col0 AS INTEGER ) )
----
169
175

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9474
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 11 * CAST( NULL AS DECIMAL ) + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9474
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 11 * CAST ( NULL AS REAL ) + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT ALL + + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + + col0 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT col1 * + ( - + 11 ) AS col0 FROM tab0 AS cor0
----
-11
-231
-891

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT - 65 DIV - col0 AS col1 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT - 65 / - col0 AS col1 FROM tab0
----
0
4

onlyif mysql # DIV for integer division: 
query II rowsort label-9479
SELECT col1 AS col1, col0 * col1 DIV - + col0 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
query II rowsort label-9479
SELECT col1 AS col1, col0 * col1 / - + col0 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - 71 * + col2 + - - col1 BETWEEN 33 / col1 * col0 AND NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT ALL COUNT( * ) AS col0, 3 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9481
SELECT ALL COUNT ( * ) AS col0, 3 FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - 23 NOT IN ( + 99, col1 + + col2 * + col1 )
----

query I rowsort
SELECT DISTINCT + 96 / + + col2 FROM tab1 WHERE NOT ( NULL ) > 5
----

query I rowsort
SELECT DISTINCT 80 * + - col0 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT - COUNT( - 46 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9485
SELECT - COUNT ( - 46 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL ( 39 ) AS col0 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT CAST( + - COUNT( - - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9487
SELECT CAST ( + - COUNT ( - - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL + - 38 * + - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
342

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + - 38 * + - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
342

onlyif mysql # DIV for integer division: 
query II rowsort label-9489
SELECT DISTINCT + 58 DIV + 55 AS col1, col1 FROM tab0 AS cor0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-9489
SELECT DISTINCT + 58 / + 55 AS col1, col1 FROM tab0 AS cor0
----
1
1
1
21
1
81

query I rowsort
SELECT - - ( + + col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 30 * + col1 = - col0
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 30 * + col1 = - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col2 col1 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT + col0 - col1 + - - col2 AS col0 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE - 89 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + ( + - col1 ) * ( + col0 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT ( 64 ) + + COUNT( col2 ) * + ( + 59 ) AS col1 FROM tab0
----
241

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT ( 64 ) + + COUNT ( col2 ) * + ( + 59 ) AS col1 FROM tab0
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT SUM( col0 ) - - COUNT( * ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT SUM ( col0 ) - - COUNT ( * ) AS col2 FROM tab2
----
188

query II rowsort
SELECT ALL - ( - 30 ) - col2 * + ( + 49 ) AS col0, col0 FROM tab2
----
-1097
46
-1930
64
-2812
75

query I rowsort
SELECT - + 44 - - + col2 FROM tab0 AS cor0
----
-34
3
55

query I rowsort
SELECT ( 61 ) - - col0 + - col2 FROM tab2 cor0
----
78
84
85

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 > col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT - COUNT( - + 10 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT - COUNT ( - + 10 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 9 > NULL
----

query I rowsort
SELECT col0 * 92 * col1 AS col0 FROM tab1
----
39100
393484
65688

query I rowsort
SELECT + 45 FROM tab0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT - SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT 31 * col0 AS col0 FROM tab2
----
1426
1984
2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT DISTINCT col0 * - + 23 / - col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT col0 * - + 23 / - col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9511
SELECT - CAST( - 94 AS SIGNED ) AS col1, 97 * col2 FROM tab1 AS cor0
----
94
5723
94
6596
94
9312

skipif mysql # not compatible
query II rowsort label-9511
SELECT - CAST ( - 94 AS INTEGER ) AS col1, 97 * col2 FROM tab1 AS cor0
----
94
5723
94
6596
94
9312

query I rowsort
SELECT ALL - - 74 * 77 FROM tab2 cor0
----
5698
5698
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL 77 + + - COUNT( * ) * - COUNT( + col0 ) AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL 77 + + - COUNT ( * ) * - COUNT ( + col0 ) AS col0 FROM tab1
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9514
SELECT ALL - col2 + col1 * + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9514
SELECT ALL - col2 + col1 * + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9515
SELECT * FROM tab2 AS cor0 WHERE - 8 NOT IN ( + - 66, + CAST( NULL AS SIGNED ) + - ( 51 ) )
----

skipif mysql # not compatible
query III rowsort label-9515
SELECT * FROM tab2 AS cor0 WHERE - 8 NOT IN ( + - 66, + CAST ( NULL AS INTEGER ) + - ( 51 ) )
----

query I rowsort
SELECT + 74 + + col0 + - col1 * col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9517
SELECT - 17 - - - 4 + + col2 DIV 70 + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
31
64
70

skipif mysql # not compatible
query I rowsort label-9517
SELECT - 17 - - - 4 + + col2 / 70 + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
31
64
70

query I rowsort
SELECT - 34 * - col1 - - + col2 AS col1 FROM tab0
----
133
2801
724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - 73, + 20 col1 FROM tab2
----
-15
20
-33
20
-50
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT ( + + 8 ) DIV + + ( + col2 ) - ( + - col1 ) col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9520
SELECT ( + + 8 ) / + + ( + col2 ) - ( + - col1 ) col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT ALL ( + CAST( + 69 AS SIGNED ) ) FROM tab0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL ( + CAST ( + 69 AS INTEGER ) ) FROM tab0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT + SUM( - 71 ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + SUM ( - 71 ) FROM tab2
----
-213

query I rowsort
SELECT + 76 + - + col2 FROM tab1
----
-20
17
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col0 FROM tab0 WHERE NULL IS NULL
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT ALL + CAST( - + 10 AS SIGNED ) + - col2 FROM tab0
----
-109
-20
-57

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + CAST ( - + 10 AS INTEGER ) + - col2 FROM tab0
----
-109
-20
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 / - col2 + - 81 * - 27 * col2 ) IN ( 24 + - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 49 * + 32 * + col0 AS col2, - col2 * - 74 FROM tab0
----
136416
740
152096
7326
23520
3478

query I rowsort
SELECT ALL ( 81 ) FROM tab1
----
81
81
81

query I rowsort
SELECT 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT - SUM( DISTINCT + - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) FROM tab2
----
195

query II rowsort
SELECT - 31, - col1 * + col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT - col1 DIV - 86 - - + 4 * - + col0 * - - 53 FROM tab0 cor0
----
-18444
-20564
-3180

skipif mysql # not compatible
query I rowsort label-9533
SELECT - col1 / - 86 - - + 4 * - + col0 * - - 53 FROM tab0 cor0
----
-18444
-20564
-3180

query I rowsort
SELECT ALL col1 * col1 * 60 AS col1 FROM tab2 AS cor0
----
156060
269340
355740

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9535
SELECT - col1 col2, - CAST( + col0 AS SIGNED ) DIV col2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
-8
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9535
SELECT - col1 col2, - CAST ( + col0 AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
-8
-81
0

query I rowsort
SELECT - - 46 AS col0 FROM tab0 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT COUNT( * ) AS col0, + 63 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3
189

skipif mysql # not compatible
query II rowsort label-9537
SELECT COUNT ( * ) AS col0, + 63 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3
189

query I rowsort
SELECT + + 47 AS col2 FROM tab1 cor0
----
47
47
47

query II rowsort
SELECT ALL + - col1 AS col0, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - COUNT( + - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9540
SELECT - COUNT ( + - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT + col1 * + + col1 * - CAST( - 32 AS SIGNED ) + 50 FROM tab2
----
143698
189778
83282

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT + col1 * + + col1 * - CAST ( - 32 AS INTEGER ) + 50 FROM tab2
----
143698
189778
83282

query I rowsort
SELECT DISTINCT + col1 - + 7 AS col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 34 * + col2 + - col2 * - 76 * - col0 IN ( - col1 * - col2 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + - col2 ) col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + MAX( DISTINCT - ( + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + MAX ( DISTINCT - ( + col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT + + CAST( - + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9547
SELECT + + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 70 AS col1, col1 col0 FROM tab1 AS cor0
----
70
14
70
47
70
5

query I rowsort
SELECT col1 * - 65 FROM tab1
----
-3055
-325
-910

query I rowsort
SELECT ALL - ( 17 ) * - 78 + - + 30 * + + col0 FROM tab2
----
-54
-594
-924

query III rowsort
SELECT * FROM tab1 WHERE - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT + col0 + - CAST( - 64 AS SIGNED ) FROM tab1 AS cor0
----
115
149
155

skipif mysql # not compatible
query I rowsort label-9552
SELECT + col0 + - CAST ( - 64 AS INTEGER ) FROM tab1 AS cor0
----
115
149
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) - COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9553
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT 21 + - 69 col2, COUNT( * ) FROM tab1 AS cor0
----
-48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9554
SELECT 21 + - 69 col2, COUNT ( * ) FROM tab1 AS cor0
----
-48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + - ( - - 32 ) * - - 45 - COUNT( * ) + - 73 AS col0 FROM tab0 AS cor0
----
-1516

skipif mysql # not compatible
query I rowsort label-9555
SELECT + - ( - - 32 ) * - - 45 - COUNT ( * ) + - 73 AS col0 FROM tab0 AS cor0
----
-1516

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9556
SELECT CAST( NULL AS DECIMAL ) + CAST( - - 13 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT CAST ( NULL AS REAL ) + CAST ( - - 13 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT + col1 + 22 + + col2 + - 28 * + CAST( NULL AS SIGNED ) * + + 66 / - - 17 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9557
SELECT + col1 + 22 + + col2 + - 28 * + CAST ( NULL AS INTEGER ) * + + 66 / - - 17 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 - + col0 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 89 col0 FROM tab2 AS cor0
----
4094
5696
6675

query II rowsort
SELECT DISTINCT col1 * + + col2 AS col1, 49 AS col2 FROM tab2 cor0
----
1173
49
3080
49
3886
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9561
SELECT DISTINCT col2 * col2 * col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9561
SELECT DISTINCT col2 * col2 * col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT + MAX( - 37 ) AS col2 FROM tab2, tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + MAX ( - 37 ) AS col2 FROM tab2, tab1 AS cor0
----
-37

query I rowsort
SELECT col1 FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT + col1 / CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT + col1 / CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + - col2 AS col2, + 91 FROM tab0 AS cor0
----
-10
91
-47
91
-99
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT DISTINCT + - COUNT( * ) AS col2, 6 FROM tab2 AS cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-9566
SELECT DISTINCT + - COUNT ( * ) AS col2, 6 FROM tab2 AS cor0
----
-3
6

query II rowsort
SELECT ALL - + col1, - 24 AS col2 FROM tab0 AS cor0
----
-1
-24
-21
-24
-81
-24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( - ( - 59 ), + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT - col2 DIV + 54 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT - col2 / + 54 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL - - SUM( DISTINCT - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - - SUM ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT - col2 DIV col1 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9572
SELECT - col2 / col1 + + col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col0 * col0 - - ( - 79 ) - + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT SUM( DISTINCT - 8 ) AS col0 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-9574
SELECT SUM ( DISTINCT - 8 ) AS col0 FROM tab2
----
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + 77 > + + col2
----

query I rowsort
SELECT - col0 * - - 85 AS col0 FROM tab2
----
-3910
-5440
-6375

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col1 AND NOT - 54 + - - col0 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9578
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 2 <= col0 AND + 34 + - col1 NOT IN ( - + CAST( - 28 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9578
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 2 <= col0 AND + 34 + - col1 NOT IN ( - + CAST ( - 28 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT + COUNT( * ) + - MAX( ALL col2 ) FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9579
SELECT + COUNT ( * ) + - MAX ( ALL col2 ) FROM tab1 cor0
----
-93

query II rowsort
SELECT ALL + col0 AS col2, - 4 * - col1 FROM tab1 AS cor0
----
51
56
85
20
91
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT COUNT( * ) * - + 41 FROM tab2 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT COUNT ( * ) * - + 41 FROM tab2 cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT - + ( MIN( DISTINCT + 86 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT - + ( MIN ( DISTINCT + 86 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 67 IS NULL )
----

query I rowsort
SELECT ALL - col0 - col1 - - col2 FROM tab1
----
-31
-70
31

query I rowsort
SELECT ALL col0 - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + - 65 col1 FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
-6175
-6175
-6175

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 7 AND + - col0
----

query I rowsort
SELECT col1 - + - 85 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT DISTINCT - + ( 90 ) * - col2 + col2 AS col0 FROM tab1 AS cor0
----
5369
6188
8736

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT - 54 - + col1 DIV - 8 AS col0 FROM tab2 cor0
----
-45
-46
-48

skipif mysql # not compatible
query I rowsort label-9591
SELECT - 54 - + col1 / - 8 AS col0 FROM tab2 cor0
----
-45
-46
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT DISTINCT - col2 DIV col1 - ( + + 18 ) FROM tab1 AS cor0
----
-19
-24
-29

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT - col2 / col1 - ( + + 18 ) FROM tab1 AS cor0
----
-19
-24
-29

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - 82 col1 FROM tab0 WHERE NOT - 58 = - + 39
----
-17
35
72

query II rowsort
SELECT + col0, col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE col0 * + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 * + - col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col2 FROM tab2 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + ( - MAX( DISTINCT 82 ) ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + ( - MAX ( DISTINCT 82 ) ) FROM tab2 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT ALL 76 DIV 9 FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL 76 / 9 FROM tab0
----
8
8
8

query I rowsort
SELECT - - 19 FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 AND - col0
----

query I rowsort
SELECT ALL + + ( - - col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + + 88 AS col2 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT + + 68 DIV + 60 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9603
SELECT + + 68 / + 60 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * 32 AS col1 FROM tab2 AS cor0
----
-1280
-1856
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - - col0 + + 53, col0 + - + 9 col1 FROM tab2 AS cor0
----
2169
37
4149
55
5678
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT - - COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9606
SELECT - - COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT col0 AS col2, 20 * + col2 AS col2 FROM tab2 AS cor0
----
46
460
64
800
75
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9608
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + - 45 + - col2 FROM tab1 AS cor0
----
-104
-113
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT ALL + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - COUNT( * ) + - - 86 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-9611
SELECT - COUNT ( * ) + - - 86 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT COUNT( * ) + - 12 + - COUNT( * ) * 46 col2 FROM tab0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9612
SELECT DISTINCT COUNT ( * ) + - 12 + - COUNT ( * ) * 46 col2 FROM tab0
----
-147

query I rowsort
SELECT DISTINCT 95 + 95 FROM tab2
----
190

query I rowsort
SELECT ALL - 98 + + 1 AS col1 FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9615
SELECT ALL + MIN( DISTINCT + - col2 ) DIV 63 + + 29 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + MIN ( DISTINCT + - col2 ) / 63 + + 29 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL + + col2 * + col0 * - ( + 48 ) + + + col0 AS col0 FROM tab2 AS cor0
----
-122816
-208725
-50738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT + + 10 + + - ( - - CAST( NULL AS SIGNED ) ) + + 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT + + 10 + + - ( - - CAST ( NULL AS INTEGER ) ) + + 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * col1 * - + col2 >= NULL
----

query I rowsort
SELECT ALL - - 6 * ( - - col0 ) FROM tab0 AS cor0
----
522
582
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9621
SELECT + + 97 DIV - col1 - - col0 + 73 AS col2, + 28 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
118
28
139
28
162
28

skipif mysql # not compatible
query II rowsort label-9621
SELECT + + 97 / - col1 - - col0 + 73 AS col2, + 28 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
118
28
139
28
162
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9622
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT MAX( DISTINCT + + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT MAX ( DISTINCT + + col2 ) FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT MAX( ALL - ( - 27 ) ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT MAX ( ALL - ( - 27 ) ) AS col0 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT 0 DIV 37 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT 0 / 37 FROM tab1
----
0

query II rowsort
SELECT col0, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, 79 * + col0 col2 FROM tab2
----
46
3634
64
5056
75
5925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 16 * + col1 FROM tab1
----
NULL
224
NULL
752
NULL
80

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 16 * + col1 FROM tab1
----
NULL
224
NULL
752
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL MAX( ALL + + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL MAX ( ALL + + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT + SUM( ( 10 ) ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9630
SELECT + SUM ( ( 10 ) ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL + MIN( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - 58, 22 AS col2 FROM tab2 AS cor0
----
-58
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT DISTINCT col2 DIV + - ( + 62 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT col2 / + - ( + 62 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 * + col2 col1 FROM tab2 WHERE NOT col2 > - + 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + col0, col0 col0 FROM tab1
----
425
85
4277
91
714
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT ALL + 1 DIV + 98 + - + COUNT( * ) + - + MAX( + - col0 ) * - - 86 AS col0 FROM tab0 AS cor0
----
1287

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + 1 / + 98 + - + COUNT ( * ) + - + MAX ( + - col0 ) * - - 86 AS col0 FROM tab0 AS cor0
----
1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( + + col2 ) + CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( + + col2 ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - - 0 / 77 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 99 * + 74 / 96 * col0 AND NULL
----

query II rowsort
SELECT + 47, ( + col2 ) AS col0 FROM tab1
----
47
59
47
68
47
96

query II rowsort
SELECT ALL - 26 + col2 * - col2 AS col1, col2 FROM tab1
----
-3507
59
-4650
68
-9242
96

query I rowsort
SELECT ALL - 76 + + col1 FROM tab0
----
-55
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9642
SELECT ALL * FROM tab0 WHERE + 27 <> NULL AND NOT ( NULL ) < CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-9642
SELECT ALL * FROM tab0 WHERE + 27 <> NULL AND NOT ( NULL ) < CAST ( NULL AS INTEGER ) + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col0 col0 FROM tab0
----
108
96
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 19 <> ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + SUM( - col2 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-9646
SELECT + SUM ( - col2 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-156

query I rowsort
SELECT col2 + + 28 FROM tab0 cor0
----
127
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - COUNT( * ) * 41 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( * ) * 41 FROM tab0
----
-123

query I rowsort
SELECT + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 63 / - ( + 16 ), - col2 * + col2, - col1 * 12, - - col1 / - 3 + + col0, + col1, col1, 6 + - + col0 + + 76 * - col2 * col1 )
----

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - - col0 * + + 60 + - col2 + - col0 * 78 FROM tab1 AS cor0
----
-1014
-1589
-1706

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9652
SELECT + - CAST( + col0 AS SIGNED ) AS col2, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

skipif mysql # not compatible
query II rowsort label-9652
SELECT + - CAST ( + col0 AS INTEGER ) AS col2, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT ALL ( - col1 ) + col0 * - - col1 FROM tab2 AS cor0 WHERE 51 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 <> 82
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT ( + 51 ) DIV - 81 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9656
SELECT ( + 51 ) / - 81 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9657
SELECT - 8 * + CAST( + - col1 AS SIGNED ), col2 AS col1 FROM tab0 AS cor0
----
168
10
648
47
8
99

skipif mysql # not compatible
query II rowsort label-9657
SELECT - 8 * + CAST ( + - col1 AS INTEGER ), col2 AS col1 FROM tab0 AS cor0
----
168
10
648
47
8
99

query I rowsort
SELECT ALL + 26 + - col1 FROM tab1
----
-21
12
21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9659
SELECT ALL + col1 / - - CAST( + col2 AS SIGNED ) / col2 * - + col2 * + 78 * CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + col1 / - - CAST ( + col2 AS INTEGER ) / col2 * - + col2 * + 78 * CAST ( NULL AS REAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT DISTINCT - - col2 DIV 10 AS col1 FROM tab1 AS cor0
----
5
6
9

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - - col2 / 10 AS col1 FROM tab1 AS cor0
----
5
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab1 cor0 WHERE NOT + col2 + - col0 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ALL + + col1 DIV - + 26 + + col1 FROM tab2 AS cor0
----
50
65
75

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + + col1 / - + 26 + + col1 FROM tab2 AS cor0
----
50
65
75

query II rowsort
SELECT ALL + - 30, + col0 + - + 91 AS col1 FROM tab1 AS cor0
----
-30
-40
-30
-6
-30
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1058
2560
4350

query I rowsort
SELECT - - col1 * + + col1 + - col0 AS col2 FROM tab2 AS cor0
----
2555
4414
5865

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT ALL + col2 DIV + 97 + - - col0 AS col2 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + col2 / + 97 + - - col0 AS col2 FROM tab0 AS cor0
----
15
87
98

query I rowsort
SELECT + 54 - + - col1 + - 79 AS col1 FROM tab0 AS cor0 WHERE ( NOT - + 69 IS NULL )
----
-24
-4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + MAX( DISTINCT col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + MAX ( DISTINCT col2 ) AS col0 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col0 col1, - col0 AS col0 FROM tab1
----
-425
-85
-4277
-91
-714
-51

query I rowsort
SELECT 74 * + 43 FROM tab1
----
3182
3182
3182

query I rowsort
SELECT - 62 * + col1 / col2 + + + col0 FROM tab2 WHERE NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT - + MIN( DISTINCT - - 34 ) + + + ( + 40 ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT - + MIN ( DISTINCT - - 34 ) + + + ( + 40 ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT SUM( DISTINCT + 90 ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9674
SELECT SUM ( DISTINCT + 90 ) AS col0 FROM tab0
----
90

query I rowsort
SELECT col2 * - + ( col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - - col0 - - + CAST( + 45 AS SIGNED ) FROM tab0 cor0
----
132
142
60

skipif mysql # not compatible
query I rowsort label-9676
SELECT - - col0 - - + CAST ( + 45 AS INTEGER ) FROM tab0 cor0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT + MAX( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT col1 * + + col1 * col2 AS col2, + 0 AS col2 FROM tab0 AS cor0
----
308367
0
4410
0
99
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( - col0 ) IN ( - + col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + - col1 * - + col2 * + col1, 4 - - col0 AS col1 FROM tab0 cor0
----
308367
19
4410
91
99
101

query I rowsort
SELECT ( - 58 ) FROM tab1
----
-58
-58
-58

query I rowsort
SELECT DISTINCT 74 * - col2 AS col0 FROM tab0
----
-3478
-7326
-740

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 17, + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - 87 AND + + ( - - ( - 52 ) )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - + 5 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN 11 * + - ( + col2 ) / col1 - + + col2 + 29 AND col0 / + 72
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + 26 IS NOT NULL
----

query I rowsort
SELECT col0 + - - col2 AS col2 FROM tab0
----
196
62
97

query II rowsort
SELECT DISTINCT col2 AS col0, 27 FROM tab0
----
10
27
47
27
99
27

query II rowsort
SELECT DISTINCT - 33 + + + ( - col0 ), col0 AS col0 FROM tab1
----
-118
85
-124
91
-84
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT MIN( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT MIN ( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
15

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 9 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9695
SELECT DISTINCT - + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9695
SELECT DISTINCT - + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT COUNT( * ) - - - 17 AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9696
SELECT COUNT ( * ) - - - 17 AS col0 FROM tab1
----
-14

query I rowsort
SELECT - col2 + - col0 + 21 AS col0 FROM tab1
----
-123
-126
-138

query I rowsort
SELECT - 26 + + 63 + 1 AS col1 FROM tab2
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9699
SELECT ALL 65 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL 65 + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + + 3 + + col0 AS col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT ALL col0 + + col0 + + col0 FROM tab0
----
261
291
45

query II rowsort
SELECT - 10 + + + ( - - ( - col0 ) ) AS col1, col0 AS col1 FROM tab2
----
-56
46
-74
64
-85
75

query I rowsort
SELECT - - ( + col0 ) * - - 45 + 3 * - col0 FROM tab1 cor0
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - + COUNT( DISTINCT 78 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9704
SELECT - + COUNT ( DISTINCT 78 ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9705
SELECT DISTINCT + col1 DIV - col2, ( + col2 ) FROM tab2
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-9705
SELECT DISTINCT + col1 / - col2, ( + col2 ) FROM tab2
----
-1
40
-1
58
-2
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 14 <> - ( 85 ) + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( 13 ) FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT COUNT( * ) * - 24 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9708
SELECT COUNT ( * ) * - 24 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - - MAX( + - 22 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9709
SELECT - - MAX ( + - 22 ) FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT ALL 3 * - + col0 + - + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9710
SELECT ALL 3 * - + col0 + - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - - col0 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 84 ) AS col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT + - MIN( col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + - MIN ( col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> col2 + - col1 + col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 79 ) col2 FROM tab2
----
79

query I rowsort
SELECT - ( + 9 ) FROM tab1
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9717
SELECT DISTINCT col2 + - 63 + - col1 + + CAST( + col1 AS SIGNED ) + + col0 * - - col0 * - col2 / - - CAST( NULL AS SIGNED ) * - CAST( - - 56 AS DECIMAL ) * - col1 * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT col2 + - 63 + - col1 + + CAST ( + col1 AS INTEGER ) + + col0 * - - col0 * - col2 / - - CAST ( NULL AS INTEGER ) * - CAST ( - - 56 AS REAL ) * - col1 * + col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT MIN( ALL ( 57 ) ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT MIN ( ALL ( 57 ) ) AS col0 FROM tab0
----
57

query II rowsort
SELECT ALL + - 24 AS col2, + col1 FROM tab2 AS cor0
----
-24
51
-24
67
-24
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 + - 41 > + col1
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1, - col0 col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL col0 + + + col2 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT - MAX( DISTINCT + 45 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - MAX ( DISTINCT + 45 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-45

query I rowsort
SELECT ALL - 3 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) + - + 20 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 20 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < + - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL - COUNT( + col2 ) * + - 34 AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - COUNT ( + col2 ) * + - 34 AS col2 FROM tab2 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT DISTINCT CAST( - - col0 AS SIGNED ) * - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) * - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9729
SELECT ALL - col2 * + col0 AS col2, + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

skipif mysql # not compatible
query II rowsort label-9729
SELECT ALL - col2 * + col0 AS col2, + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * - col1 col1 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT DISTINCT + col2 * 83 + + ( 96 ) + col1 FROM tab0
----
4078
8314
947

query III rowsort
SELECT * FROM tab2 WHERE + - 1 + - + 0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT col2 * - CAST( NULL AS SIGNED ) * col2 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT col2 * - CAST ( NULL AS INTEGER ) * col2 * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT + col2 DIV + - 85 AS col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT + col2 / + - 85 AS col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT - col2 - - + col0 * + col1 FROM tab0
----
-2
1168
1817

query I rowsort
SELECT DISTINCT col2 + + 65 + 91 + - 86 + + 65 * + col1 AS col0 FROM tab0
----
1445
234
5382

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT + 88 - + 71 - col1 DIV + col1 + + + 61 * + - col2 AS col1 FROM tab2
----
-1387
-2424
-3522

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + 88 - + 71 - col1 / + col1 + + + 61 * + - col2 AS col1 FROM tab2
----
-1387
-2424
-3522

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT + COUNT( * ) * - ( + SUM( 43 ) ) AS col0 FROM tab0 AS cor0
----
-387

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT + COUNT ( * ) * - ( + SUM ( 43 ) ) AS col0 FROM tab0 AS cor0
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT COUNT( * ) * COUNT( - - col2 ) + + SUM( ALL - + 50 ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT COUNT ( * ) * COUNT ( - - col2 ) + + SUM ( ALL - + 50 ) FROM tab0 AS cor0
----
-141

query I rowsort
SELECT ALL - col2 * - 4 + - + col1 AS col1 FROM tab2 AS cor0
----
165
41
83

query I rowsort
SELECT + ( - 52 ) * col2 AS col2 FROM tab0 AS cor0
----
-2444
-5148
-520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9743
SELECT DISTINCT col1 * + 37 + 55 + - + col0 + - + col1 * + col0 AS col1, - col1 - + ( + 23 ) + + + 48 + - CAST( col0 AS SIGNED ) * col2 * + col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-102
-9579
-1082
-18266
1822
-57161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9743
SELECT DISTINCT col1 * + 37 + 55 + - + col0 + - + col1 * + col0 AS col1, - col1 - + ( + 23 ) + + + 48 + - CAST ( col0 AS INTEGER ) * col2 * + col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-102
-9579
-1082
-18266
1822
-57161

query I rowsort
SELECT ( + 4 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9745
SELECT DISTINCT - - COUNT( * ), CAST( NULL AS SIGNED ) - + 91 AS col1 FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9745
SELECT DISTINCT - - COUNT ( * ), CAST ( NULL AS INTEGER ) - + 91 AS col1 FROM tab1 cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + - col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9747
SELECT DISTINCT + 21 AS col2, + CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
21
141
21
142
21
97

skipif mysql # not compatible
query II rowsort label-9747
SELECT DISTINCT + 21 AS col2, + CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
21
141
21
142
21
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL + COUNT( ALL - col0 ) AS col1 FROM tab2 WHERE ( NOT col1 BETWEEN + - col1 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + COUNT ( ALL - col0 ) AS col1 FROM tab2 WHERE ( NOT col1 BETWEEN + - col1 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - MAX( DISTINCT + - 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9749
SELECT - MAX ( DISTINCT + - 39 ) FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL + MAX( ALL + - col2 ) + + - COUNT( * ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + MAX ( ALL + - col2 ) + + - COUNT ( * ) AS col0 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT MAX( ALL - + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9751
SELECT MAX ( ALL - + col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL 67 + - 92 * - - 34 FROM tab2
----
-3061
-3061
-3061

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2 cor0
----
53

query I rowsort
SELECT - col2 + - col1 + - + col1 AS col1 FROM tab1
----
-124
-162
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT MIN( DISTINCT - col1 ) + 57 + + COUNT( * ) AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9755
SELECT MIN ( DISTINCT - col1 ) + 57 + + COUNT ( * ) AS col2 FROM tab0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + col2 * - ( + + col1 ) FROM tab0
----
-178929
-2100
-9801

query III rowsort
SELECT ALL * FROM tab2 WHERE 99 + + 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - col0 * + - 84 > - ( + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - col0 * + - 84 > - ( + col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 8 - col1 AS col0 FROM tab2 AS cor0
----
-59
-75
-85

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( ( + col1 * - 81 / - col0 * + + 2 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + 9
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9763
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) - + MIN( ( - col2 ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - + CAST ( NULL AS REAL ) - + MIN ( ( - col2 ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT - COUNT( * ) * - 87 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - COUNT ( * ) * - 87 FROM tab0 AS cor0
----
261

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 * - 18 - col0 + ( - 46 ) + - 36 NOT BETWEEN - col2 + col2 + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 + col0 * - 74 FROM tab0
----
-1072
-6400
-7140

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT + - col0 DIV ( - col2 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9767
SELECT + - col0 / ( - col2 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
0
0
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 + - - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9769
SELECT + 52 + + 49 DIV MAX( 76 ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 52 + + 49 / MAX ( 76 ) AS col0 FROM tab0
----
52

query I rowsort
SELECT DISTINCT - ( + - 7 ) AS col1 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + COUNT( - col2 ) * - COUNT( * ) * - + SUM( - 43 ) FROM tab1
----
-1161

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + COUNT ( - col2 ) * - COUNT ( * ) * - + SUM ( - 43 ) FROM tab1
----
-1161

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 6 * - + 84 - 20 ) > 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT + MIN( DISTINCT + ( col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9773
SELECT + MIN ( DISTINCT + ( col0 ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT 41 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 + 39 BETWEEN NULL AND - - col2
----
-3

skipif mysql # not compatible
query I rowsort label-9775
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 + 39 BETWEEN NULL AND - - col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT + MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT + MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 49 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 51 ) AND ( - + col0 ) * + 23 + - + col1
----

query I rowsort
SELECT - + 94 * - col1 AS col2 FROM tab0 AS cor0
----
1974
7614
94

query I rowsort
SELECT col1 * + + col2 + - 74 AS col0 FROM tab2 AS cor0
----
1099
3006
3812

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT - col0 DIV - - col0 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - col0 / - - col0 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 24 + + col2 FROM tab2 AS cor0
----
-1
16
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + 28 + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT - MAX( ALL + 29 ) DIV - 66 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - MAX ( ALL + 29 ) / - 66 FROM tab1
----
0

query I rowsort
SELECT + col2 * + - col2 + col1 AS col1 FROM tab0
----
-2128
-79
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT COUNT( * ) * SUM( DISTINCT + + 44 ) + - COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-9786
SELECT COUNT ( * ) * SUM ( DISTINCT + + 44 ) + - COUNT ( * ) FROM tab1
----
129

query I rowsort
SELECT DISTINCT col2 + 13 AS col0 FROM tab2
----
36
53
71

query I rowsort
SELECT ALL col2 + + - col2 + + 52 FROM tab1
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT DISTINCT - + col2 DIV col1 - - col0 + + + col0 AS col0 FROM tab0 WHERE NOT - 93 * - 86 IS NULL
----
174
30
95

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - + col2 / col1 - - col0 + + + col0 AS col0 FROM tab0 WHERE NOT - 93 * - 86 IS NULL
----
174
30
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 * - + col2 AND - - col0 + col2 + - 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT DISTINCT - 3 DIV col2 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT - 3 / col2 + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 5 * - col1 - - + 75, col1 FROM tab1
----
-160
47
5
14
50
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9794
SELECT ( col0 ) + + ( col1 ) DIV col1 + - - ( - CAST( - 5 AS SIGNED ) ) FROM tab2
----
52
70
81

skipif mysql # not compatible
query I rowsort label-9794
SELECT ( col0 ) + + ( col1 ) / col1 + - - ( - CAST ( - 5 AS INTEGER ) ) FROM tab2
----
52
70
81

query I rowsort
SELECT ALL col2 + + 79 - + col0 AS col2 FROM tab1 AS cor0
----
124
53
56

query I rowsort
SELECT ALL col1 - - + 87 FROM tab2 AS cor0
----
138
154
164

query I rowsort
SELECT DISTINCT - col0 - - + ( ( + 13 ) ) * + 55 FROM tab1 cor0
----
624
630
664

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - MIN( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - MIN ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL - MIN( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - MIN ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 * - - 80 FROM tab0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL + MIN( + 39 ) AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + MIN ( + 39 ) AS col0 FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT + col0 * col0 * col1 DIV col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9802
SELECT + col0 * col0 * col1 / col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT SUM( + - 44 ) col1 FROM tab0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9803
SELECT SUM ( + - 44 ) col1 FROM tab0
----
-132

query I rowsort
SELECT - col2 * + - 23 * ( - col1 ) FROM tab1
----
-30912
-6785
-73508

query I rowsort
SELECT DISTINCT + col1 * - col1 * + 82 FROM tab0
----
-36162
-538002
-82

query I rowsort
SELECT DISTINCT + 51 * 29 AS col1 FROM tab2
----
1479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab0 cor0
----
11

query I rowsort
SELECT - - 69 FROM tab0 AS cor0 WHERE NOT + col1 / + col0 * + col0 IS NOT NULL
----

query II rowsort
SELECT - + 57 AS col2, + col1 FROM tab2 AS cor0
----
-57
51
-57
67
-57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - MIN( + col0 ) + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-9810
SELECT - MIN ( + col0 ) + COUNT ( * ) FROM tab2
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 62 BETWEEN NULL AND ( + 66 ) * col2 + - col1 / col1
----

query I rowsort
SELECT 62 - ( + col0 - 91 * 81 ) FROM tab2 WHERE - 99 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9813
SELECT col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1 WHERE ( - col0 ) >= ( - col2 )
----
79

query I rowsort
SELECT ALL 9 FROM tab1 WHERE ( col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9816
SELECT DISTINCT * FROM tab1 WHERE CAST( - col2 AS SIGNED ) * + CAST( - col0 - 32 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9816
SELECT DISTINCT * FROM tab1 WHERE CAST ( - col2 AS INTEGER ) * + CAST ( - col0 - 32 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 34 FROM tab2 WHERE + col0 / col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE 47 * + 43 <= ( 41 + + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 IS NULL
----

query I rowsort
SELECT ALL - 20 + - 48 AS col0 FROM tab0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT COUNT( * ) * ( 7 ) + - 65 AS col2 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT COUNT ( * ) * ( 7 ) + - 65 AS col2 FROM tab0
----
-44

query I rowsort
SELECT ALL + col2 - 17 AS col0 FROM tab2
----
23
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL - ( 61 ) * COUNT( * ) + + 46 FROM tab0
----
-137

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - ( 61 ) * COUNT ( * ) + + 46 FROM tab0
----
-137

query I rowsort
SELECT ALL 26 + - col1 AS col2 FROM tab2
----
-25
-41
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col2 * col2 AND - col1 * + 17
----

query I rowsort
SELECT + 8 * 8 - + col1 AS col1 FROM tab2
----
-13
-3
13

query I rowsort
SELECT DISTINCT 68 * + col2 + + ( col2 ) * + col2 FROM tab0 WHERE ( - 41 ) NOT IN ( + 78 )
----
16533
5405
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT ( + MIN( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ( + MIN ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * col2 BETWEEN ( NULL ) AND + col2 * - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + ( col0 ) * col1 AS col2 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT DISTINCT 81 * col1 AS col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT COUNT( * ) + - 80 col1 FROM tab0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9832
SELECT COUNT ( * ) + - 80 col1 FROM tab0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL 20 * + CAST( col1 AS SIGNED ) + + 72 AS col2 FROM tab1
----
1012
172
352

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 20 * + CAST ( col1 AS INTEGER ) + + 72 AS col2 FROM tab1
----
1012
172
352

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 57 * - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL 10 - CAST( - 81 + ( - col0 ) AS SIGNED ) FROM tab0
----
106
178
188

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL 10 - CAST ( - 81 + ( - col0 ) AS INTEGER ) FROM tab0
----
106
178
188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 65 NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 65 NOT IN ( - col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( 88 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL MIN( ALL 4 ) + 84 FROM tab2 WHERE ( + 42 ) NOT BETWEEN ( col2 ) AND NULL
----
88

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL MIN ( ALL 4 ) + 84 FROM tab2 WHERE ( + 42 ) NOT BETWEEN ( col2 ) AND NULL
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT SUM( - 19 ) - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT SUM ( - 19 ) - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL = + col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( 43 + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9842
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9

query I rowsort
SELECT DISTINCT + 77 * - col0 - col2 FROM tab1 AS cor0
----
-4023
-6604
-7075

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9844
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN - CAST( NULL AS DECIMAL ) * col0 + 46 * - col2 AND + col1
----

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN - CAST ( NULL AS REAL ) * col0 + 46 * - col2 AND + col1
----

query I rowsort
SELECT + col2 - 2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 17 * 29 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT DISTINCT ( ( + col0 ) ) DIV + col1 + + col2 * col2 FROM tab2 AS cor0
----
1600
3365
529

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT ( ( + col0 ) ) / + col1 + + col2 * col2 FROM tab2 AS cor0
----
1600
3365
529

query I rowsort
SELECT ALL + 41 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
41
41
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + + MAX( col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9849
SELECT ALL + + MAX ( col0 ) col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + col0 <> col2 * 80
----

query I rowsort
SELECT DISTINCT + 22 + + 7 AS col0 FROM tab2 AS cor0 WHERE - col1 + - ( 75 ) <> + ( + col1 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ( + + 36 ) * + COUNT( * ) AS col0 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9852
SELECT ( + + 36 ) * + COUNT ( * ) AS col0 FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT COUNT( * ) * + + 87 col2 FROM tab2
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT COUNT ( * ) * + + 87 col2 FROM tab2
----
261

query I rowsort
SELECT - col1 / col0 FROM tab0 WHERE NULL <= NULL OR NOT + col0 * - col0 NOT IN ( - 22 / - col0 + + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9855
SELECT col0 * - 86 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT col0 * - 86 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( - col0 ) ) FROM tab0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT + 23 * + + col0 * col1 AS col1 FROM tab2
----
113344
115575
53958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9858
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN - CAST( - col2 AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-9858
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN - CAST ( - col2 AS INTEGER ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 41 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE + col1 - col0 * + col2 <= ( - col1 )
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN col1 - 14 AND + 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT + - 65 DIV - col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9863
SELECT + - 65 / - col0 FROM tab0 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9866
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9866
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - - ( COUNT( * ) ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9868
SELECT - - ( COUNT ( * ) ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT + ( 7 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT 49 + - col2 AS col0 FROM tab2 AS cor0
----
-9
26
9

query I rowsort
SELECT + col2 * - 94 * - col1 * col2 + - col0 FROM tab1 AS cor0
----
12128205
1635985
20428741

query II rowsort
SELECT DISTINCT - col0, col2 + col1 AS col2 FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9874
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 <> NULL ) OR NOT + CAST( NULL AS SIGNED ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9874
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 <> NULL ) OR NOT + CAST ( NULL AS INTEGER ) * - col0 IS NULL
----

query II rowsort
SELECT ALL - col2 AS col0, col0 * - col2 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

query I rowsort
SELECT ALL - + 85 + + - col0 FROM tab0 AS cor0
----
-100
-172
-182

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 2 ) BETWEEN ( + 96 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 93 FROM tab0 cor0
----
108
180
190

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 50 + 77
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL BETWEEN col0 * + 85 + + 41 AND - col1
----

query I rowsort
SELECT ALL + ( + col0 ) * + 58 FROM tab0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT 89 * 1 + - - SUM( col0 ) AS col1 FROM tab1
----
316

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT 89 * 1 + - - SUM ( col0 ) AS col1 FROM tab1
----
316

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 62 * + - 55 - - 57 / col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT col1 DIV - - col0 col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9884
SELECT col1 / - - col0 col1 FROM tab0
----
0
0
5

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col2 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - 52 * col2 AS col2 FROM tab2 cor0 WHERE ( 5 ) IS NOT NULL
----
-1196
-2080
-3016

query I rowsort
SELECT + - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT ALL - 37 DIV - col1 - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - 37 / - col1 - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - ( + ( + ( + 47 ) ) ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL col1 * + ( - ( + 96 ) ) - - col0 AS col2 FROM tab2 AS cor0
----
-4850
-6357
-7328

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT + + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT + + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT - CAST( NULL AS SIGNED ) + col1 / col2 FROM tab0 WHERE NOT + col0 * + 34 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9895
SELECT - CAST ( NULL AS INTEGER ) + col1 / col2 FROM tab0 WHERE NOT + col0 * + 34 IS NOT NULL
----

query I rowsort
SELECT 28 * + - col0 AS col1 FROM tab2
----
-1288
-1792
-2100

query II rowsort
SELECT + + col1, 60 AS col0 FROM tab2 AS cor0
----
51
60
67
60
77
60

query II rowsort
SELECT ALL 52, col2 FROM tab2 AS cor0
----
52
23
52
40
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + COUNT( - + 26 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9899
SELECT + COUNT ( - + 26 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 - + 78 ) < + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9901
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * + col0 col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9901
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + col0 col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9902
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 - + CAST( - col2 AS DECIMAL ) BETWEEN ( col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9902
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 - + CAST ( - col2 AS REAL ) BETWEEN ( col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - ( - 86 ) AS col0 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT + col0 * 83 AS col2 FROM tab0 AS cor0
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + MAX( ALL + col0 ) - + MAX( ALL + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT + MAX ( ALL + col0 ) - + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT - 59 DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-6

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 59 / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-6

query I rowsort
SELECT - 54 + ( col2 ) FROM tab1
----
14
42
5

query I rowsort
SELECT 71 AS col0 FROM tab0 cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT + col1 + col1 * - - 50 / - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 * col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9909
SELECT + col1 + col1 * - - 50 / - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 * col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * + col2 AND - col0
----

query I rowsort
SELECT + col0 * - 52 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + 78 * - 62 + + + 39 + - - col0 AS col2 FROM tab2 AS cor0
----
-4722
-4733
-4751

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + 17
----

query II rowsort
SELECT ALL - 19 AS col0, + 5 AS col2 FROM tab1 AS cor0
----
-19
5
-19
5
-19
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT ( 39 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT + CAST( + col0 AS SIGNED ) * + 98 FROM tab1
----
4998
8330
8918

skipif mysql # not compatible
query I rowsort label-9918
SELECT + CAST ( + col0 AS INTEGER ) * + 98 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT DISTINCT 54 * + col2 AS col1 FROM tab2
----
1242
2160
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - 93 * + COUNT( * ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-9920
SELECT - 93 * + COUNT ( * ) FROM tab0
----
-279

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - - 21 FROM tab1 cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + col2 + + + col1 col0 FROM tab0 AS cor0
----
131
2337
9901

query I rowsort
SELECT ALL - col1 + + col0 * - 59 - + col1 AS col2 FROM tab2 AS cor0
----
-2816
-3930
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( col2 ) col1, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT + - COUNT( - 94 ) AS col2 FROM tab1 AS cor0 WHERE + 22 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT + - COUNT ( - 94 ) AS col2 FROM tab1 AS cor0 WHERE + 22 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 + + - col2 ) NOT BETWEEN ( NULL ) AND ( + 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT + - col1 + + col0 * col0 * + 23 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
129250
48594
94091

skipif mysql # not compatible
query I rowsort label-9929
SELECT + - col1 + + col0 * col0 * + 23 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
129250
48594
94091

query II rowsort
SELECT col0, + col1 + 47 AS col0 FROM tab0 AS cor0
----
15
128
87
68
97
48

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN - col2 AND NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - + ( + 19 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 44 * + + col0 * + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - + col0 + - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9937
SELECT - + col1 AS col1, col1 DIV - 59 AS col2 FROM tab2 AS cor0
----
-51
0
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-9937
SELECT - + col1 AS col1, col1 / - 59 AS col2 FROM tab2 AS cor0
----
-51
0
-67
-1
-77
-1

query I rowsort
SELECT - col0 * + - ( 15 ) FROM tab2 AS cor0
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT - 30 * + COUNT( * ) * + + ( + - 63 ) AS col2 FROM tab0 AS cor0
----
5670

skipif mysql # not compatible
query I rowsort label-9939
SELECT - 30 * + COUNT ( * ) * + + ( + - 63 ) AS col2 FROM tab0 AS cor0
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT + MIN( + + col0 ) * + 24 + 39 AS col2 FROM tab2 AS cor0
----
1143

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + MIN ( + + col0 ) * + 24 + 39 AS col2 FROM tab2 AS cor0
----
1143

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9941
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL col0 + col0 + + 36 FROM tab1
----
138
206
218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT - 63 * + COUNT( col0 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT - 63 * + COUNT ( col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * + col1 * - col0 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT - COUNT( + - ( + - 95 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - COUNT ( + - ( + - 95 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 0 + + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + + 34 * + - col1 FROM tab1 AS cor0
----
-1598
-170
-476

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 46 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 88 col1 FROM tab2 AS cor0
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9951
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE 86 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + col2 <= + col1
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 82 AS col1 FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
82
82
82

query II rowsort
SELECT DISTINCT + 29 AS col1, col2 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
29
1344
29
295
29
3196

query II rowsort
SELECT ALL col0 AS col0, - ( - col0 ) FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT MIN ( ALL col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT DISTINCT + 19 + + - COUNT( * ) AS col2 FROM tab0 WHERE NOT - 58 * + col2 IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT + 19 + + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 58 * + col2 IS NULL
----
16

query II rowsort
SELECT col1 AS col2, col0 + 70 + 56 FROM tab0
----
1
223
21
213
81
141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9961
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * col0 * 42 + - col0 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9961
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * col0 * 42 + - col0 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT 9 DIV - col2 * + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT 9 / - col2 * + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col1 * col2 - + + ( col1 ) - + 11 * + col1 * - col2 / - col2 * - - 28, - col2, + - col0 * - col2 / + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col0 ) col1 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9965
SELECT 1 AS col1, 5 DIV - 5 FROM tab2
----
1
-1
1
-1
1
-1

skipif mysql # not compatible
query II rowsort label-9965
SELECT 1 AS col1, 5 / - 5 FROM tab2
----
1
-1
1
-1
1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 50 + 12 AS col1 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + MIN( col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + MIN ( col1 ) FROM tab1
----
5

query I rowsort
SELECT 50 AS col2 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT ALL 93 * col0 FROM tab2 AS cor0
----
4278
5952
6975

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND - + col1
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND - + col1
----
0

query II rowsort
SELECT + 95, - 24 AS col1 FROM tab0 AS cor0
----
95
-24
95
-24
95
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT + MAX( ALL + col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9974
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab2 cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL OR col2 IS NULL
----

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT + 42 * 90 DIV + col2 AS col2 FROM tab2
----
164
65
94

skipif mysql # not compatible
query I rowsort label-9977
SELECT + 42 * 90 / + col2 AS col2 FROM tab2
----
164
65
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT COUNT( ALL + - col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9978
SELECT DISTINCT COUNT ( ALL + - col1 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT col2 * + CAST( 60 AS SIGNED ) + + col0 + - - col1 * col0 FROM tab1 AS cor0
----
4050
6525
8448

skipif mysql # not compatible
query I rowsort label-9979
SELECT col2 * + CAST ( 60 AS INTEGER ) + + col0 + - - col1 * col0 FROM tab1 AS cor0
----
4050
6525
8448

query I rowsort
SELECT DISTINCT - + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 42 + - col0 / - 18 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9981
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 42 + - col0 / - 18 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT DISTINCT - 22 DIV + ( + 53 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - 22 / + ( + 53 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 88 AS col1 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT - COUNT( * ) - + 21 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + - 41
----
-21

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - COUNT ( * ) - + 21 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + - 41
----
-21

query I rowsort
SELECT col0 + + + ( col1 ) FROM tab2
----
141
142
97

query II rowsort
SELECT + 16 AS col0, + col1 + - col2 AS col2 FROM tab2
----
16
28
16
37
16
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL + MAX( ALL - 58 ) * - 19 - COUNT( * ) AS col2 FROM tab0
----
1099

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + MAX ( ALL - 58 ) * - 19 - COUNT ( * ) AS col2 FROM tab0
----
1099

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9988
SELECT ALL CAST( + col1 AS SIGNED ) + + 97 + + + 12 DIV + col2 + col1 FROM tab1
----
107
125
191

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL CAST ( + col1 AS INTEGER ) + + 97 + + + 12 / + col2 + col1 FROM tab1
----
107
125
191

query II rowsort
SELECT 68 AS col0, + 79 FROM tab1
----
68
79
68
79
68
79

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + - col1, 3 * 7 * + - 79 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 * + col0 - - col1, - col0 col0 FROM tab1 cor0
----
4910
-51
5020
-85
6235
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT + + CAST( 44 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9992
SELECT + + CAST ( 44 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9993
SELECT * FROM tab0 WHERE NOT NULL IN ( col2, col2 + + col2 + - 25 * col1 + + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9993
SELECT * FROM tab0 WHERE NOT NULL IN ( col2, col2 + + col2 + - 25 * col1 + + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9994
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 65 + CAST( NULL AS DECIMAL ) NOT IN ( - + col1, col2, - col2 )
----

skipif mysql # not compatible
query III rowsort label-9994
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 65 + CAST ( NULL AS REAL ) NOT IN ( - + col1, col2, - col2 )
----

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab0 AS cor0 WHERE - col0 <= - + col0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + SUM( ALL - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9999
SELECT + SUM ( ALL - col1 ) FROM tab2
----
-195

