sqllogictest
Artifact Content
Not logged in

Artifact 0f0fd68e0b719523eee6290e1aa8cbf232b2148b:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT - col0 DIV + 92 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1
SELECT - col0 / + 92 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - col2
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) = - col0 + + 49
----

skipif mysql # not compatible
query III rowsort label-4
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) = - col0 + + 49
----

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

skipif mysql # not compatible
query I rowsort label-5
SELECT - COUNT ( * ) * 83 FROM tab0
----
-249

query II rowsort
SELECT - col0 AS col1, - col0 + + - col1 * - + col0 FROM tab2
----
-46
2300
-64
4864
-75
4950

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

skipif mysql # not compatible
query II rowsort label-7
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT + - MIN( DISTINCT - 13 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT + - MIN ( DISTINCT - 13 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
13

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL = ( NULL )
----

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-17
SELECT COUNT ( * ) + COUNT ( * ), COUNT ( ALL + ( col1 ) ) col0 FROM tab1 AS cor0
----
6
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT 16 + - CAST( + 99 AS SIGNED ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT 16 + - CAST ( + 99 AS INTEGER ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT ALL + col2 * + 21 AS col1 FROM tab1
----
1239
1428
2016

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 71 * - - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 16 col2 FROM tab1
----
-224
-752
-80

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

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

query I rowsort
SELECT ALL - ( - col1 ) + - col0 FROM tab0 AS cor0
----
-66
-96
66

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

query I rowsort
SELECT - col1 / - col1 FROM tab1 AS cor0 WHERE + col2 * - ( - + col1 ) IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT MIN( - 1 ) + + 15 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT MIN ( - 1 ) + + 15 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT COUNT( * ) * - 30 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT COUNT ( * ) * - 30 FROM tab2
----
-90

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

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

query I rowsort
SELECT DISTINCT 62 + - col0 AS col2 FROM tab0
----
-25
-35
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT DISTINCT - COUNT( * ) * - - 5 * MAX( DISTINCT CAST( + 51 AS SIGNED ) ) - + - 22 FROM tab1 AS cor0
----
-743

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - COUNT ( * ) * - - 5 * MAX ( DISTINCT CAST ( + 51 AS INTEGER ) ) - + - 22 FROM tab1 AS cor0
----
-743

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT - col2 + - - col1 + + 2 DIV 71 col0 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-34
SELECT - col2 + - - col1 + + 2 / 71 col0 FROM tab1 cor0
----
-21
-54
-82

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 94
----

query I rowsort
SELECT + 32 * col1 + + 31 + - col0 * - - col0 * + + col0 + - col1 + - col1 + col0 FROM tab1 AS cor0
----
-132149
-613859
-752039

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

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

query I rowsort
SELECT - col1 * - + col1 FROM tab1 AS cor0
----
196
2209
25

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 - 49 * + col2 AS col1 FROM tab1
----
-2976
-3423
-4755

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-44
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + - 65 * col2 / - col2 + + col0, + col2 + + col2 + 86, + CAST( CAST( - - 12 AS SIGNED ) AS DECIMAL ), + col1, - CAST( + col2 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-44
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + - 65 * col2 / - col2 + + col0, + col2 + + col2 + 86, + CAST ( CAST ( - - 12 AS INTEGER ) AS REAL ), + col1, - CAST ( + col2 AS INTEGER ), col1 )
----

query I rowsort
SELECT col1 - + ( col1 ) + + 34 * + col1 FROM tab1
----
1598
170
476

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL - MAX( - 87 ) col1 FROM tab1, tab1 AS cor0
----
87

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + + 91 BETWEEN 57 AND - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - ( + MIN( + col2 ) ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - ( + MIN ( + col2 ) ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 cor0 WHERE 54 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT ALL + col0 * - + col0 * + col0 + + col2 col0 FROM tab1 cor0 WHERE NOT + 89 * col0 + 5 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-54
SELECT ALL + col0 * - + col0 * + col0 + + col2 col0 FROM tab1 cor0 WHERE NOT + 89 * col0 + 5 < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col2 * + - 54 FROM tab1 AS cor0
----
-3186
-3672
-5184

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

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

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

query I rowsort
SELECT ALL 89 * - + col1 + - - 19 + ( + 11 ) + - col1 FROM tab1
----
-1230
-420
-4200

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

query I rowsort
SELECT ALL + 16 + + + 88 FROM tab2
----
104
104
104

query I rowsort
SELECT + col0 + - col0 * + - col2 AS col0 FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT DISTINCT 19 AS col0, + COUNT( * ) * - COUNT( * ) * + + 79 AS col0 FROM tab2 AS cor0
----
19
-711

skipif mysql # not compatible
query II rowsort label-62
SELECT DISTINCT 19 AS col0, + COUNT ( * ) * - COUNT ( * ) * + + 79 AS col0 FROM tab2 AS cor0
----
19
-711

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

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

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

query I rowsort
SELECT - - 7 + col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT ALL + col2 DIV col0 * ( ( - col2 ) ) - 36 FROM tab0 AS cor0
----
-135
-177
-36

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + col2 / col0 * ( ( - col2 ) ) - 36 FROM tab0 AS cor0
----
-135
-177
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT COUNT( * ) * 30 - + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT COUNT ( * ) * 30 - + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= 3
----

query I rowsort
SELECT ALL col2 * - - 6 FROM tab2
----
138
240
348

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-72
SELECT MAX ( DISTINCT + col0 ) col0 FROM tab1
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + 12 * - COUNT( * ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-74
SELECT + 12 * - COUNT ( * ) AS col1 FROM tab0
----
-36

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-77
SELECT DISTINCT CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) * - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * - col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 62 * - 9 * - col1 FROM tab2
----
28458
37386
42966

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 81
----

query I rowsort
SELECT DISTINCT col0 * - col2 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL > ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * col2 / col0 NOT IN ( col2, - ( - 99 ) )
----
3

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * col2 / col0 NOT IN ( col2, - ( - 99 ) )
----
3

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

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

query I rowsort
SELECT 59 * - col0 * - 36 FROM tab0
----
184788
206028
31860

query I rowsort
SELECT ALL 18 + - col0 AS col0 FROM tab1
----
-33
-67
-73

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

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - SUM ( col2 ) + + COUNT ( * ) * + + 79 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab1 AS cor0
----
-74

query II rowsort
SELECT col2, col0 * - + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
-2346
40
-4928
58
-5025

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT - MIN( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-89
SELECT - MIN ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-46

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 + - - col2 + - 42 * + 21
----

query II rowsort
SELECT + + 67, - 83 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
67
-83
67
-83
67
-83

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

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

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

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 AS col0 FROM tab2
----
-2550
-4422
-5852

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-96
SELECT ALL col1 * + - 30 + CAST( - + 69 AS SIGNED ) DIV - col2 FROM tab1
----
-1409
-149
-420

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL col1 * + - 30 + CAST ( - + 69 AS INTEGER ) / - col2 FROM tab1
----
-1409
-149
-420

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT ALL + col2 - - 55 - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
112
77
94

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + col2 - - 55 - col0 / col0 AS col0 FROM tab2 AS cor0
----
112
77
94

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

query I rowsort
SELECT 84 * col2 FROM tab0 AS cor0
----
3948
8316
840

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT + - COUNT( * ) * 54 + ( + + ( + + 64 ) ) * + - COUNT( DISTINCT 88 ) + + 63 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-163

skipif mysql # not compatible
query I rowsort label-101
SELECT + - COUNT ( * ) * 54 + ( + + ( + + 64 ) ) * + - COUNT ( DISTINCT 88 ) + + 63 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-163

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT ALL CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-103
SELECT ALL CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT DISTINCT + 99 * 6 AS col1, COUNT( * ) - 23 * - 72 AS col2 FROM tab1
----
594
1659

skipif mysql # not compatible
query II rowsort label-104
SELECT DISTINCT + 99 * 6 AS col1, COUNT ( * ) - 23 * - 72 AS col2 FROM tab1
----
594
1659

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - 78 * - 18 NOT BETWEEN NULL AND + col0
----

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

query I rowsort
SELECT 23 * - + 87 * - col2 AS col2 FROM tab1
----
118059
136068
192096

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + - col1 + col2 * - col1 col1 FROM tab1 AS cor0
----
-1034
-1162
-275

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 49 NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-113
SELECT DISTINCT + ( + - COUNT( * ) ) DIV + CAST( + + 60 AS SIGNED ) FROM tab0
----
0

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

query I rowsort
SELECT ALL - - 50 AS col1 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL - + SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - + SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - - 14 * - col0 AS col2 FROM tab2 AS cor0
----
-1050
-644
-896

query I rowsort
SELECT - - col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT + - 41 * col2 DIV - + 3 AS col1 FROM tab1 AS cor0
----
1312
806
929

skipif mysql # not compatible
query I rowsort label-118
SELECT + - 41 * col2 / - + 3 AS col1 FROM tab1 AS cor0
----
1312
806
929

query I rowsort
SELECT col1 + + 76 AS col2 FROM tab1
----
123
81
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + + col1 col1 FROM tab1
----
20
29
62

query I rowsort
SELECT col1 + - 90 * + + ( 85 ) * - col2 * - - col1 - col1 AS col2 FROM tab0
----
1606500
29123550
757350

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

query I rowsort
SELECT 30 + + + 99 + + col0 + + 65 * - + ( + 78 ) AS col1 FROM tab0
----
-4844
-4854
-4926

query I rowsort
SELECT DISTINCT 43 * - col0 + 10 AS col0 FROM tab2
----
-1968
-2742
-3215

query I rowsort
SELECT DISTINCT + ( + - 26 ) FROM tab1 AS cor0
----
-26

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 69 >= NULL
----

query II rowsort
SELECT DISTINCT 48 AS col0, - AVG ( - col2 ) FROM tab1 AS cor0 WHERE ( + col2 ) / + col2 = NULL
----
48
NULL

query I rowsort
SELECT - 88 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-132
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT - 25 * - col1 FROM tab0
----
2025
25
525

query I rowsort
SELECT ALL - col0 * + + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT 21 * + + SUM( - col2 ) FROM tab0
----
-3276

skipif mysql # not compatible
query I rowsort label-135
SELECT 21 * + + SUM ( - col2 ) FROM tab0
----
-3276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 79 AS col1 FROM tab0
----
-10
79
-47
79
-99
79

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 28 + - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 63 * - 35 AND + ( + + 2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 <> 21
----

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

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

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

skipif mysql # not compatible
query I rowsort label-143
SELECT SUM ( + col0 ) FROM tab0
----
199

query I rowsort
SELECT + col0 + + - col1 AS col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + - 23 FROM tab2 AS cor0
----
-23
-23
-23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT + - 99 DIV + + col1 FROM tab0 cor0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-147
SELECT + - 99 / + + col1 FROM tab0 cor0
----
-1
-4
-99

query II rowsort
SELECT - col0, + 35 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - + col1 < + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT 91, MIN( DISTINCT - col1 ) AS col1 FROM tab0
----
91
-81

skipif mysql # not compatible
query II rowsort label-152
SELECT 91, MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
91
-81

query II rowsort
SELECT + col2 AS col2, + 51 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
51
47
51
99
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-154
SELECT ALL - + CAST( + 75 AS SIGNED ) FROM tab0 WHERE NULL = col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL - + CAST ( + 75 AS INTEGER ) FROM tab0 WHERE NULL = col1 + + col1
----

query I rowsort
SELECT ALL - col2 + 8 * col1 + - col2 FROM tab2
----
362
420
536

query I rowsort
SELECT ALL - col2 - - + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col1 + + 72 - ( + + 68 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-158
SELECT - col1 * - + CAST( NULL AS DECIMAL ) + - col2 * col2 / col2 * - 50, - col2 AS col2 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-158
SELECT - col1 * - + CAST ( NULL AS REAL ) + - col2 * col2 / col2 * - 50, - col2 AS col2 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT 57 - 44 AS col1 FROM tab0, tab1 AS cor0
----
13

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 20 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - 47 * - col1 + + 14 AS col0 FROM tab2 AS cor0
----
2411
3163
3633

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + + 35
----

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

query I rowsort
SELECT DISTINCT - - 31 AS col2 FROM tab1 AS cor0
----
31

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

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

query I rowsort
SELECT DISTINCT + + AVG ( col0 ) AS col1 FROM tab2 cor0 WHERE ( col1 ) <= - col2 / - col0 + - col0
----
NULL

query I rowsort
SELECT + ( + - ( + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + 25 * - ( - col2 ) * - 74 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
-107300
-75
-42550
-46
-74000
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL - MAX( col2 ) * + - 29 AS col0 FROM tab1
----
2784

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - MAX ( col2 ) * + - 29 AS col0 FROM tab1
----
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, col1 col0 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 BETWEEN - 73 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 51 * - - col0 - - + col2 NOT BETWEEN - 14 AND - 73 / + 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT 90 * + COUNT( * ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-173
SELECT 90 * + COUNT ( * ) FROM tab1
----
270

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

skipif mysql # not compatible
query I rowsort label-174
SELECT col1 / + 55 FROM tab0
----
0
0
1

query I rowsort
SELECT - 59 AS col2 FROM tab1 cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL - COUNT( * ) * - + 1 * ( + 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL - COUNT ( * ) * - + 1 * ( + 33 ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + COUNT( * ) + - ( MIN( DISTINCT + col0 ) ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-177
SELECT + COUNT ( * ) + - ( MIN ( DISTINCT + col0 ) ) FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - + 20 + + COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-178
SELECT - + 20 + + COUNT ( * ) FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT COUNT( * ) + + 77 AS col2 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT COUNT ( * ) + + 77 AS col2 FROM tab0
----
80

query I rowsort
SELECT - col0 * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = col0 + + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - COUNT( * ) * 96 - 52 FROM tab2 AS cor0
----
-340

skipif mysql # not compatible
query I rowsort label-184
SELECT - COUNT ( * ) * 96 - 52 FROM tab2 AS cor0
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-185
SELECT ALL 4 DIV COUNT( * ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-185
SELECT ALL 4 / COUNT ( * ) col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + 16 * 46 AS col0 FROM tab2 AS cor0
----
-736

onlyif mysql # DIV for integer division: 
query II rowsort label-187
SELECT ALL col1 DIV - 87 * + col2 * 68 AS col1, 68 FROM tab1 AS cor0
----
0
68
0
68
0
68

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL col1 / - 87 * + col2 * 68 AS col1, 68 FROM tab1 AS cor0
----
0
68
0
68
0
68

onlyif mysql # DIV for integer division: 
query II rowsort label-188
SELECT DISTINCT + 12 DIV col1 col1, col0 + + col0 FROM tab1 cor0
----
0
102
0
182
2
170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-188
SELECT DISTINCT + 12 / col1 col1, col0 + + col0 FROM tab1 cor0
----
0
102
0
182
2
170

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * 96 / + - 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT + col2 * col1 DIV 90 * + + col2 + col1 + + col2 FROM tab2
----
1477
2619
373

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + col2 * col1 / 90 * + + col2 + col1 + + col2 FROM tab2
----
1477
2619
373

query I rowsort
SELECT DISTINCT - 69 FROM tab1, tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT ( + 38 ) + + - 97 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL + 44 + + COUNT( ALL 64 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + 44 + + COUNT ( ALL 64 ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT col0 + - CAST( - + 93 AS SIGNED ) + ( + - col2 ) - + 85 * col0 * - + 31 FROM tab1
----
134433
224094
239901

skipif mysql # not compatible
query I rowsort label-194
SELECT col0 + - CAST ( - + 93 AS INTEGER ) + ( + - col2 ) - + 85 * col0 * - + 31 FROM tab1
----
134433
224094
239901

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT - MAX( DISTINCT col0 ) + - 23 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - MAX ( DISTINCT col0 ) + - 23 FROM tab0
----
-120

query I rowsort
SELECT ALL - col0 - - col2 + col2 AS col1 FROM tab2 AS cor0
----
0
16
41

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

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

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

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

query II rowsort
SELECT ALL + col0 AS col2, col2 + + col1 AS col1 FROM tab0
----
15
128
87
31
97
100

query I rowsort
SELECT 68 * col1 FROM tab2 AS cor0
----
3468
4556
5236

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE - ( - ( + col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 87 IS NULL
----

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

query II rowsort
SELECT ALL + col2 / - - 48 * - - col2, ( + col0 ) FROM tab0 WHERE + col1 + 31 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - ( - COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-206
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL 23 + + - col0 * + col1 + + 8 + + - col0 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL col0 + + + col0 AS col0 FROM tab1
----
102
170
182

query II rowsort
SELECT ALL + col2 * col2 AS col2, col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col0 * + + col2, - 23 + - + col0 AS col1 FROM tab1 AS cor0
----
-4896
-74
-5015
-108
-6188
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-211
SELECT ( + 1 ) DIV - COUNT( * ) * - SUM( DISTINCT - - 36 ) * - 64 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT ( + 1 ) / - COUNT ( * ) * - SUM ( DISTINCT - - 36 ) * - 64 FROM tab0 cor0
----
0

query I rowsort
SELECT col0 + + 52 * col2 + - 62 AS col2 FROM tab1
----
3091
3565
4981

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT 18 DIV + col2 + col1 * + 29 AS col0 FROM tab1
----
1363
145
406

skipif mysql # not compatible
query I rowsort label-213
SELECT 18 / + col2 + col1 * + 29 AS col0 FROM tab1
----
1363
145
406

query I rowsort
SELECT ( - 63 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col1 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

query II rowsort
SELECT + 79 AS col2, 95 * - 57 * + - col0 + - col1 FROM tab2 cor0
----
79
249039
79
346483
79
406058

query I rowsort
SELECT - + 84 * - col0 FROM tab1 cor0
----
4284
7140
7644

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 77, - 34 col0 FROM tab2 AS cor0
----
-77
-34

query I rowsort
SELECT + + 30 * + col1 FROM tab2 AS cor0
----
1530
2010
2310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 col1, + col1 AS col1 FROM tab0
----
20
1
20
21
20
81

query II rowsort
SELECT col0 * - col0, col2 FROM tab1
----
-2601
96
-7225
59
-8281
68

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT + + col0 AS col2, col2 * + col1, + col0 FROM tab1 WHERE - - col2 / col0 >= - ( 64 )
----
9 values hashing to dfca580479e09b96a7201dee6ef25134

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 17 col0, col0 FROM tab0
----
17
15
17
87
17
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 - + 4 col2 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NULL IS NULL AND NOT + 54 IS NULL
----
-23
-40
-58

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col0 / + 81 * + + col2 <> NULL
----

query I rowsort
SELECT ALL - 8 * + - 16 FROM tab1 AS cor0
----
128
128
128

query II rowsort
SELECT DISTINCT - 50 AS col2, + 62 AS col0 FROM tab0 AS cor0
----
-50
62

query I rowsort
SELECT ALL col1 * - + col1 AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT DISTINCT COUNT( * ) * + - 30 * 68 DIV + COUNT( * ) FROM tab0
----
-2040

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT COUNT ( * ) * + - 30 * 68 / + COUNT ( * ) FROM tab0
----
-2040

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT - - 49 DIV - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-238
SELECT - - 49 / - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT + - COUNT( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> + 71
----
0

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT + - COUNT ( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> + 71
----
0

query I rowsort
SELECT + - 66 AS col0 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT col1 * + + 29 AS col0 FROM tab2 AS cor0
----
1479
1943
2233

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT - col0 DIV 28 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-242
SELECT - col0 / 28 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL + - COUNT( * ) * 87 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + - COUNT ( * ) * 87 FROM tab0 AS cor0
----
-261

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

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT - ( + - col2 ) FROM tab2 WHERE NOT ( + col1 ) <= - 51
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col0 + + 90 + 86 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + 15 AS col1 FROM tab1
----
111
74
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-249
SELECT COUNT( * ) DIV + - 77 AS col0, 21 AS col2 FROM tab2, tab0 AS cor0
----
0
21

skipif mysql # not compatible
query II rowsort label-249
SELECT COUNT ( * ) / + - 77 AS col0, 21 AS col2 FROM tab2, tab0 AS cor0
----
0
21

query I rowsort
SELECT + 34 + - col1 FROM tab0 AS cor0
----
-47
13
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-251
SELECT + - CAST( NULL AS SIGNED ) * + 64 + + - col1 + - + col1 / 10 * - col2 * + - col2 - + col1 + + - col0, - col2 AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-251
SELECT + - CAST ( NULL AS INTEGER ) * + 64 + + - col1 + - + col1 / 10 * - col2 * + - col2 - + col1 + + - col0, - col2 AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT - + COUNT ( ALL + 30 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 36 * ( + col1 ) AS col2 FROM tab1
----
1692
180
504

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

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL COUNT ( col0 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT NULL = + 77
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT ALL - col1 * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT 34 BETWEEN NULL AND - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - col1 * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT 34 BETWEEN NULL AND - col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 1 * col2 col0 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-262
SELECT ALL col2 * + col0 FROM tab1 WHERE NOT col2 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL col2 * + col0 FROM tab1 WHERE NOT col2 IN ( CAST ( NULL AS REAL ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT 7 DIV ( - 95 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-264
SELECT 7 / ( - 95 ) AS col1 FROM tab1
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE col0 BETWEEN - col1 AND ( - col0 )
----

query I rowsort
SELECT + col0 + col1 * - col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT ALL + MIN( DISTINCT CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) ) + + 29 col0 FROM tab1
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-270
SELECT ALL + MIN ( DISTINCT CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) ) + + 29 col0 FROM tab1
----
-62

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT col2 + - 38 DIV - 90 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-273
SELECT col2 + - 38 / - 90 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col1 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-276
SELECT ALL AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT - COUNT( - 45 ) + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-278
SELECT - COUNT ( - 45 ) + + COUNT ( * ) FROM tab2
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 10 * + 60 ) IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( 10 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-282
SELECT ALL col1 * + CAST( NULL AS SIGNED ) 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-282
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 69 ) = NULL
----

query I rowsort
SELECT 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT 84 FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL 77 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT + 12 / col1 FROM tab0
----
0
12

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 > + 95
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 60 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT - 18 * 37 + 55 DIV col0 FROM tab1 AS cor0
----
-665
-666
-666

skipif mysql # not compatible
query I rowsort label-293
SELECT - 18 * 37 + 55 / col0 FROM tab1 AS cor0
----
-665
-666
-666

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

query I rowsort
SELECT - - 48 + col0 AS col2 FROM tab2 AS cor0
----
112
123
94

query I rowsort
SELECT - col2 + + - col0 AS col1 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT * FROM tab0 WHERE 92 < ( - col0 )
----

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

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

query I rowsort
SELECT col1 + 78 FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT DISTINCT COUNT( * ) + 68 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT COUNT ( * ) + 68 FROM tab0
----
71

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

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

query I rowsort
SELECT + 7 * col1 FROM tab0 AS cor0
----
147
567
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 >= col1 + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 83 - 18 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + col0 + + + ( - - col2 ) AS col1 FROM tab0
----
196
62
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL MIN( DISTINCT + ( + 25 ) ) + 36 col2 FROM tab1, tab0 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-307
SELECT ALL MIN ( DISTINCT + ( + 25 ) ) + 36 col2 FROM tab1, tab0 AS cor0
----
61

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT 16 NOT BETWEEN ( NULL ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL 46 + + col0 * - 72 * CAST ( NULL AS INTEGER ) + 45 * ( col0 + col1 * + col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 75 FROM tab1 AS cor0 WHERE + 15 > col0
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= ( + 84 * col1 )
----

query I rowsort
SELECT DISTINCT col2 + + - 42 FROM tab1 AS cor0
----
17
26
54

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

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

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

query I rowsort
SELECT + col0 / - 87 FROM tab1 AS cor0 WHERE ( col1 ) > NULL
----

query II rowsort
SELECT ALL + - col2 AS col0, - col0 * - 70 FROM tab2 AS cor0
----
-23
3220
-40
4480
-58
5250

query I rowsort
SELECT - - 90 * + ( + col0 ) FROM tab0 AS cor0
----
1350
7830
8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL + CAST( col2 AS SIGNED ) + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 30 ) AND ( 70 / 17 )
----

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + CAST ( col2 AS INTEGER ) + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 30 ) AND ( 70 / 17 )
----

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab0
----
225
7569
9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT - SUM( - col1 ) + 73 FROM tab1 WHERE NOT + + col2 + - col2 * col2 IS NULL
----
139

skipif mysql # not compatible
query I rowsort label-324
SELECT - SUM ( - col1 ) + 73 FROM tab1 WHERE NOT + + col2 + - col2 * col2 IS NULL
----
139

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + 43 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( - + 30 ) AS col1, 42 * - col1 * 45 FROM tab0 AS cor0
----
30
-153090
30
-1890
30
-39690

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col0 + - col1 / - col2 - col0 BETWEEN NULL AND 62 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT - SUM( - col0 ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-329
SELECT - SUM ( - col0 ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT MIN( 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-331
SELECT MIN ( 91 ) FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-332
SELECT SUM( DISTINCT - col2 ) * COUNT( * ) AS col2, 47 FROM tab0
----
-468
47

skipif mysql # not compatible
query II rowsort label-332
SELECT SUM ( DISTINCT - col2 ) * COUNT ( * ) AS col2, 47 FROM tab0
----
-468
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT COUNT( * ) DIV + 74 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-334
SELECT COUNT ( * ) / + 74 AS col1 FROM tab1 AS cor0
----
0

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

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

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

query I rowsort
SELECT ALL + 70 * - 62 AS col2 FROM tab2 AS cor0
----
-4340
-4340
-4340

query I rowsort
SELECT - 33 * + 89 + - 82 FROM tab2 AS cor0
----
-3019
-3019
-3019

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

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

query I rowsort
SELECT ALL 13 * - 26 * + + ( + - col2 ) * ( 21 ) AS col0 FROM tab1 AS cor0
----
418782
482664
681408

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

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

query I rowsort
SELECT - 94 FROM tab0 AS cor0 WHERE - col0 + + + ( ( ( - col0 ) ) ) NOT BETWEEN ( 79 ) AND ( - 75 )
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + 12 * col2 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT ALL - ( - 47 ) DIV - col1 + col0 * col2 - 29 * + col0 FROM tab0
----
-1655
270
6743

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL - ( - 47 ) / - col1 + col0 * col2 - 29 * + col0 FROM tab0
----
-1655
270
6743

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

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

query I rowsort
SELECT DISTINCT 58 FROM tab1 WHERE 75 IS NOT NULL
----
58

query II rowsort
SELECT DISTINCT col1 + col0, 23 AS col0 FROM tab0
----
108
23
96
23
98
23

query I rowsort
SELECT ALL - 5 + + + col1 + + 11 + + col2 + + - col0 AS col1 FROM tab1
----
-15
30
65

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

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

query I rowsort
SELECT col0 + - 29 + col0 AS col1 FROM tab1
----
141
153
73

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT COUNT( * ) * COUNT( * ) + - 9 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-351
SELECT COUNT ( * ) * COUNT ( * ) + - 9 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-352
SELECT - ( 23 ) DIV + 99 + - COUNT( * ) + 68 AS col1 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-352
SELECT - ( 23 ) / + 99 + - COUNT ( * ) + 68 AS col1 FROM tab2
----
65

query I rowsort
SELECT col0 * - col2 * + col0 + - col2 AS col0 FROM tab2
----
-163880
-326308
-48691

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

skipif mysql # not compatible
query II rowsort label-354
SELECT 64 + + + 1, COUNT ( ALL + col2 ) AS col0 FROM tab1
----
65
3

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT + 90 DIV - col1 + - col2 * - - ( - 53 ) FROM tab2 AS cor0
----
1218
2119
3073

skipif mysql # not compatible
query I rowsort label-355
SELECT + 90 / - col1 + - col2 * - - ( - 53 ) FROM tab2 AS cor0
----
1218
2119
3073

query I rowsort
SELECT ALL + col1 + col0 * - + 1 * col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-357
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( + - col1 + 21 )
----

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

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

query I rowsort
SELECT ALL + 8 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * + col1 * ( + + col0 ) col2 FROM tab0 AS cor0
----
1552
19440
29232

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + 59 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT DISTINCT 35 DIV + COUNT( + ( 8 ) ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT 35 / + COUNT ( + ( 8 ) ) AS col2 FROM tab2
----
11

query II rowsort
SELECT DISTINCT - 96, col0 FROM tab1
----
-96
51
-96
85
-96
91

query I rowsort
SELECT + 74 * + 21 AS col1 FROM tab1
----
1554
1554
1554

query I rowsort
SELECT col2 * + col1 * - ( + col1 ) * col1 FROM tab0
----
-24977727
-92610
-99

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

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

query I rowsort
SELECT col1 * - + col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-375
SELECT - col0 * + ( - col1 ) AS col0, - col2 + + CAST( ( 72 ) AS SIGNED ) AS col2 FROM tab2
----
2346
49
4928
32
5025
14

skipif mysql # not compatible
query II rowsort label-375
SELECT - col0 * + ( - col1 ) AS col0, - col2 + + CAST ( ( 72 ) AS INTEGER ) AS col2 FROM tab2
----
2346
49
4928
32
5025
14

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL COUNT ( * ) * + ( - + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL SUM( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL SUM ( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-383
SELECT * FROM tab2 WHERE ( NOT ( 36 * + 99 ) NOT IN ( - col0, CAST( + col0 AS SIGNED ) + + 39 + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-383
SELECT * FROM tab2 WHERE ( NOT ( 36 * + 99 ) NOT IN ( - col0, CAST ( + col0 AS INTEGER ) + + 39 + + col2 ) )
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 82 IS NULL
----

query I rowsort
SELECT DISTINCT ( + - 94 ) * + 71 FROM tab2 AS cor0
----
-6674

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

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

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

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

query I rowsort
SELECT ALL 26 * 39 AS col0 FROM tab1
----
1014
1014
1014

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

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

query I rowsort
SELECT DISTINCT col2 * + 36 + + 83 - 32 AS col1 FROM tab1
----
2175
2499
3507

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND + ( col0 ) + + 75
----

query II rowsort
SELECT ALL - ( - 10 ) + - ( + + 5 ) * + col1, - 67 AS col2 FROM tab1
----
-15
-67
-225
-67
-60
-67

query I rowsort
SELECT DISTINCT + col2 + col1 * - col2 FROM tab0 AS cor0
----
-200
-3760
0

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

query I rowsort
SELECT + col2 - + - 45 AS col2 FROM tab0 AS cor0
----
144
55
92

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-398
SELECT - 52 + + CAST( - col2 AS SIGNED ) DIV + 62 AS col2 FROM tab0 AS cor0
----
-52
-52
-53

skipif mysql # not compatible
query I rowsort label-398
SELECT - 52 + + CAST ( - col2 AS INTEGER ) / + 62 AS col2 FROM tab0 AS cor0
----
-52
-52
-53

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

query I rowsort
SELECT ALL + col0 * - 25 * - - col2 AS col1 FROM tab1 AS cor0
----
-122400
-125375
-154700

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

query I rowsort
SELECT ALL - - 60 AS col2 FROM tab2 AS cor0 WHERE + 84 BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT + SUM( + col1 ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
585

skipif mysql # not compatible
query I rowsort label-403
SELECT + SUM ( + col1 ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
585

onlyif mysql # DIV for integer division: 
query II rowsort label-404
SELECT 80 AS col0, - 15 DIV - col1 FROM tab0 AS cor0
----
80
0
80
0
80
15

skipif mysql # not compatible
query II rowsort label-404
SELECT 80 AS col0, - 15 / - col1 FROM tab0 AS cor0
----
80
0
80
0
80
15

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

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

query I rowsort
SELECT ALL + - 41 * + - 1 AS col2 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-408
SELECT ALL + + col0 AS col0, CAST( - col2 AS SIGNED ) - - - col2 DIV 81 FROM tab0 AS cor0
----
15
-47
87
-10
97
-100

skipif mysql # not compatible
query II rowsort label-408
SELECT ALL + + col0 AS col0, CAST ( - col2 AS INTEGER ) - - - col2 / 81 FROM tab0 AS cor0
----
15
-47
87
-10
97
-100

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 29 * - 46 + + ( - ( ( + 1 ) ) ), - col2 + + col1 )
----

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL NOT IN ( + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col1 AND NULL
----

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

query II rowsort
SELECT - col1 * - + col1 AS col2, - 93 AS col1 FROM tab1 AS cor0
----
196
-93
2209
-93
25
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT - MAX( DISTINCT + 44 ) + - COUNT( * ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - MAX ( DISTINCT + 44 ) + - COUNT ( * ) AS col1 FROM tab0
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT COUNT( * ) + + MAX( 99 ) + + - SUM( - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT COUNT ( * ) + + MAX ( 99 ) + + - SUM ( - - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 * - 74 AS col2 FROM tab0 AS cor0
----
-1110
-6438
-7178

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

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

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

query II rowsort
SELECT + col1 AS col1, 85 + - col0 * - - col2 + - col2 FROM tab0 AS cor0
----
1
-9617
21
-795
81
-667

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

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

query I rowsort
SELECT DISTINCT col2 * - col2 + 96 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2113
-4
-9705

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT + SUM( + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + SUM ( + col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - COUNT( * ) + + + 78 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) + + + 78 FROM tab2
----
75

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

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

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

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL CAST ( NULL AS INTEGER ) + - MAX ( col2 ) / 69 AS col2 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT ALL - 55 DIV - + col2 + col0 col1 FROM tab2
----
48
65
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-434
SELECT ALL - 55 / - + col2 + col0 col1 FROM tab2
----
48
65
75

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT ALL 9 + col1 + - + 87 DIV + - 36 AS col2 FROM tab2
----
62
78
88

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL 9 + col1 + - + 87 / + - 36 AS col2 FROM tab2
----
62
78
88

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

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

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT DISTINCT + col2 DIV + 16 + + + 21 + - + 74 AS col0 FROM tab2 cor0
----
-50
-51
-52

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT + col2 / + 16 + + + 21 + - + 74 AS col0 FROM tab2 cor0
----
-50
-51
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL - + col2 / + - col1 FROM tab2 cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT + col2 * - + 87 FROM tab1
----
-5133
-5916
-8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( col1 ) / + 9 + + 43 + - + 60 col2 FROM tab0 WHERE NOT ( 70 ) <> ( col0 - - col1 )
----
NULL

query I rowsort
SELECT ALL 75 * - - col0 AS col0 FROM tab1
----
3825
6375
6825

query II rowsort
SELECT - 85 AS col2, col0 - - col1 AS col2 FROM tab2
----
-85
141
-85
142
-85
97

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT COUNT( * ) * + SUM( ALL + - 86 ) AS col0 FROM tab1
----
-774

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) * + SUM ( ALL + - 86 ) AS col0 FROM tab1
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT col2 DIV + 22 AS col0 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-450
SELECT col2 / + 22 AS col0 FROM tab0
----
0
2
4

query II rowsort
SELECT 6, 48 AS col1 FROM tab1
----
6
48
6
48
6
48

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT SUM( + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-452
SELECT SUM ( + col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col1 * + 95 col1 FROM tab1
----
40375
406315
67830

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT ALL - COUNT( * ) col0, + 85 AS col2 FROM tab2 AS cor0
----
-3
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-458
SELECT ALL - COUNT ( * ) col0, + 85 AS col2 FROM tab2 AS cor0
----
-3
85

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT 20 DIV col0 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-459
SELECT 20 / col0 AS col0 FROM tab0 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - + col0 * col2 col2 FROM tab0
----
-625
-790
-9523

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-462
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + 9 col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

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

query I rowsort
SELECT + 58 + col0 FROM tab0 AS cor0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT SUM( - 25 ) + - + MIN( ALL + col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-465
SELECT SUM ( - 25 ) + - + MIN ( ALL + col0 ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - col1 + + - 83 AS col2 FROM tab0 AS cor0
----
-524
-6644
-84

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-468
SELECT - CAST( + col1 AS SIGNED ) DIV 10 col2, 90 AS col1 FROM tab0
----
-2
90
-8
90
0
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-468
SELECT - CAST ( + col1 AS INTEGER ) / 10 col2, 90 AS col1 FROM tab0
----
-2
90
-8
90
0
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + 6 col0 FROM tab1
----
57
91
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL SUM( DISTINCT col1 ) * + CAST( NULL AS SIGNED ) + + + 19 + - MIN( ALL 87 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL SUM ( DISTINCT col1 ) * + CAST ( NULL AS INTEGER ) + + + 19 + - MIN ( ALL 87 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT 66 + + SUM( - 30 ) + + 6 AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT 66 + + SUM ( - 30 ) + + 6 AS col2 FROM tab0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-472
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - - col0 * + - 97 * - - col1 + col2 + - - ( - - col2 ) AS col0 FROM tab0 WHERE + - col1 NOT BETWEEN - col2 AND NULL
----
-117761
-177199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL 46 * - CAST( NULL AS SIGNED ) + - + AVG ( 46 ) AS col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN - col2 - + col2 * + ( ( + col1 ) ) AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL 46 * - CAST ( NULL AS INTEGER ) + - + AVG ( 46 ) AS col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN - col2 - + col2 * + ( ( + col1 ) ) AND ( - col2 )
----
NULL

query I rowsort
SELECT DISTINCT - - col0 - - - 86 + - 74 AS col2 FROM tab2 AS cor0
----
-114
-85
-96

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

skipif mysql # not compatible
query II rowsort label-476
SELECT + COUNT ( * ) AS col0, + COUNT ( DISTINCT - + 54 ) AS col0 FROM tab1 AS cor0
----
3
1

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

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

query II rowsort
SELECT + col2 * - - ( - - col1 ) AS col0, - ( - ( - + 85 ) ) AS col1 FROM tab0 AS cor0
----
210
-85
3807
-85
99
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 6 <> - 23
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > - ( ( - - 75 ) ) )
----

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

skipif mysql # not compatible
query I rowsort label-481
SELECT + MIN ( + 62 ) FROM tab2 AS cor0
----
62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT + CAST( col1 AS SIGNED ) * - ( + 86 ) AS col2 FROM tab2 AS cor0
----
-4386
-5762
-6622

skipif mysql # not compatible
query I rowsort label-483
SELECT + CAST ( col1 AS INTEGER ) * - ( + 86 ) AS col2 FROM tab2 AS cor0
----
-4386
-5762
-6622

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT DISTINCT COUNT( * ) * + 24 AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT COUNT ( * ) * + 24 AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT + - col0 * + - 29 FROM tab2 AS cor0
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT DISTINCT - 81 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT - 81 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
243

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

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab0 WHERE NOT NULL NOT IN ( - 69, 23 )
----

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

query I rowsort
SELECT ALL + 77 + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT - CAST( 9 AS SIGNED ) + - + 60 col1 FROM tab2 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-492
SELECT - CAST ( 9 AS INTEGER ) + - + 60 col1 FROM tab2 AS cor0
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 - + - 21 / + + col0 * + - 78 - - col2 col2 FROM tab0 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT - - 26 - - - 58 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

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

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

query I rowsort
SELECT - ( + - 40 ) - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-59
-7
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT + 74 + - + MAX( ( + + 52 ) ) col1 FROM tab0 AS cor0 WHERE NOT + 78 * + + col2 + col0 IS NULL
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-498
SELECT DISTINCT + 74 + - + MAX ( ( + + 52 ) ) col1 FROM tab0 AS cor0 WHERE NOT + 78 * + + col2 + col0 IS NULL
----
22

query I rowsort
SELECT - col2 FROM tab1 WHERE + col0 <= + + col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL col1 + + col0 DIV + col0 + - 19 + - col0 FROM tab0
----
-114
-84
48

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL col1 + + col0 / + col0 + - 19 + - col0 FROM tab0
----
-114
-84
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 10 ) * - col0 + col0 col0 FROM tab0
----
-135
-783
-873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-502
SELECT - CAST( MAX( - col0 ) AS SIGNED ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-502
SELECT - CAST ( MAX ( - col0 ) AS INTEGER ) AS col0 FROM tab1
----
51

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ) col0, - col1 * - - col2 FROM tab1 AS cor0
----
-59
-295
-68
-3196
-96
-1344

query I rowsort
SELECT DISTINCT - 43 + - AVG ( ALL + col1 ) + - 67 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-507
SELECT + COUNT( * ) DIV + CAST( ( - 46 ) AS SIGNED ) AS col1, + 81 + + + 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0
128

skipif mysql # not compatible
query II rowsort label-507
SELECT + COUNT ( * ) / + CAST ( ( - 46 ) AS INTEGER ) AS col1, + 81 + + + 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0
128

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col2 - + col0 col2 FROM tab0 AS cor0
----
-801
-9701
-978

query I rowsort
SELECT ALL + ( col1 ) + - + 22 AS col2 FROM tab2
----
29
45
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT DISTINCT 22 DIV col0 + 23 - - 35 DIV col2 + - - col2 + - 67 AS col1 FROM tab1
----
15
24
52

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT 22 / col0 + 23 - - 35 / col2 + - - col2 + - 67 AS col1 FROM tab1
----
15
24
52

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + - 64
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col1 > - col0 - + - col2
----
15
81
47
87
21
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - SUM( ALL + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-518
SELECT - SUM ( ALL + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT 13 FROM tab1 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL + 59 + + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL + 59 + + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 70 - - ( - 46 ) col1 FROM tab2 AS cor0
----
3174
4434
5204

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

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

query II rowsort
SELECT + 56, ( col1 ) FROM tab0 AS cor0
----
56
1
56
21
56
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT 51 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-525
SELECT 51 / - col1 FROM tab2
----
-1
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 15 col0, col1 FROM tab1
----
15
14
15
47
15
5

onlyif mysql # DIV for integer division: 
query II rowsort label-528
SELECT col0 DIV - - col0 AS col2, col0 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-528
SELECT col0 / - - col0 AS col2, col0 FROM tab0
----
1
15
1
87
1
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-529
SELECT - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - 49 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-529
SELECT - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - 49 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 44 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
167508
4356
9240

query I rowsort
SELECT ALL + 94 AS col1 FROM tab2 AS cor0
----
94
94
94

query II rowsort
SELECT - 22 AS col2, - col1 + + col1 FROM tab1 AS cor0
----
-22
0
-22
0
-22
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 >= + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT + - CAST( - - MAX( ALL - - 54 ) AS SIGNED ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-536
SELECT + - CAST ( - - MAX ( ALL - - 54 ) AS INTEGER ) FROM tab2 AS cor0
----
-54

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

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

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

query I rowsort
SELECT ALL - 74 + - col2 FROM tab0
----
-121
-173
-84

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col0 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT col1 + col2 + col0, col0 AS col1 FROM tab2 AS cor0
----
120
46
181
64
200
75

query I rowsort
SELECT ALL + 92 * + 84 FROM tab2 cor0
----
7728
7728
7728

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL - CAST( + - col1 AS SIGNED ) + + col2 - col0 + + 43 * - col2 * 84 FROM tab1
----
-213129
-245592
-346693

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - CAST ( + - col1 AS INTEGER ) + + col2 - col0 + + 43 * - col2 * 84 FROM tab1
----
-213129
-245592
-346693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT ALL + CAST( + - 84 AS SIGNED ) - col1 col2 FROM tab2
----
-135
-151
-161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-546
SELECT ALL + CAST ( + - 84 AS INTEGER ) - col1 col2 FROM tab2
----
-135
-151
-161

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - - 5 * + col0 col1 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT DISTINCT + 32 - + col2 FROM tab0 AS cor0
----
-15
-67
22

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT 97 * SUM( DISTINCT 15 ) FROM tab1
----
1455

skipif mysql # not compatible
query I rowsort label-555
SELECT 97 * SUM ( DISTINCT 15 ) FROM tab1
----
1455

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

skipif mysql # not compatible
query I rowsort label-556
SELECT col1 / + + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT col2 * + 8 DIV 8 * - + col1 * - col0 AS col2 FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-557
SELECT col2 * + 8 / 8 * - + col1 * - col0 AS col2 FROM tab2
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT 20 DIV - + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-558
SELECT 20 / - + col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT COUNT( * ) DIV - 77 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-559
SELECT COUNT ( * ) / - 77 FROM tab1
----
0

query I rowsort
SELECT - 35 * - col2 AS col2 FROM tab0
----
1645
3465
350

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-561
SELECT DISTINCT SUM ( - col0 ) col0 FROM tab1
----
-227

query I rowsort
SELECT ALL - col1 * + - col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT ( - + col2 ) * - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-564
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) BETWEEN NULL AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-564
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) ) BETWEEN NULL AND ( col0 )
----

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

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

query II rowsort
SELECT DISTINCT + col0 + - col2 * + col0 + + col0 + - 12 * - col0 AS col2, + col2 AS col2 FROM tab0
----
-495
47
-8245
99
348
10

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

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

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

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

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

query II rowsort
SELECT - col2 + + 68 AS col2, 61 FROM tab0 AS cor0
----
-31
61
21
61
58
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + + - 60 + col2 col2 FROM tab2 cor0
----
12
29
47

query I rowsort
SELECT + col0 * 32 FROM tab0 AS cor0
----
2784
3104
480

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-575
SELECT DISTINCT - col1 + + + 61, col0 DIV - col1 AS col2 FROM tab2
----
-16
0
-6
-1
10
0

skipif mysql # not compatible
query II rowsort label-575
SELECT DISTINCT - col1 + + + 61, col0 / - col1 AS col2 FROM tab2
----
-16
0
-6
-1
10
0

query I rowsort
SELECT ALL - 63 + - - 0 AS col2 FROM tab1
----
-63
-63
-63

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT DISTINCT + + 2 - - COUNT( * ) DIV 41 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT + + 2 - - COUNT ( * ) / 41 FROM tab1 cor0
----
2

query II rowsort
SELECT - + col1 - - + 57, col2 FROM tab1 AS cor0
----
10
68
43
96
52
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-580
SELECT + col2 AS col1, CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-580
SELECT + col2 AS col1, CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT col0 + - 91 DIV + col0 - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-581
SELECT col0 + - 91 / + col0 - col0 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 87 IS NULL
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT - 23 * + 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-897

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

query II rowsort
SELECT col2 AS col0, - col2 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
59
25075
68
290836
96
68544

query II rowsort
SELECT ALL - col1 AS col1, + col2 + - col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

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

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

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

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

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

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

query II rowsort
SELECT ALL + col0, - col0 - - col2 AS col2 FROM tab0 AS cor0
----
15
32
87
-77
97
2

query I rowsort
SELECT - 92 AS col2 FROM tab1 cor0
----
-92
-92
-92

query I rowsort
SELECT 64 * - col2 AS col1 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT DISTINCT + col2 * + - ( + - 99 ) FROM tab0
----
4653
9801
990

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL MAX( ALL - col0 ) AS col1, 28 + + - ( - - 9 ) AS col0 FROM tab0
----
-15
19

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL MAX ( ALL - col0 ) AS col1, 28 + + - ( - - 9 ) AS col0 FROM tab0
----
-15
19

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT 81 * + + MAX( 58 ) FROM tab2
----
4698

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT 81 * + + MAX ( 58 ) FROM tab2
----
4698

query I rowsort
SELECT - col0 * - - col1 * col2 AS col1 FROM tab0
----
-18270
-57105
-9603

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

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

query I rowsort
SELECT + - col0 * - + 89 FROM tab0 AS cor0
----
1335
7743
8633

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 / + 27 * + + 27 - + 55 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT + + 82 + + - col1 DIV - - 74 AS col2 FROM tab0 AS cor0
----
81
82
82

skipif mysql # not compatible
query I rowsort label-601
SELECT + + 82 + + - col1 / - - 74 AS col2 FROM tab0 AS cor0
----
81
82
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-603
SELECT DISTINCT * FROM tab2 WHERE NULL <> - + ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-603
SELECT DISTINCT * FROM tab2 WHERE NULL <> - + ( + - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab0 WHERE ( NULL ) = - col0 / + col1 + + - col2 OR NOT + col0 IS NULL
----
-88
-88
-88

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

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

query I rowsort
SELECT - col2 * - col1 - - 35 + - col1 FROM tab1 AS cor0
----
1365
3184
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT CAST( + - COUNT( 75 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-610
SELECT 8 DIV - SUM( - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-610
SELECT 8 / - SUM ( - col1 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + col2 + - - 21 = NULL
----

query I rowsort
SELECT ALL - col2 + - - col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + col2 + - 74 * + col1 * - + col2 + - col1 * + col1 FROM tab0
----
15109
275204
7424

query I rowsort
SELECT + col2 * - 60 * - 14 + - col1 AS col0 FROM tab2
----
19269
33523
48653

query I rowsort
SELECT + col0 + + ( + - 22 ) AS col0 FROM tab1
----
29
63
69

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * - - col0 * - col2 col0 FROM tab1 AS cor0
----
362304
371110
457912

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL - 5 * - MAX( ALL - col0 ) FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL - 5 * - MAX ( ALL - col0 ) FROM tab0 cor0
----
-75

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

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

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

query II rowsort
SELECT 28 AS col0, + col2 + + col2 * - 37 AS col2 FROM tab0
----
28
-1692
28
-3564
28
-360

query I rowsort
SELECT - - 95 AS col1 FROM tab1 WHERE NOT col2 NOT BETWEEN - col2 AND + + col1 - + - 37 + + col0 + col2
----
95
95
95

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

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

query I rowsort
SELECT + col2 * - 66 * - col1 FROM tab2
----
203280
256476
77418

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 * + col2 col0 FROM tab0
----
1363
2871
290

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

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

query I rowsort
SELECT DISTINCT + ( 41 ) FROM tab1 cor0
----
41

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

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

query I rowsort
SELECT ALL - col1 * + - 20 FROM tab2 AS cor0
----
1020
1340
1540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT 67 * + - COUNT( * ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT 67 * + - COUNT ( * ) FROM tab1 AS cor0
----
-201

query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

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

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

query II rowsort
SELECT col0 + - 2 * - + col0 + + col1, - ( - + col0 ) AS col2 FROM tab1 cor0
----
167
51
260
85
320
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT DISTINCT COUNT( ALL - col0 ) + + MIN( DISTINCT + col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT COUNT ( ALL - col0 ) + + MIN ( DISTINCT + col2 ) FROM tab1
----
62

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

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

query I rowsort
SELECT ALL - 30 - - + 34 FROM tab1
----
4
4
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT DISTINCT MAX( DISTINCT + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + 55 - - - col2 * - col2 + + + 16 + + col2 / - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT MAX ( DISTINCT + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * + 55 - - - col2 * - col2 + + + 16 + + col2 / - - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-650
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( - + col1 ) * - col0 - 1 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-1216
-1828
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + COUNT( * ) * + 90 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-652
SELECT + COUNT ( * ) * + 90 FROM tab0 AS cor0
----
270

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0 AS col0, col0 AS col0, + col2 + + col0 col1 FROM tab1 AS cor0
----
9 values hashing to 47de6105cec0278561582523f6cef51a

query II rowsort
SELECT DISTINCT 1, + 44 * + - 62 * - col1 AS col2 FROM tab1 AS cor0
----
1
128216
1
13640
1
38192

query I rowsort
SELECT - 84 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL + - SUM( - - 74 ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + - SUM ( - - 74 ) FROM tab1 AS cor0
----
-222

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-661
SELECT col0 * col2 / - ( col0 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 94 AS col2 FROM tab2 AS cor0
----
4324
6016
7050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - MAX( DISTINCT + 32 ) FROM tab0, tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-667
SELECT - MAX ( DISTINCT + 32 ) FROM tab0, tab1 AS cor0
----
-32

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-669
SELECT - ( + COUNT( * ) ) DIV SUM( + ( col1 ) ) + - + COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-669
SELECT - ( + COUNT ( * ) ) / SUM ( + ( col1 ) ) + - + COUNT ( * ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT DISTINCT SUM( - 86 ), + 93 AS col1 FROM tab1
----
-258
93

skipif mysql # not compatible
query II rowsort label-670
SELECT DISTINCT SUM ( - 86 ), + 93 AS col1 FROM tab1
----
-258
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-671
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) * + 20 + - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-671
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) * + 20 + - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 3
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT 15 + + col2 DIV + - 1 FROM tab2 AS cor0
----
-25
-43
-8

skipif mysql # not compatible
query I rowsort label-674
SELECT 15 + + col2 / + - 1 FROM tab2 AS cor0
----
-25
-43
-8

query I rowsort
SELECT DISTINCT - 23 * + 16 * 90 * - col2 FROM tab2 AS cor0
----
1324800
1920960
761760

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT - 30 * - + 68 * COUNT( * ) FROM tab2
----
6120

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - 30 * - + 68 * COUNT ( * ) FROM tab2
----
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT ALL col1 DIV - - 61 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL col1 / - - 61 FROM tab2
----
0
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT DISTINCT - 29 DIV - + 53 + col2 * - - col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT - 29 / - + 53 + col2 * - - col2 FROM tab2
----
1600
3364
529

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT - + COUNT( * ) * - 34 + - 15 AS col0, + 45 AS col0 FROM tab1 cor0
----
87
45

skipif mysql # not compatible
query II rowsort label-681
SELECT - + COUNT ( * ) * - 34 + - 15 AS col0, + 45 AS col0 FROM tab1 cor0
----
87
45

query I rowsort
SELECT ALL - 52 * - 62 - + 8 * + 75 AS col1 FROM tab0 AS cor0
----
2624
2624
2624

query I rowsort
SELECT - 90 - + col1 FROM tab0 AS cor0
----
-111
-171
-91

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

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT ALL 30 DIV - ( + ( - - ( COUNT( ALL + col0 ) ) ) ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL 30 / - ( + ( - - ( COUNT ( ALL + col0 ) ) ) ) AS col0 FROM tab0
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT DISTINCT - COUNT( * ) + + MIN( ALL col0 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - COUNT ( * ) + + MIN ( ALL col0 ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT - + COUNT( * ) * - MIN( ALL - 68 ) AS col1 FROM tab2 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - + COUNT ( * ) * - MIN ( ALL - 68 ) AS col1 FROM tab2 cor0
----
-204

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT + COUNT( - + 64 ) + - + MAX( ALL - 12 ) + - 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + COUNT ( - + 64 ) + - + MAX ( ALL - 12 ) + - 71 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT 57 DIV - col0 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-693
SELECT 57 / - col0 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT + 84 * 61 AS col0 FROM tab2
----
5124
5124
5124

query I rowsort
SELECT - 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query II rowsort
SELECT - + col2 AS col1, + ( - col0 ) AS col2 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT DISTINCT - 91 AS col2, - col1 * + col1 FROM tab0 AS cor0
----
-91
-1
-91
-441
-91
-6561

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

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

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

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( + 78, col2 * - col0 + - col1 / - 26 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-701
SELECT DISTINCT + CAST( - + ( - + col0 ) AS DECIMAL ) + + 88 AS col1 FROM tab1 AS cor0 WHERE + CAST( col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + CAST ( - + ( - + col0 ) AS REAL ) + + 88 AS col1 FROM tab1 AS cor0 WHERE + CAST ( col1 AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-32
77

query I rowsort
SELECT ALL - 77 FROM tab0 cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 FROM tab2
----
23
23
40
40
58
58

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

query I rowsort
SELECT DISTINCT col1 + 70 AS col1 FROM tab1
----
117
75
84

query II rowsort
SELECT + 8 AS col2, 87 * + ( + col0 ) + col0 FROM tab1
----
8
4488
8
7480
8
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT + 92 + + COUNT( DISTINCT + col1 ) AS col2 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT + 92 + + COUNT ( DISTINCT + col1 ) AS col2 FROM tab0
----
95

query II rowsort
SELECT ALL - col1 AS col1, + 49 FROM tab2
----
-51
49
-67
49
-77
49

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

query I rowsort
SELECT DISTINCT + col2 + + 66 + 41 AS col0 FROM tab2
----
130
147
165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - - col2 * ( + - col0 )
----

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

query I rowsort
SELECT DISTINCT + + 52 * + - 47 FROM tab0 AS cor0
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - MIN( ALL + + ( + + col0 ) ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - MIN ( ALL + + ( + + col0 ) ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-12

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

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

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

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

query I rowsort
SELECT col1 * - 78 AS col1 FROM tab2 AS cor0
----
-3978
-5226
-6006

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

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

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT MAX ( ALL - col1 ) AS col1 FROM tab1
----
-5

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

query II rowsort
SELECT - - 58 AS col0, ( col1 ) FROM tab0 AS cor0
----
58
1
58
21
58
81

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

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT col0 NOT BETWEEN 84 * 28 AND NULL
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-727
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE ( NULL ) IN ( + CAST( + 2 AS DECIMAL ) + + 90 )
----

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE ( NULL ) IN ( + CAST ( + 2 AS REAL ) + + 90 )
----

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

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

skipif mysql # not compatible
query I rowsort label-729
SELECT + MAX ( - col0 ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT + 2 + col2 AS col0 FROM tab1
----
61
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - SUM( ALL + col1 ) + COUNT( * ) AS col0 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-731
SELECT - SUM ( ALL + col1 ) + COUNT ( * ) AS col0 FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + MIN( DISTINCT - col1 ) + + SUM( DISTINCT col0 ) AS col1 FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-732
SELECT + MIN ( DISTINCT - col1 ) + + SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT ALL 4 DIV - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 4 / - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT + 99 + + col0 AS col1 FROM tab2
----
145
163
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT CAST( 74 AS SIGNED ) + - COUNT( * ) col0 FROM tab0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-735
SELECT CAST ( 74 AS INTEGER ) + - COUNT ( * ) col0 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT 66 + COUNT( * ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-736
SELECT 66 + COUNT ( * ) AS col1 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + col2 * 99 FROM tab2
----
2277
3960
5742

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT - 22 * MAX( 76 ) FROM tab1
----
-1672

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT - 22 * MAX ( 76 ) FROM tab1
----
-1672

query I rowsort
SELECT ALL - 40 * col1 - col2 AS col1 FROM tab2
----
-2063
-2738
-3120

query I rowsort
SELECT ALL + 63 * col0 FROM tab0
----
5481
6111
945

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT 96 * COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-743
SELECT 96 * COUNT ( * ) AS col2 FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT + col1 AS col1 FROM tab1 WHERE - 86 IN ( CAST( col0 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-744
SELECT + col1 AS col1 FROM tab1 WHERE - 86 IN ( CAST ( col0 AS INTEGER ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT COUNT( * ) AS col2 FROM tab2 WHERE 8 - col0 NOT IN ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-745
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE 8 - col0 NOT IN ( + col0 )
----
3

query I rowsort
SELECT col1 * col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
5040
5092
8397

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-748
SELECT COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
6

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

query I rowsort
SELECT + col1 + 1 AS col0 FROM tab0 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT SUM( + col1 ) FROM tab0 WHERE col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT SUM ( + col1 ) FROM tab0 WHERE col1 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - 47 + + col0 FROM tab2
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT DISTINCT + COUNT( * ) + 2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + COUNT ( * ) + 2 FROM tab2
----
5

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

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

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

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

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

query I rowsort
SELECT 90 - + 73 AS col1 FROM tab0 cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + + COUNT( * ) * MAX( ALL col2 ) + 64 AS col1 FROM tab0 AS cor0
----
361

skipif mysql # not compatible
query I rowsort label-758
SELECT + + COUNT ( * ) * MAX ( ALL col2 ) + 64 AS col1 FROM tab0 AS cor0
----
361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT - + 93 + ( + COUNT( + col2 ) ) DIV + 28 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-759
SELECT - + 93 + ( + COUNT ( + col2 ) ) / + 28 FROM tab2 AS cor0
----
-93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL 41 - + COUNT( * ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL 41 - + COUNT ( * ) FROM tab1 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 + + 54 / 68 ) = ( 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + 95 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4319
-6003
-7058

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

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

skipif mysql # not compatible
query I rowsort label-766
SELECT COUNT ( * ) + + + 69 + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
71

query I rowsort
SELECT col0 * - - col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT + 41 AS col2 FROM tab0 WHERE NOT 54 NOT BETWEEN 80 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT + ( + COUNT( * ) ) FROM tab0 WHERE NOT 60 - + ( 24 ) * ( 71 ) NOT BETWEEN - col0 AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT + ( + COUNT ( * ) ) FROM tab0 WHERE NOT 60 - + ( 24 ) * ( 71 ) NOT BETWEEN - col0 AND ( col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab0
----
63

query I rowsort
SELECT 61 * AVG ( ALL - col2 ) FROM tab1 WHERE NOT ( - col1 ) >= - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + SUM( + - ( col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-772
SELECT + SUM ( + - ( col0 ) ) FROM tab2
----
-185

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

skipif mysql # not compatible
query I rowsort label-773
SELECT MIN ( DISTINCT - col0 ) FROM tab0
----
-97

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 77 )
----

query I rowsort
SELECT ALL ( + col0 ) * 79 FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 18 ) AND col1 * 99
----

query I rowsort
SELECT ALL 98 * col1 FROM tab0 AS cor0 WHERE ( NULL ) <> col0 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + ( + col1 ) ) IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 58 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT + MAX( - 59 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-59

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT + MAX ( - 59 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT DISTINCT - 81 DIV + 36 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-2

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT - 81 / + 36 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-2

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT - COUNT( * ) * + 8 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-786
SELECT - COUNT ( * ) * + 8 FROM tab0 AS cor0
----
-24

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col1 + ( col1 ) / col2 = ( NULL ) OR col0 IS NULL
----

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE NOT ( col2 * 18 - - 83 ) IS NULL
----
53

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

query I rowsort
SELECT + + 98 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT - col2 * - col2 + 7 / - 14 >= 17 + + 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 34 col0 FROM tab2 AS cor0
----
1734
2278
2618

query I rowsort
SELECT ALL - 95 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-4868
-6423
-7355

query I rowsort
SELECT ALL + ( - col2 ) + + col1 * + + col2 AS col0 FROM tab0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ( + - MAX( + 8 ) ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-796
SELECT ( + - MAX ( + 8 ) ) FROM tab0
----
-8

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

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

query I rowsort
SELECT ALL - col0 + - col2 + - 81 * 14 FROM tab0
----
-1196
-1231
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT - COUNT( * ) + - 14 - + ( - + 2 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - COUNT ( * ) + - 14 - + ( - + 2 ) FROM tab2
----
-15

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

query I rowsort
SELECT DISTINCT + 38 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * ( - - col0 ) + + + col0 AS col1 FROM tab2
----
-2070
-4032
-5550

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND + 34
----

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT NULL = ( + col0 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT + MAX( - 42 ) * - 95 + SUM( DISTINCT 29 ) FROM tab2
----
4019

skipif mysql # not compatible
query I rowsort label-807
SELECT + MAX ( - 42 ) * - 95 + SUM ( DISTINCT 29 ) FROM tab2
----
4019

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL > - ( - col1 )
----

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

query I rowsort
SELECT DISTINCT ( col0 ) - + - 44 FROM tab1
----
129
135
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT ALL + COUNT( * ) + 67 - + - CAST( NULL AS SIGNED ) + + 20 * - ( MAX( - col1 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + COUNT ( * ) + 67 - + - CAST ( NULL AS INTEGER ) + + 20 * - ( MAX ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT ALL - col0 * col1 + + col1 FROM tab0 AS cor0 WHERE col0 + + 72 + CAST( - col2 AS DECIMAL ) + + 24 * col1 IS NOT NULL
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL - col0 * col1 + + col1 FROM tab0 AS cor0 WHERE col0 + + 72 + CAST ( - col2 AS REAL ) + + 24 * col1 IS NOT NULL
----
-1134
-1806
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + SUM( ALL col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-816
SELECT + SUM ( ALL col0 ) FROM tab0 AS cor0
----
199

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

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

query I rowsort
SELECT - ( - - col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( NOT - col0 BETWEEN NULL AND + - 28 )
----

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

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

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

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

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

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

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

query I rowsort
SELECT ( ( 73 ) ) + + 54 FROM tab2 AS cor0 WHERE NOT ( col1 + col1 + + col2 ) > + col0 * + - ( - 34 )
----
127
127
127

query II rowsort
SELECT col1 AS col0, 87 * + 99 AS col1 FROM tab0 AS cor0
----
1
8613
21
8613
81
8613

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - MIN( 32 ) AS col1 FROM tab1 WHERE NOT + - col2 + 72 + + ( + - col2 ) IN ( + 61 )
----
-32

skipif mysql # not compatible
query I rowsort label-828
SELECT - MIN ( 32 ) AS col1 FROM tab1 WHERE NOT + - col2 + 72 + + ( + - col2 ) IN ( + 61 )
----
-32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col2 ) + - 98 col2 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL - + MAX( - 0 ) * 60 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - + MAX ( - 0 ) * 60 FROM tab1 AS cor0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT + 9 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-834
SELECT + 9 / + col0 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT 54 * col1 FROM tab0
----
1134
4374
54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + + ( + ( - COUNT( * ) ) ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + + ( + ( - COUNT ( * ) ) ) AS col0 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-839
SELECT - 95 col2, COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-839
SELECT - 95 col2, COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-95
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( + 61 ) ) + + - col2 col1 FROM tab0
----
-38
14
51

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 53 - - - 6 FROM tab2
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-843
SELECT 9 DIV + 34 + - - col1 AS col1, + col1 * + col0 * + col2 * - col0 - + 16 + col2 AS col1 FROM tab2
----
51
-2482061
67
-21858708
77
-12615656

skipif mysql # not compatible
query II rowsort label-843
SELECT 9 / + 34 + - - col1 AS col1, + col1 * + col0 * + col2 * - col0 - + 16 + col2 AS col1 FROM tab2
----
51
-2482061
67
-21858708
77
-12615656

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL ( + 53 ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL ( + 53 ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
44

query I rowsort
SELECT + 43 * 19 - - col2 AS col1 FROM tab2
----
840
857
875

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL - COUNT( DISTINCT - + 0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - COUNT ( DISTINCT - + 0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

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

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

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

query I rowsort
SELECT - col2 * - - 71 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - 33 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 11, 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-855
SELECT * FROM tab0 WHERE NOT + 62 * - - CAST( 67 AS SIGNED ) * - 93 * + 43 + col0 NOT IN ( - - col2 * - col1 * - col0 + col2 )
----

skipif mysql # not compatible
query III rowsort label-855
SELECT * FROM tab0 WHERE NOT + 62 * - - CAST ( 67 AS INTEGER ) * - 93 * + 43 + col0 NOT IN ( - - col2 * - col1 * - col0 + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - SUM( - 17 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-857
SELECT - SUM ( - 17 ) AS col2 FROM tab2
----
51

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 84 / + col0 <= - - 13 / + col0 * - + 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-860
SELECT ALL 27 * - col2 AS col2, + CAST( NULL AS DECIMAL ) + + 98 + - + col1 * + + col1 FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
-1593
NULL
-1836
NULL
-2592
NULL

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL 27 * - col2 AS col2, + CAST ( NULL AS REAL ) + + 98 + - + col1 * + + col1 FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
-1593
NULL
-1836
NULL
-2592
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0, - ( - 80 ), 50 )
----
0

skipif mysql # not compatible
query I rowsort label-861
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0, - ( - 80 ), 50 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT - 17, COUNT( * ) col2 FROM tab2 AS cor0
----
-17
3

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

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

query I rowsort
SELECT DISTINCT - ( - 69 ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + col0 > NULL
----

query I rowsort
SELECT DISTINCT 83 + - 17 FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col0 / - 17 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL - + 82 * - COUNT( * ) FROM tab0 cor0
----
246

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - + 82 * - COUNT ( * ) FROM tab0 cor0
----
246

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-870
SELECT ALL CAST( NULL AS SIGNED ), - MAX( + 90 ) AS col1 FROM tab2 AS cor0
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-870
SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + 90 ) AS col1 FROM tab2 AS cor0
----
NULL
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT - + 71 + - MIN( + col1 ) col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-871
SELECT - + 71 + - MIN ( + col1 ) col1 FROM tab0 AS cor0
----
-72

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-873
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, col2 / 67 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-873
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, col2 / 67 * + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT - col2 AS col0, ( - 98 ) FROM tab1 AS cor0
----
-59
-98
-68
-98
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT 45 * - 76 + - COUNT( * ) col1 FROM tab0
----
-3423

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-875
SELECT DISTINCT 45 * - 76 + - COUNT ( * ) col1 FROM tab0
----
-3423

query I rowsort
SELECT - + 15 AS col0 FROM tab0 WHERE + - ( - - col0 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + - col2 * - 58 col0 FROM tab1
----
3458
3980
5604

query II rowsort
SELECT ALL col1 + + ( 73 ) AS col1, 51 - + col1 AS col2 FROM tab0
----
154
-30
74
50
94
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-879
SELECT ALL + 81 + + ( + CAST( NULL AS SIGNED ) ) + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + 81 + + ( + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + - 48 AS col0, 15 AS col0 FROM tab0 AS cor0
----
-27
15
-47
15
33
15

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

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

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

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

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

query I rowsort
SELECT ALL - - 56 FROM tab0 AS cor0
----
56
56
56

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

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

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

query I rowsort
SELECT ALL + - col0 * + - 85 AS col1 FROM tab2 AS cor0
----
3910
5440
6375

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT DISTINCT - col0 DIV + 44 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT - col0 / + 44 FROM tab1 AS cor0
----
-1
-2

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

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

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

query I rowsort
SELECT - 50 * - - 82 FROM tab1 AS cor0
----
-4100
-4100
-4100

query I rowsort
SELECT ALL - 58 AS col2 FROM tab0 AS cor0
----
-58
-58
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 96 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL COUNT( * ) * + SUM( ALL + 12 ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL COUNT ( * ) * + SUM ( ALL + 12 ) FROM tab0
----
108

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 97 AND - - col2 * - - col0 * + 17
----

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

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

query I rowsort
SELECT - 13 * + col0 + + 20 + 43 * + + ( + col1 ) + - col1 + col1 FROM tab1 AS cor0
----
-41
-870
858

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-902
SELECT COUNT( * ) DIV + 60 + + + MIN( + col0 ) col1 FROM tab0 AS cor0 WHERE NOT + 61 IS NULL
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-902
SELECT COUNT ( * ) / + 60 + + + MIN ( + col0 ) col1 FROM tab0 AS cor0 WHERE NOT + 61 IS NULL
----
15

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 22 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - 92 * - 97 AS col1 FROM tab1 WHERE + col0 <= + 61
----
8924

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

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

query I rowsort
SELECT ALL - - 21 * - - 68 + + 16 FROM tab2 AS cor0
----
1444
1444
1444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-907
SELECT DISTINCT col0 AS col2, CAST( + ( - - col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-907
SELECT DISTINCT col0 AS col2, CAST ( + ( - - col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT + col1 + + - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT - - MAX( - col1 ) AS col1 FROM tab0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT - - MAX ( - col1 ) AS col1 FROM tab0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT - col0 + + - 90 AS col2 FROM tab2
----
-136
-154
-165

query II rowsort
SELECT 63 + col0, col0 AS col1 FROM tab1
----
114
51
148
85
154
91

query I rowsort
SELECT col0 + - 86 AS col1 FROM tab1
----
-1
-35
5

query II rowsort
SELECT ( + col1 ) AS col2, - 69 + + + col0 + + - col0 FROM tab0
----
1
-69
21
-69
81
-69

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

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

query I rowsort
SELECT DISTINCT col1 - - - 8 - + col0 FROM tab0
----
-104
-74
58

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-918
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) < + - col1 + col1
----

skipif mysql # not compatible
query III rowsort label-918
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) < + - col1 + col1
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE col0 IN ( + col1, + 16 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab0 cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab0 cor0
----
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 * col2 col2, + ( - col0 ) FROM tab0 AS cor0
----
4512
-15
9504
-97
960
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT + COUNT( - + ( + 36 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT + COUNT ( - + ( + 36 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + ( - - 17 ) + 60 + + 15 = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col2 ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL ( + MIN( - col1 ) ) * - 42 FROM tab2
----
3234

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL ( + MIN ( - col1 ) ) * - 42 FROM tab2
----
3234

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

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

query I rowsort
SELECT 95 * + col2 FROM tab1
----
5605
6460
9120

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

skipif mysql # not compatible
query I rowsort label-933
SELECT + MIN ( ALL col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT DISTINCT - CAST( - 60 AS SIGNED ) DIV - + SUM( ALL 27 ) + - + 32 AS col0 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT - CAST ( - 60 AS INTEGER ) / - + SUM ( ALL 27 ) + - + 32 AS col0 FROM tab1
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 col1 FROM tab0 AS cor0 WHERE + 16 IS NOT NULL
----
-1
-441
-6561

query I rowsort
SELECT - + ( + 36 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < + col2 / - 72 * - - col0 * 5 * ( + col1 ) + - col1 + + col2
----

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

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

query I rowsort
SELECT ALL col0 + - + col0 + + - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + col2 + + - col1 - - - 32 FROM tab0
----
-43
-66
66

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * col0 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 88 / - - 9 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - ( - + col0 ) * - col2 - - - 87, 51 AS col2 FROM tab0 AS cor0
----
-792
51
-957
51
-9690
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 * - col0 ) NOT IN ( 52 + - 70 * 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - - SUM( DISTINCT - - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-945
SELECT - - SUM ( DISTINCT - - col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT ALL + 54 - - - 35 + 99 AS col2 FROM tab1 AS cor0 WHERE NOT 64 <> col0
----

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

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

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

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

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

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

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

query I rowsort
SELECT 32 - ( - + col2 ) + - 42 AS col0 FROM tab0
----
0
37
89

query I rowsort
SELECT DISTINCT 58 + + 9 * + col2 * - + col1 FROM tab0
----
-1832
-34205
-833

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + - - ( - col1 ) AS col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 86 * + 40 IS NULL
----

query II rowsort
SELECT DISTINCT 39 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
39
-14
39
-47
39
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - SUM( col2 ) * - 84 FROM tab2
----
10164

skipif mysql # not compatible
query I rowsort label-958
SELECT - SUM ( col2 ) * - 84 FROM tab2
----
10164

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT + 26 DIV + 63 AS col2 FROM tab1 WHERE NOT 84 IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT + 26 / + 63 AS col2 FROM tab1 WHERE NOT 84 IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT + ( 72 ) FROM tab2 AS cor0
----
72

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

skipif mysql # not compatible
query I rowsort label-961
SELECT - MAX ( + 3 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 73 - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 96 )
----

query I rowsort
SELECT col1 * - 44 * col2 AS col0 FROM tab0 AS cor0
----
-167508
-4356
-9240

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-967
SELECT ALL - col1 * + + 35 - - - col2 - - col2 DIV - - col0 * 31 AS col1, col2 * - ( col1 ) FROM tab2 AS cor0
----
-1808
-1173
-2403
-3886
-2735
-3080

skipif mysql # not compatible
query II rowsort label-967
SELECT ALL - col1 * + + 35 - - - col2 - - col2 / - - col0 * 31 AS col1, col2 * - ( col1 ) FROM tab2 AS cor0
----
-1808
-1173
-2403
-3886
-2735
-3080

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = ( NULL )
----

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-975
SELECT + col0 + + col0 * col0 DIV + 7 - col2, col2 AS col1 FROM tab1 AS cor0
----
1058
59
1206
68
326
96

skipif mysql # not compatible
query II rowsort label-975
SELECT + col0 + + col0 * col0 / + 7 - col2, col2 AS col1 FROM tab1 AS cor0
----
1058
59
1206
68
326
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 78 - + col1 col0 FROM tab0 AS cor0
----
12
144
174

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

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

query I rowsort
SELECT DISTINCT 33 + + - col0 FROM tab1
----
-18
-52
-58

query I rowsort
SELECT ALL - col0 * - 55 * ( - col1 ) AS col2 FROM tab1
----
-23375
-235235
-39270

query I rowsort
SELECT DISTINCT - col1 * - col0 + + + col2 AS col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT - col0 * + col0 - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-7469
1984
392

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

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

query I rowsort
SELECT ALL 1 - + - 75 AS col0 FROM tab0 AS cor0
----
76
76
76

query II rowsort
SELECT ALL + - 11 AS col1, - 40 * + col2 FROM tab2 AS cor0
----
-11
-1600
-11
-2320
-11
-920

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

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

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

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

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

query I rowsort
SELECT ALL 40 + - 38 + - + col1 AS col2 FROM tab2
----
-49
-65
-75

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

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

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - col1 * - - ( - - col2 ) AS col2 FROM tab1
----
-1344
-295
-3196

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

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

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

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

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * - col2 col1 FROM tab1
----
1239
1428
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL - MIN( ALL - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL - MIN ( ALL - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + MAX( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-998
SELECT + MAX ( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
99

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

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

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

query I rowsort
SELECT ALL + + col2 * - 61 FROM tab1 AS cor0
----
-3599
-4148
-5856

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + SUM( ALL 19 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1003
SELECT + SUM ( ALL 19 ) FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1004
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1004
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + MAX( - - 84 ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1005
SELECT + MAX ( - - 84 ) AS col1 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + 39 col1 FROM tab1
----
12
46
52

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

query II rowsort
SELECT DISTINCT + 18, - 98 * - - col2 AS col2 FROM tab0
----
18
-4606
18
-9702
18
-980

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT + SUM ( + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT col0 * + ( + - 97 ) * + 11 + col1 AS col1 FROM tab0
----
-103498
-15924
-92808

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

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

query II rowsort
SELECT ALL + 59, + col1 + - - 35 + ( + - col1 ) AS col1 FROM tab0
----
59
35
59
35
59
35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1014
SELECT DISTINCT + - 44, - MIN( col2 ) AS col0 FROM tab1 AS cor0
----
-44
-59

skipif mysql # not compatible
query II rowsort label-1014
SELECT DISTINCT + - 44, - MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
-44
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT col1 + 29 * + col2 * - - ( - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-100944
-134049
-267250

skipif mysql # not compatible
query I rowsort label-1015
SELECT col1 + 29 * + col2 * - - ( - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-100944
-134049
-267250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 34 + col0 * 9 * - - 25 col1, col2 col0 FROM tab0 AS cor0
----
19609
10
21859
99
3409
47

query I rowsort
SELECT - - 63 + - - col1 AS col1 FROM tab2 AS cor0
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1018
SELECT DISTINCT + col2 + - + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT + col2 + - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL + 69 * - - 64 AS col1, - 8 FROM tab0
----
4416
-8
4416
-8
4416
-8

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT - MIN ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= - col2
----
NULL

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

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

query I rowsort
SELECT - col0 * + 57 FROM tab1 cor0
----
-2907
-4845
-5187

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT DISTINCT - + 93 DIV col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - + 93 / col2 FROM tab0 AS cor0
----
-1
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1024
SELECT DISTINCT - COUNT( - 90 ) DIV - 19 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT - COUNT ( - 90 ) / - 19 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT + col1 + - - col0 + + col2 + + col1 + - - col2 FROM tab2 WHERE NOT - - 49 + - 60 IS NULL
----
194
298
325

query I rowsort
SELECT ALL ( - 39 ) AS col2 FROM tab0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1028
SELECT * FROM tab1 WHERE NOT NULL <> CAST( NULL AS SIGNED ) / 78 * col1
----

skipif mysql # not compatible
query III rowsort label-1028
SELECT * FROM tab1 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) / 78 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1029
SELECT MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT col1 AS col2, 7 * 98 AS col1 FROM tab0 AS cor0
----
1
686
21
686
81
686

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

skipif mysql # not compatible
query I rowsort label-1031
SELECT SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + - 44 * + + col2 AS col1 FROM tab1 AS cor0
----
-2596
-2992
-4224

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT DISTINCT - CAST( - + ( + ( + MIN( + col0 ) ) ) AS SIGNED ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - CAST ( - + ( + ( + MIN ( + col0 ) ) ) AS INTEGER ) AS col1 FROM tab2
----
46

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT - 54 * - COUNT ( * ) FROM tab2
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT - ( + col0 ) DIV - 81 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1036
SELECT - ( + col0 ) / - 81 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - - ( - 69 ) AS col1 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + col2 * - + 75 AS col2 FROM tab1 AS cor0
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT ALL + CAST( + col0 AS SIGNED ) * + 13 + + - col0 * + - 37 + + 32 FROM tab0 AS cor0
----
4382
4882
782

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + CAST ( + col0 AS INTEGER ) * + 13 + + - col0 * + - 37 + + 32 FROM tab0 AS cor0
----
4382
4882
782

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

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

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

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

query I rowsort
SELECT DISTINCT + - 60 * + 66 + + - 61 * - - 24 FROM tab1 AS cor0
----
-5424

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

query I rowsort
SELECT ALL + 55 + - col1 + - + col0 AS col0 FROM tab0
----
-41
-43
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT CAST( + + ( + col2 ) AS SIGNED ) + + 60 FROM tab0
----
107
159
70

skipif mysql # not compatible
query I rowsort label-1046
SELECT CAST ( + + ( + col2 ) AS INTEGER ) + + 60 FROM tab0
----
107
159
70

query I rowsort
SELECT DISTINCT - col0 + + - 99 FROM tab1
----
-150
-184
-190

query I rowsort
SELECT col1 + - - col2 * - - col2 AS col2 FROM tab1
----
3486
4671
9230

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT DISTINCT + + SUM( 6 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT + + SUM ( 6 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col1 col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + - 45 FROM tab1 AS cor0 WHERE ( - + col0 + col1 + + 68 > NULL )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT 30 * + col0 + - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
2602
2910
450

skipif mysql # not compatible
query I rowsort label-1059
SELECT 30 * + col0 + - col0 / col2 AS col1 FROM tab0 AS cor0
----
2602
2910
450

query I rowsort
SELECT ALL - + ( - col2 ) - + col1 - + ( + 47 ) * col1 * ( - + 15 ) FROM tab0 AS cor0
----
14794
57071
803

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 77 + - 60 * col0 BETWEEN + col1 AND NULL ) OR NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( 91 ) FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0 WHERE - col2 + 23 IS NOT NULL
----
87

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

query I rowsort
SELECT ALL 51 AS col2 FROM tab2
----
51
51
51

onlyif mysql # DIV for integer division: 
query II rowsort label-1066
SELECT - col1 DIV + col1 col0, col1 - - col1 FROM tab0
----
-1
162
-1
2
-1
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1066
SELECT - col1 / + col1 col0, col1 - - col1 FROM tab0
----
-1
162
-1
2
-1
42

query I rowsort
SELECT DISTINCT 33 * + 67 AS col0 FROM tab1
----
2211

query II rowsort
SELECT ALL 60 * + - 54, - col2 AS col2 FROM tab0
----
-3240
-10
-3240
-47
-3240
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT ALL COUNT( * ) AS col0, + 85 * - - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
7905

skipif mysql # not compatible
query II rowsort label-1069
SELECT ALL COUNT ( * ) AS col0, + 85 * - - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + ( - - MAX( ALL + 35 ) ) AS col2 FROM tab0, tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1070
SELECT + ( - - MAX ( ALL + 35 ) ) AS col2 FROM tab0, tab0 AS cor0
----
35

query I rowsort
SELECT ALL + col1 + - + col2 - - 74 - + 30 * 24 FROM tab1
----
-667
-700
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 + col0 * + 30 * - + 12 col2 FROM tab0 AS cor0
----
-31294
-34894
-5374

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT DISTINCT 48 DIV + 5 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT 48 / + 5 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT - MAX( DISTINCT + col0 ) AS col2 FROM tab0 cor0 WHERE NOT col1 >= - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT - MAX ( DISTINCT + col0 ) AS col2 FROM tab0 cor0 WHERE NOT col1 >= - + col2
----
NULL

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + ( + 56 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT - COUNT( * ), MAX( + col1 ) AS col2 FROM tab2 cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-1078
SELECT - COUNT ( * ), MAX ( + col1 ) AS col2 FROM tab2 cor0
----
-3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + - 8 * + + COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1079
SELECT + - 8 * + + COUNT ( * ) FROM tab2 AS cor0
----
-24

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT ALL col1 + - col0 * - - CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
1296
1848
98

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL col1 + - col0 * - - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
1296
1848
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1084
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE + - 10 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1084
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE + - 10 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + - 22 FROM tab2
----
1
18
36

query I rowsort
SELECT col0 + + 70 + + col0 FROM tab0 AS cor0
----
100
244
264

onlyif mysql # aggregate syntax: 
query II rowsort label-1087
SELECT ALL + 0, + 48 * + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0
-432

skipif mysql # not compatible
query II rowsort label-1087
SELECT ALL + 0, + 48 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0
-432

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - 4 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5

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

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

query I rowsort
SELECT 30 * - + 71 AS col1 FROM tab2
----
-2130
-2130
-2130

query I rowsort
SELECT DISTINCT + 77 + + + 79 AS col1 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col2 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL 59 * + col2 FROM tab1 AS cor0
----
3481
4012
5664

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

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

query I rowsort
SELECT DISTINCT ( 85 ) FROM tab1 AS cor0
----
85

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

query I rowsort
SELECT + + col1 * - col0 - - col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1098
SELECT ALL - col0 AS col0, + CAST( NULL AS SIGNED ) - 16 * + 6 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT ALL - col0 AS col0, + CAST ( NULL AS INTEGER ) - 16 * + 6 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - COUNT( - - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1101
SELECT - COUNT ( - - col1 ) FROM tab0
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + + 85 * - MAX( ALL - col0 ) + + + SUM( ALL + - 20 ) + + 8 AS col0 FROM tab0 AS cor0
----
1223

skipif mysql # not compatible
query I rowsort label-1105
SELECT + + 85 * - MAX ( ALL - col0 ) + + + SUM ( ALL + - 20 ) + + 8 AS col0 FROM tab0 AS cor0
----
1223

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL + COUNT( * ) col1 FROM tab2 AS cor0 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-1106
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT 30 + 40 + + 74 * 40 + + 55 FROM tab1 cor0
----
3085
3085
3085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT DISTINCT col1 * col2 + + + ( - - col0 ) + col1 + - col0 * + 92 + + CAST( - + col2 AS SIGNED ) FROM tab1
----
-3379
-5106
-7494

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT col1 * col2 + + + ( - - col0 ) + col1 + - col0 * + 92 + + CAST ( - + col2 AS INTEGER ) FROM tab1
----
-3379
-5106
-7494

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1110
SELECT ALL - - 88 DIV + col0 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
0
91
1
51
1
85

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL - - 88 / + col0 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
0
91
1
51
1
85

query I rowsort
SELECT 83 * - col1 * + - col2 FROM tab2 AS cor0
----
255640
322538
97359

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT - col1 DIV + ( + - col1 ) - + + col2 FROM tab1 cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-1112
SELECT - col1 / + ( + - col1 ) - + + col2 FROM tab1 cor0
----
-58
-67
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1113
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - CAST( - 15 AS SIGNED ) - col2
----

skipif mysql # not compatible
query III rowsort label-1113
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - CAST ( - 15 AS INTEGER ) - col2
----

query I rowsort
SELECT col0 * + - 30 * - + col2 * 40 AS col1 FROM tab1 cor0
----
5875200
6018000
7425600

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

query I rowsort
SELECT - - 12 AS col1 FROM tab1 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

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

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

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

query I rowsort
SELECT ALL + ( + - 98 ) AS col2 FROM tab2 WHERE NULL >= + col2
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 9 BETWEEN NULL AND + 86
----

query I rowsort
SELECT col0 + - col2 - - + 91 * ( + col1 ) FROM tab1
----
1229
4300
481

query I rowsort
SELECT DISTINCT + 54 + + 13 + col0 * + - 72 + + ( 20 ) FROM tab1
----
-3585
-6033
-6465

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT ALL + MAX( + col2 ) + + 20 AS col0, 50 AS col0 FROM tab0
----
119
50

skipif mysql # not compatible
query II rowsort label-1125
SELECT ALL + MAX ( + col2 ) + + 20 AS col0, 50 AS col0 FROM tab0
----
119
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + ( + + 48 ) + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-1127
SELECT + ( + + 48 ) + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT - ( - + col2 ) * + - 16 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
78336
80240
99008

skipif mysql # not compatible
query I rowsort label-1128
SELECT - ( - + col2 ) * + - 16 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
78336
80240
99008

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 21 IS NULL
----

query I rowsort
SELECT - 20 * + + col1 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT ALL 24 AS col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
24
24
24

query I rowsort
SELECT + + 74 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

query I rowsort
SELECT DISTINCT - col2 * + col0 + 17 FROM tab0 cor0
----
-688
-853
-9586

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + 38 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL + MAX( + + col1 ) * - CAST( NULL AS SIGNED ) * + 5 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + MAX ( + + col1 ) * - CAST ( NULL AS INTEGER ) * + 5 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * - + col1 * col1 FROM tab1
----
103823
125
2744

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

query I rowsort
SELECT + 0 * - 85 AS col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT + COUNT ( * ) * + 95 FROM tab1
----
285

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT IN ( col2 * - 56 )
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * 79 NOT BETWEEN - + col1 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + - 83 FROM tab1
----
-36
-69
-78

query I rowsort
SELECT + col0 + 27 AS col1 FROM tab1
----
112
118
78

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

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

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1 cor0
----
-71

query II rowsort
SELECT ALL col1 - - col0, - col0 AS col2 FROM tab1 AS cor0
----
138
-91
65
-51
90
-85

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

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

query II rowsort
SELECT 77 * - col0 AS col2, + 37 AS col0 FROM tab1 AS cor0
----
-3927
37
-6545
37
-7007
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1154
SELECT - 85 / - MAX( - 80 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT - 85 / - MAX ( - 80 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT COUNT( * ) AS col0, ( - + 38 ) AS col1 FROM tab0 AS cor0
----
3
-38

skipif mysql # not compatible
query II rowsort label-1155
SELECT COUNT ( * ) AS col0, ( - + 38 ) AS col1 FROM tab0 AS cor0
----
3
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT - 24 AS col1, COUNT( * ) + - + SUM( - 55 ) AS col1 FROM tab1 cor0
----
-24
168

skipif mysql # not compatible
query II rowsort label-1156
SELECT - 24 AS col1, COUNT ( * ) + - + SUM ( - 55 ) AS col1 FROM tab1 cor0
----
-24
168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1157
SELECT DISTINCT 58 * + + CAST( 85 AS SIGNED ) AS col1, + col1 + col1 FROM tab1
----
4930
10
4930
28
4930
94

skipif mysql # not compatible
query II rowsort label-1157
SELECT DISTINCT 58 * + + CAST ( 85 AS INTEGER ) AS col1, + col1 + col1 FROM tab1
----
4930
10
4930
28
4930
94

query I rowsort
SELECT 67 - + col1 + - + col0 FROM tab0
----
-29
-31
-41

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

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

query II rowsort
SELECT DISTINCT 57 - - + 4, + col2 FROM tab1
----
61
59
61
68
61
96

query I rowsort
SELECT ALL - 60 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT + + col1 + + 21 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT DISTINCT + 78 - + col1 + - col1 * - col0 FROM tab2 AS cor0
----
2373
4929
5036

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL - SUM( - 35 ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - SUM ( - 35 ) AS col0 FROM tab1
----
105

query I rowsort
SELECT DISTINCT + - 86 * + - 25 AS col1 FROM tab2 AS cor0
----
2150

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1169
SELECT - col2, + 2 * + + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT - col2, + 2 * + + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 78 col2 FROM tab0
----
1638
6318
78

query I rowsort
SELECT ALL + 60 + + col1 FROM tab2
----
111
127
137

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 87 + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 66 + 69 AS col2 FROM tab0 WHERE NOT + + col1 * - + 90 + + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 3 FROM tab1
----
-153
-255
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT - 50 + + + MAX( DISTINCT + 76 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1178
SELECT - 50 + + + MAX ( DISTINCT + 76 ) FROM tab2
----
26

query I rowsort
SELECT DISTINCT + 28 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1316
-140
-392

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 9 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT MIN( DISTINCT - 22 ) + 26 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-1181
SELECT MIN ( DISTINCT - 22 ) + 26 FROM tab2 cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1182
SELECT CAST( col2 AS SIGNED ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-1182
SELECT CAST ( col2 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT 16 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT DISTINCT - 87 * - SUM( + - CAST( NULL AS SIGNED ) ) * - + 77 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT - 87 * - SUM ( + - CAST ( NULL AS INTEGER ) ) * - + 77 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 78 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query I rowsort
SELECT DISTINCT 37 * col2 FROM tab1
----
2183
2516
3552

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

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

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

query I rowsort
SELECT DISTINCT ( - 38 ) * col1 FROM tab0 AS cor0
----
-3078
-38
-798

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 58 + col1 - - + col1 + - col0 * + col0 col1 FROM tab1 AS cor0
----
-2501
-7152
-8082

query I rowsort
SELECT + 48 * col0 * + - col1 * - - 58 + - col0 AS col2 FROM tab2 AS cor0
----
-13719616
-13989675
-6531310

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

query II rowsort
SELECT DISTINCT 66 AS col0, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - col2 - + 13 + col1 + 27 FROM tab2 AS cor0
----
23
42
51

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 3 + + 27 + + col0 - + col2 + + 51 * - - 36 * 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + COUNT( * ) + - + 42 AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-1199
SELECT + COUNT ( * ) + - + 42 AS col1 FROM tab1
----
-39

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

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

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

query II rowsort
SELECT - + col1 AS col1, 19 * + - col2 FROM tab2 AS cor0
----
-51
-437
-67
-1102
-77
-760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77 + - + 16
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77 + - + 16
----
0

query I rowsort
SELECT DISTINCT - 15 AS col0 FROM tab2
----
-15

query I rowsort
SELECT + ( - - 39 ) FROM tab1
----
39
39
39

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

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

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

query I rowsort
SELECT DISTINCT + 24 FROM tab2 cor0
----
24

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( ( + col0 ), 12 * + col2 * col2, - col2, - + col2, - + col2, - + col0 * + col0 * + - col0 - 20, + + 29 )
----

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

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

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

query I rowsort
SELECT DISTINCT col2 * - + col1 FROM tab1
----
-1344
-295
-3196

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab0
----
1
21
81

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

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

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

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

query I rowsort
SELECT ALL col0 + + + 16 * + + 75 + - 35 * col1 * - + col0 FROM tab2
----
173744
177150
83356

query I rowsort
SELECT col1 + + 43 AS col2 FROM tab1 WHERE NULL < + + col1
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= col0 * + - 88
----

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= col0 * + - 88
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 < - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - - 50 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2950
3400
4800

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

query I rowsort
SELECT + col1 * + 50 FROM tab0
----
1050
4050
50

query I rowsort
SELECT DISTINCT col0 * + 83 AS col0 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col1 * - 94
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE ( 94 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / 43 col1 FROM tab0 WHERE col0 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 48 * - col2 FROM tab0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT 93 + + 4 * - COUNT( * ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT 93 + + 4 * - COUNT ( * ) AS col0 FROM tab2
----
81

query I rowsort
SELECT 73 * 8 AS col0 FROM tab1
----
584
584
584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1236
SELECT ( + col2 ) * + CAST( + 78 AS DECIMAL ) + - 43 * 63 AS col2 FROM tab1 WHERE NULL >= 80
----

skipif mysql # not compatible
query I rowsort label-1236
SELECT ( + col2 ) * + CAST ( + 78 AS REAL ) + - 43 * 63 AS col2 FROM tab1 WHERE NULL >= 80
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 59 NOT IN ( - col2 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT + COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-1243
SELECT + COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 BETWEEN ( NULL ) AND ( col1 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT - col0 + - CAST( - 94 + col0 AS SIGNED ) AS col0 FROM tab2
----
-34
-56
2

skipif mysql # not compatible
query I rowsort label-1244
SELECT - col0 + - CAST ( - 94 + col0 AS INTEGER ) AS col0 FROM tab2
----
-34
-56
2

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

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

query I rowsort
SELECT 41 + - col0 FROM tab1
----
-10
-44
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - MIN( 80 ) AS col2 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-1247
SELECT - MIN ( 80 ) AS col2 FROM tab2
----
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * 43 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT - col1 DIV ( + 96 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT - col1 / ( + 96 ) FROM tab0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT + col0 DIV - 39 AS col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1251
SELECT + col0 / - 39 AS col1 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT DISTINCT + 15 + + col0 FROM tab0
----
102
112
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT 52 DIV - MAX( ALL col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT 52 / - MAX ( ALL col1 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT - MAX( - col1 ) * + COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - MAX ( - col1 ) * + COUNT ( * ) FROM tab2
----
153

query I rowsort
SELECT + 76 + 0 AS col0 FROM tab2
----
76
76
76

query I rowsort
SELECT ALL - 64 FROM tab1 WHERE ( - col1 ) <> - 37
----
-64
-64
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1257
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) * ( + ( - col2 ) ) ) > + 10 * col2 - 92
----

skipif mysql # not compatible
query III rowsort label-1257
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS REAL ) * ( + ( - col2 ) ) ) > + 10 * col2 - 92
----

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

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

query I rowsort
SELECT DISTINCT 75 FROM tab1 cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT DISTINCT col1 DIV - 65 col2 FROM tab0 AS cor0
----
-1
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT COUNT( * ) * - 34 AS col1 FROM tab2 WHERE NOT + col1 IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT COUNT ( * ) * - 34 AS col1 FROM tab2 WHERE NOT + col1 IN ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT - + CAST( ( 27 ) AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-1377
-2295
-2457

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - + CAST ( ( 27 ) AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-1377
-2295
-2457

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1266
SELECT * FROM tab0 cor0 WHERE NOT - 16 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1266
SELECT * FROM tab0 cor0 WHERE NOT - 16 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT - - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT - - col1 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT + CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1269
SELECT + CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT 24 * + 35 FROM tab2 AS cor0
----
840
840
840

query I rowsort
SELECT - col0 * + col0 FROM tab0 AS cor0 WHERE NOT + 53 IN ( + col0 )
----
-225
-7569
-9409

query I rowsort
SELECT - + 26 AS col0 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + col2 + - 83 FROM tab0 AS cor0
----
-36
-73
16

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT - - COUNT ( 79 ) FROM tab2 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL SUM( ALL col2 ) FROM tab1 WHERE col2 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL SUM ( ALL col2 ) FROM tab1 WHERE col2 IS NOT NULL
----
223

query I rowsort
SELECT + col1 + - 17 AS col0 FROM tab2
----
34
50
60

query I rowsort
SELECT col1 + col0 + - col2 * 52 FROM tab1
----
-2978
-3398
-4927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE NULL BETWEEN col2 + - 72 AND - ( + ( - 25 ) )
----

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

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

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

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

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

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

query II rowsort
SELECT col1, col1 + 68 + 17 * 17 AS col0 FROM tab0
----
1
358
21
378
81
438

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT DISTINCT - - 26 DIV + - col2 - + col2 AS col1 FROM tab2 AS cor0
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - - 26 / + - col2 - + col2 AS col1 FROM tab2 AS cor0
----
-24
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 48 NOT BETWEEN + col1 * 82 AND - 29 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - - 2 + col2 FROM tab2 AS cor0
----
25
42
60

query I rowsort
SELECT DISTINCT col0 + + 5 FROM tab0 AS cor0 WHERE NOT col0 < ( NULL )
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( 50 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL MIN ( - ( col0 ) ) AS col1 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1297
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) * col0 * col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-1297
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) * col0 * col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1298
SELECT DISTINCT col1 DIV col2 AS col1 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT col1 / col2 AS col1 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
0
1
2

query I rowsort
SELECT ALL 14 * 95 FROM tab2
----
1330
1330
1330

query I rowsort
SELECT + 84 * col0 AS col0 FROM tab2
----
3864
5376
6300

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 IN ( - - col0 / 51 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 18 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + 53 FROM tab0 AS cor0
----
1113
4293
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT DISTINCT COUNT( col0 ) / SUM( ALL + col2 + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( col0 + - col1 ) NOT IN ( col0 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT COUNT ( col0 ) / SUM ( ALL + col2 + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( col0 + - col1 ) NOT IN ( col0 * - col1 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 11 * - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT - COUNT( * ) * - ( + - 94 ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-1310
SELECT - COUNT ( * ) * - ( + - 94 ) FROM tab0
----
-282

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

query I rowsort
SELECT - 48 * + col2 FROM tab1
----
-2832
-3264
-4608

query I rowsort
SELECT DISTINCT 74 - + 54 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT ALL - + 0 DIV 86 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - + 0 / 86 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 - col1 + + + ( - col2 ) + - ( col0 ) * 59 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL MIN( DISTINCT - - 96 ) FROM tab0 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL MIN ( DISTINCT - - 96 ) FROM tab0 cor0
----
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL 19 DIV - + col0 + - col2 + + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 19 / - + col0 + - col2 + + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col2 + - col1 AS col1 FROM tab1 cor0
----
-24
-59
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + 42 col1 FROM tab1 AS cor0
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT - 89 / + + col0 + - + CAST( + - 60 AS SIGNED ) + 11 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 89 / + + col0 + - + CAST ( + - 60 AS INTEGER ) + 11 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL COUNT( * ) + + - 34 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL COUNT ( * ) + + - 34 FROM tab1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1323
SELECT 77, - CAST( + 28 AS SIGNED ) + ( - COUNT( * ) ) AS col1 FROM tab0
----
77
-31

skipif mysql # not compatible
query II rowsort label-1323
SELECT 77, - CAST ( + 28 AS INTEGER ) + ( - COUNT ( * ) ) AS col1 FROM tab0
----
77
-31

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - col1 * col2 + + col1 + col0 FROM tab2
----
-1076
-2939
-3744

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - 30 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 30 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * col0 ) <= + 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col1 + + col2 col0 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT 94 * - 13 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND col2 * - 93 / + - col2
----

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

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

query I rowsort
SELECT - 95 - + - 96 * 25 * + + col1 * + - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 + ( + + 98 ) AND ( + 71 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL ( COUNT( * ) ) * - SUM( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL ( COUNT ( * ) ) * - SUM ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
198

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT + MIN( DISTINCT col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1340
SELECT + MIN ( DISTINCT col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
153

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

query I rowsort
SELECT DISTINCT - - 2 / - col1 FROM tab1 WHERE NOT - col0 <> NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT + + ( + MIN( ALL + col2 ) ) + 36 AS col2 FROM tab0 WHERE NOT - col2 * col2 * col0 * col0 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT + + ( + MIN ( ALL + col2 ) ) + 36 AS col2 FROM tab0 WHERE NOT - col2 * col2 * col0 * col0 + + col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL - + col1 * - - col2 * ( + 69 ) FROM tab2 AS cor0
----
-212520
-268134
-80937

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT - 96 * COUNT( * ) * + 31 FROM tab1 AS cor0
----
-8928

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - 96 * COUNT ( * ) * + 31 FROM tab1 AS cor0
----
-8928

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1350
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab2 WHERE ( - col0 / - col2 + - 45 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab2 WHERE ( - col0 / - col2 + - 45 IS NULL )
----

query I rowsort
SELECT - col1 * 49 AS col0 FROM tab1
----
-2303
-245
-686

onlyif mysql # DIV for integer division: 
query II rowsort label-1352
SELECT + - ( + col2 ) AS col0, + 92 DIV - 70 FROM tab2 AS cor0
----
-23
-1
-40
-1
-58
-1

skipif mysql # not compatible
query II rowsort label-1352
SELECT + - ( + col2 ) AS col0, + 92 / - 70 FROM tab2 AS cor0
----
-23
-1
-40
-1
-58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1353
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1353
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - col1 IS NULL
----

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

query I rowsort
SELECT ALL + - col0 * col2 - - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - + col1 * - - 33 + + 98 AS col1 FROM tab2 AS cor0
----
-1585
-2113
-2443

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * + ( col1 ) FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + col2 * col2 + + col1 AS col2 FROM tab2
----
1677
3431
580

query I rowsort
SELECT - col0 / + col1 AS col2 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT + 59 + 29 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1364
SELECT 88 + + ( COUNT( * ) ) - + COUNT( * ) + - 28 + MAX( ALL - 57 ) - 98 DIV + COUNT( * ) * COUNT( DISTINCT 92 ) * MIN( ALL + col1 ) col1 FROM tab0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1364
SELECT 88 + + ( COUNT ( * ) ) - + COUNT ( * ) + - 28 + MAX ( ALL - 57 ) - 98 / + COUNT ( * ) * COUNT ( DISTINCT 92 ) * MIN ( ALL + col1 ) col1 FROM tab0
----
-29

query I rowsort
SELECT DISTINCT col1 - - 43 AS col1 FROM tab1
----
48
57
90

query I rowsort
SELECT DISTINCT - col1 + ( + 55 ) AS col0 FROM tab1 AS cor0
----
41
50
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL COUNT( ALL - 74 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL COUNT ( ALL - 74 ) FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT - col0 + + 78 AS col1 FROM tab1
----
-13
-7
27

onlyif mysql # DIV for integer division: 
query III rowsort label-1371
SELECT DISTINCT - col0 AS col2, + col0 DIV col1 DIV - 15 col2, + col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to a161a999956fc0520bb8c0a2ecc75ebd

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1371
SELECT DISTINCT - col0 AS col2, + col0 / col1 / - 15 col2, + col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to a161a999956fc0520bb8c0a2ecc75ebd

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT + CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1374
SELECT + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 87, + 33 * col0 col2 FROM tab2 AS cor0
----
87
1518
87
2112
87
2475

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1377
SELECT + CAST( + col0 AS SIGNED ) * + + 12 AS col0, - 40 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 38 )
----

skipif mysql # not compatible
query II rowsort label-1377
SELECT + CAST ( + col0 AS INTEGER ) * + + 12 AS col0, - 40 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 38 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 7 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL - SUM( ALL - 87 ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - SUM ( ALL - 87 ) FROM tab1
----
261

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + 46 + col1 NOT IN ( - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT + SUM( ALL - 25 ) FROM tab2 WHERE NOT 69 + + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT + SUM ( ALL - 25 ) FROM tab2 WHERE NOT 69 + + col2 >= NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT 2 * CAST( NULL AS SIGNED ), col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1384
SELECT 2 * CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT ALL COUNT( * ), + 28 AS col0 FROM tab0, tab0 AS cor0
----
9
28

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL COUNT ( * ), + 28 AS col0 FROM tab0, tab0 AS cor0
----
9
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT - SUM( ALL - 3 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - SUM ( ALL - 3 ) AS col1 FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( col1 ) + + 88 + 87 AS col2 FROM tab2
----
226
242
252

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NULL >= + - 44
----

query I rowsort
SELECT + 21 * 74 + col2 FROM tab2
----
1577
1594
1612

query I rowsort
SELECT ALL - col2 * - col2 + + - 40 FROM tab0
----
2169
60
9761

query I rowsort
SELECT DISTINCT 27 * - ( - 42 ) AS col1 FROM tab1
----
1134

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

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

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

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 > NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - 25 * col2 + - col0 + 60 * col0 AS col1 FROM tab0 AS cor0
----
-290
3248
4883

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 + col1 * + - ( - col0 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT col2 DIV col2 * - col2 col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT col2 / col2 * - col2 col0 FROM tab0
----
-10
-47
-99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT 50 DIV 27 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1402
SELECT 50 / 27 AS col2 FROM tab1
----
1
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1403
SELECT - MAX ( DISTINCT + - col0 ) col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT 28 + - + COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 28 + - + COUNT ( * ) FROM tab1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + 95 * - - 28 col2 FROM tab0
----
-2563
-2573
-2645

query I rowsort
SELECT DISTINCT + col2 * - 30 + - + col2 + + ( - col2 ) - col2 - - 28 + + col0 * - col1 * - 10 * col0 * 66 + + col2 + - col1 * col2 FROM tab0
----
104905838
12023217
6206701

query III rowsort
SELECT * FROM tab0 WHERE - col0 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 34 + col1 FROM tab2 cor0
----
17
33
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT DISTINCT - col2 DIV - + col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - col2 / - + col1 AS col0 FROM tab1
----
1
11
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 + 99 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d37350b255ef21d1c45b9bd894205c8

query I rowsort
SELECT DISTINCT - - 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
99

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= - ( + col0 )
----

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT - + col1 * + 80 AS col0 FROM tab2 cor0
----
-4080
-5360
-6160

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

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

query I rowsort
SELECT ALL + 79 * - - col2 + 36 AS col0 FROM tab0 cor0
----
3749
7857
826

query I rowsort
SELECT DISTINCT 60 * + + col2 AS col1 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1420
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > CAST( ( + + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1420
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > CAST ( ( + + col2 ) AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1421
SELECT - ( ( - SUM( col0 ) ) ) * MAX( DISTINCT - + 59 ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT - ( ( - SUM ( col0 ) ) ) * MAX ( DISTINCT - + 59 ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col2 >= NULL
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1423
SELECT ALL SUM ( DISTINCT - 42 ) col0 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + SUM( ALL - + col0 ) + ( - 98 ) + - + 16 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-341

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1424
SELECT + SUM ( ALL - + col0 ) + ( - 98 ) + - + 16 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-341

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

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1427
SELECT DISTINCT 21 AS col0, + 18 + + MAX( col1 ) AS col2 FROM tab0
----
21
99

skipif mysql # not compatible
query II rowsort label-1427
SELECT DISTINCT 21 AS col0, + 18 + + MAX ( col1 ) AS col2 FROM tab0
----
21
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT MIN( DISTINCT col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1428
SELECT MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT DISTINCT col0 + col0 + + - col2 + col1 DIV + + col0 AS col0 FROM tab2
----
70
89
92

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT col0 + col0 + + - col2 + col1 / + + col0 AS col0 FROM tab2
----
70
89
92

query I rowsort
SELECT - 52 + - - 61 * - col0 AS col0 FROM tab2
----
-2858
-3956
-4627

query I rowsort
SELECT + + 30 + + col1 + col1 + 14 + 29 * col1 FROM tab2 AS cor0
----
1625
2121
2431

query I rowsort
SELECT DISTINCT - + col2 * + 92 FROM tab2 AS cor0
----
-2116
-3680
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT 20 + - + 90 - col0 DIV - + 98 * + 71 FROM tab0 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-1433
SELECT 20 + - + 90 - col0 / - + 98 * + 71 FROM tab0 AS cor0
----
-70
-70
-70

query II rowsort
SELECT + 66 AS col2, 52 FROM tab2 AS cor0
----
66
52
66
52
66
52

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

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

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

query I rowsort
SELECT DISTINCT - 50 + 82 FROM tab1
----
32

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

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

query I rowsort
SELECT DISTINCT col2 * 84 FROM tab2
----
1932
3360
4872

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1441
SELECT DISTINCT + col1 + col0 col1, + CAST( NULL AS SIGNED ) + - ( + CAST( NULL AS SIGNED ) ) * - + col1 FROM tab2 AS cor0
----
141
NULL
142
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1441
SELECT DISTINCT + col1 + col0 col1, + CAST ( NULL AS INTEGER ) + - ( + CAST ( NULL AS INTEGER ) ) * - + col1 FROM tab2 AS cor0
----
141
NULL
142
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1442
SELECT + CAST( + + col0 AS SIGNED ) + - col1 DIV - col0 * + 67 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1442
SELECT + CAST ( + + col0 AS INTEGER ) + - col1 / - col0 * + 67 AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + + 36 AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT - col1 * 8 + 5 + + + col1 + + col1 + - col2 + - - col2 * - col1 * - col0 AS col0 FROM tab2 AS cor0
----
196623
290995
53634

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT COUNT( * ) * - 22 AS col1, + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1445
SELECT COUNT ( * ) * - 22 AS col1, + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

query I rowsort
SELECT ALL + 7 * + col0 * - 98 * + col1 AS col1 FROM tab0 cor0
----
-1253322
-66542
-833490

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL SUM( ALL + 83 ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL SUM ( ALL + 83 ) FROM tab1
----
249

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

query I rowsort
SELECT ALL - col1 + ( - 95 ) * - col2 * col2 FROM tab1
----
330690
439233
875506

query I rowsort
SELECT DISTINCT 7 - + ( + + 55 ) - + 38 * + + col0 FROM tab2 AS cor0
----
-1796
-2480
-2898

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

query I rowsort
SELECT ALL + 6 + - 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT - COUNT( * ) * - 5 * - - COUNT( * ) col1 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1453
SELECT DISTINCT - COUNT ( * ) * - 5 * - - COUNT ( * ) col1 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-1454
SELECT 21 DIV - - col2 AS col1, 87 FROM tab0 AS cor0
----
0
87
0
87
2
87

skipif mysql # not compatible
query II rowsort label-1454
SELECT 21 / - - col2 AS col1, 87 FROM tab0 AS cor0
----
0
87
0
87
2
87

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

query II rowsort
SELECT DISTINCT + - col2 * + 33 AS col2, col1 AS col1 FROM tab1 cor0
----
-1947
5
-2244
47
-3168
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL 29 DIV - col2 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL 29 / - col2 AS col1 FROM tab0 AS cor0
----
-2
0
0

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

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT - + SUM ( + 61 ) FROM tab0 AS cor0
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT ( - + 64 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) - 12 + ( + col1 ) + - 26 - + col0, col0, 69 )
----

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT ( - + 64 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) - 12 + ( + col1 ) + - 26 - + col0, col0, 69 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 <> NULL
----

query I rowsort
SELECT - - 75 FROM tab1 cor0
----
75
75
75

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

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

query II rowsort
SELECT DISTINCT col0, col2 - + - 37 FROM tab0
----
15
84
87
47
97
136

query I rowsort
SELECT - col0 * - - 16 AS col0 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT + - ( - + ( + 8 ) ) + - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( col2 ) * + col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT ALL col0 DIV + + 80 col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1468
SELECT ALL col0 / + + 80 col2 FROM tab1
----
0
1
1

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 64 AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT - + col1 * col1 FROM tab1 AS cor0 WHERE NULL <= + - ( + - col2 ) - 50 AND NOT col2 > - col2
----

query I rowsort
SELECT 37 FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
37
37
37

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT + + 22 FROM tab2 WHERE ( CAST ( + - col0 AS REAL ) * - col2 IS NOT NULL )
----
22
22
22

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

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

skipif mysql # not compatible
query III rowsort label-1478
SELECT ALL * FROM tab0 WHERE ( + CAST ( NULL AS REAL ) IS NOT NULL )
----

query I rowsort
SELECT col1 + - - 82 * - 83 FROM tab0
----
-6725
-6785
-6805

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + MIN( + - col1 ) * 23 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT + MIN ( + - col1 ) * 23 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - + col1 * col2 + - - col0 FROM tab2 cor0
----
-1076
-2939
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1483
SELECT ALL + 65, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
65
NULL
65
NULL
65
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL + 65, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
65
NULL
65
NULL
65
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1, - col0 col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL ( - CAST( - 27 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL ( - CAST ( - 27 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT COUNT( DISTINCT + col1 ) - 22 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-1486
SELECT COUNT ( DISTINCT + col1 ) - 22 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT - 67 - + COUNT( * ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-1487
SELECT - 67 - + COUNT ( * ) FROM tab0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 91 * - col0 col1 FROM tab2
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL COUNT( * ) - ( - - MIN( - col2 ) ) col1 FROM tab2
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1489
SELECT ALL COUNT ( * ) - ( - - MIN ( - col2 ) ) col1 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT MAX( DISTINCT col0 ) + - - MIN( ALL col2 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT MAX ( DISTINCT col0 ) + - - MIN ( ALL col2 ) FROM tab2
----
98

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

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

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----

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

query I rowsort
SELECT DISTINCT + col2 * ( - 46 ) * - 78 * - - 92 + - - col1 * + - col0 + + col1 FROM tab0 AS cor0
----
15513378
32679408
3299154

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

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

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

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

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

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

query I rowsort
SELECT - - 81 AS col0 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL + 84 DIV + 25 AS col2 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + 84 / + 25 AS col2 FROM tab2
----
3
3
3

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

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

query I rowsort
SELECT DISTINCT - col1 + - 59 AS col1 FROM tab0
----
-140
-60
-80

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab2
----
5

query I rowsort
SELECT ALL - + 33 FROM tab0 AS cor0
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = col2 + 32
----

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

query I rowsort
SELECT DISTINCT - ( + + col2 ) * - - ( 95 ) AS col0 FROM tab2
----
-2185
-3800
-5510

query I rowsort
SELECT ALL + col2 + - - 44 AS col1 FROM tab0
----
143
54
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT + 43 + - 67 - - - ( + COUNT( * ) ) DIV + 53 + + - COUNT( * ) * + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-915

skipif mysql # not compatible
query I rowsort label-1509
SELECT + 43 + - 67 - - - ( + COUNT ( * ) ) / + 53 + + - COUNT ( * ) * + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-915

query I rowsort
SELECT DISTINCT + + 70 + - - col1 FROM tab2 AS cor0
----
121
137
147

query I rowsort
SELECT DISTINCT + col2 - + col2 + + col1 * col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE - 78 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + MIN( DISTINCT + ( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + MIN ( DISTINCT + ( + col0 ) ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL COUNT( * ) * + - MAX( - + col2 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL COUNT ( * ) * + - MAX ( - + col2 ) FROM tab1
----
177

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1518
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( + col1 AS DECIMAL ) * 40 + + col0 + - col0 * + col2 + - - 59 / + 64 * 64 * col1 * + col0 + - col1 * col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-1518
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( + col1 AS REAL ) * 40 + + col0 + - col0 * + col2 + - - 59 / + 64 * 64 * col1 * + col0 + - col1 * col2 >= NULL
----

query I rowsort
SELECT ALL + + 71 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1521
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( CAST( + 80 AS SIGNED ) ) BETWEEN - - col0 AND col1 + - - col2
----
46
51
23

skipif mysql # not compatible
query III rowsort label-1521
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( CAST ( + 80 AS INTEGER ) ) BETWEEN - - col0 AND col1 + - - col2
----
46
51
23

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

query I rowsort
SELECT DISTINCT col1 * + 12 FROM tab0
----
12
252
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT DISTINCT col1 * - - ( - CAST( CAST( + 2 AS SIGNED ) AS SIGNED ) ) + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT col1 * - - ( - CAST ( CAST ( + 2 AS INTEGER ) AS INTEGER ) ) + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL MIN( - 53 ) * + + 34 * - - 55 FROM tab2
----
-99110

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL MIN ( - 53 ) * + + 34 * - - 55 FROM tab2
----
-99110

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 NOT BETWEEN - - col1 + - + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT ALL CAST( col1 AS SIGNED ) * 27 + - 38 + col0 AS col2 FROM tab1
----
1322
182
391

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL CAST ( col1 AS INTEGER ) * 27 + - 38 + col0 AS col2 FROM tab1
----
1322
182
391

onlyif mysql # DIV for integer division: 
query II rowsort label-1530
SELECT DISTINCT col1 + - - 78 DIV col1, - col0 + + 55 AS col2 FROM tab1
----
19
4
20
-30
48
-36

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT col1 + - - 78 / col1, - col0 + + 55 AS col2 FROM tab1
----
19
4
20
-30
48
-36

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

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

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

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

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

query I rowsort
SELECT ( + col1 ) * col2 - + - col0 * col0 + - col1 FROM tab2
----
3238
7099
9444

query I rowsort
SELECT 71 + - col2 + + 44 + + col0 FROM tab0
----
113
192
83

query I rowsort
SELECT - col2 * + 86 + + + 57 AS col0 FROM tab1
----
-5017
-5791
-8199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 - - col0 + - ( col2 ) * - - 60 col1 FROM tab0
----
-2797
-505
-5835

query I rowsort
SELECT ALL + 21 * - 94 + + - col1 - 90 + col2 FROM tab2 cor0
----
-2073
-2092
-2101

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

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

query I rowsort
SELECT ALL + - col1 - ( - ( - 75 ) ) * + 12 FROM tab1 AS cor0
----
-905
-914
-947

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT ALL CAST( + col0 AS SIGNED ) * + + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL CAST ( + col0 AS INTEGER ) * + + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT + MAX( - + 67 ) col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1544
SELECT + MAX ( - + 67 ) col2 FROM tab2 AS cor0
----
-67

query II rowsort
SELECT ALL col2 AS col0, - col1 FROM tab1
----
59
-5
68
-47
96
-14

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

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT - - SUM ( DISTINCT 43 ) FROM tab2 AS cor0
----
43

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT + MAX( ALL + - ( + - 94 ) ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-1549
SELECT + MAX ( ALL + - ( + - 94 ) ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT - 76, 32 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-76
96

skipif mysql # not compatible
query II rowsort label-1550
SELECT - 76, 32 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-76
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - SUM( DISTINCT + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-1553
SELECT - SUM ( DISTINCT + 40 ) FROM tab2
----
-40

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

query II rowsort
SELECT ALL col0 AS col0, 9 AS col0 FROM tab1 AS cor0
----
51
9
85
9
91
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT + 66 DIV col0 + + col2 + col0 FROM tab1 cor0
----
144
148
159

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 66 / col0 + + col2 + col0 FROM tab1 cor0
----
144
148
159

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

query I rowsort
SELECT col1 * + 66 * - col1 FROM tab0 AS cor0
----
-29106
-433026
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT - - COUNT( * ) * + 68 FROM tab2 cor0
----
204

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - - COUNT ( * ) * + 68 FROM tab2 cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - ( + - MAX( ALL col0 ) ) FROM tab0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-1561
SELECT - ( + - MAX ( ALL col0 ) ) FROM tab0 WHERE NULL IS NULL
----
97

query II rowsort
SELECT DISTINCT col0 + + col1 AS col2, 80 FROM tab0
----
108
80
96
80
98
80

query I rowsort
SELECT DISTINCT + 88 + + col1 * col1 FROM tab1
----
113
2297
284

query I rowsort
SELECT + 72 * - col0 + col2 * + - col1 * + - 1 + + col2 FROM tab2
----
-1456
-1488
-2116

query I rowsort
SELECT DISTINCT 18 + 90 FROM tab1
----
108

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 + col1 IN ( col0, col0, col0, + 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1569
SELECT ALL SUM( 67 ) AS col2, + COUNT( * ) * - - 89 * SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
201
NULL

skipif mysql # not compatible
query II rowsort label-1569
SELECT ALL SUM ( 67 ) AS col2, + COUNT ( * ) * - - 89 * SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
201
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT DISTINCT 52 + COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT 52 + COUNT ( * ) FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL SUM( + 76 ) * COUNT( * ) - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
687

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL SUM ( + 76 ) * COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
687

query I rowsort
SELECT + ( - + 32 ) * - 67 FROM tab1 AS cor0
----
2144
2144
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT - COUNT( - col0 ) FROM tab2 AS cor0 WHERE - 40 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - COUNT ( - col0 ) FROM tab2 AS cor0 WHERE - 40 < NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + col0 / - + 56 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( - MAX( DISTINCT - 75 ) AS SIGNED ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( - MAX ( DISTINCT - 75 ) AS INTEGER ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT DISTINCT COUNT( * ) * + SUM( + 69 ) * + 29 FROM tab2 AS cor0
----
18009

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT COUNT ( * ) * + SUM ( + 69 ) * + 29 FROM tab2 AS cor0
----
18009

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1580
SELECT COUNT( * ) DIV + + 4 col2, - SUM( + 45 ) FROM tab0
----
0
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1580
SELECT COUNT ( * ) / + + 4 col2, - SUM ( + 45 ) FROM tab0
----
0
-135

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL <= ( - col1 ) * - + col0 * col2
----

query II rowsort
SELECT - col1 * - 88 AS col1, col2 AS col2 FROM tab0
----
1848
10
7128
47
88
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT + COUNT( * ) * + 80 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-1583
SELECT + COUNT ( * ) * + 80 FROM tab1
----
240

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1585
SELECT DISTINCT + CAST( 36 AS SIGNED ) col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
36
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1585
SELECT DISTINCT + CAST ( 36 AS INTEGER ) col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
36
NULL

query I rowsort
SELECT DISTINCT 83 * - ( + col1 ) * + 30 FROM tab0 AS cor0
----
-201690
-2490
-52290

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1588
SELECT + COUNT ( + 29 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT DISTINCT - ( 84 ) * - - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1589
SELECT DISTINCT - ( 84 ) * - - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-756

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / + 93 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + 24 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 24 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
24

query I rowsort
SELECT - 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1594
SELECT DISTINCT + CAST( 42 AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE + 18 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + CAST ( 42 AS REAL ) AS col1 FROM tab0 AS cor0 WHERE + 18 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 - + col2 ) <> col2
----

query I rowsort
SELECT - ( + - col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + + 11 FROM tab1 WHERE NULL < NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT - 56 DIV ( - - col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1600
SELECT - 56 / ( - - col0 ) FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT - 66 + + + MIN( ALL - + 40 ) FROM tab1 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1601
SELECT - 66 + + + MIN ( ALL - + 40 ) FROM tab1 AS cor0
----
-106

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + - col0 * + col1 - + - 98 + - - ( col1 ) BETWEEN NULL AND - 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT ALL - 16 DIV 90 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - 16 / 90 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT 6 * - SUM( ALL col0 ) FROM tab2 AS cor0
----
-1110

skipif mysql # not compatible
query I rowsort label-1605
SELECT 6 * - SUM ( ALL col0 ) FROM tab2 AS cor0
----
-1110

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

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

query I rowsort
SELECT DISTINCT - col0 * - + 85 FROM tab1
----
4335
7225
7735

onlyif mysql # DIV for integer division: 
query II rowsort label-1608
SELECT DISTINCT col1 AS col2, col1 + 59 + 13 DIV col2 col0 FROM tab1
----
14
73
47
106
5
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1608
SELECT DISTINCT col1 AS col2, col1 + 59 + 13 / col2 col0 FROM tab1
----
14
73
47
106
5
64

query I rowsort
SELECT - col0 * + 98 AS col0 FROM tab0
----
-1470
-8526
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1610
SELECT DISTINCT ( - CAST( - col1 AS SIGNED ) ), - 94 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1610
SELECT DISTINCT ( - CAST ( - col1 AS INTEGER ) ), - 94 * - - 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-1611
SELECT DISTINCT - - col1 DIV + 91 * + 63 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - - col1 / + 91 * + 63 + + col2 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT ALL + - 62 AS col0 FROM tab0 AS cor0
----
-62
-62
-62

query II rowsort
SELECT + - col0 AS col1, + 91 FROM tab2 cor0 WHERE NOT 70 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT - CAST ( + 53 AS INTEGER ) FROM tab2 cor0
----
-53

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + 13 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - + 21 * + ( - 61 ) + - + col1 + - ( + + ( - col2 ) ) + + + 37 FROM tab2 AS cor0
----
1281
1290
1309

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = - 43
----

query III rowsort
SELECT * FROM tab1 WHERE 86 * 45 / + 72 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT col0 + - col2 DIV + col2 + - col1 FROM tab1
----
36
43
79

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT col0 + - col2 / + col2 + - col1 FROM tab1
----
36
43
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL 28 DIV + 18 + 71 FROM tab1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL 28 / + 18 + 71 FROM tab1
----
72
72
72

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * + 16 - + 80 AS col2, - 55 FROM tab0 AS cor0
----
1504
-55
672
-55
80
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT MAX( + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT MAX ( + + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + + 72 + - ( - MAX( ALL 83 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
155

skipif mysql # not compatible
query I rowsort label-1625
SELECT + + 72 + - ( - MAX ( ALL 83 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, 58 col2 FROM tab2
----
-46
58
-64
58
-75
58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col1 ) BETWEEN + ( + col1 ) * + col0 + + - 10 * - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1628
SELECT DISTINCT - col1 * - 50 * - col0 AS col2 FROM tab2 AS cor0 WHERE 84 * - 82 * + + col1 + + - col2 BETWEEN + + col0 + + col2 - + 93 - - col0 + - col2 + - + col1 + - + CAST( + + col2 AS DECIMAL ) + + col1 + + + col1 * - col2 * - - col0 * + - 77 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT - col1 * - 50 * - col0 AS col2 FROM tab2 AS cor0 WHERE 84 * - 82 * + + col1 + + - col2 BETWEEN + + col0 + + col2 - + 93 - - col0 + - col2 + - + col1 + - + CAST ( + + col2 AS REAL ) + + col1 + + + col1 * - col2 * - - col0 * + - 77 AND NULL
----

query I rowsort
SELECT - ( + 93 ) AS col0 FROM tab1 cor0
----
-93
-93
-93

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col1 * - 10 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT DISTINCT - ( + MIN( - CAST( col2 AS SIGNED ) ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - ( + MIN ( - CAST ( col2 AS INTEGER ) ) ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT ALL CAST( NULL AS SIGNED ) * + + 47 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL CAST ( NULL AS INTEGER ) * + + 47 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT - MAX( + + col2 ) * - 43 FROM tab1
----
4128

skipif mysql # not compatible
query I rowsort label-1633
SELECT - MAX ( + + col2 ) * - 43 FROM tab1
----
4128

onlyif mysql # DIV for integer division: 
query II rowsort label-1634
SELECT DISTINCT 31 DIV - col2 AS col2, - col2 AS col0 FROM tab0
----
-3
-10
0
-47
0
-99

skipif mysql # not compatible
query II rowsort label-1634
SELECT DISTINCT 31 / - col2 AS col2, - col2 AS col0 FROM tab0
----
-3
-10
0
-47
0
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1635
SELECT DISTINCT + 57 + + + col2 AS col0, + ( - 61 ) * + CAST( - 82 AS SIGNED ) AS col2 FROM tab0
----
104
5002
156
5002
67
5002

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT + 57 + + + col2 AS col0, + ( - 61 ) * + CAST ( - 82 AS INTEGER ) AS col2 FROM tab0
----
104
5002
156
5002
67
5002

query I rowsort
SELECT ALL - col2 * - + col2 * + col2 * - - col2 AS col1 FROM tab2
----
11316496
2560000
279841

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT - 2 DIV + col2 + - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1637
SELECT - 2 / + col2 + - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col0 * - + 64 * 77 FROM tab2
----
-226688
-315392
-369600

query III rowsort
SELECT * FROM tab1 WHERE NOT 38 * + - col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * + col1 + + - col0 FROM tab2 cor0
----
-2392
-4992
-5100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + 46 BETWEEN - 36 AND + + col0 * - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT + - MIN( DISTINCT col2 ) * + + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT + - MIN ( DISTINCT col2 ) * + + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
177

query I rowsort
SELECT col2 + - col0 * + - col0 * col0 AS col1 FROM tab1
----
132747
614184
753639

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + - col1 + col1 AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 * 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL - SUM( DISTINCT - - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - SUM ( DISTINCT - - col1 ) FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + + 0 * - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT + + 0 * - COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 54 <= + col2
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1651
SELECT * FROM tab0 cor0 WHERE ( NOT - CAST( col2 AS SIGNED ) / + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1651
SELECT * FROM tab0 cor0 WHERE ( NOT - CAST ( col2 AS INTEGER ) / + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1652
SELECT + COUNT( * ) DIV - - COUNT( * ) + - 62 * - + 73 AS col1 FROM tab1 AS cor0
----
4527

skipif mysql # not compatible
query I rowsort label-1652
SELECT + COUNT ( * ) / - - COUNT ( * ) + - 62 * - + 73 AS col1 FROM tab1 AS cor0
----
4527

query I rowsort
SELECT ALL - col0 * 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 * + + 18 FROM tab2 AS cor0
----
1206
1386
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT ALL + 31 * - CAST( + - col0 AS SIGNED ) * - col0 - - - col0 FROM tab2 AS cor0
----
-127040
-174450
-65642

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + 31 * - CAST ( + - col0 AS INTEGER ) * - col0 - - - col0 FROM tab2 AS cor0
----
-127040
-174450
-65642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + 69 + + col0 AS col1 FROM tab2
----
115
133
144

query I rowsort
SELECT + col0 - - + col1 * col2 * + col0 AS col0 FROM tab2
----
197184
291525
54004

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT - 25 * - 83 FROM tab2 cor0
----
2075
2075
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT SUM( ALL - 63 ) AS col2 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT SUM ( ALL - 63 ) AS col2 FROM tab1 AS cor0
----
-189

query II rowsort
SELECT - 41, 7 AS col1 FROM tab1 cor0
----
-41
7
-41
7
-41
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + - MAX( - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1663
SELECT + - MAX ( - col2 ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT DISTINCT col2, 33 AS col2 FROM tab2 AS cor0
----
23
33
40
33
58
33

query I rowsort
SELECT - ( - - 70 ) AS col1 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT + COUNT( * ) AS col0, 13 AS col1 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-1666
SELECT + COUNT ( * ) AS col0, 13 AS col1 FROM tab1 AS cor0
----
3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL COUNT( * ) * - 47 * + MAX( + + col1 ) AS col0 FROM tab0
----
-11421

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL COUNT ( * ) * - 47 * + MAX ( + + col1 ) AS col0 FROM tab0
----
-11421

query I rowsort
SELECT DISTINCT - 67 + + + 29 AS col0 FROM tab1 WHERE NOT NULL >= - ( + - col0 ) * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT + + col0 + + - col0 + 19 * CAST( - 18 AS SIGNED ) FROM tab2 AS cor0
----
-342
-342
-342

skipif mysql # not compatible
query I rowsort label-1670
SELECT + + col0 + + - col0 + 19 * CAST ( - 18 AS INTEGER ) FROM tab2 AS cor0
----
-342
-342
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT + - 27 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1671
SELECT + - 27 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT - - CAST( NULL AS SIGNED ) + + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + - 0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 75 + 97 FROM tab0
----
172

query I rowsort
SELECT col0 * 83 - + col0 AS col2 FROM tab0
----
1230
7134
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL + + 58 - - MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + + 58 - - MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + col1 * + 98 + - + 39 AS col2 FROM tab2 AS cor0
----
4959
6527
7507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1679
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * ( - CAST( col0 AS SIGNED ) ) AND - ( - col1 ) + - - ( + col2 ) * - col1 * 19
----

skipif mysql # not compatible
query I rowsort label-1679
SELECT col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * ( - CAST ( col0 AS INTEGER ) ) AND - ( - col1 ) + - - ( + col2 ) * - col1 * 19
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IS NULL AND ( NOT + 62 * - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT + + MIN( - 15 ) - + MAX( - + col0 ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT + + MIN ( - 15 ) - + MAX ( - + col0 ) FROM tab2 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + ( - col0 ) / - col2 <> 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT ALL + CAST( NULL AS SIGNED ) / - col2 * + 96 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL + CAST ( NULL AS INTEGER ) / - col2 * + 96 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT + COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 24 AS col0 FROM tab0 cor0
----
-24
-24
-24

query III rowsort
SELECT * FROM tab0 WHERE - ( + col0 ) IN ( - col0, col0, 96 + - col2, - col0 * + + 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT ALL CAST( NULL AS SIGNED ) + SUM( ALL - + col2 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1688
SELECT ALL CAST ( NULL AS INTEGER ) + SUM ( ALL - + col2 ) col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT 32 + + - ( - col1 ), col1 AS col0 FROM tab0
----
113
81
33
1
53
21

query I rowsort
SELECT DISTINCT ( - - col1 ) * + col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + 6 col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 88 + 75 col1 FROM tab2
----
-3973
-5557
-6525

query I rowsort
SELECT 89 * + col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT 60 + COUNT( * ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1695
SELECT 60 + COUNT ( * ) AS col1 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL COUNT( * ) + - 94 FROM tab2 WHERE NOT - col2 / - col1 + col1 IS NOT NULL
----
-94

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL COUNT ( * ) + - 94 FROM tab2 WHERE NOT - col2 / - col1 + col1 IS NOT NULL
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT 97 + COUNT( * ) * 45 FROM tab0
----
232

skipif mysql # not compatible
query I rowsort label-1697
SELECT 97 + COUNT ( * ) * 45 FROM tab0
----
232

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1699
SELECT ALL CAST( col1 AS SIGNED ) * - col1 FROM tab1 WHERE NOT ( + col2 * col0 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL CAST ( col1 AS INTEGER ) * - col1 FROM tab1 WHERE NOT ( + col2 * col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT - col0 * col2 - - 4 DIV - col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - col0 * col2 - - 4 / - col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT 70 AS col2 FROM tab0 WHERE NOT + col2 / - 87 < ( + col1 + 27 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * col0 - 12 col1 FROM tab1
----
413
4265
702

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= - 52
----

query I rowsort
SELECT + ( col2 ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - ( 63 ) * - 49 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + 49 + + SUM( DISTINCT col2 ) * - MAX( ALL col0 ) FROM tab1
----
-20244

skipif mysql # not compatible
query I rowsort label-1705
SELECT + 49 + + SUM ( DISTINCT col2 ) * - MAX ( ALL col0 ) FROM tab1
----
-20244

query I rowsort
SELECT col0 + 15 AS col2 FROM tab0
----
102
112
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 39 + - 81 DIV 8 col1 FROM tab2
----
29
29
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT 39 + - 81 / 8 col1 FROM tab2
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT col2 + - CAST( col0 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-1708
SELECT col2 + - CAST ( col0 AS INTEGER ) FROM tab0
----
-77
2
32

query I rowsort
SELECT 4 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + - ( - col2 + + col0 ) col1 FROM tab1
----
3455
4601
9261

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT - MIN( ALL - col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1712
SELECT - MIN ( ALL - col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT - 36 + col1 FROM tab1
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT SUM( DISTINCT col0 ) FROM tab0 WHERE NOT + col1 + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT SUM ( DISTINCT col0 ) FROM tab0 WHERE NOT + col1 + + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( 43 ) * + ( + col2 * 58 ) FROM tab1
----
147146
169592
239424

query I rowsort
SELECT DISTINCT - ( + 57 ) * col0 FROM tab1
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1717
SELECT DISTINCT - COUNT( * ) * + MAX( + col1 DIV - col0 ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1717
SELECT DISTINCT - COUNT ( * ) * + MAX ( + col1 / - col0 ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( 75 ) * col1 AS col0 FROM tab2 cor0
----
3825
5025
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT - 24 + - MIN( DISTINCT - 71 + col1 ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1719
SELECT - 24 + - MIN ( DISTINCT - 71 + col1 ) AS col2 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT + col2 + - CAST( ( ( col1 ) ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1721
SELECT + col2 + - CAST ( ( ( col1 ) ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + col0 col1 FROM tab2 AS cor0
----
-24
-6
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 * col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 96 - col2 FROM tab0 AS cor0
----
-3
49
86

query I rowsort
SELECT + 31 * col1 AS col0 FROM tab2 AS cor0
----
1581
2077
2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL CAST( NULL AS SIGNED ) + col0 col0 FROM tab0 AS cor0 WHERE ( 64 ) > - col2 / + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT ALL CAST ( NULL AS INTEGER ) + col0 col0 FROM tab0 AS cor0 WHERE ( 64 ) > - col2 / + col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col0 + - col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - col0 + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-2587
-7220
-8234

query I rowsort
SELECT 59 - col2 AS col1 FROM tab2 AS cor0
----
1
19
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * - col0 * + 22 - + col2 col0 FROM tab1
----
-117869
-126194
-70782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1732
SELECT col0 DIV + - CAST( + 93 AS SIGNED ) - - col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1732
SELECT col0 / + - CAST ( + 93 AS INTEGER ) - - col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ( COUNT( * ) ) FROM tab2 WHERE 60 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1733
SELECT ( COUNT ( * ) ) FROM tab2 WHERE 60 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 23 col2 FROM tab1 WHERE NOT ( + 83 ) > - col2
----

query I rowsort
SELECT ALL - 0 + ( + ( + col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT col2 * 29 AS col0 FROM tab0
----
1363
2871
290

query I rowsort
SELECT ALL - 73 * - ( 65 ) FROM tab1
----
4745
4745
4745

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( 27 ) ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= + col1 * col1
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + ( COUNT( + col2 ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1741
SELECT + ( COUNT ( + col2 ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-66

query I rowsort
SELECT + ( + 39 ) FROM tab2
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1744
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 54 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1744
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 54 > - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL + MIN( DISTINCT + 74 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + MIN ( DISTINCT + 74 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-2070
-4032
-5550

query I rowsort
SELECT 52 * + col2 * - - col2 * + col0 AS col2 FROM tab1 AS cor0
----
15386020
21880768
24440832

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 8 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 95 ) <> col2 / + col0
----

query I rowsort
SELECT + - 24 + + ( 63 + + 63 * + 63 ) AS col1 FROM tab0 AS cor0 WHERE NOT 96 IS NULL
----
4008
4008
4008

query I rowsort
SELECT - - 87 * + + ( - col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-105705
-158949
-8439

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col1 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + 87 * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT SUM( - + 29 ) AS col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1755
SELECT SUM ( - + 29 ) AS col2 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + - 2 AS col0 FROM tab2 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT + col2 DIV - + ( + col2 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1757
SELECT + col2 / - + ( + col2 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - + MIN( ALL 91 ) col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1758
SELECT - + MIN ( ALL 91 ) col2 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + + 18 + + col2 AS col1 FROM tab2 AS cor0
----
41
58
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL + + MIN( - 11 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + + MIN ( - 11 ) FROM tab0 AS cor0
----
-11

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) > NULL
----

query I rowsort
SELECT 4 * + col0 FROM tab0 WHERE ( - + col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT COUNT( * ) * 11 + 25 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-1765
SELECT COUNT ( * ) * 11 + 25 FROM tab1
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 67 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col0 + - col1 - + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) + 20 FROM tab0
----
-67
-77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT MIN( ALL + col1 ) AS col2 FROM tab2 WHERE col1 BETWEEN - - 75 + - 29 / + col1 AND 83 + col1
----
77

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT MIN ( ALL + col1 ) AS col2 FROM tab2 WHERE col1 BETWEEN - - 75 + - 29 / + col1 AND 83 + col1
----
77

query I rowsort
SELECT - 47 + - + 7 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT ( + 42 ) + + - 74 + - 20 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT - col0 * - 64 + + 90 FROM tab1 cor0
----
3354
5530
5914

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT + + 18 * MIN( + 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT + + 18 * MIN ( + 0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT - CAST( - + col2 AS SIGNED ) * - ( + + 65 ) FROM tab2 AS cor0
----
-1495
-2600
-3770

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CAST ( - + col2 AS INTEGER ) * - ( + + 65 ) FROM tab2 AS cor0
----
-1495
-2600
-3770

query I rowsort
SELECT DISTINCT + col2 + + ( + + col2 ) AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL ( + - col1 ) + + + col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT + 63 + - + col1 * col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL - col2 * - CAST( + - col2 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-1640
-3422
-552

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - col2 * - CAST ( + - col2 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-1640
-3422
-552

query I rowsort
SELECT + 27 + col1 AS col1 FROM tab2 AS cor0
----
104
78
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT MAX( DISTINCT + 93 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT MAX ( DISTINCT + 93 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 52 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - 34 col1 FROM tab1 AS cor0
----
-39
-48
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT + - COUNT( - 92 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + - COUNT ( - 92 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 54 * - + col2 * - 60 FROM tab0
----
152280
320760
32400

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 3 BETWEEN + ( + col1 ) AND - col0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT + col0 DIV + + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1788
SELECT + col0 / + + col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT COUNT( * ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1789
SELECT COUNT ( * ) FROM tab1, tab0 cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1791
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1791
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + col1 * + + 37 FROM tab0
----
140859
3663
7770

query I rowsort
SELECT - 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT 93 + - - col0 * - - col1 AS col1 FROM tab1 AS cor0
----
4370
518
807

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + 66 AND col1 * - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT - COUNT( * ) * 83 + + COUNT( ALL + col1 ) * - - 34 AS col2 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1796
SELECT - COUNT ( * ) * 83 + + COUNT ( ALL + col1 ) * - - 34 AS col2 FROM tab0 AS cor0
----
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( col1 ) col0, + 88 FROM tab0 AS cor0
----
1
88
21
88
81
88

query II rowsort
SELECT 18, col2 AS col1 FROM tab2
----
18
23
18
40
18
58

query II rowsort
SELECT 24 AS col2, - col1 AS col1 FROM tab1
----
24
-14
24
-47
24
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, 48 * + col2 col2 FROM tab2
----
46
1104
64
1920
75
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT MAX( - 86 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-1801
SELECT MAX ( - 86 ) FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT 45 + - COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT 45 + - COUNT ( * ) FROM tab2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT CAST( - MIN( 36 ) AS SIGNED ) AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1803
SELECT CAST ( - MIN ( 36 ) AS INTEGER ) AS col0 FROM tab1
----
-36

query I rowsort
SELECT ALL - col0 + - - 43 AS col0 FROM tab1
----
-42
-48
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1805
SELECT ALL * FROM tab2 WHERE NULL = + + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-1805
SELECT ALL * FROM tab2 WHERE NULL = + + CAST ( NULL AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT 12 + - - COUNT( * ) + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT 12 + - - COUNT ( * ) + COUNT ( * ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 IN ( - col2 * + col0, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 * + - 52 FROM tab1 cor0
----
2652
4420
4732

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 95 FROM tab0 AS cor0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT - - COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT + ( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1814
SELECT + ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----
0

query I rowsort
SELECT + + col1 * - - col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + 97 * 43 * + - 32 AS col2 FROM tab1
----
-133472
-133472
-133472

query I rowsort
SELECT ALL ( ( 88 ) ) * - col0 * + col1 FROM tab0
----
-106920
-160776
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - + ( - SUM( DISTINCT col1 ) ) FROM tab2 WHERE NOT ( - + col2 ) NOT IN ( + + col1, + ( + + col0 ) + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT - + ( - SUM ( DISTINCT col1 ) ) FROM tab2 WHERE NOT ( - + col2 ) NOT IN ( + + col1, + ( + + col0 ) + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT + col0 AS col1 FROM tab1 WHERE NOT ( - col1 * col2 + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1820
SELECT + col0 AS col1 FROM tab1 WHERE NOT ( - col1 * col2 + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1821
SELECT ALL COUNT( * ) * + MIN( DISTINCT + - 68 ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT + - 68 ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 IN ( - + col0, - col2, - col0 * + 71 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 44 * + + col1 + + - 63 / - + col0 BETWEEN ( + + ( + 87 ) * col1 ) AND + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 94 col2 FROM tab2
----
-2162
-3760
-5452

query I rowsort
SELECT ALL ( + 70 ) FROM tab1
----
70
70
70

query I rowsort
SELECT - col2 * + + col1 + - col1 + - + col1 AS col2 FROM tab1 AS cor0
----
-1372
-305
-3290

query I rowsort
SELECT DISTINCT - - 7 * - col2 - + - 3 * - 3 AS col2 FROM tab1 AS cor0
----
-422
-485
-681

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT - col1 DIV - 4 FROM tab0 AS cor0
----
0
20
5

skipif mysql # not compatible
query I rowsort label-1828
SELECT - col1 / - 4 FROM tab0 AS cor0
----
0
20
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT - COUNT( * ) + 19 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - COUNT ( * ) + 19 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT DISTINCT AVG ( - 73 ) + CAST( + + 28 AS SIGNED ) FROM tab1 WHERE NOT + - col2 < - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT AVG ( - 73 ) + CAST ( + + 28 AS INTEGER ) FROM tab1 WHERE NOT + - col2 < - + 23
----
NULL

query I rowsort
SELECT ALL - col2 * - 88 FROM tab2
----
2024
3520
5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col0 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT ALL COUNT( * ), ( + MIN( - 17 ) ) AS col1 FROM tab2 AS cor0
----
3
-17

skipif mysql # not compatible
query II rowsort label-1833
SELECT ALL COUNT ( * ), ( + MIN ( - 17 ) ) AS col1 FROM tab2 AS cor0
----
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - MAX( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1834
SELECT - MAX ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + col0 * - + ( 84 ) FROM tab1 AS cor0
----
-4284
-7140
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT COUNT( * ) * - ( COUNT( col1 ) ) + + 22 AS col0 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-1836
SELECT COUNT ( * ) * - ( COUNT ( col1 ) ) + + 22 AS col0 FROM tab0 cor0
----
13

query I rowsort
SELECT - + col0 + - + col2 + - + col1 - col2 FROM tab1 AS cor0
----
-208
-257
-274

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) + + col1 * - 72 AS col1 FROM tab2 AS cor0
----
-3695
-4841
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + - 45 + - SUM( - col2 ) FROM tab1 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-1839
SELECT + - 45 + - SUM ( - col2 ) FROM tab1 AS cor0
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + - col2 AND NOT CAST( NULL AS SIGNED ) + + 49 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + - col2 AND NOT CAST ( NULL AS INTEGER ) + + 49 + - col0 IS NOT NULL
----
0

query I rowsort
SELECT - col0 + + 90 FROM tab1 AS cor0
----
-1
39
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL + col2 DIV col0 + 33 FROM tab1
----
33
33
34

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + col2 / col0 + 33 FROM tab1
----
33
33
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT DISTINCT - col2 + + + ( - - 20 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT - col2 + + + ( - - 20 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * - col2 / - col0 * - col0 FROM tab1 WHERE NOT - col2 < + + 75 / + - col0 - + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT DISTINCT COUNT( * ) * - 22, COUNT( * ) AS col1 FROM tab0 WHERE NULL <> 61
----
0
0

skipif mysql # not compatible
query II rowsort label-1845
SELECT DISTINCT COUNT ( * ) * - 22, COUNT ( * ) AS col1 FROM tab0 WHERE NULL <> 61
----
0
0

query III rowsort
SELECT * FROM tab1 WHERE - 56 IS NULL
----

query I rowsort
SELECT ( 25 ) AS col2 FROM tab2 WHERE - 96 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab0 AS cor0 WHERE - 71 IS NOT NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + COUNT( col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1850
SELECT + COUNT ( col1 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT DISTINCT 14 - - ( COUNT( * ) ) * CAST( - - 94 AS SIGNED ) FROM tab0 AS cor0
----
296

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT 14 - - ( COUNT ( * ) ) * CAST ( - - 94 AS INTEGER ) FROM tab0 AS cor0
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL - COUNT( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT CAST( - AVG ( ALL + col2 ) AS SIGNED ) * + 96 AS col0 FROM tab1 AS cor0
----
-7104

skipif mysql # not compatible
query I rowsort label-1853
SELECT CAST ( - AVG ( ALL + col2 ) AS INTEGER ) * + 96 AS col0 FROM tab1 AS cor0
----
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT + + MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + + col0 + - 0 * + 49 ) AND col1 * 12 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT + + MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + + col0 + - 0 * + 49 ) AND col1 * 12 * col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL - MAX( DISTINCT + ( 29 ) ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - MAX ( DISTINCT + ( 29 ) ) FROM tab0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 82 * col2 - + + 75 AS col2 FROM tab2 WHERE NULL BETWEEN col2 * + ( - 57 ) AND NULL
----

query I rowsort
SELECT col0 + + - col2 + col1 AS col1 FROM tab1 WHERE - - col0 IS NOT NULL
----
-31
31
70

query II rowsort
SELECT + 77 * col1, + col1 - + - col1 + - 12 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + col2 * col2 + - col0 * - col2 + + + col0 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1860
SELECT DISTINCT COUNT( * ) AS col0, 1 * - COUNT( * ) col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1860
SELECT DISTINCT COUNT ( * ) AS col0, 1 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT - MIN( + ( - + col0 ) ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-1861
SELECT - MIN ( + ( - + col0 ) ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT ALL + MAX( - 52 ) AS col2, - 11 AS col2 FROM tab2
----
-52
-11

skipif mysql # not compatible
query II rowsort label-1863
SELECT ALL + MAX ( - 52 ) AS col2, - 11 AS col2 FROM tab2
----
-52
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1864
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-1864
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col0 FROM tab0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + col0 ) col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT 76 DIV - 90 * + 16 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT 76 / - 90 * + 16 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - + 41 FROM tab1 AS cor0
----
-1927
-205
-574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - + col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - + col0 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT ( + + col1 ) DIV + col0 * - + col1 * 48 * - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT ( + + col1 ) / + col0 * - + col1 * 48 * - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 65 + - - col1 + col1 * - + col1 FROM tab0
----
-355
-6415
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( + - col1 ) col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT ALL COUNT( * ) + + 81 + - 91 - 24 + - COUNT( ALL 99 ) DIV COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL COUNT ( * ) + + 81 + - 91 - 24 + - COUNT ( ALL 99 ) / COUNT ( * ) FROM tab0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - ( + col1 ) + - col0 * + col1 IN ( - + 72, 52 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL 55 + + + 61 AS col0 FROM tab1 cor0
----
116
116
116

query I rowsort
SELECT ALL col0 * - 45 FROM tab2 AS cor0
----
-2070
-2880
-3375

query I rowsort
SELECT ALL - + col2 * - 88 FROM tab2 AS cor0
----
2024
3520
5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 97 col1 FROM tab1 AS cor0
----
5723
6596
9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL + - col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + - col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1881
SELECT + ( + + col2 ) DIV - - col1 * col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-1881
SELECT + ( + + col2 ) / - - col1 * col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * + col1 col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL ( col2 ) + - + 98 FROM tab1
----
-2
-30
-39

query I rowsort
SELECT DISTINCT - ( + col0 ) - 5 AS col2 FROM tab0
----
-102
-20
-92

query I rowsort
SELECT + col2 - - - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL 38 + + MAX( DISTINCT col1 ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL 38 + + MAX ( DISTINCT col1 ) AS col0 FROM tab1
----
85

query I rowsort
SELECT + col0 - + - col1 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT 65 + - + 27 - 2 FROM tab0
----
36

query I rowsort
SELECT col0 - - 67 FROM tab1
----
118
152
158

onlyif mysql # DIV for integer division: 
query II rowsort label-1890
SELECT DISTINCT - ( - col0 ) DIV + + col1 - - - col1 AS col1, + 60 FROM tab1 cor0
----
-11
60
-46
60
12
60

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT - ( - col0 ) / + + col1 - - - col1 AS col1, + 60 FROM tab1 cor0
----
-11
60
-46
60
12
60

query I rowsort
SELECT DISTINCT - - 35 * col0 FROM tab0 cor0
----
3045
3395
525

query I rowsort
SELECT 38 + - 14 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1893
SELECT ALL - - CAST( NULL AS SIGNED ) - + - 66 AS col1, + 90 col2 FROM tab0 AS cor0
----
NULL
90
NULL
90
NULL
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1893
SELECT ALL - - CAST ( NULL AS INTEGER ) - + - 66 AS col1, + 90 col2 FROM tab0 AS cor0
----
NULL
90
NULL
90
NULL
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT 46 * - CAST( + COUNT( * ) AS SIGNED ) * - + MAX( + + col0 ) FROM tab2
----
10350

skipif mysql # not compatible
query I rowsort label-1894
SELECT 46 * - CAST ( + COUNT ( * ) AS INTEGER ) * - + MAX ( + + col0 ) FROM tab2
----
10350

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT 11 IS NULL
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 49 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 18 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT ALL + 39 * + col1 AS col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + 27 * - 46 + col0 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + 39 * + col1 AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + 27 * - 46 + col0 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 99 AS col0 FROM tab0 cor0
----
-4653
-9801
-990

query I rowsort
SELECT DISTINCT - 0 FROM tab1 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT ALL + col2 + 35 / + 5 * + 89 + - 43 FROM tab0 AS cor0 WHERE - 16 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT ALL 19, col2 AS col0 FROM tab1
----
19
59
19
68
19
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT ALL + 16 DIV - 60 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + 16 / - 60 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT ALL + 1 AS col2 FROM tab1 WHERE + col1 BETWEEN + + col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL SUM( ALL + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL SUM ( ALL + col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT DISTINCT col0, col2 + - col2 + col0 + - + col1 FROM tab2 cor0 WHERE NOT col0 * - col2 >= col2 * - ( + - col0 ) + + + col1
----
46
-5
64
-13
75
8

query II rowsort
SELECT 78, + ( + col2 ) AS col1 FROM tab0 AS cor0
----
78
10
78
47
78
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT + col0 DIV 69 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1910
SELECT + col0 / 69 AS col2 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - COUNT( * ) * 26 AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-1911
SELECT - COUNT ( * ) * 26 AS col1 FROM tab2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT ALL col0 + - CAST( - col0 AS SIGNED ) FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL col0 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT - - col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + - 59 + + COUNT( * ) + - 52 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1914
SELECT + - 59 + + COUNT ( * ) + - 52 FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT - COUNT( * ) + - COUNT( * ) + + + 99 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1915
SELECT - COUNT ( * ) + - COUNT ( * ) + + + 99 FROM tab1 AS cor0
----
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT - 7 + + - col0 AS col1 FROM tab0 AS cor0
----
-104
-22
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL + 55 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + 55 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
52

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1920
SELECT CAST( - ( + + col0 ) AS SIGNED ), + col2 AS col1 FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
query II rowsort label-1920
SELECT CAST ( - ( + + col0 ) AS INTEGER ), + col2 AS col1 FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT COUNT( * ) + - CAST( + 45 AS SIGNED ) FROM tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1921
SELECT COUNT ( * ) + - CAST ( + 45 AS INTEGER ) FROM tab0 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT COUNT( * ) * + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1924
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT DISTINCT + col1 * 14 DIV col0 * - 91 + + col2 FROM tab2
----
-1034
-1342
-1416

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + col1 * 14 / col0 * - 91 + + col2 FROM tab2
----
-1034
-1342
-1416

query I rowsort
SELECT 28 * - + 28 FROM tab1
----
-784
-784
-784

query I rowsort
SELECT ALL col1 - + col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL - + COUNT( * ) + - - 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - + COUNT ( * ) + - - 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT DISTINCT + MIN( ALL + col1 ) DIV - - 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT + MIN ( ALL + col1 ) / - - 99 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1930
SELECT CAST( NULL AS SIGNED ) AS col1, - col2 + + ( CAST( col1 AS SIGNED ) ) FROM tab1 cor0
----
NULL
-21
NULL
-54
NULL
-82

skipif mysql # not compatible
query II rowsort label-1930
SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 + + ( CAST ( col1 AS INTEGER ) ) FROM tab1 cor0
----
NULL
-21
NULL
-54
NULL
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT 1 * - MAX( ALL col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1931
SELECT 1 * - MAX ( ALL col1 ) FROM tab0 cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT + col1 * col1 * col1 DIV - - col1 FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1932
SELECT + col1 * col1 * col1 / - - col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 25, - 97, + col1 + + ( - col1 ) + - - col1 * - col0 * - 68 / - + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT ALL + MAX( DISTINCT - ( col0 ) ) DIV - MIN( + col0 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + MAX ( DISTINCT - ( col0 ) ) / - MIN ( + col0 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1936
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) NOT IN ( 28, col0 + - col2 * + 24 )
----

skipif mysql # not compatible
query III rowsort label-1936
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) NOT IN ( 28, col0 + - col2 * + 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT COUNT( * ) * - - 39 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1937
SELECT COUNT ( * ) * - - 39 FROM tab2 AS cor0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1938
SELECT ALL 3 * CAST( + - COUNT( * ) AS SIGNED ) * MAX( DISTINCT col0 ) FROM tab0 WHERE NULL IS NULL
----
-873

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 3 * CAST ( + - COUNT ( * ) AS INTEGER ) * MAX ( DISTINCT col0 ) FROM tab0 WHERE NULL IS NULL
----
-873

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1939
SELECT DISTINCT 12 / + + CAST( + 76 AS DECIMAL ) + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT 12 / + + CAST ( + 76 AS REAL ) + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT COUNT( ALL - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT COUNT ( ALL - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col2 * + col0 * 94 FROM tab0
----
66270
81780
902682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL 53 + 94 + 67 FROM tab0
----
214
214
214

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - 47 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + - col0 * - - 85 + + - col1 AS col2 FROM tab0 AS cor0
----
-103356
-155316
-8246

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL + MIN( + 28 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + MIN ( + 28 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT + CAST( + - col2 AS SIGNED ) + - + col0 FROM tab0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-1947
SELECT + CAST ( + - col2 AS INTEGER ) + - + col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT + col0 * - - col1 * + col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT 57 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 94 AS col0, + 46 AS col0 FROM tab1 AS cor0
----
-94
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT MIN( DISTINCT - + 86 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1951
SELECT MIN ( DISTINCT - + 86 ) FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1952
SELECT - + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE + 30 * - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1953
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE + 30 * - col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT SUM( DISTINCT 86 ) - + SUM( - col1 ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-1954
SELECT SUM ( DISTINCT 86 ) - + SUM ( - col1 ) FROM tab0
----
189

query I rowsort
SELECT - 52 * + + 0 - - ( + col1 ) AS col1 FROM tab0
----
1
21
81

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 82 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 + - col1 col1 FROM tab2
----
-114
-76
-79

query I rowsort
SELECT ALL 44 + col1 * col1 AS col1 FROM tab0
----
45
485
6605

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + 26 * + COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1959
SELECT + 26 * + COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
234

query I rowsort
SELECT ALL col0 * - - col1 * + - 27 + ( col2 ) + + + 92 AS col1 FROM tab1 WHERE - + col1 + - - col1 IS NOT NULL
----
-11324
-115319
-19090

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL MIN( + - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL MIN ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + + col2 * - + col0 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - + MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1963
SELECT - + MIN ( col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1964
SELECT DISTINCT - + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL + 28 + MIN( - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + 28 + MIN ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT - ( + COUNT( * ) ) * + - 78 FROM tab1 AS cor0 WHERE + col1 * col0 IN ( + col0 + 22 + + col1, CAST( NULL AS SIGNED ) * col0 * - - col2, col2, + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - ( + COUNT ( * ) ) * + - 78 FROM tab1 AS cor0 WHERE + col1 * col0 IN ( + col0 + 22 + + col1, CAST ( NULL AS INTEGER ) * col0 * - - col2, col2, + + col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT DISTINCT - 47 * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT - 47 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL COUNT( * ) * + + 93 * - COUNT( * ) AS col1 FROM tab1
----
-837

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL COUNT ( * ) * + + 93 * - COUNT ( * ) AS col1 FROM tab1
----
-837

query III rowsort
SELECT * FROM tab2 WHERE - + 53 + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL - col1 DIV 1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - col1 / 1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-1972
SELECT ALL col2 * + ( + 33 ) + - - col2 DIV col2 - col2, + col0 DIV col2 AS col0 FROM tab1
----
1889
1
2177
1
3073
0

skipif mysql # not compatible
query II rowsort label-1972
SELECT ALL col2 * + ( + 33 ) + - - col2 / col2 - col2, + col0 / col2 AS col0 FROM tab1
----
1889
1
2177
1
3073
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, + 41 col2 FROM tab0
----
10
41
47
41
99
41

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * - 60 + + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * - 60 + + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 18 ) + - col1 * col0 col2 FROM tab2 AS cor0
----
-2364
-4946
-5043

query I rowsort
SELECT 98 * - - 55 + col2 AS col2 FROM tab0 AS cor0
----
5400
5437
5489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1978
SELECT + CAST( NULL AS SIGNED ), 62 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
186

skipif mysql # not compatible
query II rowsort label-1978
SELECT + CAST ( NULL AS INTEGER ), 62 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
186

query II rowsort
SELECT ALL + 47 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
47
1
47
21
47
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < + - col1
----

query I rowsort
SELECT DISTINCT - col2 * col0 + 88 AS col1 FROM tab2 cor0
----
-2472
-4262
-970

query I rowsort
SELECT 72 - + 27 AS col1 FROM tab0
----
45
45
45

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + ( - 89 ) IS NULL
----

query I rowsort
SELECT DISTINCT 35 + + col0 FROM tab1
----
120
126
86

query I rowsort
SELECT + + col1 * - + col1 + - col2 * col1 FROM tab2 AS cor0
----
-3774
-8375
-9009

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN 28 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 25 + + 93 AS col1 FROM tab2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT - col0 DIV + - col1 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1988
SELECT - col0 / + - col1 col0 FROM tab2
----
0
0
1

query II rowsort
SELECT DISTINCT + col0 AS col0, 18 * + col1 AS col2 FROM tab1
----
51
252
85
90
91
846

query I rowsort
SELECT ALL 93 FROM tab0 WHERE NULL IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT DISTINCT + COUNT( * ), 81 AS col2 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-1991
SELECT DISTINCT + COUNT ( * ), 81 AS col2 FROM tab0
----
3
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT + 89 DIV + ( + 85 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT + 89 / + ( + 85 ) FROM tab1
----
1
1
1

query II rowsort
SELECT + col2, ( 45 ) FROM tab0
----
10
45
47
45
99
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL - + MIN( ALL + 60 ) AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - + MIN ( ALL + 60 ) AS col0 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT ALL 53 AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL 53 AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
53
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT 18 * - col2 * CAST( NULL AS SIGNED ) <> 23
----

skipif mysql # not compatible
query I rowsort label-1996
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT 18 * - col2 * CAST ( NULL AS INTEGER ) <> 23
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 78 + + col1 * - col1 BETWEEN NULL AND - col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= + 70 / + 46
----

query I rowsort
SELECT ALL + col0 * - + col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col0 * + 13 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + COUNT( * ) * 14 * + 85 + + + SUM( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
3504

skipif mysql # not compatible
query I rowsort label-2003
SELECT + COUNT ( * ) * 14 * + 85 + + + SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
3504

query I rowsort
SELECT - 64 * col2 + - 10 FROM tab2 AS cor0
----
-1482
-2570
-3722

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1 cor0
----
56

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT col2 BETWEEN - 77 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 84 <= 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL ( - - COUNT( * ) ) * 41 AS col1 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL ( - - COUNT ( * ) ) * 41 AS col1 FROM tab0 AS cor0
----
123

query II rowsort
SELECT DISTINCT - col1 * - 64, - ( + col2 ) AS col0 FROM tab0 AS cor0
----
1344
-10
5184
-47
64
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 68 col0 FROM tab2
----
3128
4352
5100

query I rowsort
SELECT ALL 13 + - ( - col1 ) AS col2 FROM tab0
----
14
34
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT CAST( + SUM( DISTINCT col0 ) AS SIGNED ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2012
SELECT CAST ( + SUM ( DISTINCT col0 ) AS INTEGER ) FROM tab2
----
185

query III rowsort
SELECT * FROM tab0 WHERE + 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 46 FROM tab2, tab1 AS cor0 WHERE NOT + - 36 IS NULL
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT - 86 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - 86 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT DISTINCT col1 DIV - col2 * - col1 + 3 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT col1 / - col2 * - col1 + 3 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT col1 DIV + col1 + - - 71 + - 49 * + col1 FROM tab0 AS cor0
----
-3897
-957
23

skipif mysql # not compatible
query I rowsort label-2018
SELECT col1 / + col1 + - - 71 + - 49 * + col1 FROM tab0 AS cor0
----
-3897
-957
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + + + 7 col1 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL MIN( + 56 ) * + + 22 AS col0 FROM tab2 AS cor0
----
1232

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL MIN ( + 56 ) * + + 22 AS col0 FROM tab2 AS cor0
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT MIN( DISTINCT - col1 ) col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2021
SELECT DISTINCT MIN ( DISTINCT - col1 ) col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT MAX( - + 51 ) * + + COUNT( * ) AS col0 FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT MAX ( - + 51 ) * + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-153

query I rowsort
SELECT + col0 + - + 69 AS col1 FROM tab0 AS cor0
----
-54
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL + + ( - + MIN( DISTINCT + col1 ) ) + - COUNT( * ) + - - MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + + ( - + MIN ( DISTINCT + col1 ) ) + - COUNT ( * ) + - - MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT 52 * - COUNT( * ) FROM tab1 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT 52 * - COUNT ( * ) FROM tab1 cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT - 99, - MAX( - ( - ( 84 ) ) ) * - 58 AS col2 FROM tab1 AS cor0 WHERE + ( + + col1 ) IS NULL
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-2027
SELECT - 99, - MAX ( - ( - ( 84 ) ) ) * - 58 AS col2 FROM tab1 AS cor0 WHERE + ( + + col1 ) IS NULL
----
-99
NULL

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( + ( 11 ) IN ( + ( col0 ), 4, + 54 * + - 85, col0 + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2029
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 28 * + col1 - - col1 AS col0 FROM tab1 AS cor0
----
1363
145
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL + MIN( col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + MIN ( col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL > 64 * + ( col0 ) * + col1 + + - col0 * + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT - CAST( NULL AS SIGNED ) * - + 67 / - MAX( ALL - col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT - CAST ( NULL AS INTEGER ) * - + 67 / - MAX ( ALL - col0 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL - MIN( DISTINCT - + 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - MIN ( DISTINCT - + 6 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL + ( + + MAX( - 72 ) ) * - MIN( col1 ) FROM tab2 WHERE NOT NULL NOT IN ( - col1 ) OR NOT NULL BETWEEN + col0 AND - + col0 * 30 + + - col2 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + ( + + MAX ( - 72 ) ) * - MIN ( col1 ) FROM tab2 WHERE NOT NULL NOT IN ( - col1 ) OR NOT NULL BETWEEN + col0 AND - + col0 * 30 + + - col2 - col1
----
NULL

query I rowsort
SELECT - col1 * - 10 * - col1 FROM tab0
----
-10
-4410
-65610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL - - MAX( - + 62 ) FROM tab0 WHERE NOT - + col2 + + 26 + + col1 * + - col0 <> - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL - - MAX ( - + 62 ) FROM tab0 WHERE NOT - + col2 + + 26 + + col1 * + - col0 <> - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + ( + + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + ( + + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2042
SELECT - MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col2 * + - 73 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL 59 - - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
117
82
99

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL 59 - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
117
82
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2046
SELECT - ( + COUNT( * ) ) DIV - - 37 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT - ( + COUNT ( * ) ) / - - 37 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT + COUNT( DISTINCT - - 7 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + COUNT ( DISTINCT - - 7 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT 46 DIV 14 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT 46 / 14 FROM tab1 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * + col1 col0 FROM tab0 AS cor0
----
2673
33
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 38 ) * + - 78 col2, + col0 * + 98 FROM tab1 AS cor0
----
2964
4998
2964
8330
2964
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - - 20 * + SUM( + col2 ) FROM tab1 AS cor0
----
4460

skipif mysql # not compatible
query I rowsort label-2051
SELECT - - 20 * + SUM ( + col2 ) FROM tab1 AS cor0
----
4460

query I rowsort
SELECT - - 62 + + + col2 FROM tab2 AS cor0 WHERE - 21 / + col2 + + col1 + + + col2 * + - col0 <> + col1
----
102
120
85

query I rowsort
SELECT DISTINCT - 26 + + col0 FROM tab0 cor0
----
-11
61
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT ALL + col1 DIV col2 + + - col2 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + col1 / col2 + + - col2 FROM tab2
----
-21
-39
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT DISTINCT + 73 DIV + col2 + + - col0 FROM tab1
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + 73 / + col2 + + - col0 FROM tab1
----
-51
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 * col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 10 + 43 FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2058
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE - col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT ALL + MAX( - col2 ) - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + MAX ( - col2 ) - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT + + SUM( DISTINCT - 44 ) * - - 98 AS col1 FROM tab2 AS cor0
----
-4312

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + + SUM ( DISTINCT - 44 ) * - - 98 AS col1 FROM tab2 AS cor0
----
-4312

onlyif mysql # DIV for integer division: 
query I rowsort label-2061
SELECT ALL col1 DIV + 18 AS col2 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL col1 / + 18 AS col2 FROM tab1 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - 80 IS NOT NULL )
----

query I rowsort
SELECT ALL + 6 - - col2 FROM tab0 AS cor0
----
105
16
53

query II rowsort
SELECT DISTINCT - col2 * col1 * - + 93 + - + col0 AS col2, col2 * - + ( - col1 ) FROM tab1 AS cor0
----
124941
1344
27350
295
297137
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + COUNT( * ) + - 96 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + COUNT ( * ) + - 96 FROM tab0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 63 + + + col0 = NULL
----

query I rowsort
SELECT col0 * col2 + - ( - + col1 ) AS col0 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2068
SELECT DISTINCT CAST( - + col2 AS SIGNED ) * - CAST( + ( 1 ) AS SIGNED ) + - + col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-2068
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) * - CAST ( + ( 1 ) AS INTEGER ) + - + col2, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2069
SELECT ALL - - col1 / + CAST( NULL AS SIGNED ) + + col1 AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2069
SELECT ALL - - col1 / + CAST ( NULL AS INTEGER ) + + col1 AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL + col2 * 1 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL 80 FROM tab2 cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT ALL - - col0 DIV 80 FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - - col0 / 80 FROM tab0 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT col2 DIV col1 * + + col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT col2 / col1 * + + col0 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT DISTINCT - 19 DIV + col0 * + - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - 19 / + col0 * + - col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT - - 24 + 34 + + COUNT( * ) * + - 79 FROM tab1 WHERE NOT ( NOT col0 * CAST( NULL AS SIGNED ) <= col1 / col2 )
----
58

skipif mysql # not compatible
query I rowsort label-2077
SELECT - - 24 + 34 + + COUNT ( * ) * + - 79 FROM tab1 WHERE NOT ( NOT col0 * CAST ( NULL AS INTEGER ) <= col1 / col2 )
----
58

query I rowsort
SELECT col0 * + + ( + col1 ) AS col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT col0, 26 AS col0 FROM tab2
----
46
26
64
26
75
26

query II rowsort
SELECT DISTINCT col0, 28 FROM tab2
----
46
28
64
28
75
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT + CAST( + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE NOT 99 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT DISTINCT 59 DIV + - col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT 59 / + - col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT IN ( - col0, 22 + + - 42, - + col0 + 62 + - + col1 * - - 50 * + col2, col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT MIN( 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2085
SELECT MIN ( 64 ) FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 81 <> + col2
----
-3

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 81 <> + col2
----
-3

query II rowsort
SELECT ALL + col1 AS col1, - col2 + - col2 AS col2 FROM tab2 cor0
----
51
-46
67
-116
77
-80

query I rowsort
SELECT DISTINCT + ( + 96 ) FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col0 FROM tab0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - 82 + + col0 * col0 AS col1 FROM tab2
----
2034
4014
5543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT - 39 * + + 12 + + - col2 * + CAST( col0 AS SIGNED ) FROM tab1
----
-5364
-5483
-6656

skipif mysql # not compatible
query I rowsort label-2091
SELECT - 39 * + + 12 + + - col2 * + CAST ( col0 AS INTEGER ) FROM tab1
----
-5364
-5483
-6656

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2092
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) + + CAST( - col2 AS SIGNED ) NOT IN ( - 94, col1, + col2 * - CAST( NULL AS SIGNED ), + + col1, 71 + - 51 + - - col2 * - + col2, + ( + col2 ) * col1 + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-2092
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) + + CAST ( - col2 AS INTEGER ) NOT IN ( - 94, col1, + col2 * - CAST ( NULL AS INTEGER ), + + col1, 71 + - 51 + - - col2 * - + col2, + ( + col2 ) * col1 + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * + 1 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + ( + 74 ) AS col2, 2 FROM tab2 AS cor0
----
74
2
74
2
74
2

query I rowsort
SELECT + + 72 AS col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT - - 7 AS col1 FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT DISTINCT + col2 + + 21 + + 49 AS col1, - col1 + col1 + col0 + - 42 FROM tab0
----
117
-27
169
55
80
45

query I rowsort
SELECT - ( - 31 ) AS col1 FROM tab2
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT col2 / CAST( NULL AS SIGNED ) / + col1 / - col0 * + - col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT col2 / CAST ( NULL AS INTEGER ) / + col1 / - col0 * + - col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 * ( 15 ) FROM tab2
----
-780
-780
-780

query II rowsort
SELECT + col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT col0 - col0 * - + col2 AS col0 FROM tab1
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - - col2 col0 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT COUNT( * ) - + + 52 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-2105
SELECT COUNT ( * ) - + + 52 FROM tab2
----
-49

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 FROM tab2
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + col0 * - + 47 AS col0 FROM tab1 AS cor0
----
-2397
-3995
-4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col1 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT - col0 + + 94 FROM tab1 AS cor0 WHERE + col0 * - col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + - 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT + + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2114
SELECT + + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 48 * + col2 FROM tab1 cor0
----
-2832
-3264
-4608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col0 FROM tab0 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 97 col2 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT + - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2118
SELECT + - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT col1 - col1 * - - col2 FROM tab1 cor0 WHERE col1 + - - col0 + + 46 * + 73 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 7 * + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 72 col2, 50 col2 FROM tab2
----
72
50
72
50
72
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2122
SELECT ALL * FROM tab2 WHERE NOT + 56 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2122
SELECT ALL * FROM tab2 WHERE NOT + 56 + - CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 70 * col2 + col1 * - ( col0 ) col0 FROM tab1 WHERE NOT + + 94 IS NOT NULL
----

query I rowsort
SELECT 80 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT DISTINCT 26 DIV col0 * col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT 26 / col0 * col0 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2126
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - CAST( - - CAST( - col0 AS SIGNED ) AS SIGNED ), + 66 - - col2, ( - 41 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2126
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - CAST ( - - CAST ( - col0 AS INTEGER ) AS INTEGER ), + 66 - - col2, ( - 41 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT COUNT( * ) * + + 31 * - - 0 + - - ( + 45 ) + + - 58 + - 42 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2127
SELECT COUNT ( * ) * + + 31 * - - 0 + - - ( + 45 ) + + - 58 + - 42 FROM tab2 AS cor0
----
-55

query II rowsort
SELECT DISTINCT col0 + 11 AS col2, - 65 * + col2 FROM tab0
----
108
-6435
26
-3055
98
-650

query I rowsort
SELECT ALL col1 + - col1 * 72 + + 16 FROM tab1
----
-3321
-339
-978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL - - CAST( NULL AS SIGNED ) * + col0 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-2130
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + 2 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-2
14
-2
47
-2
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2133
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + 51 * - 1 + MIN( DISTINCT + + ( col1 ) ) - + + COUNT( * ) col1 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2134
SELECT + 51 * - 1 + MIN ( DISTINCT + + ( col1 ) ) - + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab2, tab0 AS cor0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2136
SELECT ALL + CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2136
SELECT ALL + CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 87 >= + + col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - COUNT( * ) FROM tab0 WHERE NULL <> ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT - COUNT ( * ) FROM tab0 WHERE NULL <> ( col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 84 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 84 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 * + 3 + + - col1 AS col1 FROM tab2
----
-120
-197
-241

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) col0, 36 FROM tab1
----
59
36
68
36
96
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT + - MIN( ALL + 16 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + - MIN ( ALL + 16 ) FROM tab0 AS cor0
----
-16

query II rowsort
SELECT ALL + col2 AS col2, col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + 25 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + 22 * 80 FROM tab0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 84 col0, - col2 AS col2 FROM tab2 AS cor0
----
84
-23
84
-40
84
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + - MAX( DISTINCT - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2149
SELECT + - MAX ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT - + col0, + 88 AS col2 FROM tab0 cor0
----
-15
88
-87
88
-97
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 20 + + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 55 FROM tab2 cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2154
SELECT + + col0 AS col1, CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----

skipif mysql # not compatible
query II rowsort label-2154
SELECT + + col0 AS col1, CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2155
SELECT ALL + COUNT( * ) * - CAST( + CAST( - 10 AS SIGNED ) AS SIGNED ) AS col1, - 15 + + SUM( + col1 ) + + COUNT( col1 ) col0 FROM tab2
----
30
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2155
SELECT ALL + COUNT ( * ) * - CAST ( + CAST ( - 10 AS INTEGER ) AS INTEGER ) AS col1, - 15 + + SUM ( + col1 ) + + COUNT ( col1 ) col0 FROM tab2
----
30
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2156
SELECT CAST( COUNT( * ) AS SIGNED ) DIV + - 69 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT CAST ( COUNT ( * ) AS INTEGER ) / + - 69 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT COUNT( * ) * - 7 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT COUNT ( * ) * - 7 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - 69 * - MIN( DISTINCT 28 ) AS col0 FROM tab0
----
1932

skipif mysql # not compatible
query I rowsort label-2158
SELECT - 69 * - MIN ( DISTINCT 28 ) AS col0 FROM tab0
----
1932

query I rowsort
SELECT ALL col1 * - 17 AS col2 FROM tab1
----
-238
-799
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + ( + - 23 ) * + MIN( 62 ) AS col2 FROM tab1
----
-1426

skipif mysql # not compatible
query I rowsort label-2160
SELECT + ( + - 23 ) * + MIN ( 62 ) AS col2 FROM tab1
----
-1426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT CAST( NULL AS SIGNED ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT CAST ( NULL AS INTEGER ) / - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * - col2 AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL + col2 + - - 19 AS col0 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT DISTINCT + col2 + - 82 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + col2 + - 82 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - COUNT( * ) * + 68 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-2166
SELECT - COUNT ( * ) * + 68 FROM tab0 AS cor0
----
-204

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + + 11 * + col1 + - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - SUM( ALL + 27 ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - SUM ( ALL + 27 ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 54 + + + 3 FROM tab1 AS cor0
----
57

query I rowsort
SELECT + col1 * + - 52 FROM tab0 cor0
----
-1092
-4212
-52

query I rowsort
SELECT - col2 - + col2 + col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - col1 - - 11 * + 44 FROM tab0
----
403
463
483

query I rowsort
SELECT ALL col2 + - - col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - 88 - - ( + + MIN( ALL 25 ) ) AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 88 - - ( + + MIN ( ALL 25 ) ) AS col0 FROM tab2
----
-63

query I rowsort
SELECT + 6 - - 78 + col1 * + col2 + - 64 FROM tab1
----
1364
315
3216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2177
SELECT - COUNT( DISTINCT - col0 ) + - COUNT( * ) * MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT - COUNT ( DISTINCT - col0 ) + - COUNT ( * ) * MAX ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT - 41 * + - 77 - - COUNT( * ) AS col2 FROM tab0
----
3160

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - 41 * + - 77 - - COUNT ( * ) AS col2 FROM tab0
----
3160

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT ALL col2 DIV col2 + - + col2 - 51 FROM tab1
----
-109
-118
-146

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL col2 / col2 + - + col2 - 51 FROM tab1
----
-109
-118
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - 11 + - - col1 + + col1 FROM tab2 AS cor0
----
114
181
183

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 27 + + 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * 3 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - 53 ) * + col0 - - - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT + 82 AS col0, 8 * - COUNT( * ) * + ( + + 5 ) AS col0 FROM tab2 AS cor0
----
82
-120

skipif mysql # not compatible
query II rowsort label-2185
SELECT + 82 AS col0, 8 * - COUNT ( * ) * + ( + + 5 ) AS col0 FROM tab2 AS cor0
----
82
-120

query I rowsort
SELECT + ( + + 46 ) FROM tab2 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT 33 * + COUNT( DISTINCT 0 ) * + 47 FROM tab2 AS cor0
----
1551

skipif mysql # not compatible
query I rowsort label-2187
SELECT 33 * + COUNT ( DISTINCT 0 ) * + 47 FROM tab2 AS cor0
----
1551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col1 ) col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT 0 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT 0 * COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT - MAX( - + 31 ) AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - MAX ( - + 31 ) AS col2 FROM tab1 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 - + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2192
SELECT MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL + COUNT( * ) * - COUNT( - col1 ) + SUM( 8 ) * + COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + COUNT ( * ) * - COUNT ( - col1 ) + SUM ( 8 ) * + COUNT ( * ) FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 49 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2195
SELECT ALL + CAST( NULL AS DECIMAL ) * - col1 + + 3 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT ALL + CAST ( NULL AS REAL ) * - col1 + + 3 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 91 * + - col0 - + 39 AS col0 FROM tab0 AS cor0
----
1326
7878
8788

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2197
SELECT - + CAST( + ( 12 ) AS DECIMAL ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 31 AND - - 0
----

skipif mysql # not compatible
query I rowsort label-2197
SELECT - + CAST ( + ( 12 ) AS REAL ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 31 AND - - 0
----

query II rowsort
SELECT DISTINCT + ( col0 ) + 26 AS col2, - ( - - col1 ) FROM tab2
----
101
-67
72
-51
90
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + 72 col2 FROM tab2
----
51
72
67
72
77
72

query I rowsort
SELECT + col0 + - 65 AS col2 FROM tab0 WHERE NOT 79 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL - MAX( DISTINCT + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL - MAX ( DISTINCT + col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL + ( - - col2 ) * - + col2 + - + col2 - - col0 FROM tab0
----
-2241
-23
-9803

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT - COUNT( * ) + - ( SUM( + 35 ) ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-2206
SELECT - COUNT ( * ) + - ( SUM ( + 35 ) ) FROM tab2
----
-108

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT - - col2 BETWEEN - col0 / col1 AND + 3
----
51
67
77

query I rowsort
SELECT col0 * - 53 * + col0 + + 77 AS col2 FROM tab1
----
-137776
-382848
-438816

query I rowsort
SELECT ALL 8 * + col2 FROM tab1 AS cor0
----
472
544
768

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - + SUM( - 56 ) * ( - 70 ) FROM tab1 AS cor0
----
-11760

skipif mysql # not compatible
query I rowsort label-2210
SELECT - + SUM ( - 56 ) * ( - 70 ) FROM tab1 AS cor0
----
-11760

query II rowsort
SELECT 28 AS col1, col2 AS col0 FROM tab1 AS cor0
----
28
59
28
68
28
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT COUNT( * ) FROM tab2 WHERE NULL > col2 * 41 + col1
----
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT COUNT ( * ) FROM tab2 WHERE NULL > col2 * 41 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - COUNT( DISTINCT ( - 54 ) ) + + ( 73 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-2213
SELECT - COUNT ( DISTINCT ( - 54 ) ) + + ( 73 ) FROM tab0
----
72

query III rowsort
SELECT * FROM tab1 WHERE 87 < col0
----
91
47
68

query I rowsort
SELECT ( ( col2 ) ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL col2 * ( - 4 ) AS col2 FROM tab2
----
-160
-232
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT + ( col2 ) DIV + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2217
SELECT + ( col2 ) / + col2 AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 > + ( - col1 ) + + col1 / ( + 96 + + 38 )
----

query I rowsort
SELECT DISTINCT col0 - 99 * - col2 AS col0 FROM tab1
----
5926
6823
9555

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT - ( - col2 ) DIV - col1 AS col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2220
SELECT - ( - col2 ) / - col1 AS col0 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * 73 > NULL
----

query I rowsort
SELECT 46 * 75 AS col0 FROM tab2
----
3450
3450
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT + COUNT( * ) * 93 col2 FROM tab1
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2223
SELECT + COUNT ( * ) * 93 col2 FROM tab1
----
279

query I rowsort
SELECT DISTINCT 40 + - col2 FROM tab1
----
-19
-28
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT + COUNT( col2 ) * - 13 - + 0 FROM tab0 WHERE ( 36 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT + COUNT ( col2 ) * - 13 - + 0 FROM tab0 WHERE ( 36 ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL COUNT( col0 ) + + 39 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL COUNT ( col0 ) + + 39 FROM tab0
----
42

query I rowsort
SELECT + col1 * + col2 + 89 AS col2 FROM tab0 WHERE NULL IS NULL
----
188
299
3896

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT 36 + - SUM( + col1 ) FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT 36 + - SUM ( + col1 ) FROM tab0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 18 + col1 col2 FROM tab0
----
-1377
-17
-357

query I rowsort
SELECT col1 + - col0 * + 31 FROM tab2
----
-1375
-1907
-2258

query I rowsort
SELECT 25 * - 88 FROM tab0
----
-2200
-2200
-2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT + CAST( - 4 AS SIGNED ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + CAST ( - 4 AS INTEGER ) FROM tab2
----
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * col2 ) BETWEEN - col0 * 80 + - 63 AND - col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 - - col2 ) <= col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( 56 * + 53 ) NOT IN ( + ( col1 ) - + 88 )
----

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( 56 * + 53 ) NOT IN ( + ( col1 ) - + 88 )
----

query I rowsort
SELECT DISTINCT + 78 * + col2 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT + col2 - - ( col0 ) * col1 AS col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL + 3 FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL + MAX( DISTINCT col1 ) FROM tab2 WHERE NOT col1 <> ( + col1 ) - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab2 WHERE NOT col1 <> ( + col1 ) - col0
----
NULL

query I rowsort
SELECT - 50 + 71 AS col0 FROM tab0
----
21
21
21

query I rowsort
SELECT 93 * + col1 + + col1 AS col2 FROM tab1
----
1316
4418
470

query I rowsort
SELECT + 23 + + col0 AS col2 FROM tab0
----
110
120
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT - 83 + + COUNT( * ) FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - 83 + + COUNT ( * ) FROM tab1
----
-80

query I rowsort
SELECT + 87 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < + col1
----

query I rowsort
SELECT ALL col1 + - 27 AS col0 FROM tab1 AS cor0 WHERE col2 > ( - col0 )
----
-13
-22
20

query I rowsort
SELECT 45 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * 81 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0 cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col0 FROM tab0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2249
SELECT col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 FROM tab1 WHERE NOT col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL + + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT CAST( - 17 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-2252
SELECT CAST ( - 17 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT + + MIN( ALL 99 ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + + MIN ( ALL 99 ) AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( + col1 * 15 ) NOT BETWEEN NULL AND ( + 29 + - col0 / 91 )
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( + col1 * 15 ) NOT BETWEEN NULL AND ( + 29 + - col0 / 91 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 56 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 53 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 50 >= NULL
----

query I rowsort
SELECT ALL + 5 * AVG ( DISTINCT ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( col2 ) > ( - col0 * - col1 )
----
97
1
99

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 70 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) NOT IN ( col1 * 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE - 71 - + col0 <= - 0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT + 34 * - ( + col1 * - 32 ) BETWEEN ( NULL ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 46 + col2 FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col0 * + col1
----

query I rowsort
SELECT col0 * - 75 AS col0 FROM tab1
----
-3825
-6375
-6825

query I rowsort
SELECT 85 + - col2 * col2 FROM tab1 cor0
----
-3396
-4539
-9131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2270
SELECT + 66 + ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 66 + ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT DISTINCT + ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - col1 * + ( + 45 ) AS col1 FROM tab0
----
-3564
-44
-924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2273
SELECT + 24 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-2273
SELECT + 24 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
24
NULL
24
NULL
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL - 41 + - COUNT( * ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - 41 + - COUNT ( * ) FROM tab0
----
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 + - + 87 - + ( + ( + col1 ) ) * col2 ) >= + ( 34 ) * - col2
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + - 69 - - ( + 24 ) + col1 AS col2 FROM tab0 AS cor0
----
-24
-44
36

query I rowsort
SELECT ALL - col2 - col2 * - col0 * 0 + col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT - - ( 49 ) - + 93 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL - col2 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT - 24 * + col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL - col1 * col0 * + col0 DIV - col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - col1 * col0 * + col0 / - col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - 82 - + COUNT( * ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2284
SELECT - 82 - + COUNT ( * ) FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT col0 * + + 49 - + 14 AS col2 FROM tab1 AS cor0
----
2485
4151
4445

query I rowsort
SELECT - 40 * col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - col0 / - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT ALL + + col0 * + col0 + - + col0 DIV + col1 - ( + col2 ) col1 FROM tab1 AS cor0
----
2502
7149
8212

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2287
SELECT ALL + + col0 * + col0 + - + col0 / + col1 - ( + col2 ) col1 FROM tab1 AS cor0
----
2502
7149
8212

query I rowsort
SELECT - col1 * + 38 AS col2 FROM tab2
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT 73 DIV - MIN( col1 ) AS col1 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2289
SELECT 73 / - MIN ( col1 ) AS col1 FROM tab0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - AVG ( + col2 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - ( - 39 ) AS col0 FROM tab1
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) = + ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + + col1 + + 85 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

query II rowsort
SELECT ALL 1, - AVG ( DISTINCT 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
1
NULL

query I rowsort
SELECT ALL col2 * - + 62 AS col1 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT + col1 DIV 75 * - + ( + col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT + col1 / 75 * - + ( + col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2298
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2298
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + + 81 AS col0 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT + 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2301
SELECT - MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT AVG ( - 1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT AVG ( - 1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT ALL + CAST( - 66 AS SIGNED ) * + - COUNT( * ) + COUNT( * ) + COUNT( * ) * + 3 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + CAST ( - 66 AS INTEGER ) * + - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) * + 3 FROM tab2 AS cor0
----
210

query I rowsort
SELECT + col2 + + - ( + - 97 ) - - - col2 FROM tab1 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - COUNT( * ) * COUNT( * ) + COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2305
SELECT - COUNT ( * ) * COUNT ( * ) + COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - ( - 25 ) FROM tab1 WHERE + 68 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - CAST( 38 AS SIGNED ) + col2 AS col1 FROM tab2
----
-15
2
20

skipif mysql # not compatible
query I rowsort label-2307
SELECT - CAST ( 38 AS INTEGER ) + col2 AS col1 FROM tab2
----
-15
2
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 19 + 83 ) NOT BETWEEN ( NULL ) AND ( + col1 + 11 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 25 * - - 31 col2 FROM tab1
----
679
707
716

query I rowsort
SELECT - - col0 / + + col0 AS col2 FROM tab0 WHERE ( NULL ) < 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + ( - COUNT( * ) ) + - 41 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + ( - COUNT ( * ) ) + - 41 FROM tab0
----
-44

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 96
----

query I rowsort
SELECT ALL 53 + 77 FROM tab2
----
130
130
130

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 48 * - col2 + col1 + - col2 IN ( - 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - 41 + - col1 AS col0 FROM tab1
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2316
SELECT + COUNT ( + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2317
SELECT + + ( col0 ) DIV - col0 + - 52 FROM tab1 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-2317
SELECT + + ( col0 ) / - col0 + - 52 FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - COUNT( * ) + + - 20 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2318
SELECT - COUNT ( * ) + + - 20 FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT + COUNT( * ) + CAST( 5 AS SIGNED ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-2319
SELECT + COUNT ( * ) + CAST ( 5 AS INTEGER ) FROM tab1
----
8

query I rowsort
SELECT ( col0 ) + + - 5 FROM tab0 cor0
----
10
82
92

query I rowsort
SELECT + 90 + - ( + col2 ) * - + col1 * - 69 FROM tab2 AS cor0
----
-212430
-268044
-80847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL - 95 * - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - 95 * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT + CAST( NULL AS SIGNED ) * + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2323
SELECT + CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col0 * + 63 + col1 + - + col2 * + col1, col1 FROM tab2 AS cor0
----
-4020
51
-7035
77
-8544
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col1
----

query I rowsort
SELECT ALL + - 84 AS col2 FROM tab2 cor0
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * ( + col0 ) * + + col0 col1 FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT col1 * - 34 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2329
SELECT ALL col1 * + 20 * CAST( NULL AS SIGNED ), col0 + + 55 AS col0 FROM tab0
----
NULL
142
NULL
152
NULL
70

skipif mysql # not compatible
query II rowsort label-2329
SELECT ALL col1 * + 20 * CAST ( NULL AS INTEGER ), col0 + + 55 AS col0 FROM tab0
----
NULL
142
NULL
152
NULL
70

query I rowsort
SELECT - 15 * 84 FROM tab2
----
-1260
-1260
-1260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2331
SELECT - CAST( + 76 AS SIGNED ) * ( + col1 ), - col1 DIV - col2 + - col1 AS col2 FROM tab0
----
-1596
-19
-6156
-80
-76
-1

skipif mysql # not compatible
query II rowsort label-2331
SELECT - CAST ( + 76 AS INTEGER ) * ( + col1 ), - col1 / - col2 + - col1 AS col2 FROM tab0
----
-1596
-19
-6156
-80
-76
-1

query I rowsort
SELECT DISTINCT - col0 * - 59 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3009
5015
5369

query I rowsort
SELECT - ( col2 ) FROM tab2 WHERE NOT ( + 53 + 22 ) < NULL OR NOT ( - - ( col0 ) = ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT 52 DIV - + 22 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2334
SELECT 52 / - + 22 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT 90 AS col0, + 99 + + COUNT( - col2 ) FROM tab2
----
90
102

skipif mysql # not compatible
query II rowsort label-2335
SELECT 90 AS col0, + 99 + + COUNT ( - col2 ) FROM tab2
----
90
102

query I rowsort
SELECT + col2 * 57 FROM tab1
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT + 57 ) * + 40 AS col0 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT + 57 ) * + 40 AS col0 FROM tab0
----
120

query I rowsort
SELECT - col1 * + 9 * - 60 * + col0 AS col2 FROM tab1
----
229500
2309580
385560

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + SUM( DISTINCT - 10 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2339
SELECT + SUM ( DISTINCT - 10 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-10

query I rowsort
SELECT - 49 + - col2 - + col2 AS col1 FROM tab2
----
-129
-165
-95

query I rowsort
SELECT ALL - - col1 * - col0 FROM tab2 WHERE NOT - - ( + 63 ) / + 53 * 47 * - ( - + 53 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 + + col1, col0 col0 FROM tab2
----
106
64
80
46
96
75

query I rowsort
SELECT - 56 + + 35 AS col0 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( ( + ( + 95 ) ) + + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT - - SUM( ALL + - 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2345
SELECT - - SUM ( ALL + - 16 ) FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT SUM( + + 95 ), COUNT( * ) col2 FROM tab0 AS cor0
----
285
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2346
SELECT SUM ( + + 95 ), COUNT ( * ) col2 FROM tab0 AS cor0
----
285
3

query I rowsort
SELECT ALL - - 68 - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 <= + col2
----
108
126
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 60 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - MIN( - - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2350
SELECT - MIN ( - - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT - COUNT( ALL - + 59 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT - COUNT ( ALL - + 59 ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2352
SELECT ALL col2 DIV 23 + 47 AS col2, col1 DIV + col1 AS col1 FROM tab2
----
48
1
48
1
49
1

skipif mysql # not compatible
query II rowsort label-2352
SELECT ALL col2 / 23 + 47 AS col2, col1 / + col1 AS col1 FROM tab2
----
48
1
48
1
49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT col2 - + 34 + - ( - - col0 ) AS col0 FROM tab2
----
-51
-57
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * + 32 - ( - 86 ) col0 FROM tab2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT DISTINCT MIN( ALL + + 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT MIN ( ALL + + 18 ) FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT ( + - col0 ) DIV col2 + col0 + + + col1 + + col1 * - ( 15 ) + - ( + + col0 ) FROM tab1 AS cor0
----
-196
-659
-71

skipif mysql # not compatible
query I rowsort label-2357
SELECT ( + - col0 ) / col2 + col0 + + + col1 + + col1 * - ( 15 ) + - ( + + col0 ) FROM tab1 AS cor0
----
-196
-659
-71

query I rowsort
SELECT - 7 + + col0 + 17 FROM tab2 cor0
----
56
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

query II rowsort
SELECT 35 AS col0, + col2 AS col2 FROM tab2
----
35
23
35
40
35
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT ALL 22 * col1 DIV col2 FROM tab1
----
1
15
3

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL 22 * col1 / col2 FROM tab1
----
1
15
3

query II rowsort
SELECT + - col0, col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + col2 / col0 * - col1 * - + 14 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT - MIN( ( + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - MIN ( ( + col2 ) ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT + - col0, + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 11, + 67 )
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT COUNT( 27 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2370
SELECT COUNT ( 27 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT - SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2371
SELECT - SUM ( - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT + 94 DIV + - 77 - - - 92 + + 1 FROM tab1 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-2372
SELECT + 94 / + - 77 - - - 92 + + 1 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2373
SELECT DISTINCT + MAX( - 37 ), COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-37
1

skipif mysql # not compatible
query II rowsort label-2373
SELECT DISTINCT + MAX ( - 37 ), COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-37
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 = ( + - 65 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2375
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - - col0 * + - col2 - + 86 AS col2, col0 + + col1 AS col0 FROM tab0 AS cor0
----
-791
96
-956
108
-9689
98

query I rowsort
SELECT + col1 + - col0 + - col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 41 + + 91 + + + 35 + col0 * col2 * 30 AS col1 FROM tab1 AS cor0
----
147047
150617
185807

query I rowsort
SELECT ( + - col0 ) + - 22 AS col2 FROM tab2 AS cor0
----
-68
-86
-97

query I rowsort
SELECT DISTINCT + + 33 + + 17 AS col2 FROM tab2 cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT col0 + - + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT col0 + - + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL - COUNT( * ) + + + ( - CAST( NULL AS SIGNED ) ) * + 60 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - COUNT ( * ) + + + ( - CAST ( NULL AS INTEGER ) ) * + 60 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 3 + + + col0 * + col0 AS col1 FROM tab0
----
228
7572
9412

query I rowsort
SELECT DISTINCT + col1 + - 26 FROM tab2
----
25
41
51

query I rowsort
SELECT - col0 * + + ( + col1 ) AS col1 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - 66 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col0 * 32 - + + col0 FROM tab0
----
2697
3007
465

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 10 - - - 9 * - col0 * + + 53 AS col2 FROM tab1 cor0
----
24187
40495
42937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * - 57 col0 FROM tab1 AS cor0
----
-5016

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL < 36
----

query I rowsort
SELECT ALL + 63 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - COUNT( * ) * + 36 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT - COUNT ( * ) * + 36 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * - col2 FROM tab2 WHERE NOT - 84 IS NULL
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + col2 * + 92 * + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
107916
283360
357512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT DISTINCT - col2 * CAST( + 59 AS SIGNED ) FROM tab1 AS cor0 WHERE + 15 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - col2 * CAST ( + 59 AS INTEGER ) FROM tab1 AS cor0 WHERE + 15 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT DISTINCT col2 * + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT col2 * + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 94 * + + col0 AS col1 FROM tab1 cor0
----
4794
7990
8554

query I rowsort
SELECT + col1 * 35 * - col2 * + - col2 AS col2 FROM tab2 AS cor0
----
4312000
7888580
944265

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + - col0 * col2
----

query I rowsort
SELECT 34 * col1 AS col0 FROM tab0
----
2754
34
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - MAX( + col1 ) col0 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2404
SELECT - MAX ( + col1 ) col0 FROM tab2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2405
SELECT + ( + COUNT( * ) ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT + ( + COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT 66, col1 FROM tab0 AS cor0
----
66
1
66
21
66
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN + col2 / 96 / - 77 AND - 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT 11 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT 11 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 + - col1 FROM tab1 AS cor0 WHERE NOT 36 IS NULL
----
-138
-65
-90

query I rowsort
SELECT ALL - 95 * + 82 AS col2 FROM tab0 AS cor0
----
-7790
-7790
-7790

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2411
SELECT ALL * FROM tab1 WHERE - CAST( - ( col1 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2411
SELECT ALL * FROM tab1 WHERE - CAST ( - ( col1 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 40 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 74 FROM tab0 WHERE col1 IS NOT NULL
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT - col1 + - CAST( NULL 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-2414
SELECT - col1 + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT MAX( + col1 ) + ( - 52 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT MAX ( + col1 ) + ( - 52 ) FROM tab2
----
25

query III rowsort
SELECT * FROM tab0 WHERE col1 / - - col0 IS NULL
----

query I rowsort
SELECT ALL + 94 - - col0 + + 40 FROM tab0 AS cor0
----
149
221
231

query I rowsort
SELECT - + col0 * - + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + 91 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2421
SELECT + COUNT( ALL + col0 ), + 82 AS col1 FROM tab2 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-2421
SELECT + COUNT ( ALL + col0 ), + 82 AS col1 FROM tab2 AS cor0
----
3
82

query I rowsort
SELECT DISTINCT + + col0 * - + 99 FROM tab0 AS cor0
----
-1485
-8613
-9603

query I rowsort
SELECT - + col1 + 11 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - + 26 AND + + col0 - 78
----
-10
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT + SUM( ALL col0 ) * + + 83 FROM tab0 AS cor0
----
16517

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + SUM ( ALL col0 ) * + + 83 FROM tab0 AS cor0
----
16517

query I rowsort
SELECT ALL - - 85 AS col1 FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 16 * 36 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 36 ) FROM tab1
----
36
36
36

query II rowsort
SELECT DISTINCT - - 73, 6 AS col0 FROM tab2 AS cor0
----
73
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT - MIN( 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2429
SELECT - MIN ( 93 ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT + - COUNT( * ) DIV 58 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT + - COUNT ( * ) / 58 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + + 66 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
45
65

query I rowsort
SELECT col0 * 96 * + - 75 + + + col0 AS col0 FROM tab0 cor0
----
-107985
-626313
-698303

query I rowsort
SELECT DISTINCT + - 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2434
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN - col2 * - col0 + - 81 / col1 + + col0 AND 30 + + col1 + - + col2 * + CAST( NULL AS DECIMAL ) + + + ( - 83 ) * - col1
----

skipif mysql # not compatible
query III rowsort label-2434
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN - col2 * - col0 + - 81 / col1 + + col0 AND 30 + + col1 + - + col2 * + CAST ( NULL AS REAL ) + + + ( - 83 ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - - 4 * COUNT( * ) + 55 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
55

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - - 4 * COUNT ( * ) + 55 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
55

query I rowsort
SELECT + 19 + 80 AS col2 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2437
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) + + 15 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + 15 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + + col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT DISTINCT + 21 * - - col1 AS col0 FROM tab0 AS cor0
----
1701
21
441

query I rowsort
SELECT 19 + + - col0 + col0 AS col0 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT COUNT( * ) + + 30 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2441
SELECT COUNT ( * ) + + 30 FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT col1 - - + col1 + + 45 FROM tab0 AS cor0
----
207
47
87

query I rowsort
SELECT + 75 + - col2 FROM tab0 AS cor0
----
-24
28
65

query I rowsort
SELECT ALL ( + 78 ) AS col0 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + + ( + - COUNT( * ) ) * - 81 * - 77 + + 76 FROM tab2 AS cor0
----
-18635

skipif mysql # not compatible
query I rowsort label-2445
SELECT + + ( + - COUNT ( * ) ) * - 81 * - 77 + + 76 FROM tab2 AS cor0
----
-18635

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN - 35 * + col2 * - 74 + col2 + - + 33 AND NULL
----

query I rowsort
SELECT - ( 77 ) + - 79 + - col2 * - 22 * col2 * - col0 * - col0 AS col2 FROM tab2 AS cor0
----
144179044
24625852
416294844

query I rowsort
SELECT ALL col1 + - + col2 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + col1 + - 30 + + col0 + - col2 * col0 FROM tab2
----
-2449
-4238
-991

query II rowsort
SELECT ALL - col0 + 20, col0 FROM tab1
----
-31
51
-65
85
-71
91

query I rowsort
SELECT ALL col1 - + + col2 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT - col1 - - - 92 * - + col0 AS col0 FROM tab2
----
4181
5811
6833

query II rowsort
SELECT col2 - 74 + - col1, + 63 AS col2 FROM tab0
----
-108
63
-85
63
24
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - col0, 21, + + 14, + - col2, + - col1, 28 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - - col2 ) + + col1 BETWEEN NULL AND - col2 + + col0
----
15
81
47
97
1
99

query I rowsort
SELECT ALL col1 - - - 28 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 93 * - col0 ) IS NULL
----
-27
-7
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21 + + + col2 col1, + 91 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
91
61
91
79
91

query II rowsort
SELECT DISTINCT col0 AS col0, ( + col2 ) AS col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2459
SELECT ALL - CAST( NULL AS DECIMAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - CAST ( NULL AS REAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 51 col1 FROM tab1 AS cor0
----
2601
4335
4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT MIN( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2461
SELECT MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT + + 12 * + col0 * - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2462
SELECT + + 12 * + col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + + MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT ALL - - col2 DIV - + 80 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - - col2 / - + 80 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + + - col1 + col2 - - col0 col2 FROM tab2
----
-1
-33
-50

query II rowsort
SELECT DISTINCT + 33 + + - col2, col1 FROM tab1
----
-26
5
-35
47
-63
14

query I rowsort
SELECT DISTINCT col1 + - 86 * - - col0 FROM tab1
----
-4372
-7305
-7779

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 3 * - + col0 * col2 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT ( - + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 + + 74 FROM tab2 AS cor0
----
114
132
97

query I rowsort
SELECT - 75 AS col2 FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2473
SELECT ALL COUNT( - 60 ) AS col0, - COUNT( * ) AS col0 FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2473
SELECT ALL COUNT ( - 60 ) AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + MAX( 73 ) + + - SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
272

skipif mysql # not compatible
query I rowsort label-2474
SELECT + MAX ( 73 ) + + - SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
272

query I rowsort
SELECT ALL + col1 / + col0 * col2 + + 73 FROM tab2 WHERE col1 * - col0 * col0 IS NULL
----

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2477
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL COUNT ( col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 58 - - col0 AS col2 FROM tab1 AS cor0
----
109
143
149

query I rowsort
SELECT 48 - - col2 AS col2 FROM tab1
----
107
116
144

query II rowsort
SELECT DISTINCT ( - - col0 ) AS col2, 5 AS col1 FROM tab1
----
51
5
85
5
91
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - 83 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT col2 * + + 66 + CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT col2 * + + 66 + CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1, 1 * 74 AS col2 FROM tab1
----
14
74
47
74
5
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2485
SELECT DISTINCT + 50 + - + 58 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + 50 + - + 58 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT 89 + + + 2 FROM tab1
----
91
91
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2488
SELECT DISTINCT ( + 54 ), - col0 * - col0 DIV col0 * + - col0 AS col2 FROM tab2
----
54
-2116
54
-4096
54
-5625

skipif mysql # not compatible
query II rowsort label-2488
SELECT DISTINCT ( + 54 ), - col0 * - col0 / col0 * + - col0 AS col2 FROM tab2
----
54
-2116
54
-4096
54
-5625

query I rowsort
SELECT ALL - - col0 + + + col0 FROM tab1 WHERE - col2 * 25 + + ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, 90 col1 FROM tab2
----
46
90
64
90
75
90

query I rowsort
SELECT - 22 * - + col2 FROM tab2 AS cor0 WHERE NOT - 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL - - MAX( - 9 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - - MAX ( - 9 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT DISTINCT + col0 * CAST( - col1 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT + col0 * CAST ( - col1 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + col2 * + + col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + MAX( DISTINCT - + 89 ) FROM tab0 AS cor0 WHERE col0 = + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + MAX ( DISTINCT - + 89 ) FROM tab0 AS cor0 WHERE col0 = + 13
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + + - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2498
SELECT - + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2499
SELECT - ( - col0 ) AS col0, + ( - 60 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2499
SELECT - ( - col0 ) AS col0, + ( - 60 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - 44 * + + COUNT( * ) FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2501
SELECT - 44 * + + COUNT ( * ) FROM tab0 AS cor0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2502
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 21 + - ( + col1 ) + col0 AS col1 FROM tab0
----
-45
117
87

query III rowsort
SELECT * FROM tab0 WHERE NOT + 31 > + 19 + + col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL 40 + col1 + - col0 FROM tab2
----
32
45
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT DISTINCT + 98 DIV + col2 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT + 98 / + col2 AS col2 FROM tab1
----
1

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + 19 AS col2 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col2 <= NULL
----

query II rowsort
SELECT col1, + 77 FROM tab0 AS cor0
----
1
77
21
77
81
77

query I rowsort
SELECT DISTINCT + 73 * + col0 FROM tab2 AS cor0
----
3358
4672
5475

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2512
SELECT * FROM tab0 WHERE 9 / + - CAST( + 42 AS SIGNED ) - - 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2512
SELECT * FROM tab0 WHERE 9 / + - CAST ( + 42 AS INTEGER ) - - 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 56 + col2 FROM tab0 cor0
----
103
155
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT + - ( MAX( ALL 38 ) ) AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT + - ( MAX ( ALL 38 ) ) AS col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT col0 + + + 60 - - col2 * + ( - + col1 ) + + col0 FROM tab1 AS cor0
----
-1182
-2954
-65

query I rowsort
SELECT ALL col0 - + 78 AS col1 FROM tab2 AS cor0
----
-14
-3
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT + CAST( + col2 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT + CAST ( + col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 23 - ( + col0 ) * - 42 + ( ( + col2 ) ), 94 col0 FROM tab2 AS cor0
----
1932
94
2705
94
3185
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * 49 col1 FROM tab0 AS cor0 WHERE NOT ( - 81 ) > + col1
----
-1225
-1225
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT - + COUNT( DISTINCT ( - ( - col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT - + COUNT ( DISTINCT ( - ( - col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col2 IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + 30 FROM tab0 WHERE - ( - + col1 ) IS NOT NULL
----
-2610
-2910
-450

query II rowsort
SELECT ALL col1 AS col0, + col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + col2 * - - col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT 66 * col0 AS col1 FROM tab0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT - - MIN( DISTINCT - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - - MIN ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2528
SELECT DISTINCT + 56 AS col0 FROM tab1 AS cor0 WHERE - col2 BETWEEN - col2 * CAST( + 49 AS DECIMAL ) * + col0 + + col1 AND + col2 * - col2 + + col0 - - col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT + 56 AS col0 FROM tab1 AS cor0 WHERE - col2 BETWEEN - col2 * CAST ( + 49 AS REAL ) * + col0 + + col1 AND + col2 * - col2 + + col0 - - col0 - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT 83, + col0 + + - col0 AS col1 FROM tab2
----
83
0
83
0
83
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT ALL + col1 DIV + ( + + 20 ) FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + col1 / + ( + + 20 ) FROM tab1
----
0
0
2

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2532
SELECT ALL MAX( + ( - CAST( NULL AS DECIMAL ) ) ) + + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2532
SELECT ALL MAX ( + ( - CAST ( NULL AS REAL ) ) ) + + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2533
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2533
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL + COUNT( ALL col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2534
SELECT ALL + COUNT ( ALL col1 ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 7, - col0 * + col1 - col0 AS col0 FROM tab1 cor0
----
-7
-4368
-7
-510
-7
-765

query I rowsort
SELECT DISTINCT + col0 * 82 FROM tab0 AS cor0
----
1230
7134
7954

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 32 IS NULL )
----

query I rowsort
SELECT DISTINCT col1 * - 93 AS col0 FROM tab0 AS cor0
----
-1953
-7533
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE + col2 - - 20 BETWEEN - + 24 + - - 28 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 + - col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2541
SELECT DISTINCT + 58 AS col1, + 68 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
58
-204

skipif mysql # not compatible
query II rowsort label-2541
SELECT DISTINCT + 58 AS col1, + 68 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
58
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL 4 + + AVG ( DISTINCT + col1 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL 4 + + AVG ( DISTINCT + col1 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + + col1 - 81 AS col2 FROM tab0 WHERE + 31 IS NOT NULL
----
-60
-80
0

query I rowsort
SELECT DISTINCT + + ( - 99 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT ALL 87 DIV 51 + - - 83 FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL 87 / 51 + - - 83 FROM tab0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - - SUM( DISTINCT ( + col2 ) ) AS col0 FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT - - SUM ( DISTINCT ( + col2 ) ) AS col0 FROM tab1 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT 39 * col1 FROM tab2
----
1989
2613
3003

query I rowsort
SELECT ALL + col2 + - - 46 AS col0 FROM tab2
----
104
69
86

query I rowsort
SELECT DISTINCT + 70 * + 82 + + col2 FROM tab2
----
5763
5780
5798

query III rowsort
SELECT * FROM tab1 WHERE + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - 37 FROM tab1 WHERE + + 45 * col1 + + col1 * + col2 IS NOT NULL
----
22
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL - col0 + 8 + - + col1 FROM tab2
----
-133
-134
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT - CAST( NULL AS SIGNED ) * 52 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT - CAST ( NULL AS INTEGER ) * 52 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 43 + 92 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT 57 - - SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT 57 - - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-166

query II rowsort
SELECT DISTINCT - col0, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT MAX( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2559
SELECT MAX ( ALL + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL ( + 22 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
22
22
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2561
SELECT - col1 * + + ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT - col1 * + + ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT ALL - - 57 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - - 57 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2563
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 21 / CAST( + + 19 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2563
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 21 / CAST ( + + 19 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT - - CAST( NULL AS SIGNED ) * + col2 + ( col0 ) - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT - - CAST ( NULL AS INTEGER ) * + col2 + ( col0 ) - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 26 col2, 0 * + col2 col2 FROM tab0 AS cor0
----
-26
0
-26
0
-26
0

query II rowsort
SELECT + col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2568
SELECT * FROM tab1 WHERE NOT CAST( + ( col1 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2568
SELECT * FROM tab1 WHERE NOT CAST ( + ( col1 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT DISTINCT 5 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND 60
----

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT 5 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND 60
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 cor0 WHERE - col1 >= + col1 + - col2
----
-59
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + COUNT( * ) * - 1 AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2571
SELECT + COUNT ( * ) * - 1 AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2572
SELECT - MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + - col1 * - + col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL - SUM( - 96 ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - SUM ( - 96 ) FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT - + 10 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-10
3

skipif mysql # not compatible
query II rowsort label-2575
SELECT - + 10 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + col1 + 31 * + 43 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + col1 + 31 * + 43 IS NOT NULL
----
0

query I rowsort
SELECT 11 * - - col2 AS col0 FROM tab1 AS cor0
----
1056
649
748

query I rowsort
SELECT + 28 * + - 34 AS col0 FROM tab2 AS cor0
----
-952
-952
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - COUNT( DISTINCT - col1 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2579
SELECT - COUNT ( DISTINCT - col1 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT + 82 * + + MAX( DISTINCT + 76 ) AS col0 FROM tab2 AS cor0
----
6232

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + 82 * + + MAX ( DISTINCT + 76 ) AS col0 FROM tab2 AS cor0
----
6232

query I rowsort
SELECT + - 92 + + 25 + 52 * - - ( col1 ) FROM tab0 AS cor0
----
-15
1025
4145

query I rowsort
SELECT col1 + + col1 * col2 * col0 * - 82 * + 12 FROM tab2 AS cor0
----
-193966003
-286786733
-53094621

query I rowsort
SELECT ALL + + 20 * col2 * + col0 + - col1 FROM tab1 AS cor0
----
100295
123713
97906

query I rowsort
SELECT + 9 + + col0 * + - 82 AS col0 FROM tab1
----
-4173
-6961
-7453

query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab2 WHERE ( NULL IS NULL )
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT ALL + col0 DIV + + col1 + + col0 - col0 AS col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + col0 / + + col1 + + col0 - col0 AS col1 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 26 col0 FROM tab1 AS cor0
----
25
59
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + ( col0 ) + col1 + + + col0 < - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 81 IS NULL
----

query I rowsort
SELECT - col2 - - - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - + 53 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - + 53 FROM tab2
----
162

query I rowsort
SELECT DISTINCT 80 * 52 * col2 * ( - 11 ) AS col0 FROM tab0
----
-2150720
-4530240
-457600

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL ( + 82 ) FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - - ( - 34 ) * - + ( COUNT( * ) ) FROM tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - - ( - 34 ) * - + ( COUNT ( * ) ) FROM tab1 cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT ALL + 54 DIV - + col2 col1 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2597
SELECT ALL + 54 / - + col2 col1 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2598
SELECT DISTINCT + ( - - col2 ) DIV col2 + + 43 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + ( - - col2 ) / col2 + + 43 FROM tab2 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT DISTINCT CAST( 98 AS SIGNED ) col1 FROM tab1
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT DISTINCT CAST ( 98 AS INTEGER ) col1 FROM tab1
----
98

query I rowsort
SELECT ALL ( - 43 ) AS col0 FROM tab0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL COUNT( DISTINCT 47 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL COUNT ( DISTINCT 47 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT DISTINCT + CAST( col2 AS SIGNED ) + ( + col1 ) FROM tab1 WHERE NOT - col1 + 23 IN ( col0, CAST( + - col1 AS SIGNED ) + col2, - - ( + 43 ) )
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + ( + col1 ) FROM tab1 WHERE NOT - col1 + 23 IN ( col0, CAST ( + - col1 AS INTEGER ) + col2, - - ( + 43 ) )
----
110
115
64

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - ( - ( + col1 ) ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + col0 * 91 * + ( col2 ) FROM tab1
----
445536
456365
563108

query II rowsort
SELECT col2, + 44 + - col2 FROM tab2
----
23
21
40
4
58
-14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 21 * col2 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + col2 * + - col0 - - col1 + - ( + 40 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 15 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + + col0 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT col1 / + col0 - col0 * + 71 * - col1 * + col2 AS col1 FROM tab2 AS cor0 WHERE ( + - 15 ) IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + col0 * + 48 )
----

query I rowsort
SELECT ALL 86 * - col0 * col0 + + 61 * - 57 + + col2 FROM tab2 cor0
----
-185430
-355693
-487169

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT - MIN( col1 ) * - - 15 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2614
SELECT - MIN ( col1 ) * - - 15 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - - COUNT( * ) FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT - - COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
0

query I rowsort
SELECT - ( - + col2 ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT + 61 + + col1 AS col0 FROM tab0
----
142
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT SUM( ALL col2 ) * + 45 FROM tab0
----
7020

skipif mysql # not compatible
query I rowsort label-2619
SELECT SUM ( ALL col2 ) * + 45 FROM tab0
----
7020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT - CAST( NULL AS SIGNED ) + - 38 / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT - CAST ( NULL AS INTEGER ) + - 38 / col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT DISTINCT + + col0 * - col0 DIV - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT + + col0 * - col0 / - col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2622
SELECT ALL - col0 DIV + col0 + 63 AS col2, ( 63 ) FROM tab1 AS cor0
----
62
63
62
63
62
63

skipif mysql # not compatible
query II rowsort label-2622
SELECT ALL - col0 / + col0 + 63 AS col2, ( 63 ) FROM tab1 AS cor0
----
62
63
62
63
62
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT DISTINCT col2 DIV 98 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT col2 / 98 AS col2 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 88 FROM tab1 cor0
----
-88
-88
-88

query I rowsort
SELECT + - ( + 59 ) AS col2 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL - + 97 * + col2 * - ( + 63 ) FROM tab2 AS cor0
----
140553
244440
354438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT - CAST( SUM( DISTINCT 59 ) AS SIGNED ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2628
SELECT - CAST ( SUM ( DISTINCT 59 ) AS INTEGER ) FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT - + CAST( NULL AS SIGNED ) * - 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT - + CAST ( NULL AS INTEGER ) * - 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - col0 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + ( - + 69 ) FROM tab2
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2633
SELECT DISTINCT col0 DIV - - CAST( 28 AS SIGNED ) FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT col0 / - - CAST ( 28 AS INTEGER ) FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL + COUNT( DISTINCT - col1 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL + COUNT ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL + 43 + - SUM( col0 ) * + 1 FROM tab1 cor0
----
-184

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + 43 + - SUM ( col0 ) * + 1 FROM tab1 cor0
----
-184

query III rowsort
SELECT ALL * FROM tab2 WHERE 79 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2637
SELECT DISTINCT + col1, - col1 - + - col2 - CAST( 87 AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2637
SELECT DISTINCT + col1, - col1 - + - col2 - CAST ( 87 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL COUNT( * ) * - - 21 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL COUNT ( * ) * - - 21 FROM tab0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + + 66 col1 FROM tab0 AS cor0
----
156
156
156

query I rowsort
SELECT col2 + - + 43 + + 63 FROM tab0 AS cor0
----
119
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT + COUNT( * ) + + - 48 AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2641
SELECT + COUNT ( * ) + + - 48 AS col1 FROM tab2 AS cor0
----
-45

query II rowsort
SELECT DISTINCT + 85, + col0 AS col1 FROM tab1 AS cor0
----
85
51
85
85
85
91

query I rowsort
SELECT - 70 + + + col0 FROM tab0 AS cor0
----
-55
17
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 20, - 78 * 86 col2 FROM tab1 AS cor0
----
20
-6708
20
-6708
20
-6708

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL <= + - col2 + - 83 )
----

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - ( COUNT( * ) ) + + 98 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-2647
SELECT - ( COUNT ( * ) ) + + 98 FROM tab0
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT + COUNT( * ) + + - 63 + - 83 AS col1 FROM tab0
----
-143

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + COUNT ( * ) + + - 63 + - 83 AS col1 FROM tab0
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2650
SELECT ALL 21 + - col2 DIV col0 AS col1 FROM tab0
----
18
20
21

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL 21 + - col2 / col0 AS col1 FROM tab0
----
18
20
21

query I rowsort
SELECT ALL - col2 - - + col1 * - col1 FROM tab2
----
-2624
-4547
-5969

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT - COUNT( * ) - 6 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT - COUNT ( * ) - 6 FROM tab1
----
-9

query I rowsort
SELECT 74 * - - col0 AS col2 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT ALL - 41 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query II rowsort
SELECT + + 24 AS col1, 49 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 1aa56f5e8ee05f76882227fc154a79bc

query I rowsort
SELECT ALL 41 * + col0 FROM tab0
----
3567
3977
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT + + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2657
SELECT + + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + + 60 AS col1 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - + ( + + col2 ) * + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 49 FROM tab2 cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2661
SELECT DISTINCT - 21 * - 4 - - COUNT( col0 ) + + MIN( DISTINCT ( + col1 ) ) DIV 48 AS col1, + 63 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
87
21

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT - 21 * - 4 - - COUNT ( col0 ) + + MIN ( DISTINCT ( + col1 ) ) / 48 AS col1, + 63 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
87
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - SUM( DISTINCT + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2662
SELECT - SUM ( DISTINCT + col2 ) FROM tab2
----
-121

query I rowsort
SELECT col0 * ( - - col2 ) FROM tab2
----
1058
2560
4350

query II rowsort
SELECT col2 AS col1, 79 AS col2 FROM tab0
----
10
79
47
79
99
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT ALL ( 87 ) DIV + col2 + + col2 AS col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL ( 87 ) / + col2 + + col2 AS col2 FROM tab1
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL - COUNT( + col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - COUNT ( + col0 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 73 col2 FROM tab0 AS cor0
----
-1095
-6351
-7081

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 71 AS col2, + 72 FROM tab1 AS cor0
----
-71
72
-71
72
-71
72

query I rowsort
SELECT ALL + col2 * - 9 * - 22 + - col2 + + col1 + - col2 FROM tab1
----
11569
13375
18830

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 * 11 FROM tab0 AS cor0
----
-1067
-165
-957

query II rowsort
SELECT + 84 - + col0 + + - col0 AS col0, - col1 AS col1 FROM tab0
----
-110
-1
-90
-21
54
-81

query I rowsort
SELECT + col0 - 20 FROM tab0
----
-5
67
77

query I rowsort
SELECT 38 * + 74 + 50 FROM tab1
----
2862
2862
2862

onlyif mysql # DIV for integer division: 
query II rowsort label-2677
SELECT DISTINCT - col0 * + col2 + + - col0 + + col1 DIV + - col0 * + col0 - ( col0 ) AS col2, col0 FROM tab1
----
-4998
51
-5185
85
-6370
91

skipif mysql # not compatible
query II rowsort label-2677
SELECT DISTINCT - col0 * + col2 + + - col0 + + col1 / + - col0 * + col0 - ( col0 ) AS col2, col0 FROM tab1
----
-4998
51
-5185
85
-6370
91

query I rowsort
SELECT - ( + - col1 ) FROM tab1 WHERE + 54 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + - col1 - - col1 + - + col1 col1 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT - 83 + + COUNT( * ) AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT - 83 + + COUNT ( * ) AS col0 FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT + ( + - ( 36 ) ) + + - SUM( ALL + col2 ) AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + ( + - ( 36 ) ) + + - SUM ( ALL + col2 ) AS col2 FROM tab0
----
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2682
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE 62 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE 62 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 / - col0 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT + + COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - col2 AS col1, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL - ( + 72 ) * 98 - col2 AS col1 FROM tab1
----
-7115
-7124
-7152

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - SUM( + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2688
SELECT - SUM ( + col0 ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT col0 * - col1 FROM tab2 WHERE NOT + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 * col0 FROM tab0
----
1920
2697
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT - SUM( - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2691
SELECT - SUM ( - col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL - 14 + - 28 * - 45 FROM tab0
----
1246
1246
1246

query I rowsort
SELECT DISTINCT AVG ( col1 ) FROM tab0 WHERE NOT col1 >= col1
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT + COUNT( * ) FROM tab0 WHERE ( 21 ) NOT IN ( 73 )
----
3

skipif mysql # not compatible
query I rowsort label-2695
SELECT + COUNT ( * ) FROM tab0 WHERE ( 21 ) NOT IN ( 73 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL - COUNT( DISTINCT col2 ) * COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - COUNT ( DISTINCT col2 ) * COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT col0 * - col2 + - col2 AS col1 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - col2 * + col0 IS NULL
----
51
67
77

query I rowsort
SELECT col1 * 44 AS col1 FROM tab2
----
2244
2948
3388

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2700
SELECT ALL * FROM tab1 WHERE 44 + CAST( 71 AS DECIMAL ) * 65 > ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2700
SELECT ALL * FROM tab1 WHERE 44 + CAST ( 71 AS REAL ) * 65 > ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE col0 / - 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL + CAST( NULL AS SIGNED ) - 72 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + CAST ( NULL AS INTEGER ) - 72 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + COUNT( * ) FROM tab0 WHERE NOT + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + 15 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * - 12 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - MAX( col2 ) * 31 FROM tab1 WHERE NOT ( col0 + - col2 ) IS NULL
----
-2976

skipif mysql # not compatible
query I rowsort label-2705
SELECT - MAX ( col2 ) * 31 FROM tab1 WHERE NOT ( col0 + - col2 ) IS NULL
----
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2706
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 17 AND ( 85 / + col0 + + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2706
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 17 AND ( 85 / + col0 + + col1 * CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 87 col2 FROM tab0
----
-102
-174
-184

query I rowsort
SELECT + 37 * 61 FROM tab1
----
2257
2257
2257

query I rowsort
SELECT ALL 82 + - col1 FROM tab2
----
15
31
5

query I rowsort
SELECT + col0 + col0 * + 43 AS col1 FROM tab2
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - COUNT( * ) * + SUM( - 16 * col1 ) AS col0 FROM tab0
----
4944

skipif mysql # not compatible
query I rowsort label-2711
SELECT - COUNT ( * ) * + SUM ( - 16 * col1 ) AS col0 FROM tab0
----
4944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT - ( - CAST( COUNT( col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2713
SELECT - ( - CAST ( COUNT ( col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2714
SELECT * FROM tab1 AS cor0 WHERE col2 + 91 * 7 BETWEEN - 58 / CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-2714
SELECT * FROM tab1 AS cor0 WHERE col2 + 91 * 7 BETWEEN - 58 / CAST ( NULL AS INTEGER ) AND col0
----

query I rowsort
SELECT 75 * 46 AS col1 FROM tab2 cor0
----
3450
3450
3450

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT ALL + 81 DIV + col2 + - col1 * + col2 AS col1 FROM tab2
----
-1170
-3078
-3885

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + 81 / + col2 + - col1 * + col2 AS col1 FROM tab2
----
-1170
-3078
-3885

query I rowsort
SELECT DISTINCT 43 + + 90 AS col1 FROM tab0
----
133

query I rowsort
SELECT - col0 + - 68 * - ( 84 ) AS col2 FROM tab0 AS cor0
----
5615
5625
5697

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL SUM( ( col1 ) ) - 31 AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL SUM ( ( col1 ) ) - 31 AS col2 FROM tab1 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + + ( + col2 ) col1 FROM tab1 AS cor0
----
157
166
194

query I rowsort
SELECT ALL - col1 * col1 - + 81 FROM tab1 AS cor0
----
-106
-2290
-277

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = ( 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 14 + - col0 AS col0 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + - SUM( col0 ) * + 58 FROM tab0 AS cor0
----
-11542

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + - SUM ( col0 ) * + 58 FROM tab0 AS cor0
----
-11542

query I rowsort
SELECT 59 + - 49 AS col2 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT ALL col1 * 79 FROM tab2 AS cor0
----
4029
5293
6083

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 53 ) IS NOT NULL
----

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 * - col2 * - col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2731
SELECT DISTINCT - SUM( - col2 ) FROM tab1 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - SUM ( - col2 ) FROM tab1 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE ( - 56 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 / 11 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - col2 FROM tab1 WHERE NOT + col0 IS NULL
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + SUM( DISTINCT col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT - 29 DIV 7 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2736
SELECT - 29 / 7 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT col2 * 46 * 62 AS col0 FROM tab2
----
114080
165416
65596

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col2 FROM tab0 WHERE NULL <= ( + col2 )
----

query I rowsort
SELECT DISTINCT 70 * + col0 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT col2 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 AS cor0 WHERE NOT ( col2 - - col2 ) NOT BETWEEN ( + col1 ) AND ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 46 + 35 )
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT DISTINCT - 2 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT - 2 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49 col0, + 23 AS col1 FROM tab1 AS cor0
----
-49
23
-49
23
-49
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2748
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-2748
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT MIN( DISTINCT - ( + col0 ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT MIN ( DISTINCT - ( + col0 ) ) FROM tab1 cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * + col2 ) <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + 96 / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 + col0 + 7 * - 88 ) NOT BETWEEN - 90 + col1 AND NULL
----

query II rowsort
SELECT + col2, 52 FROM tab2 AS cor0
----
23
52
40
52
58
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 54 + + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT - MIN( ALL + - col0 ) col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2756
SELECT DISTINCT - MIN ( ALL + - col0 ) col1 FROM tab2 cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( ( - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 BETWEEN - 21 AND NULL
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT - col1 / + 70 + - ( + ( - col2 ) ) * CAST( + col2 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2759
SELECT - col1 / + 70 + - ( + ( - col2 ) ) * CAST ( + col2 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT + 17 * 21 * - + 64 * MAX( ALL 54 ) + - COUNT( * ) AS col0 FROM tab2
----
-1233795

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT + 17 * 21 * - + 64 * MAX ( ALL 54 ) + - COUNT ( * ) AS col0 FROM tab2
----
-1233795

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE - + col2 IS NULL
----

query I rowsort
SELECT ALL - 74 * - col0 * + - col1 + - 80 FROM tab2
----
-173684
-364752
-371930

query I rowsort
SELECT DISTINCT 18 + col2 FROM tab1
----
114
77
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT DISTINCT - col0 DIV + 65 + col1 AS col0 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - col0 / + 65 + col1 AS col0 FROM tab1
----
14
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NOT ( NULL ) = ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NOT ( NULL ) = ( col1 )
----
0

query I rowsort
SELECT - col1 * - col0 * + - col2 AS col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - COUNT( * ) * SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - COUNT ( * ) * SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - 53 + + COUNT( * ) AS col1 FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2769
SELECT - 53 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-50

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT ALL 33 * - col0 AS col0 FROM tab0 AS cor0
----
-2871
-3201
-495

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE ( - 88 * ( - 22 ) * col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 / col2 + - 80 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + ( + 55 ) AS col2 FROM tab1 WHERE + 97 = NULL
----

query I rowsort
SELECT col2 * 24 FROM tab0 AS cor0 WHERE + ( ( col0 ) ) NOT BETWEEN NULL AND + ( + 46 )
----
2376
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 * + col1 * + - 38 * + - 90 * 48 col2 FROM tab2 AS cor0
----
-192559634
-505612736
-637925685

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT col0 DIV + - ( 80 ) AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT col0 / + - ( 80 ) AS col2 FROM tab0 cor0
----
-1
0

query II rowsort
SELECT ALL - col1, + col2 + 94 * + - col0 AS col0 FROM tab2 AS cor0
----
-51
-4301
-67
-6992
-77
-5976

query II rowsort
SELECT ALL col2, 7 FROM tab2
----
23
7
40
7
58
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 64 ) col2 FROM tab2
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, col2 col0 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col2 col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT ALL col0 AS col2 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) < ( - col0 - - 33 * + + col1 * 69 )
----

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL col0 AS col2 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) < ( - col0 - - 33 * + + col1 * 69 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2785
SELECT * FROM tab0 WHERE NOT ( + + 2 ) >= 13 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2785
SELECT * FROM tab0 WHERE NOT ( + + 2 ) >= 13 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2786
SELECT + COUNT( * ) DIV ( COUNT( * ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2786
SELECT + COUNT ( * ) / ( COUNT ( * ) ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT 53 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT 53 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL + + 49 AS col2 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL - MAX( - 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - MAX ( - 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT DISTINCT - + col2 - + col2 * col2 FROM tab1 AS cor0 WHERE NOT + 1 >= + + 0
----

query I rowsort
SELECT col1 + ( - col2 ) FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT col0 AS col1, col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT - 1 / COUNT( * ) + - + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 1 / COUNT ( * ) + - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 96 + - - 49 AS col2 FROM tab1
----
145
145
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + 52 * + COUNT( * ) AS col2 FROM tab0 WHERE + + ( col1 ) = - col0
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 52 * + COUNT ( * ) AS col2 FROM tab0 WHERE + + ( col1 ) = - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2796
SELECT ALL col1 + - col0 * - CAST( NULL AS SIGNED ), 12 AS col1 FROM tab0
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-2796
SELECT ALL col1 + - col0 * - CAST ( NULL AS INTEGER ), 12 AS col1 FROM tab0
----
NULL
12
NULL
12
NULL
12

query II rowsort
SELECT + col2, + col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 WHERE 43 * 0 * + - ( - + 78 ) IS NULL
----

query II rowsort
SELECT col0 AS col1, + col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query II rowsort
SELECT ALL 94 AS col1, ( + + col1 ) AS col0 FROM tab0
----
94
1
94
21
94
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2801
SELECT ALL + COUNT( * ) * ( - + CAST( + + 47 AS SIGNED ) ) - - - 23 FROM tab0 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + COUNT ( * ) * ( - + CAST ( + + 47 AS INTEGER ) ) - - - 23 FROM tab0 AS cor0
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2802
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IN ( col2 + - + 9 * - CAST( NULL AS SIGNED ) - + ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2802
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IN ( col2 + - + 9 * - CAST ( NULL AS INTEGER ) - + ( col0 ) )
----

query I rowsort
SELECT DISTINCT + - ( + 31 ) FROM tab0 cor0
----
-31

query I rowsort
SELECT ALL - 23 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT ( - 0 ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT DISTINCT col1 * + col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT col1 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col0, col1 * + - col0 AS col2 FROM tab2 WHERE - + col0 + - - ( - col2 ) > + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT ALL + col2 * 65 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + col2 * 65 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT + ( - - col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL + + col0 * + col0 * - col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + - + col1 < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 + 53 AS col2 FROM tab2 WHERE NOT + + col1 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 + 53 AS col2 FROM tab2 WHERE NOT + + col1 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 10 FROM tab1
----
-510
-850
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL col1 + - - col0 FROM tab1 WHERE col1 NOT IN ( + col0 * - CAST( NULL AS SIGNED ) * col0 - + col0 )
----

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL col1 + - - col0 FROM tab1 WHERE col1 NOT IN ( + col0 * - CAST ( NULL AS INTEGER ) * col0 - + col0 )
----

query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab2 WHERE NOT 88 <> - col1 + - 31 + col0 * - 22 * col0
----

query I rowsort
SELECT DISTINCT + - ( + - 35 ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
35

query I rowsort
SELECT DISTINCT + ( + - ( - ( ( col0 ) ) ) ) * 97 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT ( - 74 ) FROM tab1
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT col0 DIV - + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2821
SELECT col0 / - + col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL COUNT( * ) * + ( + SUM( DISTINCT + 59 ) ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( * ) * + ( + SUM ( DISTINCT + 59 ) ) FROM tab0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT DISTINCT col0 DIV + - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT col0 / + - col2 FROM tab2
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT DISTINCT - col2 DIV 63 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT DISTINCT - col2 / 63 col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 2 + col2 IS NULL )
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col1 * - col2 * col2 FROM tab1 cor0
----
-129024
-17405
-217328

query I rowsort
SELECT col2 * - 97 FROM tab0
----
-4559
-9603
-970

query I rowsort
SELECT col0 + - col2 * - 79 FROM tab2
----
1863
3224
4657

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL - COUNT( * ) * + 27 + COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - COUNT ( * ) * + 27 + COUNT ( * ) FROM tab2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT DISTINCT + col1 DIV col0 * - + 59 AS col2 FROM tab0
----
-295
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + col1 / col0 * - + 59 AS col2 FROM tab0
----
-295
0

query II rowsort
SELECT 5, col2 AS col1 FROM tab1 AS cor0
----
5
59
5
68
5
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT ALL - - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0 cor0
----
28

query II rowsort
SELECT ALL + col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT ALL + - col0 AS col0, + 90 AS col1 FROM tab1 cor0
----
-51
90
-85
90
-91
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 53 col1, col0 FROM tab0 AS cor0
----
53
15
53
87
53
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT DISTINCT 20 AS col2 FROM tab0 WHERE NOT - + col1 * col2 - + - CAST( NULL AS SIGNED ) NOT IN ( + 19 - - + col0, 71 )
----

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT 20 AS col2 FROM tab0 WHERE NOT - + col1 * col2 - + - CAST ( NULL AS INTEGER ) NOT IN ( + 19 - - + col0, 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - - col1, col2 * col2 col2 FROM tab0 WHERE NULL = + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 18 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT - COUNT( ALL - col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT - 59 + - - 9 DIV col2 AS col1 FROM tab0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 59 + - - 9 / col2 AS col1 FROM tab0
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT col2 + + col1 DIV + 56 AS col0 FROM tab2
----
23
41
59

skipif mysql # not compatible
query I rowsort label-2844
SELECT col2 + + col1 / + 56 AS col0 FROM tab2
----
23
41
59

query I rowsort
SELECT ALL - 34 + + + 94 AS col0 FROM tab2
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2847
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col2 col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2847
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col2 col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL MIN( ALL col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT ALL MIN ( ALL col1 ) col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + - 77 AS col0 FROM tab1 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * col0 col1 FROM tab0
----
2262
2522
390

query I rowsort
SELECT DISTINCT - + col0 + col0 + col2 FROM tab0 WHERE - col2 * 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT - MAX( 1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - MAX ( 1 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col0 * 15 AS col0 FROM tab2 AS cor0
----
-1125
-690
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT DISTINCT + SUM( - + 95 ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT + SUM ( - + 95 ) FROM tab1 AS cor0
----
-285

query II rowsort
SELECT DISTINCT + col0, ( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 43 * col2 AS col0 FROM tab2 AS cor0
----
1720
2494
989

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT ALL + - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL - - 25 AS col2, col2 FROM tab1 AS cor0
----
25
59
25
68
25
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 = - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + ( 59 ) AS col2, col0 * + - col1 * + col1 AS col0 FROM tab2
----
59
-119646
59
-336675
59
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - 65 * + COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-2863
SELECT - 65 * + COUNT ( * ) FROM tab0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2864
SELECT - col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT - col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 * + col2 AS col0, - col0 AS col1 FROM tab0
----
705
-15
870
-87
9603
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ( - - COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2866
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT ALL - ( 4 ), col0 AS col1 FROM tab1
----
-4
51
-4
85
-4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT - COUNT( * ) * + ( + 96 ) + + SUM( + 76 ) + 23 FROM tab0 WHERE col2 >= col1 - - - col1 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - COUNT ( * ) * + ( + 96 ) + + SUM ( + 76 ) + 23 FROM tab0 WHERE col2 >= col1 - - - col1 * - col1
----
3

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL col0 * - 78 AS col1 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( - + col1 / + - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 50 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * ( + + MIN( - + col2 ) ) * + - 99 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * ( + + MIN ( - + col2 ) ) * + - 99 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - - 47 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT ALL + col2 + + + col1 DIV col0 * + col2 * - + col1 FROM tab0 AS cor0
----
-18988
10
99

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + col2 + + + col1 / col0 * + col2 * - + col1 FROM tab0 AS cor0
----
-18988
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL MAX( DISTINCT 98 ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL MAX ( DISTINCT 98 ) FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT - CAST( NULL AS SIGNED ) + 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - CAST ( NULL AS INTEGER ) + 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + + col1 * - + col0 AS col1 FROM tab0 cor0
----
-1262
-1837
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT + col1 + col0 + + col2 + - 5 DIV + + col2 * + col2 FROM tab0 AS cor0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-2879
SELECT + col1 + col0 + + col2 + - 5 / + + col2 * + col2 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT - col1 + - - col2 * 23 AS col1 FROM tab1
----
1352
1517
2194

query I rowsort
SELECT - ( - - 58 ) AS col0 FROM tab0 WHERE 17 <= NULL
----

query I rowsort
SELECT ALL ( - col2 ) * 23 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT DISTINCT + col0 + - 70 * - + col2 FROM tab0
----
3305
7027
787

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT ALL - ( + col0 ) + + + 14 - - 21 + - 48 + - col0 + - + col0 DIV - col0 FROM tab2
----
-104
-140
-162

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - ( + col0 ) + + + 14 - - 21 + - 48 + - col0 + - + col0 / - col0 FROM tab2
----
-104
-140
-162

query I rowsort
SELECT DISTINCT + col2 - + ( + 11 ) * - 93 FROM tab0
----
1033
1070
1122

query II rowsort
SELECT col2, col2 * col1 AS col2 FROM tab2
----
23
1173
40
3080
58
3886

query I rowsort
SELECT ALL col1 - + col1 + + col1 AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT - MIN( + + 18 ) AS col2, - 36 AS col1 FROM tab2
----
-18
-36

skipif mysql # not compatible
query II rowsort label-2888
SELECT - MIN ( + + 18 ) AS col2, - 36 AS col1 FROM tab2
----
-18
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT 86 * col2 DIV - + col2 + - 94 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT 86 * col2 / - + col2 + - 94 FROM tab0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + 76 * COUNT( * ) FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2890
SELECT + 76 * COUNT ( * ) FROM tab2 AS cor0
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT COUNT( * ) - + MIN( ALL - - ( + col2 ) ) - + - MAX( - 55 ) + - 70 / + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT COUNT ( * ) - + MIN ( ALL - - ( + col2 ) ) - + - MAX ( - 55 ) + - 70 / + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 IN ( - 32 )
----

query I rowsort
SELECT + col0 - - 37 FROM tab2 AS cor0
----
101
112
83

query II rowsort
SELECT ALL + col2 AS col2, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( - col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT MAX( DISTINCT - - col2 ) - 71 AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2896
SELECT MAX ( DISTINCT - - col2 ) - 71 AS col0 FROM tab2 AS cor0
----
-13

query II rowsort
SELECT DISTINCT + col0, - col1 * 74 + - + 15 FROM tab1 cor0
----
51
-1051
85
-385
91
-3493

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col0 ) ) IS NOT NULL
----

query I rowsort
SELECT ( - ( + - col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT - MIN( ALL col0 ) DIV + - COUNT( * ) + - 77 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2900
SELECT - MIN ( ALL col0 ) / + - COUNT ( * ) + - 77 FROM tab1 AS cor0
----
-60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * col2 + - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT - SUM( - 1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - SUM ( - 1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col2 * col2 AS col1 FROM tab0 cor0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - + 99 ) AS col1 FROM tab2 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 - + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 60 col2 FROM tab1
----
3540
4080
5760

query II rowsort
SELECT ALL col1 AS col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + + 51 AS col2 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT - + ( - + col0 ) FROM tab2 WHERE + - 37 - - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL = - 30 + col1
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL = - 30 + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 79 col0 FROM tab1 WHERE ( - col2 ) + + - col0 IS NOT NULL
----
-79
-79
-79

query I rowsort
SELECT ALL + col1 + col1 * - col1 AS col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT + 71 * - 15 * 87 * - 56 AS col1 FROM tab2 AS cor0
----
5188680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2915
SELECT ALL - ( + COUNT( * ) ) + + 93 * - 95 - - MIN( - - col1 ) AS col0, ( + - COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE NOT + col2 BETWEEN + - col0 AND ( ( - + col0 ) + - CAST( NULL AS SIGNED ) )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2915
SELECT ALL - ( + COUNT ( * ) ) + + 93 * - 95 - - MIN ( - - col1 ) AS col0, ( + - COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE NOT + col2 BETWEEN + - col0 AND ( ( - + col0 ) + - CAST ( NULL AS INTEGER ) )
----
NULL
0

query I rowsort
SELECT DISTINCT col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2918
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL + 68 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + 68 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
204

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN + col2 AND + 50 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - 68 + + col2 + 39 + 30 BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - col1 + + 17 * + col1 FROM tab1
----
224
752
80

query I rowsort
SELECT 65 - - - col1 FROM tab2
----
-12
-2
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 < - + col1
----

query I rowsort
SELECT 73 - col0 AS col2 FROM tab0
----
-14
-24
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2927
SELECT - ( - + col0 ) - - + CAST( NULL AS SIGNED ), - 54 AS col0 FROM tab1
----
NULL
-54
NULL
-54
NULL
-54

skipif mysql # not compatible
query II rowsort label-2927
SELECT - ( - + col0 ) - - + CAST ( NULL AS INTEGER ), - 54 AS col0 FROM tab1
----
NULL
-54
NULL
-54
NULL
-54

query I rowsort
SELECT DISTINCT 33 + + - 1 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL COUNT( ALL + col1 ) + + 82 col2 FROM tab2
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2929
SELECT ALL COUNT ( ALL + col1 ) + + 82 col2 FROM tab2
----
85

query III rowsort
SELECT * FROM tab1 WHERE - + 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 68 * col0 + - col2 AS col2 FROM tab1
----
-3564
-5839
-6256

query III rowsort
SELECT * FROM tab1 cor0 WHERE 65 <> - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 73 + col2 NOT BETWEEN col0 + 61 + 28 AND - 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 51 * - ( + col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-132651
-228939
-302379

query I rowsort
SELECT ALL AVG ( col2 ) AS col0 FROM tab1 WHERE NOT col0 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query I rowsort
SELECT DISTINCT + - 50 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2938
SELECT * FROM tab2 cor0 WHERE NOT ( 48 + + + 7 ) = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2938
SELECT * FROM tab2 cor0 WHERE NOT ( 48 + + + 7 ) = CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2939
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + 42 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2939
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + 42 AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( - - col0 ) ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT ALL + - MAX( + - 23 ) AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
23
-3

skipif mysql # not compatible
query II rowsort label-2941
SELECT ALL + - MAX ( + - 23 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
23
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT + + 79 AS col2, - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL OR NULL IS NOT NULL
----
79
-3

skipif mysql # not compatible
query II rowsort label-2942
SELECT + + 79 AS col2, - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL OR NULL IS NOT NULL
----
79
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 45 * - + col0 * + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + COUNT( - - 38 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2944
SELECT + COUNT ( - - 38 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - 3 ) FROM tab2 WHERE - ( - - col2 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL - COUNT( * ) + + COUNT( DISTINCT - 54 ) AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - COUNT ( * ) + + COUNT ( DISTINCT - 54 ) AS col1 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT - SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2948
SELECT - SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT SUM( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2949
SELECT SUM ( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - 34 + col0 * 91 + - - col2 * + + col1 AS col1 FROM tab1
----
11443
5951
7996

query I rowsort
SELECT ALL - - col2 + - col0 * - col2 + + col2 FROM tab1 WHERE ( NULL ) > + col2
----

query I rowsort
SELECT col2 + + + ( + col2 ) FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT + ( + - 67 ) + - COUNT( * ) - - - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + ( + - 67 ) + - COUNT ( * ) - - - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT 0 + - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT - COUNT( * ) + - 42 - 28 AS col1, + 37 * - SUM( + 10 ) FROM tab1 AS cor0
----
-73
-1110

skipif mysql # not compatible
query II rowsort label-2955
SELECT - COUNT ( * ) + - 42 - 28 AS col1, + 37 * - SUM ( + 10 ) FROM tab1 AS cor0
----
-73
-1110

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * 99 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 + - 26 - + + 57 AS col0, 76 AS col2 FROM tab0 cor0
----
-130
76
-182
76
-93
76

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 - + - col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL ( - - col0 ) FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + - ( col2 ) FROM tab0 WHERE + + col1 < NULL
----

query I rowsort
SELECT ALL col0 * - + 5 AS col0 FROM tab2
----
-230
-320
-375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2963
SELECT MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT col0 * + col0 - + - col2 + - + col2 * + col0 FROM tab0 cor0
----
-433
-95
6709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT - CAST( - MAX( col2 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2965
SELECT - CAST ( - MAX ( col2 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - 26 * - col2 * + + col1 FROM tab0 AS cor0
----
2574
5460
98982

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + SUM( 18 ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2967
SELECT + SUM ( 18 ) AS col0 FROM tab0
----
54

query I rowsort
SELECT DISTINCT - 29 - - 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2969
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2969
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 98 * - + col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 58 * + 7 FROM tab0 AS cor0
----
-406
-406
-406

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 63 * - col1 / - + 97 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - 97 AS col1 FROM tab1
----
-50
-83
-92

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + - col1 * col2 * - 23 + col1 FROM tab1 AS cor0
----
30926
6790
73555

query I rowsort
SELECT - col1 + 94 - - ( + - 23 ) + + col0 FROM tab2
----
58
66
79

query I rowsort
SELECT - 22 * - ( col0 ) AS col2 FROM tab0
----
1914
2134
330

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT MIN( DISTINCT - + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2978
SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT + 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL 68 + 81 * COUNT( * ) FROM tab0
----
311

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL 68 + 81 * COUNT ( * ) FROM tab0
----
311

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab1 AS cor0 WHERE - col1 >= - ( 27 ) + + col2 + 23 * - 18
----
59
68
96

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT COUNT( * ) * + + 31 - + 49 AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT COUNT ( * ) * + + 31 - + 49 AS col0 FROM tab0 AS cor0
----
44

query II rowsort
SELECT - 75 * - col2 - + + col0, + col0 AS col1 FROM tab0 AS cor0
----
3510
15
663
87
7328
97

query I rowsort
SELECT ALL - - 28 - - + col1 FROM tab2 AS cor0
----
105
79
95

query I rowsort
SELECT - 40 + - + 29 FROM tab2
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - MAX( ALL + - col1 ) + + 65 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2988
SELECT - MAX ( ALL + - col1 ) + + 65 FROM tab0
----
66

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT MIN( + + 9 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2990
SELECT MIN ( + + 9 ) FROM tab0
----
9

query II rowsort
SELECT DISTINCT - 62, ( - 20 ) * + + col1 AS col2 FROM tab0
----
-62
-1620
-62
-20
-62
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT + col0 * - 77 AS col2 FROM tab0
----
-1155
-6699
-7469

query III rowsort
SELECT * FROM tab2 WHERE NOT - 23 + + col0 + + 45 IN ( - + col0 + - 44 - + 53, - 1, - ( + col2 ), + + 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL - - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - - col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 8 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - 92 * + 32 AS col2 FROM tab0 AS cor0
----
-2944

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2998
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 + + col0 * + - col2, + 70, - CAST( + col1 AS SIGNED ) + col0 + + 31 )
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 + + col0 * + - col2, + 70, - CAST ( + col1 AS INTEGER ) + col0 + + 31 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * - 79 + + 51 AND ( NULL )
----

query II rowsort
SELECT ALL 74, col0 FROM tab2 AS cor0
----
74
46
74
64
74
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3001
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3001
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL
9

query I rowsort
SELECT DISTINCT ( col1 ) * + + col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23

query I rowsort
SELECT ALL + col2 * + + 46 FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT COUNT( * ) DIV + + MIN( DISTINCT + + 68 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT COUNT ( * ) / + + MIN ( DISTINCT + + 68 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - col0 * + 36 AS col1 FROM tab1 AS cor0
----
-1836
-3060
-3276

query I rowsort
SELECT + - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3008
SELECT - - col0 DIV 11 + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-42
-59
-69

skipif mysql # not compatible
query I rowsort label-3008
SELECT - - col0 / 11 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-42
-59
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT 90 DIV - col1 + - col1 + - - col1 col2 FROM tab1 cor0
----
-1
-18
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3009
SELECT 90 / - col1 + - col1 + - - col1 col2 FROM tab1 cor0
----
-1
-18
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - COUNT( + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - COUNT ( + - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 + - - 94 * + col2 AS col2 FROM tab2 AS cor0
----
2111
3683
5385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( col1 ) col2 FROM tab0
----
108
96
98

query I rowsort
SELECT + col2 + + - col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COUNT( * ) + 75 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( * ) + 75 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL ( + col2 ) + + - 78 + + 85 * col2 FROM tab0
----
3964
782
8436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col1 FROM tab2
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT + - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3020
SELECT + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + col1 * + + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + - 24 FROM tab1 AS cor0 WHERE - 23 > - + col1 + col1 + - col2 * - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) < - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT ALL COUNT( * ) DIV + - 41 + + MIN( DISTINCT + col2 ) + - COUNT( + - col0 ) AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL COUNT ( * ) / + - 41 + + MIN ( DISTINCT + col2 ) + - COUNT ( + - col0 ) AS col2 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL + 51 - - COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + 51 - - COUNT ( * ) FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT COUNT( * ) * 86 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT COUNT ( * ) * 86 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 26 + 2 AS col2 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT col2 - - - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + - 29 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query II rowsort
SELECT ALL + col0 - col2, - col2 * + - 74 AS col0 FROM tab1 AS cor0
----
-45
7104
23
5032
26
4366

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 12 * - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3033
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query III rowsort label-3033
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS REAL ) + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 3 > + 18 + 68 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL - MIN( ALL + 22 ) AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - MIN ( ALL + 22 ) AS col2 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT + CAST( NULL AS SIGNED ) * SUM( ALL + - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT + CAST ( NULL AS INTEGER ) * SUM ( ALL + - col0 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 83 * - 49 FROM tab0
----
-4067
-4067
-4067

query I rowsort
SELECT + 89 * col1 AS col0 FROM tab1
----
1246
4183
445

query II rowsort
SELECT DISTINCT + ( - col1 ) AS col2, 92 AS col2 FROM tab2 AS cor0
----
-51
92
-67
92
-77
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 18 * - ( 39 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 2 - 32 * col0 * col2 FROM tab0 AS cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT 39 + - COUNT( * ) + 87 + + MAX( col0 ) + COUNT( * ) AS col1 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-3043
SELECT 39 + - COUNT ( * ) + 87 + + MAX ( col0 ) + COUNT ( * ) AS col1 FROM tab2
----
201

query I rowsort
SELECT ALL + col0 * + - col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3045
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + CAST( + - 57 AS SIGNED ) - + + col1
----

skipif mysql # not compatible
query III rowsort label-3045
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + CAST ( + - 57 AS INTEGER ) - + + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3046
SELECT col2 DIV + col0 - + - 33 + - col1 * + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-1310
-262
-3163

skipif mysql # not compatible
query I rowsort label-3046
SELECT col2 / + col0 - + - 33 + - col1 * + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-1310
-262
-3163

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL + COUNT( + 91 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL + COUNT ( + 91 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 * + col1 * - + col0 + + col2 + 26 + - 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 + - col0 FROM tab2 AS cor0
----
2555
4414
5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL - col0 - - CAST( - - 83 AS SIGNED ) FROM tab1 AS cor0 WHERE col2 <> + col2
----

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - col0 - - CAST ( - - 83 AS INTEGER ) FROM tab1 AS cor0 WHERE col2 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT MAX( + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3052
SELECT MAX ( + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - 95 + + col1 AS col2 FROM tab1
----
-48
-81
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL - col0 + + - col0 + - + 33 FROM tab2
----
-125
-161
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL - 0 + + - COUNT( * ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3056
SELECT ALL - 0 + + - COUNT ( * ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - - COUNT( DISTINCT + + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT - - COUNT ( DISTINCT + + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - 15 + - 41 <= - - ( + + ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT - + MIN( + col2 ) - COUNT( * ) FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT - + MIN ( + col2 ) - COUNT ( * ) FROM tab1 cor0
----
-62

query II rowsort
SELECT + col0 / - col1 + - + 92, - 66 FROM tab1 cor0 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT SUM( + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ( 63 ) AS col0 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - AVG ( 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-3065
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 <> NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, ( + - col0 ) AS col2 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3068
SELECT ALL CAST( NULL AS DECIMAL ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3068
SELECT ALL CAST ( NULL AS REAL ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT + + CAST( - - COUNT( col1 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + + CAST ( - - COUNT ( col1 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT - col0, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 - + - col1 - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + 14 * 10 FROM tab0 AS cor0
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3075
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col0 col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + - 30 * - - col0 * col2 + - + col1 FROM tab2 AS cor0
----
-130567
-31791
-76877

query I rowsort
SELECT - + 50 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-10
-27
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - COUNT( - 30 ) + + + 65 AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3079
SELECT - COUNT ( - 30 ) + + + 65 AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE + col1 * 95 BETWEEN - col2 + + col2 * - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 52 + - col1 FROM tab1
----
38
47
5

query I rowsort
SELECT - - col1 * - col1 + + col2 * + col1 + + 75 FROM tab0 WHERE - col1 + - col0 BETWEEN NULL AND - - 94 * + 38 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL 38 + - COUNT( * ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL 38 + - COUNT ( * ) AS col2 FROM tab1
----
35

query II rowsort
SELECT DISTINCT col1 + 30 + + - col2 AS col0, 48 FROM tab0
----
-68
48
41
48
64
48

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - 28 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 5 + - - 48 FROM tab2 WHERE + col0 NOT IN ( - - ( - + col0 ), + col1 )
----
53

query II rowsort
SELECT - 54 AS col2, col2 AS col2 FROM tab0
----
-54
10
-54
47
-54
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) IN ( col0, col2, - col0 )
----

query I rowsort
SELECT ALL + col2 * + 5 - - - ( + col0 ) * + col2 * 44 * - 14 FROM tab2
----
1577160
2679890
651843

query I rowsort
SELECT - 26 - - col0 AS col0 FROM tab0 AS cor0
----
-11
61
71

query I rowsort
SELECT col0 - + col0 * - col2 * - + col0 FROM tab2 AS cor0
----
-163776
-326175
-48622

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 18 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - 30, col1 )
----

query I rowsort
SELECT ALL ( ( - 19 ) ) FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - + 94 * col2 / + + col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 47 + - ( - - 26 ) + col0 >= - 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3097
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT IN ( + + col1, ( col1 ) + - 98 - - + 34 / 45 * + col0 + 12 + - - 47, + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3097
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT IN ( + + col1, ( col1 ) + - 98 - - + 34 / 45 * + col0 + 12 + - - 47, + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3098
SELECT col0, - ( + 95 ) * - + 34 + + + CAST( NULL AS SIGNED ) + - 15 / + + col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + + 81
----

skipif mysql # not compatible
query II rowsort label-3098
SELECT col0, - ( + 95 ) * - + 34 + + + CAST ( NULL AS INTEGER ) + - 15 / + + col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + + 81
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT DISTINCT COUNT( * ) DIV - 54 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT COUNT ( * ) / - 54 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col2 * + 90 * + 82 col1 FROM tab1
----
14
708480
47
501840
5
435420

query I rowsort
SELECT DISTINCT + ( - 25 ) AS col2 FROM tab0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT 8 DIV col1 DIV col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3103
SELECT 8 / col1 / col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + + 39 AS col0 FROM tab0
----
3393
3783
585

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT + 38 DIV + - 74 + ( + col1 ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3106
SELECT + 38 / + - 74 + ( + col1 ) FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 * - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT ALL 21 * ( - MAX( DISTINCT 32 ) ) FROM tab1 AS cor0
----
-672

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 21 * ( - MAX ( DISTINCT 32 ) ) FROM tab1 AS cor0
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + 17 * - MIN( - 11 ) AS col0 FROM tab1 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + 17 * - MIN ( - 11 ) AS col0 FROM tab1 AS cor0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - 77 + + MAX( - ( + col0 ) ) col0 FROM tab0 WHERE NOT - 57 + col2 IS NULL
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT - 77 + + MAX ( - ( + col0 ) ) col0 FROM tab0 WHERE NOT - 57 + col2 IS NULL
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + 96 + col0 DIV - col0 AS col1 FROM tab1
----
95
95
95

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 96 + col0 / - col0 AS col1 FROM tab1
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ( + + COUNT( * ) ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3112
SELECT ( + + COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3113
SELECT DISTINCT 47, + COUNT( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
47
3

skipif mysql # not compatible
query II rowsort label-3113
SELECT DISTINCT 47, + COUNT ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
47
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 9 ) / col2 IN ( + ( + + col1 ), col2 * - col1 )
----

query I rowsort
SELECT col2 * - + ( + 42 ) AS col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 32 AS col1 FROM tab1 cor0 WHERE - 74 IS NOT NULL
----
32
32
32

query I rowsort
SELECT ALL col0 + + col1 * + + col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT + 81 - + 71 AS col0 FROM tab1
----
10
10
10

query II rowsort
SELECT col0 - + col1, + 62 AS col0 FROM tab0
----
-66
62
66
62
96
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT + col0 * + col0 + - col2 DIV + - col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-3121
SELECT + col0 * + col0 + - col2 / + - col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT col0 + col0 * + 94 AS col2 FROM tab1
----
4845
8075
8645

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT ALL + - col0 - + col0 * - - col2 FROM tab2 cor0
----
-1104
-2624
-4425

query I rowsort
SELECT ALL + - col0 - 79 FROM tab1 AS cor0
----
-130
-164
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + 75 * - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT + 75 * - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 / + col1 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 / + col1 * - - col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT ALL - COUNT( * ) AS col2, MIN( DISTINCT - col2 ) + - - 27 FROM tab2 cor0
----
-3
-31

skipif mysql # not compatible
query II rowsort label-3129
SELECT ALL - COUNT ( * ) AS col2, MIN ( DISTINCT - col2 ) + - - 27 FROM tab2 cor0
----
-3
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3130
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - 0 + + + CAST( NULL AS SIGNED ) * - - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3130
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - 0 + + + CAST ( NULL AS INTEGER ) * - - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - col1 FROM tab0 AS cor0 WHERE ( NOT + col2 + col1 IS NULL )
----
-1215
-1827
-97

query I rowsort
SELECT + + ( + 44 ) FROM tab1 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 59, - col0 col0 FROM tab0 AS cor0
----
-59
-15
-59
-87
-59
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT ALL ( - col0 ) * + + col1 + + CAST( + - col0 AS SIGNED ) FROM tab0
----
-1230
-1914
-194

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL ( - col0 ) * + + col1 + + CAST ( + - col0 AS INTEGER ) FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 WHERE NOT - 55 NOT BETWEEN 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT 83 + + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 <= + - 29
----
83

skipif mysql # not compatible
query I rowsort label-3136
SELECT 83 + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 <= + - 29
----
83

query I rowsort
SELECT 3 * + col1 FROM tab2
----
153
201
231

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab1 cor0
----
-92

query I rowsort
SELECT ALL - 86 + - 10 + + + col0 * - + col1 FROM tab2
----
-2442
-5024
-5121

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3140
SELECT 33 FROM tab0 WHERE CAST( col2 AS SIGNED ) / - CAST( NULL AS SIGNED ) * - ( + - ( col2 ) ) + - col0 BETWEEN NULL AND - col1 / - 40 + + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3140
SELECT 33 FROM tab0 WHERE CAST ( col2 AS INTEGER ) / - CAST ( NULL AS INTEGER ) * - ( + - ( col2 ) ) + - col0 BETWEEN NULL AND - col1 / - 40 + + - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - ( + + ( - + COUNT( * ) ) ) + 25 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3141
SELECT - ( + + ( - + COUNT ( * ) ) ) + 25 FROM tab0 AS cor0
----
28

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - ( - col0 ) + - 34 FROM tab2 AS cor0
----
12
30
41

query I rowsort
SELECT 50 * - + col1 + + - 68 * col2 - + 4 FROM tab1 AS cor0
----
-4266
-6978
-7232

query I rowsort
SELECT - col0 * + - col0 + 22 + - 2 AS col2 FROM tab0 AS cor0
----
245
7589
9429

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL COUNT( * ) * - 54 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL COUNT ( * ) * - 54 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT + col1 + + - col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT + MAX( ALL + ( + - 20 ) ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + MAX ( ALL + ( + - 20 ) ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT col0 * + col0 + + 11 + - 30 * CAST( 29 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1742
6366
7422

skipif mysql # not compatible
query I rowsort label-3149
SELECT col0 * + col0 + + 11 + - 30 * CAST ( 29 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1742
6366
7422

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT - 25 AS col0, MAX( ALL + col1 ) * - ( + COUNT( * ) ) AS col1 FROM tab2
----
-25
-231

skipif mysql # not compatible
query II rowsort label-3150
SELECT - 25 AS col0, MAX ( ALL + col1 ) * - ( + COUNT ( * ) ) AS col1 FROM tab2
----
-25
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) + 86 col0 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) + 86 col0 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL - 63 * + + COUNT( * ) + ( - + COUNT( * ) ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - 63 * + + COUNT ( * ) + ( - + COUNT ( * ) ) FROM tab1
----
-192

query I rowsort
SELECT ALL - 51 + - ( + - col0 ) AS col0 FROM tab2
----
-5
13
24

query I rowsort
SELECT 50 FROM tab1 WHERE + col1 > - col2
----
50
50
50

query I rowsort
SELECT DISTINCT col2 * col0 + + col1 AS col0 FROM tab0
----
786
891
9604

query I rowsort
SELECT ALL col1 + - col0 * 97 AS col2 FROM tab2
----
-4411
-6131
-7208

query I rowsort
SELECT ALL - 48 * col1 + - 16 * + col2 * - 36 AS col1 FROM tab2
----
10800
19344
30192

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + - col1 < + col0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT DISTINCT - COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + 98 AS col0 FROM tab1
----
103
112
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3161
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + - col1 + - col0, - col2 * - ( - - col2 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + - col1 + - col0, - col2 * - ( - - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 87 * 23 AS col1 FROM tab2 AS cor0
----
2001

onlyif mysql # DIV for integer division: 
query II rowsort label-3163
SELECT DISTINCT + + 80 DIV + - col2, col1 - - - col2 + - col2 * - + 84 AS col1 FROM tab1 AS cor0
----
-1
4902
-1
5691
0
7982

skipif mysql # not compatible
query II rowsort label-3163
SELECT DISTINCT + + 80 / + - col2, col1 - - - col2 + - col2 * - + 84 AS col1 FROM tab1 AS cor0
----
-1
4902
-1
5691
0
7982

query I rowsort
SELECT ALL - - col2 * + col0 + - col0 - - 6 * - col0 AS col2 FROM tab1 AS cor0
----
4420
4539
5551

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 * - col2 AND NULL
----

query I rowsort
SELECT ALL + - ( - col1 ) AS col0 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 70 / + col1 * 74 <> + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 = - col0 * + 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 44 * col0 * + col2 FROM tab0 WHERE col1 + - col0 + 46 + + col1 = col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 14 / - col1 FROM tab1 WHERE NOT ( col0 <> + col0 + - col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + 17 * + + MAX( - - ( - 51 ) ) * + 77 AS col0 FROM tab2
----
-66759

skipif mysql # not compatible
query I rowsort label-3172
SELECT + 17 * + + MAX ( - - ( - 51 ) ) * + 77 AS col0 FROM tab2
----
-66759

query II rowsort
SELECT DISTINCT + + col0 AS col0, + 85 FROM tab0 AS cor0
----
15
85
87
85
97
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT + COUNT( * ) * - 72 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-3175
SELECT + COUNT ( * ) * - 72 FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

query I rowsort
SELECT + col0 * + col1 FROM tab1 WHERE ( col0 ) + col1 NOT BETWEEN NULL AND col0
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3178
SELECT ALL + MIN( + col0 ) DIV 12 col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT ALL + MIN ( + col0 ) / 12 col0 FROM tab2
----
3

query I rowsort
SELECT 50 + col1 AS col2 FROM tab2
----
101
117
127

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3181
SELECT MIN ( DISTINCT - col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT COUNT( * ) * - 56 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT COUNT ( * ) * - 56 FROM tab1
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT - ( 55 ) FROM tab1 WHERE ( NULL ) IS NULL
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3185
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) / - col0 BETWEEN 13 * - col0 AND col2
----

skipif mysql # not compatible
query III rowsort label-3185
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) / - col0 BETWEEN 13 * - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - COUNT( * ) + 8 * 0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3186
SELECT - COUNT ( * ) + 8 * 0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) NOT IN ( + 86 + col0 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT - CAST( ( col1 ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3188
SELECT - CAST ( ( col1 ) AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT + 48 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 48 / - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT - col0 DIV 70 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT - col0 / 70 FROM tab1
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= 77
----

query I rowsort
SELECT DISTINCT 93 + - col2 FROM tab1
----
-3
25
34

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab0 WHERE 50 IS NOT NULL
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ( col0 ) DIV - 14 AS col1 FROM tab1
----
-3
-6
-6

skipif mysql # not compatible
query I rowsort label-3194
SELECT ( col0 ) / - 14 AS col1 FROM tab1
----
-3
-6
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 20 ) IS NOT NULL
----

query I rowsort
SELECT 35 * + 69 FROM tab2
----
2415
2415
2415

query I rowsort
SELECT DISTINCT - 40 + col0 AS col0 FROM tab1
----
11
45
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT MAX( DISTINCT - 70 ) * - COUNT( * ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-3198
SELECT MAX ( DISTINCT - 70 ) * - COUNT ( * ) FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3199
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT DISTINCT 62 DIV - col0 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT 62 / - col0 FROM tab0
----
-4
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL + 81 * + MIN( ALL - 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + 81 * + MIN ( ALL - 0 ) FROM tab1
----
0

query I rowsort
SELECT - 13 + 87 / ( col1 * + col2 + + col0 ) AS col2 FROM tab0 WHERE NOT 36 - + 43 NOT BETWEEN + 17 AND col2
----

query I rowsort
SELECT ALL col1 + col2 FROM tab2 WHERE NOT - 67 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + 0 * ( + 45 ) col1 FROM tab1 WHERE NOT + col0 * 47 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 / col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT 52 * + col2 FROM tab2
----
1196
2080
3016

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col1 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL - COUNT( * ) * - 49 - 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
384

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - COUNT ( * ) * - 49 - 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
384

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) / 69 <> col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT 37 * COUNT( ALL 42 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
333

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT 37 * COUNT ( ALL 42 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT - - MAX( 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - - MAX ( 91 ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - col1 ) = ( NULL )
----

query I rowsort
SELECT ALL ( 37 ) FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * col2 - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( 92 )
----

query I rowsort
SELECT 15 AS col1 FROM tab1 cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 + - col1 * col2 col1 FROM tab0 AS cor0 WHERE - 4 IS NOT NULL
----
-163
-3760
-52

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 * ( - col0 ) AND ( - col0 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT 52 / - col1 + - col1 NOT IN ( - col0 )
----

query I rowsort
SELECT + 27 + - col1 + - col0 FROM tab2
----
-114
-115
-70

query I rowsort
SELECT ALL + 70 FROM tab0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT AVG ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT - 72 * + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 46 + - 57 + col0 FROM tab2
----
35
53
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 37 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT + 60 DIV MIN( DISTINCT + col1 ) * 25 AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3233
SELECT + 60 / MIN ( DISTINCT + col1 ) * 25 AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL + col1 - col0 FROM tab1 AS cor0 WHERE NOT 35 + + CAST( - 90 AS SIGNED ) NOT IN ( 40 )
----

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + col1 - col0 FROM tab1 AS cor0 WHERE NOT 35 + + CAST ( - 90 AS INTEGER ) NOT IN ( 40 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN + col1 AND col1 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 58 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 + + 23 col0 FROM tab0
----
76

query I rowsort
SELECT ALL - ( col1 ) + + col0 * + col2 FROM tab2
----
1007
2483
4283

query I rowsort
SELECT DISTINCT - - col2 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + - col1 + + 98 AS col2 FROM tab0 cor0
----
17
77
97

query I rowsort
SELECT + ( col1 ) + 41 AS col0 FROM tab2 AS cor0
----
108
118
92

query I rowsort
SELECT DISTINCT + col1 * + col1 * - - 5 FROM tab0 AS cor0
----
2205
32805
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT 92 * + COUNT( * ) * - ( MIN( ALL + col0 ) ) FROM tab2 AS cor0
----
-12696

skipif mysql # not compatible
query I rowsort label-3243
SELECT 92 * + COUNT ( * ) * - ( MIN ( ALL + col0 ) ) FROM tab2 AS cor0
----
-12696

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - + COUNT( * ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND + col2
----

query II rowsort
SELECT ALL + - col1 AS col1, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + + 23 * + + col1 FROM tab1 cor0
----
1081
115
322

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 83 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( - + 79 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) < NULL
----

query I rowsort
SELECT - 12 * col1 + col0 AS col2 FROM tab1 WHERE NOT + 6 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 86 * - col1 <> NULL
----

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT - COUNT( DISTINCT + - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - COUNT ( DISTINCT + - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - ( + 16 ) ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3256
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT COUNT( * ) + + + 84 + + 62 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
155

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT COUNT ( * ) + + + 84 + + 62 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
155

query I rowsort
SELECT ALL - 7 * col0 - - 26 FROM tab0 AS cor0
----
-583
-653
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT + - MAX( DISTINCT - - 30 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + - MAX ( DISTINCT - - 30 ) FROM tab0 AS cor0
----
-30

query I rowsort
SELECT 58 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( + col0 )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( col0 * + 83 + + - col2 ) <= 22
----
51
85
91

query I rowsort
SELECT DISTINCT 44 + col0 FROM tab2
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3263
SELECT - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT SUM( DISTINCT - 82 ) AS col2 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-3264
SELECT SUM ( DISTINCT - 82 ) AS col2 FROM tab0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 77 * + MIN( ALL col0 ) AS col2 FROM tab2
----
3542

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 77 * + MIN ( ALL col0 ) AS col2 FROM tab2
----
3542

query I rowsort
SELECT 39 * + 86 FROM tab0
----
3354
3354
3354

query II rowsort
SELECT ALL col0 AS col2, 68 FROM tab2 AS cor0
----
46
68
64
68
75
68

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE col2 <= 54
----
-46
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT + MAX( ALL - 81 ) * - 22 FROM tab0
----
1782

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT + MAX ( ALL - 81 ) * - 22 FROM tab0
----
1782

query I rowsort
SELECT - col1 * 91 AS col1 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - MAX( - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3271
SELECT - MAX ( - col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + ( MIN( + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3272
SELECT + ( MIN ( + col1 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT COUNT( * ) * + 76 + + COUNT( * ) + - + ( + 62 ) AS col0 FROM tab0 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT COUNT ( * ) * + 76 + + COUNT ( * ) + - + ( + 62 ) AS col0 FROM tab0 AS cor0
----
169

query I rowsort
SELECT DISTINCT - 49 / + - col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( 84 * - col1 - 79 )
----

query I rowsort
SELECT ALL - - 23 * 17 - + + col1 AS col2 FROM tab2 AS cor0
----
314
324
340

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NULL ) NOT IN ( + col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3277
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + CAST( + col2 AS DECIMAL ) - CAST( NULL AS SIGNED ) / col0 ) NOT IN ( 54 ) )
----

skipif mysql # not compatible
query III rowsort label-3277
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + CAST ( + col2 AS REAL ) - CAST ( NULL AS INTEGER ) / col0 ) NOT IN ( 54 ) )
----

query I rowsort
SELECT ALL 73 - - - col2 AS col0 FROM tab1 cor0
----
-23
14
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT - + COUNT( * ) - 13 AS col0, + COUNT( - 63 ) FROM tab1 cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-3279
SELECT - + COUNT ( * ) - 13 AS col0, + COUNT ( - 63 ) FROM tab1 cor0
----
-16
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 - + + col2 ) >= 80 + + col2
----

query I rowsort
SELECT + + 66 * - col0 AS col2 FROM tab2 AS cor0
----
-3036
-4224
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - 48 * - COUNT( * ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-3283
SELECT - 48 * - COUNT ( * ) FROM tab2
----
144

query I rowsort
SELECT - ( - + col1 ) * + - col1 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT 26, + 25 AS col0 FROM tab1
----
26
25
26
25
26
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / col1 - + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col0, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL MIN( DISTINCT - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab2
----
-75

query I rowsort
SELECT + 11 * - ( + 63 ) * - col2 + 97 + col1 AS col1 FROM tab2 WHERE NOT - - 44 = col0
----
16087
27894
40358

query II rowsort
SELECT ALL col0 AS col1, col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col0 * ( col1 )
----

query I rowsort
SELECT ALL 70 * + - 35 + + - col2 * - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1277
1436
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT + + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) <= - col0 + + 85
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) <= - col0 + + 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT - 65 DIV + 77 * col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 65 / + 77 * col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 NOT IN ( + 99, + 0 + - col2 * - - ( - + ( col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 + - col2 AS col1, + col2 FROM tab2 AS cor0
----
28
23
37
40
9
58

query I rowsort
SELECT ALL - - 79 AS col1 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT DISTINCT COUNT( * ) col1, 40 AS col2 FROM tab2 cor0 WHERE col2 > ( - - 68 / + 7 )
----
3
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3300
SELECT DISTINCT COUNT ( * ) col1, 40 AS col2 FROM tab2 cor0 WHERE col2 > ( - - 68 / + 7 )
----
3
40

query I rowsort
SELECT + 46 AS col1 FROM tab0 AS cor0 WHERE + 41 NOT BETWEEN + + col2 + + ( + 94 ) AND - - 31
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab0 WHERE col1 * - col2 * - col1 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 43 ) + - - col1 col0, 1 FROM tab2
----
24
1
34
1
8
1

query I rowsort
SELECT DISTINCT 26 * + + col1 * - col0 FROM tab0
----
-2522
-31590
-47502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL + CAST( NULL AS SIGNED ) + 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + CAST ( NULL AS INTEGER ) + 32 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 8 BETWEEN - + col2 + - col1 * - col1 * - 96 * + col1 + + + col2 / 28 AND 76 * - ( + col0 ) + 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT ALL - CAST( NULL AS SIGNED ) * - 69 * - col0 * 23 * + - col1 / 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - CAST ( NULL AS INTEGER ) * - 69 * - col0 * 23 * + - col1 / 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 96 * - 98 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 / + col1 / + + col1 + + - 37 + ( + ( 47 ) ) * - col1 NOT BETWEEN col1 * + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + 64 + - col1 AS col1 FROM tab0
----
-32
-34
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT 10 DIV + + col0 + + col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3311
SELECT 10 / + + col0 + + col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT - col1 + - 53 * + - col1 FROM tab1
----
2444
260
728

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT 36 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT - 92 * - SUM( 46 ) FROM tab0 AS cor0
----
12696

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - 92 * - SUM ( 46 ) FROM tab0 AS cor0
----
12696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT ( + - 97 ) DIV ( 54 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT ( + - 97 ) / ( 54 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2

query II rowsort
SELECT - col1, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL - - 75 * + ( - ( - col1 ) ) + + 27 FROM tab0 AS cor0
----
102
1602
6102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT DISTINCT - + 79 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - + 79 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - ( + + 16 ) * + - 47 AS col1 FROM tab2 AS cor0
----
752
752
752

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 74 + - col1 * + + col2 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + col1, + ( + + col0 ) FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL col2 - ( - ( 24 ) ) AS col1 FROM tab2 WHERE NOT ( 72 + + ( - col2 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 * - 38 * + + 34 FROM tab0
----
-117572
-117572
-117572

query II rowsort
SELECT ALL - col0 * - 83 AS col2, col2 AS col0 FROM tab1
----
4233
96
7055
59
7553
68

query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 + - col1 AS col2 FROM tab0
----
0
420
6480

query I rowsort
SELECT 40 * 80 AS col0 FROM tab1
----
3200
3200
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL = + col0
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL = + col0
----
0

query I rowsort
SELECT ALL + + 58 AS col2 FROM tab2 cor0 WHERE col2 * + 11 / ( + 24 ) >= + - col1 / col1
----
58
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 / + + col1 + + - col1 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT 68 DIV + col2 + - 84 FROM tab0
----
-78
-83
-84

skipif mysql # not compatible
query I rowsort label-3333
SELECT 68 / + col2 + - 84 FROM tab0
----
-78
-83
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NULL < - ( + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL < - ( + 28 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT ALL + - ( - MAX( - - 91 ) ) AS col2, + 16 FROM tab0 AS cor0
----
91
16

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL + - ( - MAX ( - - 91 ) ) AS col2, + 16 FROM tab0 AS cor0
----
91
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 58 AS col1, - col1 col0 FROM tab2 AS cor0
----
-58
-51
-58
-67
-58
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 94 AS col0, col0 * - - col0 * + + col2 AS col2 FROM tab1 AS cor0
----
94
249696
94
426275
94
563108

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, 97, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3342
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3343
SELECT - CAST( + + AVG ( ALL - col1 ) AS SIGNED ), - 32 AS col2 FROM tab0 AS cor0 WHERE ( ( 32 IS NOT NULL ) )
----
34
-32

skipif mysql # not compatible
query II rowsort label-3343
SELECT - CAST ( + + AVG ( ALL - col1 ) AS INTEGER ), - 32 AS col2 FROM tab0 AS cor0 WHERE ( ( 32 IS NOT NULL ) )
----
34
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT - 39 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - 39 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT DISTINCT + 46 AS col1, MAX( ALL col1 ) * ( + + MIN( DISTINCT + + 91 ) ) FROM tab0 AS cor0
----
46
7371

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT + 46 AS col1, MAX ( ALL col1 ) * ( + + MIN ( DISTINCT + + 91 ) ) FROM tab0 AS cor0
----
46
7371

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT col0 DIV + 87 - - col2 + + col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-3347
SELECT col0 / + 87 - - col2 + + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT col2 * + + 11 + - + col0 FROM tab2 WHERE + col0 / + - CAST( NULL AS SIGNED ) * - - col1 <= 32
----

skipif mysql # not compatible
query I rowsort label-3348
SELECT col2 * + + 11 + - + col0 FROM tab2 WHERE + col0 / + - CAST ( NULL AS INTEGER ) * - - col1 <= 32
----

query I rowsort
SELECT col0 - - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 98 + + 47 + - col1 FROM tab2
----
68
78
94

query I rowsort
SELECT DISTINCT + col1 + - 4 FROM tab1
----
1
10
43

query I rowsort
SELECT ALL col2 - - + 38 - + 76 - - + 90 + + 93 AS col1 FROM tab2
----
168
185
203

query II rowsort
SELECT col1 + col0, + 92 AS col0 FROM tab2
----
141
92
142
92
97
92

query I rowsort
SELECT DISTINCT col1 * - - 46 + + + col1 FROM tab0
----
3807
47
987

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3355
SELECT CAST( NULL AS DECIMAL ) + + col2 / 82 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT CAST ( NULL AS REAL ) + + col2 / 82 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + + col2 < - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3357
SELECT + col0 + - col1 + + col2 * CAST( - col2 AS SIGNED ) AS col0, + col2 * col2 AS col1 FROM tab1
----
-3401
3481
-4580
4624
-9179
9216

skipif mysql # not compatible
query II rowsort label-3357
SELECT + col0 + - col1 + + col2 * CAST ( - col2 AS INTEGER ) AS col0, + col2 * col2 AS col1 FROM tab1
----
-3401
3481
-4580
4624
-9179
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col2 col1 FROM tab0
----
-1
-53
36

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - MAX( + + 18 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3360
SELECT - MAX ( + + 18 ) FROM tab0
----
-18

query I rowsort
SELECT ALL + col0 - + col1 + + col0 AS col2 FROM tab0
----
-51
153
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0 WHERE NOT 85 NOT BETWEEN - - col0 - - + col2 + + col1 + - 59 * + - 96 + - col2 - - col1 * col0 AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0 WHERE NOT 85 NOT BETWEEN - - col0 - - + col2 + + col1 + - 59 * + - 96 + - col2 - - col1 * col0 AND ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 2 + + 84 + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 2 + + 84 + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT CAST( + + 46 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT ( + 28 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3364
SELECT CAST ( + + 46 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT ( + 28 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT 6 DIV + col1 col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3365
SELECT DISTINCT 6 / + col1 col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3366
SELECT DISTINCT + col2 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2 * CAST( NULL AS DECIMAL ) * CAST( - col0 AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + col2 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2 * CAST ( NULL AS REAL ) * CAST ( - col0 AS INTEGER ) + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab2 AS cor0
----
41
41
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, col0 col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - col0 * + + col2 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT col0 * - + 97, - col2 AS col2 FROM tab2
----
-4462
-23
-6208
-40
-7275
-58

query II rowsort
SELECT ALL col0 * 11, + 12 AS col0 FROM tab1
----
1001
12
561
12
935
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT - + 62 FROM tab2 cor0
----
-62
-62
-62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NULL OR ( col0 ) * + 85 + + + col2 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL ( + + SUM( + col2 ) ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL ( + + SUM ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 51 ) col1, col1 col1 FROM tab0 AS cor0
----
-51
1
-51
21
-51
81

query I rowsort
SELECT - col0 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-102
-170
-182

query II rowsort
SELECT + col0 + + 1, 41 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
52
588
86
210
92
1974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 84 * ( col1 ) col1 FROM tab1 AS cor0
----
-35700
-359268
-59976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3385
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
3

query I rowsort
SELECT DISTINCT + + col1 * + - col2 * col1 + - ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-301806
-3969
-98

query I rowsort
SELECT - - col0 + + col2 * 66 AS col0 FROM tab0 AS cor0
----
3117
6631
747

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ALL 61 DIV + col0 + 85 + + 64 * - + col0 + 23 * + ( ( - col1 ) ) FROM tab0 WHERE NOT col1 = + + 17 * - col0
----
-2734
-5966
-6146

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL 61 / + col0 + 85 + + 64 * - + col0 + 23 * + ( ( - col1 ) ) FROM tab0 WHERE NOT col1 = + + 17 * - col0
----
-2734
-5966
-6146

query I rowsort
SELECT ALL col0 * + 17 * 23 + + 28 AS col0 FROM tab2
----
18014
25052
29353

query III rowsort
SELECT * FROM tab1 WHERE + 82 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 83 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * col0 - - + col0 / col1 col2 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3393
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT COUNT( * ) - - ( - ( - 61 ) ) DIV 37 AS col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( * ) - - ( - ( - 61 ) ) / 37 AS col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 18 - + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3397
SELECT * FROM tab2 AS cor0 WHERE NOT - 7 + - - ( + col0 ) - col1 * - + CAST( 8 AS SIGNED ) - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3397
SELECT * FROM tab2 AS cor0 WHERE NOT - 7 + - - ( + col0 ) - col1 * - + CAST ( 8 AS INTEGER ) - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + SUM( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3398
SELECT + SUM ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT 80 * col0 AS col0 FROM tab0 AS cor0
----
1200
6960
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col2 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + - col0 * - col1 AS col1, 93 col1 FROM tab1
----
201019
93
2125
93
9996
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL 33 * - SUM( + 65 ) AS col0 FROM tab1
----
-6435

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL 33 * - SUM ( + 65 ) AS col0 FROM tab1
----
-6435

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * + 1 col1 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT + col1 * - + col1 + - 95, col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2696
23
-4584
58
-6024
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL COUNT( * ) * + 76 FROM tab2 cor0
----
228

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL COUNT ( * ) * + 76 FROM tab2 cor0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT DISTINCT + 44 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + 44 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT ALL col2 * + + CAST( - 93 AS SIGNED ) col2 FROM tab1 cor0
----
-5487
-6324
-8928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3411
SELECT ALL col2 * + + CAST ( - 93 AS INTEGER ) col2 FROM tab1 cor0
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT MAX( ALL + 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-3412
SELECT MAX ( ALL + 84 ) FROM tab1
----
84

query II rowsort
SELECT col2 * + 64, - col0 * + - ( col1 ) - + 94 AS col1 FROM tab0
----
3008
1121
6336
3
640
1733

query II rowsort
SELECT - col0, col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query II rowsort label-3415
SELECT DISTINCT + col0 AS col2, + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-3415
SELECT DISTINCT + col0 AS col2, + col1 / col0 AS col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT DISTINCT - - col1 * 86 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - + 30 - COUNT( * ) * COUNT( ALL + + col2 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3417
SELECT - + 30 - COUNT ( * ) * COUNT ( ALL + + col2 ) FROM tab2 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT + 23 - - 92 DIV 41 FROM tab1
----
25
25
25

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 23 - - 92 / 41 FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT - col1 + - 85 + + col1 * + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - col1 + - 85 + + col1 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3420
SELECT DISTINCT * FROM tab1 WHERE col2 * + CAST( NULL AS SIGNED ) * - col0 * + - col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-3420
SELECT DISTINCT * FROM tab1 WHERE col2 * + CAST ( NULL AS INTEGER ) * - col0 * + - col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3421
SELECT ALL + CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col1, ( COUNT( ALL - col0 ) ) AS col2, - - COUNT( * ) col0 FROM tab1
----
NULL
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3421
SELECT ALL + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col1, ( COUNT ( ALL - col0 ) ) AS col2, - - COUNT ( * ) col0 FROM tab1
----
NULL
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + + COUNT( * ) - - 11 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + + COUNT ( * ) - - 11 FROM tab2 AS cor0
----
14

query II rowsort
SELECT + 2 * - 54 AS col2, col0 + col0 FROM tab0 AS cor0
----
-108
174
-108
194
-108
30

query I rowsort
SELECT - 57 * + + col1 FROM tab1
----
-2679
-285
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT - + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT - + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + SUM( 82 ) AS col2 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3427
SELECT + SUM ( 82 ) AS col2 FROM tab2 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - MAX( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT - MAX ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
NULL

query II rowsort
SELECT - 78, col2 * - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-78
-705
-78
-870
-78
-9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 = + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 7 * 78 * col1 * + col0 FROM tab1 AS cor0
----
232050
2335242
389844

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + COUNT( * ) + - 57 AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3432
SELECT + COUNT ( * ) + - 57 AS col1 FROM tab2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3433
SELECT DISTINCT AVG ( + CAST( NULL AS DECIMAL ) ) AS col0, COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3433
SELECT DISTINCT AVG ( + CAST ( NULL AS REAL ) ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 28 + + col2 BETWEEN - 10 AND - 16 * + - col0
----

query I rowsort
SELECT - ( - + col1 ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3438
SELECT + SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + 65 ) FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 >= - - 14 * + col2 - - - ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT DISTINCT 89 DIV 83 * - col2 - + col2 * ( - 64 ) FROM tab1
----
3717
4284
6048

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT 89 / 83 * - col2 - + col2 * ( - 64 ) FROM tab1
----
3717
4284
6048

query I rowsort
SELECT - + 21 + - col1 * - col2 - + 83 FROM tab2 AS cor0
----
1069
2976
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT - COUNT( * ) - - - 68 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - COUNT ( * ) - - - 68 FROM tab0 AS cor0
----
-71

query II rowsort
SELECT + 56 * - - col1 + 5 AS col0, 71 AS col2 FROM tab0 AS cor0
----
1181
71
4541
71
61
71

query I rowsort
SELECT - col2 + - - 79 AS col1 FROM tab1 AS cor0
----
-17
11
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT DISTINCT col2 * col2 + 94 DIV col2 * + col0 AS col1 FROM tab2 AS cor0
----
1728
3439
713

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT col2 * col2 + 94 / col2 * + col0 AS col1 FROM tab2 AS cor0
----
1728
3439
713

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - 37 + - COUNT( * ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3448
SELECT - 37 + - COUNT ( * ) FROM tab1 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT DISTINCT - ( + - 61 ) DIV + 8 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - ( + - 61 ) / + 8 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT + 46 * MAX( - + 23 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1061

skipif mysql # not compatible
query I rowsort label-3450
SELECT + 46 * MAX ( - + 23 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + ( - 55 ) col1 FROM tab1 AS cor0
----
-2585
-275
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT + + col1 DIV - + 22 AS col0 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT + + col1 / - + 22 AS col0 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT ALL - 94 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - 94 / + + COUNT ( * ) FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT - col2 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT - col2 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL ( - + COUNT( * ) ) * 44 AS col0 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL ( - + COUNT ( * ) ) * 44 AS col0 FROM tab2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL 20 + + COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL 20 + + COUNT ( * ) FROM tab1
----
23

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 92 * + - col2 AS col0 FROM tab0
----
-4324
-9108
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT + + CAST( NULL AS SIGNED ) * col1 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-3460
SELECT + + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT + MIN( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT + MIN ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + MAX( ALL - + 40 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + MAX ( ALL - + 40 ) FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ( - + ( + + COUNT( + - 94 ) ) ) * 72 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT ( - + ( + + COUNT ( + - 94 ) ) ) * 72 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab1 AS cor0 WHERE NOT col0 + + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT - + 90 DIV + col0 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - + 90 / + col0 AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + ( - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3466
SELECT + ( - COUNT ( * ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col2 - - - 93
----

query I rowsort
SELECT DISTINCT 26 + col0 FROM tab0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT SUM( ALL + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT SUM ( ALL + col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3470
SELECT - col1 * - + 24 + + col0 AS col0 FROM tab1 WHERE - col2 <= - col2 * - CAST( + 87 AS DECIMAL )
----
1219
205
387

skipif mysql # not compatible
query I rowsort label-3470
SELECT - col1 * - + 24 + + col0 AS col0 FROM tab1 WHERE - col2 <= - col2 * - CAST ( + 87 AS REAL )
----
1219
205
387

query I rowsort
SELECT + 6 * + + col0 FROM tab0
----
522
582
90

query I rowsort
SELECT - col0 + + col1 * col2 * + col2 FROM tab0
----
178914
2013
9704

query I rowsort
SELECT ALL + col2 * ( col0 ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT - + SUM( DISTINCT - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - + SUM ( DISTINCT - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT - + 28 + + + 57 * - col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> + col1 / - ( - - 53 ) )
----

query I rowsort
SELECT + 34 + 22 FROM tab1 cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - - 0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 44 + col2 FROM tab2
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT ( - + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL - col1 - + col1 * col1 + + col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3481
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3482
SELECT ALL + - 84 * 49, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-4116
-3

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL + - 84 * 49, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-4116
-3

query I rowsort
SELECT DISTINCT + + 40 FROM tab2 cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT ALL - + CAST( + col2 AS SIGNED ) - + - ( - col0 ) FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - + CAST ( + col2 AS INTEGER ) - + - ( - col0 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - COUNT( - + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - COUNT ( - + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL + - 82 AS col2 FROM tab0 WHERE NOT + 38 IN ( - 52, + CAST( NULL AS SIGNED ) / - col2, - - ( + col1 ), + col1, col2, - - 75 * col1 / - 26, - col2 * - + col1 )
----

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + - 82 AS col2 FROM tab0 WHERE NOT + 38 IN ( - 52, + CAST ( NULL AS INTEGER ) / - col2, - - ( + col1 ), + col1, col2, - - 75 * col1 / - 26, - col2 * - + col1 )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - 65 * + col2 AS col0 FROM tab1
----
-3835
-4420
-6240

query II rowsort
SELECT col2, col1 * + - 62 AS col0 FROM tab2
----
23
-3162
40
-4774
58
-4154

query I rowsort
SELECT ALL col0 * + - 23 AS col1 FROM tab1
----
-1173
-1955
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT - MAX( - col0 ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - MAX ( - col0 ) AS col0 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT + COUNT( * ) AS col0, 30 AS col0 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-3493
SELECT + COUNT ( * ) AS col0, 30 AS col0 FROM tab0
----
3
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN + col0 AND col1 * - 86
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * col2 + - + ( + col0 ) + + - 94 * 91 FROM tab1 AS cor0
----
-4021
-5158
611

query II rowsort
SELECT - - 21 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
21
15
21
87
21
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT 57 + + + 13 DIV col1 FROM tab1 AS cor0
----
57
57
59

skipif mysql # not compatible
query I rowsort label-3499
SELECT 57 + + + 13 / col1 FROM tab1 AS cor0
----
57
57
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 13 + + 96, col0 AS col2 FROM tab2 AS cor0
----
83
46
83
64
83
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT ALL + - CAST( NULL AS SIGNED ) * + col2 - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col2 - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + 7 * - col1 + - col0 AS col1 FROM tab2
----
-403
-544
-603

query III rowsort
SELECT * FROM tab2 WHERE + col1 + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 54 / - + col2 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col0 * - + 55 * - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 IS NULL
----

query I rowsort
SELECT DISTINCT - - 16 + - col1 FROM tab1 AS cor0
----
-31
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - COUNT( * ) - + + MIN( ALL + 98 ) AS col2 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-3508
SELECT - COUNT ( * ) - + + MIN ( ALL + 98 ) AS col2 FROM tab0 AS cor0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT DISTINCT - MIN( - 21 ) FROM tab1 WHERE + - 64 * - 78 / - + 36 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT - MIN ( - 21 ) FROM tab1 WHERE + - 64 * - 78 / - + 36 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT 90 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-810

skipif mysql # not compatible
query I rowsort label-3511
SELECT 90 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL + COUNT( * ) + + + 55 col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT ALL + COUNT ( * ) + + + 55 col0 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, + col0 AS col1 FROM tab1 cor0
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 51 col0 FROM tab0 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3516
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2, + MAX( ALL - col1 ) FROM tab2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-3516
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2, + MAX ( ALL - col1 ) FROM tab2
----
NULL
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col2 AS col1, col1 col1 FROM tab0
----
100
21
2209
81
9801
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT col1 DIV col2 DIV 24 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT col1 / col2 / 24 AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 * + 20 * + 62 AS col2 FROM tab2
----
28520
49600
71920

query I rowsort
SELECT DISTINCT + col1 * - col2 * + 91 * + + col0 AS col2 FROM tab1
----
-2281825
-26466076
-6237504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3521
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 43 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3521
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 43 * + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT MIN( DISTINCT - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3522
SELECT MIN ( DISTINCT - - col2 ) FROM tab0
----
10

query I rowsort
SELECT + 94 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT - col1 DIV + 64 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT - col1 / + 64 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 - - col1 + col1, 99 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( - col2 ) + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, col1 * col0 + + 67 * + 82 FROM tab1 AS cor0
----
51
6208
85
5919
91
9771

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + MAX( - - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3528
SELECT + MAX ( - - col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT - + MIN( - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT - + MIN ( - + col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL 5 AS col0 FROM tab0 cor0
----
5
5
5

query II rowsort
SELECT - col2, - 77 AS col2 FROM tab1 AS cor0
----
-59
-77
-68
-77
-96
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT DISTINCT + col1 * - - CAST( NULL AS SIGNED ) * - 49 + - col2 * - 60 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + col1 * - - CAST ( NULL AS INTEGER ) * - 49 + - col2 * - 60 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab1
----
-91

query I rowsort
SELECT col1 + - col2 * + + col1 AS col1 FROM tab0
----
-189
-3726
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3535
SELECT CAST( NULL AS DECIMAL ) + + 29 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( NULL AS REAL ) + + 29 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3536
SELECT - - col0 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT - - col0 + + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - - COUNT( * ) + + 36 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3537
SELECT - - COUNT ( * ) + + 36 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3538
SELECT ALL + CAST( col0 AS SIGNED ) AS col1, + col2 FROM tab0 cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-3538
SELECT ALL + CAST ( col0 AS INTEGER ) AS col1, + col2 FROM tab0 cor0
----
15
47
87
10
97
99

query II rowsort
SELECT DISTINCT 8, - ( - col1 ) AS col1 FROM tab1 cor0
----
8
14
8
47
8
5

query I rowsort
SELECT ALL + ( - 7 ) FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL + col2 + - + 9 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT ALL + - col2 + + - col1 * - 95 AS col2 FROM tab1 AS cor0
----
1234
416
4397

query I rowsort
SELECT - col0 * 46 FROM tab1
----
-2346
-3910
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT SUM( DISTINCT + 74 ) col0 FROM tab0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3545
SELECT SUM ( DISTINCT + 74 ) col0 FROM tab0
----
74

query I rowsort
SELECT ALL 39 + 90 FROM tab0
----
129
129
129

query II rowsort
SELECT DISTINCT - 87 AS col2, + 26 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-87
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT DISTINCT - CAST( + - 49 AS SIGNED ) FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - CAST ( + - 49 AS INTEGER ) FROM tab0 cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT DISTINCT CAST( + - ( + ( - + col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT CAST ( + - ( + ( - + col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT + SUM( 99 ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3550
SELECT + SUM ( 99 ) FROM tab1 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 85 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3552
SELECT ALL * FROM tab1 AS cor0 WHERE - 66 * CAST( 70 AS SIGNED ) <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3552
SELECT ALL * FROM tab1 AS cor0 WHERE - 66 * CAST ( 70 AS INTEGER ) <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 <= + - 29 * + 42 + + col2 * + col1 - col2
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col1 * + ( + col1 ) * + - col1 FROM tab1
----
-103823
-125
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - SUM( + col2 ) FROM tab0 WHERE NOT - col1 >= 56
----
-156

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - SUM ( + col2 ) FROM tab0 WHERE NOT - col1 >= 56
----
-156

query I rowsort
SELECT + col0 * - 77 AS col1 FROM tab2
----
-3542
-4928
-5775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - 66 FROM tab2
----
-51
-66
-67
-66
-77
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3558
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - - col1 - CAST( NULL AS SIGNED ) / 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3558
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - - col1 - CAST ( NULL AS INTEGER ) / 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - 83 AS col2 FROM tab0 AS cor0
----
1743
6723
83

query I rowsort
SELECT - + col2 * - + col2 + + col2 FROM tab1 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - 68 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT + + 10 DIV + col2 + - 36 FROM tab0 AS cor0
----
-35
-36
-36

skipif mysql # not compatible
query I rowsort label-3562
SELECT + + 10 / + col2 + - 36 FROM tab0 AS cor0
----
-35
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT COUNT( * ) * 90 + MIN( CAST( NULL AS SIGNED ) ) * ( - COUNT( * ) ) - + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT COUNT ( * ) * 90 + MIN ( CAST ( NULL AS INTEGER ) ) * ( - COUNT ( * ) ) - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * + col0 AS col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT - 61 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 61 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL 30 + - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL 30 + - COUNT ( * ) FROM tab1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3569
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col2 * CAST( ( + col1 ) AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3569
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col2 * CAST ( ( + col1 ) AS INTEGER ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 56 )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + col2 + + + 50 AS col0 FROM tab2
----
119
154
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT - MAX( + col0 ) - + + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-94

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - MAX ( + col0 ) - + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-94

query I rowsort
SELECT DISTINCT col0 + + + 17 FROM tab1
----
102
108
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT - + CAST( NULL AS SIGNED ) - - MIN( + + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT - + CAST ( NULL AS INTEGER ) - - MIN ( + + col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + MAX( ALL col0 ) - + - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3576
SELECT + MAX ( ALL col0 ) - + - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 92 - - COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 92 - - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - - 14 - COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - 14 - COUNT ( * ) FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT 17 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3581
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT ALL + 63 DIV - - COUNT( * ) + - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + 63 / - - COUNT ( * ) + - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
16

query I rowsort
SELECT 28 * - 80 AS col1 FROM tab0
----
-2240
-2240
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT COUNT( ALL + + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3584
SELECT COUNT ( ALL + + col1 ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 + - col0 col1 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + MIN( ALL 84 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3586
SELECT + MIN ( ALL 84 ) FROM tab1 AS cor0
----
84

query II rowsort
SELECT col1, 43 FROM tab0 AS cor0
----
1
43
21
43
81
43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT - - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT - COUNT( * ) / - 64 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT - COUNT ( * ) / - 64 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 14 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT - col1 * - + col0 DIV + + col0 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3593
SELECT - col1 * - + col0 / + + col0 AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT SUM( DISTINCT + col1 ) AS col2, - COUNT( * ) AS col0 FROM tab0
----
103
-3

skipif mysql # not compatible
query II rowsort label-3594
SELECT SUM ( DISTINCT + col1 ) AS col2, - COUNT ( * ) AS col0 FROM tab0
----
103
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT - + col2 * 7 DIV + - 59 AS col2 FROM tab0 AS cor0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-3595
SELECT - + col2 * 7 / + - 59 AS col2 FROM tab0 AS cor0
----
1
11
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT + 9 + + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3596
SELECT + 9 + + COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT col2 + - 82 + + - 48 * col2 - + - col0 FROM tab2
----
-1117
-1898
-2733

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 3 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
-3
-3
-3

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col0 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 + - - col0 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col0 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - - col2 * + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT col1 + + col2 + + - col0 * 69 + + col1 + + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 65 <= + 77
----

query I rowsort
SELECT DISTINCT col0 * + 60 * + - ( - 40 ) AS col2 FROM tab1 cor0
----
122400
204000
218400

query I rowsort
SELECT ALL + + col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3607
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( - col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3607
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( - col0 AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col1 col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT CAST( + col0 AS SIGNED ) + - + col1 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3609
SELECT CAST ( + col0 AS INTEGER ) + - + col1 FROM tab0
----
-66
66
96

query II rowsort
SELECT ALL col1 + col1, col2 FROM tab1
----
10
59
28
96
94
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT ALL - col2 - - + CAST( - col1 AS SIGNED ) FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - col2 - - + CAST ( - col1 AS INTEGER ) FROM tab2
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + 94 AS col2, - col1 col0 FROM tab0
----
104
-21
141
-81
193
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3614
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + ( CAST( NULL AS SIGNED ) ) NOT IN ( - 84, CAST( NULL AS SIGNED ), col0 * - col0, - ( 50 ) * 72 )
----

skipif mysql # not compatible
query III rowsort label-3614
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + ( CAST ( NULL AS INTEGER ) ) NOT IN ( - 84, CAST ( NULL AS INTEGER ), col0 * - col0, - ( 50 ) * 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( 93 ) col1, + col1 FROM tab1 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3616
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND CAST( NULL AS SIGNED ) * - + col0
----

skipif mysql # not compatible
query III rowsort label-3616
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND CAST ( NULL AS INTEGER ) * - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 BETWEEN + 80 + - 87 AND + col2
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3618
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 18 * + col2 FROM tab1
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3620
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col1 NOT BETWEEN NULL AND + col2 + col0 * + col2 * - col0 * + 78 * + col2
----

skipif mysql # not compatible
query III rowsort label-3620
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col1 NOT BETWEEN NULL AND + col2 + col0 * + col2 * - col0 * + 78 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT MAX( - col2 ) FROM tab0 AS cor0 WHERE + col1 * + + ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT MAX ( - col2 ) FROM tab0 AS cor0 WHERE + col1 * + + ( col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT - COUNT( ALL + 88 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - COUNT ( ALL + 88 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT SUM( DISTINCT 79 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3623
SELECT SUM ( DISTINCT 79 ) FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT + MAX( DISTINCT ( + + 70 ) ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + MAX ( DISTINCT ( + + 70 ) ) FROM tab2 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT ALL - 81 DIV col1 AS col0 FROM tab0
----
-1
-3
-81

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - 81 / col1 AS col0 FROM tab0
----
-1
-3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + + COUNT( * ) FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
0

query I rowsort
SELECT 46 * col0 * + col0 AS col2 FROM tab1
----
119646
332350
380926

query II rowsort
SELECT + col2 AS col0, col2 + - col0 FROM tab1
----
59
-26
68
-23
96
45

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col0 ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3630
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1, 8 FROM tab0
----
3
8

skipif mysql # not compatible
query II rowsort label-3630
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1, 8 FROM tab0
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - COUNT( - + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3631
SELECT - COUNT ( - + col2 ) FROM tab1
----
-3

query II rowsort
SELECT ALL 74 AS col1, - col2 FROM tab0
----
74
-10
74
-47
74
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT DISTINCT 76 AS col0, + MIN( DISTINCT + col0 ) AS col2 FROM tab0 WHERE NOT - + 74 IS NOT NULL
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT 76 AS col0, + MIN ( DISTINCT + col0 ) AS col2 FROM tab0 WHERE NOT - + 74 IS NOT NULL
----
76
NULL

query I rowsort
SELECT ALL + ( 92 ) AS col0 FROM tab2
----
92
92
92

query II rowsort
SELECT DISTINCT col1, 75 AS col1 FROM tab2
----
51
75
67
75
77
75

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) ) IN ( col1, col2 )
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT DISTINCT col1 DIV col1 * + 89 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT col1 / col1 * + 89 FROM tab0 AS cor0
----
89

query II rowsort
SELECT - 7 AS col2, col1 * - + col1 AS col1 FROM tab2 AS cor0
----
-7
-2601
-7
-4489
-7
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT COUNT( * ) - - + 87 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-3639
SELECT COUNT ( * ) - - + 87 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 21 - - 20 * - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3641
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL + 77 * - col2 AS col1, - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-4543
-85
-5236
-91
-7392
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT 93 * + MIN( - col1 ) - - COUNT( * ) + - 61 FROM tab1 AS cor0
----
-4429

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT 93 * + MIN ( - col1 ) - - COUNT ( * ) + - 61 FROM tab1 AS cor0
----
-4429

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 85 < - 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT ( CAST( NULL AS SIGNED ) ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT ( CAST ( NULL AS INTEGER ) ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 17 + + - 45 FROM tab0 AS cor0
----
-62
-62
-62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 64 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL 50 + + - COUNT( * ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL 50 + + - COUNT ( * ) AS col1 FROM tab2
----
47

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col0 NOT BETWEEN NULL AND col2 )
----

query I rowsort
SELECT ALL col1 * - + ( 95 ) - + col0 FROM tab0
----
-192
-2082
-7710

query II rowsort
SELECT + col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT ( - CAST( col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3653
SELECT ( - CAST ( col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT 96 <= + col0
----
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT MIN( + 86 ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT MIN ( + 86 ) AS col0 FROM tab0
----
86

query III rowsort
SELECT * FROM tab2 WHERE 86 * ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * col1 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + 31 > ( NULL )
----

query I rowsort
SELECT 54 + + 87 * + col1 AS col1 FROM tab2 WHERE + col1 / col2 = ( + col0 * 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT - col2 + 29 DIV 39 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3660
SELECT - col2 + 29 / 39 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + col0 + 54 AS col0 FROM tab2
----
100
118
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + SUM( col0 ) AS col0 FROM tab2 WHERE 54 > ( 89 * - col2 + - col1 )
----
185

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + SUM ( col0 ) AS col0 FROM tab2 WHERE 54 > ( 89 * - col2 + - col1 )
----
185

query I rowsort
SELECT - 46 + + col2 FROM tab0
----
-36
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT COUNT( + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3664
SELECT COUNT ( + col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 56 FROM tab2 WHERE col1 - col2 IS NOT NULL
----
56

query I rowsort
SELECT - col0 + - 9 AS col1 FROM tab1
----
-100
-60
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3667
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( 38 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3667
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( 38 AS INTEGER ) ) = NULL
----

query I rowsort
SELECT + 35 + - col1 * - col2 FROM tab2
----
1208
3115
3921

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT SUM( DISTINCT 69 ) + + COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT SUM ( DISTINCT 69 ) + + COUNT ( * ) FROM tab2
----
72

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + 31 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT col0 * 96 IS NOT NULL
----

query I rowsort
SELECT - 49 + col1 * + col1 AS col1 FROM tab1
----
-24
147
2160

query I rowsort
SELECT ALL + 63 + - col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 26 + - col1 FROM tab0
----
-55
25
5

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + COUNT( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + COUNT ( col1 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * 37 col2 FROM tab0 AS cor0 WHERE col2 <> - 58 + 6
----
2553
2553
2553

query I rowsort
SELECT DISTINCT ( - 61 ) * + col0 FROM tab2 AS cor0 WHERE NULL IN ( - 74 + 80 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3680
SELECT CAST( - col1 AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE 74 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3680
SELECT CAST ( - col1 AS REAL ) AS col0 FROM tab0 AS cor0 WHERE 74 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE - 41 >= + ( col0 )
----

query I rowsort
SELECT + ( 37 ) + - col1 AS col1 FROM tab2 AS cor0
----
-14
-30
-40

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT SUM( + 57 ) AS col0 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-3684
SELECT SUM ( + 57 ) AS col0 FROM tab0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL - COUNT( * ) + + COUNT( DISTINCT 29 + col0 ) * - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - COUNT ( * ) + + COUNT ( DISTINCT 29 + col0 ) * - COUNT ( * ) AS col0 FROM tab0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - 23 * - ( 18 DIV + col2 ) + + 84 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - 23 * - ( 18 / + col2 ) + + 84 FROM tab2
----
84

query I rowsort
SELECT DISTINCT - ( - col2 ) + - 6 FROM tab2
----
17
34
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT DISTINCT - - 68 - + col0 DIV 86 FROM tab0 cor0
----
67
68

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - - 68 - + col0 / 86 FROM tab0 cor0
----
67
68

query I rowsort
SELECT ALL + 56 - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-2545
-4433
-5873

query I rowsort
SELECT ALL - - 6 AS col1 FROM tab1 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT + + COUNT( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + + COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3693
SELECT * FROM tab2 AS cor0 WHERE - col2 * - CAST( col0 AS SIGNED ) < + 71
----

skipif mysql # not compatible
query III rowsort label-3693
SELECT * FROM tab2 AS cor0 WHERE - col2 * - CAST ( col0 AS INTEGER ) < + 71
----

query I rowsort
SELECT + col1 * - 78 + + col1 FROM tab2 cor0
----
-3927
-5159
-5929

query I rowsort
SELECT col2 * + col0 + - 44 AS col0 FROM tab1 AS cor0
----
4852
4971
6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) IN ( + col1 )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) IN ( + col1 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT COUNT( ALL - col1 ) + - 48 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3697
SELECT COUNT ( ALL - col1 ) + - 48 FROM tab1
----
-45

query I rowsort
SELECT 14 + col1 + + col2 AS col0 FROM tab2
----
131
139
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT col2 + CAST( NULL AS SIGNED ) - - col1 * 48 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3699
SELECT col2 + CAST ( NULL AS INTEGER ) - - col1 * 48 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 37 + col2 + - 31 FROM tab1
----
102
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT col1 + - CAST( NULL AS SIGNED ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT col1 + - CAST ( NULL AS INTEGER ) - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - COUNT( * ) * 47 FROM tab0 WHERE NOT + col1 > + col0 * col2
----
-141

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - COUNT ( * ) * 47 FROM tab0 WHERE NOT + col1 > + col0 * col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL - MAX( DISTINCT col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT ALL + CAST( + + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + CAST ( + + col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT col1 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT col1 / + - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * 89 + 58 * col2 FROM tab2 AS cor0 WHERE NOT col2 * - 96 + col1 IS NULL
----
-2599
-3205
-4533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT DISTINCT ( 34 ) AS col2 FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT ( 34 ) AS col2 FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
34

query I rowsort
SELECT + + 89 FROM tab1 cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 * - - 83 col0 FROM tab0
----
-100845
-151641
-8051

query I rowsort
SELECT DISTINCT col2 + 32 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - + col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + MAX( - col0 ) * ( - 72 ) col0 FROM tab1
----
3672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT + MAX ( - col0 ) * ( - 72 ) col0 FROM tab1
----
3672

query I rowsort
SELECT ALL 92 * - + 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + - MAX( ALL + 1 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3714
SELECT + - MAX ( ALL + 1 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL col1 * - 5 * - col0 - + col0 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
19789
20167
9435

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + - MIN( DISTINCT - col1 ) + - + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3716
SELECT + - MIN ( DISTINCT - col1 ) + - + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT col0 + - 6 DIV + - col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3717
SELECT col0 + - 6 / + - col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT + COUNT( ALL + ( - col0 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + COUNT ( ALL + ( - col0 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col1 FROM tab0 WHERE + 58 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * col0 NOT BETWEEN + col0 AND ( 74 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + SUM( - 67 ) * COUNT( * ) * 58 col2 FROM tab0
----
-34974

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3721
SELECT + SUM ( - 67 ) * COUNT ( * ) * 58 col2 FROM tab0
----
-34974

query III rowsort
SELECT * FROM tab2 WHERE ( - 25 + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT 33 * - MIN( DISTINCT 4 ) AS col2 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-3723
SELECT 33 * - MIN ( DISTINCT 4 ) AS col2 FROM tab0
----
-132

query I rowsort
SELECT - 0 * - - 39 * - - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT + CAST( + col0 AS SIGNED ) * - 83 + + col2 AS col2 FROM tab2 AS cor0
----
-3795
-5272
-6167

skipif mysql # not compatible
query I rowsort label-3725
SELECT + CAST ( + col0 AS INTEGER ) * - 83 + + col2 AS col2 FROM tab2 AS cor0
----
-3795
-5272
-6167

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL - COUNT( * ) FROM tab1 WHERE col0 * col2 < col0
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - COUNT ( * ) FROM tab1 WHERE col0 * col2 < col0
----
0

query I rowsort
SELECT + 96 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 46 + + col0 * - 44 AND 26
----

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE + - 78 * + col2 * + col1 * - ( + col1 / col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 * + col0 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 * + col0 ) = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT + 92 + - 16 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 92 + - 16 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - + MIN( DISTINCT + - col2 ) col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3733
SELECT - + MIN ( DISTINCT + - col2 ) col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - col2 - - 52 FROM tab0 AS cor0
----
-47
42
5

query II rowsort
SELECT ALL - col0 AS col1, + 93 FROM tab1 AS cor0
----
-51
93
-85
93
-91
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT COUNT( * ) * - COUNT( 29 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3737
SELECT COUNT ( * ) * - COUNT ( 29 ) FROM tab1 cor0
----
-9

query I rowsort
SELECT - col2 * + - col0 * + ( - 88 ) AS col2 FROM tab2 AS cor0
----
-225280
-382800
-93104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 11 * ( + - col2 ) AS col2 FROM tab0
----
1
1089
21
110
81
517

query I rowsort
SELECT DISTINCT + 72 * - col2 FROM tab2
----
-1656
-2880
-4176

query III rowsort
SELECT * FROM tab2 WHERE NOT 57 * col1 * + + col1 + + - col0 NOT BETWEEN ( NULL ) AND col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT MIN( ALL - - ( 85 ) ) * - COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT ( col0 + + col0 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT MIN ( ALL - - ( 85 ) ) * - COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT ( col0 + + col0 ) <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + ( - 83 ) * - col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3744
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( + 34 * - col2 - - col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3744
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( + 34 * - col2 - - col1 * + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + 77 AS col2, + 76 FROM tab0
----
77
76
77
76
77
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - MIN( + ( 25 ) ) AS col2 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3746
SELECT - MIN ( + ( 25 ) ) AS col2 FROM tab2 AS cor0
----
-25

query II rowsort
SELECT ALL - 22, - 25 * + col0 + - col1 + + 96 AS col1 FROM tab1 AS cor0
----
-22
-1193
-22
-2034
-22
-2226

query I rowsort
SELECT ALL + - col0 * - col0 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 47 + + - col0 ) AND ( NULL )
----

query I rowsort
SELECT 32 FROM tab1 AS cor0 WHERE NOT col1 * 69 NOT BETWEEN col1 + - - col1 AND - + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT DISTINCT col1 * col0 + CAST( col0 + col0 / col0 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col2 AND + + col1 * + col2
----

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT col1 * col0 + CAST ( col0 + col0 / col0 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col2 AND + + col1 * + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3751
SELECT - col2 DIV 94 * + col1 AS col1, 55 FROM tab2
----
0
55
0
55
0
55

skipif mysql # not compatible
query II rowsort label-3751
SELECT - col2 / 94 * + col1 AS col1, 55 FROM tab2
----
0
55
0
55
0
55

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab0 cor0 WHERE NOT + col0 = - - col0 + - - col2
----
71

query I rowsort
SELECT ALL + + 65 AS col2 FROM tab0 cor0
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT - col0 DIV - ( col1 ) FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3754
SELECT - col0 / - ( col1 ) FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ( MAX( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 55 / ( - - col0 ) + + 97 + col1 / - col2 ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT ( MAX ( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 55 / ( - - col0 ) + + 97 + col1 / - col2 ) IS NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - ( + 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT COUNT( ALL + 79 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT COUNT ( ALL + 79 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3758
SELECT DISTINCT col1 + + col2 DIV + col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3758
SELECT DISTINCT col1 + + col2 / + col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 * col2 * - col2 + - + col0 > col1
----
3

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 * col2 * - col2 + - + col0 > col1
----
3

query I rowsort
SELECT ALL - 65 + col1 + + 60 * - 88 FROM tab1 AS cor0
----
-5298
-5331
-5340

query I rowsort
SELECT DISTINCT - - col1 * + 30 + col1 FROM tab0 AS cor0
----
2511
31
651

query I rowsort
SELECT DISTINCT - + ( - 59 ) * - + col0 FROM tab2 cor0
----
-2714
-3776
-4425

query I rowsort
SELECT - 28 AS col2 FROM tab0 AS cor0 WHERE ( 47 + + 72 ) BETWEEN col1 AND 94
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-12240
-14469
-7497

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 64 * + - col0 AND 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab0 WHERE + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT ALL - 22 DIV 58 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - 22 / 58 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT 54 - + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT 54 - + COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
73

query I rowsort
SELECT DISTINCT - - 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
72

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT MIN( col1 ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT MIN ( col1 ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + 31 AND col1
----

query I rowsort
SELECT ALL + 21 AS col0 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT ALL ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT 6 * - + SUM( - col0 ) FROM tab0
----
1194

skipif mysql # not compatible
query I rowsort label-3779
SELECT 6 * - + SUM ( - col0 ) FROM tab0
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT MAX( ( + 37 ) ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT MAX ( ( + 37 ) ) FROM tab0
----
37

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 * + 28 / - + ( - col1 ) * col0 * - col2 + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT - MAX( - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3782
SELECT - MAX ( - col1 ) FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 40 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT + CAST( - - 27 AS SIGNED ) col2 FROM tab0
----
27
27
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3784
SELECT + CAST ( - - 27 AS INTEGER ) col2 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT + 97 AS col0, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
97
0

skipif mysql # not compatible
query II rowsort label-3785
SELECT + 97 AS col0, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
97
0

query I rowsort
SELECT ALL 75 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
122
174
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col1, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - 65 FROM tab1 cor0
----
-65

query I rowsort
SELECT col1 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT DISTINCT + col0 + col0 * + + col2 + + - 32 AS col1, col1 AS col0 FROM tab2 AS cor0
----
1072
51
2592
77
4393
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT - + ( + 31 ) + + + 98 + + COUNT( * ) AS col1, + ( + SUM( ALL col1 ) ) FROM tab1 AS cor0
----
70
66

skipif mysql # not compatible
query II rowsort label-3791
SELECT - + ( + 31 ) + + + 98 + + COUNT ( * ) AS col1, + ( + SUM ( ALL col1 ) ) FROM tab1 AS cor0
----
70
66

query I rowsort
SELECT 37 AS col0 FROM tab2 AS cor0 WHERE 90 IS NOT NULL
----
37
37
37

query I rowsort
SELECT + col1 * col1 + + 80 AS col1 FROM tab0 AS cor0
----
521
6641
81

query I rowsort
SELECT + 7 * - + col1 + + - col2 FROM tab0
----
-106
-157
-614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT DISTINCT ( - - COUNT( + + CAST( ( + 83 ) AS SIGNED ) ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT ( - - COUNT ( + + CAST ( ( + 83 ) AS INTEGER ) ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + - + col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT col1 * - - col1 + - col2 + + - col2 AS col2 FROM tab1
----
-93
2073
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT - ( ( - + col0 ) ) * + - 83 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT - ( ( - + col0 ) ) * + - 83 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab1 WHERE ( NOT + col0 + - + col2 * - + col2 = + col0 )
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + SUM( ALL - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( col1 ) - + - ( + - 36 ) FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # DIV for integer division: 
query II rowsort label-3803
SELECT DISTINCT - col2 * - col1 col2, col1 DIV - 53 AS col1 FROM tab0 cor0
----
210
0
3807
-1
99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3803
SELECT DISTINCT - col2 * - col1 col2, col1 / - 53 AS col1 FROM tab0 cor0
----
210
0
3807
-1
99
0

query II rowsort
SELECT DISTINCT + 19 AS col1, - 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT COUNT( * ) + 51 AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3805
SELECT COUNT ( * ) + 51 AS col2 FROM tab0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT ALL - 34 DIV col2 AS col1 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - 34 / col2 AS col1 FROM tab0 AS cor0
----
-3
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT DISTINCT col1 DIV 60 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT col1 / 60 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col0 * + + 73 / + col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----

query I rowsort
SELECT - - 15 * + 80 AS col2 FROM tab0 AS cor0
----
1200
1200
1200

query II rowsort
SELECT DISTINCT col0 AS col1, - 81 + - - ( - col1 ) FROM tab1 AS cor0
----
51
-95
85
-86
91
-128

query I rowsort
SELECT DISTINCT - 61 * + col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3814
SELECT ALL + + 7 DIV + COUNT( * ) FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + + 7 / + COUNT ( * ) FROM tab0 cor0
----
2

query I rowsort
SELECT DISTINCT + - 24 AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + ( - MIN( + - 2 ) ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + ( - MIN ( + - 2 ) ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT CAST( ( + 68 ) AS SIGNED ) AS col1 FROM tab0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-3817
SELECT CAST ( ( + 68 ) AS INTEGER ) AS col1 FROM tab0
----
68
68
68

query III rowsort
SELECT * FROM tab0 WHERE NOT - 83 NOT IN ( + col1, + ( - col0 ), - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 - - col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT col0 DIV - + col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT col0 / - + col1 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT ALL col0 DIV col0 * - 23 AS col2 FROM tab1
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL col0 / col0 * - 23 AS col2 FROM tab1
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ALL + + col2 DIV - 89 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + + col2 / - 89 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3823
SELECT col0 DIV + - 80 AS col1, + col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-3823
SELECT col0 / + - 80 AS col1, + col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT + ( col1 ) DIV + - col1 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + ( col1 ) / + - col1 AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + ( - COUNT( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3825
SELECT + ( - COUNT ( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 79 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL 41 * - 38 * + ( + COUNT( * ) ) + - 1 AS col2 FROM tab2
----
-4675

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL 41 * - 38 * + ( + COUNT ( * ) ) + - 1 AS col2 FROM tab2
----
-4675

query I rowsort
SELECT 26 * - col1 + + col1 AS col1 FROM tab1
----
-1175
-125
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT CAST( + MAX( ALL + 67 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3830
SELECT CAST ( + MAX ( ALL + 67 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT + 21 * - col2 FROM tab2 AS cor0
----
-1218
-483
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT ALL - col1 DIV + 2 FROM tab2 AS cor0
----
-25
-33
-38

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - col1 / + 2 FROM tab2 AS cor0
----
-25
-33
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL - SUM( DISTINCT - - 17 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - SUM ( DISTINCT - - 17 ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT col2 * + col0 - - + col1 - + col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - col1 + 66 AS col0 FROM tab1
----
19
52
61

query I rowsort
SELECT DISTINCT col1 + + 76 FROM tab0
----
157
77
97

query III rowsort
SELECT * FROM tab1 WHERE NULL > - - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3838
SELECT - CAST( NULL AS DECIMAL ) + + 71 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT - CAST ( NULL AS REAL ) + + 71 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + 61 + - + MAX( 33 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-3839
SELECT + 61 + - + MAX ( 33 ) AS col2 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL col1 + 3 + + + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL col1 + 3 + + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 88 + - col1 AS col2 FROM tab0
----
67
7
87

query I rowsort
SELECT DISTINCT ( - 3 ) - 86 AS col0 FROM tab2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT - 27 + + - col0 * - + col0 + + + col0 * + col2 + + col0 + - col1 + - - col0 DIV - col2 AS col2 FROM tab0
----
19081
837
8470

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 27 + + - col0 * - + col0 + + + col0 * + col2 + + col0 + - col1 + - - col0 / - col2 AS col2 FROM tab0
----
19081
837
8470

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3844
SELECT DISTINCT col1 * + ( - col0 ) + CAST( NULL AS SIGNED ) AS col0, 80 DIV col2 AS col2 FROM tab2
----
NULL
1
NULL
2
NULL
3

skipif mysql # not compatible
query II rowsort label-3844
SELECT DISTINCT col1 * + ( - col0 ) + CAST ( NULL AS INTEGER ) AS col0, 80 / col2 AS col2 FROM tab2
----
NULL
1
NULL
2
NULL
3

query I rowsort
SELECT - col1 + - + col1 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3846
SELECT DISTINCT * FROM tab1 WHERE - + CAST( NULL AS DECIMAL ) + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3846
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( NULL AS REAL ) + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + col2 + + col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT - COUNT( * ) - - 9 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - COUNT ( * ) - - 9 FROM tab2 cor0
----
6

query I rowsort
SELECT 25 * + - col0 + 67 * - col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-173120
-293325
-72036

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 - + + col2 col2 FROM tab2
----
-50
-67
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + + 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + ( + + 36 ) * + - COUNT( * ) AS col1 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + ( + + 36 ) * + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-108

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 30 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col0 FROM tab1 AS cor0
----
83
83
83

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + col0 ) > NULL
----

query I rowsort
SELECT ALL + col2 * 24 AS col0 FROM tab0
----
1128
2376
240

query I rowsort
SELECT DISTINCT - col1 * + 43 FROM tab2
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT MAX( 87 ) - 49 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT MAX ( 87 ) - 49 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT AVG ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 WHERE + ( - col0 ) IS NULL
----

query I rowsort
SELECT 89 + + 41 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT DISTINCT CAST( 59 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT CAST ( 59 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + COUNT( ( + col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3868
SELECT + COUNT ( ( + col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT 45 * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT 45 * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT COUNT( * ) + + - 95 AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT COUNT ( * ) + + - 95 AS col1 FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + ( + - COUNT( * ) ) + 39 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + ( + - COUNT ( * ) ) + 39 FROM tab1
----
36

query II rowsort
SELECT + col0 + - 13 + - 49 + + col1 * - 58 AS col2, col0 + + col1 + col0 FROM tab2 WHERE col0 + + + 25 BETWEEN ( - + col0 ) AND ( col1 )
----

query I rowsort
SELECT DISTINCT 50 + col0 AS col0 FROM tab0
----
137
147
65

query II rowsort
SELECT ALL col2 AS col2, + col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - col1 - - - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT + 63 IS NOT NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT + + MAX( - - col0 ) - + + 13 AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + + MAX ( - - col0 ) - + + 13 AS col2 FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL col1 * - - col1 col1 FROM tab2 WHERE NOT ( ( NULL ) = ( - - CAST( NULL AS SIGNED ) + + 56 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3880
SELECT ALL col1 * - - col1 col1 FROM tab2 WHERE NOT ( ( NULL ) = ( - - CAST ( NULL AS INTEGER ) + + 56 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col1 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL + + 89, 8 AS col2 FROM tab0 AS cor0
----
89
8
89
8
89
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL + MAX( ALL 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + MAX ( ALL 69 ) FROM tab2 AS cor0
----
69

query II rowsort
SELECT DISTINCT - - col0 AS col2, ( - col0 ) + - - 75 FROM tab1 AS cor0
----
51
24
85
-10
91
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT ALL + 53, COUNT( * ) AS col0 FROM tab0 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-3886
SELECT ALL + 53, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
53
3

query II rowsort
SELECT + - 88, + col1 FROM tab0 AS cor0
----
-88
1
-88
21
-88
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3888
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3888
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL col0 * + - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT DISTINCT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ( + 31 ) * + COUNT( * ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3891
SELECT ( + 31 ) * + COUNT ( * ) AS col1 FROM tab2
----
93

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT - ( - 24 ) AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL + + COUNT( * ) * 72 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + + COUNT ( * ) * 72 FROM tab2 AS cor0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT ALL - col1 DIV + col1 + - col2 AS col2 FROM tab1 cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - col1 / + col1 + - col2 AS col2 FROM tab1 cor0
----
-60
-69
-97

query I rowsort
SELECT DISTINCT - 52 + + 87 + - col2 AS col2 FROM tab0 AS cor0
----
-12
-64
25

query II rowsort
SELECT ALL - col0 * 34, col2 FROM tab0 AS cor0
----
-2958
10
-3298
99
-510
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT 16 + + + COUNT( * ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT 16 + + + COUNT ( * ) AS col2 FROM tab1
----
19

query I rowsort
SELECT DISTINCT 43 + + + col1 FROM tab0
----
124
44
64

query I rowsort
SELECT DISTINCT - col2 - - + col1 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT 90 + - + 76 * - - col1 FROM tab2 cor0
----
-3786
-5002
-5762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - col0 - + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - col0 - + col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT - - MAX( DISTINCT 39 ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3903
SELECT - - MAX ( DISTINCT 39 ) AS col0 FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL - CAST( - 81 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - CAST ( - 81 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3905
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE - 65 + col1 >= 48
----

query II rowsort
SELECT DISTINCT - col2 AS col0, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - col0 * - 16 AND NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL ( col1 ) + + col1 + - - ( - 7 ) AS col2 FROM tab1
----
21
3
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT DISTINCT COUNT( * ) / - 17 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT COUNT ( * ) / - 17 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT ALL - col1 + + col2 + + - col2 + col0 * col0 DIV 30 col1 FROM tab1
----
229
235
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3911
SELECT ALL - col1 + + col2 + + - col2 + col0 * col0 / 30 col1 FROM tab1
----
229
235
72

query I rowsort
SELECT ALL 53 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - col1 * col1 + - 11 AS col0 FROM tab2 cor0 WHERE NOT - 46 = NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 AS cor0 WHERE NULL < 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT MIN( DISTINCT - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3915
SELECT MIN ( DISTINCT - col0 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + col2 + + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL + CAST( - ( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL + CAST ( - ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 42 * - - col2 AS col1 FROM tab2
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query III rowsort label-3919
SELECT ALL - 7, 45 - COUNT( * ) AS col0, - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-7
42
-3

skipif mysql # not compatible
query III rowsort label-3919
SELECT ALL - 7, 45 - COUNT ( * ) AS col0, - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-7
42
-3

query II rowsort
SELECT ALL ( 54 ) * col0 AS col2, + 0 AS col0 FROM tab1 AS cor0
----
2754
0
4590
0
4914
0

query II rowsort
SELECT col1, 45 FROM tab0 AS cor0 WHERE NOT col1 + - col1 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT - COUNT( * ) AS col2, + 63 FROM tab0 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-3922
SELECT - COUNT ( * ) AS col2, + 63 FROM tab0 AS cor0
----
-3
63

query I rowsort
SELECT ALL - 30 * - + 75 AS col0 FROM tab0 AS cor0
----
2250
2250
2250

query I rowsort
SELECT col0 + col2 - col2 * - 62 + + col0 AS col1 FROM tab2 AS cor0
----
1541
2648
3804

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col2 * - col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT MAX( ALL + - 68 ) FROM tab1 WHERE NOT - 92 * - 49 * + col0 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT MAX ( ALL + - 68 ) FROM tab1 WHERE NOT - 92 * - 49 * + col0 + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + COUNT( * ) + + ( - 86 ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-3927
SELECT + COUNT ( * ) + + ( - 86 ) FROM tab2
----
-83

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE col1 * - col2 IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL + col2, 43 + + 58 + - 64 * 7 AS col1 FROM tab0
----
10
-347
47
-347
99
-347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT DISTINCT COUNT( * ) DIV - 40 + - COUNT( * ) * + 43 AS col1 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT COUNT ( * ) / - 40 + - COUNT ( * ) * + 43 AS col1 FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT + MIN( - ( col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + MIN ( - ( col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT NULL NOT IN ( + + col2 + col2, col0, - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 77 * - + col1 NOT BETWEEN - 25 AND col2 * - col2
----

query I rowsort
SELECT - 17 * + col1 AS col0 FROM tab0 cor0
----
-1377
-17
-357

query II rowsort
SELECT ALL col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT DISTINCT + + 93 AS col1, col2 FROM tab0 AS cor0
----
93
10
93
47
93
99

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL <= 91
----

query I rowsort
SELECT ALL col0 + - - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT - 73 * MAX( col2 ) AS col1 FROM tab1 AS cor0
----
-7008

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 73 * MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT + MAX( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE - col2 - 65 * - ( - col2 ) - - - 93 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT + MAX ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE - col2 - 65 * - ( - col2 ) - - - 93 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT DISTINCT col0 DIV 34 + col1 FROM tab2
----
52
69
78

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT col0 / 34 + col1 FROM tab2
----
52
69
78

query I rowsort
SELECT col0 + + col2 * col2 FROM tab1 AS cor0
----
3566
4715
9267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col0 ) + - col1, + col2 col1 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT ALL + - COUNT( * ) DIV COUNT( * ) - - 50 * + 89 FROM tab1 AS cor0
----
4449

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + - COUNT ( * ) / COUNT ( * ) - - 50 * + 89 FROM tab1 AS cor0
----
4449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3945
SELECT DISTINCT CAST( - + 60 AS SIGNED ) * COUNT( DISTINCT + col2 ) * - COUNT( * ) + + - COUNT( * ) + + 89 AS col1 FROM tab2 AS cor0
----
626

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT CAST ( - + 60 AS INTEGER ) * COUNT ( DISTINCT + col2 ) * - COUNT ( * ) + + - COUNT ( * ) + + 89 AS col1 FROM tab2 AS cor0
----
626

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT + col0 DIV - + col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT + col0 / - + col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 * col1 = NULL
----

query I rowsort
SELECT - 14 AS col1 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT 28 * 61 AS col0 FROM tab2 AS cor0
----
1708

query I rowsort
SELECT col2 / - 28 / + + col0 * - 16 / 9 AS col0 FROM tab1 WHERE 19 * - 70 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT + + 15 FROM tab2 WHERE + 85 IS NULL
----

query I rowsort
SELECT col2 - 69 AS col2 FROM tab2
----
-11
-29
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab2
----
98

query I rowsort
SELECT ALL - ( - + 72 ) AS col0 FROM tab1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ( + + COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3956
SELECT ( + + COUNT ( * ) ) col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 / + col0 * 93 >= + 62 * + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + COUNT( * ) * + 23 + COUNT( * ) * - 46 * - 98 FROM tab0 AS cor0
----
13593

skipif mysql # not compatible
query I rowsort label-3958
SELECT + COUNT ( * ) * + 23 + COUNT ( * ) * - 46 * - 98 FROM tab0 AS cor0
----
13593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT DISTINCT - CAST( - - 83 AS SIGNED ) + - + 93 FROM tab1 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - CAST ( - - 83 AS INTEGER ) + - + 93 FROM tab1 AS cor0
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL col1 * 12 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - 49 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL col1 * 12 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - 49 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col1 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT MAX( ALL - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab0
----
-15

query I rowsort
SELECT + - col2 + + 29 AS col0 FROM tab0 AS cor0
----
-18
-70
19

query I rowsort
SELECT + - 61 + + + 32 - - - col1 FROM tab2 AS cor0
----
-106
-80
-96

query I rowsort
SELECT 38 - col2 AS col2 FROM tab2 cor0 WHERE 47 IS NOT NULL
----
-2
-20
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 65 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL + 37 + CAST( NULL AS SIGNED ) - 92 * - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + 37 + CAST ( NULL AS INTEGER ) - 92 * - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN - 30 AND NULL
----

query II rowsort
SELECT - col2, - 42 AS col2 FROM tab2
----
-23
-42
-40
-42
-58
-42

query I rowsort
SELECT - col1 - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT ALL col1 * col0 + - col1 - + - 24 + + 15 AS col2 FROM tab1 AS cor0
----
4269
459
739

query I rowsort
SELECT DISTINCT col1 - + + 17 + + + col1 AS col2 FROM tab0 cor0
----
-15
145
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND + ( ( - col1 ) )
----
14
47
5

query I rowsort
SELECT - 49 AS col1 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN col1 AND NULL
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col2 FROM tab0 AS cor0 WHERE 12 IS NULL
----

query II rowsort
SELECT DISTINCT col0, col1 + + col1 * + + 23 FROM tab1 cor0
----
51
336
85
120
91
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - + MAX( DISTINCT col0 ) AS col1 FROM tab0 cor0 WHERE + col0 - 43 + - col0 - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT - + MAX ( DISTINCT col0 ) AS col1 FROM tab0 cor0 WHERE + col0 - 43 + - col0 - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col2 - - - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col2 - - - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 65 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT - col1 * - col2 AS col0, 78 + + col1 FROM tab2
----
1173
129
3080
155
3886
145

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab2 WHERE 46 * - col0 IS NOT NULL
----
12

query I rowsort
SELECT ( - - 42 ) AS col0 FROM tab0
----
42
42
42

query I rowsort
SELECT ALL 54 * + col1 FROM tab1
----
2538
270
756

query I rowsort
SELECT DISTINCT + 77 * - col2 * 56 FROM tab2
----
-172480
-250096
-99176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT ALL + col2 * col0 + - CAST( NULL AS SIGNED ) * + 82 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + col2 * col0 + - CAST ( NULL AS INTEGER ) * + 82 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + col1 + - - col0
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 78 + - + ( + 88 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 61 * + col0 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL - ( - COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT ALL - ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( col1, col1, - - col0, - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT - col1 + + 49 * - + CAST( - col0 AS SIGNED ) + - ( - col2 ) FROM tab2 AS cor0
----
2226
3099
3666

skipif mysql # not compatible
query I rowsort label-3995
SELECT - col1 + + 49 * - + CAST ( - col0 AS INTEGER ) + - ( - col2 ) FROM tab2 AS cor0
----
2226
3099
3666

query II rowsort
SELECT ALL col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + 61 + 54 FROM tab2 AS cor0
----
115
115
115

query I rowsort
SELECT + - ( - ( - 7 ) ) + 51 AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT - SUM( col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - ( + col2 ) * 1 + col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT col0 * + 56 + - - col0 * + 56 AS col0, + col1 AS col0 FROM tab1
----
10192
47
5712
14
9520
5

query I rowsort
SELECT + ( + 75 ) FROM tab0
----
75
75
75

query II rowsort
SELECT ALL - col1 AS col2, col1 - - + col1 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
-51
102
-67
134
-77
154

query I rowsort
SELECT - 71 * col0 + - col0 AS col0 FROM tab2 WHERE - + 1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 35 * + col0 + + 90 FROM tab2
----
-1520
-2150
-2535

query I rowsort
SELECT + 62 - + col0 - - 1 FROM tab0 AS cor0
----
-24
-34
48

query I rowsort
SELECT col2 - - - 38 FROM tab0 WHERE - 49 * col1 + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - + SUM( DISTINCT 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-4008
SELECT - + SUM ( DISTINCT 90 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

query I rowsort
SELECT - 90 * + col0 * - + col1 + + 46 AS col0 FROM tab1
----
38296
384976
64306

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 12 + col1 AS col2 FROM tab2
----
63
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT + COUNT( * ) - + 89 col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4012
SELECT DISTINCT + COUNT ( * ) - + 89 col2 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - - COUNT( ALL - + 10 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4013
SELECT - - COUNT ( ALL - + 10 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - 80 AS col2, + 0 FROM tab0 AS cor0
----
-80
0
-80
0
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 31 col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab1, tab2 AS cor0
----
69

query I rowsort
SELECT 81 * - col0 AS col2 FROM tab1
----
-4131
-6885
-7371

query II rowsort
SELECT ALL - col2 * + + 89, col0 FROM tab1
----
-5251
85
-6052
91
-8544
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 37, ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT ALL - + 35 DIV - - col0 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4023
SELECT ALL - + 35 / - - col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 39 * 1 FROM tab0 cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4025
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 66 * - - CAST( + - col0 AS SIGNED ) + + - ( - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4025
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 66 * - - CAST ( + - col0 AS INTEGER ) + + - ( - col0 ) AND NULL
----

query I rowsort
SELECT + 94 * - col2 FROM tab2 cor0
----
-2162
-3760
-5452

query I rowsort
SELECT + - ( - + col2 ) * + - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT - ( - col0 ) AS col2, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab0 cor0
----
28
28
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 + col2 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL SUM( col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4031
SELECT ALL SUM ( col0 ) col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL - COUNT( * ) + - MIN( DISTINCT - + 27 ) col1 FROM tab0 cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4032
SELECT ALL - COUNT ( * ) + - MIN ( DISTINCT - + 27 ) col1 FROM tab0 cor0
----
24

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE col0 + - col0 + + col2 < NULL
----

query I rowsort
SELECT DISTINCT col1 + + 48 FROM tab0
----
129
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - COUNT( * ) + + + MIN( DISTINCT ( + col0 ) ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( * ) + + + MIN ( DISTINCT ( + col0 ) ) FROM tab0
----
12

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - - col2 * + - col1 AND + 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 + col1 col0 FROM tab1
----
107
65
74

query I rowsort
SELECT + 77 + - 36 AS col2 FROM tab1
----
41
41
41

query I rowsort
SELECT col2 + - col2 * 65 + 32 FROM tab0
----
-2976
-608
-6304

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col1 * - col1 / - - 67 / - 2
----

query I rowsort
SELECT ALL + 22 + + col2 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT + - ( + - 17 ) FROM tab1 AS cor0 WHERE NULL < - col0 * + col0 * col1
----

query II rowsort
SELECT ALL col1 AS col1, 24 AS col2 FROM tab2 cor0
----
51
24
67
24
77
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4044
SELECT + + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4045
SELECT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT - - 34 + + ( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 90 FROM tab0 AS cor0 WHERE NOT + 32 * + col0 * + col2 + 55 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4048
SELECT - MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - - 5 AS col0 FROM tab2 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 20, col1 - + col1 + - - col0 * - 3 col0 FROM tab2
----
-20
-138
-20
-192
-20
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT SUM( CAST( + col0 AS SIGNED ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4051
SELECT SUM ( CAST ( + col0 AS INTEGER ) ) FROM tab0
----
199

query I rowsort
SELECT col0 * - + ( - 75 ) FROM tab2
----
3450
4800
5625

query I rowsort
SELECT ( - col2 ) * - col0 - 1 AS col2 FROM tab0
----
704
869
9602

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT + col2 DIV col1 * + 28 col1 FROM tab1
----
168
28
308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4054
SELECT + col2 / col1 * + 28 col1 FROM tab1
----
168
28
308

query I rowsort
SELECT DISTINCT - col0 * 34 FROM tab0
----
-2958
-3298
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT 19 * + - COUNT( * ) AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-4056
SELECT 19 * + - COUNT ( * ) AS col1 FROM tab1
----
-57

query I rowsort
SELECT ALL ( + - col2 ) * 27 * - + col2 FROM tab2
----
14283
43200
90828

query II rowsort
SELECT DISTINCT - - col0 + + col1 - 38 + 83 AS col1, 44 AS col1 FROM tab2 AS cor0 WHERE col0 * - - col0 * + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT COUNT( * ) * - MIN( 51 ) AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4059
SELECT COUNT ( * ) * - MIN ( 51 ) AS col2 FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT ( + ( 38 ) ) * col0 DIV col2 + + 95 * - - 51 FROM tab1 AS cor0
----
4865
4895
4899

skipif mysql # not compatible
query I rowsort label-4060
SELECT ( + ( 38 ) ) * col0 / col2 + + 95 * - - 51 FROM tab1 AS cor0
----
4865
4895
4899

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 41 * + 41 NOT IN ( - 45, - ( + col0 ) + - + 2 + + col0 * - col2, ( + - ( + - col0 ) ) * + ( + + col2 ) + + col2 )
----

query II rowsort
SELECT ALL + 9 AS col0, col1 FROM tab2 cor0
----
9
51
9
67
9
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 11 * - col2 + - + 36 AS col0 FROM tab2 AS cor0
----
-289
-476
-674

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + 68 + + SUM( DISTINCT 79 ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 68 + + SUM ( DISTINCT 79 ) FROM tab2 AS cor0
----
147

query I rowsort
SELECT - col0 * + + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT MAX( + col1 ) + - 5 AS col0 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4067
SELECT MAX ( + col1 ) + - 5 AS col0 FROM tab0 AS cor0
----
76

query I rowsort
SELECT + col0 + - + 46 AS col1 FROM tab1 AS cor0
----
39
45
5

query I rowsort
SELECT ALL - 29 * 38 + + ( - + 92 ) AS col0 FROM tab2
----
-1194
-1194
-1194

query I rowsort
SELECT DISTINCT 40 - + + col0 AS col1 FROM tab1
----
-11
-45
-51

query II rowsort
SELECT DISTINCT + - col0 + - + col0 AS col0, - 16 FROM tab1 AS cor0
----
-102
-16
-170
-16
-182
-16

query I rowsort
SELECT ALL + ( col1 ) * + + col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT - - col2 + ( - 85 ) * 30 FROM tab0 AS cor0
----
-2451
-2503
-2540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 59 col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + ( - 93 ) FROM tab2 cor0
----
-93
-93
-93

query II rowsort
SELECT ALL - - col2, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ( - 97 ) AS col1 FROM tab0 AS cor0
----
-97
-97
-97

query II rowsort
SELECT ALL + 73, col0 FROM tab0 AS cor0
----
73
15
73
87
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + - col1 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + - col1 < NULL )
----
0

query II rowsort
SELECT ALL 37 AS col2, 59 AS col2 FROM tab2 AS cor0
----
37
59
37
59
37
59

query I rowsort
SELECT DISTINCT - - col2 * col2 * + 79 * - 43 AS col1 FROM tab1 AS cor0
----
-11824957
-15707728
-31306752

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 29 * - col0 - - - col1 * + ( col2 ) * + - 32 AS col2 FROM tab2 AS cor0
----
46
36202
64
96704
75
122177

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 + col0 * + - col0 FROM tab1 AS cor0
----
-59
-7140
-68
-8190
-96
-2550

query II rowsort
SELECT DISTINCT col0 AS col1, col2 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 88 * ( 3 ) FROM tab1
----
264
264
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT + COUNT( + - col1 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4090
SELECT + COUNT ( + - col1 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) FROM tab2 AS cor0 WHERE + col1 + ( + 84 ) * col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4093
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4093
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - - MIN( 85 ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4094
SELECT - - MIN ( 85 ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + 62 * COUNT( * ) + + ( + MAX( ALL - 41 ) ) AS col0 FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 62 * COUNT ( * ) + + ( + MAX ( ALL - 41 ) ) AS col0 FROM tab1
----
145

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND 65 * - - 43 * 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT ( + 80 ) * col1 + - - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT ( + 80 ) * col1 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT ALL - 18 DIV col0 * - + 13 + - 30 FROM tab1 cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - 18 / col0 * - + 13 + - 30 FROM tab1 cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + 95 + 35 AS col1 FROM tab2 AS cor0
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - COUNT( * ) * + COUNT( ALL + 28 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4100
SELECT - COUNT ( * ) * + COUNT ( ALL + 28 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-9

query III rowsort
SELECT * FROM tab1 WHERE - 76 / - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT ALL - col0 DIV col0 + - col0 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - col0 / col0 + - col0 FROM tab1
----
-52
-86
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT + 30 + - col1 AS col2 FROM tab0
----
-51
29
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + - 4 col0 FROM tab0
----
58
58
58

query I rowsort
SELECT ALL - col1 + 79 FROM tab0
----
-2
58
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - 38 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - 38 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT - ( - + col1 ) + - 95 DIV - + col2 AS col1 FROM tab0
----
1
30
83

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - ( - + col1 ) + - 95 / - + col2 AS col1 FROM tab0
----
1
30
83

query I rowsort
SELECT DISTINCT + 38 + col2 AS col0 FROM tab2
----
61
78
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT - MIN( + col2 ) DIV + + COUNT( * ) - - 32 AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - MIN ( + col2 ) / + + COUNT ( * ) - - 32 AS col2 FROM tab1 AS cor0
----
13

query II rowsort
SELECT col0, + 44 + - col2 FROM tab2 cor0 WHERE + col0 + + + col0 >= + - 14 * + + col1
----
46
21
64
4
75
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL - COUNT( DISTINCT col2 ) + - MAX( col2 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - COUNT ( DISTINCT col2 ) + - MAX ( col2 ) FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT ALL + 94 DIV - COUNT( * ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + 94 / - COUNT ( * ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT ALL + 24 DIV + 82 + - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + 24 / + 82 + - + COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - 39 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - 39 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 * - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT + - col2 DIV + col1 * - + col1 AS col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4117
SELECT + - col2 / + col1 * - + col1 AS col2 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4118
SELECT + CAST( + + 96 AS SIGNED ) * CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + CAST ( + + 96 AS INTEGER ) * CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 AS col0 FROM tab1 WHERE NOT - - col1 / + col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT AVG ( - 44 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT AVG ( - 44 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + - 63 * COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-189

skipif mysql # not compatible
query I rowsort label-4122
SELECT + - 63 * COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 5 col0 FROM tab1
----
-255
-425
-455

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 3 / 2 BETWEEN + 70 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT - COUNT( DISTINCT 49 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - COUNT ( DISTINCT 49 ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - MAX( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - MAX ( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 + 30 FROM tab2 AS cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL - COUNT( * ) * + COUNT( * ) + + + MIN( ALL - - col0 ) + + + COUNT( * ) * 84 * + + 35 AS col1 FROM tab0
----
8826

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + + MIN ( ALL - - col0 ) + + + COUNT ( * ) * 84 * + + 35 AS col1 FROM tab0
----
8826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col0 FROM tab2
----
63

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT DISTINCT COUNT( * ), 57 AS col1 FROM tab1
----
3
57

skipif mysql # not compatible
query II rowsort label-4133
SELECT DISTINCT COUNT ( * ), 57 AS col1 FROM tab1
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT - MIN( + 25 ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - MIN ( + 25 ) AS col2 FROM tab0 AS cor0
----
-25

query II rowsort
SELECT + 58 AS col2, col2 FROM tab0 AS cor0
----
58
10
58
47
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT COUNT( DISTINCT + 81 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4136
SELECT COUNT ( DISTINCT + 81 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL - col2 FROM tab2 WHERE NOT 57 <> col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - col2 FROM tab2 WHERE NOT 57 <> col2 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 29 - 42 * - col0 FROM tab1
----
2171
3599
3851

query I rowsort
SELECT DISTINCT col2 - + 60 AS col0 FROM tab2
----
-2
-20
-37

query I rowsort
SELECT 54 * + 53 + - col1 FROM tab0
----
2781
2841
2861

query I rowsort
SELECT 66 * - col0 AS col2 FROM tab0
----
-5742
-6402
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 20 ) * + ( col0 ) col0 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL - COUNT( * ) * 77 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - COUNT ( * ) * 77 FROM tab2
----
-231

query I rowsort
SELECT col2 * - ( 75 ) FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT col2 * + 2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT ALL + col1 DIV ( - 89 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + col1 / ( - 89 ) FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 46 IN ( col1 * + 61 + 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 44 * - col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - col0 ) <> NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 50 * - col0 - ( 15 ) = NULL
----

query I rowsort
SELECT DISTINCT + 26 * - col1 FROM tab2
----
-1326
-1742
-2002

query I rowsort
SELECT DISTINCT 2 * + 24 AS col1 FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT col0 DIV + 21 AS col0 FROM tab1
----
2
4
4

skipif mysql # not compatible
query I rowsort label-4155
SELECT col0 / + 21 AS col0 FROM tab1
----
2
4
4

query I rowsort
SELECT ALL col2 * 0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 31 * col1 FROM tab1
----
-1457
-155
-434

query I rowsort
SELECT - col2 FROM tab1 WHERE - col0 = NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab0 WHERE col2 IN ( col2 )
----
-705
-870
-9603

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT col1 * col0 BETWEEN col1 + - 43 AND - col0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT col2 * - 10 AS col2 FROM tab0 AS cor0
----
-100
-470
-990

query I rowsort
SELECT col0 * 26 AS col1 FROM tab1
----
1326
2210
2366

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT - col1 DIV 81 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT - col1 / 81 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-4165
SELECT COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab0 )
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4166
SELECT 28 * CAST( + 39 DIV + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 + col1 IS NULL
----
0
0
56

skipif mysql # not compatible
query I rowsort label-4166
SELECT 28 * CAST ( + 39 / + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 + col1 IS NULL
----
0
0
56

query I rowsort
SELECT ALL - - ( - 72 ) * - col2 AS col0 FROM tab0 AS cor0
----
3384
7128
720

query I rowsort
SELECT DISTINCT 40 FROM tab1 AS cor0 WHERE ( col2 ) >= + 71
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - - SUM( col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4169
SELECT - - SUM ( col2 ) col1 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT DISTINCT + 73 DIV - 66 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + 73 / - 66 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT + col0 DIV + 42 AS col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4171
SELECT + col0 / + 42 AS col1 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT DISTINCT col2 - col1 / - ( + ( - col1 ) * ( + ( col1 ) ) + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT col2 - col1 / - ( + ( - col1 ) * ( + ( col1 ) ) + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 + - col2 ) <= col1 + - 58
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT + ( - + 0 ) * + 60 + + SUM( ALL col1 + - 48 ) AS col1 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + ( - + 0 ) * + 60 + + SUM ( ALL col1 + - 48 ) AS col1 FROM tab1
----
-78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + 26 / + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( 67 ) * - col0 + + 7 FROM tab0 WHERE ( NULL ) >= - 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT col2 DIV ( + col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT col2 / ( + col2 ) FROM tab2
----
1

query I rowsort
SELECT + 85 * - + col1 AS col1 FROM tab1
----
-1190
-3995
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT CAST( NULL AS SIGNED ) + - - 93 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT CAST ( NULL AS INTEGER ) + - - 93 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + + 0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) + col2 IS NULL
----

query I rowsort
SELECT col0 + + + 12 FROM tab0
----
109
27
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + COUNT( * ) + - - 87 AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4183
SELECT + COUNT ( * ) + - - 87 AS col0 FROM tab0 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab0 WHERE + 4 * col1 = NULL
----

query I rowsort
SELECT ALL - col1 * + col0 + 68 + 36 FROM tab2
----
-2242
-4824
-4921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, - 92 col0 FROM tab2 AS cor0
----
51
-92
67
-92
77
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 + - col0 ) = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT DISTINCT - CAST( 32 AS SIGNED ) AS col2 FROM tab0 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - CAST ( 32 AS INTEGER ) AS col2 FROM tab0 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + 0 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT + 0 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT col1 + + - col1 DIV col0 * col0 col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4191
SELECT col1 + + - col1 / col0 * col0 col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT 58 * + COUNT( * ) + + COUNT( * ) FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-4193
SELECT 58 * + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + col0 NOT IN ( + col2 * + ( ( CAST( 64 AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + col0 NOT IN ( + col2 * + ( ( CAST ( 64 AS INTEGER ) ) ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + 28 * + col1 col1 FROM tab0
----
-71
2221
578

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN 52 AND + ( + 92 ) * - 17
----

query I rowsort
SELECT DISTINCT - 56 + + + 23 FROM tab0
----
-33

query I rowsort
SELECT + 91 + - col0 * + 56 * - 14 * col1 AS col2 FROM tab0
----
1432459
76139
952651

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT ALL - SUM( 88 ) AS col2, + COUNT( * ) FROM tab0
----
-264
3

skipif mysql # not compatible
query II rowsort label-4199
SELECT ALL - SUM ( 88 ) AS col2, + COUNT ( * ) FROM tab0
----
-264
3

query I rowsort
SELECT ALL 46 AS col0 FROM tab2 WHERE NOT - 78 + col1 IN ( + col1 )
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT 3 DIV - ( - col1 ) FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4201
SELECT 3 / - ( - col1 ) FROM tab0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - - col0 ) * - 53 col0 FROM tab1
----
259488
265795
327964

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT - ( + COUNT( DISTINCT col0 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - ( + COUNT ( DISTINCT col0 ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * col1 + + + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 98 / + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT - MAX( + - 61 ), - 62 AS col0 FROM tab0 AS cor0
----
61
-62

skipif mysql # not compatible
query II rowsort label-4206
SELECT - MAX ( + - 61 ), - 62 AS col0 FROM tab0 AS cor0
----
61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - + ( + COUNT( ALL ( 26 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - + ( + COUNT ( ALL ( 26 ) ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 97 * col0 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL 50 - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 50 - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
41

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT 45 * + 71 * + - 5 / + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT ALL - ( col1 ) * col2 * + 27 * - - CAST( ( - col0 ) AS SIGNED ) - + col2 AS col1 FROM tab2 AS cor0
----
1456843
5322200
7869092

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL - ( col1 ) * col2 * + 27 * - - CAST ( ( - col0 ) AS INTEGER ) - + col2 AS col1 FROM tab2 AS cor0
----
1456843
5322200
7869092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT MIN( ALL + + col1 ) * AVG ( + + col0 ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT MIN ( ALL + + col1 ) * AVG ( + + col0 ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4217
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( CAST( + - CAST( + ( + + col0 ) AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4217
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( CAST ( + - CAST ( + ( + + col0 ) AS INTEGER ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 63 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - col2 + + col2 <= ( col1 )
----
14
47
5

query I rowsort
SELECT ALL - col1 * - + col2 + - col1 FROM tab1
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4221
SELECT ALL - - col1 AS col1, + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4221
SELECT ALL - - col1 AS col1, + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + ( col2 ) * + + 64 AS col0 FROM tab0 AS cor0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - + SUM( col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4223
SELECT - + SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT + 9 AS col0, - 62 AS col1 FROM tab0 AS cor0
----
9
-62
9
-62
9
-62

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 > + - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 97 col0 FROM tab2 AS cor0
----
51
97
67
97
77
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 - - col0 + col2 col2 FROM tab0 cor0
----
133
168
267

query I rowsort
SELECT + + 77 * + col0 FROM tab0 AS cor0
----
1155
6699
7469

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - - col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 * + - col0 * + + col2 col1 FROM tab1 AS cor0
----
23970816
25150225
38291344

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 56 AND NULL
----
-23

query II rowsort
SELECT col0, col1 * + col1 + - - col1 FROM tab2
----
46
2652
64
6006
75
4556

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT DISTINCT 50 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + col0 FROM tab1 WHERE NOT ( + col1 + + col2 ) <= ( NULL )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( + + col1 ) * - col2 * 76 BETWEEN ( col2 ) AND NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 37 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT col0 - + + 11 - - col0 DIV col2 DIV + col0 col1 FROM tab2 WHERE NOT ( + col1 + - col2 ) IS NULL
----
35
53
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4238
SELECT col0 - + + 11 - - col0 / col2 / + col0 col1 FROM tab2 WHERE NOT ( + col1 + - col2 ) IS NULL
----
35
53
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT 33 DIV - col2 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT 33 / - col2 AS col0 FROM tab0
----
-3
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT + 19 * - ( + col2 ) + - + 82 FROM tab1 AS cor0
----
-1203
-1374
-1906

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + COUNT( - 49 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4242
SELECT + COUNT ( - 49 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT col2, - col1 AS col2 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - - ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + ( + + 66 ) FROM tab0 AS cor0
----
66
66
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + ( + - 70 ) * + 61
----

query I rowsort
SELECT ALL - 18 * - 47 - + 0 * - col0 AS col1 FROM tab1 AS cor0
----
846
846
846

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT - col0 DIV col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT - col0 / col2 / - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT SUM( ALL + col1 ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4249
SELECT SUM ( ALL + col1 ) AS col0 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL - COUNT( * ) * - 61 AS col1 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - COUNT ( * ) * - 61 AS col1 FROM tab1 AS cor0
----
183

query I rowsort
SELECT ALL + 79 + - ( ( col1 ) ) AS col1 FROM tab2 AS cor0
----
12
2
28

query I rowsort
SELECT ALL 23 FROM tab2 AS cor0 WHERE col2 / 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 13 FROM tab1 WHERE + col0 IN ( + col2 + col2 - + col2 * + col1 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 13 FROM tab1 WHERE + col0 IN ( + col2 + col2 - + col2 * + col1 * + col2 )
----

query I rowsort
SELECT ALL col2 + + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL COUNT( * ) + COUNT( DISTINCT - - 81 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT - - 81 ) FROM tab0
----
4

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + + col2
----

query I rowsort
SELECT ALL + col2 + - 6 FROM tab0
----
4
41
93

query I rowsort
SELECT DISTINCT - 66 * + + 97 + - - 78 AS col0 FROM tab2
----
-6324

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT col0 DIV col1 + + ( + ( 64 ) ) col0 FROM tab0
----
161
64
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT col0 / col1 + + ( + ( 64 ) ) col0 FROM tab0
----
161
64
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT COUNT( * ) + + + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4260
SELECT COUNT ( * ) + + + 84 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL 73 * - COUNT( * ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL 73 * - COUNT ( * ) AS col0 FROM tab1
----
-219

query I rowsort
SELECT ALL + + 14 FROM tab0 WHERE NOT NULL IS NOT NULL
----
14
14
14

query I rowsort
SELECT ALL col0 - - + 23 FROM tab1
----
108
114
74

query III rowsort
SELECT * FROM tab2 WHERE + 79 + - + col0 - - - col1 + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT + 74 - col0 DIV + 27 AS col1 FROM tab0 AS cor0
----
71
74

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + 74 - col0 / + 27 AS col1 FROM tab0 AS cor0
----
71
74

query I rowsort
SELECT DISTINCT 22 FROM tab1 AS cor0 WHERE ( ( + col2 ) IS NOT NULL )
----
22

query I rowsort
SELECT + col0 + + - 20 AS col1 FROM tab0 cor0 WHERE col1 NOT BETWEEN 24 - + col1 AND - + col1
----
-5
67
77

query III rowsort
SELECT * FROM tab2 WHERE 57 * - - ( - col2 ) BETWEEN col2 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE + - ( col2 ) IS NULL
----

query I rowsort
SELECT col2 / - col2 - + col0 - 54 AS col0 FROM tab0 WHERE + - col0 * - col1 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - 85 + - col0 FROM tab2 AS cor0
----
-131
-149
-160

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col0 / - + col0 + - col0
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN col1 AND ( + col2 * - col2 + + - 76 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT + COUNT( * ), - COUNT( * ) AS col0 FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4274
SELECT + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 cor0
----
3
-3

query I rowsort
SELECT + + col2 * - - 63 * + - col2 FROM tab0 AS cor0
----
-139167
-617463
-6300

query II rowsort
SELECT DISTINCT 51 AS col1, 87 * + col1 AS col0 FROM tab1 AS cor0
----
51
1218
51
4089
51
435

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4277
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) * - 30 NOT BETWEEN - 18 * + 9 / - 66 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-4277
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) * - 30 NOT BETWEEN - 18 * + 9 / - 66 AND NULL )
----

query II rowsort
SELECT col0 * col0 * + + col2 AS col1, col2 FROM tab2
----
163840
40
326250
58
48668
23

query I rowsort
SELECT 81 * + - col0 AS col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
-4131
-6885
-7371

query III rowsort
SELECT * FROM tab1 WHERE NOT 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 34 - - col1 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col0 col2, col1 AS col1 FROM tab0
----
225
81
7569
21
9409
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT COUNT( 67 ) DIV MIN( - 46 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT COUNT ( 67 ) / MIN ( - 46 ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 col2 FROM tab2 WHERE NOT 18 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT + COUNT( + col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + COUNT ( + col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT 44 + - col1 - - col2 AS col2 FROM tab2 AS cor0
----
16
35
7

query I rowsort
SELECT + col1 + - + 10 AS col1 FROM tab1 AS cor0
----
-5
37
4

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT - - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 68 + - col0 AS col0 FROM tab0
----
-19
-29
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT + - 41 * + MAX( ALL + + 88 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4291
SELECT DISTINCT + - 41 * + MAX ( ALL + + 88 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - col1, 73 FROM tab2 WHERE 15 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT DISTINCT col0 DIV + 55 + + 46 FROM tab2
----
46
47

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT col0 / + 55 + + 46 FROM tab2
----
46
47

query I rowsort
SELECT DISTINCT - 41 + - col0 AS col0 FROM tab1
----
-126
-132
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( ( + 14 ) ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT - + col1 - - ( + + col0 ) + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4296
SELECT - + col1 - - ( + + col0 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + - + 84 FROM tab1 AS cor0
----
-33
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + COUNT( * ) + - 19 * + COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4298
SELECT + COUNT ( * ) + - 19 * + COUNT ( * ) FROM tab1 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT - + 82 * - 3 + col2 DIV - 56 + - - 48 FROM tab1 AS cor0
----
293
293
293

skipif mysql # not compatible
query I rowsort label-4299
SELECT - + 82 * - 3 + col2 / - 56 + - - 48 FROM tab1 AS cor0
----
293
293
293

query I rowsort
SELECT DISTINCT + ( - 82 ) AS col2 FROM tab0
----
-82

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= - col0 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT - ( - + 87 ) DIV + 53 col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4302
SELECT - ( - + 87 ) / + 53 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - - ( 35 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + COUNT( * ) - - - 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + COUNT ( * ) - - - 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-87

query I rowsort
SELECT - 24 * col0 + + 75 FROM tab1 cor0
----
-1149
-1965
-2109

query I rowsort
SELECT ALL - col2 * + col1 * - 60 + - 35 AS col0 FROM tab2 AS cor0
----
184765
233125
70345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT ALL - ( + - MAX( + - col0 ) ) DIV - 29 FROM tab0 AS cor0 WHERE NOT col0 DIV col1 + - + col2 = col1
----
0

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - ( + - MAX ( + - col0 ) ) / - 29 FROM tab0 AS cor0 WHERE NOT col0 / col1 + - + col2 = col1
----
0

query I rowsort
SELECT 39 * - col2 AS col2 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT + 44 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 - + + col2 / - + 17 AND + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4310
SELECT DISTINCT col0 DIV - 15 + + + col1 - + col1 * - 8 AS col2, col2 AS col1 FROM tab0 AS cor0
----
184
10
3
99
728
47

skipif mysql # not compatible
query II rowsort label-4310
SELECT DISTINCT col0 / - 15 + + + col1 - + col1 * - 8 AS col2, col2 AS col1 FROM tab0 AS cor0
----
184
10
3
99
728
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4311
SELECT CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4312
SELECT DISTINCT - - 28 + - + 34 + + + 97, - CAST( 54 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4312
SELECT DISTINCT - - 28 + - + 34 + + + 97, - CAST ( 54 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 82 ) FROM tab1 AS cor0
----
-82
-82
-82

query II rowsort
SELECT ALL + col2 AS col1, - col1 FROM tab2
----
23
-51
40
-77
58
-67

query III rowsort
SELECT * FROM tab1 WHERE - 90 > + col0 AND col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4318
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4318
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col2 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4319
SELECT 41 * - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-123
NULL

skipif mysql # not compatible
query II rowsort label-4319
SELECT 41 * - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-123
NULL

query II rowsort
SELECT 71 AS col0, - 79 + - + col2 FROM tab1
----
71
-138
71
-147
71
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0 WHERE NOT + + 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0 WHERE NOT + + 56 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * col1 * - + 97 FROM tab0
----
-42777
-636417
-97

query II rowsort
SELECT - col0 AS col1, col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + 26 * COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 26 * COUNT ( * ) FROM tab1
----
78

query I rowsort
SELECT ALL + - 12 * - col0 + - col1 * - 49 * - 23 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-56925
-74609
-86011

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4328
SELECT DISTINCT - COUNT( col2 ) AS col2, + COUNT( * ) DIV + 51 AS col2 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4328
SELECT DISTINCT - COUNT ( col2 ) AS col2, + COUNT ( * ) / + 51 AS col2 FROM tab2 AS cor0
----
-3
0

query II rowsort
SELECT ALL - - col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT - - CAST( NULL AS SIGNED ) * ( + SUM( - - 5 ) ) + - 1 + 98 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT - - CAST ( NULL AS INTEGER ) * ( + SUM ( - - 5 ) ) + - 1 + 98 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( 4 ) AS col2 FROM tab0 cor0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col1 <> col2
----

query II rowsort
SELECT 65 + - col0 + + col1 AS col0, 53 * + 79 AS col2 FROM tab0
----
-1
4187
-31
4187
131
4187

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL COUNT( * ) * + + 94 - + + COUNT( * ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL COUNT ( * ) * + + 94 - + + COUNT ( * ) FROM tab2
----
279

query I rowsort
SELECT col1 + + - col0 AS col1 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT ALL - col0 + + 18 + - col1 DIV - col2 AS col2 FROM tab1
----
-33
-67
-73

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - col0 + + 18 + - col1 / - col2 AS col2 FROM tab1
----
-33
-67
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4338
SELECT + 99 + - COUNT( * ) + + + COUNT( * ), + 71 col0 FROM tab0
----
99
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4338
SELECT + 99 + - COUNT ( * ) + + + COUNT ( * ), + 71 col0 FROM tab0
----
99
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT COUNT( * ) + 21 AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4339
SELECT COUNT ( * ) + 21 AS col0 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4340
SELECT * FROM tab1 WHERE - 85 / CAST( NULL AS SIGNED ) >= + 20
----

skipif mysql # not compatible
query III rowsort label-4340
SELECT * FROM tab1 WHERE - 85 / CAST ( NULL AS INTEGER ) >= + 20
----

query I rowsort
SELECT ALL + 37 * col2 - col0 + + 42 - + 59 FROM tab0
----
1707
266
3549

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4342
SELECT - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE 24 NOT BETWEEN NULL AND - 19
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE 24 NOT BETWEEN NULL AND - 19
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - 77 FROM tab0 AS cor0
----
-56
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4345
SELECT DISTINCT - col0 / + 24, CAST( + ( + col1 ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4345
SELECT DISTINCT - col0 / + 24, CAST ( + ( + col1 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - - MAX( col1 ) AS col2 FROM tab0 WHERE NOT - + col0 <= - col1
----
81

skipif mysql # not compatible
query I rowsort label-4346
SELECT - - MAX ( col1 ) AS col2 FROM tab0 WHERE NOT - + col0 <= - col1
----
81

query I rowsort
SELECT DISTINCT - col2 * + 91 AS col1 FROM tab2
----
-2093
-3640
-5278

query II rowsort
SELECT DISTINCT + ( col1 ), - ( - - 14 ) AS col0 FROM tab1
----
14
-14
47
-14
5
-14

query I rowsort
SELECT ALL + 41 AS col1 FROM tab0 cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT + 5 * - 44 + - - CAST( NULL AS SIGNED ) * - - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + 5 * - 44 + - - CAST ( NULL AS INTEGER ) * - - col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 49 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4352
SELECT DISTINCT + CAST( + 28 AS SIGNED ) AS col1, - col2 FROM tab2 AS cor0
----
28
-23
28
-40
28
-58

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT + CAST ( + 28 AS INTEGER ) AS col1, - col2 FROM tab2 AS cor0
----
28
-23
28
-40
28
-58

query I rowsort
SELECT + ( - 9 ) * col0 FROM tab1 cor0
----
-459
-765
-819

query I rowsort
SELECT 44 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
44
44

query I rowsort
SELECT col0 * - ( 54 ) AS col0 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT 63 * + - MIN( ALL col1 ) FROM tab1 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-4356
SELECT 63 * + - MIN ( ALL col1 ) FROM tab1 AS cor0
----
-315

query I rowsort
SELECT - AVG ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL + + ( + + col0 ) AS col1, col0 FROM tab2 WHERE NOT ( 29 ) IS NULL
----
46
46
64
64
75
75

query I rowsort
SELECT 43 * - 83 AS col1 FROM tab2
----
-3569
-3569
-3569

query II rowsort
SELECT - 84 AS col0, 71 FROM tab0
----
-84
71
-84
71
-84
71

query I rowsort
SELECT ALL - col0 * + 70 AS col2 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL + col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - MIN( - + 66 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - MIN ( - + 66 ) FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( 53 ) AS col2 FROM tab0 AS cor0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + - col2 col0 FROM tab1 AS cor0
----
-100
-128
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT + + CAST( NULL AS SIGNED ) * 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4368
SELECT + + CAST ( NULL AS INTEGER ) * 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT + + CAST( NULL AS SIGNED ) * + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4370
SELECT + + CAST ( NULL AS INTEGER ) * + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 99 AS col2 FROM tab1 WHERE NOT - ( col1 ) * - 12 + - + col2 IS NULL
----
99
99
99

query III rowsort
SELECT DISTINCT col2, + col1, 81 AS col0 FROM tab0 AS cor0
----
9 values hashing to f790c0a3263a88bbd3964b2e0a9e966d

query I rowsort
SELECT ALL + 11 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
108
26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT COUNT( * ) + + 24 col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4374
SELECT COUNT ( * ) + + 24 col2 FROM tab1 AS cor0
----
27

query II rowsort
SELECT ALL col0, - col0 + 90 AS col1 FROM tab2 AS cor0
----
46
44
64
26
75
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 + - + col0 col2 FROM tab2 cor0
----
-102
-73
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT + 83 DIV + 5 AS col1 FROM tab2 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 83 / + 5 AS col1 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - - COUNT( + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4378
SELECT - - COUNT ( + col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT 75 + - MAX( + - 38 ) FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT 75 + - MAX ( + - 38 ) FROM tab1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL MAX( - - 74 ) + - 97 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL MAX ( - - 74 ) + - 97 FROM tab0
----
-23

query I rowsort
SELECT DISTINCT - 96 + + col1 + - col1 AS col2 FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT + col1 - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT + col1 - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 - + - col2 col2 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT + + col1 DIV - 66 + + col2 col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT + + col1 / - 66 + + col2 col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + - col0 - + - 75 + col0 * - + 63 * + col2 AS col1 FROM tab0 AS cor0
----
-44355
-54822
-605011

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab2 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT 69 DIV + + col1 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4389
SELECT 69 / + + col1 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 70 * - + col2 AS col0 FROM tab1 AS cor0
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - + SUM( - 91 ) col1 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4392
SELECT - + SUM ( - 91 ) col1 FROM tab2 AS cor0
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4393
SELECT ALL + CAST( NULL AS SIGNED ), - SUM( + col1 ) col1 FROM tab0 cor0
----
NULL
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4393
SELECT ALL + CAST ( NULL AS INTEGER ), - SUM ( + col1 ) col1 FROM tab0 cor0
----
NULL
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + + col0 * col2 col2 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT + + 63 AS col2 FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN col1 + col1 AND - ( + - col2 ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 93 col2 FROM tab1 WHERE ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4397
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 93 col2 FROM tab1 WHERE ( NULL IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT + col2 * CAST( + + col1 AS SIGNED ) AS col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4398
SELECT + col2 * CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + 54 * + + SUM( DISTINCT + ( col2 ) ) FROM tab0
----
8424

skipif mysql # not compatible
query I rowsort label-4399
SELECT + 54 * + + SUM ( DISTINCT + ( col2 ) ) FROM tab0
----
8424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4400
SELECT DISTINCT + 78 * + CAST( NULL AS SIGNED ) * + - 65 * col2 / + col1 AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT + 78 * + CAST ( NULL AS INTEGER ) * + - 65 * col2 / + col1 AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / + + 49 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT ALL - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL > NULL
----
0

query II rowsort
SELECT + col0, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT * FROM tab1 WHERE 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 61, + col2 col2 FROM tab1 AS cor0
----
-61
59
-61
68
-61
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 / + 10 <> NULL
----

query II rowsort
SELECT ALL col2, ( + 98 ) FROM tab0 cor0
----
10
98
47
98
99
98

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE NULL >= 13 / - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4411
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4411
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT DISTINCT col0 + + col2 + - 73 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-11
-15
123
-97
24
-87

query I rowsort
SELECT ALL - 63 * - 64 * + col0 AS col1 FROM tab0
----
350784
391104
60480

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT + col2 + + 86 AS col2 FROM tab0
----
133
185
96

query I rowsort
SELECT + col1 + + + 26 FROM tab0
----
107
27
47

query I rowsort
SELECT DISTINCT + 97 - - ( col1 ) - - + 94 * ( - col0 ) FROM tab0
----
-1232
-8060
-9020

query II rowsort
SELECT - 28 AS col2, col0 AS col0 FROM tab2
----
-28
46
-28
64
-28
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT + MIN( ALL + col0 ) col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4419
SELECT DISTINCT + MIN ( ALL + col0 ) col2 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + col1 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-4421
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT - - 11 * - 38 * col1 FROM tab2 AS cor0
----
-21318
-28006
-32186

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + COUNT( - 12 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4424
SELECT + COUNT ( - 12 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col0 + - + col1 * - col1 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4426
SELECT * FROM tab1 WHERE NOT + 24 IN ( col2, + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4426
SELECT * FROM tab1 WHERE NOT + 24 IN ( col2, + col1 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + + 85 AND - ( - + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4429
SELECT 16 col2, CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0
----
16
NULL
16
NULL
16
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4429
SELECT 16 col2, CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0
----
16
NULL
16
NULL
16
NULL

query I rowsort
SELECT - ( - - col1 ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 3 + 55 FROM tab1
----
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, - 92 FROM tab2
----
-46
-92
-64
-92
-75
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT col2 = NULL
----
0

query I rowsort
SELECT DISTINCT - 34 + + col2 FROM tab2
----
-11
24
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4436
SELECT DISTINCT - + 9, COUNT( * ) DIV 55 * - SUM( - - col0 ) * + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9
0

skipif mysql # not compatible
query II rowsort label-4436
SELECT DISTINCT - + 9, COUNT ( * ) / 55 * - SUM ( - - col0 ) * + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT ( COUNT( * ) ) DIV - COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT ( COUNT ( * ) ) / - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-1

query II rowsort
SELECT DISTINCT col0, ( - - col1 ) FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT - col2 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ( 3 ) * COUNT( ALL 0 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4440
SELECT ( 3 ) * COUNT ( ALL 0 ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4441
SELECT ALL 35, SUM( ALL CAST( - + col2 AS SIGNED ) ) + - ( + - SUM( - col2 ) ) AS col1 FROM tab0 AS cor0
----
35
-312

skipif mysql # not compatible
query II rowsort label-4441
SELECT ALL 35, SUM ( ALL CAST ( - + col2 AS INTEGER ) ) + - ( + - SUM ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
35
-312

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + 57 - - col1 FROM tab2 AS cor0
----
108
124
134

query I rowsort
SELECT - ( + + 88 ) FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + - 2 * col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT - - col1 * + ( - + 34 ) AS col1 FROM tab2 AS cor0
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - + MAX( ALL + col0 ) - + ( + MAX( - col2 ) ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - + MAX ( ALL + col0 ) - + ( + MAX ( - col2 ) ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 AND - ( - ( + 68 ) ) + - - col0
----

query I rowsort
SELECT DISTINCT - col1 * + + col1 * + - col2 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT + - 64 DIV + + col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4450
SELECT + - 64 / + + col2 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 92 * + col2 + + 83 - - col0 * 34 BETWEEN col1 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT COUNT( * ) + - + 40 col1 FROM tab0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT DISTINCT COUNT ( * ) + - + 40 col1 FROM tab0
----
-37

query II rowsort
SELECT ALL col0 AS col1, col0 + - col1 - col2 AS col2 FROM tab1
----
51
-59
85
21
91
-24

query I rowsort
SELECT ALL + 49 * - + 97 AS col2 FROM tab2 WHERE - - 59 + col0 < + 9 + - 17
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 * + col0 FROM tab1
----
132651
614125
753571

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT - MIN( col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4459
SELECT - MIN ( col1 ) AS col0 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + + ( + MAX( ALL + 13 ) ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4460
SELECT + + ( + MAX ( ALL + 13 ) ) AS col1 FROM tab0 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 + - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT ALL col0 DIV 12 FROM tab0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL col0 / 12 FROM tab0
----
1
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT - ( + - COUNT( - + col0 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT - ( + - COUNT ( - + col0 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + ( col2 ) + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

query III rowsort
SELECT * FROM tab0 WHERE NOT - 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + ( - MAX( DISTINCT - - col1 ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4466
SELECT + ( - MAX ( DISTINCT - - col1 ) ) FROM tab2 cor0
----
-77

query I rowsort
SELECT DISTINCT + + 6 AS col2 FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col1 + + - col1 FROM tab2 AS cor0 WHERE 1 <= col0
----
0

query II rowsort
SELECT + col0, - col2 AS col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43, col1 col2 FROM tab2 AS cor0
----
43
51
43
67
43
77

query I rowsort
SELECT DISTINCT col0 * 71 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col0 * + col2 + - + 83 AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 41 + + col2 * - 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4477
SELECT ALL COUNT( + + col0 ) DIV - ( + + 26 ) + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL COUNT ( + + col0 ) / - ( + + 26 ) + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT - col0 * - col0 + - 79 + + 18 FROM tab2
----
2055
4035
5564

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT 5 + + col0 DIV col2 * col1 col2 FROM tab1
----
10
5
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4479
SELECT 5 + + col0 / col2 * col1 col2 FROM tab1
----
10
5
52

query I rowsort
SELECT - 40 + + col1 FROM tab0
----
-19
-39
41

query I rowsort
SELECT + col0 + + - col2 AS col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 28 + - COUNT( * ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-4482
SELECT 28 + - COUNT ( * ) FROM tab0
----
25

query I rowsort
SELECT DISTINCT ( - - 0 ) + - ( col2 ) * + col1 + + 43 FROM tab0 AS cor0
----
-167
-3764
-56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT ALL - SUM( DISTINCT + col2 ) col0, 84 AS col1 FROM tab2 AS cor0
----
-121
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4485
SELECT ALL - SUM ( DISTINCT + col2 ) col0, 84 AS col1 FROM tab2 AS cor0
----
-121
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL + 5 - + 68 * + COUNT( DISTINCT - 6 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + 5 - + 68 * + COUNT ( DISTINCT - 6 ) FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT AVG ( + col2 ) + COUNT( * ) FROM tab2 AS cor0 WHERE + ( + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT AVG ( + col2 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + ( + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + + col1 / + 76 - + col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + + SUM( + ( ( - col0 ) ) ) - - - COUNT( * ) FROM tab2 cor0
----
-188

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + + SUM ( + ( ( - col0 ) ) ) - - - COUNT ( * ) FROM tab2 cor0
----
-188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT ALL - CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT 55 * - - col0 + + - 7, - col1 * col2 AS col2 FROM tab0 AS cor0
----
4778
-210
5328
-99
818
-3807

query I rowsort
SELECT ALL + + col0 + + col2 + - col2 FROM tab0 AS cor0 WHERE NOT - ( - + col0 ) IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT + col2 DIV + ( + - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT + col2 / + ( + - col0 ) FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT 96 * col0 FROM tab1
----
4896
8160
8736

query I rowsort
SELECT + col2 * - col0 * + - col2 AS col2 FROM tab2
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query II rowsort label-4499
SELECT col2 * + 1 DIV col0 * + - 17, + 84 AS col0 FROM tab2
----
0
84
0
84
0
84

skipif mysql # not compatible
query II rowsort label-4499
SELECT col2 * + 1 / col0 * + - 17, + 84 AS col0 FROM tab2
----
0
84
0
84
0
84

query I rowsort
SELECT DISTINCT 80 * - + col0 AS col2 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT DISTINCT 19 * + + col2 FROM tab0
----
1881
190
893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4502
SELECT ALL + 52 DIV - COUNT( ALL col1 ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + 52 / - COUNT ( ALL col1 ) AS col2 FROM tab1
----
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 <> + ( - 42 ) + + ( - 97 ) + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT - col0 * - ( col2 ) * - - col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4505
SELECT - col0 * - ( col2 ) * - - col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - - ( - + 21 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col0 + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - ( - + COUNT( ALL + col1 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4509
SELECT - ( - + COUNT ( ALL + col1 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT ALL col1 * - + 43 * - col0, + col2 AS col0 FROM tab0
----
4171
99
52245
47
78561
10

query II rowsort
SELECT + col1 AS col0, 65 * - col2 FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT col1 + + + ( - - 39 ) FROM tab2 AS cor0
----
106
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT MIN( - + 67 ) + + - 13 AS col0 FROM tab0 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4514
SELECT MIN ( - + 67 ) + + - 13 AS col0 FROM tab0 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - + MIN( col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4516
SELECT - + MIN ( col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT col1 * + col2 * + col2 + + + col1 + col2 + - + 66 * + + col0 FROM tab1 AS cor0
----
11859
125768
211437

query I rowsort
SELECT ALL ( + - 34 ) AS col1 FROM tab2 AS cor0 WHERE + col2 * - col2 IS NULL
----

query I rowsort
SELECT - col1 * col0 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT ALL col1 * + 15 + + col2 FROM tab0
----
114
1262
325

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4521
SELECT ALL + col0 DIV + CAST( + col2 AS SIGNED ) + - col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + col0 / + CAST ( + col2 AS INTEGER ) + - col1 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT 5 FROM tab0 WHERE - col1 <= - 14
----
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4523
SELECT DISTINCT COUNT( * ) + + + CAST( COUNT( * ) AS SIGNED ) * - + MAX( DISTINCT - 33 ) * + MIN( - CAST( NULL AS DECIMAL ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4523
SELECT DISTINCT COUNT ( * ) + + + CAST ( COUNT ( * ) AS INTEGER ) * - + MAX ( DISTINCT - 33 ) * + MIN ( - CAST ( NULL AS REAL ) ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - 52 + + - COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - 52 + + - COUNT ( * ) FROM tab0
----
-55

query I rowsort
SELECT DISTINCT + 18 + col1 + - + col2 * - - 11 AS col2 FROM tab2
----
-184
-345
-553

query I rowsort
SELECT DISTINCT col2 * 80 + + 58 AS col0 FROM tab0
----
3818
7978
858

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE col2 + + 33 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + + 33 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 15 + + ( + 20 ) AS col0 FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT DISTINCT col1 / - col1 + col2 + - 36 + - + CAST( NULL AS SIGNED ) * 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT col1 / - col1 + col2 + - 36 + - + CAST ( NULL AS INTEGER ) * 7 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( - col1 ) + 64 * - + 81 * col1 AS col2 FROM tab2 AS cor0
----
-264333
-347261
-399091

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT + - 56 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col1 = NULL )
----
-56

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + - 56 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col1 = NULL )
----
-56

query I rowsort
SELECT DISTINCT 71 * - col0 - - - 70 - col0 AS col0 FROM tab0 AS cor0
----
-1150
-6334
-7054

query I rowsort
SELECT ALL + - 79 AS col2 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL + 39 DIV + col0 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 39 / + col0 FROM tab0 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * + col0 ) <> 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT MAX( DISTINCT + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT MAX ( DISTINCT + - col1 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + - 74 FROM tab2 WHERE NOT col2 IS NULL
----
-74

query I rowsort
SELECT ALL col1 * + col2 * + ( - - 78 ) FROM tab1
----
104832
23010
249288

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL MIN( ALL 53 ) FROM tab1 WHERE NOT + - ( + 59 ) * - 17 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL MIN ( ALL 53 ) FROM tab1 WHERE NOT + - ( + 59 ) * - 17 IS NULL
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL 28 DIV - - col1 FROM tab0
----
0
1
28

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL 28 / - - col1 FROM tab0
----
0
1
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT 6 DIV + - 9 * COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT 6 / + - 9 * COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + ( + 77 ) * + + 91 FROM tab0
----
7007
7007
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4547
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - ( + col1 ) * + col1 * col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - - MIN( ALL + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - - MIN ( ALL + col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT ALL col1 DIV - col2 * col1 + col1 * - ( - + col0 ) - + 44 + - col0 AS col2 FROM tab1
----
296
4142
619

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL col1 / - col2 * col1 + col1 * - ( - + col0 ) - + 44 + - col0 AS col2 FROM tab1
----
296
4142
619

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT 41 * COUNT( * ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-4551
SELECT 41 * COUNT ( * ) AS col2 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - 66 * - COUNT( * ) * - - 68 AS col0 FROM tab1 AS cor0
----
13464

skipif mysql # not compatible
query I rowsort label-4553
SELECT - 66 * - COUNT ( * ) * - - 68 AS col0 FROM tab1 AS cor0
----
13464

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + + col0 * - 15 FROM tab2 AS cor0
----
-1125
-690
-960

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT ( - + MIN( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT ( - + MIN ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > col0 / col2 * - + col2 + - - col2 - + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT - 91 + - - 80 DIV + 79 AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - 91 + - - 80 / + 79 AS col0 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 56 + + COUNT( * ) * - 83 AS col2 FROM tab2
----
-193

skipif mysql # not compatible
query I rowsort label-4560
SELECT 56 + + COUNT ( * ) * - 83 AS col2 FROM tab2
----
-193

query I rowsort
SELECT ALL 47 + ( + 65 ) AS col2 FROM tab2
----
112
112
112

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT + 99 DIV + + col0 + + 94 AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + 99 / + + col0 + + 94 AS col0 FROM tab1
----
95

query I rowsort
SELECT col1 + - + col2 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT - CAST( NULL AS SIGNED ) + - col2 + - CAST( + - col2 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT - CAST ( NULL AS INTEGER ) + - col2 + - CAST ( + - col2 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT + col1 - + 77 + col0 DIV - 31 AS col1 FROM tab0
----
-58
-79
4

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + col1 - + 77 + col0 / - 31 AS col1 FROM tab0
----
-58
-79
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT CAST( NULL AS SIGNED ) * ( - ( col0 ) ) * + col0 * 98 + + 73 / - 21 * + col2 * + ( + - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT CAST ( NULL AS INTEGER ) * ( - ( col0 ) ) * + col0 * 98 + + 73 / - 21 * + col2 * + ( + - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 43 * col1 + - 34 AS col1 FROM tab0
----
3449
869
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4568
SELECT 68 + + + 53 * + - 59 AS col0, CAST( - - ( + 43 ) AS SIGNED ) AS col0 FROM tab0
----
-3059
43
-3059
43
-3059
43

skipif mysql # not compatible
query II rowsort label-4568
SELECT 68 + + + 53 * + - 59 AS col0, CAST ( - - ( + 43 ) AS INTEGER ) AS col0 FROM tab0
----
-3059
43
-3059
43
-3059
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT - - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4569
SELECT - - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - 88 * + col2 * + - 86 col2 FROM tab0 AS cor0
----
-5335440
-6584160
-72675504

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - COUNT( * ) - + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4571
SELECT - COUNT ( * ) - + COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / + 8 * - col0 BETWEEN + col0 * + - col2 * - 46 AND NULL
----

query II rowsort
SELECT ALL + - 43 AS col0, ( - col0 ) + + - col2 FROM tab1 AS cor0
----
-43
-144
-43
-147
-43
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + MIN( DISTINCT 69 ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4575
SELECT + MIN ( DISTINCT 69 ) AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT - CAST( + 21 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - CAST ( + 21 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 * col1 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL - - MAX( DISTINCT + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - - MAX ( DISTINCT + col0 ) FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4579
SELECT + col2 * - col2 AS col2, - CAST( NULL AS SIGNED ) FROM tab1
----
-3481
NULL
-4624
NULL
-9216
NULL

skipif mysql # not compatible
query II rowsort label-4579
SELECT + col2 * - col2 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1
----
-3481
NULL
-4624
NULL
-9216
NULL

query I rowsort
SELECT DISTINCT col1 * + ( + + col2 ) FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT - 53 * - col1 DIV + col1 FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 53 * - col1 / + col1 FROM tab2
----
53
53
53

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) NOT BETWEEN + + col1 AND ( col1 ) + - 47 )
----

query I rowsort
SELECT ALL col1 * + + col0 * - 62 AS col2 FROM tab2
----
-145452
-305536
-311550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab1 WHERE NOT ( ( NULL NOT BETWEEN - - col0 + + + 84 AND ( - col1 * - col1 + 95 * + - 96 - + + col1 + - + col0 * + col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + 90 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 90 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4586
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT + 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT 12 + - col2 + + 20 FROM tab1
----
-27
-36
-64

query II rowsort
SELECT DISTINCT col2, 37 FROM tab0
----
10
37
47
37
99
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4590
SELECT ALL col1 col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4590
SELECT ALL col1 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT + COUNT( + col0 ) * - 94 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + COUNT ( + col0 ) * - 94 FROM tab0 AS cor0
----
-282

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 53 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
53
53
53

query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT 20 + - SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
-203

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT 20 + - SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
-203

query I rowsort
SELECT col0 * + - 24 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - 44 + + + COUNT( * ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - 44 + + + COUNT ( * ) FROM tab1 AS cor0
----
-41

query I rowsort
SELECT ALL col1 + - ( + - 39 ) AS col0 FROM tab2
----
106
116
90

query I rowsort
SELECT ALL ( - 94 ) * - col2 + col0 FROM tab1
----
5631
6483
9075

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) + + col1 AS col0 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT ( + - ( COUNT( * ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT ( + - ( COUNT ( * ) ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - col2 * col0 - - col1 AS col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT + col0 + - col1 * - col2 * - - CAST( NULL AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT + col0 + - col1 * - col2 * - - CAST ( NULL AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL - 13 DIV - col2 - + 63 * + 26 * col1 * - + 34 * 29 FROM tab1 AS cor0
----
22610952
75908196
8075340

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - 13 / - col2 - + 63 * + 26 * col1 * - + 34 * 29 FROM tab1 AS cor0
----
22610952
75908196
8075340

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + 67 + - COUNT( * ) * + - 27 * + 45 AS col0 FROM tab2 AS cor0 WHERE - col2 > + + 74 / ( + - ( + col0 ) )
----
67

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 67 + - COUNT ( * ) * + - 27 * + 45 AS col0 FROM tab2 AS cor0 WHERE - col2 > + + 74 / ( + - ( + col0 ) )
----
67

query I rowsort
SELECT col1 * + - 99 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT + ( - 23 ) FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT - CAST( - + ( + col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4608
SELECT - CAST ( - + ( + col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 72 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT MIN( - 65 ) AS col2 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT MIN ( - 65 ) AS col2 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT col0, col0 AS col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4612
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + + 90 AS SIGNED ) * + col2 / + - col2 + col2 NOT BETWEEN + - 78 AND + 23 * + 73 + - 55 * + + col1 * - 20 * + ( 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4612
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + + 90 AS INTEGER ) * + col2 / + - col2 + col2 NOT BETWEEN + - 78 AND + 23 * + 73 + - 55 * + + col1 * - 20 * + ( 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, col0 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT DISTINCT 57 AS col1, col2 AS col0 FROM tab2
----
57
23
57
40
57
58

query I rowsort
SELECT ALL ( - 37 ) AS col2 FROM tab2 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT - 22 DIV ( + ( + col1 ) ) AS col2 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT - 22 / ( + ( + col1 ) ) AS col2 FROM tab1
----
-1
-4
0

query I rowsort
SELECT DISTINCT col1 * - 79 AS col1 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL ( + SUM( - 51 ) ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL ( + SUM ( - 51 ) ) FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + MIN( - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + MIN ( - col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - MIN( DISTINCT + + 4 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-4620
SELECT - MIN ( DISTINCT + + 4 ) FROM tab1
----
-4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 5 ) >= 22 + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, ( col2 ) FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE 87 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4625
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL - COUNT( * ) + - SUM( 94 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - COUNT ( * ) + - SUM ( 94 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 - + + col2 + - col1 * col0 FROM tab0 AS cor0
----
-1277
-1924
-293

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT + + COUNT( * ) - - 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4629
SELECT + + COUNT ( * ) - - 43 FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL - 96 AS col0 FROM tab0 AS cor0 WHERE + 54 IS NOT NULL AND NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT ALL col2 * col2 DIV - col1 + - - ( col2 ) * - col0 AS col1 FROM tab0 cor0
----
-19404
-732
-874

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL col2 * col2 / - col1 + - - ( col2 ) * - col0 AS col1 FROM tab0 cor0
----
-19404
-732
-874

query I rowsort
SELECT ALL + - 83 * - - 9 + + 66 AS col1 FROM tab2 AS cor0
----
-681
-681
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT ALL CAST( NULL AS SIGNED ) * 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL CAST ( NULL AS INTEGER ) * 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) + 12 * 69 FROM tab2 AS cor0
----
879
895
905

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT ALL + col1 DIV - - col0 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + col1 / - - col0 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + col1 * + - col1 + - - col0 AS col2 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT DISTINCT ( + 80 ) * + col0 + + 15 AS col0 FROM tab2
----
3695
5135
6015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT - col2 / + CAST( NULL AS SIGNED ) * + 19 + + col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT - col2 / + CAST ( NULL AS INTEGER ) * + 19 + + col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + col1 + + ( + col1 ) * + + col1 AS col0 FROM tab1
----
2324
306
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + 52 + COUNT( * ) AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 52 + COUNT ( * ) AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
55

query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 + + + col2 * - + ( col2 ) FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT ALL 28 - + + 44 FROM tab2
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - COUNT( * ) + - 12 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4643
SELECT - COUNT ( * ) + - 12 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - SUM( ALL + 59 ) AS col2 FROM tab1 WHERE col2 >= + ( - 98 ) * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT - SUM ( ALL + 59 ) AS col2 FROM tab1 WHERE col2 >= + ( - 98 ) * - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT - COUNT( * ) FROM tab2 WHERE - - col1 <> - + col2
----
-3

skipif mysql # not compatible
query I rowsort label-4645
SELECT - COUNT ( * ) FROM tab2 WHERE - - col1 <> - + col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 - - col2 AS col2 FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, col1 + - - col2 AS col0 FROM tab1 cor0
----
14
110
47
115
5
64

query II rowsort
SELECT + 40, col1 * + 42 AS col0 FROM tab2 AS cor0
----
40
2142
40
2814
40
3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - 61 col0 FROM tab2 AS cor0
----
2928
2928
2928

query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab2 WHERE ( col0 ) - col0 NOT IN ( 8 )
----
128
150
92

query I rowsort
SELECT DISTINCT + col0 + 92 * 65 AS col1 FROM tab1
----
6031
6065
6071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 68 ) col2 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT ALL col0 * - 33 + col0 AS col2 FROM tab0
----
-2784
-3104
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col1 + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col1 + col0 < NULL
----
NULL

query I rowsort
SELECT 46 + col0 FROM tab2
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL - MIN( col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - MIN ( col0 ) FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT col1 * - col2 + - col1 DIV + 68 FROM tab0
----
-210
-3808
-99

skipif mysql # not compatible
query I rowsort label-4658
SELECT col1 * - col2 + - col1 / + 68 FROM tab0
----
-210
-3808
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 97 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 30 )
----

query I rowsort
SELECT 66 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT + 44 * 86 FROM tab2 WHERE NOT col2 + 79 * + col2 > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col2 col0 FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - COUNT( ALL + 37 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4664
SELECT - COUNT ( ALL + 37 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + COUNT( + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4665
SELECT + COUNT ( + col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT + col1 * + col0 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + col1 * + col0 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * ( + 23 * - 63 ) + - col1 AS col1 FROM tab1
----
123160
131812
73885

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 72 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4671
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL ) / col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4671
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL ) / col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col2 IN ( + ( + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT col2 * - 84 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT ALL + ( col0 ) + - col1 FROM tab1
----
37
44
80

query I rowsort
SELECT - 64 + col0 FROM tab2
----
-18
0
11

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4677
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4677
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4678
SELECT + COUNT( * ) DIV + ( + MAX( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE 77 <> ( + col1 + + col0 DIV col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT + COUNT ( * ) / + ( + MAX ( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE 77 <> ( + col1 + + col0 / col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL + ( - SUM( DISTINCT 1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + ( - SUM ( DISTINCT 1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT ( col1 ) - - col0 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT 0 * + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 42 FROM tab0 cor0 WHERE NULL NOT IN ( + 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT ALL col2 DIV col2 - + 81 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL col2 / col2 - + 81 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - 80 * + 17 AS col1 FROM tab2 AS cor0
----
-1360
-1360
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL + + MIN( ALL - col0 ) * + 66 FROM tab2 AS cor0
----
-4950

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + + MIN ( ALL - col0 ) * + 66 FROM tab2 AS cor0
----
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE - 4 NOT BETWEEN - 69 - - CAST( 47 AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE - 4 NOT BETWEEN - 69 - - CAST ( 47 AS INTEGER ) AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + col2 ) * col0 ) IS NULL
----

query I rowsort
SELECT 31 * col2 AS col2 FROM tab0 AS cor0
----
1457
3069
310

query I rowsort
SELECT - + 39 * - 62 AS col1 FROM tab1 AS cor0
----
2418
2418
2418

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col2 col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE 47 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4692
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE 47 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 51 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT ALL + - col2 DIV col2 + col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + - col2 / col2 + col2 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT ALL - ( - 54 ) * col1 AS col1 FROM tab0 WHERE NOT col2 + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * col0 * - ( + col2 ) - 59 FROM tab1
----
-295944
-420843
-470075

query I rowsort
SELECT DISTINCT - ( - - col1 ) * + col0 + col0 AS col2 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT col1 + + + col2 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL ( + col0 ) + - col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT 52 * COUNT( * ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT 52 * COUNT ( * ) FROM tab2
----
156

query I rowsort
SELECT ALL 70 * - - col0 * - col0 AS col1 FROM tab2
----
-148120
-286720
-393750

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 BETWEEN - col0 AND ( + 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT COUNT( * ) DIV + + MAX( ALL - 2 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT COUNT ( * ) / + + MAX ( ALL - 2 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT - CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4704
SELECT - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - - 35 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL - col1 - - ( - col0 + + col1 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * 28 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT ( + col0 + + col1 ) IN ( + 83 * + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT ( + col0 + + col1 ) IN ( + 83 * + col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL - CAST( NULL AS SIGNED ) * - - col0 / - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col0 / - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT - MAX( col0 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4711
SELECT - MAX ( col0 ) / COUNT ( * ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + SUM( 18 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4712
SELECT + SUM ( 18 ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( 33 ) ) IN ( col2 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT - - COUNT( * ) AS col1, - 43 AS col1 FROM tab0 AS cor0
----
3
-43

skipif mysql # not compatible
query II rowsort label-4714
SELECT - - COUNT ( * ) AS col1, - 43 AS col1 FROM tab0 AS cor0
----
3
-43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 61 FROM tab0 cor0
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <= - + 36 / - 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 * - col1 + + col1 * - col2 - col1 * col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + - ( + col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 11 + - + 97 AS col2 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT + - 3 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + + COUNT( + col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( + col0 ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT + CAST( NULL AS SIGNED ) + 25 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT + CAST ( NULL AS INTEGER ) + 25 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT - 17 + + - SUM( ALL - CAST( - 30 AS SIGNED ) ) FROM tab0 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-4725
SELECT - 17 + + - SUM ( ALL - CAST ( - 30 AS INTEGER ) ) FROM tab0 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + MAX( ALL + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4726
SELECT + MAX ( ALL + + col0 ) FROM tab2
----
75

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 15 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + 12 ) - + 54 * + col2 FROM tab2 cor0
----
-1230
-2148
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + COUNT( * ) - - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT + COUNT ( * ) - - - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4730
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT + - 99 * + col1 + - + col0 - + CAST( - 96 AS SIGNED ) * col1 col0 FROM tab0 AS cor0
----
-100
-150
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT + - 99 * + col1 + - + col0 - + CAST ( - 96 AS INTEGER ) * col1 col0 FROM tab0 AS cor0
----
-100
-150
-258

query III rowsort
SELECT * FROM tab1 cor0 WHERE 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - - - col2 FROM tab1 cor0
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / - 94 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col2 + + col1 AS col2 FROM tab0
----
118
143
197

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT + col2 DIV - ( - col2 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT + col2 / - ( - col2 ) AS col1 FROM tab0
----
1
1
1

query II rowsort
SELECT DISTINCT + 97 AS col0, - col0 FROM tab0
----
97
-15
97
-87
97
-97

query II rowsort
SELECT ALL col1 * - - col1, col1 FROM tab2
----
2601
51
4489
67
5929
77

query II rowsort
SELECT - 34, col1 AS col0 FROM tab0
----
-34
1
-34
21
-34
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT DISTINCT + col2 * - col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + col2 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4741
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-4741
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT + 48 * col1 + - - 82 FROM tab0 AS cor0 WHERE NULL = - 53 / - 52
----

query I rowsort
SELECT + 79 * + + col2 AS col2 FROM tab1 AS cor0
----
4661
5372
7584

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 - - col1 * + + col2 * - - col0
----

query I rowsort
SELECT - 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - col1 - + + 74 BETWEEN ( 26 * 54 + + ( - col1 + 36 ) ) AND ( + col0 + ( + col2 ) ) ) )
----

query I rowsort
SELECT col1 + + col1 + 73 * 93 FROM tab0 cor0
----
6791
6831
6951

query I rowsort
SELECT DISTINCT + col2 + + - col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT MIN( col1 ) + + + COUNT( + - col1 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4749
SELECT MIN ( col1 ) + + + COUNT ( + - col1 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT + col1 + + 76 AS col2 FROM tab0 AS cor0
----
157
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT MIN( ALL col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4751
SELECT MIN ( ALL col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT col0 + + col2 * - col0 AS col2 FROM tab0 cor0
----
-690
-783
-9506

query I rowsort
SELECT ALL + - 41 FROM tab2 WHERE - 33 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT + ( - col0 ) DIV - + 6 + - + ( 8 ) AS col1 FROM tab1
----
0
6
7

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT + ( - col0 ) / - + 6 + - + ( 8 ) AS col1 FROM tab1
----
0
6
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT MIN( + ( + col2 ) ) AS col2, COUNT( * ) AS col0 FROM tab1
----
59
3

skipif mysql # not compatible
query II rowsort label-4755
SELECT MIN ( + ( + col2 ) ) AS col2, COUNT ( * ) AS col0 FROM tab1
----
59
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4756
SELECT ALL - 91 * - CAST( NULL AS DECIMAL ) + + 60, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4756
SELECT ALL - 91 * - CAST ( NULL AS REAL ) + + 60, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + COUNT( * ) + - MIN( 99 ) AS col2 FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + COUNT ( * ) + - MIN ( 99 ) AS col2 FROM tab0 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4759
SELECT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT + col2 DIV - col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT + col2 / - col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 95 - 49 AS col2 FROM tab0 AS cor0
----
-144
-144
-144

query I rowsort
SELECT + 76 + - col1 FROM tab2 AS cor0
----
-1
25
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 BETWEEN ( col0 / - - 97 + + - col0 + - col2 * - 30 ) AND NULL
----

query I rowsort
SELECT - 38 + col2 + 4 AS col2 FROM tab1
----
25
34
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - ( - col2 ) NOT IN ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 74 + - ( col0 ) * - col0 col1 FROM tab2
----
10583
5890
9794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * + col0 NOT IN ( + col1 * col0 + + col0 * 25 + + col0 + + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * ( ( - col2 ) ) FROM tab2 AS cor0 WHERE NOT ( col1 ) + - col2 + + col0 + + ( col1 ) * + col1 IS NULL
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT - - MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT - - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

query II rowsort
SELECT col1 * + 7 AS col1, col2 AS col1 FROM tab2 AS cor0
----
357
23
469
58
539
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( col1, 69 * + 51, - 58, + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT 71 AS col2, + col1 AS col1 FROM tab1
----
71
14
71
47
71
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4777
SELECT DISTINCT + COUNT( * ), 38 AS col1 FROM tab2 WHERE ( NULL ) IN ( ( CAST( + col1 AS SIGNED ) ) + - ( + - 73 ) )
----
0
38

skipif mysql # not compatible
query II rowsort label-4777
SELECT DISTINCT + COUNT ( * ), 38 AS col1 FROM tab2 WHERE ( NULL ) IN ( ( CAST ( + col1 AS INTEGER ) ) + - ( + - 73 ) )
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT MAX( DISTINCT - + ( - - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT MAX ( DISTINCT - + ( - - col2 ) ) FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT - + SUM( DISTINCT - + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - + SUM ( DISTINCT - + col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2 WHERE NULL IS NULL
----
17

query I rowsort
SELECT DISTINCT - 30 * + col1 AS col1 FROM tab1 AS cor0
----
-1410
-150
-420

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 52 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT + + col2 DIV 18 FROM tab0 cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4785
SELECT + + col2 / 18 FROM tab0 cor0
----
0
2
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT - + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4786
SELECT - + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT + 44 - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + 44 - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
44

query II rowsort
SELECT + 12 AS col0, col2 * - col2 FROM tab2 AS cor0
----
12
-1600
12
-3364
12
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL col2 + + - 92 + col2 - + - 24 - + ( + 58 ) + + + col2 * - - CAST( - 32 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1326
-1866
-816

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL col2 + + - 92 + col2 - + - 24 - + ( + 58 ) + + + col2 * - - CAST ( - 32 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1326
-1866
-816

query II rowsort
SELECT ALL - col0 AS col2, + col0 * + 96 * col0 FROM tab0 cor0
----
-15
21600
-87
726624
-97
903264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4791
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col2, + ( CAST( - col0 AS SIGNED ) ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-4791
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col2, + ( CAST ( - col0 AS INTEGER ) ) + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + + ( + col2 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT + 66 + SUM( ALL + col2 ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + 66 + SUM ( ALL + col2 ) FROM tab0
----
222

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4795
SELECT col1 * col2 DIV + col1 + CAST( + col2 AS SIGNED ), 41 + ( + 61 ) + - 83 * col2 - + + col1 + - 22 + - col2 AS col2 FROM tab2
----
116
-4859
46
-1903
80
-3357

skipif mysql # not compatible
query II rowsort label-4795
SELECT col1 * col2 / + col1 + CAST ( + col2 AS INTEGER ), 41 + ( + 61 ) + - 83 * col2 - + + col1 + - 22 + - col2 AS col2 FROM tab2
----
116
-4859
46
-1903
80
-3357

query I rowsort
SELECT + + 53 * col1 + + - col0 FROM tab1 WHERE NULL IS NULL
----
180
2400
691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT + 71 * - AVG ( + col1 ) + - ( + + ( + ( + + 81 ) ) ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT + 71 * - AVG ( + col1 ) + - ( + + ( + ( + + 81 ) ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT + CAST( col0 AS SIGNED ) + + - 93 AS col2 FROM tab2
----
-18
-29
-47

skipif mysql # not compatible
query I rowsort label-4798
SELECT + CAST ( col0 AS INTEGER ) + + - 93 AS col2 FROM tab2
----
-18
-29
-47

query I rowsort
SELECT DISTINCT + ( col1 ) * - + col1 AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - + 68 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL ( - 66 ) - + + COUNT( * ) AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL ( - 66 ) - + + COUNT ( * ) AS col0 FROM tab2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4802
SELECT ALL col2, + CAST( NULL AS SIGNED ) + - col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL col2, + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT ALL - col1 AS col2, - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-21
77
-81
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 < + - col0
----

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 < + - col0
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 63 AND ( NULL )
----

query I rowsort
SELECT + 1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT 61 * - + ( - + col2 ) AS col0 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT + 7 * col2 AS col0 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4812
SELECT + col2 * + - col2 * ( col1 ) + CAST( - col0 AS DECIMAL ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4812
SELECT + col2 * + - col2 * ( col1 ) + CAST ( - col0 AS REAL ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT + + 37 DIV + + COUNT( ALL - 93 ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4813
SELECT + + 37 / + + COUNT ( ALL - 93 ) AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + - SUM( DISTINCT col0 ) + - 36 / + 86 FROM tab1 cor0 WHERE NOT ( NULL ) = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT + - SUM ( DISTINCT col0 ) + - 36 / + 86 FROM tab1 cor0 WHERE NOT ( NULL ) = + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + MIN( + col1 ) FROM tab0 AS cor0 WHERE NULL <> + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + MIN ( + col1 ) FROM tab0 AS cor0 WHERE NULL <> + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4816
SELECT + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 4 FROM tab0 cor0
----
-4
-4
-4

query I rowsort
SELECT - - col2 + + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT + - MIN( ( - + 35 ) ) AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4819
SELECT + - MIN ( ( - + 35 ) ) AS col2 FROM tab1 AS cor0
----
35

query II rowsort
SELECT - + col1 AS col2, 62 + + + 89 * - 52 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-4566
-67
-4566
-77
-4566

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col2 + col0
----

query I rowsort
SELECT + 94 * + + col0 FROM tab2 AS cor0
----
4324
6016
7050

query I rowsort
SELECT ALL - col0 + + ( + col0 ) * - col0 + - col0 - + - col0 AS col2 FROM tab2
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT - COUNT( - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4824
SELECT - COUNT ( - col2 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col1 + - + col1 FROM tab0
----
0

query I rowsort
SELECT + - col2 * - - 88 * - + 80 + - + col0 - ( + + col2 ) + - col1 AS col2 FROM tab0 WHERE + + col1 = col1 - + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL - SUM( - col0 ) * + + 44 AS col1 FROM tab0 AS cor0
----
8756

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - SUM ( - col0 ) * + + 44 AS col1 FROM tab0 AS cor0
----
8756

query I rowsort
SELECT col0 + - - col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT 96 + + - col0 FROM tab1 AS cor0
----
11
45
5

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 38 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT col1 - - col1 / CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 WHERE + 11 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT col1 - - col1 / CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 WHERE + 11 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT DISTINCT - 15 DIV - 40 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - 15 / - 40 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col0 * - col0 AS col0, 67 AS col1 FROM tab1 cor0
----
-2601
67
-7225
67
-8281
67

query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) * - + col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4836
SELECT ALL - ( ( 9 ) ) col2, + CAST( + + 33 AS SIGNED ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9
33
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4836
SELECT ALL - ( ( 9 ) ) col2, + CAST ( + + 33 AS INTEGER ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9
33
3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL = + col0
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - 89 AS col2 FROM tab1
----
14
-89
47
-89
5
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT MIN( - - 26 ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4839
SELECT MIN ( - - 26 ) AS col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL - - 46 AS col1 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4841
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-9

query II rowsort
SELECT ALL - col2, - 31 FROM tab2 AS cor0 WHERE - 75 <> NULL
----

query I rowsort
SELECT 41 + 15 AS col2 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4844
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4845
SELECT + SUM( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4845
SELECT + SUM ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT + MIN( 31 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
31

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT + MIN ( 31 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
31

query I rowsort
SELECT - + 7 - col0 * + 31 FROM tab2 AS cor0
----
-1433
-1991
-2332

query I rowsort
SELECT col1 * col1 - col0 + - 59 + + col0 FROM tab2 cor0
----
2542
4430
5870

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / - col0 - - col1 + + - 45 IS NOT NULL
----

query I rowsort
SELECT - col2 + - - col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 13 + + + 29 AS col2 FROM tab0
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4853
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + 37 AS col2, ( + + MAX( col1 ) ) * - 21 + - + COUNT( * ) + + 12 AS col0 FROM tab1
----
NULL
-978

skipif mysql # not compatible
query II rowsort label-4853
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 37 AS col2, ( + + MAX ( col1 ) ) * - 21 + - + COUNT ( * ) + + 12 AS col0 FROM tab1
----
NULL
-978

query I rowsort
SELECT DISTINCT + col2 + col1 - - col0 AS col0 FROM tab1
----
149
161
206

query I rowsort
SELECT DISTINCT + 82 * - 69 FROM tab0
----
-5658

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + 47 * + - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4856
SELECT + 47 * + - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT ALL + col1 DIV + - col0 + + col0 - - 50 FROM tab2 cor0
----
113
125
95

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + col1 / + - col0 + + col0 - - 50 FROM tab2 cor0
----
113
125
95

query I rowsort
SELECT DISTINCT + + 51 - + col0 + - 24 FROM tab2 AS cor0
----
-19
-37
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT - COUNT( * ) * + 13 AS col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - COUNT ( * ) * + 13 AS col2 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT - + 58 AS col0 FROM tab2 AS cor0 WHERE NOT - 11 + + col1 IS NULL
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + 28 * + + col0 * + 91 AS col2 FROM tab0 cor0
----
221676
247156
38220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT - CAST( + MAX( + 73 ) AS SIGNED ) * - 88 FROM tab1 cor0
----
6424

skipif mysql # not compatible
query I rowsort label-4863
SELECT - CAST ( + MAX ( + 73 ) AS INTEGER ) * - 88 FROM tab1 cor0
----
6424

query II rowsort
SELECT + 90 AS col0, - col0 FROM tab0 AS cor0
----
90
-15
90
-87
90
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL + + ( - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + + ( - COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + - MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4866
SELECT + - MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL ( + - MIN( ALL CAST( NULL AS SIGNED ) ) ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4867
SELECT ALL ( + - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( col2 ) * - 17 + + col0 FROM tab0
----
-1586
-784
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - col1 * - 62 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - col1 * - 62 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL COUNT( DISTINCT + col1 ) * SUM( - - col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL COUNT ( DISTINCT + col1 ) * SUM ( - - col2 ) FROM tab1
----
669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT MAX( DISTINCT - 13 ) DIV + COUNT( * ) + + + 2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4871
SELECT MAX ( DISTINCT - 13 ) / + COUNT ( * ) + + + 2 FROM tab0
----
-2

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + - col2 * + col1 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col1 * - ( + 40 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT DISTINCT - 95 + - CAST( - 75 AS SIGNED ) - + col2 AS col1 FROM tab0 AS cor0
----
-119
-30
-67

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT - 95 + - CAST ( - 75 AS INTEGER ) - + col2 AS col1 FROM tab0 AS cor0
----
-119
-30
-67

query I rowsort
SELECT DISTINCT - 27 + + 32 FROM tab0
----
5

query I rowsort
SELECT DISTINCT + - col1 * col2 * + col0 - + col0 AS col1 FROM tab0 AS cor0
----
-18357
-57120
-9700

query I rowsort
SELECT + 61 AS col0 FROM tab1 AS cor0 WHERE + col2 * - 57 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 + - col2 AS col1, - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col1 + + col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4882
SELECT + 41 DIV ( + SUM( + 9 ) ) col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4882
SELECT + 41 / ( + SUM ( + 9 ) ) col1 FROM tab0 cor0
----
1

query II rowsort
SELECT DISTINCT - 33 AS col2, - 60 AS col0 FROM tab2 AS cor0
----
-33
-60

query I rowsort
SELECT DISTINCT 6 - + col1 AS col0 FROM tab1
----
-41
-8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT + ( - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT DISTINCT - + COUNT( * ) col0, - MIN( col0 ) FROM tab1 AS cor0
----
-3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4888
SELECT DISTINCT - + COUNT ( * ) col0, - MIN ( col0 ) FROM tab1 AS cor0
----
-3
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT DISTINCT - 91 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - 91 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-273

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= + col2 + + - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + + COUNT( col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4891
SELECT + + COUNT ( col2 ) col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col2, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT 9 * + col0 + + 63 AS col1 FROM tab0
----
198
846
936

query I rowsort
SELECT ALL col1 * + - col2 * 40 FROM tab0
----
-152280
-3960
-8400

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL + 88 DIV + 91 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + 88 / + 91 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 * - col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL 59 * + COUNT( * ) AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL 59 * + COUNT ( * ) AS col0 FROM tab0
----
177

query I rowsort
SELECT - + 18 AS col1 FROM tab1 WHERE NOT col1 + + - 79 IS NULL
----
-18
-18
-18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - col0 + - + ( + - 42 ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4900
SELECT ALL + + COUNT( * ), COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4900
SELECT ALL + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + MAX( ALL 96 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-4901
SELECT + MAX ( ALL 96 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT DISTINCT - CAST( 68 AS SIGNED ) + + col1 AS col0 FROM tab1
----
-21
-54
-63

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - CAST ( 68 AS INTEGER ) + + col1 AS col0 FROM tab1
----
-21
-54
-63

query I rowsort
SELECT DISTINCT 16 + + 36 FROM tab0
----
52

query I rowsort
SELECT - 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + MAX( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + MAX ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL 40 * 83 - COUNT( 10 ) FROM tab0 AS cor0
----
3317

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL 40 * 83 - COUNT ( 10 ) FROM tab0 AS cor0
----
3317

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT ALL - 13 * col0 DIV - - 61 AS col2 FROM tab1 AS cor0
----
-10
-18
-19

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - 13 * col0 / - - 61 AS col2 FROM tab1 AS cor0
----
-10
-18
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL + COUNT( * ) + + COUNT( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + COUNT ( * ) + + COUNT ( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
6

query II rowsort
SELECT col2 + + 84 AS col0, col0 AS col1 FROM tab2 AS cor0
----
107
46
124
64
142
75

query I rowsort
SELECT DISTINCT col1 + - 36 FROM tab2
----
15
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL MIN( DISTINCT - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL MIN ( DISTINCT - col2 ) FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col0 FROM tab1 WHERE NOT + - col0 IS NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT + 97 * col0 * col1 DIV ( 55 ) col0 FROM tab1
----
1259
749
7543

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4913
SELECT + 97 * col0 * col1 / ( 55 ) col0 FROM tab1
----
1259
749
7543

query II rowsort
SELECT - 60 AS col2, col2 AS col1 FROM tab0
----
-60
10
-60
47
-60
99

query II rowsort
SELECT DISTINCT - col2 AS col1, + 74 FROM tab0
----
-10
74
-47
74
-99
74

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - MIN( - 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-4917
SELECT - MIN ( - 90 ) FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL COUNT( DISTINCT - 37 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL COUNT ( DISTINCT - 37 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4919
SELECT ALL col2, col2 DIV col2 AS col1 FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-4919
SELECT ALL col2, col2 / col2 AS col1 FROM tab2
----
23
1
40
1
58
1

query II rowsort
SELECT DISTINCT - 51, col0 AS col0 FROM tab2
----
-51
46
-51
64
-51
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT + COUNT( DISTINCT - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + COUNT ( DISTINCT - - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + COUNT( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT 89 DIV ( - - 58 ) * col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4923
SELECT 89 / ( - - 58 ) * col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL 82 * + col1 AS col1 FROM tab2
----
4182
5494
6314

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT - COUNT( DISTINCT + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - COUNT ( DISTINCT + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - - 90 AS col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT - 12 AS col1 FROM tab2 AS cor0 WHERE NOT - 20 IS NULL
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - 79 col0 FROM tab1
----
14
-79
47
-79
5
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE ( NULL <= + ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + COUNT( col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4931
SELECT + COUNT ( col1 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + col0 * + - col1 - col0 = + col2 / 61
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT ALL - 47 + - 84 AS col1, MIN( DISTINCT + 21 ) + - - COUNT( * ) FROM tab2, tab0 AS cor0
----
-131
30

skipif mysql # not compatible
query II rowsort label-4933
SELECT ALL - 47 + - 84 AS col1, MIN ( DISTINCT + 21 ) + - - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-131
30

query I rowsort
SELECT ALL ( - 93 ) FROM tab1
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - 65 col1 FROM tab1
----
51
-65
85
-65
91
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4936
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 27 col1 FROM tab0 cor0
----
NULL
27
NULL
27
NULL
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4936
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 27 col1 FROM tab0 cor0
----
NULL
27
NULL
27
NULL
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT BETWEEN 30 * - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT + 72 / - - col2 + + + col0 + + + col0 + + + 48 + - CAST( NULL AS SIGNED ) * - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT + 72 / - - col2 + + + col0 + + + col0 + + + 48 + - CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT CAST( NULL AS SIGNED ) + - - 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT CAST ( NULL AS INTEGER ) + - - 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT CAST( - + 52 AS SIGNED ) + - MIN( - col1 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT CAST ( - + 52 AS INTEGER ) + - MIN ( - col1 ) FROM tab0 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT col2 + col0 DIV - 39 AS col1 FROM tab0
----
47
8
97

skipif mysql # not compatible
query I rowsort label-4941
SELECT col2 + col0 / - 39 AS col1 FROM tab0
----
47
8
97

query I rowsort
SELECT ALL 1 * ( + + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT DISTINCT - col0 * col1 DIV 38 - + - 46 FROM tab1 AS cor0
----
-66
28
35

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - col0 * col1 / 38 - + - 46 FROM tab1 AS cor0
----
-66
28
35

query I rowsort
SELECT DISTINCT - - col0 * + col2 + + col1 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT - + ( col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT DISTINCT + COUNT( * ) * COUNT( * ) DIV + - 52 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) / + - 52 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col1 * + 9 AS col2 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT - CAST( NULL AS SIGNED ) * + + 36 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT - CAST ( NULL AS INTEGER ) * + + 36 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT + + COUNT( * ) + - MAX( - col2 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + + COUNT ( * ) + - MAX ( - col2 ) FROM tab1 AS cor0
----
62

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT + col0 - + 69 FROM tab0 AS cor0
----
-54
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - MAX( col0 ) * - - ( + 78 ) + + - COUNT( * ) AS col0 FROM tab2
----
-5853

skipif mysql # not compatible
query I rowsort label-4952
SELECT - MAX ( col0 ) * - - ( + 78 ) + + - COUNT ( * ) AS col0 FROM tab2
----
-5853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4953
SELECT ALL COUNT( * ) DIV + MAX( ALL col2 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4953
SELECT ALL COUNT ( * ) / + MAX ( ALL col2 ) col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 12 col1 FROM tab2
----
612
804
924

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - 3 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT + + CAST( - ( - 43 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4956
SELECT + + CAST ( - ( - 43 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - + col0 * - - col2 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / - + col0 IS NULL
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL - 69, + col2 FROM tab2
----
-69
23
-69
40
-69
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT COUNT( * ) DIV - + SUM( + + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT COUNT ( * ) / - + SUM ( + + col1 ) FROM tab1
----
0

query I rowsort
SELECT ALL ( + 51 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - + COUNT( ALL - col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT ALL - + COUNT ( ALL - col1 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4964
SELECT DISTINCT - - col0, CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT - - col0, CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT - 38 AS col2, + 72 FROM tab0 AS cor0
----
-38
72
-38
72
-38
72

query III rowsort
SELECT * FROM tab2 WHERE - - 81 IS NULL
----

query II rowsort
SELECT col2 - + + col1 AS col2, col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 28 * - 66 * - ( - col0 ) + + col0 AS col1 FROM tab0
----
160863
179353
27735

query I rowsort
SELECT DISTINCT col1 + - + col0 + + - ( + col1 ) * - 57 * - col0 * col2 FROM tab0
----
-1041456
-3254919
-547467

query I rowsort
SELECT ALL col1 + + col1 + + col1 AS col0 FROM tab0
----
243
3
63

query I rowsort
SELECT ALL - 10 * - ( - col2 ) AS col1 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT + col2 + + - col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT - COUNT( * ) * 63 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-567

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - COUNT ( * ) * 63 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-567

query I rowsort
SELECT DISTINCT - col0 + - 7 AS col1 FROM tab2
----
-53
-71
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT + COUNT( * ) * - 20 - COUNT( col1 ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + COUNT ( * ) * - 20 - COUNT ( col1 ) AS col2 FROM tab1
----
-63

query I rowsort
SELECT DISTINCT - col2 - 62 AS col0 FROM tab0
----
-109
-161
-72

query I rowsort
SELECT DISTINCT - col2 - - 88 - - - col1 FROM tab0 AS cor0
----
-12
-40
57

query I rowsort
SELECT + col1 + + col0 * 34 AS col2 FROM tab0 AS cor0
----
2979
3299
591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL 8 - + + col0 + + 80 + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL 8 - + + col0 + + 80 + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT + COUNT( * ) * 67 - - + SUM( DISTINCT + - 51 ) AS col2 FROM tab1 cor0
----
150

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT + COUNT ( * ) * 67 - - + SUM ( DISTINCT + - 51 ) AS col2 FROM tab1 cor0
----
150

query I rowsort
SELECT 61 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT - + COUNT( * ) / - + CAST( NULL AS SIGNED ) * - + MIN( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT - + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * - + MIN ( col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT DISTINCT + ( + CAST( ( 31 ) AS SIGNED ) ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + ( + CAST ( ( 31 ) AS INTEGER ) ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT MIN( DISTINCT + - ( + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4985
SELECT MIN ( DISTINCT + - ( + col1 ) ) FROM tab2
----
-77

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT - col1 DIV - 72 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4987
SELECT - col1 / - 72 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT COUNT( + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4988
SELECT COUNT ( + col0 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) / - + 48 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) / - + 48 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM tab1
----
-2

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( col2 IS NULL )
----
14
47
5

query II rowsort
SELECT col0 AS col1, col2 * - - col1 - - 87 FROM tab1
----
51
1431
85
382
91
3283

query II rowsort
SELECT ALL - 88 AS col2, + 1 FROM tab1 WHERE col0 IS NOT NULL
----
-88
1
-88
1
-88
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 69 + + 24 NOT BETWEEN NULL AND - + 17 + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + MIN( - 91 ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4995
SELECT + MIN ( - 91 ) FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) < col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT col2 * + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT col2 * + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 33 AS col1, - 1 FROM tab0
----
33
-1
33
-1
33
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + MIN( + ( + col2 ) ) + - 55 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + MIN ( + ( + col2 ) ) + - 55 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - ( + - COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5003
SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - - 65 * + + 35 NOT BETWEEN 13 + 45 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT ALL - - 11, - SUM( + + col2 ) AS col2 FROM tab0 AS cor0
----
11
-156

skipif mysql # not compatible
query II rowsort label-5006
SELECT ALL - - 11, - SUM ( + + col2 ) AS col2 FROM tab0 AS cor0
----
11
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5007
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT + COUNT( * ) * + MAX( + 84 ) FROM tab0 cor0
----
252

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + COUNT ( * ) * + MAX ( + 84 ) FROM tab0 cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 77 * 80 * - col1 col1 FROM tab1 AS cor0
----
-289520
-30800
-86240

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL ( + - COUNT( ALL - - 19 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL ( + - COUNT ( ALL - - 19 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL - col1 * - 19 FROM tab1
----
266
893
95

query II rowsort
SELECT ALL - col2, 37 * 56 AS col1 FROM tab1 WHERE NOT - + col1 / - 73 + col0 + + - col0 = + - col0
----
-59
2072
-68
2072
-96
2072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5014
SELECT ALL COUNT( * ) DIV - + 67 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL COUNT ( * ) / - + 67 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5015
SELECT DISTINCT - COUNT( ALL - CAST( 30 AS SIGNED ) ) DIV - + ( + 44 ) * + + 9 * 56 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - COUNT ( ALL - CAST ( 30 AS INTEGER ) ) / - + ( + 44 ) * + + 9 * 56 FROM tab0
----
0

query I rowsort
SELECT ALL 83 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
83
83
83

query II rowsort
SELECT - col0 AS col2, - 15 * + - col0 * - col0 FROM tab1
----
-51
-39015
-85
-108375
-91
-124215

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - + col0 + - ( + + col1 ) * + ( + col2 ) NOT BETWEEN ( NULL ) AND 2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - + ( + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77
2
32

query II rowsort
SELECT - + col1 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5022
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - 48 AS SIGNED ) * + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5022
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - 48 AS INTEGER ) * + + col0 IS NOT NULL
----

query I rowsort
SELECT - 61 * + ( 62 ) AS col1 FROM tab0 cor0
----
-3782
-3782
-3782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT - + col0 * - - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 37 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col0 FROM tab1 AS cor0
----
63

query II rowsort
SELECT DISTINCT + col2 AS col0, + 8 * col0 FROM tab1 cor0
----
59
680
68
728
96
408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col1 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT ALL + col0 * + col2 + + ( - + 4 ) AS col1 FROM tab2 cor0
----
1054
2556
4346

query II rowsort
SELECT col1 + + + 24, col2 + - + col1 AS col0 FROM tab0 AS cor0
----
105
-34
25
98
45
-11

query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) + 97 * + col1 * + - col0 AS col2 FROM tab1
----
-41310
-414960
-69309

query I rowsort
SELECT - col2 + + - ( col1 ) FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + 48 - ( + 82 ) + - - col1 FROM tab2
----
17
33
43

query II rowsort
SELECT DISTINCT col0 - 3 AS col0, + col2 * + col1 AS col0 FROM tab1 AS cor0
----
48
1344
82
295
88
3196

query I rowsort
SELECT ALL + col0 - + col2 * + - 46 * - + col1 AS col2 FROM tab1 AS cor0
----
-13485
-146925
-61773

query II rowsort
SELECT 83, + 52 * 53 AS col2 FROM tab0
----
83
2756
83
2756
83
2756

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5039
SELECT ALL * FROM tab2 WHERE + 83 / 12 BETWEEN NULL AND - CAST( NULL AS DECIMAL ) * 41 / col1 * col2
----

skipif mysql # not compatible
query III rowsort label-5039
SELECT ALL * FROM tab2 WHERE + 83 / 12 BETWEEN NULL AND - CAST ( NULL AS REAL ) * 41 / col1 * col2
----

query II rowsort
SELECT 47 + + col2, + 2 - - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 23 AS col0, - 82 AS col0 FROM tab0 cor0
----
23
-82

query II rowsort
SELECT col2 AS col0, 34 * - 61 AS col0 FROM tab2 AS cor0
----
23
-2074
40
-2074
58
-2074

query I rowsort
SELECT - ( - - 32 ) AS col1 FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT col2 * - col0 / - - CAST( - 32 AS SIGNED ) - + 25 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-5044
SELECT col2 * - col0 / - - CAST ( - 32 AS INTEGER ) - + 25 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 48 * - 24 * - - col2 * - - col1 FROM tab0
----
-114048
-241920
-4385664

query I rowsort
SELECT ALL + ( + col1 ) * + + 91 AS col2 FROM tab0
----
1911
7371
91

query II rowsort
SELECT DISTINCT col0 * + - col2 AS col0, col2 FROM tab0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT DISTINCT - MIN( ALL - + col2 ) DIV - 23 AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT - MIN ( ALL - + col2 ) / - 23 AS col2 FROM tab2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5050
SELECT + SUM( - CAST( NULL AS DECIMAL ) ) * - + 51 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT + SUM ( - CAST ( NULL AS REAL ) ) * - + 51 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col0 * + col1 * + 16 FROM tab2
----
37536
78848
80400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * + - col0 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * 73 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + 45 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + + COUNT( * ) * - 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5058
SELECT + + COUNT ( * ) * - 25 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT + + col0 AS col0, 52 AS col0 FROM tab2 AS cor0
----
46
52
64
52
75
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + + COUNT( * ) * + 63 AS col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-5060
SELECT + + COUNT ( * ) * + 63 AS col1 FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL 30 + + col2 AS col1 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT - SUM( - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - SUM ( - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL - + COUNT( * ) - - + CAST( NULL AS SIGNED ) / 41 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) / 41 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT ALL + col0 DIV 57 + - + col2 AS col0 FROM tab0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + col0 / 57 + - + col2 AS col0 FROM tab0
----
-47
-9
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 42 * - - 20 * + col0 col0 FROM tab1
----
42789
71315
76349

query I rowsort
SELECT DISTINCT + + col0 - - ( 10 ) FROM tab2 AS cor0
----
56
74
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 30 + - col2 col0 FROM tab2 AS cor0
----
1160
1682
667

query I rowsort
SELECT - - 42 + - col2 FROM tab2 AS cor0
----
-16
19
2

query I rowsort
SELECT + 35 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL MAX( DISTINCT + 84 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL MAX ( DISTINCT + 84 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL - SUM( DISTINCT - + 64 ) AS col1 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - SUM ( DISTINCT - + 64 ) AS col1 FROM tab1 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 12 * - 48 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + 21 FROM tab1 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 48 * - col0 col0 FROM tab2 AS cor0 WHERE + ( + 95 ) * - 31 IS NOT NULL
----
2185
3032
3542

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT + col2 IS NULL
----
51
85
91

query II rowsort
SELECT ALL - col0, ( col2 ) + - col2 AS col2 FROM tab0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5077
SELECT DISTINCT + COUNT( * ) AS col2, MIN( DISTINCT - col2 ) AS col2 FROM tab0
----
3
-99

skipif mysql # not compatible
query II rowsort label-5077
SELECT DISTINCT + COUNT ( * ) AS col2, MIN ( DISTINCT - col2 ) AS col2 FROM tab0
----
3
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5078
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab2, tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5078
SELECT CAST ( NULL AS REAL ) col2 FROM tab2, tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5079
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - SUM( DISTINCT - - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - SUM ( DISTINCT - - col1 ) FROM tab2
----
-195

query I rowsort
SELECT col2 + - 57 + + col0 * - + col1 + + - 0 AS col1 FROM tab1 AS cor0
----
-423
-4266
-675

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 NOT BETWEEN + col2 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + COUNT( * ) + - - COUNT( ALL - 42 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5083
SELECT + COUNT ( * ) + - - COUNT ( ALL - 42 ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL col1 * 87 * - - col1 * - col2 + col0 + col0 + + col1 FROM tab1 AS cor0
----
-128150
-13068215
-1636876

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT COUNT( 89 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5085
SELECT COUNT ( 89 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5086
SELECT * FROM tab1 WHERE NOT + 12 * + CAST( col2 AS SIGNED ) BETWEEN ( 3 ) AND ( + col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5086
SELECT * FROM tab1 WHERE NOT + 12 * + CAST ( col2 AS INTEGER ) BETWEEN ( 3 ) AND ( + col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT COUNT( * ) * + 57 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT COUNT ( * ) * + 57 FROM tab0
----
171

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 2 NOT BETWEEN - 0 + col1 * col1 AND ( ( + col1 ) * - col0 + 46 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col2 col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT COUNT( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5090
SELECT COUNT ( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT 82 * COUNT( * ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT 82 * COUNT ( * ) FROM tab1
----
246

query I rowsort
SELECT col1 + 41 FROM tab0
----
122
42
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT col1 DIV + 75 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT col1 / + 75 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT + 61 DIV col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 61 / col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5095
SELECT DISTINCT * FROM tab0 WHERE ( + 82 ) NOT BETWEEN CAST( + 27 AS SIGNED ) AND + col2 / 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5095
SELECT DISTINCT * FROM tab0 WHERE ( + 82 ) NOT BETWEEN CAST ( + 27 AS INTEGER ) AND + col2 / 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + col2 ) + - 35 FROM tab0 WHERE - ( col1 ) BETWEEN ( - col2 ) AND 65
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT CAST( NULL AS SIGNED ) * + 91 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT CAST ( NULL AS INTEGER ) * + 91 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 25 + - col2 AS col2 FROM tab2
----
-1298
-1733
-1965

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT 12 * COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5099
SELECT 12 * COUNT ( * ) FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT + 98 * 95 + + COUNT( ALL col2 ) FROM tab2
----
9313

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT + 98 * 95 + + COUNT ( ALL col2 ) FROM tab2
----
9313

query I rowsort
SELECT col2 * col2 + + 58 FROM tab1
----
3539
4682
9274

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL 47 + + COUNT( * ) col2 FROM tab2
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5102
SELECT ALL 47 + + COUNT ( * ) col2 FROM tab2
----
50

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 WHERE col1 > col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT CAST( 79 AS SIGNED ) FROM tab2
----
79
79
79

skipif mysql # not compatible
query I rowsort label-5105
SELECT CAST ( 79 AS INTEGER ) FROM tab2
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5106
SELECT ALL - CAST( + col0 AS SIGNED ) DIV + 53 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - CAST ( + col0 AS INTEGER ) / + 53 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + col0 + 91 FROM tab0
----
106
178
188

query I rowsort
SELECT ( + 92 ) FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5109
SELECT DISTINCT 99 DIV - CAST( MAX( DISTINCT col0 ) AS SIGNED ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT 99 / - CAST ( MAX ( DISTINCT col0 ) AS INTEGER ) AS col0 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) BETWEEN 6 * col2 + - col0 AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL COUNT( * ) - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5114
SELECT - 9 FROM tab1 AS cor0 WHERE NOT - col0 - - col1 = - col0 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 9 FROM tab1 AS cor0 WHERE NOT - col0 - - col1 = - col0 * CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - col2 ) ) + + col2 col1 FROM tab1 AS cor0 WHERE col0 BETWEEN col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT - COUNT( * ) * 90 AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - COUNT ( * ) * 90 AS col0 FROM tab2
----
-270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 + - col1 * + 8 ) IN ( + ( col0 ) )
----

query I rowsort
SELECT col2 + 41 * 41 AS col2 FROM tab2 AS cor0 WHERE NOT + 35 * col2 - - col0 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 51 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5120
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) / col2 <> ( col0 )
----

skipif mysql # not compatible
query III rowsort label-5120
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) / col2 <> ( col0 )
----

query I rowsort
SELECT ALL 84 * ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE col0 * + 46 <> + col1 + col0
----
-1932
-3360
-4872

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 71 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT DISTINCT + + col2 * - 87 + + col2 * - CAST( ( 89 ) + 62 AS SIGNED ) FROM tab1 cor0
----
-14042
-16184
-22848

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + + col2 * - 87 + + col2 * - CAST ( ( 89 ) + 62 AS INTEGER ) FROM tab1 cor0
----
-14042
-16184
-22848

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL COUNT( * ) + - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL COUNT ( * ) + - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5128
SELECT col2 * col2 - col1 col2 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5128
SELECT col2 * col2 - col1 col2 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT + 22 AS col2 FROM tab1
----
22
22
22

query I rowsort
SELECT ALL col0 + - col2 * + col2 FROM tab2
----
-1536
-3289
-483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL + CAST( + 12 AS SIGNED ) AS col2 FROM tab1
----
12
12
12

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + CAST ( + 12 AS INTEGER ) AS col2 FROM tab1
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - 69 * - COUNT( * ) * - 25 AS col0 FROM tab0
----
-5175

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 69 * - COUNT ( * ) * - 25 AS col0 FROM tab0
----
-5175

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 82 ) <= col0 * col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND 52
----

query I rowsort
SELECT + - 35 * - 95 AS col1 FROM tab0 AS cor0
----
3325
3325
3325

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 AS cor0 WHERE NOT 0 IN ( + 77 )
----
-28
-28
-28

query I rowsort
SELECT 59 AS col1 FROM tab2 AS cor0 WHERE + 87 * col2 IS NOT NULL
----
59
59
59

query I rowsort
SELECT ALL 13 AS col1 FROM tab0 cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - + MAX( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - + MAX ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5142
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL + ( - COUNT( * ) ) FROM tab1 WHERE + col1 * col0 >= - 90 + 95
----
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 WHERE + col1 * col0 >= - 90 + 95
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5145
SELECT DISTINCT COUNT( * ) + + 31 DIV + - COUNT( * ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT COUNT ( * ) + + 31 / + - COUNT ( * ) AS col0 FROM tab1
----
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 10 + - 40 * - ( - 17 ) ) NOT BETWEEN ( 69 + - col2 ) AND + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT + - col2 * - - col1 * 18 * CAST( ( 4 ) / col1 AS SIGNED ) FROM tab0 AS cor0
----
-7128
0
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT + - col2 * - - col1 * 18 * CAST ( ( 4 ) / col1 AS INTEGER ) FROM tab0 AS cor0
----
-7128
0
0

query I rowsort
SELECT DISTINCT + - col1 * + col0 - + + col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - COUNT( * ) * + + 87 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-5149
SELECT - COUNT ( * ) * + + 87 FROM tab0 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + COUNT( * ) * + - 63 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5150
SELECT + COUNT ( * ) * + - 63 FROM tab2 AS cor0
----
-189

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL + col2 DIV + 13 AS col0 FROM tab1 AS cor0
----
4
5
7

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + col2 / + 13 AS col0 FROM tab1 AS cor0
----
4
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + + 2 * - + 73 * + + COUNT( col1 ) + COUNT( * ) FROM tab0 AS cor0
----
-435

skipif mysql # not compatible
query I rowsort label-5153
SELECT + + 2 * - + 73 * + + COUNT ( col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
-435

query I rowsort
SELECT ALL col1 - 7 - + - 50 FROM tab2 AS cor0
----
110
120
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT MAX( col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5155
SELECT MAX ( col0 ) FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT - + 95 * + col0 - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - COUNT( * ) * 75 AS col1 FROM tab0 cor0 WHERE ( - col0 + - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5157
SELECT - COUNT ( * ) * 75 AS col1 FROM tab0 cor0 WHERE ( - col0 + - col0 ) IS NULL
----
0

query I rowsort
SELECT ALL + ( 45 ) * + col0 * - col2 * + col2 FROM tab0
----
-1491075
-391500
-42781365

query II rowsort
SELECT DISTINCT ( + col0 ), - col1 + + col1 AS col1 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT 24 DIV + ( ( col2 ) ) - col2 * + col0 AS col2 FROM tab0
----
-705
-868
-9603

skipif mysql # not compatible
query I rowsort label-5160
SELECT 24 / + ( ( col2 ) ) - col2 * + col0 AS col2 FROM tab0
----
-705
-868
-9603

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 ) AND NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL 61 * COUNT( * ) AS col1 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL 61 * COUNT ( * ) AS col1 FROM tab2
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 88 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 88 col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 + - col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL 28 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL 28 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 + - 60 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5168
SELECT ALL 30 * - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL 30 * - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT DISTINCT 5 DIV + 15 + - COUNT( * ) + 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT 5 / + 15 + - COUNT ( * ) + 96 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 NOT IN ( + col0 + 22 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + + 47 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col0 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + - COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5174
SELECT + - COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT + ( - 35 ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5176
SELECT + ( - 35 ) / + + COUNT ( * ) FROM tab2 AS cor0
----
-11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 - - col2 + + + 34 + - + col2 * - 17 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT DISTINCT 62 DIV + SUM( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT 62 / + SUM ( col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL + + CAST( - MAX( + + col0 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + + CAST ( - MAX ( + + col0 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL - 55 FROM tab0 WHERE - col0 * - col1 < NULL
----

query I rowsort
SELECT DISTINCT 53 + + 44 AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( + col0 - + col1 + 19 * - col2 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT MIN( ALL col0 ) + - + COUNT( * ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT MIN ( ALL col0 ) + - + COUNT ( * ) AS col2 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT COUNT( - 0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT COUNT ( - 0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( - ( - col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT DISTINCT ( + CAST( + 41 AS SIGNED ) ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT ( + CAST ( + 41 AS INTEGER ) ) FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT 5 + - - COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-5186
SELECT 5 + - - COUNT ( * ) FROM tab0
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 31 + - + col1 + - 66 - - 50 * - col1 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + ( - - 59 ) FROM tab2 cor0
----
-16
-5
13

query I rowsort
SELECT ALL - - col2 + col1 * + 16 FROM tab1 cor0
----
139
320
820

query I rowsort
SELECT ALL + col0 + + 69 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 52 / 31 * + col1 = + 59
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 52 / 31 * + col1 = + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - + COUNT( - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5192
SELECT - + COUNT ( - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2 WHERE + 85 * 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT 28 * - 20 - + COUNT( * ) + + COUNT( - - col0 ) FROM tab2
----
-560

skipif mysql # not compatible
query I rowsort label-5194
SELECT 28 * - 20 - + COUNT ( * ) + + COUNT ( - - col0 ) FROM tab2
----
-560

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL AND NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 38 + + 66 AS col0 FROM tab2 AS cor0
----
28
28
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 57 ) * + col0 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5199
SELECT DISTINCT + col1 - + col1 + - + 7 AS col2, col0 * + CAST( NULL AS SIGNED ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 76a5c231e86318e45766eaa292275691

skipif mysql # not compatible
query III rowsort label-5199
SELECT DISTINCT + col1 - + col1 + - + 7 AS col2, col0 * + CAST ( NULL AS INTEGER ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 76a5c231e86318e45766eaa292275691

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 90 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5201
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 47 ) IN ( CAST( + - col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5201
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 47 ) IN ( CAST ( + - col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - + col1
----

query II rowsort
SELECT DISTINCT - 37, - col1 AS col0 FROM tab1
----
-37
-14
-37
-47
-37
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + COUNT( DISTINCT + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + COUNT ( DISTINCT + - col2 ) FROM tab2
----
3

query I rowsort
SELECT + 59 * + - col0 AS col0 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5206
SELECT ALL * FROM tab2 WHERE + col2 + 45 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5206
SELECT ALL * FROM tab2 WHERE + col2 + 45 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL - CAST( + 91 AS SIGNED ) * ( 48 ) + - ( - + col1 ) AS col1 FROM tab1
----
-4321
-4354
-4363

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - CAST ( + 91 AS INTEGER ) * ( 48 ) + - ( - + col1 ) AS col1 FROM tab1
----
-4321
-4354
-4363

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT col1 DIV - + col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5208
SELECT col1 / - + col1 AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * col1 col2 FROM tab0
----
1944
24
504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 93 + + 61 FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( col2 ) AND NOT NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5212
SELECT DISTINCT + 51 AS col2, SUM( DISTINCT col2 ) FROM tab1 cor0
----
51
223

skipif mysql # not compatible
query II rowsort label-5212
SELECT DISTINCT + 51 AS col2, SUM ( DISTINCT col2 ) FROM tab1 cor0
----
51
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT - - SUM( 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-5213
SELECT - - SUM ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT ALL - - ( - CAST( + + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - - ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col0 AS col1, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ( + ( - col1 ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT 92 col0, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * + 4 * 66 ) IS NOT NULL
----
92
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5218
SELECT 92 col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * + 4 * 66 ) IS NOT NULL
----
92
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 53 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + - col2 + - col2 IN ( + col1, col0, + + ( + col1 ) )
----

query I rowsort
SELECT - - 66 + + + 19 + - + col0 FROM tab1 AS cor0
----
-6
0
34

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 > 10
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5223
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - + col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab1 AS cor0
----
81
81
81

query II rowsort
SELECT 0 AS col2, - 93 * + col2 AS col2 FROM tab1
----
0
-5487
0
-6324
0
-8928

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 69 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 WHERE ( + ( CAST( - + col0 AS SIGNED ) ) * - col1 + + - col0 ) IN ( 54, + CAST( + - 58 AS SIGNED ) * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE ( + ( CAST ( - + col0 AS INTEGER ) ) * - col1 + + - col0 ) IN ( 54, + CAST ( + - 58 AS INTEGER ) * col0 )
----
0

query I rowsort
SELECT DISTINCT - 51 + + - 1 AS col1 FROM tab1
----
-52

query I rowsort
SELECT ALL - 1 * + ( + col1 ) + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - COUNT( ALL + + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - COUNT ( ALL + + col0 ) FROM tab2
----
-3

query II rowsort
SELECT ALL - 50, col0 AS col0 FROM tab1 AS cor0
----
-50
51
-50
85
-50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 11 / col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 11 / col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - - 57 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT - col0 + - col0 + - col0 + + 11 * - + col2 AS col0 FROM tab0 AS cor0
----
-1380
-371
-562

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT ALL + 45 DIV - 66 * - 48 + - col2 * ( 65 ) FROM tab1 AS cor0
----
-3835
-4420
-6240

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + 45 / - 66 * - 48 + - col2 * ( 65 ) FROM tab1 AS cor0
----
-3835
-4420
-6240

query III rowsort
SELECT * FROM tab1 WHERE + 85 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * - col0 + 15 + + ( - 43 ) col0 FROM tab0
----
1217
7193
8023

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN 61 AND - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - AVG ( ALL + col2 ) AS col2 FROM tab2 WHERE + 79 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - 78 + + col2 AS col0 FROM tab0
----
-47
22
50

query I rowsort
SELECT - 27 * - + col2 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

query II rowsort
SELECT DISTINCT col0, - col0 AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT + - 47 * 71 AS col1 FROM tab0 cor0
----
-3337
-3337
-3337

query II rowsort
SELECT + col2 AS col1, - col0 * + - col2 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

query I rowsort
SELECT + + col2 * - 1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 26 * - - 77 AS col2 FROM tab0 AS cor0
----
2002
2002
2002

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT - 30 AS col2, COUNT( DISTINCT + 80 ) * + + 28 + + ( + ( - 78 ) ) AS col1 FROM tab2 AS cor0
----
-30
-50

skipif mysql # not compatible
query II rowsort label-5248
SELECT - 30 AS col2, COUNT ( DISTINCT + 80 ) * + + 28 + + ( + ( - 78 ) ) AS col1 FROM tab2 AS cor0
----
-30
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab2 AS cor0
----
39

query I rowsort
SELECT - ( + 41 ) + - - col0 AS col2 FROM tab2 WHERE NOT ( NOT 72 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - - col0 col2, 39 * + 13 AS col0 FROM tab1
----
2601
507
7225
507
8281
507

query I rowsort
SELECT DISTINCT ( + 17 ) * - col0 * + - col1 AS col2 FROM tab0
----
1649
20655
31059

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5255
SELECT ALL * FROM tab0 cor0 WHERE 11 * 59 BETWEEN NULL AND - CAST( - ( - col1 ) AS SIGNED ) + + 69
----

skipif mysql # not compatible
query III rowsort label-5255
SELECT ALL * FROM tab0 cor0 WHERE 11 * 59 BETWEEN NULL AND - CAST ( - ( - col1 ) AS INTEGER ) + + 69
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = - 46 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 85 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * 62 AS col2 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT ALL + col1 * + 83 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT CAST( NULL AS SIGNED ) / + SUM( DISTINCT + 60 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + 60 ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT col0 DIV + + col2 col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5262
SELECT col0 / + + col2 col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5263
SELECT ALL col2, - ( - - CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5263
SELECT ALL col2, - ( - - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT 2 * - - COUNT( * ) FROM tab0 AS cor0 WHERE col0 * - 38 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5264
SELECT 2 * - - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 * - 38 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT - CAST( + 2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5266
SELECT - CAST ( + 2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 18 < 40 * + + col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT DISTINCT 15, MIN( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
15
-47

skipif mysql # not compatible
query II rowsort label-5268
SELECT DISTINCT 15, MIN ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
15
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT + 83 DIV col1 * + 37 * + col0 AS col1 FROM tab2 AS cor0
----
1702
2368
2775

skipif mysql # not compatible
query I rowsort label-5269
SELECT + 83 / col1 * + 37 * + col0 AS col1 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL COUNT( DISTINCT 28 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL COUNT ( DISTINCT 28 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + + 30 + 67 * - + col0 AS col0 FROM tab2 AS cor0
----
-3052
-4258
-4995

query I rowsort
SELECT ALL + ( + col2 ) + + col1 FROM tab0
----
100
128
31

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE 79 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 38 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + 91 FROM tab2
----
33
51
68

query I rowsort
SELECT + - col0 FROM tab2 WHERE + + col0 IN ( col1, - col0, - 24 )
----

query I rowsort
SELECT DISTINCT + col0 + - 37 FROM tab2
----
27
38
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5278
SELECT + 27 * + - MAX( ALL - - 72 ) + - MAX( DISTINCT + - col0 ) * - CAST( NULL AS DECIMAL ) / + COUNT( * ) / ( + + 48 ) + - - ( - 22 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 27 * + - MAX ( ALL - - 72 ) + - MAX ( DISTINCT + - col0 ) * - CAST ( NULL AS REAL ) / + COUNT ( * ) / ( + + 48 ) + - - ( - 22 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 34 + - col2 AS col1 FROM tab0 AS cor0
----
-13
-65
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col2 + - 77 FROM tab0 AS cor0
----
-124
-176
-87

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NOT + 54 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - ( + 39 ) - + + col0 AS col1 FROM tab1
----
-124
-130
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL CAST( NULL AS SIGNED ) - MAX( + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL CAST ( NULL AS INTEGER ) - MAX ( + col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5286
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5286
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT DISTINCT + + 9, - COUNT( * ) * - 97 AS col1 FROM tab0 AS cor0
----
9
291

skipif mysql # not compatible
query II rowsort label-5287
SELECT DISTINCT + + 9, - COUNT ( * ) * - 97 AS col1 FROM tab0 AS cor0
----
9
291

query I rowsort
SELECT DISTINCT + ( - 75 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT 57 * - - ( col2 ) AS col2 FROM tab1 cor0
----
3363
3876
5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab0 cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5292
SELECT * FROM tab2 WHERE NOT - + ( - col2 ) + ( + col0 ) + col0 * - + 93 IN ( - col0 + + + col0, - col1, - + col2 * - - ( col1 ) + col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5292
SELECT * FROM tab2 WHERE NOT - + ( - col2 ) + ( + col0 ) + col0 * - + 93 IN ( - col0 + + + col0, - col1, - + col2 * - - ( col1 ) + col0 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT + ( 16 ) DIV + col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5293
SELECT + ( 16 ) / + col2 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 NOT IN ( ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL 0 AS col2, col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 71 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - col0 >= - + 73 + col2 * - 80 - + 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT ALL + col0 FROM tab1 AS cor0 WHERE CAST( 50 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + col0 FROM tab1 AS cor0 WHERE CAST ( 50 AS INTEGER ) IS NULL
----

query II rowsort
SELECT col1 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + col1 * col0 - + - col0 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT ( 92 ) AS col1 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + MAX( + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5303
SELECT + MAX ( + col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT + col1, - col2 + + col1 FROM tab0 AS cor0
----
1
-98
21
11
81
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - - col0 - - + col0 * - - 43 + + col0
----

query I rowsort
SELECT DISTINCT + col1 * - 99 + 25 AS col0 FROM tab1 AS cor0
----
-1361
-4628
-470

query III rowsort
SELECT ( - col1 ) AS col0, 89 AS col0, + 4 AS col2 FROM tab2 cor0
----
9 values hashing to d30a9dc9ff7276eb840e65ca878af565

query I rowsort
SELECT ALL 82 * - col2 AS col1 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT + col1 * - col2 * + + col0 FROM tab0 cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT 89 + - + col0 FROM tab2 AS cor0
----
14
25
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL + + col1 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + + col1 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 64 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL COUNT( * ) FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL COUNT ( * ) FROM tab2, tab2 cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT DISTINCT COUNT( * ) DIV 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT COUNT ( * ) / 99 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - 67 + col0 AS col0 FROM tab0 AS cor0
----
-52
20
30

query I rowsort
SELECT 18 / + + 67 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN + 41 * ( - col2 ) AND col0 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT + 36 DIV - 35 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5318
SELECT + 36 / - 35 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - SUM( ALL - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5320
SELECT - SUM ( ALL - col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT col0 * - ( ( col2 ) ) - - col0 * - - col0 + col0 FROM tab2 cor0
----
1104
1350
1600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5322
SELECT ALL - + 0 / + col1 * CAST( NULL AS DECIMAL ) + - col0 / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - + 0 / + col1 * CAST ( NULL AS REAL ) + - col0 / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT DISTINCT ( + 88 ) AS col1, - ( MAX( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
88
5

skipif mysql # not compatible
query II rowsort label-5323
SELECT DISTINCT ( + 88 ) AS col1, - ( MAX ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT - COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5324
SELECT - COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( + + 54 ) * + - 83 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - + ( - col1 ), - col1 )
----

query I rowsort
SELECT 28 AS col2 FROM tab1 cor0 WHERE NOT - col1 + + col0 * col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT CAST( + - 49 AS SIGNED ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT CAST ( + - 49 AS INTEGER ) FROM tab2 AS cor0
----
-49

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT ALL + ( + col1 ) - + 5 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + 7 AS col0 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT MAX( col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5332
SELECT MAX ( col2 ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + ( - + COUNT( * ) ) FROM tab2 WHERE NOT + + 5 * - col2 * 60 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5333
SELECT + ( - + COUNT ( * ) ) FROM tab2 WHERE NOT + + 5 * - col2 * 60 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL MAX( + - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL MAX ( + - col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5335
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) <> + col1 * 42 + - + col0
----

skipif mysql # not compatible
query III rowsort label-5335
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) <> + col1 * 42 + - + col0
----

query I rowsort
SELECT - - col1 + 20 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT - CAST( NULL AS SIGNED ) + col1 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-5337
SELECT - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT - COUNT( * ) / MAX( DISTINCT - CAST( + - CAST( 53 AS SIGNED ) AS SIGNED ) ) * AVG ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - 91 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - COUNT ( * ) / MAX ( DISTINCT - CAST ( + - CAST ( 53 AS INTEGER ) AS INTEGER ) ) * AVG ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - 91 * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL MIN( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL MIN ( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ( - COUNT( * ) ) + - 49 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-5341
SELECT ( - COUNT ( * ) ) + - 49 FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL - SUM( ( - - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - SUM ( ( - - col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5343
SELECT 38 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT 38 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5344
SELECT ALL * FROM tab0 WHERE NULL <= + + col1 / - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5344
SELECT ALL * FROM tab0 WHERE NULL <= + + col1 / - CAST ( - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT ALL MIN( 58 ) - 43 DIV - - COUNT( * ) AS col0 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL MIN ( 58 ) - 43 / - - COUNT ( * ) AS col0 FROM tab2
----
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN + col2 AND - - col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL - COUNT( ALL - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL - 31 * MIN( DISTINCT - col2 ) FROM tab0 cor0
----
3069

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - 31 * MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5349
SELECT + - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT MIN( - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT MIN ( - col2 ) FROM tab2
----
-58

query I rowsort
SELECT col0 * + - col0 AS col1 FROM tab0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( 57 ) col1 FROM tab0 AS cor0
----
2679
5643
570

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + 19 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 + + - 28 col0 FROM tab2 AS cor0 WHERE NOT 78 IS NULL
----
-20
-33
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab0 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col1, col0 FROM tab2 cor0
----
46
46
64
64
75
75

query II rowsort
SELECT ALL col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT + + COUNT( * ) * - 62 * - 16 AS col0, + 37 FROM tab1 AS cor0
----
2976
37

skipif mysql # not compatible
query II rowsort label-5359
SELECT + + COUNT ( * ) * - 62 * - 16 AS col0, + 37 FROM tab1 AS cor0
----
2976
37

query II rowsort
SELECT - 77 AS col1, + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-77
100
-77
2209
-77
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT - MAX( DISTINCT + col2 ) * SUM( + + col2 ) col2 FROM tab0 AS cor0
----
-15444

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5361
SELECT - MAX ( DISTINCT + col2 ) * SUM ( + + col2 ) col2 FROM tab0 AS cor0
----
-15444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL + 41 / - ( - col0 ) * + - CAST( NULL AS SIGNED ) + - 59 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + 41 / - ( - col0 ) * + - CAST ( NULL AS INTEGER ) + - 59 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5364
SELECT DISTINCT col1 * - - CAST( - + col2 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT col1 * - - CAST ( - + col2 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col0 col1, col2 col1 FROM tab2
----
-2346
23
-4928
40
-5025
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( 75 * col0 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT + + ( COUNT( * ) ) col0, + 95 col2 FROM tab0 AS cor0
----
3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5367
SELECT + + ( COUNT ( * ) ) col0, + 95 col2 FROM tab0 AS cor0
----
3
95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5368
SELECT CAST( NULL AS SIGNED ) + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 / 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL + SUM( col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + SUM ( col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - COUNT( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5371
SELECT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT - + CAST( - 62 AS SIGNED ) FROM tab0 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5372
SELECT - + CAST ( - 62 AS INTEGER ) FROM tab0 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT + 92 - - SUM( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT + 92 - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5374
SELECT DISTINCT * FROM tab0 WHERE - + 32 * - CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5374
SELECT DISTINCT * FROM tab0 WHERE - + 32 * - CAST ( NULL AS REAL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - 85 col1 FROM tab1
----
132
90
99

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col1 < 68
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col0 FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + 24 + + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 47 AS col1, + col1 col1 FROM tab0 AS cor0
----
-47
1
-47
21
-47
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 25 * + 66 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - ( + + 18 ) AS col0, + 48 FROM tab2 cor0
----
18
48
18
48
18
48

query I rowsort
SELECT + col0 + 98 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
113
185
195

query I rowsort
SELECT ALL + 68 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
3564
5839
6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT + CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5385
SELECT + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5386
SELECT + 38 DIV + + col2 AS col2, col1 AS col0 FROM tab2 AS cor0
----
0
67
0
77
1
51

skipif mysql # not compatible
query II rowsort label-5386
SELECT + 38 / + + col2 AS col2, col1 AS col0 FROM tab2 AS cor0
----
0
67
0
77
1
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 51 col2 FROM tab1 AS cor0
----
-3009
-3468
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL + CAST( - 91 AS SIGNED ) * 63 FROM tab0 cor0
----
-5733
-5733
-5733

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + CAST ( - 91 AS INTEGER ) * 63 FROM tab0 cor0
----
-5733
-5733
-5733

query I rowsort
SELECT ALL 34 + - ( - + 30 ) AS col0 FROM tab0
----
64
64
64

query I rowsort
SELECT + - 98 AS col0 FROM tab0 WHERE NOT NULL <= - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT ALL CAST( + - col0 AS SIGNED ) * + col0 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL CAST ( + - col0 AS INTEGER ) * + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - col1 + - 43 - - col0 FROM tab1
----
-6
1
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT ALL ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT DISTINCT 35 DIV + MAX( + + 72 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT 35 / + MAX ( + + 72 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 < - + col1 * col2
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 * + - col1 col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 / + col2 IN ( - 43 )
----

query I rowsort
SELECT + 88 * + col0 AS col2 FROM tab0
----
1320
7656
8536

query II rowsort
SELECT col0 - + col0 + col1 * ( + + col0 ) AS col2, - 7 + - col2 AS col1 FROM tab2
----
2346
-30
4928
-47
5025
-65

query I rowsort
SELECT ALL - 35 AS col2 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT DISTINCT + COUNT( - CAST( 5 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5403
SELECT DISTINCT + COUNT ( - CAST ( 5 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - 94 / 94 + col2 + + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT - SUM( DISTINCT - - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab0 WHERE + 44 - col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5409
SELECT + col2 DIV - 66 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT + col2 / - 66 AS col0 FROM tab1
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 8 * - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5411
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab0
----
-3
3

query II rowsort
SELECT DISTINCT col1, 48 + - 53 FROM tab1
----
14
-5
47
-5
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT + COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5413
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL + + MIN( ALL + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + + MIN ( ALL + + col1 ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT - - col0 AS col1, - ( 11 ) * + + col0 AS col0 FROM tab0 AS cor0
----
15
-165
87
-957
97
-1067

query I rowsort
SELECT ALL + 69 + - col2 + + 73 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - 73 * - + COUNT( * ) * 29 AS col0 FROM tab2
----
6351

skipif mysql # not compatible
query I rowsort label-5417
SELECT - 73 * - + COUNT ( * ) * 29 AS col0 FROM tab2
----
6351

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= - + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col2
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + + 60 * + 82 * + 95 * - 37 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-17293797

skipif mysql # not compatible
query I rowsort label-5420
SELECT + + 60 * + 82 * + 95 * - 37 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-17293797

query I rowsort
SELECT 93 + + col1 * + 83 FROM tab0 AS cor0
----
176
1836
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 71 + - + ( col1 ) col0 FROM tab2 AS cor0 WHERE + 42 + - - col2 * col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT 28 AS col1, 35 FROM tab0 AS cor0
----
28
35
28
35
28
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5425
SELECT * FROM tab1 WHERE NOT - + col1 * + + col1 - col1 + + col2 + + col2 <> 25 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5425
SELECT * FROM tab1 WHERE NOT - + col1 * + + col1 - col1 + + col2 + + col2 <> 25 / CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL + 70 * + col2 + + 7 + + 52 * ( + col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + 70 * + col2 + + 7 + + 52 * ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT - SUM( ALL - - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-5427
SELECT - SUM ( ALL - - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT - CAST( - 90 AS SIGNED ) + COUNT( * ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-5428
SELECT - CAST ( - 90 AS INTEGER ) + COUNT ( * ) FROM tab1 cor0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5429
SELECT 66 + + + 55, COUNT( * ) + - 41 AS col2 FROM tab2 AS cor0
----
121
-38

skipif mysql # not compatible
query II rowsort label-5429
SELECT 66 + + + 55, COUNT ( * ) + - 41 AS col2 FROM tab2 AS cor0
----
121
-38

query I rowsort
SELECT + + col0 + + - 26 FROM tab1 AS cor0
----
25
59
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT + col1 * + + col2 + + 29 DIV col2 col1 FROM tab2
----
1174
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5431
SELECT DISTINCT + col1 * + + col2 + + 29 / col2 col1 FROM tab2
----
1174
3080
3886

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT ALL col1 * 80 FROM tab1
----
1120
3760
400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 + col0 + - col2 * + - col0 / col2 >= + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5436
SELECT - ( + col1 ) DIV col2 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-5436
SELECT - ( + col1 ) / col2 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT ALL + col2 - + ( + col0 ) * + col1 FROM tab0 AS cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL + + MIN( DISTINCT 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + + MIN ( DISTINCT 47 ) FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - 47 - - SUM( col2 ) AS col0 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - col1
----
74

skipif mysql # not compatible
query I rowsort label-5439
SELECT - 47 - - SUM ( col2 ) AS col0 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - col1
----
74

query I rowsort
SELECT + 92 - - col1 AS col1 FROM tab1 AS cor0
----
106
139
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT col1 DIV - 81 + + - col2 AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5441
SELECT col1 / - 81 + + - col2 AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 * + 17 FROM tab1
----
-1003
-1156
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT col2 DIV + + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT col2 / + + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5444
SELECT ALL col1 DIV - + col2, + col0 FROM tab0
----
-1
15
-2
87
0
97

skipif mysql # not compatible
query II rowsort label-5444
SELECT ALL col1 / - + col2, + col0 FROM tab0
----
-1
15
-2
87
0
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT DISTINCT - 86 AS col1, COUNT( * ) col2 FROM tab1 WHERE - col0 <= NULL
----
-86
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5446
SELECT DISTINCT - 86 AS col1, COUNT ( * ) col2 FROM tab1 WHERE - col0 <= NULL
----
-86
0

query I rowsort
SELECT 71 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NULL = col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - + col1 + - col2 * + - col0 = NULL
----

query I rowsort
SELECT 98 * - 11 FROM tab2 AS cor0
----
-1078
-1078
-1078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + 10 ) + + - col2 col2 FROM tab1 AS cor0
----
-49
-58
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT - SUM( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL COUNT( * ) + + + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 BETWEEN + col2 + col2 AND NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 > - + 41
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL COUNT( * ) + + 18 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL COUNT ( * ) + + 18 FROM tab2
----
21

query I rowsort
SELECT col1 * col1 + - + 79 FROM tab0
----
-78
362
6482

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + COUNT( DISTINCT - col1 ) + - COUNT( * ) AS col2 FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT + COUNT ( DISTINCT - col1 ) + - COUNT ( * ) AS col2 FROM tab1 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * - 14 + + col2 FROM tab0
----
113
1181
304

query I rowsort
SELECT ALL 51 * 70 + + col0 - - 17 - - + 50 AS col0 FROM tab0
----
3652
3724
3734

query I rowsort
SELECT - col2 + + 9 AS col0 FROM tab2
----
-14
-31
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL + MIN( - + col0 ) * - + ( COUNT( * ) ) * + + COUNT( * ) AS col2 FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + MIN ( - + col0 ) * - + ( COUNT ( * ) ) * + + COUNT ( * ) AS col2 FROM tab1
----
819

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 * - col0 col2 FROM tab1 AS cor0
----
-1785
-2975
-3185

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 2 * + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5467
SELECT COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - + 26 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-26
-26
-26

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab1 AS cor0 WHERE 23 + 61 <= - col2 - col1 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT ALL + + 73 * - 16 DIV - 8 FROM tab0 cor0
----
146
146
146

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + + 73 * - 16 / - 8 FROM tab0 cor0
----
146
146
146

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + 27 * - + col1 AS col1, col1 FROM tab1 AS cor0
----
1269
47
135
5
378
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5473
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT + + MIN( ALL col2 ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + + MIN ( ALL col2 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

query I rowsort
SELECT + col2 * + + col0 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + 28 * + col0 AS col2 FROM tab2
----
1288
1792
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT 43 DIV 15 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5477
SELECT 43 / 15 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT * FROM tab2 WHERE NOT col1 * + CAST( + 55 AS SIGNED ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5478
SELECT * FROM tab2 WHERE NOT col1 * + CAST ( + 55 AS INTEGER ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query III rowsort label-5480
SELECT COUNT( * ) AS col2, - 96 + + MAX( ALL col1 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
3
-49
3

skipif mysql # not compatible
query III rowsort label-5480
SELECT COUNT ( * ) AS col2, - 96 + + MAX ( ALL col1 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
3
-49
3

query II rowsort
SELECT 45 AS col1, col2 AS col1 FROM tab0
----
45
10
45
47
45
99

query I rowsort
SELECT DISTINCT - col2 * - + col1 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT + - col2 * 48 FROM tab2 cor0
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT ALL + 64 AS col1, - ( + COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
64
0

skipif mysql # not compatible
query II rowsort label-5484
SELECT ALL + 64 AS col1, - ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
64
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col2 * + + 54 + - + 95
----

query I rowsort
SELECT + col1 * - - 28 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT - + COUNT( * ) AS col1, 67 * + - COUNT( * ) FROM tab0 AS cor0
----
-3
-201

skipif mysql # not compatible
query II rowsort label-5487
SELECT - + COUNT ( * ) AS col1, 67 * + - COUNT ( * ) FROM tab0 AS cor0
----
-3
-201

query I rowsort
SELECT DISTINCT 0 + + - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

query I rowsort
SELECT ALL - 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 42 ) * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 56 * + + col2 FROM tab2 AS cor0
----
1288
2240
3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT - CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5492
SELECT - CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * 34 * + col0 + - - col0 + 53 col0 FROM tab1 AS cor0
----
2330600
852688
9888568

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + + SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5494
SELECT + + SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + - 32 AS col1 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT ALL - - col1 + - col0 - - + col1 AS col1 FROM tab0 AS cor0
----
-45
-95
147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5497
SELECT + COUNT( + + CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT + COUNT ( + + CAST ( NULL AS REAL ) ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5498
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5498
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5499
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + - col1 * CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5499
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + - col1 * CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) * + ( col2 ) AS col0 FROM tab2
----
-1560
-3306
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT + 58 - + col1 AS col1 FROM tab2
----
-19
-9
7

query I rowsort
SELECT - col2 + - + 41 FROM tab1 AS cor0
----
-100
-109
-137

query I rowsort
SELECT - ( - col0 ) + + col1 + - - col1 AS col1 FROM tab0 AS cor0
----
129
177
99

query II rowsort
SELECT ALL - 59 AS col0, col2 FROM tab0 AS cor0
----
-59
10
-59
47
-59
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT ALL + MIN( ALL + + col1 ) + 18, - 87 AS col0 FROM tab2 AS cor0
----
69
-87

skipif mysql # not compatible
query II rowsort label-5506
SELECT ALL + MIN ( ALL + + col1 ) + 18, - 87 AS col0 FROM tab2 AS cor0
----
69
-87

query I rowsort
SELECT ALL - + 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ( - COUNT( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5508
SELECT ( - COUNT ( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - MAX( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5510
SELECT - MAX ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT - MAX( ALL - 14 ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - MAX ( ALL - 14 ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT SUM( ALL + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5512
SELECT SUM ( ALL + col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT ALL 43 * 93 + + 27 * - - col2 FROM tab2 AS cor0
----
4620
5079
5565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, col2 - - col1 * + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-23
53981
-40
197160
-58
291508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 48 col2, col0 AS col0 FROM tab1 AS cor0
----
48
51
48
85
48
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - MAX( + + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5516
SELECT - MAX ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT - 58 * - + 25 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT - 58 * - + 25 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col1 FROM tab0 AS cor0
----
83
83
83

query II rowsort
SELECT ALL + 63 AS col0, - col2 + - col0 + - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
63
-2
63
-32
63
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 83 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT ( NOT 35 > ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5522
SELECT ALL - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + MAX( col0 ) * 99 col2 FROM tab0
----
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5523
SELECT + MAX ( col0 ) * 99 col2 FROM tab0
----
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + MIN( DISTINCT - 19 ) * + 16 FROM tab1 AS cor0
----
-304

skipif mysql # not compatible
query I rowsort label-5525
SELECT + MIN ( DISTINCT - 19 ) * + 16 FROM tab1 AS cor0
----
-304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + col1 * 3 AS col0, col2 * col1 + + - ( + + col1 ) col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 * + col1 FROM tab1
----
-1078
-3619
-385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 96 * 32 col1, - col0 col0 FROM tab1 AS cor0
----
181248
-85
208896
-91
294912
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT - 34 DIV - 31 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5530
SELECT - 34 / - 31 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 34 AS col1 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5532
SELECT SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT + - 53 DIV 21 AS col1 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + - 53 / 21 AS col1 FROM tab2 cor0
----
-2

query I rowsort
SELECT - + col2 + + 92 AS col0 FROM tab1 AS cor0
----
-4
24
33

query I rowsort
SELECT - 35 + + + 86 + + + col1 + col1 FROM tab0
----
213
53
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT 3 + - - SUM( DISTINCT - 71 ) col0 FROM tab2
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5536
SELECT 3 + - - SUM ( DISTINCT - 71 ) col0 FROM tab2
----
-68

query I rowsort
SELECT ALL - col2 - - ( - col0 ) FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 31 + + - 88 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-57
-57
-57

query I rowsort
SELECT ALL + + col1 - - 34 + - - col0 * col0 AS col1 FROM tab0 cor0
----
340
7624
9444

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) + + COUNT( * ) + + 6 FROM tab0 WHERE NULL >= - col0
----
6

skipif mysql # not compatible
query I rowsort label-5541
SELECT COUNT ( * ) + + COUNT ( * ) + + 6 FROM tab0 WHERE NULL >= - col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + SUM( ALL + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + SUM ( ALL + - col2 ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT + + col1, - ( + - ( col0 ) ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 4 AS col0 FROM tab1 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 18 / + ( + col1 ) + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT + MAX( 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT + MAX ( 34 ) FROM tab1 AS cor0
----
34

query II rowsort
SELECT ALL - col1 AS col0, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT + col2 + col0 AS col0 FROM tab0 cor0 WHERE NOT - col2 >= + ( + + col0 )
----
196
62
97

query I rowsort
SELECT ALL + col1 * - ( + col2 ) AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 + col1 * - col0 * + col1 BETWEEN + 43 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab2
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 / 93 - col0 IS NOT NULL
----

query II rowsort
SELECT col1, + 88 FROM tab0
----
1
88
21
88
81
88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5555
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 AS col1, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT DISTINCT 40 * - SUM( - - col0 ) AS col0 FROM tab1
----
-9080

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT 40 * - SUM ( - - col0 ) AS col0 FROM tab1
----
-9080

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 33 + + - col2 + + col1 * - + col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5559
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 74 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 74 FROM tab1
----
NULL

query I rowsort
SELECT - 88 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query III rowsort
SELECT * FROM tab2 WHERE - - 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 54 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1134
4374
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - + SUM( 8 ) * - + COUNT( * ) FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-5564
SELECT - + SUM ( 8 ) * - + COUNT ( * ) FROM tab1 cor0
----
72

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL < 39 / + + ( - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL + - 78 * - MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
1794

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + - 78 * - MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
1794

query I rowsort
SELECT 95 * + col1 FROM tab1 AS cor0
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 87 / + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 87 / + col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - 97 * - ( - + MIN( + col0 ) ) FROM tab0 AS cor0
----
-1455

skipif mysql # not compatible
query I rowsort label-5569
SELECT - 97 * - ( - + MIN ( + col0 ) ) FROM tab0 AS cor0
----
-1455

query I rowsort
SELECT - ( - ( + col2 ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col1 * col0 * + col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + MAX( ALL + ( + col1 ) ) + - COUNT( * ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + MAX ( ALL + ( + col1 ) ) + - COUNT ( * ) AS col2 FROM tab2
----
74

query I rowsort
SELECT ALL 2 * 76 - - + col0 * + col0 AS col1 FROM tab2
----
2268
4248
5777

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL + COUNT( * ) - - 63 - + 16 * + - MAX( ALL + col1 ) AS col0 FROM tab2 cor0
----
1298

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + COUNT ( * ) - - 63 - + 16 * + - MAX ( ALL + col1 ) AS col0 FROM tab2 cor0
----
1298

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 71 ) > 53
----

query I rowsort
SELECT + 87 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 67 ) NOT IN ( + col2 )
----

query I rowsort
SELECT 35 * - col1 + - col1 AS col0 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT COUNT( * ) - - MAX( ALL - col2 - ( - 58 ) ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT COUNT ( * ) - - MAX ( ALL - col2 - ( - 58 ) ) AS col2 FROM tab1
----
2

query I rowsort
SELECT col1 - - 19 FROM tab1
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL MIN( ALL 43 ) + 17 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL MIN ( ALL 43 ) + 17 FROM tab2
----
60

query I rowsort
SELECT ALL - col1 * col0 - col0 * 78 FROM tab1
----
-11375
-4692
-7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL + col2 * + col1 - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + col2 * + col1 - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col2 ) + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + ( + 60 ) AS col0 FROM tab1
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT DISTINCT 23 AS col0 FROM tab1 WHERE NOT ( CAST( 83 AS SIGNED ) ) IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT 23 AS col0 FROM tab1 WHERE NOT ( CAST ( 83 AS INTEGER ) ) IS NULL
----
23

query III rowsort
SELECT * FROM tab1 WHERE 12 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL + SUM( DISTINCT + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + SUM ( DISTINCT + col2 ) FROM tab1
----
223

query I rowsort
SELECT 72 + - col2 * - col1 FROM tab1
----
1416
3268
367

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ALL + COUNT( * ) * + COUNT( DISTINCT - 19 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5590
SELECT ALL + COUNT ( * ) * + COUNT ( DISTINCT - 19 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL 38 + + COUNT( 70 + + 71 ) FROM tab1 WHERE NULL IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL 38 + + COUNT ( 70 + + 71 ) FROM tab1 WHERE NULL IS NULL
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - COUNT( * ) + 77 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-5592
SELECT - COUNT ( * ) + 77 FROM tab2
----
74

query I rowsort
SELECT + col2 * 76 FROM tab1
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT COUNT( * ) + + 6 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5594
SELECT COUNT ( * ) + + 6 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT SUM( ALL + ( - col0 ) ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-5595
SELECT SUM ( ALL + ( - col0 ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-196

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + - col1 * + 55 BETWEEN + col2 AND + 40 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5598
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5598
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 * - col1 AS col1 FROM tab1 WHERE col1 + 71 * col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE - 69 <> - 52
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT col2 * + col1 - - 56 FROM tab2 AS cor0
----
1229
3136
3942

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL 99 * + COUNT( * ) AS col0 FROM tab1 cor0
----
297

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL 99 * + COUNT ( * ) AS col0 FROM tab1 cor0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT ( + col0 ) DIV - 21 + + col1 AS col2 FROM tab0 cor0
----
-3
17
81

skipif mysql # not compatible
query I rowsort label-5603
SELECT ( + col0 ) / - 21 + + col1 AS col2 FROM tab0 cor0
----
-3
17
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 ) < col1 - col1
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NULL <> 18
----

query I rowsort
SELECT ALL - 77 * - col2 AS col2 FROM tab2 AS cor0
----
1771
3080
4466

query I rowsort
SELECT col0 * col1 + 10 FROM tab1 AS cor0
----
4287
435
724

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - 13 + col2
----

query I rowsort
SELECT - 78 * + ( col0 ) FROM tab0 AS cor0 WHERE col2 + col0 NOT IN ( + ( + col1 ) * + col0 )
----
-1170
-6786
-7566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL - ( - 48 ) + - CAST( NULL AS SIGNED ) * - 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - ( - 48 ) + - CAST ( NULL AS INTEGER ) * - 84 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 89 + col0 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT ALL COUNT( * ) DIV + - 13 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL COUNT ( * ) / + - 13 AS col1 FROM tab0
----
0

query I rowsort
SELECT - 57 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 44 + + ( 99 ) AS col1 FROM tab2
----
143

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 3 + + col2 / + col0
----

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT - ( + + 70 ) AS col0 FROM tab2
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col1 ) <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5620
SELECT DISTINCT + col0 - - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + col0 - - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 50 ) > - col0
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 <= - col0
----
-10
-47
-99

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - 22 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - col2 * - col1 > - 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT + - col2 * 14 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1386
-6
-8

skipif mysql # not compatible
query I rowsort label-5625
SELECT + - col2 * 14 / + col1 AS col2 FROM tab0 AS cor0
----
-1386
-6
-8

query II rowsort
SELECT ALL col0 AS col0, + col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5628
SELECT + ( + col2 ) DIV + - 18 + CAST( col1 AS SIGNED ) FROM tab0
----
-4
21
79

skipif mysql # not compatible
query I rowsort label-5628
SELECT + ( + col2 ) / + - 18 + CAST ( col1 AS INTEGER ) FROM tab0
----
-4
21
79

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col1 NOT IN ( + 69 + 16 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query II rowsort label-5631
SELECT ALL - 38 AS col1, MAX( ALL - col2 ) FROM tab1
----
-38
-59

skipif mysql # not compatible
query II rowsort label-5631
SELECT ALL - 38 AS col1, MAX ( ALL - col2 ) FROM tab1
----
-38
-59

query I rowsort
SELECT + - 16 - 38 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 75 * col1 > - ( 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 37 + 86 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - COUNT( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5636
SELECT - COUNT ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 / - 38 + 49 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col2 FROM tab0
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT + SUM( - 40 ) AS col1, COUNT( * ) - - + COUNT( * ) F