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( * ) FROM tab2
----
-120
6

skipif mysql # not compatible
query II rowsort label-5639
SELECT + SUM ( - 40 ) AS col1, COUNT ( * ) - - + COUNT ( * ) FROM tab2
----
-120
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT DISTINCT MIN( 83 ) + + 72 AS col0 FROM tab0
----
155

skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT MIN ( 83 ) + + 72 AS col0 FROM tab0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT 32 * ( + - COUNT( ALL col2 ) ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5641
SELECT 32 * ( + - COUNT ( ALL col2 ) ) AS col2 FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( + col0 ) ) * col2 col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT 73 * + CAST( - + 37 AS SIGNED ) AS col0 FROM tab1
----
-2701
-2701
-2701

skipif mysql # not compatible
query I rowsort label-5643
SELECT 73 * + CAST ( - + 37 AS INTEGER ) AS col0 FROM tab1
----
-2701
-2701
-2701

query I rowsort
SELECT ALL + col0 + 10 * 72 AS col0 FROM tab1
----
771
805
811

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 88 + - 55 AND - col1 - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT DISTINCT - 84 + MIN( DISTINCT col2 ) + COUNT( * ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - 84 + MIN ( DISTINCT col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
-58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * - col1 * col1 col2 FROM tab1
----
-1475
-150212
-18816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5649
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * - col1 * col1 col2 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT ALL - col1 + + 7 - 75 AS col0 FROM tab1
----
-115
-73
-82

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

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) - 78 AS col1 FROM tab1
----
-129
-163
-169

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5654
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) - SUM( DISTINCT + col1 ) - 90 * 68 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) - SUM ( DISTINCT + col1 ) - 90 * 68 FROM tab1
----
NULL

query I rowsort
SELECT - 38 * col2 AS col1 FROM tab1 AS cor0
----
-2242
-2584
-3648

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT - 48 DIV - 61 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT - 48 / - 61 AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - + 82 * + col2 AS col1 FROM tab0 AS cor0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - + COUNT( * ) - 14 AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5661
SELECT - + COUNT ( * ) - 14 AS col2 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - + 87 + - 95 + + + col2 FROM tab2 AS cor0
----
-124
-142
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT + 20 * + 60 * - COUNT( ALL + 50 ) AS col1 FROM tab0 AS cor0
----
-3600

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT + 20 * + 60 * - COUNT ( ALL + 50 ) AS col1 FROM tab0 AS cor0
----
-3600

query I rowsort
SELECT + AVG ( 10 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - 8 IS NULL
----
NULL

query I rowsort
SELECT + col2 * + - col0 - - col0 - - col1 * col0 * + + col2 * col1 AS col2 FROM tab1
----
120445
13663195
954771

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT 49 DIV col0 - - ( 82 ) * + col1 FROM tab0
----
1722
6645
82

skipif mysql # not compatible
query I rowsort label-5667
SELECT 49 / col0 - - ( 82 ) * + col1 FROM tab0
----
1722
6645
82

query I rowsort
SELECT col1 - 8 FROM tab1
----
-3
39
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col2 ) NOT BETWEEN - 41 + 1 AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + ( 68 ) AS col2 FROM tab0
----
68
68
68

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

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

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

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

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

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

query I rowsort
SELECT + col1 + - - col2 FROM tab1 AS cor0 WHERE NOT - 15 + col2 IS NULL
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5677
SELECT ALL + CAST( + col0 AS SIGNED ) DIV col0 + + ( + + 36 ) FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + CAST ( + col0 AS INTEGER ) / col0 + + ( + + 36 ) FROM tab2 AS cor0
----
37
37
37

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-5681
SELECT DISTINCT - - COUNT ( * ) AS col2, + 84 FROM tab1 AS cor0
----
3
84

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

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

query I rowsort
SELECT DISTINCT 51 * - col1 * 43 AS col2 FROM tab1
----
-103071
-10965
-30702

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

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

query I rowsort
SELECT - col2 * - col0 + 6 FROM tab0 AS cor0
----
711
876
9609

query I rowsort
SELECT - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5688
SELECT DISTINCT + 65 DIV CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT DISTINCT + 65 / CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
0
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL COUNT( * ) * - 37 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL COUNT ( * ) * - 37 FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT ( - + 71 * - 59 ) <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT ( - + 71 * - 59 ) <= NULL )
----
0

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 12 FROM tab1 AS cor0 WHERE NULL IS NULL
----
12
12
12

query I rowsort
SELECT ALL - 47 + + + col2 AS col0 FROM tab1 AS cor0
----
12
21
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL - 75 + + COUNT( DISTINCT ( col0 ) ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - 75 + + COUNT ( DISTINCT ( col0 ) ) AS col2 FROM tab0
----
-72

query I rowsort
SELECT DISTINCT + col2 * 39 * col0 + + col2 FROM tab2
----
169708
41285
99880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT ( - AVG ( DISTINCT - col2 ) ) * - ( + 27 ) - - CAST( NULL AS SIGNED ) * + + ( - CAST( NULL AS SIGNED ) ) - 48 + - 10 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT ( - AVG ( DISTINCT - col2 ) ) * - ( + 27 ) - - CAST ( NULL AS INTEGER ) * + + ( - CAST ( NULL AS INTEGER ) ) - 48 + - 10 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT col0 + ( - col0 ) AS col1, col1 AS col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT 7 * - 62 + + ( + 26 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-5702
SELECT COUNT ( * ) + 47 FROM tab1
----
50

query II rowsort
SELECT ALL col0, + 89 AS col0 FROM tab0
----
15
89
87
89
97
89

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

query I rowsort
SELECT DISTINCT 99 * - - col2 FROM tab2 cor0
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ( - - COUNT( * ) ) - - 19 * + COUNT( * ) AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5706
SELECT ( - - COUNT ( * ) ) - - 19 * + COUNT ( * ) AS col0 FROM tab1
----
60

query I rowsort
SELECT ALL - col1 * - - col0 + - - 70 + + - 66 + - col0 + - col0 * - - col0 AS col1 FROM tab0
----
-1451
-9479
-9599

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

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

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

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

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

query I rowsort
SELECT + 92 * col2 * - col2 + + 34 + - col2 + + col1 + + col1 + - - 42 * col2 FROM tab1 AS cor0
----
-317789
-422492
-843874

query I rowsort
SELECT + - col1 * 83 AS col1 FROM tab2 cor0 WHERE 42 IS NULL
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > ( - 88 )
----

query I rowsort
SELECT col2 + + - col0 + col2 AS col2 FROM tab1 AS cor0
----
141
33
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL SUM( col2 ) - + + 82 * + ( 34 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
8520

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL SUM ( col2 ) - + + 82 * + ( 34 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
8520

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + MAX( + + col0 ) * - - COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5721
SELECT + MAX ( + + col0 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
291

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5723
SELECT ALL * FROM tab2 WHERE - 11 + - col2 BETWEEN + ( 74 ) * - - CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-5723
SELECT ALL * FROM tab2 WHERE - 11 + - col2 BETWEEN + ( 74 ) * - - CAST ( NULL AS INTEGER ) AND col0
----

query I rowsort
SELECT 26 * col2 FROM tab0
----
1222
2574
260

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT - 62 DIV + col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5726
SELECT - 62 / + col2 FROM tab0
----
-1
-6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT SUM( - col2 ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL + MIN( - - 98 ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + MIN ( - - 98 ) AS col0 FROM tab1
----
98

query II rowsort
SELECT 67 AS col0, 78 FROM tab2
----
67
78
67
78
67
78

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT DISTINCT + 59 * - COUNT( * ) * + 30, - 13 AS col0 FROM tab1 cor0
----
-5310
-13

skipif mysql # not compatible
query II rowsort label-5732
SELECT DISTINCT + 59 * - COUNT ( * ) * + 30, - 13 AS col0 FROM tab1 cor0
----
-5310
-13

query II rowsort
SELECT + - col1 AS col1, - col2 * - col0 - - col1 FROM tab2 AS cor0
----
-51
1109
-67
4417
-77
2637

query II rowsort
SELECT ALL col1 * - - 91 AS col2, + col1 * - - 62 + + 41 FROM tab0
----
1911
1343
7371
5063
91
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + col0 AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT + MAX( ALL col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, + 71, col1, - 45 * - 44 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT + MAX ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, + 71, col1, - 45 * - 44 + - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT + - 55 * - - SUM( 48 ) * + COUNT( * ) + 23 - + - ( 11 ) + - 82 FROM tab0 cor0
----
-23808

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT + - 55 * - - SUM ( 48 ) * + COUNT ( * ) + 23 - + - ( 11 ) + - 82 FROM tab0 cor0
----
-23808

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 49 + + + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT + - SUM( DISTINCT - + 62 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT + - SUM ( DISTINCT - + 62 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 * + col1 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5741
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - - 53 FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
53

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE 12 * col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT DISTINCT col1 + - 6 * col2 + 71 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
6138
6294
864

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT col1 + - 6 * col2 + 71 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
6138
6294
864

query I rowsort
SELECT + col2 * col1 * + + 91 FROM tab2 AS cor0
----
106743
280280
353626

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

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

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

query I rowsort
SELECT - 74 AS col1 FROM tab2 WHERE ( col2 + - - ( - 46 ) ) NOT BETWEEN - col1 + - + 56 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT 82 <> 76
----

query I rowsort
SELECT DISTINCT ( + - col2 ) + + - ( 29 ) AS col0 FROM tab0
----
-128
-39
-76

query I rowsort
SELECT ALL 55 + - - col1 FROM tab0
----
136
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT + 33 * + MIN( DISTINCT 64 ) AS col2 FROM tab2
----
2112

skipif mysql # not compatible
query I rowsort label-5752
SELECT + 33 * + MIN ( DISTINCT 64 ) AS col2 FROM tab2
----
2112

query I rowsort
SELECT - col2 + - - col1 FROM tab1 WHERE col0 + 7 * + + ( - col0 ) NOT BETWEEN - col2 * + 96 * - - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5754
SELECT + 74 - col2 * + 36 * + - 59 - - ( + + 90 ) * - CAST( NULL AS DECIMAL ) / + ( col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT + 74 - col2 * + 36 * + - 59 - - ( + + 90 ) * - CAST ( NULL AS REAL ) / + ( col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 * - + col0 col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 58 * - col2 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col1 + col1, 1 * - 2 AS col2 FROM tab0 AS cor0
----
162
-2
2
-2
42
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5758
SELECT * FROM tab2 WHERE col2 / ( - - 58 ) * - - col0 BETWEEN ( - + CAST( + + col1 AS DECIMAL ) * - - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5758
SELECT * FROM tab2 WHERE col2 / ( - - 58 ) * - - col0 BETWEEN ( - + CAST ( + + col1 AS REAL ) * - - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL 98 - - MIN( + 23 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL 98 - - MIN ( + 23 ) FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT - col1 * ( - - 30 ) * + col0 AS col1 FROM tab1 cor0 WHERE 89 IS NOT NULL
----
-12750
-128310
-21420

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 37 + 1 * col0 BETWEEN NULL AND 42
----

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

query I rowsort
SELECT 32 * + 1 FROM tab1 cor0
----
32
32
32

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT + col2, 23 * - col0 FROM tab0 AS cor0
----
10
-2001
47
-345
99
-2231

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) NOT IN ( 2 - - ( - + col0 ) - - col2 - - col2 - + + col2 * - - 77 * + col2 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT col0 / 51 / - 22 > - ( + + 15 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT DISTINCT + 93 * CAST( col1 AS SIGNED ) col0 FROM tab1
----
1302
4371
465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT DISTINCT + 93 * CAST ( col1 AS INTEGER ) col0 FROM tab1
----
1302
4371
465

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab0 WHERE NOT + 93 NOT IN ( + col1, + col0 * - - col2 / + 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT - col0 DIV col0 * + - 70 FROM tab1
----
70
70
70

skipif mysql # not compatible
query I rowsort label-5774
SELECT - col0 / col0 * + - 70 FROM tab1
----
70
70
70

query I rowsort
SELECT ALL 12 * col0 FROM tab2
----
552
768
900

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

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

query I rowsort
SELECT DISTINCT col0 * col2 * + + 88 AS col2 FROM tab1
----
430848
441320
544544

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

query I rowsort
SELECT DISTINCT 73 + 17 + + + 0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + - col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - ( - 94 ) IN ( - + col2 / + + col1 * - 88 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - ( - 94 ) IN ( - + col2 / + + col1 * - 88 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT ALL 30 DIV - COUNT( * ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL 30 / - COUNT ( * ) AS col1 FROM tab0
----
-10

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 25 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + 30 - + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 30 - + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / + 20 * 65 - 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 20 * 65 - 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5787
SELECT DISTINCT - SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5789
SELECT - + 51 / - 79 * + col2 * col1 * ( - ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 7 BETWEEN NULL AND - col2 OR ( + col1 - col2 ) IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 * - col1 + 15 col1, - 11 FROM tab2 cor0
----
-1158
-11
-3065
-11
-3871
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT ALL + col0 + col1 * + - CAST( + 22 AS SIGNED ) FROM tab1 AS cor0
----
-25
-257
-943

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + col0 + col1 * + - CAST ( + 22 AS INTEGER ) FROM tab1 AS cor0
----
-25
-257
-943

query II rowsort
SELECT DISTINCT 23 AS col2, - 62 FROM tab2 AS cor0
----
23
-62

query II rowsort
SELECT ALL + - 66 AS col1, col1 - + - 26 - - col1 FROM tab1 cor0
----
-66
120
-66
36
-66
54

query I rowsort
SELECT ALL + 38 + - 43 FROM tab1 cor0
----
-5
-5
-5

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

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - col0 * + 39 * - col2 + + - col2 / + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT + 52 + + + MAX( DISTINCT - 92 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-5798
SELECT + 52 + + + MAX ( DISTINCT - 92 ) FROM tab0
----
-40

query III rowsort
SELECT * FROM tab1 WHERE ( 4 ) IS NULL
----

query I rowsort
SELECT + 84 + - col2 * ( - + col0 ) AS col0 FROM tab1
----
4980
5099
6272

query II rowsort
SELECT DISTINCT 69, - col2 + + col1 AS col0 FROM tab1
----
69
-21
69
-54
69
-82

query II rowsort
SELECT ALL - - col2, + 93 AS col2 FROM tab1 AS cor0
----
59
93
68
93
96
93

query I rowsort
SELECT + col1 * + 84 - - col2 * + 74 + - + 27 AS col2 FROM tab2
----
5959
9401
9893

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

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE 89 + 15 <> ( NULL )
----

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

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

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

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + ( + + col1 ), - ( col0 ) * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1
-9504
21
-860
81
-658

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT DISTINCT - 43 AS col2, COUNT( * ) * - + 72 * - COUNT( * ) FROM tab1
----
-43
648

skipif mysql # not compatible
query II rowsort label-5811
SELECT DISTINCT - 43 AS col2, COUNT ( * ) * - + 72 * - COUNT ( * ) FROM tab1
----
-43
648

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT 25 DIV - - 82 * - 57 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT 25 / - - 82 * - 57 AS col1 FROM tab1
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT + ( + ( + 14 ) ) AS col1, col2 * + - ( - col0 ) FROM tab2
----
14
1058
14
2560
14
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + - MIN( + col2 ) FROM tab1 AS cor0 WHERE NOT - col0 * 64 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT + - MIN ( + col2 ) FROM tab1 AS cor0 WHERE NOT - col0 * 64 <= NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL MAX ( - col2 ) FROM tab2 AS cor0
----
-23

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) + + 46 AS col1 FROM tab2 AS cor0
----
104
69
86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5823
SELECT COUNT( * ) * + - MAX( ALL - col1 ) * - 61, 64 * + + 11 AS col2 FROM tab2 AS cor0
----
-9333
704

skipif mysql # not compatible
query II rowsort label-5823
SELECT COUNT ( * ) * + - MAX ( ALL - col1 ) * - 61, 64 * + + 11 AS col2 FROM tab2 AS cor0
----
-9333
704

query I rowsort
SELECT ALL - col0 * + 90 AS col2 FROM tab2 AS cor0
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
69

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

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

query I rowsort
SELECT ALL - col1 + - ( - 62 ) FROM tab0
----
-19
41
61

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5829
SELECT * FROM tab1 WHERE CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab1 WHERE CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + 8 * + + SUM( - col2 ) + - + 92 AS col2 FROM tab0
----
-1340

skipif mysql # not compatible
query I rowsort label-5830
SELECT + 8 * + + SUM ( - col2 ) + - + 92 AS col2 FROM tab0
----
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL + COUNT( * ) - + 65 AS col0 FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + COUNT ( * ) - + 65 AS col0 FROM tab2 cor0
----
-62

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

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

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

skipif mysql # not compatible
query I rowsort label-5833
SELECT + col1 + + + CAST ( NULL AS INTEGER ) * - 5 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * col0 * - - 77 - + + col2 + - + 58 AS col2 FROM tab1 AS cor0
----
-377146
-386272
-476602

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + MAX( ALL + 64 ) * + ( + 34 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT + MAX ( ALL + 64 ) * + ( + 34 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL - - 28 * - COUNT( * ) * + + 25 AS col0 FROM tab2 AS cor0
----
-2100

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - - 28 * - COUNT ( * ) * + + 25 AS col0 FROM tab2 AS cor0
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT 54 DIV col0 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT 54 / col0 FROM tab2 cor0
----
0
1

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 * + 24 IN ( - - ( 49 ), + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT MIN( - 21 ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT MIN ( - 21 ) FROM tab0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - ( - - SUM( ALL + + col1 ) ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5844
SELECT DISTINCT - ( - - SUM ( ALL + + col1 ) ) col0 FROM tab1
----
-66

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

query I rowsort
SELECT ALL + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col2 * + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - - MIN( ALL col1 ) * + 36 AS col1 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5848
SELECT - - MIN ( ALL col1 ) * + 36 AS col1 FROM tab1 AS cor0
----
180

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

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

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

query II rowsort
SELECT ALL + col2 AS col2, + 19 AS col2 FROM tab1 AS cor0
----
59
19
68
19
96
19

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT COUNT( ALL - col0 ) + - + 56 DIV COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5857
SELECT COUNT ( ALL - col0 ) + - + 56 / COUNT ( * ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ALL col1 - - 57 FROM tab0
----
138
58
78

query II rowsort
SELECT ALL - col0 + + 21 + 18 * col0 AS col0, col0 AS col2 FROM tab0
----
1500
87
1670
97
276
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * + col0 col0 FROM tab1
----
-4947
-8245
-8827

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

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + - CAST ( col1 AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
0
1
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5863
SELECT ALL ( COUNT( * ) ) AS col1, - 43 FROM tab1 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) - col2 * + - 71 / + 13 IN ( - col1 )
----
0
-43

skipif mysql # not compatible
query II rowsort label-5863
SELECT ALL ( COUNT ( * ) ) AS col1, - 43 FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) - col2 * + - 71 / + 13 IN ( - col1 )
----
0
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( - col0, col2, - col1 * + ( col2 ) / - 50 - - col0 * + + col0 )
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( col1 + - 47 / - col1 ) BETWEEN NULL AND col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT SUM( - - ( + + 57 ) ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-5877
SELECT SUM ( - - ( + + 57 ) ) FROM tab2
----
171

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT 15 DIV col0 * - + col2 FROM tab0
----
-47
0
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT 15 / col0 * - + col2 FROM tab0
----
-47
0
0

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

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

query III rowsort
SELECT DISTINCT - 66 AS col0, + col1 AS col2, - col2 AS col2 FROM tab0 cor0
----
9 values hashing to 550a07b91d8084061cb48c5e38959aa1

query II rowsort
SELECT DISTINCT 57 + col2, 95 * 68 AS col1 FROM tab2 cor0
----
115
6460
80
6460
97
6460

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + - ( col0 ) * col2, + col1 * - col2 )
----

query I rowsort
SELECT + 63 * - ( - 66 ) AS col2 FROM tab1 AS cor0
----
4158
4158
4158

query I rowsort
SELECT DISTINCT - col0 * - - 9 + + 91 AS col1 FROM tab2 AS cor0
----
-323
-485
-584

query I rowsort
SELECT ALL col0 + + 43 - 4 AS col2 FROM tab2 AS cor0
----
103
114
85

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5890
SELECT ALL + 41 + CAST ( NULL AS INTEGER ) AS col1, + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - COUNT( ALL + - col0 ) + + 1 + - 36 + + - 50 * - 39 FROM tab2
----
1912

skipif mysql # not compatible
query I rowsort label-5892
SELECT - COUNT ( ALL + - col0 ) + + 1 + - 36 + + - 50 * - 39 FROM tab2
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL - 4 - SUM( - col1 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - 4 - SUM ( - col1 ) FROM tab1 AS cor0
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT - SUM( ALL + 60 ) AS col2 FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT - SUM ( ALL + 60 ) AS col2 FROM tab0 cor0
----
-180

query I rowsort
SELECT col2 * + - col1 + 43 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1301
-252
-3153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT - CAST( - - 43 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-5897
SELECT - CAST ( - - 43 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-43
-43
-43

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

query II rowsort
SELECT DISTINCT - - 19 + + col0, 32 AS col2 FROM tab1 AS cor0
----
104
32
110
32
70
32

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5901
SELECT - col1 DIV + 8 col0, + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-10
32
-2
-77
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5901
SELECT - col1 / + 8 col0, + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-10
32
-2
-77
0
2

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

query I rowsort
SELECT col1 - 4 AS col1 FROM tab2
----
47
63
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5904
SELECT ALL 33 + - + col2 + + 3 * + col2 + - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL 33 + - + col2 + + 3 * + col2 + - - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 81 - + + col2 AS col2 FROM tab0
----
-128
-180
-91

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

query I rowsort
SELECT ALL 36 + + - col0 FROM tab1
----
-15
-49
-55

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

query I rowsort
SELECT - - 27 AS col1 FROM tab0 AS cor0
----
27
27
27

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5912
SELECT + + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5913
SELECT ALL - 46 col0, col0 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-46
NULL
-46
NULL
-46
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5913
SELECT ALL - 46 col0, col0 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-46
NULL
-46
NULL
-46
NULL

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5918
SELECT - COUNT ( DISTINCT - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + 2 + + 5 / - ( - + col0 ) * + + col2 / col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 <> 55 * - col2 * + - col2
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT - 30 * + + col1 AS col0 FROM tab1
----
-1410
-150
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT DISTINCT - col0 DIV + col0 + + 69 - + - col1 FROM tab1
----
115
73
82

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - col0 / + col0 + + 69 - + - col1 FROM tab1
----
115
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT DISTINCT + 3 DIV + - 16 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT + 3 / + - 16 AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 45 * - col2 col2 FROM tab1
----
-2596
-2992
-4224

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

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

query I rowsort
SELECT + 70 FROM tab1 WHERE ( NULL <= ( NULL ) )
----

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

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

query I rowsort
SELECT 61 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - 32 - + COUNT( * ) col2 FROM tab0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5931
SELECT - 32 - + COUNT ( * ) col2 FROM tab0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT - col2 - + CAST( + + col1 AS SIGNED ) FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-5932
SELECT - col2 - + CAST ( + + col1 AS INTEGER ) FROM tab0
----
-100
-128
-31

query I rowsort
SELECT 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - 96 + + - col2 AS col2 FROM tab1 AS cor0 WHERE 26 IS NOT NULL
----
-155
-164
-192

query II rowsort
SELECT ALL - 57 - 69 AS col0, - col1 - + col2 + - + col0 FROM tab0 AS cor0
----
-126
-118
-126
-143
-126
-197

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

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

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

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

query II rowsort
SELECT ALL + + col0 AS col2, - 49 + - - col1 AS col2 FROM tab1 cor0
----
51
-35
85
-44
91
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT 44 + + 78 DIV col0 FROM tab1 AS cor0
----
44
44
45

skipif mysql # not compatible
query I rowsort label-5939
SELECT 44 + + 78 / col0 FROM tab1 AS cor0
----
44
44
45

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

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

query II rowsort
SELECT DISTINCT + - col1 AS col0, + col0 + + 19 FROM tab0 cor0
----
-1
116
-21
106
-81
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT + col0 + col1 DIV - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5942
SELECT + col0 + col1 / - col0 FROM tab1 AS cor0
----
51
85
91

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

query I rowsort
SELECT DISTINCT - 10 * - ( + col0 ) + col0 AS col2 FROM tab1
----
1001
561
935

query I rowsort
SELECT + 98 * - col1 * + - col0 FROM tab0
----
119070
179046
9506

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT - col1 * + - col1 + 55 = - 20
----
-59
-68
-96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT MIN( ALL col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5949
SELECT MIN ( ALL col1 ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 17 > 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - 18 * MAX( + 13 ) * + 54 FROM tab2 AS cor0
----
-12636

skipif mysql # not compatible
query I rowsort label-5951
SELECT - 18 * MAX ( + 13 ) * + 54 FROM tab2 AS cor0
----
-12636

query I rowsort
SELECT + col2 * - + 29 * + 7 FROM tab0
----
-20097
-2030
-9541

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5953
SELECT DISTINCT - col1, - CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5953
SELECT DISTINCT - col1, - CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL - MIN( ALL - 30 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - MIN ( ALL - 30 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT - ( + + col0 ) + + + col1 FROM tab1 AS cor0
----
-37
-44
-80

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

skipif mysql # not compatible
query I rowsort label-5958
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 64 + - 58 AS col2 FROM tab1 AS cor0
----
6
6
6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT DISTINCT SUM( + + col0 ), + MAX( - 57 ) AS col1 FROM tab2
----
185
-57

skipif mysql # not compatible
query II rowsort label-5961
SELECT DISTINCT SUM ( + + col0 ), + MAX ( - 57 ) AS col1 FROM tab2
----
185
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 * + col2 col1, col2 + + ( - col0 ) col2 FROM tab0
----
3102
32
6534
2
660
-77

query III rowsort
SELECT * FROM tab1 WHERE - + 13 * 21 * col0 + + + 85 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + 40 <= NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5967
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) <> 40 * - - col2
----

skipif mysql # not compatible
query III rowsort label-5967
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) <> 40 * - - col2
----

query I rowsort
SELECT 95 + - - 53 * col0 AS col2 FROM tab1 AS cor0
----
2798
4600
4918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT col2 / + 66 + - - CAST( NULL AS SIGNED ) * + + col1 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT col2 / + 66 + - - CAST ( NULL AS INTEGER ) * + + col1 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - - 7 + + col1 FROM tab0 AS cor0
----
168
648
8

query I rowsort
SELECT 12 + - col0 AS col0 FROM tab1
----
-39
-73
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT col2 * + CAST( + + ( - col0 ) AS SIGNED ) * - + 61 + - + 14 AS col0 FROM tab2
----
156146
265336
64524

skipif mysql # not compatible
query I rowsort label-5972
SELECT col2 * + CAST ( + + ( - col0 ) AS INTEGER ) * - + 61 + - + 14 AS col0 FROM tab2
----
156146
265336
64524

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

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

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

query I rowsort
SELECT ALL + - col1 - - col2 + 69 FROM tab0 AS cor0
----
167
35
58

query I rowsort
SELECT + 49 - - - 36 FROM tab2 AS cor0
----
13
13
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + - COUNT( * ) * - 2 + - 66 AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5978
SELECT + - COUNT ( * ) * - 2 + - 66 AS col2 FROM tab2 AS cor0
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL + MAX( DISTINCT + col1 ) * - COUNT( 42 ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + MAX ( DISTINCT + col1 ) * - COUNT ( 42 ) FROM tab1 AS cor0
----
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5981
SELECT DISTINCT - - 24 / + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT - - 24 / + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT - + col0 DIV ( + + col2 ) FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT - + col0 / ( + + col2 ) FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT CAST( - MIN( ( col0 ) ) AS SIGNED ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5984
SELECT CAST ( - MIN ( ( col0 ) ) AS INTEGER ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT - CAST( + col2 AS SIGNED ) * 81 + - col1 + 45 FROM tab2
----
-1869
-3272
-4720

skipif mysql # not compatible
query I rowsort label-5985
SELECT - CAST ( + col2 AS INTEGER ) * 81 + - col1 + 45 FROM tab2
----
-1869
-3272
-4720

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 WHERE - - col2 * - col1 + 48 + + col0 < + col0 - - col0
----
3

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 WHERE - - col2 * - col1 + 48 + + col0 < + col0 - - col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * col2 NOT IN ( - + col1 + 77 + col0, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col1 col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - 46 * + COUNT( * ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 46 * + COUNT ( * ) AS col1 FROM tab2
----
-138

query I rowsort
SELECT - 33 * + + col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT 72 + - + ( + 29 ) * + 94 - + - col2 FROM tab2 AS cor0 WHERE NOT 24 <> + 77
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5992
SELECT COUNT( - 48 ) DIV + + 8 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT COUNT ( - 48 ) / + + 8 FROM tab0
----
0

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT 78 + + col2 * - ( + - col2 ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT - col1 * - 46 FROM tab2 AS cor0
----
2346
3082
3542

query I rowsort
SELECT DISTINCT + - ( + 89 ) + ( - - ( + col1 ) ) AS col2 FROM tab1 cor0 WHERE NOT col2 * - col0 IS NOT NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5999
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 32 + + + col2 + col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 18 * + 42 AS col0 FROM tab2 WHERE NULL IS NULL
----
-756

query I rowsort
SELECT DISTINCT + 32 + 74 + + - ( - 26 ) FROM tab1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT 20 + + CAST( - col2 AS SIGNED ) * - - col2 FROM tab0
----
-2189
-80
-9781

skipif mysql # not compatible
query I rowsort label-6002
SELECT 20 + + CAST ( - col2 AS INTEGER ) * - - col2 FROM tab0
----
-2189
-80
-9781

query I rowsort
SELECT DISTINCT col2 + + 72 - + + 17 - - col2 * + 17 FROM tab2
----
1099
469
775

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT + 41 * + 49 + - - col0 DIV - col2 + col2 * + - col1 + + col2 AS col2 FROM tab2
----
-1032
-1820
857

skipif mysql # not compatible
query I rowsort label-6004
SELECT + 41 * + 49 + - - col0 / - col2 + col2 * + - col1 + + col2 AS col2 FROM tab2
----
-1032
-1820
857

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT col2 * + CAST( 88 AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
1978
3456
5029

skipif mysql # not compatible
query I rowsort label-6007
SELECT col2 * + CAST ( 88 AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
1978
3456
5029

query I rowsort
SELECT DISTINCT + + col2 * - col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT + COUNT( * ) + 81 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + COUNT ( * ) + 81 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL + COUNT( * ) + + 11 col0 FROM tab1
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6010
SELECT ALL + COUNT ( * ) + + 11 col0 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT 40 + + COUNT( col1 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT 40 + + COUNT ( col1 ) FROM tab0
----
43

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 35 * + col1 AS col0 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT DISTINCT + 58 * + col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( - 65 / + 80 )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - - col1 * + - col1 NOT IN ( 60, col1 * col2, + - col0 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT DISTINCT - 0 DIV - 88 * - col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - 0 / - 88 * - col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT ALL 35 DIV + ( ( + 45 ) ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL 35 / + ( ( + 45 ) ) FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) * + - ( + MAX( DISTINCT - col1 ) ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) * + - ( + MAX ( DISTINCT - col1 ) ) FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6024
SELECT ALL 15 AS col0, CAST( NULL AS SIGNED ) * + 67 + - col1 FROM tab2
----
15
NULL
15
NULL
15
NULL

skipif mysql # not compatible
query II rowsort label-6024
SELECT ALL 15 AS col0, CAST ( NULL AS INTEGER ) * + 67 + - col1 FROM tab2
----
15
NULL
15
NULL
15
NULL

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

skipif mysql # not compatible
query I rowsort label-6025
SELECT - COUNT ( * ) * - 68 AS col2 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT 71 * + + 94 * + ( COUNT( * ) ) AS col0 FROM tab1
----
20022

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT 71 * + + 94 * + ( COUNT ( * ) ) AS col0 FROM tab1
----
20022

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

skipif mysql # not compatible
query I rowsort label-6027
SELECT - col1 / + col2 AS col0 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT col0 AS col2, col2 - + - ( - + 7 ) FROM tab1
----
51
89
85
52
91
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT DISTINCT COUNT( * ) AS col0, + 37 AS col0 FROM tab1 WHERE NOT 50 >= + + col1
----
0
37

skipif mysql # not compatible
query II rowsort label-6029
SELECT DISTINCT COUNT ( * ) AS col0, + 37 AS col0 FROM tab1 WHERE NOT 50 >= + + col1
----
0
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT DISTINCT 37 * + MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT 37 * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - 96 + + - ( - - 90 ), + col0, - col0 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * + 61 col1 FROM tab0 AS cor0
----
-2379
-2379
-2379

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

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

query I rowsort
SELECT ALL + - ( - col2 ) + + ( + 82 ) * + col2 AS col2 FROM tab0 AS cor0
----
3901
8217
830

query II rowsort
SELECT + col1, - 38 * col0 FROM tab2 AS cor0
----
51
-1748
67
-2850
77
-2432

query I rowsort
SELECT DISTINCT col0 + - 70 AS col1 FROM tab1
----
-19
15
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL SUM( + CAST( - col2 AS SIGNED ) ) + - 65 AS col1 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL SUM ( + CAST ( - col2 AS INTEGER ) ) + - 65 AS col1 FROM tab2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT - COUNT( * ) + 78 AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - COUNT ( * ) + 78 AS col1 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL + MIN( ALL + col0 ) AS col2 FROM tab0 WHERE - col2 * + + col0 * + col2 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + MIN ( ALL + col0 ) AS col2 FROM tab0 WHERE - col2 * + + col0 * + col2 IS NOT NULL
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT DISTINCT + 36 * col0 DIV col0 * + 23 + - col0 AS col2 FROM tab0
----
731
741
813

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT + 36 * col0 / col0 * + 23 + - col0 AS col2 FROM tab0
----
731
741
813

query I rowsort
SELECT col0 * - col0 + - 91 + - - col0 + + col1 * - - col1 AS col0 FROM tab2 AS cor0
----
-1152
1806
440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 78 + - + 64 col2 FROM tab0
----
14
1574
6254

onlyif mysql # DIV for integer division: 
query II rowsort label-6048
SELECT + col0, col0 DIV - + 88 + 52 FROM tab0
----
15
52
87
52
97
51

skipif mysql # not compatible
query II rowsort label-6048
SELECT + col0, col0 / - + 88 + 52 FROM tab0
----
15
52
87
52
97
51

query II rowsort
SELECT DISTINCT 62 AS col0, - 5 + col2 FROM tab2
----
62
18
62
35
62
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT ALL + - COUNT( * ) DIV + 72 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + - COUNT ( * ) / + 72 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ( - 66 ) FROM tab0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + - 17 / + 44 + - - 81 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + - 17 / + 44 + - - 81 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 62 * + + col0 + col1 FROM tab2 AS cor0
----
-2801
-3891
-4583

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT col0 * col0 DIV - col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6055
SELECT col0 * col0 / - col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - + 64 * - col0 FROM tab1 AS cor0
----
3264
5440
5824

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

query I rowsort
SELECT - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

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

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

query I rowsort
SELECT DISTINCT + ( + + col1 ) * + col0 + - + col2 FROM tab2
----
2323
4888
4967

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + 64
----

query I rowsort
SELECT ( - + 41 ) * - + 32 * col1 * - 6 * col0 FROM tab1
----
-3345600
-33668544
-5620608

query II rowsort
SELECT - 34 + 11 AS col0, + col1 AS col2 FROM tab0
----
-23
1
-23
21
-23
81

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

query I rowsort
SELECT + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT + 70 AS col0 FROM tab0 WHERE + 17 NOT BETWEEN - CAST( 50 AS SIGNED ) AND + + 31
----

skipif mysql # not compatible
query I rowsort label-6066
SELECT + 70 AS col0 FROM tab0 WHERE + 17 NOT BETWEEN - CAST ( 50 AS INTEGER ) AND + + 31
----

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

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

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

query I rowsort
SELECT ALL - + 9 FROM tab1 AS cor0
----
-9
-9
-9

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

query I rowsort
SELECT DISTINCT col0 + 85 + - col2 FROM tab1
----
108
111
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT 12 + + - MAX( + 42 ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6072
SELECT 12 + + - MAX ( + 42 ) AS col2 FROM tab0
----
-30

query I rowsort
SELECT ALL col0 * + 29 + - col2 FROM tab2
----
1311
1816
2117

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + ( + 75 ) IS NULL
----

query I rowsort
SELECT + col0 * - 47 * 21 FROM tab2
----
-45402
-63168
-74025

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT COUNT( * ) / + MIN( ALL - 98 ), COUNT( * ) AS col2 FROM tab1 WHERE col2 + + col1 BETWEEN + + col0 AND - 9
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6078
SELECT COUNT ( * ) / + MIN ( ALL - 98 ), COUNT ( * ) AS col2 FROM tab1 WHERE col2 + + col1 BETWEEN + + col0 AND - 9
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT DISTINCT - 85 col1 FROM tab0 WHERE NOT 58 * - 39 + CAST( - col2 AS SIGNED ) IS NULL
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6079
SELECT DISTINCT - 85 col1 FROM tab0 WHERE NOT 58 * - 39 + CAST ( - col2 AS INTEGER ) IS NULL
----
-85

query II rowsort
SELECT ALL ( + 15 ) AS col2, + col0 AS col0 FROM tab0
----
15
15
15
87
15
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 17 ) + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT DISTINCT + 31 * - CAST( NULL AS SIGNED ) * - - col0 * 80 col1 FROM tab2 AS cor0 WHERE NOT col1 <= - + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6082
SELECT DISTINCT + 31 * - CAST ( NULL AS INTEGER ) * - - col0 * 80 col1 FROM tab2 AS cor0 WHERE NOT col1 <= - + col2
----
NULL

query I rowsort
SELECT - 47 * - col2 FROM tab2
----
1081
1880
2726

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL COUNT( DISTINCT - - 19 ) * - - 89 * - - 46 col1 FROM tab1 AS cor0
----
4094

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6087
SELECT ALL COUNT ( DISTINCT - - 19 ) * - - 89 * - - 46 col1 FROM tab1 AS cor0
----
4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6088
SELECT ALL + - COUNT( * ) - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

query II rowsort
SELECT DISTINCT - col0 * - 44 * + col2 AS col1, ( - - 97 ) + col2 - - ( col1 ) FROM tab0 AS cor0
----
31020
225
38280
128
422532
197

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - col0 - - - 85
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - 68 * - ( + MIN( - 0 ) ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6093
SELECT - 68 * - ( + MIN ( - 0 ) ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ( + col0 ) DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6094
SELECT ( + col0 ) / - col0 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL + 78 AS col1, 35 - - col0 FROM tab0
----
78
122
78
132
78
50

query I rowsort
SELECT ALL col1 * + col2 * - - 41 FROM tab2
----
126280
159326
48093

query I rowsort
SELECT - 44 * + 11 FROM tab0
----
-484
-484
-484

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 34 <= + + 50
----

query I rowsort
SELECT + 11 * col0 FROM tab1
----
1001
561
935

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

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT ALL col0 * + - 12 AS col1 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT ALL 10 * - col2 + - + col1 AS col1 FROM tab2 WHERE - 44 * - col2 IS NOT NULL
----
-281
-477
-647

query II rowsort
SELECT - col1 * col1 * + - col1 AS col0, + ( 88 ) - 1 - + - col1 + col0 * + col2 * - col2 FROM tab1
----
103823
-420650
125
-295793
2744
-469915

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

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

query I rowsort
SELECT - col1 + - - col0 + 31 * - 69 * - col2 * - - col2 FROM tab1 AS cor0
----
19713061
7445939
9890780

query I rowsort
SELECT - col1 + + - col2 AS col0 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT ALL CAST( NULL AS SIGNED ) / 82 - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL CAST ( NULL AS INTEGER ) / 82 - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT 6 * - 24 AS col1 FROM tab0
----
-144
-144
-144

query I rowsort
SELECT 43 * 30 AS col0 FROM tab1
----
1290
1290
1290

query I rowsort
SELECT DISTINCT - 25 * + ( + ( 54 ) ) + 27 AS col2 FROM tab2
----
-1323

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 - - 46 / col0 AND - 36 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT - SUM( DISTINCT - col1 ) * - COUNT( + col0 ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-6114
SELECT - SUM ( DISTINCT - col1 ) * - COUNT ( + col0 ) FROM tab0
----
-309

query I rowsort
SELECT ( - 84 ) * - col2 AS col0 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT 17 * - 82 FROM tab0
----
-1394
-1394
-1394

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT - 23 * 95 FROM tab2 WHERE NOT NULL NOT IN ( CAST( + ( - 13 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 23 * 95 FROM tab2 WHERE NOT NULL NOT IN ( CAST ( + ( - 13 ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT COUNT( * ) * - 9 + - 96 AS col1 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-6120
SELECT COUNT ( * ) * - 9 + - 96 AS col1 FROM tab0
----
-123

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT ALL + col2 DIV 40 col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6122
SELECT ALL + col2 / 40 col1 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT col1 * + CAST( NULL AS SIGNED ) + 0 / col1 col1 FROM tab0 WHERE NOT - col2 > 24
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6123
SELECT col1 * + CAST ( NULL AS INTEGER ) + 0 / col1 col1 FROM tab0 WHERE NOT - col2 > 24
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - ( col1 ) * col2 - - 31 * - 66 FROM tab2
----
-3219
-5126
-5932

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 29 + col0 >= col1 + 28
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + + ( col0 ) col1 FROM tab0
----
-210
-7482
-9312

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

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

query I rowsort
SELECT ALL + 63 * - col1 AS col2 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT ALL + col1 * col2 + + col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT - 84 + 62 FROM tab1
----
-22
-22
-22

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) + + col2 > 2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT MAX( ALL - col1 ) + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6136
SELECT MAX ( ALL - col1 ) + COUNT ( * ) FROM tab2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6137
SELECT DISTINCT - ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 WHERE col0 * + col1 NOT IN ( - col1 + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE col0 * + col1 NOT IN ( - col1 + col1 )
----
-3

query I rowsort
SELECT DISTINCT - col1 * 0 - - 44 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / + col0 AS col0 FROM tab0 AS cor0 WHERE 64 * - 92 NOT BETWEEN ( + col2 ) AND ( NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / + col0 AS col0 FROM tab0 AS cor0 WHERE 64 * - 92 NOT BETWEEN ( + col2 ) AND ( NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT + 73 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * 98 FROM tab1 cor0
----
-5782
-6664
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6142
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + CAST( + 46 AS SIGNED ) AND NULL
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-6142
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + CAST ( + 46 AS INTEGER ) AND NULL
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT ( - 22 ) AS col0 FROM tab0
----
-22

query I rowsort
SELECT col0 * col1 AS col1 FROM tab2 WHERE NOT 22 > ( col1 )
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6145
SELECT ALL - CAST( NULL AS SIGNED ) * - 59 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6145
SELECT ALL - CAST ( NULL AS INTEGER ) * - 59 col2 FROM tab0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 < ( - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT DISTINCT + ( - SUM( DISTINCT 62 ) ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT + ( - SUM ( DISTINCT 62 ) ) FROM tab1 AS cor0
----
-62

query I rowsort
SELECT DISTINCT + - 49 AS col1 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT + 67 AS col0 FROM tab2 cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 96 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL - 66 + COUNT( DISTINCT 48 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - 66 + COUNT ( DISTINCT 48 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-66

query I rowsort
SELECT DISTINCT + ( - 14 ) FROM tab2 AS cor0
----
-14

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

query I rowsort
SELECT ALL 87 * - + col1 AS col2 FROM tab1
----
-1218
-4089
-435

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

query I rowsort
SELECT DISTINCT col2 * + - 51 FROM tab0
----
-2397
-5049
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT MIN( DISTINCT - 31 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT MIN ( DISTINCT - 31 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6161
SELECT - MAX( + 7 ) + - 29 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT - MAX ( + 7 ) + - 29 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT + col0 * col1 DIV 91 + + col1 AS col0 FROM tab0
----
2
41
94

skipif mysql # not compatible
query I rowsort label-6162
SELECT + col0 * col1 / 91 + + col1 AS col0 FROM tab0
----
2
41
94

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6164
SELECT DISTINCT CAST( + + col1 AS SIGNED ) DIV col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) / col1 AS col0 FROM tab2
----
1

query I rowsort
SELECT col2 + - col2 * ( col0 ) FROM tab1
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col2 FROM tab1
----
-47

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

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

query I rowsort
SELECT + col1 + 57 AS col0 FROM tab1 AS cor0
----
104
62
71

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) = ( + 31 + 32 / col2 )
----

query I rowsort
SELECT 23 FROM tab0 AS cor0 WHERE ( - 10 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + 73 BETWEEN + col1 + - 18 * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + 73 BETWEEN + col1 + - 18 * - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT 71 DIV 1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif mysql # not compatible
query I rowsort label-6173
SELECT 71 / 1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ( - + col0 ) * + - col2 + 13 FROM tab2 AS cor0
----
1071
2573
4363

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

query I rowsort
SELECT + + ( ( + col1 ) ) * - 88 + col1 AS col0 FROM tab1 AS cor0
----
-1218
-4089
-435

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT + CAST( - - 28 AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6179
SELECT + CAST ( - - 28 AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6180
SELECT * FROM tab0 AS cor0 WHERE - 45 < + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6180
SELECT * FROM tab0 AS cor0 WHERE - 45 < + - CAST ( NULL AS REAL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT + COUNT( + col1 ) AS col2 FROM tab1 AS cor0 WHERE ( 9 + - 88 ) IN ( - ( - 58 ) * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6182
SELECT + COUNT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE ( 9 + - 88 ) IN ( - ( - 58 ) * + col0 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col0 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6184
SELECT DISTINCT + CAST( + MAX( - col1 ) AS SIGNED ) FROM tab1 WHERE NOT ( + col2 ) <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + CAST ( + MAX ( - col1 ) AS INTEGER ) FROM tab1 WHERE NOT ( + col2 ) <> - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col2 col0 FROM tab0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 IN ( - col0 + - col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL + CAST( col1 AS SIGNED ) + - col0 + + - CAST( col1 AS SIGNED ) + + 6 AS col1 FROM tab2
----
-40
-58
-69

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + CAST ( col1 AS INTEGER ) + - col0 + + - CAST ( col1 AS INTEGER ) + + 6 AS col1 FROM tab2
----
-40
-58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT COUNT( * ) + - 31 AS col0 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT COUNT ( * ) + - 31 AS col0 FROM tab2
----
-28

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - + col1, - 99 * col2 col1 FROM tab2
----
0
-2277
0
-3960
0
-5742

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT ALL - col2 + - 50 + + - col1 * col0 DIV col0 * col1 FROM tab2
----
-2674
-4597
-6019

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL - col2 + - 50 + + - col1 * col0 / col0 * col1 FROM tab2
----
-2674
-4597
-6019

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

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

query I rowsort
SELECT ALL + col2 - - - 8 FROM tab0
----
2
39
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT - MAX( - 69 ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6196
SELECT - MAX ( - 69 ) AS col0 FROM tab1
----
69

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

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

query I rowsort
SELECT + 18 AS col1 FROM tab0 cor0
----
18
18
18

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

query I rowsort
SELECT AVG ( ( col2 ) ) FROM tab1 AS cor0 WHERE NOT ( - 41 ) NOT BETWEEN NULL AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6202
SELECT * FROM tab2 WHERE NOT 42 * - col2 NOT IN ( - CAST( + CAST( ( 92 ) AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6202
SELECT * FROM tab2 WHERE NOT 42 * - col2 NOT IN ( - CAST ( + CAST ( ( 92 ) AS INTEGER ) AS REAL ) )
----

query I rowsort
SELECT + - 9 AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-9
-9
-9

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + - col0 IN ( 31 )
----
46
64
75

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - 72 <> - 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * 88 FROM tab1 AS cor0 WHERE NOT + 38 = - col0 * - 93 + - col0
----
4488
7480
8008

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6211
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT MIN( - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6212
SELECT MIN ( - col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT DISTINCT 17 + + COUNT( * ) col1, - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
17
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6213
SELECT DISTINCT 17 + + COUNT ( * ) col1, - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
17
0

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

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

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

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

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

query I rowsort
SELECT ALL - 28 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL + 15 FROM tab2 WHERE NOT - + col1 IN ( + 8 )
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - MIN( + + 20 ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6219
SELECT - MIN ( + + 20 ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + col0 + - col1 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + 95 - + - col0 * + col2
----

query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6223
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 34 FROM tab0
----
-13
-33
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * + col2 + - 69 - - col2 col2 FROM tab2 AS cor0
----
1531
2251
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT - + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6228
SELECT - + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - ( + - 71 ) + + ( - 28 ) - 56 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT - - CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT - - CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 41 * - 48 + ( col0 ) AS col0 FROM tab1
----
-1877
-1883
-1917

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

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

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

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

query I rowsort
SELECT ALL ( - 65 ) FROM tab0
----
-65
-65
-65

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

query I rowsort
SELECT ALL 43 * + col2 AS col2 FROM tab2
----
1720
2494
989

query II rowsort
SELECT - 12 AS col0, + col1 AS col1 FROM tab0
----
-12
1
-12
21
-12
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL MIN( - 20 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL MIN ( - 20 ) FROM tab1
----
-20

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

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

query I rowsort
SELECT DISTINCT col0 * - 87 AS col0 FROM tab1
----
-4437
-7395
-7917

query II rowsort
SELECT + 79 AS col0, - col2 * + + col0 AS col1 FROM tab0 AS cor0
----
79
-705
79
-870
79
-9603

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

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

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

query I rowsort
SELECT + + 58 * col2 * + + col1 FROM tab1 cor0
----
17110
185368
77952

query I rowsort
SELECT + - 39 FROM tab2 cor0 WHERE NOT col2 / + col1 IS NULL
----
-39
-39
-39

query I rowsort
SELECT ALL 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6247
SELECT - CAST( - - 7 AS DECIMAL ) AS col0 FROM tab0 WHERE NOT + + col2 > - 77
----

skipif mysql # not compatible
query I rowsort label-6247
SELECT - CAST ( - - 7 AS REAL ) AS col0 FROM tab0 WHERE NOT + + col2 > - 77
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 69 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT - 97 * + + COUNT( + 92 ) AS col1 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT - 97 * + + COUNT ( + 92 ) AS col1 FROM tab1 AS cor0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT DISTINCT - 68 DIV - 3 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - 68 / - 3 FROM tab0 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT DISTINCT + col1 * - + 83 + + - col1 DIV col2 FROM tab2 AS cor0
----
-4235
-5562
-6392

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + col1 * - + 83 + + - col1 / col2 FROM tab2 AS cor0
----
-4235
-5562
-6392

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6253
SELECT ALL * FROM tab2 AS cor0 WHERE - 45 + - + 23 + - 63 NOT IN ( + 90 / - CAST( NULL AS DECIMAL ) / + col0 ) OR NOT + col2 + 90 BETWEEN + col2 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6253
SELECT ALL * FROM tab2 AS cor0 WHERE - 45 + - + 23 + - 63 NOT IN ( + 90 / - CAST ( NULL AS REAL ) / + col0 ) OR NOT + col2 + 90 BETWEEN + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL COUNT( * ) * + - MAX( + col1 ) + + - COUNT( * ) * + MIN( 53 ) FROM tab1 AS cor0
----
-300

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL COUNT ( * ) * + - MAX ( + col1 ) + + - COUNT ( * ) * + MIN ( 53 ) FROM tab1 AS cor0
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT + COUNT( * ) + - - 7 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT + COUNT ( * ) + - - 7 FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 WHERE - 70 * 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT col0 ) + 82 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT col0 ) + 82 FROM tab2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL - - MAX( col1 ) AS col2 FROM tab1 WHERE NULL NOT IN ( - 6, col2 * col0 - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - - MAX ( col1 ) AS col2 FROM tab1 WHERE NULL NOT IN ( - 6, col2 * col0 - + col0 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT + 53 + + CAST( - COUNT( DISTINCT + col0 ) AS SIGNED ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 53 + + CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) FROM tab0
----
50

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

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

query I rowsort
SELECT ALL + - 19 * + 9 + - col0 FROM tab2 cor0
----
-217
-235
-246

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL - 4 * - col2 - col0 * - - ( col1 ) + + - CAST( + + ( + - col1 ) AS SIGNED ) FROM tab2
----
-2203
-4691
-4726

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - 4 * - col2 - col0 * - - ( col1 ) + + - CAST ( + + ( + - col1 ) AS INTEGER ) FROM tab2
----
-2203
-4691
-4726

query I rowsort
SELECT 56 - - - col0 AS col1 FROM tab1
----
-29
-35
5

query I rowsort
SELECT DISTINCT - - col1 - col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + - 59 + - + 21 AS col0 FROM tab2 cor0
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) + col2 NOT BETWEEN 79 AND NULL
----
46
51
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT DISTINCT - - CAST( + 57 AS SIGNED ) * col2 col1 FROM tab2 AS cor0
----
1311
2280
3306

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6270
SELECT DISTINCT - - CAST ( + 57 AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
1311
2280
3306

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6271
SELECT ALL - col0 AS col2, col1 * - CAST( NULL AS DECIMAL ) + col2 * + ( - 8 ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-6271
SELECT ALL - col0 AS col2, col1 * - CAST ( NULL AS REAL ) + col2 * + ( - 8 ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

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

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + ( + - 47 ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-141

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6274
SELECT ALL 26 AS col0 FROM tab0 AS cor0 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) * - 60 + - 1 - - col0 + + - 28 IS NOT NULL
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL 26 AS col0 FROM tab0 AS cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) * - 60 + - 1 - - col0 + + - 28 IS NOT NULL
----
26
26
26

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

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

query II rowsort
SELECT - + col2, + 7 * - 59 * col2 + + 9 AS col2 FROM tab2 AS cor0
----
-23
-9490
-40
-16511
-58
-23945

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

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + CAST ( + ( - + col1 ) AS INTEGER ) FROM tab2
----
-51
-67
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT 25 * COUNT( * ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT 25 * COUNT ( * ) AS col0 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6281
SELECT SUM( ALL + col2 ) col1, + COUNT( * ) FROM tab2
----
121
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6281
SELECT SUM ( ALL + col2 ) col1, + COUNT ( * ) FROM tab2
----
121
3

query I rowsort
SELECT - 52 * - - 37 AS col1 FROM tab0
----
-1924
-1924
-1924

query I rowsort
SELECT ALL col1 * 29 AS col0 FROM tab0
----
2349
29
609

query I rowsort
SELECT ALL - + col2 * - + 75 - - col2 + - 49 FROM tab2 AS cor0
----
1699
2991
4359

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT ALL - + col2 DIV col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6285
SELECT ALL - + col2 / col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 73 * col0 * - ( - col1 ) * + - 34 FROM tab0
----
-240754
-3015630
-4534614

query I rowsort
SELECT 47 * + col0 * 64 AS col2 FROM tab1
----
153408
255680
273728

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 >= ( + ( - 35 ) * - col1 - 97 )
----
15
81
47
87
21
10

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + 88 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 / 64 * + col2 * + col2 IS NULL
----
-264

skipif mysql # not compatible
query I rowsort label-6292
SELECT + 88 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 / 64 * + col2 * + col2 IS NULL
----
-264

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

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

query I rowsort
SELECT ALL - 80 * col2 + - 93 + col0 FROM tab0 AS cor0
----
-3838
-7916
-806

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - 68 ) * - 47 + 32 + + col1 + - - col1 * + col2 * + 80 AS col1 FROM tab1
----
110762
258955
26833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6299
SELECT SUM( col1 ) AS col2, ( - 90 ) * - 62 - - CAST( NULL AS SIGNED ) FROM tab0
----
103
NULL

skipif mysql # not compatible
query II rowsort label-6299
SELECT SUM ( col1 ) AS col2, ( - 90 ) * - 62 - - CAST ( NULL AS INTEGER ) FROM tab0
----
103
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 68 + + + col0 <> col1 + 40 / - 71 + - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 30 * - col0 col0 FROM tab2
----
147840
150750
70380

query I rowsort
SELECT DISTINCT 13 + - col1 + 41 FROM tab0
----
-27
33
53

query I rowsort
SELECT ALL ( col1 ) * + col2 - - 37 FROM tab1 WHERE NOT - col0 IS NULL
----
1381
3233
332

query II rowsort
SELECT col0 - - col1 AS col2, col1 FROM tab0
----
108
21
96
81
98
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6305
SELECT ALL - + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL - + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + - col2 AND + 37
----

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

query II rowsort
SELECT ALL + col1, + col1 * - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT 11 * - ( - - SUM( - col1 ) ) AS col2 FROM tab0 AS cor0
----
1133

skipif mysql # not compatible
query I rowsort label-6311
SELECT 11 * - ( - - SUM ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
1133

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6313
SELECT - MAX( col2 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT - MAX ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6314
SELECT + CAST( - CAST( col2 AS DECIMAL ) AS SIGNED ) * + CAST( col2 AS SIGNED ) * - col2 * + ( + 93 ) + - - ( - col2 ) - - 77 AS col1 FROM tab1 AS cor0
----
19100265
29242185
82280429

skipif mysql # not compatible
query I rowsort label-6314
SELECT + CAST ( - CAST ( col2 AS REAL ) AS INTEGER ) * + CAST ( col2 AS INTEGER ) * - col2 * + ( + 93 ) + - - ( - col2 ) - - 77 AS col1 FROM tab1 AS cor0
----
19100265
29242185
82280429

query I rowsort
SELECT 92 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT + COUNT( + 9 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT + COUNT ( + 9 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 22 * + - 40 AS col0 FROM tab1
----
-880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + MIN( ALL - - 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6320
SELECT + MIN ( ALL - - 31 ) FROM tab0
----
31

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

query I rowsort
SELECT 80 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6323
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6323
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT + COUNT ( * ) * - 3 AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + + 71 AS col1 FROM tab0 AS cor0
----
71
71
71

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

query II rowsort
SELECT DISTINCT - ( - + col2 ) + + + 56 AS col2, 13 FROM tab1 AS cor0
----
115
13
124
13
152
13

query I rowsort
SELECT DISTINCT col0 + col1 * 57 FROM tab2
----
2953
3894
4453

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT + + SUM( ALL + 82 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT + + SUM ( ALL + 82 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 + + 61 FROM tab2
----
101
119
84

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

query II rowsort
SELECT DISTINCT 92, 51 AS col1 FROM tab2
----
92
51

query II rowsort
SELECT ALL col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT + 36 AS col1, - MAX( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
36
1

skipif mysql # not compatible
query II rowsort label-6335
SELECT + 36 AS col1, - MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
36
1

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

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL col1 + - CAST ( NULL AS REAL ) * - col1 FROM tab1 AS cor0 WHERE NOT col0 + + 75 IS NULL
----
NULL
NULL
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 24
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= col2
----
87
21
10

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL SUM( + 10 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL SUM ( + 10 ) FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT + 94 DIV 70 * - - col1 col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6346
SELECT + 94 / 70 * - - col1 col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ( - 82 ) * + - col1 + - ( - col1 ) AS col1 FROM tab0
----
1743
6723
83

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

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

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

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

query I rowsort
SELECT ALL + + col0 * - 88 + + col1 * + col0 * 83 AS col2 FROM tab1 AS cor0
----
27795
346983
54774

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL > NULL
----

query II rowsort
SELECT DISTINCT 83, + col1 FROM tab0
----
83
1
83
21
83
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6355
SELECT ALL - col1 + ( + CAST ( NULL AS REAL ) ) col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col1 FROM tab2 AS cor0 WHERE - col2 * - col2 + - col0 BETWEEN NULL AND + - col2
----

query II rowsort
SELECT DISTINCT - col1 AS col0, 75 AS col0 FROM tab0 AS cor0
----
-1
75
-21
75
-81
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT + - 83 * - MIN( + + col2 ) FROM tab0 AS cor0
----
830

skipif mysql # not compatible
query I rowsort label-6361
SELECT + - 83 * - MIN ( + + col2 ) FROM tab0 AS cor0
----
830

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

query II rowsort
SELECT 41 AS col1, + col0 + + col0 FROM tab0 AS cor0
----
41
174
41
194
41
30

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

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

query I rowsort
SELECT - col1 - + ( col0 ) FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL - 95 + + col2 + ( - 95 ) AS col1 FROM tab0
----
-143
-180
-91

query I rowsort
SELECT ALL + 56 * + - col0 - - + 1 AS col1 FROM tab1
----
-2855
-4759
-5095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 * - + col1 * - col1 col2 FROM tab0
----
-308286
-4389
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL - - 37 * + - COUNT( * ) * - 22 AS col1 FROM tab1 AS cor0
----
2442

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - - 37 * + - COUNT ( * ) * - 22 AS col1 FROM tab1 AS cor0
----
2442

onlyif mysql # DIV for integer division: 
query II rowsort label-6370
SELECT + col2 + col1 DIV + col2 AS col1, ( - 2 ) AS col2 FROM tab1 AS cor0
----
59
-2
68
-2
96
-2

skipif mysql # not compatible
query II rowsort label-6370
SELECT + col2 + col1 / + col2 AS col1, ( - 2 ) AS col2 FROM tab1 AS cor0
----
59
-2
68
-2
96
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL - ( - SUM( - col0 ) ) - - - 58 AS col1 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - ( - SUM ( - col0 ) ) - - - 58 AS col1 FROM tab1 AS cor0
----
-285

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

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

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

query I rowsort
SELECT ALL - col0 * 39 - col1 + + + 18 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1827
-2555
-2974

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + - col1 > - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT SUM( - 9 ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6378
SELECT SUM ( - 9 ) AS col1 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL - col2 * + 99 + - col1 FROM tab0 AS cor0
----
-1011
-4734
-9802

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6381
SELECT DISTINCT + + col2 DIV - + col2 + 80 + - col2, col2 AS col0 FROM tab2 AS cor0
----
21
58
39
40
56
23

skipif mysql # not compatible
query II rowsort label-6381
SELECT DISTINCT + + col2 / - + col2 + 80 + - col2, col2 AS col0 FROM tab2 AS cor0
----
21
58
39
40
56
23

query I rowsort
SELECT ( - 82 ) AS col2 FROM tab2 AS cor0
----
-82
-82
-82

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 + 71 BETWEEN + col2 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT ALL - CAST( + 79 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - CAST ( + 79 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 3 NOT IN ( 99 )
----

query I rowsort
SELECT 97 * - col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT - + col1 * + ( col1 ) IS NULL
----
-14
-47
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + 30 col1 FROM tab1
----
93
93
93

query II rowsort
SELECT + col2 + + col1 AS col2, + 89 AS col2 FROM tab0
----
100
89
128
89
31
89

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT + 57 + - COUNT( * ) + 74 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE col0 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT + 57 + - COUNT ( * ) + 74 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE col0 * + col0 IS NULL
----
NULL

query I rowsort
SELECT - col2 * + col0 / 34 * col0 AS col2 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + 39 + + col2 FROM tab0
----
138
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL COUNT( * ) - - 14 * COUNT( col1 ) col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6397
SELECT ALL COUNT ( * ) - - 14 * COUNT ( col1 ) col0 FROM tab0 AS cor0
----
45

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 + + - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 80 * + - col2 FROM tab2 cor0
----
1817
3160
4582

query I rowsort
SELECT DISTINCT - 29 + + col0 - + 74 + + - ( + - col0 ) + col1 AS col1 FROM tab1
----
126
13
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab2 WHERE - - col2 > + CAST( col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab2 WHERE - - col2 > + CAST ( col1 AS INTEGER )
----
0

query I rowsort
SELECT + ( + + 86 ) FROM tab1
----
86
86
86

query II rowsort
SELECT - col2 AS col0, - 31 AS col1 FROM tab1 AS cor0 WHERE NOT + 52 BETWEEN - 42 + 84 * col2 AND NULL
----
-59
-31
-68
-31
-96
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 * - - 17 FROM tab2 AS cor0
----
-1725
-3416
-4639

query I rowsort
SELECT ALL 48 * 46 FROM tab1 cor0
----
2208
2208
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6411
SELECT - - ( + 85 ) * - COUNT( * ) + 77 * 78 AS col2, COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
5241
NULL

skipif mysql # not compatible
query II rowsort label-6411
SELECT - - ( + 85 ) * - COUNT ( * ) + 77 * 78 AS col2, COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
5241
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6412
SELECT + - 31 col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + - - col1 > + 17 + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6412
SELECT + - 31 col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + - - col1 > + 17 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6413
SELECT ALL + + MAX( + + ( - CAST( NULL AS DECIMAL ) ) ) col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT + MAX( ALL - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + MAX ( ALL - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT - col2, col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL 21 * - - 79 AS col1 FROM tab2
----
1659
1659
1659

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

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

query I rowsort
SELECT ALL + 27 * + 27 * + col1 AS col2 FROM tab2
----
37179
48843
56133

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT + SUM( + 86 ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT + SUM ( + 86 ) FROM tab1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 57 - col1 BETWEEN + - 3 + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 57 - col1 BETWEEN + - 3 + col0 AND NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT 60 + CAST( - - SUM( DISTINCT col2 ) AS SIGNED ) + 56 col1 FROM tab2 cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6422
SELECT 60 + CAST ( - - SUM ( DISTINCT col2 ) AS INTEGER ) + 56 col1 FROM tab2 cor0
----
237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL + 22 + 75 + - COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL + 22 + 75 + - COUNT ( * ) FROM tab2
----
94

query I rowsort
SELECT DISTINCT 54 + + col1 FROM tab1
----
101
59
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT ALL - 4 + - + 76, - COUNT( * ) AS col1 FROM tab2
----
-80
-3

skipif mysql # not compatible
query II rowsort label-6426
SELECT ALL - 4 + - + 76, - COUNT ( * ) AS col1 FROM tab2
----
-80
-3

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT - + 43 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT - + 43 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT col2 + - 61 * - - 37 FROM tab1 AS cor0
----
-2161
-2189
-2198

query I rowsort
SELECT - - ( + 37 ) - col1 FROM tab1 AS cor0
----
-10
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + 91 - - 54 + - MAX( ALL + 84 ) AS col2 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-6435
SELECT + 91 - - 54 + - MAX ( ALL + 84 ) AS col2 FROM tab1
----
61

query I rowsort
SELECT DISTINCT ( - - 14 ) + ( + col1 ) AS col1 FROM tab2
----
65
81
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6437
SELECT ALL 24 + - col1 - - - 42 * - col1 * col2 * - - col1 * - - col2 * - - ( - col2 ), - 49 * - + col0 / 45 AS col0 FROM tab2 WHERE - + col2 IN ( - + col2 * - - col0 + + CAST( NULL AS SIGNED ) + col1 * + 90 * + - 32 )
----

skipif mysql # not compatible
query II rowsort label-6437
SELECT ALL 24 + - col1 - - - 42 * - col1 * col2 * - - col1 * - - col2 * - - ( - col2 ), - 49 * - + col0 / 45 AS col0 FROM tab2 WHERE - + col2 IN ( - + col2 * - - col0 + + CAST ( NULL AS INTEGER ) + col1 * + 90 * + - 32 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6438
SELECT 5 * + MIN( DISTINCT col0 ) + 99 DIV + MIN( 41 ) AS col2, 6 col0 FROM tab2
----
232
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6438
SELECT 5 * + MIN ( DISTINCT col0 ) + 99 / + MIN ( 41 ) AS col2, 6 col0 FROM tab2
----
232
6

query I rowsort
SELECT ALL + 94 + + col1 + + col0 AS col1 FROM tab1
----
159
184
232

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT 54 * MAX( DISTINCT + + ( 25 ) ) col0 FROM tab2
----
1350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6441
SELECT 54 * MAX ( DISTINCT + + ( 25 ) ) col0 FROM tab2
----
1350

query I rowsort
SELECT + - col0 * + col0 + - col1 + - 30 AS col1 FROM tab2 AS cor0
----
-2197
-4203
-5722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6443
SELECT + col0 + + + 19 col2, col1 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) / - - col1 IS NOT NULL
----
106
21
116
1
34
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6443
SELECT + col0 + + + 19 col2, col1 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / - - col1 IS NOT NULL
----
106
21
116
1
34
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL + SUM( - + 55 ) AS col1 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + SUM ( - + 55 ) AS col1 FROM tab0 AS cor0
----
-165

query I rowsort
SELECT ALL 43 * + 95 FROM tab2
----
4085
4085
4085

query I rowsort
SELECT DISTINCT + 94 * + col0 FROM tab1
----
4794
7990
8554

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

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

query I rowsort
SELECT ALL col0 * - col1 - + 96 FROM tab0 AS cor0
----
-1311
-1923
-193

query I rowsort
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 58 * col0 - + 12 IS NULL
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6451
SELECT col0 AS col2, 34 DIV - 53 * + + 35 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-6451
SELECT col0 AS col2, 34 / - 53 * + + 35 FROM tab2 AS cor0
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL 60 + 52 * + col1 * + + 16 AS col2 FROM tab0 AS cor0
----
17532
67452
892

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT - SUM( - - 92 ) col1 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6455
SELECT - SUM ( - - 92 ) col1 FROM tab1 AS cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL + COUNT( col1 ) + + MAX( col0 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + COUNT ( col1 ) + + MAX ( col0 ) FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT ALL CAST( - 25 AS SIGNED ) * ( 55 ) FROM tab1
----
-1375
-1375
-1375

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL CAST ( - 25 AS INTEGER ) * ( 55 ) FROM tab1
----
-1375
-1375
-1375

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT ( CAST( + 47 AS SIGNED ) ) DIV 46 * col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT ( CAST ( + 47 AS INTEGER ) ) / 46 * col0 FROM tab0
----
15
87
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6460
SELECT col0 + col2 AS col2, + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-6460
SELECT col0 + col2 AS col2, + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
104
NULL
133
NULL
69
NULL

query I rowsort
SELECT 86 + + 99 * - ( col2 ) AS col2 FROM tab2
----
-2191
-3874
-5656

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( col0, - col0, - - col2, - + 76 )
----

query I rowsort
SELECT ALL 36 + col0 - col1 FROM tab2
----
23
31
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT - + 62 * + CAST( NULL AS SIGNED ) FROM tab0 WHERE + col2 < + - col1
----

skipif mysql # not compatible
query I rowsort label-6464
SELECT - + 62 * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col2 < + - col1
----

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

query I rowsort
SELECT ALL - col2 + + - col0 * 9 FROM tab2
----
-437
-616
-733

query I rowsort
SELECT + col2 - 1 * 34 AS col2 FROM tab1
----
25
34
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT + 56 - + - MIN( - 84 ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-6468
SELECT + 56 - + - MIN ( - 84 ) FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6469
SELECT + 33 AS col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

skipif mysql # not compatible
query II rowsort label-6469
SELECT + 33 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

query I rowsort
SELECT + + col2 * + - col1 + col2 + + col0 + - col2 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-36880
-8813
-950600

query I rowsort
SELECT DISTINCT 93 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 65 + + col1 FROM tab0 AS cor0 WHERE NULL <= col1 + - + col2 * col0
----

query I rowsort
SELECT DISTINCT - - ( - 43 ) AS col1 FROM tab2 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT 72 + - SUM( 31 ) * SUM( + - 87 ) AS col0 FROM tab1 AS cor0
----
24345

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT 72 + - SUM ( 31 ) * SUM ( + - 87 ) AS col0 FROM tab1 AS cor0
----
24345

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col1 * - col0 * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT COUNT( * ) DIV 51 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT COUNT ( * ) / 51 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT col0 DIV + - col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6478
SELECT col0 / + - col1 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT col0 * + col2 * - 63 * + - col1 * + + 41 AS col2 FROM tab2
----
139373514
509160960
752815350

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 64 col0 FROM tab2
----
3264
4288
4928

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 89 FROM tab2 AS cor0 WHERE 60 * - 49 + - + 4 IS NULL
----

query I rowsort
SELECT ALL - 57 * - - col2 + - 15 FROM tab0 cor0
----
-2694
-5658
-585

query I rowsort
SELECT + + 29 FROM tab2 cor0
----
29
29
29

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

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

query II rowsort
SELECT DISTINCT + ( + - 42 ) * - col2, col1 FROM tab2
----
1680
77
2436
67
966
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT + col1 DIV - - 75 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + col1 / - - 75 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + col1 * + col1 * + - col1 + - col2 FROM tab0 AS cor0
----
-100
-531488
-9271

query I rowsort
SELECT ALL + col1 * + + col0 * + 54 FROM tab2 AS cor0 WHERE 73 * col2 IS NOT NULL
----
126684
266112
271350

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

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

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

query I rowsort
SELECT ALL + 46 * col0 + + - col0 AS col1 FROM tab2
----
2070
2880
3375

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + 91 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 81, col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + ( - + col2 ) ) IS NULL )
----

query I rowsort
SELECT - col2 + - - col0 * + 83 FROM tab0 AS cor0
----
1198
7211
7952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * - 23 + + - 86 col2 FROM tab0 AS cor0
----
-2133
-2133
-2133

query I rowsort
SELECT + 89 + - + ( - col1 ) * - + 44 FROM tab0 cor0
----
-3475
-835
45

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT DISTINCT - 34 AS col0, COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-34
9

skipif mysql # not compatible
query II rowsort label-6509
SELECT DISTINCT - 34 AS col0, COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-34
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6510
SELECT + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT ALL - COUNT( * ) AS col1, 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
68

skipif mysql # not compatible
query II rowsort label-6512
SELECT ALL - COUNT ( * ) AS col1, 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
68

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

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

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

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

query I rowsort
SELECT + col2 * - 88 AS col2 FROM tab0 AS cor0
----
-4136
-8712
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT col2 DIV - - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6517
SELECT col2 / - - col0 AS col2 FROM tab2
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6522
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) * + col2 col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6522
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT - 18 AS col1, 68 AS col2 FROM tab1
----
-18
68
-18
68
-18
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT 6, SUM( + col2 ) * COUNT( * ) * + - 3 AS col2 FROM tab2 AS cor0
----
6
-1089

skipif mysql # not compatible
query II rowsort label-6524
SELECT 6, SUM ( + col2 ) * COUNT ( * ) * + - 3 AS col2 FROM tab2 AS cor0
----
6
-1089

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

query I rowsort
SELECT col0 * - 67 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 WHERE NOT - 88 IS NULL
----
14
47
5

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NOT ( - - 22 IS NULL ) )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 32 * 94 = - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT MIN( - + col0 ) + + 27 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6533
SELECT MIN ( - + col0 ) + + 27 FROM tab2 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT 53 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-6534
SELECT 53 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 + - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
69
88
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 * - + col2 * + 18 col2 FROM tab0 cor0
----
-30456
-64152
-6480

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE + col0 * 74 IN ( + 64, + 61 * col0, - - 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT ( COUNT( * ) ) + + SUM( 12 ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT ( COUNT ( * ) ) + + SUM ( 12 ) AS col2 FROM tab0
----
39

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

query I rowsort
SELECT - col1 + - 46 FROM tab1
----
-51
-60
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL 38 + - - COUNT( * ) AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL 38 + - - COUNT ( * ) AS col1 FROM tab2
----
41

query II rowsort
SELECT + 47, col0 AS col0 FROM tab0
----
47
15
47
87
47
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + COUNT( * ) + - 39 FROM tab1 WHERE NULL IS NULL
----
-36

skipif mysql # not compatible
query I rowsort label-6544
SELECT + COUNT ( * ) + - 39 FROM tab1 WHERE NULL IS NULL
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT + COUNT( ALL - ( - 36 ) ) AS col2, + MIN( DISTINCT - col2 ) + 57 AS col2 FROM tab2
----
3
-1

skipif mysql # not compatible
query II rowsort label-6545
SELECT + COUNT ( ALL - ( - 36 ) ) AS col2, + MIN ( DISTINCT - col2 ) + 57 AS col2 FROM tab2
----
3
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT DISTINCT + col0 * CAST( - 4 AS SIGNED ) FROM tab1 AS cor0
----
-204
-340
-364

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + col0 * CAST ( - 4 AS INTEGER ) FROM tab1 AS cor0
----
-204
-340
-364

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

query I rowsort
SELECT + col2 - - col2 * + col2 * col2 + col2 FROM tab1
----
205497
314568
884928

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

query II rowsort
SELECT DISTINCT + col2 AS col0, + 8 AS col1 FROM tab1 WHERE NOT + - col0 IS NULL
----
59
8
68
8
96
8

query I rowsort
SELECT 40 * col1 + - 83 FROM tab0
----
-43
3157
757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col0 + + col1 * - col0 col0 FROM tab2
----
-10650
-4462
-9024

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > ( NULL )
----

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

query I rowsort
SELECT ALL + col1 * - - 17 + + col0 AS col1 FROM tab0 AS cor0
----
114
1392
444

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

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

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

skipif mysql # not compatible
query I rowsort label-6558
SELECT - MAX ( + 95 ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT DISTINCT + - COUNT( * ) DIV 49 - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT + - COUNT ( * ) / 49 - + COUNT ( * ) FROM tab2 AS cor0
----
-3

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

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

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

query I rowsort
SELECT + col2 * - - 11 * - - ( 40 ) AS col0 FROM tab1
----
25960
29920
42240

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-15
-87
-97

query I rowsort
SELECT 74 * - col1 FROM tab1
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + MAX( 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6565
SELECT + MAX ( 87 ) FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT col1 DIV - ( col0 ) col2 FROM tab0
----
-5
0
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT 15 DIV + + 25 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT 15 / + + 25 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 WHERE NOT + col0 * + 55 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6572
SELECT - CAST( NULL AS SIGNED ) * - - col0 * + col1 / 28 * + 22 + - 85, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-6572
SELECT - CAST ( NULL AS INTEGER ) * - - col0 * + col1 / 28 * + 22 + - 85, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT 7 * + col2 * + col0 + + + 23 FROM tab2
----
17943
30473
7429

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - 33 * - 82 + + + COUNT( * ) - - COUNT( * ) FROM tab1
----
2712

skipif mysql # not compatible
query I rowsort label-6575
SELECT - 33 * - 82 + + + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
2712

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT col2 DIV col1 + - col2 FROM tab1
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-6576
SELECT col2 / col1 + - col2 FROM tab1
----
-48
-67
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL ( - MIN( DISTINCT - + col0 ) ) FROM tab1 WHERE NOT ( + + col1 * + 22 + ( + col0 ) + col0 ) IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL ( - MIN ( DISTINCT - + col0 ) ) FROM tab1 WHERE NOT ( + + col1 * + 22 + ( + col0 ) + col0 ) IS NULL
----
91

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

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

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

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

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

query I rowsort
SELECT - 28 * + 79 FROM tab2 cor0
----
-2212
-2212
-2212

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

query I rowsort
SELECT DISTINCT + 49 + + col1 + - - 93 FROM tab2
----
193
209
219

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT 61 * + - COUNT( * ) - + 63 + COUNT( * ) + + 21 AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-6584
SELECT 61 * + - COUNT ( * ) - + 63 + COUNT ( * ) + + 21 AS col0 FROM tab0
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 88 + + 70 col2 FROM tab0
----
137
157
77

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 + col0 BETWEEN NULL AND + 26 * col1 + + + 83
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6588
SELECT DISTINCT + col1 * - 99, - col1 + - col0 + + + col0 + - + col2 * + - 62 + - col0 DIV col2 AS col1 FROM tab2
----
-5049
1373
-6633
3528
-7623
2402

skipif mysql # not compatible
query II rowsort label-6588
SELECT DISTINCT + col1 * - 99, - col1 + - col0 + + + col0 + - + col2 * + - 62 + - col0 / col2 AS col1 FROM tab2
----
-5049
1373
-6633
3528
-7623
2402

query I rowsort
SELECT ALL + 40 * - + 14 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-560
-560
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT ( + 85 ) - + SUM( DISTINCT + col0 ) FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT ( + 85 ) - + SUM ( DISTINCT + col0 ) FROM tab2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL = - col0 / + 49 + + + ( CAST( + col0 AS SIGNED ) ) + + col1 * col0 / - + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6591
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL = - col0 / + 49 + + + ( CAST ( + col0 AS INTEGER ) ) + + col1 * col0 / - + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 49 AS col0, + ( - 43 ) col0 FROM tab0 AS cor0
----
2303
-43
4851
-43
490
-43

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0 WHERE + ( - col0 ) >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + COUNT( * ) * - 36 AS col0 FROM tab2 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + COUNT ( * ) * - 36 AS col0 FROM tab2 cor0
----
-108

query I rowsort
SELECT 33 * - col1 FROM tab1 cor0
----
-1551
-165
-462

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < - 14
----

query I rowsort
SELECT - - 85 * + 12 AS col2 FROM tab2 AS cor0
----
1020
1020
1020

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

query I rowsort
SELECT - - 51 AS col1 FROM tab2 AS cor0
----
51
51
51

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

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

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

query II rowsort
SELECT - - 83, col2 AS col2 FROM tab0 WHERE NOT NULL < + + 86
----

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

query II rowsort
SELECT ALL - col1, ( + col2 ) FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6606
SELECT DISTINCT * FROM tab2 WHERE NOT - - 67 BETWEEN + col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6606
SELECT DISTINCT * FROM tab2 WHERE NOT - - 67 BETWEEN + col2 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT DISTINCT COUNT( * ) DIV + 15 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT COUNT ( * ) / + 15 AS col0 FROM tab2
----
0

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

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

query II rowsort
SELECT DISTINCT + col1 AS col0, col0 + - col0 * col0 AS col2 FROM tab1
----
14
-2550
47
-8190
5
-7140

query I rowsort
SELECT + 79 * + col0 FROM tab0
----
1185
6873
7663

query II rowsort
SELECT col2, + 94 + - ( - col2 ) * - 22 FROM tab2
----
23
-412
40
-786
58
-1182

query I rowsort
SELECT - 97 * + - 78 FROM tab2
----
7566
7566
7566

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6616
SELECT ALL + 31 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + 31 / - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 45 * - col1 * + col0 FROM tab0
----
4365
54675
82215

query I rowsort
SELECT - col0 + 35 + col1 * - + col2 - - - 53 * 16 * col1 FROM tab1 AS cor0
----
-13232
-43108
-4585

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * 89 IS NULL AND NOT NULL = + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 46
----

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

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

query I rowsort
SELECT col1 * + + 85 * - col2 + col0 FROM tab2
----
-261736
-330235
-99659

query I rowsort
SELECT DISTINCT + - 99 FROM tab2 WHERE ( + + col1 ) = col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - SUM( - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6624
SELECT - SUM ( - col1 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) - + col1 col2 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6626
SELECT CAST( NULL AS SIGNED ) AS col0, - col2 * ( + col2 ) FROM tab1
----
NULL
-3481
NULL
-4624
NULL
-9216

skipif mysql # not compatible
query II rowsort label-6626
SELECT CAST ( NULL AS INTEGER ) AS col0, - col2 * ( + col2 ) FROM tab1
----
NULL
-3481
NULL
-4624
NULL
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL - - COUNT( * ) - + ( + 19 ) + + + SUM( DISTINCT + col2 ) * 51 AS col2 FROM tab2 AS cor0
----
6155

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL - - COUNT ( * ) - + ( + 19 ) + + + SUM ( DISTINCT + col2 ) * 51 AS col2 FROM tab2 AS cor0
----
6155

query I rowsort
SELECT ALL - col0 - + 87 AS col2 FROM tab2 AS cor0
----
-133
-151
-162

query I rowsort
SELECT DISTINCT - - col1 - 54 FROM tab1 AS cor0
----
-40
-49
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT DISTINCT - + COUNT( * ) AS col2, COUNT( * ) * - ( + MAX( col1 ) ) FROM tab0 AS cor0
----
-3
-243

skipif mysql # not compatible
query II rowsort label-6630
SELECT DISTINCT - + COUNT ( * ) AS col2, COUNT ( * ) * - ( + MAX ( col1 ) ) FROM tab0 AS cor0
----
-3
-243

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + + 99 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 63 BETWEEN ( col0 + - col0 ) AND + ( col0 ) - + 1 * col2
----

query I rowsort
SELECT 92 + - 8 FROM tab0
----
84
84
84

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

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

query I rowsort
SELECT - 0 FROM tab0 WHERE NOT ( col1 * - ( + 95 ) ) BETWEEN col0 AND + 54
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( + col0 - - col1 * + 4 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL 67 - COUNT( * ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL 67 - COUNT ( * ) AS col1 FROM tab2
----
64

query I rowsort
SELECT + col0 + 99 FROM tab1 WHERE ( NULL ) IS NULL
----
150
184
190

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 63 NOT IN ( col0 + + col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT COUNT( * ) FROM tab1 WHERE NOT ( - 66 * + col0 ) IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6646
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - 66 * + col0 ) IN ( - col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT CAST( 8 AS SIGNED ) FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6647
SELECT CAST ( 8 AS INTEGER ) FROM tab1
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL COUNT ( * ) + + 53 FROM tab1
----
56

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

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

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

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

query I rowsort
SELECT + 1 FROM tab1 WHERE NOT 44 + + 3 IS NOT NULL
----

query I rowsort
SELECT + col2 + 36 * col0 AS col1 FROM tab2
----
1679
2344
2758

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

query I rowsort
SELECT - col1 * - col2 + 3 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1347
298
3199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + + col2 col0 FROM tab2 AS cor0
----
112
129
147

query I rowsort
SELECT ALL 27 * col1 + + col1 FROM tab1 AS cor0
----
1316
140
392

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE col2 < 59
----

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

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

query I rowsort
SELECT + col2 * 1 AS col0 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT ALL + col2 * col0 + + 96 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 <= + 65
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( 24 ) * - 95 )
----

query I rowsort
SELECT DISTINCT - col1 * col1 - 79 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6665
SELECT 39 - + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT 39 - + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT + - 95 - + MIN( DISTINCT col0 + 34 ) FROM tab2 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-6666
SELECT + - 95 - + MIN ( DISTINCT col0 + 34 ) FROM tab2 AS cor0
----
-175

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

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

query I rowsort
SELECT DISTINCT + col0 + - col1 - + col0 AS col2 FROM tab1
----
-14
-47
-5

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + col2
----

query I rowsort
SELECT ALL - col2 + + + 86 AS col2 FROM tab1
----
-10
18
27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6673
SELECT ( + 71 ) - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT + COUNT( * ) + 93 AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6674
SELECT + COUNT ( * ) + 93 AS col0 FROM tab2
----
96

query I rowsort
SELECT DISTINCT - col1 * col1 + - 46 AS col1 FROM tab0
----
-47
-487
-6607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT DISTINCT AVG ( ALL 97 ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT AVG ( ALL 97 ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 * col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT MIN( + - 79 ) - - 76 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT MIN ( + - 79 ) - - 76 AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6678
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( 47 )
----

skipif mysql # not compatible
query III rowsort label-6678
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( 47 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 59 BETWEEN ( + 83 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col1 + - ( 7 + + col1 * col1 ) <> - CAST( + 0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6682
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col1 + - ( 7 + + col1 * col1 ) <> - CAST ( + 0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT + + COUNT( DISTINCT col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + + COUNT ( DISTINCT col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

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

query I rowsort
SELECT - - 35 * - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6696529d1cb255e1c943c37dd7898a4b

query I rowsort
SELECT 69 * + col0 + - col2 * + col1 AS col2 FROM tab0 WHERE NOT - - 95 < ( + ( - col1 ) )
----
-2772
5793
6594

query I rowsort
SELECT ALL + - 61 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT MAX( DISTINCT - - 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT MAX ( DISTINCT - - 13 ) FROM tab2
----
13

query I rowsort
SELECT ALL 76 AS col2 FROM tab0 WHERE NOT ( NOT NULL NOT IN ( + 97 + + col0 ) )
----

query II rowsort
SELECT DISTINCT + + col0, col1 * col0 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 55 AS col0, col2 + + col1 FROM tab0 AS cor0
----
55
100
55
128
55
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - + col1 ) IS NOT NULL
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6696
SELECT ALL CAST( - MIN( DISTINCT + col1 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE col2 * - col2 * 65 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL CAST ( - MIN ( DISTINCT + col1 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE col2 * - col2 * 65 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - SUM( + + ( - - 33 ) ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6698
SELECT - SUM ( + + ( - - 33 ) ) FROM tab2 AS cor0
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT + 17 * + 20 + COUNT( col0 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
340

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT + 17 * + 20 + COUNT ( col0 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL - MIN( DISTINCT col1 ) + + 13 AS col0 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - MIN ( DISTINCT col1 ) + + 13 AS col0 FROM tab1 AS cor0
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - - CAST( - col1 AS SIGNED ) FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - - CAST ( - col1 AS INTEGER ) FROM tab0
----
1
441
6561

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

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 64 * + - col1 * col2 + - 83 > 79
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 45 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 56 FROM tab1 WHERE NOT col0 IS NULL AND + col0 BETWEEN ( NULL ) AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT 52 + + ( + COUNT( * ) ) col1 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6709
SELECT DISTINCT 52 + + ( + COUNT ( * ) ) col1 FROM tab2
----
55

query I rowsort
SELECT col1 * + - 46 + - + 68 FROM tab1
----
-2230
-298
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL - COUNT( * ) * - MAX( ALL - col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - COUNT ( * ) * - MAX ( ALL - col2 ) FROM tab1
----
-177

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 22 * - 69 / col1 ) < col2
----

query I rowsort
SELECT + 69 * - ( + - col1 ) + col0 FROM tab2
----
3565
4698
5377

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6714
SELECT DISTINCT * FROM tab0 WHERE NOT + 3 + col1 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6714
SELECT DISTINCT * FROM tab0 WHERE NOT + 3 + col1 * CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 25 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 72 * + + col0 + + 74 * + col0 AS col1 FROM tab0 AS cor0
----
12702
14162
2190

query I rowsort
SELECT ALL - - 85 AS col1 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT DISTINCT ( + col0 ) + - ( - - CAST( col2 AS SIGNED ) ) + col2 * col1 AS col0 FROM tab2
----
1196
3104
3903

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT ( + col0 ) + - ( - - CAST ( col2 AS INTEGER ) ) + col2 * col1 AS col0 FROM tab2
----
1196
3104
3903

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

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

query I rowsort
SELECT + col2 - - - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 33 + - col2 FROM tab2 AS cor0
----
-25
-7
10

query I rowsort
SELECT DISTINCT + col1 - - 43 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( - 71 * - - col0 ) < NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT ALL - CAST( 36 AS SIGNED ) FROM tab0 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - CAST ( 36 AS INTEGER ) FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - 91 * + COUNT( * ) - - COUNT( * ) + + COUNT( DISTINCT col1 ) FROM tab2 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6727
SELECT - 91 * + COUNT ( * ) - - COUNT ( * ) + + COUNT ( DISTINCT col1 ) FROM tab2 cor0
----
-267

query I rowsort
SELECT - 57 AS col1 FROM tab2 AS cor0 WHERE ( col1 + - col1 ) BETWEEN NULL AND col0 + ( - 4 ) - col1 / - col1
----

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 70 * col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 52 * - col1 AS col0 FROM tab1 AS cor0
----
2444
260
728

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - ( - col2 ) ) >= + - 21
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6733
SELECT ALL - - ( + + COUNT( * ) ) * - - CAST( NULL AS SIGNED ) AS col0, 86 FROM tab1 AS cor0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6733
SELECT ALL - - ( + + COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) AS col0, 86 FROM tab1 AS cor0
----
NULL
86

query I rowsort
SELECT + 38 * + col1 AS col0 FROM tab1 AS cor0
----
1786
190
532

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

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

query I rowsort
SELECT DISTINCT - 52 + - 27 AS col0 FROM tab1
----
-79

query II rowsort
SELECT - col1, 5 AS col0 FROM tab0
----
-1
5
-21
5
-81
5

query II rowsort
SELECT DISTINCT - + col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 90 <> - 45 * + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT CAST( + - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6741
SELECT CAST ( + - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT ALL ( - 41 ) * - col0 + + col0 AS col1 FROM tab0 WHERE - 78 = ( + col2 * + 61 * - 75 + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6745
SELECT ALL + col0 / - 40 AS col2, col0 / CAST( + col1 AS SIGNED ) * 78 + + col0 FROM tab1 AS cor0 WHERE - col1 > ( col1 )
----

skipif mysql # not compatible
query II rowsort label-6745
SELECT ALL + col0 / - 40 AS col2, col0 / CAST ( + col1 AS INTEGER ) * 78 + + col0 FROM tab1 AS cor0 WHERE - col1 > ( col1 )
----

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

query I rowsort
SELECT 75 / col2 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - - col1 + col0 * - col2 AS col0 FROM tab0 cor0
----
-624
-849
-9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 0 + - col2, - col2 col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * col0 > col2
----

query I rowsort
SELECT DISTINCT - col2 * - 22 + - col1 AS col2 FROM tab1
----
1293
1449
2098

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

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

query I rowsort
SELECT col2 * + + ( + 81 ) FROM tab1
----
4779
5508
7776

query I rowsort
SELECT DISTINCT - col0 + - 32 FROM tab0
----
-119
-129
-47

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

query I rowsort
SELECT - - ( - + col1 ) + - 96 AS col0 FROM tab2 AS cor0
----
-147
-163
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 89 ) col2 FROM tab1 AS cor0 WHERE ( col2 - - - 93 ) < col2
----
89
89
89

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

query I rowsort
SELECT - + 54 + - col1 - 13 AS col0 FROM tab0 AS cor0
----
-148
-68
-88

query I rowsort
SELECT DISTINCT + col0 * - col0 + + - 60 AS col1 FROM tab1 AS cor0
----
-2661
-7285
-8341

query I rowsort
SELECT ALL - col2 + + - 23 FROM tab0 AS cor0
----
-122
-33
-70

query I rowsort
SELECT DISTINCT 61 - + col2 * + col2 - col1 FROM tab2
----
-1616
-3370
-519

query II rowsort
SELECT - col2 + + 3 AS col2, + 51 FROM tab0
----
-44
51
-7
51
-96
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT ALL COUNT( * ) DIV COUNT( * ) - - SUM( - col2 ) AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL COUNT ( * ) / COUNT ( * ) - - SUM ( - col2 ) AS col1 FROM tab1
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT ALL - CAST( 89 AS SIGNED ) + 96 FROM tab1
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - CAST ( 89 AS INTEGER ) + 96 FROM tab1
----
7
7
7

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

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

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab2 AS cor0 WHERE - col2 + col1 NOT IN ( + 68 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT - 64 - - MIN( ALL col0 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT - 64 - - MIN ( ALL col0 ) FROM tab2 AS cor0
----
-18

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 <> ( - 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - + 87 AS col2 FROM tab1 cor0
----
-2
-36
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE 22 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - 24 - + 69 - COUNT( * ) * ( - 59 ) AS col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6775
SELECT - 24 - + 69 - COUNT ( * ) * ( - 59 ) AS col1 FROM tab2 AS cor0
----
84

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 - col1 NOT BETWEEN + col0 + - 8 AND NULL
----

query II rowsort
SELECT - + 20 / + + 71 / col2 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6780
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL + 69, col0 * + 16 AS col1, col0 AS col2 FROM tab0 AS cor0
----
9 values hashing to b51013740b8acf6b2ed0fde1999f2ac7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT CAST( 71 AS SIGNED ) AS col2 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT CAST ( 71 AS INTEGER ) AS col2 FROM tab0
----
71

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

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

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

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

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

query II rowsort
SELECT - - 87 AS col1, 98 FROM tab1 AS cor0
----
87
98
87
98
87
98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT + 27 IS NULL
----
46
64
75

query II rowsort
SELECT - 12 AS col0, + 65 AS col0 FROM tab0 AS cor0
----
-12
65
-12
65
-12
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 66 > - ( 71 ) - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT - + CAST( + + COUNT( ALL col0 ) AS SIGNED ) * - COUNT( ALL - + col2 ) + MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6791
SELECT - + CAST ( + + COUNT ( ALL col0 ) AS INTEGER ) * - COUNT ( ALL - + col2 ) + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6792
SELECT ALL - CAST( + 15 AS SIGNED ) + col2, - col2 AS col1 FROM tab1
----
44
-59
53
-68
81
-96

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL - CAST ( + 15 AS INTEGER ) + col2, - col2 AS col1 FROM tab1
----
44
-59
53
-68
81
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + col2 / - 91 / + + col0 + - - 12 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - 63 + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
-63

query I rowsort
SELECT - 25 * + col0 * - col0 * - - 46 FROM tab0
----
10820350
258750
8704350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT - col2 DIV + col0 * - 96 + + 49 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT - col2 / + col0 * - 96 + + 49 FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT + - 79 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1794
-3120
-4524

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 85 * 30 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

query II rowsort
SELECT ALL col1 + 75 * + + col2, + col0 * - 64 AS col0 FROM tab1
----
4430
-5440
5147
-5824
7214
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - ( + MIN( + + 86 ) ) + - - COUNT( * ) col2 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6803
SELECT - ( + MIN ( + + 86 ) ) + - - COUNT ( * ) col2 FROM tab2 AS cor0
----
-83

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

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

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

query I rowsort
SELECT DISTINCT - ( - col0 ) * - 89 + + + col0 AS col1 FROM tab1
----
-4488
-7480
-8008

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6809
SELECT ALL - CAST( NULL AS SIGNED ) * - 70, + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6809
SELECT ALL - CAST ( NULL AS INTEGER ) * - 70, + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT DISTINCT + 41 DIV 96 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT + 41 / 96 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 30 * - + col2 FROM tab2
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL 77 * - MAX( ALL + col1 ) FROM tab2
----
-5929

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL 77 * - MAX ( ALL + col1 ) FROM tab2
----
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT - col1 DIV col1 * - col1 * + 52 FROM tab1
----
2444
260
728

skipif mysql # not compatible
query I rowsort label-6816
SELECT - col1 / col1 * - col1 * + 52 FROM tab1
----
2444
260
728

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

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

query I rowsort
SELECT + col0 * + ( 55 ) * col2 * 8 * + 2 AS col0 FROM tab0 cor0
----
620400
765600
8450640

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

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

query I rowsort
SELECT DISTINCT 63 * + col0 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT DISTINCT + col1 * + - 95 AS col2 FROM tab1
----
-1330
-4465
-475

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 94 * + col1 / - + col0 * - col2 BETWEEN NULL AND 71
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT ALL - col2 + 47 DIV 3 FROM tab0 AS cor0
----
-32
-84
5

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL - col2 + 47 / 3 FROM tab0 AS cor0
----
-32
-84
5

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

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

query I rowsort
SELECT DISTINCT - ( - col2 ) * + - col1 + - col1 + - 33 * + 8 FROM tab0 cor0
----
-364
-4152
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-6827
SELECT + - ( col1 ) DIV col1 * col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6827
SELECT + - ( col1 ) / col1 * col0 FROM tab1 AS cor0
----
-51
-85
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT DISTINCT - - COUNT( * ) * - - SUM( - + 69 ) * COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1860

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT - - COUNT ( * ) * - - SUM ( - + 69 ) * COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT + COUNT( * ) + + + MAX( ALL + col2 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + COUNT ( * ) + + + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
99

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

query I rowsort
SELECT ALL 92 * - + 91 + col0 AS col1 FROM tab1
----
-8281
-8287
-8321

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 9 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE 27 < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6836
SELECT - col1 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-6836
SELECT - col1 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query II rowsort
SELECT ALL ( - col1 ) + 24 + - 53, col2 FROM tab2
----
-106
40
-80
23
-96
58

query II rowsort
SELECT DISTINCT col1, col2 FROM tab2
----
51
23
67
58
77
40

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

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

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

query I rowsort
SELECT DISTINCT 68 * + - col2 AS col0 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6842
SELECT + ( - + CAST( + col2 AS DECIMAL ) ) / - ( - 11 ) * - col0 FROM tab0 WHERE col1 BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6842
SELECT + ( - + CAST ( + col2 AS REAL ) ) / - ( - 11 ) * - col0 FROM tab0 WHERE col1 BETWEEN + col2 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6843
SELECT 86 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 + - 84 * + - col0 * 35 FROM tab0 AS cor0
----
257607
285277
45315

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

query I rowsort
SELECT DISTINCT 66 * + col2 * + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1654950
-19195176
-4523904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - 25 + - 99 * + 85 + + col2 * 82 col1 FROM tab0 AS cor0
----
-2536
-272
-7070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT + COUNT( DISTINCT - ( + - 19 ) ) * CAST( - + 58 AS SIGNED ) + - 8 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6848
SELECT + COUNT ( DISTINCT - ( + - 19 ) ) * CAST ( - + 58 AS INTEGER ) + - 8 AS col0 FROM tab2 AS cor0
----
-66

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

skipif mysql # not compatible
query I rowsort label-6849
SELECT + + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT + - SUM( col2 ) * 40, - 42 col0 FROM tab1 AS cor0
----
-8920
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6850
SELECT + - SUM ( col2 ) * 40, - 42 col0 FROM tab1 AS cor0
----
-8920
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < + - ( - col1 )
----

query I rowsort
SELECT - - 37 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT 58 AS col1 FROM tab0 cor0
----
58
58
58

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = + + 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + 7 <= - col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT + 13 * + + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + 13 * + + COUNT ( * ) FROM tab1
----
39

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE - + 22 / - 0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT COUNT( * ) DIV + + COUNT( * ) col0 FROM tab2
----
1

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

query I rowsort
SELECT - 21 * 45 * + col0 AS col1 FROM tab0 AS cor0
----
-14175
-82215
-91665

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + + SUM( + 31 ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6865
SELECT + + SUM ( + 31 ) AS col0 FROM tab1 AS cor0
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL + + SUM( DISTINCT - 59 ) + 69 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + + SUM ( DISTINCT - 59 ) + 69 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT - + 16 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - - COUNT( - + ( + + 5 ) ) + COUNT( ALL col2 ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6869
SELECT - - COUNT ( - + ( + + 5 ) ) + COUNT ( ALL col2 ) FROM tab0 cor0
----
6

query I rowsort
SELECT - col1 + 15 FROM tab0
----
-6
-66
14

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

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

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

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 25 * + - col0 + + 36 FROM tab0
----
-2139
-2389
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT 2 * COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6874
SELECT 2 * COUNT ( * ) col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT + MIN( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6875
SELECT + MIN ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
5

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6878
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col1, col2 AS col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6878
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col1, col2 AS col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT col0 - - + 62 * + 75 FROM tab1 cor0
----
4701
4735
4741

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

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

query I rowsort
SELECT + + 62 * - - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8a39652bc919cfd52006ae9423cf53ca

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6882
SELECT DISTINCT + CAST( - SUM( + ( + + col1 ) ) AS SIGNED ) FROM tab2
----
-195

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6884
SELECT ALL - COUNT( * ) AS col0, 85 + - - 20 / - + CAST( NULL AS SIGNED ) + + COUNT( * ) + + 45 AS col0 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6884
SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1
----
-3
NULL

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

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

query I rowsort
SELECT ALL - 18 FROM tab2 AS cor0 WHERE col2 * col1 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6888
SELECT + col1 AS col1, col1 + ( + + col1 ) DIV - - 47 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
82

skipif mysql # not compatible
query II rowsort label-6888
SELECT + col1 AS col1, col1 + ( + + col1 ) / - - 47 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6889
SELECT ALL + + 49, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
query II rowsort label-6889
SELECT ALL + + 49, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
49
NULL
49
NULL
49
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL - + MAX( col1 ) + + COUNT( - + col1 ) AS col0 FROM tab1 cor0 WHERE NOT + col0 BETWEEN NULL AND + - col1
----
-44

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - + MAX ( col1 ) + + COUNT ( - + col1 ) AS col0 FROM tab1 cor0 WHERE NOT + col0 BETWEEN NULL AND + - col1
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL COUNT( * ) * - - 52 AS col1 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL COUNT ( * ) * - - 52 AS col1 FROM tab1
----
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - COUNT( + 24 ) * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) + col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6897
SELECT - COUNT ( + 24 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) + col2 IS NULL
----
-9

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

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

query I rowsort
SELECT col0 + - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 47 FROM tab2 WHERE NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT col0 * + - 23 + col0 - - col2 AS col1 FROM tab2
----
-1368
-1592
-989

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

query I rowsort
SELECT - col1 + + + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * + ( - - col2 ) * - col1 + - 17 FROM tab2
----
123183
225371
26962

query I rowsort
SELECT - 40 * + - col1 - - col2 AS col1 FROM tab1 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT 75 AS col2, 52 * col2 AS col0 FROM tab0 AS cor0
----
75
2444
75
5148
75
520

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 57 + + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL - 45 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - 45 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL - + COUNT( * ) + - MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - + COUNT ( * ) + - MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
-94

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - 57 FROM tab0
----
-138
-58
-78

query II rowsort
SELECT 30 - 27 AS col2, + col2 AS col1 FROM tab1
----
3
59
3
68
3
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ( 38 ) + COUNT( * ) * 41 FROM tab1
----
161

skipif mysql # not compatible
query I rowsort label-6915
SELECT ( 38 ) + COUNT ( * ) * 41 FROM tab1
----
161

query I rowsort
SELECT ALL 42 + + 26 FROM tab1
----
68
68
68

query I rowsort
SELECT ALL col0 * + + col0 - 11 AS col2 FROM tab2 cor0
----
2105
4085
5614

query I rowsort
SELECT + 67 * + col1 AS col0 FROM tab1 cor0
----
3149
335
938

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT + + col1 DIV - col2 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6921
SELECT + + col1 / - col2 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

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

query II rowsort
SELECT - + col2, 32 AS col1 FROM tab1 AS cor0
----
-59
32
-68
32
-96
32

query I rowsort
SELECT ALL 45 AS col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT - ( - - 66 ) AS col1 FROM tab2 AS cor0
----
-66
-66
-66

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

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

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

query I rowsort
SELECT col2 * - - ( - ( + 47 ) ) AS col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6931
SELECT ALL 83 AS col2, CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
83
-59
83
-68
83
-96

skipif mysql # not compatible
query II rowsort label-6931
SELECT ALL 83 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
83
-59
83
-68
83
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT + SUM( - 69 ) AS col0 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT + SUM ( - 69 ) AS col0 FROM tab0
----
-207

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

query II rowsort
SELECT DISTINCT 73, + col1 AS col0 FROM tab0
----
73
1
73
21
73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT COUNT( ALL - col0 ) + - 8 AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6936
SELECT COUNT ( ALL - col0 ) + - 8 AS col1 FROM tab1
----
-5

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

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

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

query II rowsort
SELECT ALL - col2 AS col0, ( - col2 ) FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT - 66 * + + 96 FROM tab0 AS cor0
----
-6336
-6336
-6336

query II rowsort
SELECT ALL 68 AS col0, 66 * + col2 FROM tab0 AS cor0
----
68
3102
68
6534
68
660

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

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

skipif mysql # not compatible
query III rowsort label-6943
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( + + ( + ( col1 ) ) AS REAL ) ) IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col1 + - 8 * - 87 NOT IN ( - 40 )
----
-14
-47
-5

query I rowsort
SELECT - 39 * + 5 AS col0 FROM tab2
----
-195
-195
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT + 3 + 63 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6949
SELECT col1 + + col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-6949
SELECT col1 + + col0, CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

query I rowsort
SELECT DISTINCT col0 * - - 26 AS col1 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + 55 * COUNT( * ) * MAX( - col1 ) + - - 15 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + 55 * COUNT ( * ) * MAX ( - col1 ) + - - 15 FROM tab0 AS cor0
----
-150

query II rowsort
SELECT ALL - col1 * + 2 AS col0, col2 FROM tab0 AS cor0
----
-162
47
-2
99
-42
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 40 + 24 IN ( col2 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT ALL + CAST( NULL AS SIGNED ) * - + 48 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 48 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL MIN( + col2 ) + - COUNT( * ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL MIN ( + col2 ) + - COUNT ( * ) AS col1 FROM tab1
----
56

query I rowsort
SELECT DISTINCT - 18 + col0 - - + 95 FROM tab0
----
164
174
92

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6959
SELECT + 67 * 40 - - - col0 DIV - 34 AS col1, + col0 + + col2 AS col1 FROM tab0
----
2680
62
2682
196
2682
97

skipif mysql # not compatible
query II rowsort label-6959
SELECT + 67 * 40 - - - col0 / - 34 AS col1, + col0 + + col2 AS col1 FROM tab0
----
2680
62
2682
196
2682
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT + 91 + - COUNT( * ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + 91 + - COUNT ( * ) AS col0 FROM tab2
----
88

query I rowsort
SELECT 48 - col1 FROM tab2
----
-19
-29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL COUNT( * ) - - 87 AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL COUNT ( * ) - - 87 AS col2 FROM tab1
----
90

query I rowsort
SELECT + col2 - + 27 FROM tab0
----
-17
20
72

query I rowsort
SELECT - + ( + 23 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 84 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6967
SELECT - + 40 col2 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - - CAST( - - 82 AS SIGNED ) * + col1 AND - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6967
SELECT - + 40 col2 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - - CAST ( - - 82 AS INTEGER ) * + col1 AND - col0
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6970
SELECT ALL - col0 DIV + col1 AS col0, 59 FROM tab1 AS cor0
----
-1
59
-17
59
-3
59

skipif mysql # not compatible
query II rowsort label-6970
SELECT ALL - col0 / + col1 AS col0, 59 FROM tab1 AS cor0
----
-1
59
-17
59
-3
59

query II rowsort
SELECT + 70 * + + col2 AS col0, + col1 AS col2 FROM tab2 cor0
----
1610
51
2800
77
4060
67

query I rowsort
SELECT DISTINCT 59 * + - col2 + - + col0 * - col1 - + 19 - + col2 * + + 90 FROM tab1
----
-13609
-5874
-8385

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT col0 * col1 DIV - col1 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6974
SELECT col0 * col1 / - col1 AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col1 + - 65 AS col0 FROM tab2
----
-14
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL SUM( 63 ) AS col1 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL SUM ( 63 ) AS col1 FROM tab1
----
189

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6978
SELECT DISTINCT MAX ( + 16 ) col1 FROM tab0
----
16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT DISTINCT col2 + - CAST( - 94 AS SIGNED ) FROM tab2 cor0
----
117
134
152

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT col2 + - CAST ( - 94 AS INTEGER ) FROM tab2 cor0
----
117
134
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT ALL + col2 DIV + 38 + + 87 + col1 FROM tab1 AS cor0
----
103
135
93

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + col2 / + 38 + + 87 + col1 FROM tab1 AS cor0
----
103
135
93

query I rowsort
SELECT ALL col0 * - 65 + + col0 - col0 FROM tab1
----
-3315
-5525
-5915

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

query I rowsort
SELECT - + col0 * col1 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN col2 AND NULL
----
-1215
-1827
-97

query I rowsort
SELECT ( - col0 ) * + + col0 - - col1 * - col2 - + - col1 + + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-15707
-4645
-7940

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

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

query II rowsort
SELECT ALL - + col0 + + + 95, col1 AS col1 FROM tab0 cor0 WHERE - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col0 col0, col0, - col1 FROM tab1 AS cor0
----
9 values hashing to 275a9f1b17c6e968eba4dc5b75509056

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT COUNT( + 10 ) + - 40 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT COUNT ( + 10 ) + - 40 FROM tab2
----
-37

query I rowsort
SELECT + col0 + - col0 * - ( + col0 ) FROM tab0
----
240
7656
9506

query I rowsort
SELECT - 33 * - 78 + - + col0 FROM tab2
----
2499
2510
2528

query II rowsort
SELECT DISTINCT 16 * 76 - - 84 AS col0, 27 FROM tab1
----
1300
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT - MAX( - 72 ) * 38 AS col1 FROM tab1
----
2736

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - MAX ( - 72 ) * 38 AS col1 FROM tab1
----
2736

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

query I rowsort
SELECT DISTINCT 82 * + col1 * - col0 FROM tab0
----
-149814
-7954
-99630

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 < col1
----

query I rowsort
SELECT DISTINCT - - 98 * + col0 FROM tab2 AS cor0
----
4508
6272
7350

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

query I rowsort
SELECT ALL 35 AS col0 FROM tab0 AS cor0
----
35
35
35

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

skipif mysql # not compatible
query I rowsort label-7002
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT ALL - 6 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - 6 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - + 21 ) FROM tab2 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-7005
SELECT DISTINCT + + ( - - col2 ) * - + col1, - 61 DIV - + ( + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-210
2
-3807
0
-99
61

skipif mysql # not compatible
query II rowsort label-7005
SELECT DISTINCT + + ( - - col2 ) * - + col1, - 61 / - + ( + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-210
2
-3807
0
-99
61

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

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

query III rowsort
SELECT DISTINCT ( col0 ) AS col1, col2 * col1 * + - col1 AS col1, - - col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to 66d62c25c3606de48ff93678e366722d

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + col2 * + + 6 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT ALL - + col0 DIV col1 + 41 col2 FROM tab2 AS cor0
----
40
41
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7009
SELECT ALL - + col0 / col1 + 41 col2 FROM tab2 AS cor0
----
40
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + SUM( + 79 ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7010
SELECT + SUM ( + 79 ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT COUNT( * ) + - + SUM( DISTINCT + 68 ) * - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT COUNT ( * ) + - + SUM ( DISTINCT + 68 ) * - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-7012
SELECT ALL - + 57, col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-57
0
-57
0
-57
99

skipif mysql # not compatible
query II rowsort label-7012
SELECT ALL - + 57, col2 / + col1 AS col1 FROM tab0 AS cor0
----
-57
0
-57
0
-57
99

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab0 AS cor0 WHERE - col1 + + 74 / - - col2 + col0 IS NOT NULL
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT col2 DIV + 79 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT col2 / + 79 FROM tab0
----
0
1

query I rowsort
SELECT + col2 + + - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 98 + 95 - - + col2 * + - col0 AS col0 FROM tab0
----
-512
-677
-9410

query I rowsort
SELECT - col1 + + col0 * + col2 AS col1 FROM tab0
----
624
849
9602

query I rowsort
SELECT + 75 * - - col2 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT ALL - COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT ALL col2 DIV col0 DIV - - 17 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL col2 / col0 / - - 17 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7021
SELECT - 18 DIV COUNT( * ) + + COUNT( * ) * 88 DIV COUNT( * ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-7021
SELECT - 18 / COUNT ( * ) + + COUNT ( * ) * 88 / COUNT ( * ) FROM tab0 AS cor0
----
82

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

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

query I rowsort
SELECT - 7 * - 83 AS col0 FROM tab0 AS cor0
----
581
581
581

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

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

query I rowsort
SELECT - 43 AS col2 FROM tab2 AS cor0 WHERE 76 + - col2 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - 48 + + ( - COUNT( ALL - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7028
SELECT - 48 + + ( - COUNT ( ALL - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

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

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

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

query I rowsort
SELECT DISTINCT - 49 + col1 - + col1 * - 92 FROM tab1 AS cor0
----
1253
416
4322

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

skipif mysql # not compatible
query I rowsort label-7032
SELECT - - col2 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT + 66 DIV col2 * col1 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-7033
SELECT + 66 / col2 * col1 FROM tab2
----
102
67
77

query II rowsort
SELECT ALL col0, + ( + col0 ) * - col2 FROM tab0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT DISTINCT 46 * - + col2 AS col1 FROM tab2
----
-1058
-1840
-2668

query I rowsort
SELECT + col2 - + col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 * - col1 + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT COUNT( * ) AS col1, 53 AS col1 FROM tab1
----
3
53

skipif mysql # not compatible
query II rowsort label-7037
SELECT COUNT ( * ) AS col1, 53 AS col1 FROM tab1
----
3
53

query II rowsort
SELECT ALL - 50, - 10 AS col1 FROM tab1
----
-50
-10
-50
-10
-50
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7039
SELECT CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

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

query I rowsort
SELECT ALL - AVG ( - ( - + ( - col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 10 * - col1 * 31 + ( 81 ) * - + col2 FROM tab0 cor0
----
-7709
135900
2030103

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

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

query I rowsort
SELECT - 88 * 17 FROM tab2 AS cor0
----
-1496
-1496
-1496

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + - MIN( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7051
SELECT + - MIN ( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 65 AS col2 FROM tab0 cor0
----
65
65
65

query II rowsort
SELECT col2 AS col0, col0 * - 83 FROM tab0
----
10
-7221
47
-1245
99
-8051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7054
SELECT - ( - 82 ) * + col1 + + col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1732
NULL
181
NULL
6689
NULL

skipif mysql # not compatible
query II rowsort label-7054
SELECT - ( - 82 ) * + col1 + + col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1732
NULL
181
NULL
6689
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - COUNT( * ) * + 58 AS col2 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - COUNT ( * ) * + 58 AS col2 FROM tab1
----
-174

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

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + COUNT ( col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT + + CAST( - - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7058
SELECT + + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT ALL + col0 + col2 + + col2 DIV - 65 AS col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + col0 + col2 + + col2 / - 65 AS col0 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 58 col0 FROM tab0 AS cor0
----
145
155
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT - 43 - - + ( 19 ) - col0 DIV + 66 AS col2 FROM tab1
----
-24
-25
-25

skipif mysql # not compatible
query I rowsort label-7062
SELECT - 43 - - + ( 19 ) - col0 / + 66 AS col2 FROM tab1
----
-24
-25
-25

query I rowsort
SELECT ALL + col1 * - 58 * col1 AS col2 FROM tab2 AS cor0
----
-150858
-260362
-343882

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 7 + - - col0 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7069
SELECT * FROM tab0 AS cor0 WHERE NOT 41 + col2 - - ( - + col2 ) BETWEEN 45 AND - CAST( NULL AS SIGNED ) * - - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7069
SELECT * FROM tab0 AS cor0 WHERE NOT 41 + col2 - - ( - + col2 ) BETWEEN 45 AND - CAST ( NULL AS INTEGER ) * - - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL ( col2 ), + col2 - + - col0 AS col2 FROM tab0 AS cor0
----
10
97
47
62
99
196

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

query I rowsort
SELECT - col2 * col1 * - + 93 FROM tab1 AS cor0
----
124992
27435
297228

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT + COUNT( ALL - col2 ) FROM tab1 cor0 WHERE NOT ( NOT ( 97 ) + + 68 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7078
SELECT + COUNT ( ALL - col2 ) FROM tab1 cor0 WHERE NOT ( NOT ( 97 ) + + 68 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT - - MIN( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - - MIN ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - - MAX( + - 34 ) col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7080
SELECT - - MAX ( + - 34 ) col1 FROM tab0 AS cor0
----
-34

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 48 * - col0 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL COUNT( * ) * + 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL COUNT ( * ) * + 40 FROM tab1
----
120

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

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

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

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

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

query I rowsort
SELECT - 7 * - 98 + - col2 AS col0 FROM tab1 AS cor0
----
590
618
627

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - MIN( - 2 ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7091
SELECT - MIN ( - 2 ) AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT col1 * + + ( - 66 ) + + - col1 AS col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

query I rowsort
SELECT + col0 + + 76 AS col0 FROM tab1 AS cor0
----
127
161
167

query I rowsort
SELECT ALL 31 AS col2 FROM tab1 AS cor0 WHERE ( 7 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT COUNT( * ) + + 83 AS col1 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT COUNT ( * ) + + 83 AS col1 FROM tab1
----
86

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

query I rowsort
SELECT col0 * + 16 * + + 69 * - col2 AS col0 FROM tab2
----
-1168032
-2826240
-4802400

query I rowsort
SELECT DISTINCT ( - + col1 ) - + + col1 FROM tab0 AS cor0
----
-162
-2
-42

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 + col0 * + col0 AS col0, + col1 col0 FROM tab0 AS cor0
----
264
81
7608
21
9448
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7102
SELECT ALL - COUNT( * ) DIV - 34 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - COUNT ( * ) / - 34 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 66 - + + col0 AS col0 FROM tab0
----
-21
-31
51

query I rowsort
SELECT - 67 + - col2 FROM tab0
----
-114
-166
-77

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

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

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

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 cor0 WHERE NULL > - col1 * + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL + + COUNT( DISTINCT + 17 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + + COUNT ( DISTINCT + 17 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 12 * ( - - 79 ) BETWEEN + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 48 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col2 * col1 * + ( + col0 ) FROM tab2
----
197120
291450
53958

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7116
SELECT - COUNT( * ) DIV + SUM( ALL + ( col0 ) ), 70 + + CAST( + + COUNT( * ) AS SIGNED ) AS col0, - + 71 col2 FROM tab1
----
0
73
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7116
SELECT - COUNT ( * ) / + SUM ( ALL + ( col0 ) ), 70 + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, - + 71 col2 FROM tab1
----
0
73
-71

query I rowsort
SELECT 24 AS col2 FROM tab0 AS cor0 WHERE NOT + 12 IS NULL
----
24
24
24

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

query II rowsort
SELECT - - 97 AS col0, + 2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

query I rowsort
SELECT ALL 70 + - - col0 FROM tab0 AS cor0
----
157
167
85

query I rowsort
SELECT - 46 * - col1 AS col0 FROM tab2
----
2346
3082
3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + - + 88 col0 FROM tab1
----
-4984
-5103
-6276

query I rowsort
SELECT ALL col1 + + - 38 AS col2 FROM tab1
----
-24
-33
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * + ( + - col1 ) * ( + col2 ) - + ( - 69 ) * + col2 - - 62 * 23 * - - 50 * - ( + col0 ) * - ( col1 ) + + col2 col2 FROM tab0
----
130268320
6924218
86678474

query I rowsort
SELECT 62 + + col0 * col2 AS col1 FROM tab2
----
1120
2622
4412

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL + MIN( ALL + + 23 ) + 14 AS col0 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + MIN ( ALL + + 23 ) + 14 AS col0 FROM tab0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT 65 * COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-7128
SELECT 65 * COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2
----
192

query II rowsort
SELECT DISTINCT col1 * col0 * ( - - 12 ), 60 * + - col1 AS col2 FROM tab1
----
5100
-300
51324
-2820
8568
-840

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT ALL - + CAST( + col2 AS SIGNED ) * - col1 - + - col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL - + CAST ( + col2 AS INTEGER ) * - col1 - + - col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT + - 6 + - + 9 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
31323
41610
82938

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT + - MAX( - col0 ) - 30 AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT + - MAX ( - col0 ) - 30 AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + + col2 * col0 - - + col0 + + - 93 * 68 + - col0 AS col0 FROM tab2 AS cor0
----
-1974
-3764
-5266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7136
SELECT ALL 19 * + COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
162

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL 19 * + COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT ALL + MIN( ALL + CAST( col0 AS SIGNED ) ) FROM tab0
----
15

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

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

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

query I rowsort
SELECT ALL - col1 * + + col1 * - col1 * - col1 + + + 87 + 9 AS col0 FROM tab2 AS cor0
----
-20151025
-35152945
-6765105

query II rowsort
SELECT DISTINCT - col0, 45 AS col1 FROM tab1 cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT ALL - + col1 * 57 DIV + col2 FROM tab0 AS cor0
----
-119
-98
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL - + col1 * 57 / + col2 FROM tab0 AS cor0
----
-119
-98
0

query I rowsort
SELECT + 66 * + col1 AS col2 FROM tab1 AS cor0
----
3102
330
924

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7144
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + - col2 ) / + 61 + - + CAST( + col2 AS SIGNED ) + 52 / - ( - - col1 ) + - - col2 + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7144
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + - col2 ) / + 61 + - + CAST ( + col2 AS INTEGER ) + 52 / - ( - - col1 ) + - - col2 + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 14 col1 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT SUM( 70 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT SUM ( 70 ) FROM tab1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7147
SELECT ALL 67 AS col1, - MAX( - - 21 ) * - CAST( - COUNT( * ) AS SIGNED ) + + - 84 - + 31 + + 39 FROM tab2
----
67
-139

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL 67 AS col1, - MAX ( - - 21 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + + - 84 - + 31 + + 39 FROM tab2
----
67
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT MIN( + 98 ) AS col0 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT MIN ( + 98 ) AS col0 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT ALL 37 DIV col1 col1 FROM tab0
----
0
1
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7149
SELECT ALL 37 / col1 col1 FROM tab0
----
0
1
37

query I rowsort
SELECT + 15 AS col1 FROM tab0 cor0
----
15
15
15

query I rowsort
SELECT DISTINCT ( + ( + col1 ) ) * col0 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * 57 col2 FROM tab1
----
-2223

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

query I rowsort
SELECT DISTINCT + ( + 83 ) * col1 AS col1 FROM tab1
----
1162
3901
415

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT 97 DIV 39 AS col2 FROM tab2 WHERE NOT 39 * - 39 IS NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7157
SELECT 97 / 39 AS col2 FROM tab2 WHERE NOT 39 * - 39 IS NULL
----
2
2
2

query I rowsort
SELECT col2 * 94 AS col1 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT DISTINCT + 56 * col0 - col0 * col2 AS col2 FROM tab2
----
-150
1024
1518

query I rowsort
SELECT 83 * + 9 AS col2 FROM tab1
----
747
747
747

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT COUNT( * ) * + COUNT( ALL 4 * col2 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7161
SELECT COUNT ( * ) * + COUNT ( ALL 4 * col2 ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT 50 * - 71 + COUNT( * ) AS col2 FROM tab1
----
-3547

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT 50 * - 71 + COUNT ( * ) AS col2 FROM tab1
----
-3547

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT COUNT( * ) * 61 + + 99 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7164
SELECT COUNT ( * ) * 61 + + 99 FROM tab2
----
282

query I rowsort
SELECT + col0 * 61 + + col0 AS col2 FROM tab1
----
3162
5270
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - COUNT( * ) * - 25 col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7166
SELECT - COUNT ( * ) * - 25 col0 FROM tab2
----
75

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT COUNT( * ) * - 39 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT COUNT ( * ) * - 39 FROM tab0
----
-117

query I rowsort
SELECT 24 + + 80 AS col2 FROM tab2
----
104
104
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT + 23 + - COUNT( * ) col0 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT + 23 + - COUNT ( * ) col0 FROM tab2
----
20

query I rowsort
SELECT - 40 + 51 * col0 FROM tab0
----
4397
4907
725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7174
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7174
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col2 * 23 FROM tab1
----
-1357
-1564
-2208

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

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT + 76 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - 43 FROM tab0
----
-3483
-43
-903

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

query I rowsort
SELECT col2 * col2 - col0 * col2 FROM tab2 AS cor0
----
-529
-960
-986

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT - COUNT( * ) + MIN( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( col0 ) IN ( - ( + 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT - COUNT ( * ) + MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( col0 ) IN ( - ( + 56 ) )
----
NULL

query I rowsort
SELECT ALL - 82 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT ALL - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - col0 * 51 FROM tab0
----
-4437
-4947
-765

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

query I rowsort
SELECT ALL - col0 * 42 FROM tab2 WHERE NOT - col2 IS NULL
----
-1932
-2688
-3150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT DISTINCT col1 DIV 8 col2 FROM tab0 cor0
----
0
10
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7189
SELECT DISTINCT col1 / 8 col2 FROM tab0 cor0
----
0
10
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT - ( + col0 ) DIV - 36 FROM tab0 cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-7190
SELECT - ( + col0 ) / - 36 FROM tab0 cor0
----
0
2
2

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

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

query I rowsort
SELECT DISTINCT - col0 * + col2 + 92 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4804
-4923
-6096

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * 11 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL COUNT( * ) * ( - 51 ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL COUNT ( * ) * ( - 51 ) FROM tab2 AS cor0
----
-153

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

query I rowsort
SELECT ALL ( + 72 ) * - col0 AS col1 FROM tab1
----
-3672
-6120
-6552

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

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

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

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT 61 / - COUNT ( * ) AS col0 FROM tab0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT - col1 * - - col2 DIV - col2 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7201
SELECT - col1 * - - col2 / - col2 AS col0 FROM tab0
----
1
21
81

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

query I rowsort
SELECT + col0 * - + col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT 73 * + + col0 FROM tab2
----
3358
4672
5475

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

skipif mysql # not compatible
query I rowsort label-7205
SELECT - ( COUNT ( * ) ) * - 99 AS col1 FROM tab0
----
297

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

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + COUNT ( * ) * - 92 FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL SUM( DISTINCT - 37 ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL SUM ( DISTINCT - 37 ) FROM tab1
----
-37

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT + + 65 DIV 43 + col1 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7211
SELECT + + 65 / 43 + col1 FROM tab0 cor0
----
2
22
82

query I rowsort
SELECT + 96 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT - 33 + + + col2 DIV - col2 AS col0 FROM tab1
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 33 + + + col2 / - col2 AS col0 FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + ( + 26 ) + - COUNT( 3 ) * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-7214
SELECT + ( + 26 ) + - COUNT ( 3 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

query I rowsort
SELECT + 1 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 70 * - - 92 AS col1 FROM tab0 AS cor0
----
6440
6440
6440

query I rowsort
SELECT - 47 FROM tab1 AS cor0 WHERE + 94 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 79 * - 12 AS col2 FROM tab0 AS cor0
----
14220
82476
91956

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7219
SELECT ALL + - 50 AS col0, - MIN( DISTINCT - 66 ) DIV - 89 FROM tab1 AS cor0
----
-50
0

skipif mysql # not compatible
query II rowsort label-7219
SELECT ALL + - 50 AS col0, - MIN ( DISTINCT - 66 ) / - 89 FROM tab1 AS cor0
----
-50
0

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 40 AND - 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT + - 63 * - col2 + + - col0 DIV 41 - col1 * + col1 FROM tab0 AS cor0
----
-3600
187
6234

skipif mysql # not compatible
query I rowsort label-7222
SELECT + - 63 * - col2 + + - col0 / 41 - col1 * + col1 FROM tab0 AS cor0
----
-3600
187
6234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7223
SELECT ALL + + COUNT( * ) DIV + + COUNT( DISTINCT 23 ) + - SUM( DISTINCT 34 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + + COUNT ( * ) / + + COUNT ( DISTINCT 23 ) + - SUM ( DISTINCT 34 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT 29 * - + col0 + + col2 AS col0 FROM tab1
----
-1383
-2406
-2571

query I rowsort
SELECT + col0 + + col0 + col0 AS col1 FROM tab0
----
261
291
45

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col0 * + col1 * + col1 ) AND NULL < NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT DISTINCT col0 + col1 DIV + - col2 + - col2 FROM tab0
----
-2
-33
75

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT col0 + col1 / + - col2 + - col2 FROM tab0
----
-2
-33
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + SUM( DISTINCT + col1 ) + - 41 AS col1 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-7230
SELECT + SUM ( DISTINCT + col1 ) + - 41 AS col1 FROM tab0
----
62

query I rowsort
SELECT DISTINCT - ( - ( + - col0 ) ) + + - col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT ALL - 86 AS col1 FROM tab1 WHERE ( + col0 ) IN ( - col2 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7235
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) ) IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7235
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS REAL ) ) IN ( - col2 )
----

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE ( 8 ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7238
SELECT ALL + COUNT ( 5 ) col1 FROM tab1
----
3

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col2 * col0 + + + col1 - - 66 + ( - ( col2 ) + + 57 ) * 97 * - col2 * + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 74 * + - col0 + + 74 + col1 * + col2 ) NOT IN ( col1 * col2 + 63 / 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 60 + col1 NOT BETWEEN NULL AND + - 90
----

query I rowsort
SELECT DISTINCT 44 + + col1 AS col2 FROM tab2
----
111
121
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 52 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE - + 74 + - 85 NOT BETWEEN NULL AND NULL
----

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

query II rowsort
SELECT - 40, + col2 FROM tab0
----
-40
10
-40
47
-40
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT + SUM( - col1 ) * + - 2 * + 80 FROM tab1
----
10560

skipif mysql # not compatible
query I rowsort label-7260
SELECT + SUM ( - col1 ) * + - 2 * + 80 FROM tab1
----
10560

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7262
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) + + - col0 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-7262
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) + + - col0 IS NOT NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - COUNT( DISTINCT + 44 ) FROM tab1 AS cor0 WHERE + col1 * - + col1 > col1 + - col2
----
-1

skipif mysql # not compatible
query I rowsort label-7265
SELECT - COUNT ( DISTINCT + 44 ) FROM tab1 AS cor0 WHERE + col1 * - + col1 > col1 + - col2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - + 23 * + + col1 )
----

query I rowsort
SELECT ALL - col0 - + 44 - col1 AS col0 FROM tab2
----
-141
-185
-186

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 37 + - col1 FROM tab0 AS cor0
----
-118
-38
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT - col1 * col2 DIV + 89 + + + col2 - - col0 + + col2 AS col1 FROM tab2 AS cor0
----
110
148
79

skipif mysql # not compatible
query I rowsort label-7271
SELECT - col1 * col2 / + 89 + + + col2 - - col0 + + col2 AS col1 FROM tab2 AS cor0
----
110
148
79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL ( + COUNT( * ) ) * 95 AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL ( + COUNT ( * ) ) * 95 AS col0 FROM tab2
----
285

query I rowsort
SELECT DISTINCT col2 * - col2 + - 48 - - col0 + + col1 - - col0 * 24 * + 34 * 14 FROM tab2
----
525024
729629
853530

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT - ( - - COUNT( * ) ) - - 98 AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT - ( - - COUNT ( * ) ) - - 98 AS col1 FROM tab1
----
95

query I rowsort
SELECT DISTINCT + - ( col2 ) + col1 AS col2 FROM tab1 WHERE NOT + 67 * - + col1 + + col1 + col1 + - - col2 < NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( 72, - col1, - col1 - - + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 66, - col2 )
----

query I rowsort
SELECT - ( - - 75 ) AS col0 FROM tab0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT NULL = 63
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7285
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT NULL = 63
----

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

skipif mysql # not compatible
query I rowsort label-7286
SELECT - 4 / + - col1 FROM tab0 AS cor0
----
0
0
4

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

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

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

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

query I rowsort
SELECT DISTINCT - 62 * - col2 FROM tab0 cor0
----
2914
6138
620

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

query I rowsort
SELECT + 63 AS col1 FROM tab0 WHERE ( 83 - 40 ) BETWEEN + 3 AND + ( 72 )
----
63
63
63

query I rowsort
SELECT ALL ( + col1 ) + - 69 AS col1 FROM tab0
----
-48
-68
12

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

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

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

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

query I rowsort
SELECT DISTINCT + 49 * + col1 AS col1 FROM tab0
----
1029
3969
49

query II rowsort
SELECT ALL - 84, + col0 AS col1 FROM tab2 AS cor0
----
-84
46
-84
64
-84
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT ALL + col1 - + 22 + + 91 / - CAST( NULL AS SIGNED ) 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-7302
SELECT ALL + col1 - + 22 + + 91 / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ( - 26 ) - + COUNT( * ) * - + 4 col0 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7303
SELECT ( - 26 ) - + COUNT ( * ) * - + 4 col0 FROM tab2 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT + + 3 - - + 89 * col2 DIV - + ( col2 ) AS col2 FROM tab1 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-7304
SELECT + + 3 - - + 89 * col2 / - + ( col2 ) AS col2 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col2 * col0 - - col1 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT DISTINCT 84 FROM tab0 AS cor0 WHERE NOT - col0 / + + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT MIN( - 42 ) * + 65 AS col2 FROM tab0 WHERE NOT ( col0 ) <> + 48 / + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT MIN ( - 42 ) * + 65 AS col2 FROM tab0 WHERE NOT ( col0 ) <> + 48 / + + col0
----
NULL

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT ( ( - + col1 IS NULL ) )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7309
SELECT col2 DIV + 81, CAST( 35 AS SIGNED ) AS col2 FROM tab1
----
0
35
0
35
1
35

skipif mysql # not compatible
query II rowsort label-7309
SELECT col2 / + 81, CAST ( 35 AS INTEGER ) AS col2 FROM tab1
----
0
35
0
35
1
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT ALL - 81 DIV 40 * + + ( + col0 ) AS col1 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - 81 / 40 * + + ( + col0 ) AS col1 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT ALL 55 AS col0 FROM tab1
----
55
55
55

query I rowsort
SELECT - 17 * 63 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1071
-1071
-1071

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 69 / - col1 + col1 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7315
SELECT CAST ( NULL AS INTEGER ) * ( + - col0 ) - col0 * - ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2 WHERE NOT col1 + - - ( - 32 ) > ( + - col1 )
----

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

query I rowsort
SELECT - 61 * - col0 - + 28 FROM tab0 cor0
----
5279
5889
887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7318
SELECT DISTINCT + + 43 DIV COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + + 43 / COUNT ( * ) FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT - COUNT( * ) * 47 AS col2 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-7319
SELECT - COUNT ( * ) * 47 AS col2 FROM tab2
----
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7320
SELECT DISTINCT + col1 * col0 AS col2 FROM tab1 WHERE NOT - CAST( + col1 AS DECIMAL ) IN ( + - 34 + col1 * - col0 )
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + col1 * col0 AS col2 FROM tab1 WHERE NOT - CAST ( + col1 AS REAL ) IN ( + - 34 + col1 * - col0 )
----
425
4277
714

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

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

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

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

query II rowsort
SELECT - 25, - ( - - col0 ) * + col2 AS col2 FROM tab1 AS cor0 WHERE ( + + ( - 82 ) ) IN ( - col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7325
SELECT ALL 45 * - 88 + - + col0 AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) < 10 * - 55 + + - col1
----

skipif mysql # not compatible
query II rowsort label-7325
SELECT ALL 45 * - 88 + - + col0 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) < 10 * - 55 + + - col1
----

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

query II rowsort
SELECT + 61 * - 62 + + - col1, col2 AS col1 FROM tab2 AS cor0
----
-3833
23
-3849
58
-3859
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - col1, + 70 + 46 * + 62 )
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> + 88 * + 70 + - + ( - col0 ) + - col0 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - AVG ( + ( col1 ) ) + - COUNT( * ) + - - 50 AS col1 FROM tab0 WHERE NULL >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT - AVG ( + ( col1 ) ) + - COUNT ( * ) + - - 50 AS col1 FROM tab0 WHERE NULL >= + col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT COUNT( * ) * - 6 AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7334
SELECT COUNT ( * ) * - 6 AS col1 FROM tab2
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7335
SELECT * FROM tab0 AS cor0 WHERE + col1 <= 88 / + + 93 * CAST( NULL AS DECIMAL ) * - 62 - col1
----

skipif mysql # not compatible
query III rowsort label-7335
SELECT * FROM tab0 AS cor0 WHERE + col1 <= 88 / + + 93 * CAST ( NULL AS REAL ) * - 62 - col1
----

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

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

query I rowsort
SELECT + 89 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab1 WHERE - col0 + col1 * 24 IS NOT NULL
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT + 46 DIV col0 + + 55 - + - col1 DIV - 88 * - - col1 FROM tab2
----
55
55
56

skipif mysql # not compatible
query I rowsort label-7341
SELECT + 46 / col0 + + 55 - + - col1 / - 88 * - - col1 FROM tab2
----
55
55
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7342
SELECT DISTINCT MAX( col2 ) DIV + 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT MAX ( col2 ) / + 71 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + + + col1 FROM tab1 AS cor0 WHERE NOT - col2 >= 49
----
0

query I rowsort
SELECT 10 * col2 AS col1 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT ALL - - col0 * - - 86 FROM tab2 AS cor0
----
3956
5504
6450

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col0 col2 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN ( - 97 ) AND NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT ALL + 82 * + - col0 DIV + col0 FROM tab0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + 82 * + - col0 / + col0 FROM tab0
----
-82
-82
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col1
----

query I rowsort
SELECT ALL + col0 * - 27 * + col1 * - + col1 FROM tab2
----
10245312
3230442
9090225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT 74 DIV - COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-7353
SELECT 74 / - COUNT ( * ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - COUNT( - + col1 ) * 56 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-7354
SELECT - COUNT ( - + col1 ) * 56 FROM tab1
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * - col1 col0 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7356
SELECT DISTINCT + + CAST( + - COUNT( * ) AS SIGNED ) col0, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7356
SELECT DISTINCT + + CAST ( + - COUNT ( * ) AS INTEGER ) col0, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT ALL - col1 + + col1 + + 86 FROM tab0 AS cor0 WHERE 9 * + col0 NOT BETWEEN NULL AND - + 28 + - 16
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT - col1 DIV + + col2 - + col0 FROM tab0 cor0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-7358
SELECT - col1 / + + col2 - + col0 FROM tab0 cor0
----
-16
-89
-97

query I rowsort
SELECT ALL - col2 * 54 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT + col1 * - + col0 + col2 * - col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT + col1 * - + col0 + col2 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - col1 * + col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7363
SELECT + COUNT( DISTINCT 61 ) + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT + COUNT ( DISTINCT 61 ) + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT - CAST( 74 AS SIGNED ) FROM tab2 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-7364
SELECT - CAST ( 74 AS INTEGER ) FROM tab2 AS cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7367
SELECT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7367
SELECT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7368
SELECT ALL - 62 DIV col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - 62 / col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 + 97 FROM tab2 AS cor0
----
120
137
155

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT ALL + MAX( 90 ) AS col1, COUNT( * ) col1 FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7370
SELECT ALL + MAX ( 90 ) AS col1, COUNT ( * ) col1 FROM tab2 AS cor0
----
90
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT DISTINCT + 17 * - col2 DIV + + col2 - 91 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + 17 * - col2 / + + col2 - 91 FROM tab2
----
-108

query I rowsort
SELECT ALL + 5 + + col0 - - 91 FROM tab0
----
111
183
193

query I rowsort
SELECT ( col1 ) - + 81 * + col1 * + col0 FROM tab2
----
-189975
-399091
-406958

query II rowsort
SELECT ALL - + col2, + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ( 33 ) + + col1, ( + + 91 ) AS col2 FROM tab0
----
114
91
34
91
54
91

query I rowsort
SELECT DISTINCT - 80 - col0 + ( - ( 28 ) ) FROM tab1
----
-159
-193
-199

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT + CAST( NULL AS SIGNED ) + + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7379
SELECT + CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 * + ( + col2 ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * ( + - col2 ) AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - 11 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col2, 85 * - + 71 + + + col2 / - + col2 * 88, + + 30 + - 93 - - col1, + col0 + col1 - - 86 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 70 col2 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT ALL - + 38 AS col2 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col2 + - col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - - 71 AS col0 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL + 72 * COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + 72 * COUNT ( * ) FROM tab2
----
216

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - MAX( DISTINCT + - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7394
SELECT - MAX ( DISTINCT + - col2 ) AS col0 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 27 NOT BETWEEN - col2 AND + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( col0 ) IS NULL
----

query II rowsort
SELECT ALL + 9 * + col0 * - 16 AS col0, + 70 FROM tab2
----
-10800
70
-6624
70
-9216
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT - + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7398
SELECT - + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT DISTINCT - 8 DIV + + 35 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT - 8 / + + 35 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 6 * col0 AS col0 FROM tab0 AS cor0
----
522
582
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT - 13 - - + col0 AS col1 FROM tab0 cor0 WHERE NOT + 34 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT + MIN( - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT + MIN ( - + col1 ) FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + + 63 * + MIN( ALL 16 ) + + 84 + - + 69 FROM tab1 AS cor0
----
1023

skipif mysql # not compatible
query I rowsort label-7405
SELECT + + 63 * + MIN ( ALL 16 ) + + 84 + - + 69 FROM tab1 AS cor0
----
1023

query II rowsort
SELECT DISTINCT col2, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL + 58, + col1 AS col0 FROM tab1 AS cor0
----
58
14
58
47
58
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL ( + SUM( DISTINCT col2 ) ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL ( + SUM ( DISTINCT col2 ) ) AS col2 FROM tab1 cor0
----
223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 30, col1 + - + col0, - col2 + + 94 + - - col1, - col0 / + + col2 - 55, 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7413
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, - 52 AS col0 FROM tab0 AS cor0
----
NULL
-52
NULL
-52
NULL
-52

skipif mysql # not compatible
query II rowsort label-7413
SELECT ALL - CAST ( NULL AS REAL ) AS col2, - 52 AS col0 FROM tab0 AS cor0
----
NULL
-52
NULL
-52
NULL
-52

query I rowsort
SELECT DISTINCT col2 + 84 AS col0 FROM tab0
----
131
183
94

query I rowsort
SELECT - 54 + + col1 AS col0 FROM tab0 WHERE + col2 * + col0 NOT BETWEEN - col0 AND col1
----
-33
-53
27

query I rowsort
SELECT ALL 70 + - col1 FROM tab2
----
-7
19
3

query II rowsort
SELECT - 94 AS col2, + 75 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
18 values hashing to f852455d01f600837b4e01e2db606398

query I rowsort
SELECT 11 * + col1 AS col2 FROM tab0
----
11
231
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL CAST( - + ( + - COUNT( - col1 ) ) AS SIGNED ) * - + CAST( NULL AS SIGNED ) + - 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL CAST ( - + ( + - COUNT ( - col1 ) ) AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + - 11 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7420
SELECT + ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - COUNT( ALL + col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7421
SELECT - COUNT ( ALL + col0 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT + - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT col0 / + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + - ( - col1 ) AS col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT 38 * - 16, + col2 FROM tab2
----
-608
23
-608
40
-608
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL - MAX( - + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - MAX ( - + col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL col1 * - - col1 * - + col1 FROM tab1
----
-103823
-125
-2744

query I rowsort
SELECT ALL 38 AS col0 FROM tab0 WHERE NOT - + 95 IS NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL ( - MAX( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL ( - MAX ( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-7430
SELECT + col1 DIV - col0, 17 DIV - - col0 AS col2 FROM tab0 AS cor0
----
-5
1
0
0
0
0

skipif mysql # not compatible
query II rowsort label-7430
SELECT + col1 / - col0, 17 / - - col0 AS col2 FROM tab0 AS cor0
----
-5
1
0
0
0
0

query I rowsort
SELECT ALL - ( + col1 ) FROM tab1 cor0 WHERE NOT - col2 >= 54 * + - 0 + - - 11
----
-14
-47
-5

query I rowsort
SELECT + col0 + - + col1 AS col2 FROM tab1
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT + 87 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7434
SELECT + 87 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT + COUNT( ALL - 84 ) DIV - - 93 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT + COUNT ( ALL - 84 ) / - - 93 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 30 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - 85 + col0 * - 21 AS col2 FROM tab0
----
-10452
-2677
-4310

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7438
SELECT + CAST( NULL AS DECIMAL ) - - col2 * col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7438
SELECT + CAST ( NULL AS REAL ) - - col2 * col0 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT + 15 - + col2 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT + 15 - + col2 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 63 AS col0 FROM tab2
----
-14
-4
12

query I rowsort
SELECT DISTINCT + 4 - + col2 FROM tab1
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0
----
6

query II rowsort
SELECT DISTINCT - 77 - ( - col0 ) + + col1 AS col0, 14 + - ( + ( + col1 ) ) AS col2 FROM tab2
----
20
-37
64
-63
65
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT ALL COUNT( * ) AS col2, + 70 AS col2 FROM tab1
----
3
70

skipif mysql # not compatible
query II rowsort label-7444
SELECT ALL COUNT ( * ) AS col2, + 70 AS col2 FROM tab1
----
3
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col2 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + - 94
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT DISTINCT COUNT( * ) col1, 22 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7447
SELECT DISTINCT COUNT ( * ) col1, 22 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0
22

onlyif mysql # DIV for integer division: 
query II rowsort label-7448
SELECT ALL col0 DIV - 48, - 30 col2 FROM tab2 AS cor0
----
-1
-30
-1
-30
0
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7448
SELECT ALL col0 / - 48, - 30 col2 FROM tab2 AS cor0
----
-1
-30
-1
-30
0
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT - 50, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-7449
SELECT - 50, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-50
3

query II rowsort
SELECT ALL + - col1 AS col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT MIN( DISTINCT - - 56 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT MIN ( DISTINCT - - 56 ) AS col0 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT - ( + COUNT( * ) ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7452
SELECT - ( + COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT - - col0 * - 75 + - + col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

query I rowsort
SELECT - + col0 * col0 + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + ( - + col0 ) - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT SUM( - - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-7455
SELECT SUM ( - - col2 ) FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + 6 * + + SUM( DISTINCT + 94 ) FROM tab1
----
564

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 6 * + + SUM ( DISTINCT + 94 ) FROM tab1
----
564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT - ( - 11 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT - ( - 11 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NOT NULL AND NULL NOT IN ( col0 * - - 26, - col1 * 37, + col1 * + col0 * + col2, 76, - 21, + + 17 )
----

query II rowsort
SELECT ALL 61, col2 AS col2 FROM tab0
----
61
10
61
47
61
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 47 ) col0 FROM tab2
----
47
47
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - 85 / + col0
----

query II rowsort
SELECT + col1 AS col2, + col2 * + + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
51
1012
67
4275
77
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT + + COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7464
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT ALL CAST( col1 AS SIGNED ) * - 40 AS col2 FROM tab1 AS cor0
----
-1880
-200
-560

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL CAST ( col1 AS INTEGER ) * - 40 AS col2 FROM tab1 AS cor0
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT + SUM( ALL + 35 ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + SUM ( ALL + 35 ) FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + COUNT( * ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col2 * + + col1 + - col0 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT DISTINCT ( - col0 ) DIV - col1 + - + col1 - col1 FROM tab2 AS cor0
----
-102
-133
-154

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT ( - col0 ) / - col1 + - + col1 - col1 FROM tab2 AS cor0
----
-102
-133
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL + + COUNT( * ) + - 41 * + + ( + 41 ) AS col0 FROM tab1 cor0 WHERE NOT + col0 >= col1
----
-1681

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + + COUNT ( * ) + - 41 * + + ( + 41 ) AS col0 FROM tab1 cor0 WHERE NOT + col0 >= col1
----
-1681

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - + col1 + - 65 FROM tab2 AS cor0
----
-116
-132
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) * - - 75 / - col2 - - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) * - - 75 / - col2 - - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + + col0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 78, 27, col1, - + CAST( 3 AS SIGNED ) * 18, + - 40 / - col0 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-7475
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 78, 27, col1, - + CAST ( 3 AS INTEGER ) * 18, + - 40 / - col0 + + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 52 + - 6 * - - col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-112
-334
-646

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 23 / - - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT ALL + + SUM( col0 ) AS col1, COUNT( * ) * + - MIN( ALL - - col1 ) + - 72 AS col2 FROM tab0 WHERE + col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7479
SELECT ALL + + SUM ( col0 ) AS col1, COUNT ( * ) * + - MIN ( ALL - - col1 ) + - 72 AS col2 FROM tab0 WHERE + col2 IS NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL + 25 * COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + 25 * COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
225

query I rowsort
SELECT ALL 43 - + 90 + - col2 FROM tab1
----
-106
-115
-143

query I rowsort
SELECT ALL col1 * + - col1 * col0 + + col0 FROM tab2
----
-119600
-336600
-379392

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - 49 - - COUNT( * ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-7483
SELECT - 49 - - COUNT ( * ) FROM tab0
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE - 71 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( - + col0 + col0, - col2, - + 93 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - - col0 + + col1 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - MAX( - 50 ) AS col1 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7487
SELECT - MAX ( - 50 ) AS col1 FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT - ( - - 18 ) + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 6 ) FROM tab1
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * - + col1 col2 FROM tab0
----
-1215
-15
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - - COUNT( * ) col0 FROM tab0 WHERE NOT NULL >= 33 * + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7492
SELECT - - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL >= 33 * + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL - MAX( + 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - MAX ( + 23 ) FROM tab1 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 90 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * CAST( - + 96 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7496
SELECT 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * CAST ( - + 96 AS INTEGER ) AND NULL
----

query I rowsort
SELECT - 48 + col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - - 30
----

query II rowsort
SELECT DISTINCT - - col0 AS col1, - 59 FROM tab1 AS cor0 WHERE NOT - col0 - 92 IS NOT NULL
----

query I rowsort
SELECT + - ( - col1 ) * + 39 + - + ( + col1 ) + - - col1 + col1 * - col1 FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT + + 82, COUNT( * ) AS col1 FROM tab2 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-7500
SELECT + + 82, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
82
3

query I rowsort
SELECT ALL + col2 + + 21 AS col2 FROM tab1 AS cor0
----
117
80
89

query II rowsort
SELECT 49, 62 * - 82 AS col2 FROM tab1 AS cor0
----
49
-5084
49
-5084
49
-5084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT DISTINCT + 83 / + col2 + + - col2 / ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + 83 / + col2 + + - col2 / ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7504
SELECT ( + - CAST( + + 1 AS SIGNED ) ) DIV 93 + - + ( - col1 ) + + col0 AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7504
SELECT ( + - CAST ( + + 1 AS INTEGER ) ) / 93 + - + ( - col1 ) + + col0 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab2 WHERE ( 25 ) <= - 47
----

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT ALL - 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NOT + 45 IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT - MIN( + 56 ) + - ( MAX( + 71 ) ) FROM tab1, tab2 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - MIN ( + 56 ) + - ( MAX ( + 71 ) ) FROM tab1, tab2 AS cor0
----
-127

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + 18 - - + MIN( - + ( - - col2 ) ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + 18 - - + MIN ( - + ( - - col2 ) ) FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT + col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT + col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT - COUNT( * ) - - 43 col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7513
SELECT - COUNT ( * ) - - 43 col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT - col2 - 48 FROM tab2 AS cor0
----
-106
-71
-88

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE - ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 34 ) + - col0 FROM tab1
----
-17
-51
-57

query I rowsort
SELECT col1 * + 46 + - ( - col2 ) FROM tab0
----
145
3773
976

query III rowsort
SELECT * FROM tab0 WHERE + col2 / col1 + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 81 * col0 AND + + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT COUNT( * ) * - 45 * 68 AS col0 FROM tab2
----
-9180

skipif mysql # not compatible
query I rowsort label-7520
SELECT COUNT ( * ) * - 45 * 68 AS col0 FROM tab2
----
-9180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7521
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE + + col1 + CAST( NULL AS DECIMAL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE + + col1 + CAST ( NULL AS REAL ) IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + + 78 AS col0 FROM tab0 WHERE NOT NULL >= - - col1
----

query I rowsort
SELECT ALL + col2 / - 5 FROM tab0 AS cor0 WHERE NULL <> + col1 + + + 55 - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 37 IS NOT NULL ) OR NULL BETWEEN + col2 * col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT + COUNT( - - 92 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7526
SELECT DISTINCT + COUNT ( - - 92 ) col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT ALL + 71 DIV + 43 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + 71 / + 43 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - ( MAX( DISTINCT - + col2 ) ) * + - COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-7528
SELECT - ( MAX ( DISTINCT - + col2 ) ) * + - COUNT ( * ) FROM tab1
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7529
SELECT * FROM tab0 AS cor0 WHERE NOT + 10 + - - 64 BETWEEN NULL AND - CAST( NULL AS SIGNED ) + + 77
----

skipif mysql # not compatible
query III rowsort label-7529
SELECT * FROM tab0 AS cor0 WHERE NOT + 10 + - - 64 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT + + 73 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7530
SELECT + + 73 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-219

query I rowsort
SELECT ALL col0 * - + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT - - COUNT( * ) * + SUM( ALL 69 ) FROM tab1 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-7533
SELECT - - COUNT ( * ) * + SUM ( ALL 69 ) FROM tab1 AS cor0
----
621

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * + - 91 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + MIN( + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7535
SELECT + MIN ( + col0 ) FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT ALL col1 DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL col1 / - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT 22 + 28 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-7538
SELECT 22 + 28 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
106

query I rowsort
SELECT - - col0 * - col0 + + + 42 + + 99 FROM tab0 AS cor0
----
-7428
-84
-9268

query II rowsort
SELECT DISTINCT + ( + col2 ) + + 29 AS col2, 8 - 39 FROM tab2 cor0
----
52
-31
69
-31
87
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + COUNT( * ) + + 96 AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + COUNT ( * ) + + 96 AS col2 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7542
SELECT ALL - col2 / - CAST( + - col1 AS DECIMAL ) + + - col2 FROM tab1 WHERE - 92 < NULL
----

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - col2 / - CAST ( + - col1 AS REAL ) + + - col2 FROM tab1 WHERE - 92 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT COUNT( * ) + - + 7 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT COUNT ( * ) + - + 7 FROM tab2
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 77 * col1 + + 19 < ( + - 97 ) )
----

query I rowsort
SELECT ALL col0 + - + ( + + 42 ) FROM tab2
----
22
33
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 63 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT ALL col0 DIV - col1 - 35 + - col0 AS col2 FROM tab1
----
-127
-137
-89

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL col0 / - col1 - 35 + - col0 AS col2 FROM tab1
----
-127
-137
-89

query I rowsort
SELECT DISTINCT col2 * - - col1 + col1 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT + - 81 * + col0 + + col0 FROM tab0 cor0
----
-1200
-6960
-7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - MAX( - 39 ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7553
SELECT - MAX ( - 39 ) AS col0 FROM tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - col2 * 26 AS col2 FROM tab0
----
-1222
-2574
-260

query I rowsort
SELECT ( 29 ) FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT COUNT( * ) * + 71 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-7557
SELECT COUNT ( * ) * + 71 FROM tab0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + SUM( ALL + + 80 ) AS col1 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + SUM ( ALL + + 80 ) AS col1 FROM tab1
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7559
SELECT DISTINCT - + col0 col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7559
SELECT DISTINCT - + col0 col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT + + COUNT( * ) col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7560
SELECT + + COUNT ( * ) col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + 76 + + 14 * + col0 + + + col1 FROM tab0
----
1315
1435
367

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT ALL - col2 * + + col0 DIV col0 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - col2 * + + col0 / col0 AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7565
SELECT DISTINCT - - CAST( 58 AS DECIMAL ) / 79 + + CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - - CAST ( 58 AS REAL ) / 79 + + CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT - + COUNT( ALL 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - + COUNT ( ALL 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7567
SELECT DISTINCT - + COUNT( * ) * CAST( - + 43 AS SIGNED ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - + COUNT ( * ) * CAST ( - + 43 AS INTEGER ) FROM tab1 AS cor0
----
129

query II rowsort
SELECT ALL ( - + col0 ), 16 AS col1 FROM tab0 AS cor0
----
-15
16
-87
16
-97
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * + col1 * 22 * - col1 col0 FROM tab0 AS cor0
----
-358974
-5340654
-814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL ( + MIN( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL ( + MIN ( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT SUM( DISTINCT - - ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7572
SELECT SUM ( DISTINCT - - ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE col2 IN ( + col1, col1 + - - col2 )
----

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + 67 * - - 52 + SUM( DISTINCT + + col0 ) FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + 67 * - - 52 + SUM ( DISTINCT + + col0 ) FROM tab1 WHERE NULL = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT ALL + col1 DIV - - 95 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + col1 / - - 95 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - MAX( - - col0 ) + COUNT( * ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-7577
SELECT - MAX ( - - col0 ) + COUNT ( * ) AS col1 FROM tab1
----
-88

query I rowsort
SELECT col1 - - 31 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 19 col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col0, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7582
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT 17 - col1 AS col1 FROM tab0
----
-4
-64
16

query I rowsort
SELECT ALL - col0 - col1 - - ( + col1 ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE ( - - col0 + + col1 + + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, + 20 col0 FROM tab1 AS cor0
----
14
20
47
20
5
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT ALL - col0 DIV + - col2 FROM tab2 AS cor0 WHERE ( col0 DIV - col0 ) IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL - col0 / + - col2 FROM tab2 AS cor0 WHERE ( col0 / - col0 ) IS NOT NULL
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - - SUM( ALL + + 9 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7590
SELECT - - SUM ( ALL + + 9 ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT + COUNT( - 50 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7591
SELECT + COUNT ( - 50 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT DISTINCT COUNT( * ) AS col2, 22 FROM tab2 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-7592
SELECT DISTINCT COUNT ( * ) AS col2, 22 FROM tab2 AS cor0
----
3
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT - + MAX( - col2 ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7593
SELECT - + MAX ( - col2 ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-30

query I rowsort
SELECT + 14 * - 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 76 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL + MAX( DISTINCT + col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT ALL + MAX ( DISTINCT + col0 ) col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT DISTINCT CAST( - 53 AS SIGNED ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT CAST ( - 53 AS INTEGER ) FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - + COUNT( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7598
SELECT - + COUNT ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT + 95 ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + COUNT( * ) FROM tab2 WHERE NOT + + col1 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7601
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + + col1 + col1 IS NULL
----
3

query I rowsort
SELECT + + 4 + + col1 AS col2 FROM tab2 cor0
----
55
71
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT - col1 + 80 DIV 36 AS col2 FROM tab0 AS cor0
----
-19
-79
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT - col1 + 80 / 36 AS col2 FROM tab0 AS cor0
----
-19
-79
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 34 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + - col1 * + col0 col1, 23 AS col0 FROM tab2 AS cor0
----
-2369
23
-4968
23
-5083
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col2 IN ( + + col2, - ( 4 ) * + ( - 47 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL + MIN( ALL 59 ) + - 73 - ( - + COUNT( * ) ) - + 21 AS col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + MIN ( ALL 59 ) + - 73 - ( - + COUNT ( * ) ) - + 21 AS col1 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT * FROM tab2 WHERE - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 > + 13 / - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 FROM tab1 WHERE + - 29 / col2 * + + col1 * - + 94 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT COUNT( ALL + 54 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT COUNT ( ALL + 54 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7612
SELECT DISTINCT 24 * - col2 DIV col2 + - ( - col2 ), - col0 AS col0 FROM tab1
----
35
-85
44
-91
72
-51

skipif mysql # not compatible
query II rowsort label-7612
SELECT DISTINCT 24 * - col2 / col2 + - ( - col2 ), - col0 AS col0 FROM tab1
----
35
-85
44
-91
72
-51

query I rowsort
SELECT - ( + - col1 ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT - 77 * + 15 - - 68 - - COUNT( * ) FROM tab2 AS cor0
----
-1084

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - 77 * + 15 - - 68 - - COUNT ( * ) FROM tab2 AS cor0
----
-1084

query I rowsort
SELECT + - 53 * - + col0 * - 87 - col2 AS col1 FROM tab2 AS cor0
----
-212129
-295144
-345883

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IS NULL AND col2 = NULL
----

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT + 92 DIV - 52 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7619
SELECT + 92 / - 52 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT ALL + MIN( ALL + 99 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL + MIN ( ALL + 99 ) AS col2 FROM tab1
----
99

query II rowsort
SELECT - col1 AS col2, - col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL - SUM( ALL + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - SUM ( ALL + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT - + 8 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT - + 99 * SUM( 27 ) + + 19 FROM tab1 AS cor0
----
-8000

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - + 99 * SUM ( 27 ) + + 19 FROM tab1 AS cor0
----
-8000

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col2, col0 + + 96 )
----

query I rowsort
SELECT ALL + + 12 + 99 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
111
111
111

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 37 >= - + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT COUNT( ALL - col0 ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT DISTINCT COUNT( * ) col2, 6 AS col2 FROM tab1
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7629
SELECT DISTINCT COUNT ( * ) col2, 6 AS col2 FROM tab1
----
3
6

query I rowsort
SELECT DISTINCT + 35 FROM tab0 WHERE col0 / + col0 + + - col2 + - + col0 > ( - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 + + 1 >= - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 92 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 / + 61 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7634
SELECT - col1 AS col0, + 52 DIV col0 * + col1 * + - col0 FROM tab1
----
-14
-714
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-7634
SELECT - col1 AS col0, + 52 / col0 * + col1 * + - col0 FROM tab1
----
-14
-714
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT MAX( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7635
SELECT MAX ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT 28 + - 42 * 54 * - - col0 * - 70, + col1 FROM tab2
----
10160668
77
11907028
67
7302988
51

query I rowsort
SELECT + 30 + + 74 + - col0 + + + 66 * col2 * - + col1 AS col1 FROM tab2
----
-203240
-256447
-77360

query I rowsort
SELECT DISTINCT + + 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT ALL 77 * - - 83 * col1 FROM tab1 cor0
----
300377
31955
89474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT + col0 * CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT + col0 * CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT + - COUNT( * ) * - 58 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + - COUNT ( * ) * - 58 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 = NULL
----

query I rowsort
SELECT ALL col0 / col2 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - + ( + COUNT( * ) ) * + 7 - - + 19 + + ( MAX( - ( - col1 ) ) ) * + + 57 FROM tab2 AS cor0
----
4387

skipif mysql # not compatible
query I rowsort label-7645
SELECT - + ( + COUNT ( * ) ) * + 7 - - + 19 + + ( MAX ( - ( - col1 ) ) ) * + + 57 FROM tab2 AS cor0
----
4387

query I rowsort
SELECT - 35 + - 67 + + col1 - + + col2 + + - col0 FROM tab2
----
-120
-129
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT col2 + + col1 - - 45 DIV - col2 * col1 FROM tab1 cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-7647
SELECT col2 + + col1 - - 45 / - col2 * col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7648
SELECT * FROM tab0 AS cor0 WHERE - 6 NOT IN ( CAST( - + col1 AS SIGNED ), col0 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7648
SELECT * FROM tab0 AS cor0 WHERE - 6 NOT IN ( CAST ( - + col1 AS INTEGER ), col0 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL + + 15 * MIN( ALL + 22 ) + - - COUNT( * ) + - COUNT( * ) * - - SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
1014

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + + 15 * MIN ( ALL + 22 ) + - - COUNT ( * ) + - COUNT ( * ) * - - SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
1014

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT + 36 * + 82 + - MAX( col0 ) AS col0, 90 FROM tab2 AS cor0
----
2877
90

skipif mysql # not compatible
query II rowsort label-7650
SELECT + 36 * + 82 + - MAX ( col0 ) AS col0, 90 FROM tab2 AS cor0
----
2877
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT ALL + col0 DIV + 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + col0 / + 95 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT CAST( NULL AS SIGNED ) * + 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT CAST ( NULL AS INTEGER ) * + 7 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - MAX( ALL - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7653
SELECT - MAX ( ALL - col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col2 FROM tab1
----
-23
-26
45

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * 57 + col1 <= 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 17 ) AS col1 FROM tab2
----
17
17
17

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT + col0 + + 72 AS col0 FROM tab1
----
123
157
163

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT ALL - ( - col2 ) + ( - 44 ) DIV + col0 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL - ( - col2 ) + ( - 44 ) / + col0 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + col0 + + 39 AS col1 FROM tab1
----
124
130
90

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 30 FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 col2 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + COUNT( ALL - 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( ALL - 46 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 53 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7667
SELECT * FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) * col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7667
SELECT * FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL MAX( + 29 ) + CAST( MIN( ALL + 91 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT 82 * col2 IS NULL
----
120

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL MAX ( + 29 ) + CAST ( MIN ( ALL + 91 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT 82 * col2 IS NULL
----
120

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + col1 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 + col0 FROM tab1
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT 44 * - 45 + - COUNT( * ) FROM tab1
----
-1983

skipif mysql # not compatible
query I rowsort label-7671
SELECT 44 * - 45 + - COUNT ( * ) FROM tab1
----
-1983

query I rowsort
SELECT - 10 + - 49 * 4 AS col0 FROM tab0
----
-206
-206
-206

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT + MIN( DISTINCT - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7674
SELECT + MIN ( DISTINCT - col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <= - ( - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-7675
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <= - ( - 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT ALL CAST( NULL AS SIGNED ) * + col0 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT DISTINCT ( + 33 ) + + col1 FROM tab0 AS cor0
----
114
34
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7679
SELECT ALL CAST( + col0 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL CAST ( + col0 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 96 * col2 )
----

query I rowsort
SELECT - 8 AS col2 FROM tab2 WHERE col0 < NULL
----

query I rowsort
SELECT - 13 + col0 FROM tab2
----
33
51
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 37 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT - 69 * COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
-621

skipif mysql # not compatible
query I rowsort label-7684
SELECT - 69 * COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
-621

query I rowsort
SELECT + 68 + 4 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT + 69 + - ( 73 ) FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT + 72 + - 12 AS col0 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + 20 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT - + CAST( COUNT( * ) AS SIGNED ) + ( 6 ) * - COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7689
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + ( 6 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + col0 * 89 AS col1 FROM tab1 AS cor0 WHERE - 34 * col2 + col0 < col0
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT DISTINCT - COUNT( - 28 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT - COUNT ( - 28 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE 89 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + 17 * + col1 + + 76
----

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 WHERE + 16 * col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( col0 / 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT ALL - col1 / 19 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - col1 / 19 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT 32 + + - col0 * col0 FROM tab1
----
-2569
-7193
-8249

query I rowsort
SELECT ALL 84 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT ALL CAST( + + col0 AS SIGNED ) * - col1 - + col1 FROM tab0
----
-1296
-1848
-98

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL CAST ( + + col0 AS INTEGER ) * - col1 - + col1 FROM tab0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab0 WHERE col2 + 65 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - - 73 FROM tab2
----
15
33
50

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - - 73 FROM tab2
----
15
33
50

query I rowsort
SELECT ALL - col0 * - + col1 * col1 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 22 ) IS NULL
----

query I rowsort
SELECT ALL - 1 - - col1 * 91 FROM tab1 AS cor0
----
1273
4276
454

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + ( col1 ) * - 1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + 96 < ( - ( + col2 ) + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col0 > NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 74 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT - 64 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT col2 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7711
SELECT - 64 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + - 1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) / col2 AND - 58 + + col1
----

skipif mysql # not compatible
query I rowsort label-7713
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) / col2 AND - 58 + + col1
----

query II rowsort
SELECT - col2 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + COUNT( * ) * SUM( DISTINCT ( 8 ) ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT ( 8 ) ) AS col1 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7716
SELECT ALL COUNT( * ) AS col1, - COUNT( DISTINCT - + col1 ) col2 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7716
SELECT ALL COUNT ( * ) AS col1, - COUNT ( DISTINCT - + col1 ) col2 FROM tab1 cor0
----
3
-3

query I rowsort
SELECT - col2 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7718
SELECT - 91 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 28 * + ( CAST( NULL AS DECIMAL ) ) + 12 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7718
SELECT - 91 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 28 * + ( CAST ( NULL AS REAL ) ) + 12 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL 50 DIV - + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 50 / - + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 62 + + col0 / 77 AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + + col0 )
----

query II rowsort
SELECT DISTINCT + col0 AS col2, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + 87 / - - 15
----

query I rowsort
SELECT 2 AS col2 FROM tab1 AS cor0 WHERE NOT 3 IS NULL
----
2
2
2

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + 40 * ( 43 ) + COUNT( * ) FROM tab0 AS cor0
----
1723

skipif mysql # not compatible
query I rowsort label-7725
SELECT + 40 * ( 43 ) + COUNT ( * ) FROM tab0 AS cor0
----
1723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( - col2 + col0 + ( col1 ) ) IN ( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - col2 + col0 + ( col1 ) ) IN ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT 73 * col1 DIV col1 AS col2 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7727
SELECT 73 * col1 / col1 AS col2 FROM tab2
----
73
73
73

query I rowsort
SELECT ALL 23 * col1 AS col2 FROM tab0
----
1863
23
483

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT + CAST( - 89 AS SIGNED ) * + 30 AS col0 FROM tab0
----
-2670
-2670
-2670

skipif mysql # not compatible
query I rowsort label-7730
SELECT + CAST ( - 89 AS INTEGER ) * + 30 AS col0 FROM tab0
----
-2670
-2670
-2670

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= ( NULL )
----

query II rowsort
SELECT 13 * - col0 AS col1, - col0 - + - 95 FROM tab2
----
-598
49
-832
31
-975
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7733
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7733
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 77 AS col1 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT + col2 / - col0 FROM tab0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab1 WHERE NOT - + col1 / - - col1 + - col2 IS NULL
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - + - 53 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL col2 + - col2 + + - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL col2 + - col2 + + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + - - 44 * col2 col0 FROM tab1 cor0
----
2635
3031
4263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - - col0 + + 76 col0, col0 AS col1 FROM tab0
----
10
15
142
87
172
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT MIN( - 13 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-7743
SELECT MIN ( - 13 ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT COUNT( ALL col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7744
SELECT COUNT ( ALL col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL - ( - ( + 75 ) ) + + col1 AS col0 FROM tab0
----
156
76
96

query I rowsort
SELECT DISTINCT + col2 - - 88 FROM tab2 AS cor0
----
111
128
146

query II rowsort
SELECT DISTINCT + 43 AS col1, 40 * + - col1 AS col2 FROM tab0 AS cor0
----
43
-3240
43
-40
43
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ( + SUM( ALL col0 ) ) col2 FROM tab1 AS cor0 WHERE col2 * + 77 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7748
SELECT ( + SUM ( ALL col0 ) ) col2 FROM tab1 AS cor0 WHERE col2 * + 77 IS NULL
----
NULL

query I rowsort
SELECT + 42 * + col1 FROM tab2 cor0
----
2142
2814
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7750
SELECT - 17 DIV + 12 - + COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7750
SELECT - 17 / + 12 - + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT - col2 DIV - 88 - + col1 + + - col0 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-7751
SELECT - col2 / - 88 - + col1 + + - col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT - col1 + + col2 * + 3 - + col0 FROM tab0 AS cor0
----
-78
199
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT - 7 + CAST( NULL AS SIGNED ) * - COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT - 7 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + 66 - col0 FROM tab0
----
66
66
66

query I rowsort
SELECT col0 + - 19 AS col1 FROM tab1
----
32
66
72

query I rowsort
SELECT DISTINCT + col2 + - - col2 FROM tab0
----
198
20
94

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - ( + col1 ) NOT BETWEEN col0 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL + 98 * + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + 98 * + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
882

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( + col1 ) AS col1, col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT - col2 * 70 DIV + col0 AS col1 FROM tab0 cor0
----
-219
-71
-8

skipif mysql # not compatible
query I rowsort label-7761
SELECT - col2 * 70 / + col0 AS col1 FROM tab0 cor0
----
-219
-71
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7762
SELECT + SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT + + MIN( DISTINCT - - col0 ), - 32 AS col1 FROM tab2 AS cor0
----
46
-32

skipif mysql # not compatible
query II rowsort label-7763
SELECT + + MIN ( DISTINCT - - col0 ), - 32 AS col1 FROM tab2 AS cor0
----
46
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7764
SELECT - col2 - + 49 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - col2 + - + CAST( + 73 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7764
SELECT - col2 - + 49 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - col2 + - + CAST ( + 73 AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7765
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT + - col1 DIV col0 * - col1 + + + col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7766
SELECT + - col1 / col0 * - col1 + + + col1 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 30 AND NULL
----

query I rowsort
SELECT 3 + + - col1 FROM tab0
----
-18
-78
2

query I rowsort
SELECT ALL col1 + - + col1 - - 58 FROM tab0
----
58
58
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 NOT BETWEEN NULL AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( + 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 1 AS col1, + 5 col1 FROM tab2
----
1
5
1
5
1
5

query I rowsort
SELECT - 44 * - - col2 FROM tab0 AS cor0 WHERE ( col0 + + col1 ) IS NOT NULL
----
-2068
-4356
-440

query II rowsort
SELECT DISTINCT - 92 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
-92
59
-92
68
-92
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT + + col2 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + col2 / - col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col0 * + col0 + - + 95 AS col0 FROM tab1
----
2506
7130
8186

query I rowsort
SELECT DISTINCT 3 FROM tab2 WHERE ( NOT ( col1 ) IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 20 * + col1 = + - 4 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7780
SELECT - col1 DIV col0 + - - 50 * - CAST( - col1 AS SIGNED ) FROM tab2
----
2549
3350
3849

skipif mysql # not compatible
query I rowsort label-7780
SELECT - col1 / col0 + - - 50 * - CAST ( - col1 AS INTEGER ) FROM tab2
----
2549
3350
3849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col0 + - 51, col1 FROM tab0 AS cor0
----
-138
21
-148
1
-66
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT ALL + 13 + + col2 * col0 * - CAST( - 48 AS SIGNED ) * - 75 AS col1 FROM tab2 AS cor0 WHERE NOT col1 / col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + 13 + + col2 * col0 * - CAST ( - 48 AS INTEGER ) * - 75 AS col1 FROM tab2 AS cor0 WHERE NOT col1 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL AVG ( 39 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL AVG ( 39 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - - 52 * - - 3 FROM tab0 cor0
----
156
156
156

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE col1 >= + col1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7787
SELECT - col1 * 71 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3337
NULL
-355
NULL
-994
NULL

skipif mysql # not compatible
query II rowsort label-7787
SELECT - col1 * 71 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3337
NULL
-355
NULL
-994
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col1 ) + - 99 * - - col2 NOT BETWEEN NULL AND 42
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + + 37 NOT BETWEEN NULL AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 6 + + 61 FROM tab2 WHERE + + 4 * + col0 * - + 29 / col0 * - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL + ( + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + ( + COUNT ( * ) ) FROM tab0
----
3

query II rowsort
SELECT col0 AS col1, - 8 FROM tab2
----
46
-8
64
-8
75
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * - + col0 col1 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT - col0 * + col2 * col2 AS col1 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT + col2 * + col1 + + col0 * 50 FROM tab1 AS cor0
----
3894
4545
7746

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 * - 12 * 38 * + 20 AND - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7797
SELECT + 28 DIV - ( + COUNT( * ) ) FROM tab0 WHERE NOT + col0 + 38 DIV - - CAST( NULL AS SIGNED ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7797
SELECT + 28 / - ( + COUNT ( * ) ) FROM tab0 WHERE NOT + col0 + 38 / - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7798
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7798
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + MAX( 10 ) * - COUNT( DISTINCT ( + col2 ) ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7799
SELECT + MAX ( 10 ) * - COUNT ( DISTINCT ( + col2 ) ) FROM tab0
----
-30

query II rowsort
SELECT + 47 AS col1, - col2 * - 34 + - 48 FROM tab2
----
47
1312
47
1924
47
734

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 ) BETWEEN col1 AND - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT ALL - 59 AS col0, COUNT( * ) - + 12 FROM tab0 AS cor0
----
-59
-9

skipif mysql # not compatible
query II rowsort label-7802
SELECT ALL - 59 AS col0, COUNT ( * ) - + 12 FROM tab0 AS cor0
----
-59
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL - ( ( - 28 ) ) + + - COUNT( * ) FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL - ( ( - 28 ) ) + + - COUNT ( * ) FROM tab2 cor0
----
25

query I rowsort
SELECT DISTINCT - col1 * - col1 + 79 AS col1 FROM tab1 AS cor0
----
104
2288
275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * - col1 col0 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT - col0 + + col0 * + + col1 AS col0 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - ( + COUNT( * ) ) * + 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-7807
SELECT - ( + COUNT ( * ) ) * + 85 FROM tab1
----
-255

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * col1 IN ( col0 + + - col2 )
----

query I rowsort
SELECT 21 + - col0 * - + 40 AS col0 FROM tab1
----
2061
3421
3661

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7811
SELECT ALL * FROM tab2 WHERE NOT ( + ( ( - + col2 ) ) + + CAST( + - col0 AS SIGNED ) <> + + col1 )
----

skipif mysql # not compatible
query III rowsort label-7811
SELECT ALL * FROM tab2 WHERE NOT ( + ( ( - + col2 ) ) + + CAST ( + - col0 AS INTEGER ) <> + + col1 )
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT DISTINCT - col1 * - 51 * - col1 - - - col0 + col0, ( - - col0 ) * - col2 * + ( + + col1 ) + 63 * - col0 AS col0 FROM tab1 AS cor0
----
-112659
-296569
-1275
-30430
-9996
-71757

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT ALL + + CAST( + 32 AS SIGNED ) + 87 FROM tab2 AS cor0
----
119
119
119

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + + CAST ( + 32 AS INTEGER ) + 87 FROM tab2 AS cor0
----
119
119
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7816
SELECT + - 21 DIV - + COUNT( * ) + - MAX( ALL col1 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7816
SELECT + - 21 / - + COUNT ( * ) + - MAX ( ALL col1 ) FROM tab1 AS cor0
----
-40

query I rowsort
SELECT ALL - - col1 * - ( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT 59 * + 16 FROM tab1
----
944
944
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + - col1 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + - col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7820
SELECT - COUNT( * ) DIV + 65 * + - 24 - - ( + + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7820
SELECT - COUNT ( * ) / + 65 * + - 24 - - ( + + COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col1 * - 71 * + 64 AS col1 FROM tab2 AS cor0
----
-231744
-304448
-349888

query I rowsort
SELECT DISTINCT + 15 * - 16 AS col1 FROM tab2 cor0
----
-240

query I rowsort
SELECT - col2 * - - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT CAST( - col2 AS SIGNED ) * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7825
SELECT CAST ( - col2 AS INTEGER ) * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7826
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT ( - 55 ) AS col0 FROM tab1 AS cor0 WHERE NOT 32 < - col2
----
-55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - 7 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NULL OR + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - 3 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 24 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 24 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + ( - MIN( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7832
SELECT + ( - MIN ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col2 * - + ( col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL - 99 AS col0, col0 AS col2 FROM tab1
----
-99
51
-99
85
-99
91

query I rowsort
SELECT + 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 * + col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT - - COUNT( * ) + 97 AS col0 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7840
SELECT - - COUNT ( * ) + 97 AS col0 FROM tab1 AS cor0
----
100

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 * col2 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
51
1540
85
320
91
5405

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT - - SUM( ALL col0 ) + - 33 FROM tab2 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-7842
SELECT - - SUM ( ALL col0 ) + - 33 FROM tab2 AS cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL MAX( ALL - 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL MAX ( ALL - 50 ) FROM tab1 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 42 col1 FROM tab0 AS cor0
----
-27
45
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 87 IN ( - col1 )
----

query I rowsort
SELECT 3 * col2 FROM tab1 WHERE - - col0 IS NOT NULL
----
177
204
288

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + + 14 * - col0 / - - 78
----

query II rowsort
SELECT col0, col1 * col2 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT ALL - 78 - col1 AS col0 FROM tab2
----
-129
-145
-155

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 - - - col0, 24, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT DISTINCT - - CAST( - - col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - - CAST ( - - col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - 92 * - - COUNT( * ) * - 98 AS col2 FROM tab2 AS cor0
----
27048

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - 92 * - - COUNT ( * ) * - 98 AS col2 FROM tab2 AS cor0
----
27048

query I rowsort
SELECT ALL col1 + 12 AS col1 FROM tab0 AS cor0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT 73 + + - ( + SUM( DISTINCT + col0 ) ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT 73 + + - ( + SUM ( DISTINCT + col0 ) ) FROM tab0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7855
SELECT DISTINCT 13 * 35 * + CAST( NULL AS SIGNED ), - 63 * col0 + + 55 + + 30 col2 FROM tab0
----
NULL
-5396
NULL
-6026
NULL
-860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7855
SELECT DISTINCT 13 * 35 * + CAST ( NULL AS INTEGER ), - 63 * col0 + + 55 + + 30 col2 FROM tab0
----
NULL
-5396
NULL
-6026
NULL
-860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 + + 99, 61 + - col0 col2 FROM tab1
----
127
-24
127
-30
127
10

query II rowsort
SELECT col0 + + col0 AS col0, - col0 + - col1 + + col1 AS col1 FROM tab1
----
102
-51
170
-85
182
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT ALL col0 * + CAST( - 91 AS SIGNED ) FROM tab2
----
-4186
-5824
-6825

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL col0 * + CAST ( - 91 AS INTEGER ) FROM tab2
----
-4186
-5824
-6825

query I rowsort
SELECT DISTINCT + - 69 AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT MIN( col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7862
SELECT MIN ( col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 cor0 WHERE NOT + col2 = NULL
----

query I rowsort
SELECT DISTINCT 79 * + ( col2 ) * - 19 AS col1 FROM tab1 AS cor0
----
-102068
-144096
-88559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL + col2 * 5 - CAST( NULL AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + col2 * 5 - CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 54 * 44 FROM tab1 AS cor0
----
2376
2376
2376

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 48 * col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 * - - col1 * - + 90 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - MIN( + col1 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7869
SELECT - MIN ( + col1 ) col0 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT - COUNT( * ) AS col1, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-7871
SELECT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2
----
-3
3

query II rowsort
SELECT 66, col2 * + col0 AS col1 FROM tab0
----
66
705
66
870
66
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT - col1 DIV 55 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT - col1 / 55 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col2 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT MIN( DISTINCT - col2 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7875
SELECT MIN ( DISTINCT - col2 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT - 0 * - MAX( + 11 ) + + 41 AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7876
SELECT - 0 * - MAX ( + 11 ) + + 41 AS col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT col1 * + + col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT - 5 * - 2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL + 93 * - COUNT( * ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + 93 * - COUNT ( * ) FROM tab2 AS cor0
----
-279

query I rowsort
SELECT + col0 / - - 49 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 87 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - COUNT( ALL - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7883
SELECT - COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT - AVG ( + + col2 ) AS col0 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT - AVG ( + + col2 ) AS col0 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) > ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT - col1 + - CAST( + 29 AS SIGNED ) AS col2 FROM tab1
----
-34
-43
-76

skipif mysql # not compatible
query I rowsort label-7885
SELECT - col1 + - CAST ( + 29 AS INTEGER ) AS col2 FROM tab1
----
-34
-43
-76

query II rowsort
SELECT ALL - col0 + 82 * + col2, + ( - + col1 ) AS col1 FROM tab2
----
1840
-51
3216
-77
4681
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT MIN( col2 ) + + MIN( - col1 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7887
SELECT MIN ( col2 ) + + MIN ( - col1 ) FROM tab2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT col1 DIV - col0 + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7888
SELECT col1 / - col0 + - col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( - col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN - + col1 AND + col2 + + 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 2 AS col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT - SUM( 74 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - SUM ( 74 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-222

query I rowsort
SELECT + col0 + ( - 99 ) * + 46 * col2 AS col2 FROM tab2 AS cor0
----
-104696
-182096
-264057

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT + col1 DIV - 43 + - col1 * ( - + col2 ) FROM tab2 AS cor0
----
1172
3079
3885

skipif mysql # not compatible
query I rowsort label-7894
SELECT + col1 / - 43 + - col1 * ( - + col2 ) FROM tab2 AS cor0
----
1172
3079
3885

query II rowsort
SELECT - col0 AS col0, - col2 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT + ( CAST( NULL AS SIGNED ) ) - + 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + ( CAST ( NULL AS INTEGER ) ) - + 32 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL - COUNT( * ) - 63 AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - COUNT ( * ) - 63 AS col0 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT COUNT( * ) AS col0, 31 AS col0 FROM tab1
----
3
31

skipif mysql # not compatible
query II rowsort label-7898
SELECT COUNT ( * ) AS col0, 31 AS col0 FROM tab1
----
3
31

query I rowsort
SELECT DISTINCT 43 * + 8 * - 53 AS col2 FROM tab1
----
-18232

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT + COUNT( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT + COUNT ( col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL 38 * MAX( ALL col0 ) AS col1 FROM tab0 AS cor0
----
3686

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL 38 * MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
3686

query II rowsort
SELECT col1 AS col1, col0 * - 70 FROM tab0 AS cor0
----
1
-6790
21
-6090
81
-1050

query I rowsort
SELECT DISTINCT - - col1 * + - 76 + + col0 AS col2 FROM tab2 AS cor0
----
-3830
-5017
-5788

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT ALL COUNT( * ), + 75 AS col2 FROM tab1 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-7904
SELECT ALL COUNT ( * ), + 75 AS col2 FROM tab1 AS cor0
----
3
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 79 AS col1, - col0 col2 FROM tab0 AS cor0
----
-79
-15
-79
-87
-79
-97

query I rowsort
SELECT + 28 * + col2 FROM tab2 cor0
----
1120
1624
644

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 * - col2 AS col2 FROM tab1 AS cor0
----
-14
-4896
-47
-6188
-5
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col1 * + col1 + + col2 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT - + SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7910
SELECT - + SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - 28 * 61 FROM tab0
----
-1708
-1708
-1708

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT 35 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7912
SELECT 35 / col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 * col0 + - 1 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + - + col1 = NULL AND NULL < 51
----

query I rowsort
SELECT DISTINCT - col1 * - + 61 AS col0 FROM tab2
----
3111
4087
4697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 4 col2, 42 FROM tab0 AS cor0 WHERE NOT 53 / - + 7 + + + col2 IS NULL
----
4
42
4
42
4
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL ( col2 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7918
SELECT col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 + - + col0 FROM tab1 AS cor0
----
-12
-46
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL - - COUNT( col2 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN - ( - col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL - - COUNT ( col2 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN - ( - col0 ) AND NULL
----
0

query I rowsort
SELECT + 95 + - + 87 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT + + 28 + 19 + col2 + + + 7 * - 67 AS col0 FROM tab2 AS cor0
----
-364
-382
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7923
SELECT - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 28 + col0 FROM tab0
----
115
125
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + + 15 + - COUNT( * ) AS col1 FROM tab0 WHERE + 54 <= + + col1
----
14

skipif mysql # not compatible
query I rowsort label-7925
SELECT + + 15 + - COUNT ( * ) AS col1 FROM tab0 WHERE + 54 <= + + col1
----
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 96 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 - + + 24 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT ( + 7 ) AS col0 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + ( ( + ( col2 ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + ( ( + ( col2 ) ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 86 - + 81 + + 87 FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT col0 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT col0 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN + 1 + + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT DISTINCT 80 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT 80 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT col0, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + - col2 * + + col2 * - col2 FROM tab2 AS cor0
----
12167
195112
64000

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT - + COUNT( * ) * + 3 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7937
SELECT - + COUNT ( * ) * + 3 FROM tab0 cor0
----
-9

query II rowsort
SELECT ALL col1 AS col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ( + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7939
SELECT ( + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT ( - - AVG ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT ( - - AVG ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + - 62 ) * - 43 AS col1 FROM tab0
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col1 = + col0 * - - 85 * + 48
----
3

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col1 = + col0 * - - 85 * + 48
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7943
SELECT SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT + 74 * - + col2 * + + 90 * + ( + + 57 ) FROM tab0
----
-17842140
-37582380
-3796200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 50 col2 FROM tab2
----
2550
3350
3850

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT + MIN( col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7947
SELECT + MIN ( col2 ) AS col2 FROM tab2
----
23

query II rowsort
SELECT + 3 AS col2, 80 FROM tab0
----
3
80
3
80
3
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + 32 FROM tab0
----
1
32
21
32
81
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT COUNT( * ) * SUM( ALL - 65 ) FROM tab1
----
-585

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT COUNT ( * ) * SUM ( ALL - 65 ) FROM tab1
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT 73 DIV - + ( col1 ) FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-7951
SELECT 73 / - + ( col1 ) FROM tab1
----
-1
-14
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT ALL col1 DIV col1 * 13 FROM tab0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL col1 / col1 * 13 FROM tab0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col0 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT + 55 DIV + + COUNT( + col2 ) col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7954
SELECT + 55 / + + COUNT ( + col2 ) col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL col1 * + col2 * + - col0 + + - 7 + + 45 AS col1 FROM tab2 AS cor0
----
-197082
-291412
-53920

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT 35 DIV + - 4 + + + 44 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-7956
SELECT 35 / + - 4 + + + 44 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 < + + 43 * + + ( - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7958
SELECT - col1 + + CAST( NULL AS SIGNED ), - col1 * + col1 AS col0 FROM tab0
----
NULL
-1
NULL
-441
NULL
-6561

skipif mysql # not compatible
query II rowsort label-7958
SELECT - col1 + + CAST ( NULL AS INTEGER ), - col1 * + col1 AS col0 FROM tab0
----
NULL
-1
NULL
-441
NULL
-6561

query I rowsort
SELECT 93 + 81 AS col0 FROM tab2
----
174
174
174

query I rowsort
SELECT + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( ( + - col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-7963
SELECT - 8 DIV - col0 AS col2, - col1 * 8 * + col1 FROM tab2 AS cor0
----
0
-20808
0
-35912
0
-47432

skipif mysql # not compatible
query II rowsort label-7963
SELECT - 8 / - col0 AS col2, - col1 * 8 * + col1 FROM tab2 AS cor0
----
0
-20808
0
-35912
0
-47432

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT + - 3 + + - COUNT( * ) * 95 * COUNT( * ) col0 FROM tab0 cor0
----
-858

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7965
SELECT DISTINCT + - 3 + + - COUNT ( * ) * 95 * COUNT ( * ) col0 FROM tab0 cor0
----
-858

query I rowsort
SELECT - 1 - 95 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + 69 - - col2 FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT ALL - ( col2 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT COUNT( * ) + + - 77 AS col0 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-7969
SELECT COUNT ( * ) + + - 77 AS col0 FROM tab0
----
-74

query I rowsort
SELECT - 56 + - col2 FROM tab1
----
-115
-124
-152

query I rowsort
SELECT + col0 + + col2 * col0 - - col1 AS col0 FROM tab1
----
4961
5105
6326

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT - MAX( DISTINCT - 39 ) - + SUM( + col0 ) FROM tab0
----
-160

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - MAX ( DISTINCT - 39 ) - + SUM ( + col0 ) FROM tab0
----
-160

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col0 + + - ( + col0 ) + col2
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + col0 <> NULL
----

query I rowsort
SELECT DISTINCT col1 - - - col0 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL ( + col0 ) - + col2 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT MAX( - + 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7978
SELECT MAX ( - + 93 ) FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab1
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + ( + col2 ) ) / ( 39 ) * - - col1 < NULL
----

query I rowsort
SELECT DISTINCT - + 92 AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT ( + 42 ) AS col2 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT 52 * - col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 72 + + 44 / - 65 * - 46 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - - COUNT( DISTINCT + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7985
SELECT - - COUNT ( DISTINCT + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - 4 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7987
SELECT + col0 / - ( CAST( 68 AS SIGNED ) ), 4 AS col0 FROM tab0 AS cor0 WHERE + col2 <= NULL
----

skipif mysql # not compatible
query II rowsort label-7987
SELECT + col0 / - ( CAST ( 68 AS INTEGER ) ), 4 AS col0 FROM tab0 AS cor0 WHERE + col2 <= NULL
----

query I rowsort
SELECT + col0 * + 51 AS col2 FROM tab2
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL + 4 AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NULL <> col0 ) )
----

query I rowsort
SELECT 16 + + 94 AS col2 FROM tab2 cor0
----
110
110
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7993
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + - col1 <> ( - CAST( - + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + - col1 <> ( - CAST ( - + col0 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7994
SELECT + col2 + + col1 + CAST( - col2 AS DECIMAL ) + + - CAST( NULL AS SIGNED ) - col2 + + 86 * - 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + col2 + + col1 + CAST ( - col2 AS REAL ) + + - CAST ( NULL AS INTEGER ) - col2 + + 86 * - 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col0 + + 50 FROM tab2 AS cor0
----
2166
4146
5675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT ALL CAST( - col2 AS SIGNED ) * - + col1 * + - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL CAST ( - col2 AS INTEGER ) * - + col1 * + - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - 39 * ( + - col1 ) AS col1 FROM tab2 AS cor0
----
1989
2613
3003

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 * + + 79 + 20 > - + 37 )
----

query I rowsort
SELECT DISTINCT - + col0 + col0 + 67 FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL col0 + 57 AS col0 FROM tab0
----
144
154
72

query I rowsort
SELECT - + 52 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 52 - - ( - - 51 ) + - col1 * 94 AS col2 FROM tab2 WHERE NULL >= + col0
----

query I rowsort
SELECT DISTINCT + ( - 97 ) AS col1 FROM tab1
----
-97

query I rowsort
SELECT - - 11 / + col0 * col2 * - col1 * + - 56 AS col0 FROM tab1 WHERE NOT NULL = + - 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT ALL + col1 * - 27 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + col1 * - 27 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <> + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - + col0 > NULL
----

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT 48 AS col0, + COUNT( * ) FROM tab2
----
48
3

skipif mysql # not compatible
query II rowsort label-8013
SELECT 48 AS col0, + COUNT ( * ) FROM tab2
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT - MIN( + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8014
SELECT - MIN ( + col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
29

query I rowsort
SELECT col0 * + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 76 * - col1 FROM tab0 AS cor0
----
1596
6156
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT ALL col0 DIV + col1 + - + col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL col0 / + col1 + - + col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-57

query II rowsort
SELECT ALL col1, - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
14
-196
47
-2209
5
-25

query II rowsort
SELECT ALL + - col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 64 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab1
----
35
35
35

query I rowsort
SELECT DISTINCT col1 + + col1 * col1 FROM tab1
----
210
2256
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL - SUM( + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - SUM ( + col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT - col1 + 90 AS col2 FROM tab0
----
69
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) * COUNT( * ) - - + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - - + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - COUNT( + 71 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8030
SELECT - COUNT ( + 71 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT - MAX( DISTINCT + + ( + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8031
SELECT - MAX ( DISTINCT + + ( + col1 ) ) FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT ALL + col0 DIV col1 - + 18 FROM tab0 cor0
----
-14
-18
79

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + col0 / col1 - + 18 FROM tab0 cor0
----
-14
-18
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT ALL CAST( - col2 AS SIGNED ) * 37 - col1 FROM tab2 AS cor0
----
-1557
-2213
-902

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL CAST ( - col2 AS INTEGER ) * 37 - col1 FROM tab2 AS cor0
----
-1557
-2213
-902

query I rowsort
SELECT ALL + + col1 * - + 39 - - - col0 FROM tab1 cor0
----
-1924
-280
-597

query I rowsort
SELECT DISTINCT - + col1 * ( - 51 ) * 8 FROM tab0 AS cor0
----
33048
408
8568

query I rowsort
SELECT ALL 32 + + col0 FROM tab2 cor0
----
107
78
96

query I rowsort
SELECT - col0 * - + col0 * + col0 + + col0 FROM tab0 AS cor0
----
3390
658590
912770

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT + MIN( DISTINCT - 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT + MIN ( DISTINCT - 35 ) FROM tab1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8039
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + COUNT( * ) + + 2 FROM tab2 WHERE NOT ( + col1 IS NOT NULL )
----
2

skipif mysql # not compatible
query I rowsort label-8040
SELECT + COUNT ( * ) + + 2 FROM tab2 WHERE NOT ( + col1 IS NOT NULL )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8041
SELECT * FROM tab1 WHERE NOT + CAST( + + col2 AS SIGNED ) BETWEEN 77 * - + col1 AND - col2 + + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8041
SELECT * FROM tab1 WHERE NOT + CAST ( + + col2 AS INTEGER ) BETWEEN 77 * - + col1 AND - col2 + + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab2 WHERE - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL MAX( ALL + 59 ) * + + 21 FROM tab1
----
1239

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL MAX ( ALL + 59 ) * + + 21 FROM tab1
----
1239

query II rowsort
SELECT ALL 77 AS col1, + col2 AS col2 FROM tab2
----
77
23
77
40
77
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT 88 * MIN( DISTINCT + col1 ) FROM tab1 cor0
----
440

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT 88 * MIN ( DISTINCT + col1 ) FROM tab1 cor0
----
440

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT NULL >= 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT ALL - - CAST( NULL AS SIGNED ) / - 23 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 23 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) / - col2 * + + col1 + + col2 * - 1 NOT IN ( ( + ( - col2 ) ) + - col0 + - + 13, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT + + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) / - col2 * + + col1 + + col2 * - 1 NOT IN ( ( + ( - col2 ) ) + - col0 + - + 13, + col1 )
----
0

query I rowsort
SELECT 67 FROM tab2 WHERE NOT ( + 52 ) < - col2 AND NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 61 * - col2 AS col2 FROM tab2
----
-1403
-2440
-3538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT - col1 * + ( + col0 ) - + col1 + - col2 + - ( - ( CAST( + - col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-2466
-5109
-5225

skipif mysql # not compatible
query I rowsort label-8053
SELECT - col1 * + ( + col0 ) - + col1 + - col2 + - ( - ( CAST ( + - col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-2466
-5109
-5225

query I rowsort
SELECT - - col0 / + - col0 FROM tab2 AS cor0 WHERE NOT NULL > - col0
----

query I rowsort
SELECT + 44 * - 29 * + ( 64 ) AS col1 FROM tab0 AS cor0
----
-81664
-81664
-81664

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - 27 + MAX( ALL col1 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - 27 + MAX ( ALL col1 ) FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT ALL + col2 DIV + col0 + + + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + col2 / + col0 + + + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + 55 * + ( + 69 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3798

skipif mysql # not compatible
query I rowsort label-8058
SELECT + 55 * + ( + 69 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3798

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= 36 * - - col0 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + + col0 + - col1 + + - col1 + - + col2 AS col2 FROM tab2 cor0
----
-117
-130
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT ALL + 54 + 79 DIV 72 DIV col1 + + + 49 AS col1 FROM tab1 cor0
----
103
103
103

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + 54 + 79 / 72 / col1 + + + 49 AS col1 FROM tab1 cor0
----
103
103
103

query I rowsort
SELECT DISTINCT - 39 + + 9 AS col2 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL - MAX( + - col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - MAX ( + - col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT 65 * COUNT( * ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-8066
SELECT 65 * COUNT ( * ) FROM tab0
----
195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - 80 - col1 * - + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + col0 col0 FROM tab0 AS cor0
----
1335
7743
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT DISTINCT + - 61 * col2 * - - CAST( - col1 AS SIGNED ) + - 83 + + 13 AS col1 FROM tab2 AS cor0
----
187810
236976
71483

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + - 61 * col2 * - - CAST ( - col1 AS INTEGER ) + - 83 + + 13 AS col1 FROM tab2 AS cor0
----
187810
236976
71483

query I rowsort
SELECT - - col1 * + 13 / - + 94 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 45 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + col0 col1 FROM tab2 AS cor0
----
-1125
-690
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT + + ( MIN( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8074
SELECT + + ( MIN ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - COUNT( * ) + + + 21 AS col2 FROM tab1 AS cor0 WHERE NOT 96 * col1 + + - 76 * - col0 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-8075
SELECT - COUNT ( * ) + + + 21 AS col2 FROM tab1 AS cor0 WHERE NOT 96 * col1 + + - 76 * - col0 IS NULL
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 90 <> 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * + - col1 col1 FROM tab1 WHERE + col2 * + - 56 IS NOT NULL
----
-2444
-260
-728

query II rowsort
SELECT ALL - col0 AS col1, 75 AS col1 FROM tab1
----
-51
75
-85
75
-91
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col1, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT 45, col1 AS col1 FROM tab1 AS cor0
----
45
14
45
47
45
5

query II rowsort
SELECT col1 AS col2, - 19 * col0 + + col1 FROM tab1
----
14
-955
47
-1682
5
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL - COUNT( * ) * - - 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - COUNT ( * ) * - - 10 FROM tab2
----
-30

query I rowsort
SELECT - 80 * - col0 AS col1 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT DISTINCT 37 DIV COUNT( * ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT 37 / COUNT ( * ) FROM tab0 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT COUNT( * ) + + 1 - + 70 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT COUNT ( * ) + + 1 - + 70 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT ALL 89 AS col0 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT ALL - - COUNT( * ) DIV + COUNT( * ) col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8088
SELECT ALL - - COUNT ( * ) / + COUNT ( * ) col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 1 IS NOT NULL
----

query II rowsort
SELECT ALL - 50 AS col1, - 64 AS col0 FROM tab1 cor0
----
-50
-64
-50
-64
-50
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8091
SELECT ALL - 41 + + + col2 + - + 68 + - CAST( - - col1 AS SIGNED ) DIV 91 - + col2 * - 59 col1 FROM tab0 AS cor0
----
2711
491
5831

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8091
SELECT ALL - 41 + + + col2 + - + 68 + - CAST ( - - col1 AS INTEGER ) / 91 - + col2 * - 59 col1 FROM tab0 AS cor0
----
2711
491
5831

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col0 * - - col0 + + 32 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + ( 27 ) ) col1 FROM tab1
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8095
SELECT ALL - 37 * - col1 + + 19 DIV + 1 FROM tab2
----
1906
2498
2868

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - 37 * - col1 + + 19 / + 1 FROM tab2
----
1906
2498
2868

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT + col2 + - col1 DIV 62 FROM tab2
----
23
39
57

skipif mysql # not compatible
query I rowsort label-8096
SELECT + col2 + - col1 / 62 FROM tab2
----
23
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( * ) + - 94 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( * ) + - 94 FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL MIN( 88 ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL MIN ( 88 ) AS col2 FROM tab2
----
88

query I rowsort
SELECT col0 + - - col0 * + 8 FROM tab1
----
459
765
819

query I rowsort
SELECT DISTINCT + col2 * - + col0 + 77 * - col1 FROM tab0
----
-2487
-6942
-9680

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL < - 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + - col1 ) + - 82 + - 87 col0 FROM tab2 WHERE NULL IS NULL
----
-2770
-4658
-6098

query I rowsort
SELECT col1 + col1 + + ( + col0 ) + - 83 * + + 53 FROM tab0
----
-4222
-4270
-4300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8104
SELECT DISTINCT 80 * - CAST( NULL AS SIGNED ) - - col2 + 68 - col2 AS col1, + col2 - + 63 col1 FROM tab1 AS cor0
----
NULL
-4
NULL
33
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8104
SELECT DISTINCT 80 * - CAST ( NULL AS INTEGER ) - - col2 + 68 - col2 AS col1, + col2 - + 63 col1 FROM tab1 AS cor0
----
NULL
-4
NULL
33
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT ( 54 ) DIV + + col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8105
SELECT ( 54 ) / + + col0 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT - + MAX( DISTINCT + CAST( - col0 AS SIGNED ) ) FROM tab1 cor0 WHERE ( NULL ) <> 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT - + MAX ( DISTINCT + CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0 WHERE ( NULL ) <> 79
----
NULL

query I rowsort
SELECT ( + ( - col0 ) ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col2 FROM tab0 WHERE - ( - col1 ) > + - col0 + - - ( - + 86 )
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8109
SELECT + ( + 11 ) DIV - - SUM( + ( + - col1 ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( + 11 ) / - - SUM ( + ( + - col1 ) ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN + ( - col1 ) AND col0 * + 40 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( 47 ) AS col0 FROM tab2 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col1 FROM tab1 cor0
----
-29

query II rowsort
SELECT - col0, + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-51
1344
-85
295
-91
3196

query I rowsort
SELECT - + ( + - 0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 44 * + 71 * 48 AS col0 FROM tab1 AS cor0
----
149952
149952
149952

query I rowsort
SELECT + ( + 27 ) AS col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT NULL = - col1 * + + 53
----

query II rowsort
SELECT DISTINCT col2 AS col1, 99 FROM tab2 AS cor0
----
23
99
40
99
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT + SUM( DISTINCT + 19 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT + SUM ( DISTINCT + 19 ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT - 57 * col0 AS col2 FROM tab1
----
-2907
-4845
-5187

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE col1 NOT IN ( + col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL COUNT( * ) * SUM( + col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL COUNT ( * ) * SUM ( + col2 ) FROM tab2
----
363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab0
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT DISTINCT CAST( ( - 14 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT CAST ( ( - 14 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT - MIN( + - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - MIN ( + - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8126
SELECT ALL + 3 + 30 * - - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + 3 + 30 * - - COUNT ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL - + COUNT( - - col1 ) * 6 + MAX( - ( + + 72 ) ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - + COUNT ( - - col1 ) * 6 + MAX ( - ( + + 72 ) ) FROM tab0 AS cor0
----
-90

query I rowsort
SELECT col1 * - col0 * - col1 + + col0 AS col2 FROM tab2 WHERE NOT - 99 IS NULL
----
119692
336750
379520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT - col1 + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND - 55
----

skipif mysql # not compatible
query I rowsort label-8129
SELECT - col1 + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT 18 + - + COUNT( * ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8130
SELECT 18 + - + COUNT ( * ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - COUNT( * ) + + 33 AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8131
SELECT - COUNT ( * ) + + 33 AS col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT + MIN( ALL + 34 ) DIV - + COUNT( * ) + 85 * + COUNT( * ) * COUNT( ALL + col2 ) + 96 col2 FROM tab2 AS cor0
----
850

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8133
SELECT + MIN ( ALL + 34 ) / - + COUNT ( * ) + 85 * + COUNT ( * ) * COUNT ( ALL + col2 ) + 96 col2 FROM tab2 AS cor0
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT - - SUM( - - 15 ) AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - - SUM ( - - 15 ) AS col2 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - - 59 AS col1 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8137
SELECT ALL - col1 DIV - - 66 * col1 + + col1 + + col1 * 57 * 45 * - col0, 19 AS col1 FROM tab1 AS cor0
----
-1090120
19
-10970458
19
-1831396
19

skipif mysql # not compatible
query II rowsort label-8137
SELECT ALL - col1 / - - 66 * col1 + + col1 + + col1 * 57 * 45 * - col0, 19 AS col1 FROM tab1 AS cor0
----
-1090120
19
-10970458
19
-1831396
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT - SUM( + ( - 74 ) ) AS col0 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT - SUM ( + ( - 74 ) ) AS col0 FROM tab1 AS cor0
----
222

query I rowsort
SELECT DISTINCT - col0 + - 75 FROM tab0
----
-162
-172
-90

query I rowsort
SELECT DISTINCT 49 + + + col0 * + - ( + col2 ) FROM tab2
----
-1009
-2511
-4301

query I rowsort
SELECT ALL + 91 * col2 + + + col2 AS col2 FROM tab2
----
2116
3680
5336

query I rowsort
SELECT - 25 - + + col0 AS col1 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT 16 + + MIN( - col0 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT 16 + + MIN ( - col0 ) FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT MAX( - + col2 ), ( + COUNT( * ) ) + + 37 AS col1 FROM tab0
----
-10
40

skipif mysql # not compatible
query II rowsort label-8144
SELECT MAX ( - + col2 ), ( + COUNT ( * ) ) + + 37 AS col1 FROM tab0
----
-10
40

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - 35 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col1 * + - 52 FROM tab2 WHERE NOT NULL >= 43
----

query I rowsort
SELECT - 62 * col1 AS col0 FROM tab0
----
-1302
-5022
-62

query III rowsort
SELECT DISTINCT 2 * + col2 AS col2, col2 + + col0, - + ( col2 ) AS col0 FROM tab1
----
9 values hashing to 5399d3b65f346712e2b8c62b91e62cc9

query I rowsort
SELECT 61 FROM tab0 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 * col1 + 74 FROM tab2 AS cor0
----
-2272
-4854
-4951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, + col0 col0 FROM tab2 WHERE 71 < - - 17
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT + COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT - 67 + + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT - 67 + + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

query II rowsort
SELECT ALL - col2 AS col0, + 22 FROM tab1
----
-59
22
-68
22
-96
22

query I rowsort
SELECT 97 * 18 AS col0 FROM tab0
----
1746
1746
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - col2 col0 FROM tab0
----
-1786
-3762
-380

query I rowsort
SELECT ALL - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + 35 * - ( - col2 ) FROM tab0
----
1645
3465
350

query I rowsort
SELECT + col1 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT MAX( DISTINCT - col1 ) / COUNT( * ) AS col2 FROM tab0 WHERE NOT ( + CAST( 63 AS SIGNED ) ) NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT MAX ( DISTINCT - col1 ) / COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( + CAST ( 63 AS INTEGER ) ) NOT IN ( + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - col2 < col0 + - 48
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - MIN( ALL col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8163
SELECT - MIN ( ALL col0 ) FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + col1 NOT BETWEEN ( 15 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL MIN( DISTINCT col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL MIN ( DISTINCT col0 ) FROM tab1
----
51

query I rowsort
SELECT col1 + - 32 FROM tab2
----
19
35
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 WHERE NULL >= ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT MAX( DISTINCT col0 ) DIV - MAX( DISTINCT - col0 * col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8168
SELECT MAX ( DISTINCT col0 ) / - MAX ( DISTINCT - col0 * col1 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN NULL AND 18 + - 81
----

query I rowsort
SELECT DISTINCT 79 * col0 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT DISTINCT + col0 + 93 * col1 AS col1 FROM tab1
----
1353
4462
550

query I rowsort
SELECT 35 * 89 FROM tab0
----
3115
3115
3115

query I rowsort
SELECT col2 * + 18 AS col2 FROM tab1
----
1062
1224
1728

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT 21 AS col1 FROM tab1 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - 97 * COUNT( * ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 97 * COUNT ( * ) AS col2 FROM tab0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT + COUNT( * ) + + 33 AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8178
SELECT + COUNT ( * ) + + 33 AS col1 FROM tab2
----
36

query I rowsort
SELECT + 87 * + col0 FROM tab0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - 87 * COUNT( * ) AS col0 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-8180
SELECT - 87 * COUNT ( * ) AS col0 FROM tab0
----
-261

query I rowsort
SELECT col1 + 1 AS col2 FROM tab0 WHERE NOT - col2 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT ALL + 4 DIV - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 4 / - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + 79 * COUNT( * ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-8184
SELECT + 79 * COUNT ( * ) FROM tab2
----
237

query I rowsort
SELECT 11 FROM tab0 WHERE NOT ( NULL ) = ( - 48 * col1 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8186
SELECT * FROM tab0 cor0 WHERE NOT - CAST( + col1 AS SIGNED ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8186
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( + col1 AS INTEGER ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT DISTINCT 49 DIV COUNT( * ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT 49 / COUNT ( * ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8188
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 34 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + CAST ( NULL AS REAL ) * 34 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col2 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL - + MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - + MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 45 * 65 AS col1 FROM tab2
----
-2925
-2925
-2925

query I rowsort
SELECT 28 * + col1 * ( + 25 ) AS col0 FROM tab2
----
35700
46900
53900

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT COUNT( + 95 ) AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND 97
----
0

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT COUNT ( + 95 ) AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND 97
----
0

query I rowsort
SELECT + 12 * col1 FROM tab0
----
12
252
972

query I rowsort
SELECT ALL - ( + 31 ) * col1 FROM tab1
----
-1457
-155
-434

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col1 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( - ( 44 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 0 * col2 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 NOT IN ( + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( + col0 * 50 - - col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 WHERE NOT ( + col1 ) >= + col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8204
SELECT * FROM tab2 WHERE - col1 <= ( - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8204
SELECT * FROM tab2 WHERE - col1 <= ( - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT col2 + + 54 * + col2 AS col1 FROM tab0 WHERE ( NOT col2 + + CAST( 43 AS SIGNED ) IS NULL )
----
2585
5445
550

skipif mysql # not compatible
query I rowsort label-8205
SELECT col2 + + 54 * + col2 AS col1 FROM tab0 WHERE ( NOT col2 + + CAST ( 43 AS INTEGER ) IS NULL )
----
2585
5445
550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col2 + - 59
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 3 + + 70 * + col2 col1 FROM tab1 AS cor0 WHERE - 12 * - - ( col0 ) IN ( - 48 * - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - 94 - + 37 + - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
-131

skipif mysql # not compatible
query I rowsort label-8209
SELECT - 94 - + 37 + - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
-131

query I rowsort
SELECT 17 * - col1 AS col2 FROM tab1 AS cor0
----
-238
-799
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL + + AVG ( DISTINCT + col2 ) + + CAST( NULL AS SIGNED ) + 87 / - 87 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + + AVG ( DISTINCT + col2 ) + + CAST ( NULL AS INTEGER ) + 87 / - 87 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT DISTINCT - 45 + + 50 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - 45 + + 50 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 + - + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + 1 * + 13 + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * col0 + + - 31 FROM tab1
----
4865
4984
6157

query I rowsort
SELECT - 57 - - 97 FROM tab0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL MIN( ALL - - col2 ) - + ( COUNT( * ) ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL MIN ( ALL - - col2 ) - + ( COUNT ( * ) ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - COUNT( * ) - 61 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-8218
SELECT - COUNT ( * ) - 61 FROM tab0
----
-64

query I rowsort
SELECT - 71 * 73 + - col0 * col1 FROM tab1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col1 * + 69 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8221
SELECT + 66 * + col1 AS col0, col1 DIV - col2 AS col0 FROM tab2 AS cor0
----
3366
-2
4422
-1
5082
-1

skipif mysql # not compatible
query II rowsort label-8221
SELECT + 66 * + col1 AS col0, col1 / - col2 AS col0 FROM tab2 AS cor0
----
3366
-2
4422
-1
5082
-1

query I rowsort
SELECT DISTINCT 79 * - col0 AS col1 FROM tab2 AS cor0
----
-3634
-5056
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 97 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col2 - + - col0 * + - ( - 67 ) * + col0 AND NULL
----

query I rowsort
SELECT - col1 * - - ( - col1 ) FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8226
SELECT CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col2 ) ) col0 FROM tab2 AS cor0 WHERE ( 47 + - col1 - + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT - MAX( col0 ) DIV 67 * + 86 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8229
SELECT - MAX ( col0 ) / 67 * + 86 FROM tab1 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT col1 DIV col0 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT col1 / col0 AS col2 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - - col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 47 + col0 * - 19 FROM tab1 AS cor0
----
-1016
-1662
-1776

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col2 + - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 * - col2 * 13 AS col2 FROM tab1
----
1677312
226265
2825264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8236
SELECT col1 DIV + CAST( + - 70 AS SIGNED ) col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8236
SELECT col1 / + CAST ( + - 70 AS INTEGER ) col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col2 * + - col0 + col2 - col1 * 22 NOT IN ( - 40 + - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 11 col2 FROM tab0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + SUM( 11 ) * + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8239
SELECT + SUM ( 11 ) * + COUNT ( * ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 * - + 46 * col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + - 82 + 44 + COUNT( * ) * + 11 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + - 82 + 44 + COUNT ( * ) * + 11 FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8242
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 28 - 28 AS col0 FROM tab1 WHERE + col1 IN ( + col2 * 36, - col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT col2 * 50 AS col1 FROM tab1 AS cor0
----
2950
3400
4800

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( 46 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL ( + - 43 ) + + 62 * + + 48 FROM tab1 AS cor0
----
2933
2933
2933

query I rowsort
SELECT - 2 + ( - 81 ) - + 94 AS col2 FROM tab0 AS cor0
----
-177
-177
-177

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 * - ( col1 ) - - col1 * - + col1 NOT BETWEEN ( NULL ) AND + 74 - - col2
----

query II rowsort
SELECT DISTINCT + col2 + 1 AS col0, col1 + 92 + - 94 + - 34 * col0 * + col0 - col0 * + col2 FROM tab0 AS cor0
----
100
-329510
11
-258197
48
-8276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) - + col1 / - + 41 + - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) - + col1 / - + 41 + - col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL >= col1 + - 66 + + col2 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col2 * - + col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT COUNT( ALL + 71 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8256
SELECT COUNT ( ALL + 71 ) FROM tab2
----
3

query I rowsort
SELECT ALL - 64 * - col2 * + col0 AS col1 FROM tab1
----
313344
320960
396032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) * + col2 * ( - 89 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) * + col2 * ( - 89 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8259
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT - CAST( 4 AS SIGNED ) col2 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT - CAST ( 4 AS INTEGER ) col2 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT COUNT ( col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT ( ( NOT - col0 IS NOT NULL ) )
----
-51
-85
-91

query II rowsort
SELECT ALL + col1 * col1 AS col2, - 22 AS col0 FROM tab2
----
2601
-22
4489
-22
5929
-22

query I rowsort
SELECT DISTINCT - ( - - col0 ) * + 53 * + - col1 AS col0 FROM tab1
----
22525
226681
37842

query I rowsort
SELECT + 95 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8266
SELECT + CAST( NULL AS DECIMAL ) + - + 99 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT + CAST ( NULL AS REAL ) + - + 99 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL ) OR NOT + col0 - - + col0 + - col0 NOT IN ( + 63 + - col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + + col0 + + + col2 FROM tab0 AS cor0
----
-178
-7559
-9310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + + 98 col0 FROM tab1
----
60
60
60

query I rowsort
SELECT ALL - 1 * + - 73 * 74 + col0 FROM tab2
----
5448
5466
5477

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT ALL - col0 DIV - 61 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - col0 / - 61 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + 12 ) / - col1 + + - 43 * 70 + 37 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT - + 21 FROM tab0 WHERE - 35 / + - col0 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT - col2 * - + 14 + - + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + COUNT( - col0 ) * - ( - - 22 ) * + - 48 * - MAX( + - col0 ) FROM tab1
----
161568

skipif mysql # not compatible
query I rowsort label-8277
SELECT + COUNT ( - col0 ) * - ( - - 22 ) * + - 48 * - MAX ( + - col0 ) FROM tab1
----
161568

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col1 ) + + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= 44 * - ( - - ( + 36 ) ) / + - col1
----

query I rowsort
SELECT ALL 10 * + col0 + - - col1 FROM tab1 AS cor0
----
524
855
957

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + 55
----

query III rowsort
SELECT * FROM tab2 WHERE + + col2 * - - col1 BETWEEN 59 * + col2 AND + + 35 * + col2
----

query I rowsort
SELECT DISTINCT - 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-74

query I rowsort
SELECT + - col2 + - - 90 AS col1 FROM tab2 AS cor0
----
32
50
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8285
SELECT + 9, MAX( DISTINCT 28 ) * 44 AS col0 FROM tab1 AS cor0
----
9
1232

skipif mysql # not compatible
query II rowsort label-8285
SELECT + 9, MAX ( DISTINCT 28 ) * 44 AS col0 FROM tab1 AS cor0
----
9
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-8286
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8286
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - 65 * - - 15 AS col1 FROM tab0 AS cor0
----
-975

query I rowsort
SELECT DISTINCT + - 52 - + col1 + + - col2 FROM tab1 AS cor0
----
-116
-162
-167

query I rowsort
SELECT ( + 85 ) AS col2 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL 48 * - 94 * - col0 * 14 AS col2 FROM tab0
----
5495616
6127296
947520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT - CAST( NULL AS SIGNED ) / + AVG ( DISTINCT + - 23 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT - CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT + - 23 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 78 * - col2 * - col2 FROM tab2 AS cor0
----
124800
262392
41262

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 BETWEEN 76 * - + 64 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT + + COUNT( - col2 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + + COUNT ( - col2 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 * - - col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8298
SELECT - CAST( NULL AS SIGNED ), + SUM( DISTINCT - col1 ) col0 FROM tab0 AS cor0
----
NULL
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8298
SELECT - CAST ( NULL AS INTEGER ), + SUM ( DISTINCT - col1 ) col0 FROM tab0 AS cor0
----
NULL
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT - 76 DIV + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT - 76 / + col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8300
SELECT DISTINCT - col0 * - + col0 * - + 60 AS col0, col2 + ( - col1 ) + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE ( - - 47 + - col0 + - ( + + col2 ) * - + col2 IS NULL )
----

skipif mysql # not compatible
query II rowsort label-8300
SELECT DISTINCT - col0 * - + col0 * - + 60 AS col0, col2 + ( - col1 ) + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE ( - - 47 + - col0 + - ( + + col2 ) * - + col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8301
SELECT ALL + - col2 AS col1, - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE - 50 IS NULL
----

skipif mysql # not compatible
query II rowsort label-8301
SELECT ALL + - col2 AS col1, - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE - 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT ( CAST( col1 AS SIGNED ) ) DIV + - col0 + + col1 AS col0 FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT ( CAST ( col1 AS INTEGER ) ) / + - col0 + + col1 AS col0 FROM tab0 AS cor0
----
1
21
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 13 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT COUNT( * ) * SUM( ALL + col0 ) AS col2 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-8304
SELECT COUNT ( * ) * SUM ( ALL + col0 ) AS col2 FROM tab0
----
597

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + + col1 + - col2 * - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT col0 * - - col1 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + 70 + 63 * COUNT( * ) AS col2 FROM tab2
----
259

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + 70 + 63 * COUNT ( * ) AS col2 FROM tab2
----
259

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8308
SELECT - - col1 + - col2 - - 33 * - CAST( NULL AS DECIMAL ) + + 53 AS col1 FROM tab1 WHERE - CAST( 96 AS DECIMAL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT - - col1 + - col2 - - 33 * - CAST ( NULL AS REAL ) + + 53 AS col1 FROM tab1 WHERE - CAST ( 96 AS REAL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = - col0 + - - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT + 52 * - COUNT( - 37 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + 52 * - COUNT ( - 37 ) FROM tab1 AS cor0
----
-156

query I rowsort
SELECT ALL - 65 * - 66 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 53c796361e2ecb70116ee451bbe79638

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT 16 AS col2, SUM( DISTINCT + 16 ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
16
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8313
SELECT 16 AS col2, SUM ( DISTINCT + 16 ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
16
16

query I rowsort
SELECT + col2 / - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 6 AS col1 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT - 39 * col2 FROM tab2 cor0
----
-1560
-2262
-897

query II rowsort
SELECT 31 AS col0, - col0 FROM tab0 AS cor0
----
31
-15
31
-87
31
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 64 ) col0 FROM tab1
----
64

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + + col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab1 WHERE + 73 <= ( - ( - col0 ) + + 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1, - col1, col2 col0 FROM tab1 AS cor0
----
9 values hashing to cc24c13903ba6a55b8950e718e7de8eb

query II rowsort
SELECT - col2 AS col1, - 13 * + 59 FROM tab1 AS cor0
----
-59
-767
-68
-767
-96
-767

query II rowsort
SELECT + col0, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT COUNT( * ) / - 33 + - - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT COUNT ( * ) / - 33 + - - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 74 + - col2, col2 AS col0 FROM tab2 AS cor0
----
16
58
34
40
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT - - 79 + col1 * col0 + + col0 + + ( + - col0 ) DIV 41 AS col2 FROM tab1 AS cor0
----
4445
587
843

skipif mysql # not compatible
query I rowsort label-8331
SELECT - - 79 + col1 * col0 + + col0 + + ( + - col0 ) / 41 AS col2 FROM tab1 AS cor0
----
4445
587
843

query I rowsort
SELECT ALL - - col1 + + - col1 * + col1 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT - col0 + + - ( 76 ) FROM tab1 WHERE NULL IS NULL
----
-127
-161
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-8334
SELECT DISTINCT ( + - COUNT( * ) ), 48 AS col1 FROM tab0, tab0 AS cor0
----
-9
48

skipif mysql # not compatible
query II rowsort label-8334
SELECT DISTINCT ( + - COUNT ( * ) ), 48 AS col1 FROM tab0, tab0 AS cor0
----
-9
48

query I rowsort
SELECT DISTINCT col0 + - + 57 FROM tab0
----
-42
30
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL - 36 + - + COUNT( * ) AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL - 36 + - + COUNT ( * ) AS col1 FROM tab2
----
-39

query III rowsort
SELECT * FROM tab1 WHERE - 32 < - col0 + - 46 * + col1
----

query I rowsort
SELECT ALL + col1 * 47 * - 0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 79 AS col2 FROM tab1 cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT DISTINCT + - col1 * - 0 * CAST( - 36 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT + - col1 * - 0 * CAST ( - 36 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - - - ( - - col1 ) + - 20 + col2 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8342
SELECT ALL + + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8342
SELECT ALL + + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT col1 + + col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT - + CAST( 21 AS SIGNED ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - + CAST ( 21 AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8346
SELECT - 17 * + col0 * - 4 + CAST( NULL AS DECIMAL ) AS col2, + col1 DIV - ( - - 46 ) + col0 col2 FROM tab2 AS cor0
----
NULL
45
NULL
63
NULL
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8346
SELECT - 17 * + col0 * - 4 + CAST ( NULL AS REAL ) AS col2, + col1 / - ( - - 46 ) + col0 col2 FROM tab2 AS cor0
----
NULL
45
NULL
63
NULL
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col1 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) <> ( 8 ) )
----

query I rowsort
SELECT ALL - 1 * col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT DISTINCT + - 9 DIV + - col1 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8350
SELECT DISTINCT + - 9 / + - col1 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 * - + col1 + + + 3 / + col2 FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * + - 23 AS col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT 50 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT 50 / - + col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT 29 DIV + col1 * col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT 29 / + col1 * col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query III rowsort label-8355
SELECT DISTINCT - + 82 AS col0, - COUNT( * ) * - + COUNT( * ) AS col2, - COUNT( + ( - - 42 ) ) * COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
-82
9
-6

skipif mysql # not compatible
query III rowsort label-8355
SELECT DISTINCT - + 82 AS col0, - COUNT ( * ) * - + COUNT ( * ) AS col2, - COUNT ( + ( - - 42 ) ) * COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
-82
9
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL + + col2 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + + col2 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 BETWEEN NULL AND ( + col1 ) + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8358
SELECT DISTINCT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 66 - 25 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT SUM( DISTINCT - 66 ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT SUM ( DISTINCT - 66 ) AS col1 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT col0 * + col1 * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 - + - col1 FROM tab1 cor0
----
10
28
94

query II rowsort
SELECT - 75 * - 28 + - + col1 - + + col2, - 72 * + 60 + + col2 AS col2 FROM tab2 AS cor0
----
1975
-4262
1983
-4280
2026
-4297

query I rowsort
SELECT DISTINCT + 71 * - 93 + - - col0 * + - col0 + col2 AS col0 FROM tab2
----
-10659
-12170
-8696

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT - 25 DIV - col2 + - 40 - - col0 + + - col2 * - col0 * + 28 AS col2 FROM tab2
----
121835
29631
71704

skipif mysql # not compatible
query I rowsort label-8365
SELECT - 25 / - col2 + - 40 - - col0 + + - col2 * - col0 * + 28 AS col2 FROM tab2
----
121835
29631
71704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT DISTINCT - CAST( - 24 AS SIGNED ) + 41 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - CAST ( - 24 AS INTEGER ) + 41 FROM tab2
----
65

query I rowsort
SELECT 14 * 25 + + + col1 FROM tab2
----
401
417
427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT CAST( NULL AS SIGNED ) + + ( + - col0 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8368
SELECT CAST ( NULL AS INTEGER ) + + ( + - col0 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 15 * + col0 * + 38 AS col1 FROM tab1 WHERE - col1 <= - col1
----
2790720
2858550
3527160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8370
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 4 AND + - CAST( NULL AS SIGNED ) + col0 - - 58
----

skipif mysql # not compatible
query III rowsort label-8370
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 4 AND + - CAST ( NULL AS INTEGER ) + col0 - - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8371
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) / - - 76 * col0 + + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8371
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) / - - 76 * col0 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - COUNT( * ) * 62 * - - 11 - COUNT( * ) AS col1 FROM tab0
----
-2049

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - COUNT ( * ) * 62 * - - 11 - COUNT ( * ) AS col1 FROM tab0
----
-2049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * - 35 col1 FROM tab2
----
-3045

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 96 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT SUM( - - 84 ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-8375
SELECT SUM ( - - 84 ) FROM tab2
----
252

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8376
SELECT ALL * FROM tab0 WHERE + col0 + + ( 56 ) - + col2 - CAST( NULL AS DECIMAL ) NOT BETWEEN + 83 + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8376
SELECT ALL * FROM tab0 WHERE + col0 + + ( 56 ) - + col2 - CAST ( NULL AS REAL ) NOT BETWEEN + 83 + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE col1 BETWEEN col0 AND - col2 * - + col1 + col2
----
-46
-64

query I rowsort
SELECT DISTINCT - 53 * - col0 FROM tab0 AS cor0
----
4611
5141
795

query I rowsort
SELECT ALL - ( + - col0 ) * - 65 + col0 + + col1 FROM tab1 AS cor0 WHERE NOT + 80 + col1 + ( + - col2 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT + - col2 + col1 + - + col2 AS col0, ( - col0 ) FROM tab2 AS cor0 WHERE NOT col2 * + + 19 - - 32 * + col1 IS NOT NULL
----

query I rowsort
SELECT - - ( + - col0 ) AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 * + 63 * - 75 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT - + 23 / col1 + + ( col1 ) AS col1, col1 - - + 32 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 79 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 79 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT ALL - col0 DIV - - 86 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL - col0 / - - 86 AS col0 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / - - col1 <> NULL AND ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT - SUM( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - SUM ( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ( - COUNT( * ) ) + + ( - + MIN( - col1 ) ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8389
SELECT ( - COUNT ( * ) ) + + ( - + MIN ( - col1 ) ) FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT ALL + - 9 col1, MIN( col2 ) FROM tab1 cor0
----
-9
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8390
SELECT ALL + - 9 col1, MIN ( col2 ) FROM tab1 cor0
----
-9
59

query I rowsort
SELECT + col2 - 21 AS col0 FROM tab1 AS cor0 WHERE col2 * col0 IS NOT NULL
----
38
47
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8392
SELECT col0 * + - col2 + - CAST( NULL AS SIGNED ) AS col2, 4 FROM tab0 AS cor0
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-8392
SELECT col0 * + - col2 + - CAST ( NULL AS INTEGER ) AS col2, 4 FROM tab0 AS cor0
----
NULL
4
NULL
4
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT ( + col2 ) DIV 8 AS col0 FROM tab1 AS cor0
----
12
7
8

skipif mysql # not compatible
query I rowsort label-8393
SELECT ( + col2 ) / 8 AS col0 FROM tab1 AS cor0
----
12
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + + col2 col1 FROM tab2 AS cor0
----
110
128
93

query I rowsort
SELECT DISTINCT - col0 * + col1 - 18 AS col1 FROM tab2
----
-2364
-4946
-5043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) - 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) - 36 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col1 FROM tab0
----
88
88
88

query II rowsort
SELECT ALL col1 AS col2, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT - col1 * - - col1 * 38 - + 74 + ( - + col1 ) DIV - col0 FROM tab0 AS cor0
----
-112
-16832
-249387

skipif mysql # not compatible
query I rowsort label-8399
SELECT - col1 * - - col1 * 38 - + 74 + ( - + col1 ) / - col0 FROM tab0 AS cor0
----
-112
-16832
-249387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - - - col2 * + - 96 col1 FROM tab2 AS cor0
----
2231
3880
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - - 16 + + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
7

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - - 16 + + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
7

query I rowsort
SELECT DISTINCT col2 * - 11 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-253
-440
-638

query I rowsort
SELECT ALL + 20 * + col2 FROM tab2
----
1160
460
800

query III rowsort
SELECT * FROM tab0 WHERE NOT 85 < - col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + - 88 AS col1 FROM tab2
----
-4488
-5896
-6776

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT COUNT( * ) AS col2, - 40 - 88 AS col0 FROM tab1
----
3
-128

skipif mysql # not compatible
query II rowsort label-8406
SELECT COUNT ( * ) AS col2, - 40 - 88 AS col0 FROM tab1
----
3
-128

query I rowsort
SELECT col1 * - - col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL 29 * + 7 FROM tab1
----
203
203
203

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8410
SELECT ALL CAST( + col0 AS SIGNED ) + + col1 AS col1, col1 AS col2 FROM tab0 cor0
----
108
21
96
81
98
1

skipif mysql # not compatible
query II rowsort label-8410
SELECT ALL CAST ( + col0 AS INTEGER ) + + col1 AS col1, col1 AS col2 FROM tab0 cor0
----
108
21
96
81
98
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ( - MAX( - ( col2 ) ) ) * + + COUNT( * ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8412
SELECT ( - MAX ( - ( col2 ) ) ) * + + COUNT ( * ) AS col0 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT - 64 + - + col2 DIV - ( + 53 ) - col0 FROM tab2 AS cor0
----
-110
-128
-138

skipif mysql # not compatible
query I rowsort label-8413
SELECT - 64 + - + col2 / - ( + 53 ) - col0 FROM tab2 AS cor0
----
-110
-128
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 70 + - + 33 * + + COUNT( * ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8414
SELECT 70 + - + 33 * + + COUNT ( * ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT + col2 + + - col0 - - ( + col2 ) * - + 21 * - + col1 + + - 32 AS col0 FROM tab2 AS cor0
----
24578
64624
81557

query I rowsort
SELECT DISTINCT + 79 + - col0 * col0 FROM tab2 AS cor0
----
-2037
-4017
-5546

onlyif mysql # DIV for integer division: 
query II rowsort label-8417
SELECT 64 + 10 DIV + 9, - ( + + col1 ) + + - col1 AS col1 FROM tab0
----
65
-162
65
-2
65
-42

skipif mysql # not compatible
query II rowsort label-8417
SELECT 64 + 10 / + 9, - ( + + col1 ) + + - col1 AS col1 FROM tab0
----
65
-162
65
-2
65
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT COUNT( * ) + + - COUNT( * ) * - 87 FROM tab2, tab1 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-8419
SELECT COUNT ( * ) + + - COUNT ( * ) * - 87 FROM tab2, tab1 AS cor0
----
792

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - col2
----

query III rowsort
SELECT * FROM tab1 WHERE + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL - MIN( - + 2 ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL - MIN ( - + 2 ) FROM tab1 cor0
----
2

query I rowsort
SELECT - col1 * 90 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT + - 1 * + 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query II rowsort
SELECT col2 AS col0, ( - 83 ) FROM tab0
----
10
-83
47
-83
99
-83

query I rowsort
SELECT + col0 * + ( - col0 ) FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 <= - 88 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8428
SELECT - - 65 AS col2, COUNT( * ) / MAX( ALL - col1 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-8428
SELECT - - 65 AS col2, COUNT ( * ) / MAX ( ALL - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
65
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 + + col0 ) >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 62 ) AS col0 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0 + - + col2 + + col2
----

query II rowsort
SELECT ALL - col2 AS col1, col0 * + col1 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL + COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL 35 AS col0, col2 FROM tab2 AS cor0
----
35
23
35
40
35
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT - CAST( 0 AS SIGNED ) + + 9 AS col2 FROM tab2 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8437
SELECT - CAST ( 0 AS INTEGER ) + + 9 AS col2 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT + - col2 * + 80 + col1 FROM tab1 cor0
----
-4715
-5393
-7666

query I rowsort
SELECT + - 56 + + - col0 FROM tab2 AS cor0
----
-102
-120
-131

query I rowsort
SELECT DISTINCT + ( - 29 ) + + col2 + - col0 - - col2 * + col2 FROM tab1
----
3426
4572
9232

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 2 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8442
SELECT 17 * + 5 + - - col0 + + col1, - 61 + - col0 * - + CAST( + + col1 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL <> col2 / 96
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8442
SELECT 17 * + 5 + - - col0 + + col1, - 61 + - col0 * - + CAST ( + + col1 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL <> col2 / 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL COUNT( col0 ) * - 75 AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL COUNT ( col0 ) * - 75 AS col2 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 65 * - col2 FROM tab1 AS cor0
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL + - SUM( DISTINCT - - col1 ) FROM tab1 cor0 WHERE + 14 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL + - SUM ( DISTINCT - - col1 ) FROM tab1 cor0 WHERE + 14 IS NOT NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT ALL - 81 + col1 - + - col1 * CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - 81 + col1 - + - col1 * CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8449
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8449
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8450
SELECT 59 + + CAST( NULL AS DECIMAL ) * - MIN( ALL - - 60 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT 59 + + CAST ( NULL AS REAL ) * - MIN ( ALL - - 60 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 70 * + + col0 FROM tab0 AS cor0
----
-1050
-6090
-6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 * - + 60 col2 FROM tab2 AS cor0
----
-3060
-3060
-3060

query I rowsort
SELECT ALL col0 * + col1 * + - col0 * + - 15 AS col1 FROM tab1 AS cor0
----
541875
546210
5838105

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT MAX ( - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL col1 + 29 FROM tab2
----
106
80
96

query I rowsort
SELECT ALL col2 * - - col1 * + 35 + + + col2 FROM tab0 WHERE 33 < NULL
----

query I rowsort
SELECT ALL - ( ( + 60 ) ) AS col0 FROM tab1
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 38 col2 FROM tab0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL - MIN( + col2 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - MIN ( + col2 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > col1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0 / ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - COUNT( ALL - 41 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8461
SELECT - COUNT ( ALL - 41 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= col1 / - col1 + 43 * + ( 29 ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 62 col2 FROM tab1 AS cor0
----
62
62
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT ALL - 7 DIV + 9 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - 7 / + 9 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT ALL + - COUNT( col0 ) DIV + 49 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + - COUNT ( col0 ) / + 49 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT - col1 * 57 FROM tab2
----
-2907
-3819
-4389

query II rowsort
SELECT DISTINCT + 85 * ( - + 37 ), 32 AS col0 FROM tab1
----
-3145
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8472
SELECT COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT + ( col2 ) * col1 + - col0 FROM tab0
----
123
2
3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL - + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT - MIN( + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8475
SELECT - MIN ( + col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - + ( 75 )
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT 54 * + col2 + - col2 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT DISTINCT - ( + SUM( ALL - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - ( + SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 + + - ( - 50 ) FROM tab2
----
37
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL 37 + MIN( - 89 ) AS col1 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL 37 + MIN ( - 89 ) AS col1 FROM tab1
----
-52

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT - COUNT( ALL + + col2 ) + + 81 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - COUNT ( ALL + + col2 ) + + 81 FROM tab1
----
78

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE + + 41 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT ALL + ( + 28 ) AS col1, - col0 AS col2 FROM tab0
----
28
-15
28
-87
28
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT 62 + + + SUM( ALL + col0 ) FROM tab2
----
247

skipif mysql # not compatible
query I rowsort label-8485
SELECT 62 + + + SUM ( ALL + col0 ) FROM tab2
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - COUNT( * ) + + + ( - COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8486
SELECT - COUNT ( * ) + + + ( - COUNT ( * ) ) FROM tab0
----
-6

query I rowsort
SELECT ALL 36 * - 73 FROM tab1
----
-2628
-2628
-2628

query I rowsort
SELECT DISTINCT + - col0 + - - 22 FROM tab2 AS cor0
----
-24
-42
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8490
SELECT MAX ( - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT - ( + COUNT( * ) ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8491
SELECT - ( + COUNT ( * ) ) col0 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT - - 10 FROM tab1 AS cor0 WHERE NOT ( NOT NULL > NULL ) OR NULL > CAST( 44 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT - - 10 FROM tab1 AS cor0 WHERE NOT ( NOT NULL > NULL ) OR NULL > CAST ( 44 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL - 46 + - col2 AS col2 FROM tab2 WHERE CAST( - + col2 AS SIGNED ) * + col0 IS NOT NULL
----
-104
-69
-86

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - 46 + - col2 AS col2 FROM tab2 WHERE CAST ( - + col2 AS INTEGER ) * + col0 IS NOT NULL
----
-104
-69
-86

query I rowsort
SELECT DISTINCT - ( - col0 ) - - ( col0 ) FROM tab1
----
102
170
182

query II rowsort
SELECT - - 42 - ( + col1 ) - - ( + col1 ) AS col2, + 28 FROM tab2 AS cor0
----
42
28
42
28
42
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT ALL + 94 DIV col0 col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8497
SELECT ALL + 94 / col0 col0 FROM tab0 AS cor0
----
0
1
6

query II rowsort
SELECT - col1, ( + - 1 ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8499
SELECT DISTINCT + CAST( col1 AS SIGNED ), 0 DIV col2 * col2 * 5 AS col2 FROM tab2 cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-8499
SELECT DISTINCT + CAST ( col1 AS INTEGER ), 0 / col2 * col2 * 5 AS col2 FROM tab2 cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + + COUNT( * ) + 79 AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8500
SELECT + + COUNT ( * ) + 79 AS col1 FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT 46 * MIN( + - ( - col2 ) ) AS col2 FROM tab1
----
2714

skipif mysql # not compatible
query I rowsort label-8501
SELECT 46 * MIN ( + - ( - col2 ) ) AS col2 FROM tab1
----
2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT ALL + CAST( + - col2 AS SIGNED ) * 13 + + col1 * - col0 + + col0 FROM tab0 WHERE - col0 - - - 38 + + - col2 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + CAST ( + - col2 AS INTEGER ) * 13 + + col1 * - col0 + + col0 FROM tab0 WHERE - col0 - - - 38 + + - col2 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ( 95 ) * ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab1
----
-4845
-8075
-8645

skipif mysql # not compatible
query I rowsort label-8503
SELECT ( 95 ) * ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT MAX( - - col2 ) * - 51 FROM tab0
----
-5049

skipif mysql # not compatible
query I rowsort label-8504
SELECT MAX ( - - col2 ) * - 51 FROM tab0
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL MAX( + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL MAX ( + - col0 ) FROM tab2
----
-46

query II rowsort
SELECT ALL + ( + 68 ) * col2 AS col1, - col0 FROM tab1
----
4012
-85
4624
-91
6528
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8507
SELECT DISTINCT - 1 AS col2, MAX( - col1 ) FROM tab0 AS cor0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8507
SELECT DISTINCT - 1 AS col2, MAX ( - col1 ) FROM tab0 AS cor0
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8508
SELECT DISTINCT - COUNT( * ) DIV + 62 * - - 85 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8508
SELECT DISTINCT - COUNT ( * ) / + 62 * - - 85 col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - ( - - 7 ) ) + - col0 + col0 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT MIN( DISTINCT + 65 ) + + + 14 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8511
SELECT MIN ( DISTINCT + 65 ) + + + 14 FROM tab2 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8513
SELECT ALL - + 34 DIV - + col0 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-8513
SELECT ALL - + 34 / - + col0 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT + col2 + + ( + + 70 ) FROM tab0 AS cor0
----
117
169
80

query II rowsort
SELECT - col0 + - col2 AS col1, 75 AS col0 FROM tab1 cor0
----
-144
75
-147
75
-159
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL + 27 + + COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 27 + + COUNT ( * ) FROM tab0 AS cor0
----
30

query II rowsort
SELECT + col2, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL + CAST( NULL AS SIGNED ) + col0 * + - 30 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 * + - 30 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 21 * - ( 37 ), col1 * - col1 AS col1 FROM tab2
----
-777
-2601
-777
-4489
-777
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT + + col1 AS col2, 28 FROM tab2 AS cor0
----
51
28
67
28
77
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL COUNT( DISTINCT col0 ) FROM tab1 cor0 WHERE NOT ( - col2 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL COUNT ( DISTINCT col0 ) FROM tab1 cor0 WHERE NOT ( - col2 IS NULL )
----
3

query I rowsort
SELECT + col2 * - ( - + col2 ) + - - 69 * + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1381
3136
8250

query I rowsort
SELECT DISTINCT - col0 + 64 AS col1 FROM tab0
----
-23
-33
49

query I rowsort
SELECT - 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT col0 + + ( col2 ) AS col0 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 20 * - col0 * + col2 * col0 col1 FROM tab2 AS cor0
----
-252313600
-437175000
-49641360

query III rowsort
SELECT - + col1, col2, + + col0 AS col2 FROM tab0 AS cor0
----
9 values hashing to 3ff31b851fa4459683973307f3f4ef7b

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + ( + + 18 ) * + + 79 FROM tab2 AS cor0
----
1422
1422
1422

query II rowsort
SELECT ALL - - col2, ( col1 ) FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8532
SELECT ALL - 5, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL - 5, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL NOT BETWEEN - 87 * + + 31 AND - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 82 + + col2 < - col2 * + - col1 / - + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT 70 * - COUNT( * ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT 70 * - COUNT ( * ) FROM tab0
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8536
SELECT CAST( + 32 AS SIGNED ) col0, col0 AS col2 FROM tab2
----
32
46
32
64
32
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8536
SELECT CAST ( + 32 AS INTEGER ) col0, col0 AS col2 FROM tab2
----
32
46
32
64
32
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT - 85 DIV 93 DIV + ( - 30 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 85 / 93 / + ( - 30 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2 cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 * + + 30 col0 FROM tab0
----
10
630
47
2430
99
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8540
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL ( + MAX( + 66 ) ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL ( + MAX ( + 66 ) ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL COUNT( DISTINCT - 66 ) AS col0 FROM tab1 AS cor0 WHERE ( col1 + - 28 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL COUNT ( DISTINCT - 66 ) AS col0 FROM tab1 AS cor0 WHERE ( col1 + - 28 IS NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8546
SELECT DISTINCT - AVG ( ( - col1 ) ) / - CAST( NULL AS SIGNED ) + - MAX( + 54 ) + + + MAX( col1 ), + 65 AS col1 FROM tab2 cor0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-8546
SELECT DISTINCT - AVG ( ( - col1 ) ) / - CAST ( NULL AS INTEGER ) + - MAX ( + 54 ) + + + MAX ( col1 ), + 65 AS col1 FROM tab2 cor0
----
NULL
65

query II rowsort
SELECT ALL col1 + col0 AS col0, + 81 AS col0 FROM tab1
----
138
81
65
81
90
81

query I rowsort
SELECT ALL 6 * - col2 + col1 AS col2 FROM tab1
----
-349
-361
-562

query I rowsort
SELECT ALL + ( + col0 ) - - + 96 FROM tab0
----
111
183
193

query I rowsort
SELECT - col2 + 96 + + col1 + + + col2 AS col1 FROM tab2
----
147
163
173

query II rowsort
SELECT DISTINCT 43 + + col0 AS col2, col0 AS col0 FROM tab0
----
130
87
140
97
58
15

query I rowsort
SELECT + col2 + + - 37 AS col2 FROM tab1
----
22
31
59

query I rowsort
SELECT col2 * - - col1 + - 9 FROM tab0
----
201
3798
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT - CAST( + + AVG ( + - col1 ) AS SIGNED ) + + - ( - + MIN( ALL + col1 ) ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8554
SELECT - CAST ( + + AVG ( + - col1 ) AS INTEGER ) + + - ( - + MIN ( ALL + col1 ) ) FROM tab1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8555
SELECT ALL + COUNT( * ) DIV - 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + COUNT ( * ) / - 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT + 5 * - MAX( - 75 ) FROM tab0 AS cor0
----
375

skipif mysql # not compatible
query I rowsort label-8556
SELECT + 5 * - MAX ( - 75 ) FROM tab0 AS cor0
----
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT - 15 DIV - - MAX( DISTINCT + 91 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT - 15 / - - MAX ( DISTINCT + 91 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL > CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8558
SELECT - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL > CAST ( - - col2 AS INTEGER )
----

query I rowsort
SELECT col1 * + - 25 + + - col2 FROM tab1 cor0
----
-1243
-184
-446

query I rowsort
SELECT DISTINCT - col2 - - - col2 AS col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT ALL 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - + ( 44 ) FROM tab0 cor0
----
-44
-44
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 22
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 21
----

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - + col2 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE NOT - 89 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

query II rowsort
SELECT DISTINCT + col1 * + + col2 AS col0, + col1 AS col0 FROM tab2
----
1173
51
3080
77
3886
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - COUNT( * ) * 53 AS col0 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-8570
SELECT - COUNT ( * ) * 53 AS col0 FROM tab1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL + ( - - 94 ) * + SUM( col1 ) * 65 FROM tab2
----
1191450

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + ( - - 94 ) * + SUM ( col1 ) * 65 FROM tab2
----
1191450

query I rowsort
SELECT DISTINCT 34 * + 22 AS col0 FROM tab2
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col1 * + 25 FROM tab0
----
2025
25
525

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 76 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL ) < NULL ) OR NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL ) < NULL ) OR NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT - col1 * - 27 FROM tab0
----
2187
27
567

query I rowsort
SELECT ALL - col1 + - 8 AS col1 FROM tab2
----
-59
-75
-85

query I rowsort
SELECT col0 * + - col1 + + + col0 + + col0 + col1 - - 20 + + - 74 AS col0 FROM tab0 AS cor0
----
-1158
-1686
44

query I rowsort
SELECT - ( + col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT DISTINCT - ( - 37 ) + + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT - ( - 37 ) + + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 3 NOT BETWEEN + col2 AND - 34 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + + 11 ) FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL + col2 + 92 * + col2 AS col0 FROM tab0 AS cor0
----
4371
9207
930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8585
SELECT DISTINCT 42 + col0 * + col0 * col0 * col1 + 66 - - col0 AS col0, CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
20185260
NULL
28265808
NULL
4964290
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8585
SELECT DISTINCT 42 + col0 * + col0 * col0 * col1 + 66 - - col0 AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
20185260
NULL
28265808
NULL
4964290
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + - ( - - col2 ) AND - col0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8587
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 * - ( - CAST( + 36 AS SIGNED ) ) + - col2 + + + col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8587
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 * - ( - CAST ( + 36 AS INTEGER ) ) + - col2 + + + col2 AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( 92 ) + + + col2 / 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + ( + col2 ) + col1 * + col0 FROM tab1
----
4436
569
861

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 80 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1 AS col0, - col2 * 60 FROM tab0 WHERE + + col0 IS NULL
----

query I rowsort
SELECT col0 - - 4 * ( + col0 ) + - col0 FROM tab0
----
348
388
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT COUNT( - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT COUNT ( - + col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) > ( col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + SUM( ALL col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8596
SELECT + SUM ( ALL col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 72 - col0 * 82 FROM tab2 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + 63 + SUM( ALL col1 + + col0 ) * COUNT( DISTINCT 76 ) FROM tab0
----
365

skipif mysql # not compatible
query I rowsort label-8599
SELECT + 63 + SUM ( ALL col1 + + col0 ) * COUNT ( DISTINCT 76 ) FROM tab0
----
365

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col2 IN ( 43 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) + + CAST( 96 AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + CAST ( 96 AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT - MIN( DISTINCT + col2 ) + MAX( col0 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8602
SELECT - MIN ( DISTINCT + col2 ) + MAX ( col0 ) AS col1 FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) + + 92 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT DISTINCT - COUNT( * ) DIV 46 AS col0 FROM tab1 WHERE 69 + col1 * - 36 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - COUNT ( * ) / 46 AS col0 FROM tab1 WHERE 69 + col1 * - 36 = ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE 52 / col1 >= - col1 + - col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT ALL - SUM( ALL col0 ) * - 12 + 5 DIV - 24 FROM tab2
----
2220

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL - SUM ( ALL col0 ) * - 12 + 5 / - 24 FROM tab2
----
2220

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE - col0 NOT IN ( - col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT - 46 * 77 + MIN( ALL + col1 ) FROM tab1
----
-3537

skipif mysql # not compatible
query I rowsort label-8608
SELECT - 46 * 77 + MIN ( ALL + col1 ) FROM tab1
----
-3537

query I rowsort
SELECT ALL col0 + ( col0 ) AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 * - col1 AS col2 FROM tab0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + COUNT( * ) * + 30 + 33 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-8613
SELECT + COUNT ( * ) * + 30 + 33 FROM tab0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8614
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN col1 AND + 71 * col0 - - CAST( NULL AS SIGNED ) / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8614
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN col1 AND + 71 * col0 - - CAST ( NULL AS INTEGER ) / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 28 + + col1 FROM tab0 WHERE ( - col2 ) <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8616
SELECT ALL AVG ( ALL - col0 ) + + 58 FROM tab0 WHERE NOT ( 49 - + col2 ) NOT IN ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL AVG ( ALL - col0 ) + + 58 FROM tab0 WHERE NOT ( 49 - + col2 ) NOT IN ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + 22 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
31

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + 22 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8619
SELECT * FROM tab1 cor0 WHERE - col1 * ( CAST( NULL AS SIGNED ) ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8619
SELECT * FROM tab1 cor0 WHERE - col1 * ( CAST ( NULL AS INTEGER ) ) < ( NULL )
----

query I rowsort
SELECT + 59 AS col1 FROM tab2 AS cor0 WHERE ( + 91 ) * - col1 BETWEEN - col0 + - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 49 * + 68 FROM tab0 cor0
----
3332

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> 0 / col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 BETWEEN - col2 + + col2 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 + + col0 ) NOT BETWEEN NULL AND 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - col0 FROM tab2 AS cor0 WHERE - col0 NOT IN ( col1 )
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL + ( ( - 7 ) ) * + CAST( - col1 + + CAST( 78 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-189
-7
-77

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + ( ( - 7 ) ) * + CAST ( - col1 + + CAST ( 78 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-189
-7
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE + col2 BETWEEN ( - col2 ) AND col1 * col0
----
2

skipif mysql # not compatible
query I rowsort label-8628
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col2 BETWEEN ( - col2 ) AND col1 * col0
----
2

query I rowsort
SELECT + - 5 + + col2 AS col0 FROM tab1 AS cor0
----
54
63
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8630
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( col1 AS DECIMAL ) + - ( - col2 ) BETWEEN - col0 * 14 AND ( 20 )
----

skipif mysql # not compatible
query III rowsort label-8630
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( col1 AS REAL ) + - ( - col2 ) BETWEEN - col0 * 14 AND ( 20 )
----

query I rowsort
SELECT DISTINCT ( + col1 ) + + 60 AS col2 FROM tab1
----
107
65
74

query I rowsort
SELECT DISTINCT + col1 + - - col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + col2 DIV + col1 + col0 col1 FROM tab0
----
15
196
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8634
SELECT + col2 / + col1 + col0 col1 FROM tab0
----
15
196
87

query I rowsort
SELECT DISTINCT - col2 + + - col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT - col0 + + col2 - col1 FROM tab2
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL + ( COUNT( - col2 ) ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL + ( COUNT ( - col2 ) ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8639
SELECT 37 * - CAST( NULL AS DECIMAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT 37 * - CAST ( NULL AS REAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 + - + col2 + + col1 col2 FROM tab2
----
108
127
136

query I rowsort
SELECT DISTINCT col0 * + + col0 * 51 FROM tab0
----
11475
386019
479859

query I rowsort
SELECT ALL + col1 + - col1 * - col1 AS col2 FROM tab1
----
210
2256
30

query I rowsort
SELECT ALL col1 * - col1 * + col1 AS col2 FROM tab2
----
-132651
-300763
-456533

query I rowsort
SELECT ALL - ( 97 ) * col2 AS col2 FROM tab0 WHERE - col1 + col0 = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT + + ( - MIN( 12 ) ) col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8645
SELECT DISTINCT + + ( - MIN ( 12 ) ) col2 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 24 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT COUNT( * ) * COUNT( - col1 ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( * ) * COUNT ( - col1 ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT SUM( col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8648
SELECT SUM ( col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
198

query II rowsort
SELECT DISTINCT col0, 97 AS col0 FROM tab0
----
15
97
87
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT 19 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT DISTINCT + col1 DIV - 43 + - - col1 + - 75 FROM tab0 AS cor0
----
-54
-74
5

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + col1 / - 43 + - - col1 + - 75 FROM tab0 AS cor0
----
-54
-74
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) * - 48 >= - col2 + - 4
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <= + col2
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT DISTINCT + COUNT( DISTINCT + 95 ) AS col2 FROM tab2 AS cor0 WHERE NULL < + CAST( - col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + COUNT ( DISTINCT + 95 ) AS col2 FROM tab2 AS cor0 WHERE NULL < + CAST ( - col0 AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / - 16 >= - col1 * + col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + 69 - - col0 * col0 ) <> col1 OR + 2 <> ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8658
SELECT + + COUNT( * ) col1, - COUNT( * ) DIV + - MAX( DISTINCT + ( 16 ) ) AS col1 FROM tab0 cor0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8658
SELECT + + COUNT ( * ) col1, - COUNT ( * ) / + - MAX ( DISTINCT + ( 16 ) ) AS col1 FROM tab0 cor0
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 8 * 80 NOT BETWEEN ( + col2 * ( col0 ) ) AND ( - 40 - 39 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT DISTINCT - col1 DIV col0 + - - 21 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT - col1 / col0 + - - 21 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT - - SUM( 52 ) col2 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8661
SELECT DISTINCT - - SUM ( 52 ) col2 FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < ( NULL )
----

query I rowsort
SELECT - + col2 * + 59 - + + 65 + col0 AS col1 FROM tab0 AS cor0
----
-2823
-568
-5809

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 57 / 21 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 9 + - 78 AS col0 FROM tab2
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * col1 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT + col1 * col1 * - 84 = ( - col1 )
----
1
21
81

query I rowsort
SELECT col2 - col1 * 11 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 + col0 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
1219
3144
3961

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( + col2 )
----

query I rowsort
SELECT + col1 * col2 AS col0 FROM tab0 WHERE NOT ( + col1 ) = 20 * 22
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 27 IN ( - 51 - + col0 )
----

query I rowsort
SELECT ( + 97 ) AS col1 FROM tab2 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 cor0 WHERE NOT ( + col2 ) NOT IN ( - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL COUNT( * ) + + 76 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL COUNT ( * ) + + 76 FROM tab2 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT DISTINCT - + CAST( + + ( - + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - + CAST ( + + ( - + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - 34 ) FROM tab1 AS cor0 WHERE + 16 <= ( 94 / + + col1 + - col0 )
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT ALL col2, 21 FROM tab1
----
59
21
68
21
96
21

query I rowsort
SELECT - ( col2 ) + + 65 AS col2 FROM tab2
----
25
42
7

query I rowsort
SELECT ALL - col1 + col0 FROM tab0 WHERE NOT - + col0 > col2
----
-66
66
96

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col1 - 32 <> NULL
----

query I rowsort
SELECT ALL - col2 * 96 FROM tab2 AS cor0
----
-2208
-3840
-5568

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - - 69 / - col2 + + col1 + col2 )
----

query I rowsort
SELECT + col2 + - 26 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
33
42
70

query I rowsort
SELECT DISTINCT + - 22 * - 66 AS col1 FROM tab1 AS cor0
----
1452

query I rowsort
SELECT ALL - 14 * - + col1 + - + col2 * - 13 + col2 + + col0 FROM tab0 AS cor0
----
1497
1807
521

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - MIN( DISTINCT col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8688
SELECT - MIN ( DISTINCT col0 ) FROM tab0 cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 41 IS NULL
----

query II rowsort
SELECT - 83, col1 + - 33 + 72 * - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-83
-3294
-83
-4564
-83
-5366

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT ALL 99 DIV col1 * col1 + - ( + - col0 ) DIV 34 * + col2 + col1 AS col1 FROM tab1
----
208
218
277

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL 99 / col1 * col1 + - ( + - col0 ) / 34 * + col2 + col1 AS col1 FROM tab1
----
208
218
277

query II rowsort
SELECT DISTINCT 61 - - col0 AS col1, 78 FROM tab0
----
148
78
158
78
76
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8694
SELECT ( CAST( NULL AS SIGNED ) ) - + + 26 - + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ( CAST ( NULL AS INTEGER ) ) - + + 26 - + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * col2 - + - col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT ALL - col1 * 97 + col1 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + 50 - MIN( col1 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + 50 - MIN ( col1 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + MIN( ALL + - 7 ) - + ( + 59 ) AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-8698
SELECT + MIN ( ALL + - 7 ) - + ( + 59 ) AS col2 FROM tab0
----
-66

query I rowsort
SELECT DISTINCT col0 - - col1 + + col0 + - 15 * 18 AS col2 FROM tab2
----
-127
-53
-65

query I rowsort
SELECT DISTINCT + col1 * - - ( ( + col2 ) ) * + col2 FROM tab0
----
178929
2100
9801

query II rowsort
SELECT ALL - 13 AS col2, - col0 FROM tab0 AS cor0
----
-13
-15
-13
-87
-13
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT - COUNT( * ) * - 75 AS col0 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT - COUNT ( * ) * - 75 AS col0 FROM tab0 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT ALL + + col2 * + ( - + ( + - 34 ) ) + - col1 + col2 + col1 DIV col1 FROM tab2 AS cor0
----
1324
1964
755

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + + col2 * + ( - + ( + - 34 ) ) + - col1 + col2 + col1 / col1 FROM tab2 AS cor0
----
1324
1964
755

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + - - col0 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8706
SELECT ALL COUNT( * ) * + CAST( NULL AS DECIMAL ) + + + COUNT( * ) + - + 1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL COUNT ( * ) * + CAST ( NULL AS REAL ) + + + COUNT ( * ) + - + 1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ( 51 ) + 26 - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-8707
SELECT ( 51 ) + 26 - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * + + 90 col2 FROM tab0
----
1710
1710
1710

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 - - 71 NOT IN ( + + col2 * 12 + + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8710
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8711
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1, + CAST( NULL AS SIGNED ) - + + 29, - col0 + col0 * 93 )
----

skipif mysql # not compatible
query III rowsort label-8711
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1, + CAST ( NULL AS INTEGER ) - + + 29, - col0 + col0 * 93 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - col2 ) + 86 AS col1 FROM tab1 cor0 WHERE col1 IN ( ( - col1 ) * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8714
SELECT ALL + 45 DIV CAST( - 72 AS SIGNED ) + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + 45 / CAST ( - 72 AS INTEGER ) + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + + 98 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + + + 90 * - - 88 IS NULL
----
98
98
98

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 cor0
----
57

query I rowsort
SELECT DISTINCT + 67 * col2 * - col1 AS col0 FROM tab0 cor0 WHERE NOT NULL <> ( NULL )
----

query II rowsort
SELECT - col0 AS col1, - 51 FROM tab2
----
-46
-51
-64
-51
-75
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col1 * + col0 + + col1 / + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL COUNT( col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL COUNT ( col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT - - ( + ( + + COUNT( * ) ) ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - - ( + ( + + COUNT ( * ) ) ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT ALL + 56 * - COUNT( * ) + + 83 col0, + MAX( + + col2 ) - + - 50 FROM tab0
----
-85
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8722
SELECT ALL + 56 * - COUNT ( * ) + + 83 col0, + MAX ( + + col2 ) - + - 50 FROM tab0
----
-85
149

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT - 33 / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT - 33 / - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL 57 FROM tab0 WHERE NOT NULL BETWEEN ( - 59 / + col2 * 21 * + col2 * - col1 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + 0 + - - COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 0 + - - COUNT ( * ) AS col1 FROM tab1
----
3

query I rowsort
SELECT col2 + + 45 AS col2 FROM tab1
----
104
113
141

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT 59 FROM tab2 AS cor0 WHERE + 71 + - col0 / + + col2 NOT IN ( - 58 + - - ( col0 ) )
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - COUNT( - 79 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8730
SELECT - COUNT ( - 79 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - - 99 / + col2 * + col2 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( - ( 13 ) ) <= 7
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + + MIN( - - col0 ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8734
SELECT + + MIN ( - - col0 ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT + CAST( NULL AS SIGNED ) / + 32 + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT + CAST ( NULL AS INTEGER ) / + 32 + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + + 54 AS col2 FROM tab1
----
105
139
145

query I rowsort
SELECT ALL - col1 + col1 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT col2 AS col0, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL + COUNT( * ) * - + 3 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + COUNT ( * ) * - + 3 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 BETWEEN + - 46 + - col2 AND - col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT COUNT( * ) col2, 6 AS col1 FROM tab0
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8743
SELECT COUNT ( * ) col2, 6 AS col1 FROM tab0
----
3
6

query I rowsort
SELECT - + 62 * + col2 AS col1 FROM tab0 WHERE NOT + col0 IN ( 70 + + ( 19 ) - - 74 + - col1, - 53 )
----
-2914
-6138
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col1 col1 FROM tab2 AS cor0 WHERE NOT col0 * + col2 > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 18 col2 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - col0 + + 70 AS col0 FROM tab1 cor0 WHERE NOT 13 <> col2 - + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + 10 * - - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8748
SELECT + 10 * - - COUNT ( * ) FROM tab0
----
30

query I rowsort
SELECT ALL + + 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL SUM( col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query II rowsort label-8751
SELECT + col0 DIV - - col1 AS col2, + col2 - col2 + - ( - 20 ) col2 FROM tab2 AS cor0
----
0
20
0
20
1
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8751
SELECT + col0 / - - col1 AS col2, + col2 - col2 + - ( - 20 ) col2 FROM tab2 AS cor0
----
0
20
0
20
1
20

query I rowsort
SELECT ALL + 43 * + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2021
215
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, + 57 col2 FROM tab2 AS cor0
----
23
57
40
57
58
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + - - col0 col2 FROM tab0 AS cor0
----
168
178
96

query I rowsort
SELECT + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT + + col2 * + + ( - 16 ) + - ( col1 ) FROM tab0 cor0
----
-1585
-181
-833

query II rowsort
SELECT - col2 AS col0, - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col2
----

query I rowsort
SELECT - 75 + - 65 FROM tab2 AS cor0
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + 83 * - COUNT( * ) AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + 83 * - COUNT ( * ) AS col1 FROM tab1
----
-249

query I rowsort
SELECT ALL col0 + - + ( + col0 ) * - col1 + + 90 AS col1 FROM tab2
----
2482
5082
5190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 80 ) col0 FROM tab1 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab0 WHERE col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE ( + 67 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE ( + 67 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 58 col0 FROM tab0
----
-2726
-5742
-580

onlyif mysql # DIV for integer division: 
query II rowsort label-8765
SELECT ALL + col2 DIV - col1, + ( - - col1 ) AS col1 FROM tab1
----
-1
47
-11
5
-6
14

skipif mysql # not compatible
query II rowsort label-8765
SELECT ALL + col2 / - col1, + ( - - col1 ) AS col1 FROM tab1
----
-1
47
-11
5
-6
14

query I rowsort
SELECT DISTINCT 38 FROM tab1 AS cor0 WHERE + col0 BETWEEN - - 50 - - + col1 AND - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - 6 FROM tab0 AS cor0
----
-126
-486
-6

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL - + ( + + MAX( ALL - - ( - col0 ) ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - + ( + + MAX ( ALL - - ( - col0 ) ) ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT - - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8771
SELECT - - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) <> - col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL - COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL - col1 AS col0, ( col2 ) FROM tab1 AS cor0 WHERE NOT ( - 19 ) IS NULL
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL 81 AS col1 FROM tab1 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT - 20, COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN + 71 AND NULL
----
-20
0

skipif mysql # not compatible
query II rowsort label-8777
SELECT - 20, COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN + 71 AND NULL
----
-20
0

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE - 73 NOT IN ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL MIN( - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL MIN ( - col0 ) AS col2 FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( - + col0 ) + 63 + + col2 > col2
----
46
51
23

query I rowsort
SELECT + - 63 * + - 44 FROM tab1 AS cor0
----
2772
2772
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT SUM( col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8783
SELECT DISTINCT SUM ( col1 ) col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 col0, + 24 FROM tab2 WHERE NOT + 17 NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT - col2, - col2 * - 88 * + - col0 AS col0 FROM tab0
----
-10
-76560
-47
-62040
-99
-845064

query I rowsort
SELECT + ( + + 58 ) AS col1 FROM tab2
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL >= - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-8787
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL >= - 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL 46 + - SUM( - col2 ) + - COUNT( * ) * + AVG ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL 46 + - SUM ( - col2 ) + - COUNT ( * ) * + AVG ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = - + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT - col2 DIV ( - col2 ) FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8789
SELECT - col2 / ( - col2 ) FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8790
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 34 ) BETWEEN ( + + CAST( NULL AS SIGNED ) ) AND col0 - - 20 / - col2 / col1
----

skipif mysql # not compatible
query III rowsort label-8790
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 34 ) BETWEEN ( + + CAST ( NULL AS INTEGER ) ) AND col0 - - 20 / - col2 / col1
----

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 80 = - col1 - - + 27
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 31 + col0 col0 FROM tab2 AS cor0
----
1304
1873
759

query I rowsort
SELECT ALL 30 + + + 62 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT + 35 DIV + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 35 / + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 54 + col1 AS col0 FROM tab0 AS cor0 WHERE col1 + - + 94 IS NULL
----

query I rowsort
SELECT - col0 * + 24 AS col2 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT + + col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8797
SELECT + + col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT col0, col0 * + - 3 FROM tab1
----
51
-153
85
-255
91
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - col1 + 64 + - ( + + col1 ) DIV + col2 FROM tab2
----
-14
-4
11

skipif mysql # not compatible
query I rowsort label-8799
SELECT - col1 + 64 + - ( + + col1 ) / + col2 FROM tab2
----
-14
-4
11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT - ( + ( + col0 ) ) DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8801
SELECT - ( + ( + col0 ) ) / - - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT - - MAX( col1 ) + + + COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT - - MAX ( col1 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT col1 AS col1 FROM tab0 WHERE CAST( + 9 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8804
SELECT col1 AS col1 FROM tab0 WHERE CAST ( + 9 AS INTEGER ) IS NULL
----

query II rowsort
SELECT col2 * col2 AS col0, 44 FROM tab1 AS cor0
----
3481
44
4624
44
9216
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - - ( 86 ) AS col1 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT - ( + + COUNT( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8808
SELECT - ( + + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
59
68
68
96
96

query I rowsort
SELECT ALL 68 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT + col2 DIV + 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT + col2 / + 80 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT ALL col1 DIV + 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL col1 / + 99 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 91 * + 22 * 19 + + 48 AS col0 FROM tab0 WHERE NOT 96 * col1 + + col2 BETWEEN - col1 AND ( col0 )
----
38086

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE - 42 IN ( 70, - col0, + 29 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 88 * col1 + - col1 * + + 24 <= - col1 * - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + col2 = ( - + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 94 AS col2 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + COUNT( + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8818
SELECT + COUNT ( + col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - col0 * 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + + col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col2 * + + col2 + col1 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT + ( + + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= ( col1 ) * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 + - 97 col1 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col0 * + 25 * 33 * + col0 FROM tab0 AS cor0
----
185625
6244425
7762425

query I rowsort
SELECT ALL 37 + col0 AS col1 FROM tab2 AS cor0
----
101
112
83

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 BETWEEN - 9 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + + SUM( DISTINCT + 35 ) AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8830
SELECT + + SUM ( DISTINCT + 35 ) AS col2 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL + 87 + col1 FROM tab0
----
108
168
88

query III rowsort
SELECT * FROM tab1 WHERE + ( 27 ) * - 41 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8833
SELECT * FROM tab1 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8833
SELECT * FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 4 col0 FROM tab0
----
-348
-388
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8835
SELECT + col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT + col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - ( - col2 ) ) - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT - + 96 - + col0 FROM tab2 AS cor0
----
-142
-160
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT - col2 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - col2 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab0 WHERE col0 + + 83 IS NULL
----

query I rowsort
SELECT ALL + col1 - + col1 + + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + 68 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT col0 * - - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT DISTINCT + + 68 DIV - col0 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT + + 68 / - col0 FROM tab0 AS cor0
----
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT + ( + SUM( DISTINCT col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + ( + SUM ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8848
SELECT + ( + col0 ) col2, - CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8848
SELECT + ( + col0 ) col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT MAX( + + 99 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT MAX ( + + 99 ) FROM tab2
----
99

query II rowsort
SELECT ALL + 59 * col0 AS col2, - 27 AS col1 FROM tab0
----
5133
-27
5723
-27
885
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT - MIN( ALL + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8851
SELECT - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT col1 + + - 44 FROM tab0 AS cor0
----
-23
-43
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 10 + col2 + + col1 * col1 FROM tab2 cor0
----
2614
4537
5959

query II rowsort
SELECT - + col0 + - + col1, + col2 FROM tab1 AS cor0
----
-138
68
-65
96
-90
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ( + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8856
SELECT ( + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT 7 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * 61, + 39, - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8857
SELECT 7 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * 61, + 39, - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8858
SELECT DISTINCT - + col2 col0, ( 47 ) DIV ( + col2 ) * + - ( 97 ) + + col2 + 43 AS col1 FROM tab1 AS cor0
----
-59
102
-68
111
-96
139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8858
SELECT DISTINCT - + col2 col0, ( 47 ) / ( + col2 ) * + - ( 97 ) + + col2 + 43 AS col1 FROM tab1 AS cor0
----
-59
102
-68
111
-96
139

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) * + + 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - ( - 96 ) + + + SUM( - col0 ) FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - ( - 96 ) + + + SUM ( - col0 ) FROM tab2 cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ( + - col2 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT ( + - col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - - ( - col0 ) ) * + col0 * + 56 + - + col2 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 77 + - + 90 AS col1 FROM tab2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT + CAST( - col1 AS SIGNED ) + 18 FROM tab2
----
-33
-49
-59

skipif mysql # not compatible
query I rowsort label-8864
SELECT + CAST ( - col1 AS INTEGER ) + 18 FROM tab2
----
-33
-49
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL 33 + + + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL 33 + + + COUNT ( * ) FROM tab1
----
36

query III rowsort
SELECT * FROM tab1 WHERE NULL < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT - col1 + - + 3 + + 98 DIV - 21 + + col2 * - 53 AS col2 FROM tab0
----
-2579
-5255
-558

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - col1 + - + 3 + + 98 / - 21 + + col2 * - 53 AS col2 FROM tab0
----
-2579
-5255
-558

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + col0 + col1 + - - 93
----

query I rowsort
SELECT ( - + 75 ) + 64 AS col2 FROM tab1
----
-11
-11
-11

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2, - col1 + - col1, col2 * + col0, col0 + + col1, + + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 97 BETWEEN - col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8874
SELECT ALL col0, + CAST( - col0 AS SIGNED ) + col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
51
-37
85
-80
91
-44

skipif mysql # not compatible
query II rowsort label-8874
SELECT ALL col0, + CAST ( - col0 AS INTEGER ) + col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
51
-37
85
-80
91
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT + - 76 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT + - 76 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8876
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 75, + CAST( - 88 AS SIGNED ) + + 5 )
----

skipif mysql # not compatible
query III rowsort label-8876
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 75, + CAST ( - 88 AS INTEGER ) + + 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT - + ( - CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8877
SELECT - + ( - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 col0 FROM tab2 AS cor0
----
75
75
75

query II rowsort
SELECT + col0, + 13 AS col2 FROM tab1
----
51
13
85
13
91
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT COUNT( * ) DIV - 68 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8880
SELECT COUNT ( * ) / - 68 FROM tab2
----
0

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT + 5 * - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT col0 / col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT col0 / col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - col0 * + - 15 * + - 49 * col0, col1 FROM tab1 WHERE NOT - + ( col1 ) NOT BETWEEN + + col1 AND + col1 * 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8884
SELECT + CAST( - 55 AS SIGNED ) DIV MIN( + col0 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8884
SELECT + CAST ( - 55 AS INTEGER ) / MIN ( + col0 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + 43 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
43
46
43
64
43
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT - - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8886
SELECT - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - 38 + col1 FROM tab2 AS cor0
----
13
29
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT - - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8889
SELECT ALL + CAST( NULL AS SIGNED ) * 0 col2, 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - ( + - 70 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8889
SELECT ALL + CAST ( NULL AS INTEGER ) * 0 col2, 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - ( + - 70 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8890
SELECT DISTINCT - COUNT( ALL - - 31 ), - 32 DIV - COUNT( DISTINCT - ( 13 ) ) AS col2 FROM tab0 AS cor0
----
-3
32

skipif mysql # not compatible
query II rowsort label-8890
SELECT DISTINCT - COUNT ( ALL - - 31 ), - 32 / - COUNT ( DISTINCT - ( 13 ) ) AS col2 FROM tab0 AS cor0
----
-3
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col1 col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + 57 * + + ( - ( + col0 ) ) FROM tab1 AS cor0
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8894
SELECT * FROM tab0 AS cor0 WHERE + col0 <= CAST( NULL AS SIGNED ) + + - col1
----

skipif mysql # not compatible
query III rowsort label-8894
SELECT * FROM tab0 AS cor0 WHERE + col0 <= CAST ( NULL AS INTEGER ) + + - col1
----

query I rowsort
SELECT 81 - - - ( + - col1 ) + 23 AS col1 FROM tab1
----
109
118
151

query II rowsort
SELECT DISTINCT + 43, - col1 * - 0 AS col0 FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL <> - col2 + + col1 * - col1 * + - col1
----

query II rowsort
SELECT ( + col2 ) - + - 26, col1 AS col0 FROM tab2
----
49
51
66
77
84
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL 15 - + COUNT( - ( 66 ) ) + - + 78 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL 15 - + COUNT ( - ( 66 ) ) + - + 78 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + COUNT( * ) - - COUNT( * ) col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8899
SELECT + COUNT ( * ) - - COUNT ( * ) col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 IS NULL
----

query II rowsort
SELECT ALL - col0 AS col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT - col2 - 91 FROM tab1 AS cor0
----
-150
-159
-187

query I rowsort
SELECT + 37 * col2 * - col0 * + - 3 AS col0 FROM tab1 AS cor0
----
543456
556665
686868

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8904
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-8904
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT ALL + 83 * - col1 * - + col0 * + col1 + - col2 FROM tab1 AS cor0 WHERE NOT 82 > - 26 / + + col1 * 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL - + MIN( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - + MIN ( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT DISTINCT 48 * + CAST( + col2 AS SIGNED ) col2 FROM tab1
----
2832
3264
4608

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8908
SELECT DISTINCT 48 * + CAST ( + col2 AS INTEGER ) col2 FROM tab1
----
2832
3264
4608

query I rowsort
SELECT - ( col0 ) * - - col0 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
-497025
-756900
-92217609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - + col1 * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT DISTINCT + + CAST( 26 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + + CAST ( 26 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = + col2
----

query I rowsort
SELECT DISTINCT + 16 * - - ( - col0 ) + + col0 FROM tab0 cor0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL 54 * - MAX( ALL col2 ) * + + 76 AS col2 FROM tab2
----
-238032

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 54 * - MAX ( ALL col2 ) * + + 76 AS col2 FROM tab2
----
-238032

onlyif mysql # DIV for integer division: 
query II rowsort label-8916
SELECT DISTINCT - ( + 70 ) DIV + col0, 52 AS col1 FROM tab1
----
-1
52
0
52

skipif mysql # not compatible
query II rowsort label-8916
SELECT DISTINCT - ( + 70 ) / + col0, 52 AS col1 FROM tab1
----
-1
52
0
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT - col2 DIV + 44 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT - col2 / + 44 FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + col0 + + + 30 + + col1 NOT IN ( + + col2 + - 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT + 83 + 19 * - col0 + + CAST( - - 48 AS SIGNED ) * - col0 * + ( col1 ) + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8919
SELECT + 83 + 19 * - col0 + + CAST ( - - 48 AS INTEGER ) * - col0 * + ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + 1 * col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT - col1 * 89 AS col0 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT ALL col1 * + - 28 AS col0 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT - - col2 + + col2 * - col2 AS col2 FROM tab2 cor0
----
-1560
-3306
-506

query III rowsort
SELECT * FROM tab0 WHERE 45 > + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL SUM( DISTINCT + col0 ) + - - 10 col2 FROM tab0
----
209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8926
SELECT ALL SUM ( DISTINCT + col0 ) + - - 10 col2 FROM tab0
----
209

onlyif mysql # DIV for integer division: 
query II rowsort label-8927
SELECT col1 AS col1, 10 DIV - col2 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8927
SELECT col1 AS col1, 10 / - col2 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - 61 + + col0 * - 86 + 63 AS col0 FROM tab1
----
-4384
-7308
-7824

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT 35 + - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8930
SELECT 35 + - COUNT ( * ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT + col2 + + ( - 59 ) FROM tab2 AS cor0
----
-1
-19
-36

query I rowsort
SELECT + col2 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT col1 + - 21 DIV - col2 col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8933
SELECT col1 + - 21 / - col2 col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col0 + + col2 * - + col2 * + 91 AS col2 FROM tab0
----
-201004
-891794
-9013

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT - COUNT( + col2 ) + 53 AS col0 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - COUNT ( + col2 ) + 53 AS col0 FROM tab1
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8936
SELECT CAST( NULL AS DECIMAL ) + + 45 / + 70 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT CAST ( NULL AS REAL ) + + 45 / + 70 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT MIN( ALL - + 72 ), - COUNT( * ) AS col0 FROM tab2
----
-72
-3

skipif mysql # not compatible
query II rowsort label-8937
SELECT MIN ( ALL - + 72 ), - COUNT ( * ) AS col0 FROM tab2
----
-72
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT + COUNT( * ) * COUNT( * ) - + 27 - + 80 col1 FROM tab2
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) - + 27 - + 80 col1 FROM tab2
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - - + ( 24 ), + col0 + - col2 col0 FROM tab2
----
70
23
88
24
99
17

query I rowsort
SELECT - - 59 * + 57 - ( 90 ) * + ( col0 ) AS col0 FROM tab1 WHERE NOT 29 NOT IN ( - col1, 35 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT DISTINCT + - MIN( - CAST( + + col2 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT + - MIN ( - CAST ( + + col2 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
99

query I rowsort
SELECT 36 * + col0 FROM tab2
----
1656
2304
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT COUNT( * ) + - 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-8943
SELECT COUNT ( * ) + - 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
-30

query I rowsort
SELECT + - 37 + - + col0 FROM tab2 AS cor0
----
-101
-112
-83

query I rowsort
SELECT + - 47 FROM tab1 AS cor0 WHERE NOT ( NULL ) = 19 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT - - col1 + + col2 + CAST( NULL AS SIGNED ) + + ( - col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT - - col1 + + col2 + CAST ( NULL AS INTEGER ) + + ( - col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 46 < - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 96 * col1 + 57 * - - 54 FROM tab0 AS cor0
----
10854
3174
5094

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT - col0 DIV - - ( - col2 ) - col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-8952
SELECT - col0 / - - ( - col2 ) - col2 FROM tab2 AS cor0
----
-21
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8953
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND CAST( NULL AS SIGNED ) * - - 30
----

skipif mysql # not compatible
query III rowsort label-8953
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND CAST ( NULL AS INTEGER ) * - - 30
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 43 ) FROM tab1 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col2 * - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT - 46 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT - 46 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8958
SELECT + CAST( + col1 AS SIGNED ) DIV + col2 AS col1, + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
0
1
1
2
0

skipif mysql # not compatible
query II rowsort label-8958
SELECT + CAST ( + col1 AS INTEGER ) / + col2 AS col1, + col0 / + col1 AS col2 FROM tab2 AS cor0
----
1
0
1
1
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT + 43 * + + COUNT( * ) FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT + 43 * + + COUNT ( * ) FROM tab2 AS cor0
----
129

query I rowsort
SELECT ALL + 93 * + - col0 AS col2 FROM tab2 AS cor0
----
-4278
-5952
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL + - MIN( ALL col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + - MIN ( ALL col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT - CAST( NULL AS SIGNED ) - + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT - CAST ( NULL AS INTEGER ) - + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab1
----
-227

onlyif mysql # DIV for integer division: 
query II rowsort label-8964
SELECT - col2, col1 + - 61 + - + ( - col0 ) + + - col0 * + ( col1 ) * + 73 + + 55 DIV 46 * - col2 * col0 AS col0 FROM tab1
----
-59
-36011
-68
-318332
-96
-57014

skipif mysql # not compatible
query II rowsort label-8964
SELECT - col2, col1 + - 61 + - + ( - col0 ) + + - col0 * + ( col1 ) * + 73 + + 55 / 46 * - col2 * col0 AS col0 FROM tab1
----
-59
-36011
-68
-318332
-96
-57014

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT + MAX( - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + MAX ( - col2 ) AS col2 FROM tab2
----
-23

query II rowsort
SELECT - col2 AS col1, col2 + - col0 FROM tab1
----
-59
-26
-68
-23
-96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - 31 * + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-8967
SELECT - 31 * + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 * + ( - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8970
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col0 * CAST( + 63 AS SIGNED ) BETWEEN NULL AND + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8970
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col0 * CAST ( + 63 AS INTEGER ) BETWEEN NULL AND + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 68 ) FROM tab1 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8972
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8972
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - - 46 - - COUNT( * ) * + COUNT( * ) + - 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-8973
SELECT - - 46 - - COUNT ( * ) * + COUNT ( * ) + - 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
93

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * col0 NOT BETWEEN + - 98 * col2 AND - ( - - col0 ) * + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT COUNT( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL + ( 28 ), 82 AS col0 FROM tab2 cor0
----
28
82
28
82
28
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL COUNT( 85 ) + - 22 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL COUNT ( 85 ) + - 22 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= ( + col2 ) + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8979
SELECT ALL + ( COUNT( * ) ) AS col0, - COUNT( CAST( + - 82 AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL + ( COUNT ( * ) ) AS col0, - COUNT ( CAST ( + - 82 AS REAL ) ) AS col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + MAX( ALL 93 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + MAX ( ALL 93 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT + CAST( NULL AS SIGNED ) + - 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT + CAST ( NULL AS INTEGER ) + - 78 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 26 + + col1 FROM tab1
----
1269
135
378

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT - 98 * 41 DIV + 39 + ( + + 57 ) AS col1 FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-8984
SELECT - 98 * 41 / + 39 + ( + + 57 ) AS col1 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL 41 + + - col1 FROM tab2 WHERE NOT - col2 > NULL
----

query II rowsort
SELECT DISTINCT 80 AS col0, + col2 FROM tab2
----
80
23
80
40
80
58

query I rowsort
SELECT - 42 + + col1 AS col0 FROM tab1
----
-28
-37
5

query I rowsort
SELECT col0 FROM tab0 WHERE + ( col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT - AVG ( - col1 ) AS col2 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL - - col2 * - 97 FROM tab2 AS cor0
----
-2231
-3880
-5626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> col1 * + col0
----

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> col1 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 61 * col0 >= - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + 81 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 5 - ( col0 ) AS col2 FROM tab0 AS cor0
----
348
388
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 col2 FROM tab0 AS cor0 WHERE NOT + col1 + + - col1 + - col1 * - col0 + - 42 = + col2
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + - MAX( + col0 ) * + - MAX( + + col2 ) FROM tab2 AS cor0
----
4350

skipif mysql # not compatible
query I rowsort label-8997
SELECT + - MAX ( + col0 ) * + - MAX ( + + col2 ) FROM tab2 AS cor0
----
4350

query I rowsort
SELECT ALL + + col1 * + + 72 AS col1 FROM tab2 AS cor0
----
3672
4824
5544

query I rowsort
SELECT DISTINCT col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9000
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT ALL - COUNT( ALL - col1 ) DIV + 54 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - COUNT ( ALL - col1 ) / + 54 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT + MIN( - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9002
SELECT + MIN ( - col1 ) AS col1 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 * + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 * + + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2 * + 99
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL - - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + MAX( DISTINCT + 22 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + MAX ( DISTINCT + 22 ) FROM tab0
----
22

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 < 11 - + col0
----

query I rowsort
SELECT ( - - 4 ) * - col0 * + col2 + - - col1 - - - col0 + + 35 * + col1 FROM tab2 AS cor0
----
-15063
-2442
-7532

query I rowsort
SELECT 0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT - col0 + - col0 * + 64 FROM tab2 AS cor0
----
-2990
-4160
-4875

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 98 - + 85 + + col0 AND - + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT - col1 + - col0 - + - col2 DIV - - ( 5 ) AS col0 FROM tab0 AS cor0
----
-106
-79
-87

skipif mysql # not compatible
query I rowsort label-9014
SELECT - col1 + - col0 - + - col2 / - - ( 5 ) AS col0 FROM tab0 AS cor0
----
-106
-79
-87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= + + col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + + col0 + - 16 AS col2 FROM tab0 AS cor0
----
-1
71
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - - col2, + col2 * + 93, + - col2, - - col0 + - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 13 * col0 * - - 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 27 + - col0 AS col1 FROM tab1
----
-112
-118
-78

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE - - col1 - + 75 + - 31 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT CAST( 19 AS SIGNED ) col2 FROM tab0
----
19
19
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9022
SELECT CAST ( 19 AS INTEGER ) col2 FROM tab0
----
19
19
19

query I rowsort
SELECT 41 * + + col2 * + + 26 AS col1 FROM tab2
----
24518
42640
61828

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT - + SUM( DISTINCT + + ( col1 ) ) AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-9024
SELECT - + SUM ( DISTINCT + + ( col1 ) ) AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-103

query I rowsort
SELECT col1 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9026
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + ( 88 ) + - - col2 AS col0 FROM tab1 AS cor0
----
147
156
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT - CAST( + 27 AS SIGNED ) - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-27

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - CAST ( + 27 AS INTEGER ) - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT - COUNT( * ), - SUM( ALL col0 ) AS col1 FROM tab2
----
-3
-185

skipif mysql # not compatible
query II rowsort label-9029
SELECT - COUNT ( * ), - SUM ( ALL col0 ) AS col1 FROM tab2
----
-3
-185

query II rowsort
SELECT - 2, 25 * col0 * + - col2 AS col2 FROM tab2 AS cor0
----
-2
-108750
-2
-26450
-2
-64000

query II rowsort
SELECT ALL - 97, col1 AS col2 FROM tab2 AS cor0
----
-97
51
-97
67
-97
77

query I rowsort
SELECT + + col2 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( 69 >= col2 ) )
----
115
64

query I rowsort
SELECT + col0 * + 59 FROM tab0 AS cor0
----
5133
5723
885

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > - 75 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL - SUM( ALL - + col2 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( 71 + - + 31, col1, + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - SUM ( ALL - + col2 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( 71 + - + 31, col1, + 88 )
----
NULL

query I rowsort
SELECT DISTINCT - ( + + col2 ) * ( - 78 ) FROM tab1
----
4602
5304
7488

query II rowsort
SELECT DISTINCT - - col2, + col1 FROM tab0 WHERE col1 IS NOT NULL
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT COUNT( - col1 ) * - - 52 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT COUNT ( - col1 ) * - - 52 FROM tab1
----
156

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 68 * + 7 * - col0 + 85 * + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col0 AS col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-9041
SELECT + + COUNT( * ) AS col1, + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-9041
SELECT + + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
9

query I rowsort
SELECT + 81 * + - col0 * - col0 AS col2 FROM tab0
----
18225
613089
762129

query I rowsort
SELECT + 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9044
SELECT - CAST( NULL AS SIGNED ) AS col0, 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6037db991b0d46b5edaafe414f0959a0

skipif mysql # not compatible
query II rowsort label-9044
SELECT - CAST ( NULL AS INTEGER ) AS col0, 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6037db991b0d46b5edaafe414f0959a0

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT + SUM( ALL 25 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 77 + + + 18 > - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + SUM ( ALL 25 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 77 + + + 18 > - 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT + 50 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
50
-3

skipif mysql # not compatible
query II rowsort label-9046
SELECT + 50 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
50
-3

query II rowsort
SELECT col1 AS col2, - 65 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
-65
21
-65
81
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT ALL + col0 DIV col1 * col1 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + col0 / col1 * col1 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT - + col0 DIV col0 * - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - + col0 / col0 * - col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT ALL - col0 * col1 * + col0 + - col1 + + col0 DIV col2 col2 FROM tab2 AS cor0
----
-107965
-315468
-376941

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT ALL - col0 * col1 * + col0 + - col1 + + col0 / col2 col2 FROM tab2 AS cor0
----
-107965
-315468
-376941

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9051
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) + 24 >= NULL
----

skipif mysql # not compatible
query III rowsort label-9051
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) + 24 >= NULL
----

query II rowsort
SELECT - - 6 AS col1, - 79 FROM tab2 AS cor0
----
6
-79
6
-79
6
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9053
SELECT DISTINCT CAST( + col0 AS SIGNED ) + 90 AS col0, col1 AS col1 FROM tab1 cor0
----
141
14
175
5
181
47

skipif mysql # not compatible
query II rowsort label-9053
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + 90 AS col0, col1 AS col1 FROM tab1 cor0
----
141
14
175
5
181
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT ALL 49 + - 3 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + 88 + + + ( + COUNT( * ) ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9057
SELECT + 88 + + + ( + COUNT ( * ) ) FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT COUNT( * ) + + 29 - - 90 FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-9058
SELECT COUNT ( * ) + + 29 - - 90 FROM tab0
----
122

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( - col2 ) NOT IN ( + col0 + - col1, col0 )
----

query I rowsort
SELECT DISTINCT 33 + - 48 AS col2 FROM tab2
----
-15

query II rowsort
SELECT DISTINCT col2 AS col2, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + + 29 / col0 * + col0 FROM tab1 WHERE - 69 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 26 col2 FROM tab0 AS cor0
----
-61
-71
11

query I rowsort
SELECT 64 * - 18 AS col1 FROM tab1 AS cor0
----
-1152
-1152
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9065
SELECT MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9066
SELECT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 <= 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT + + CAST( + - 60 AS SIGNED ) FROM tab2 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-9069
SELECT + + CAST ( + - 60 AS INTEGER ) FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT DISTINCT + - col2 * - - col0 * + - CAST( NULL AS SIGNED ) * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + - col2 * - - col0 * + - CAST ( NULL AS INTEGER ) * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + + 31 AS col0 FROM tab0
----
2697
3007
465

query I rowsort
SELECT - ( 44 ) AS col0 FROM tab1
----
-44
-44
-44

query II rowsort
SELECT + 60, + 8 + - + ( - col1 ) AS col0 FROM tab0
----
60
29
60
89
60
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT + ( - - 82 ) FROM tab2 WHERE NOT - 35 NOT IN ( CAST( NULL AS SIGNED ), col0, 24 + col1, - 62, + col0, + 60 + + - col1, + 79, 57 )
----

skipif mysql # not compatible
query I rowsort label-9074
SELECT + ( - - 82 ) FROM tab2 WHERE NOT - 35 NOT IN ( CAST ( NULL AS INTEGER ), col0, 24 + col1, - 62, + col0, + 60 + + - col1, + 79, 57 )
----

query I rowsort
SELECT ALL col0 * + + 50 FROM tab0
----
4350
4850
750

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT DISTINCT 93 DIV + col2 + + - col2 + + 54 col0 FROM tab2 AS cor0
----
-3
16
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT DISTINCT 93 / + col2 + + - col2 + + 54 col0 FROM tab2 AS cor0
----
-3
16
35

query I rowsort
SELECT DISTINCT - ( col0 ) * 87 FROM tab1
----
-4437
-7395
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT COUNT( * ) col0 FROM tab0 WHERE NULL IN ( col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9078
SELECT COUNT ( * ) col0 FROM tab0 WHERE NULL IN ( col0 )
----
0

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT SUM( ( + col1 ) ) * + COUNT( * ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-9080
SELECT SUM ( ( + col1 ) ) * + COUNT ( * ) FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ( COUNT( * ) ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9081
SELECT ( COUNT ( * ) ) * + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT ALL + col0 * 20 FROM tab2
----
1280
1500
920

query I rowsort
SELECT - col1 - 45 AS col1 FROM tab0
----
-126
-46
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT ALL col0 + - CAST( col1 AS SIGNED ) AS col2 FROM tab1 WHERE 47 * + col1 IS NOT NULL
----
37
44
80

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL col0 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHERE 47 * + col1 IS NOT NULL
----
37
44
80

query I rowsort
SELECT + col0 / + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - ( + 30 ) ) NOT BETWEEN - col0 AND NULL
----
15
81
47

query I rowsort
SELECT ALL + 44 + 44 FROM tab2
----
88
88
88

query I rowsort
SELECT - col2 * col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * + 47 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9090
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9090
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT MAX( 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT MAX ( 52 ) FROM tab0
----
52

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 47 ) >= + 41
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < 11
----

query I rowsort
SELECT col0 + col2 * + col2 AS col0 FROM tab0
----
187
2224
9898

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9096
SELECT ALL * FROM tab0 WHERE NOT col0 + + 88 <> CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-9096
SELECT ALL * FROM tab0 WHERE NOT col0 + + 88 <> CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT col0 + - 62 FROM tab2
----
-16
13
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT col1 + 15 DIV col2 AS col1 FROM tab0
----
1
22
81

skipif mysql # not compatible
query I rowsort label-9098
SELECT col1 + 15 / col2 AS col1 FROM tab0
----
1
22
81

query I rowsort
SELECT ALL col1 * - ( - col1 * - 96 ) FROM tab1
----
-18816
-212064
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT col1 * - col1 + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT IN ( 71 )
----

skipif mysql # not compatible
query I rowsort label-9100
SELECT col1 * - col1 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT IN ( 71 )
----

query I rowsort
SELECT DISTINCT col0 * 28 FROM tab0
----
2436
2716
420

query I rowsort
SELECT + col0 + - col2 * col1 AS col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT 6 DIV + 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT 6 / + 82 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT - col2 DIV ( col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT - col2 / ( col0 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 8 col1 FROM tab2 WHERE col2 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 51 / col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) - + col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col0 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT - SUM( + col0 ) * ( 99 ) AS col1 FROM tab2 cor0
----
-18315

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - SUM ( + col0 ) * ( 99 ) AS col1 FROM tab2 cor0
----
-18315

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT DISTINCT - col0 + - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT - col0 + - col1 / + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 89 * + col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT + COUNT( * ) + + COUNT( * ) * - 61 FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9113
SELECT + COUNT ( * ) + + COUNT ( * ) * - 61 FROM tab0 cor0
----
-180

query I rowsort
SELECT DISTINCT col0 / col1 FROM tab0 WHERE NOT ( col0 + 4 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL IN ( 37 * + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL IN ( 37 * + 77 )
----
0

query I rowsort
SELECT 80 AS col2 FROM tab1 cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + MIN( 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9117
SELECT + MIN ( 53 ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT + - 48 AS col1 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + + MIN( col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + + MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - col0 / 37 FROM tab0 AS cor0 WHERE NOT + col1 >= - ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 * - 10 AND ( - 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 28 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT + 81 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
81
81
81

query I rowsort
SELECT col1 * + - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT COUNT( * ) * - - COUNT( 84 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9126
SELECT COUNT ( * ) * - - COUNT ( 84 ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9127
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * - CAST( - col2 AS SIGNED ) ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9127
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * - CAST ( - col2 AS INTEGER ) ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT + 3 * - + col2 FROM tab1
----
-177
-204
-288

query I rowsort
SELECT DISTINCT - col1 * - 2 FROM tab2
----
102
134
154

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - 22
----

query I rowsort
SELECT + col2 + - 0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL + COUNT( * ) * COUNT( * ) + 81 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + COUNT ( * ) * COUNT ( * ) + 81 FROM tab1 AS cor0
----
90

query II rowsort
SELECT col2, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT COUNT( col1 ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( col1 ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL NOT IN ( 54 + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT COUNT( * ) * 86 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-9138
SELECT COUNT ( * ) * 86 FROM tab0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9139
SELECT ALL * FROM tab1 WHERE NOT ( - + 7 * CAST( - col2 AS SIGNED ) ) <> ( col0 * + 88 )
----

skipif mysql # not compatible
query III rowsort label-9139
SELECT ALL * FROM tab1 WHERE NOT ( - + 7 * CAST ( - col2 AS INTEGER ) ) <> ( col0 * + 88 )
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 * + - 73 AS col1 FROM tab0 AS cor0
----
-15330
-277911
-7227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT + col1 + - col0 / + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col0 + - col0 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + col1 + - col0 / + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col0 + - col0 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( - 39 * - col2 )
----

query I rowsort
SELECT ALL 14 + + + col1 AS col2 FROM tab2 AS cor0
----
65
81
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 50 * + + 92 NOT IN ( - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE 72 + - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE 72 + - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT 5 * - MAX( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT 5 * - MAX ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
255

query I rowsort
SELECT DISTINCT + 13 + - - col1 AS col2 FROM tab0 AS cor0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 AS cor0 WHERE NOT ( 51 ) <> ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - + COUNT( * ) + - - MAX( DISTINCT + col2 ) + COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9150
SELECT - + COUNT ( * ) + - - MAX ( DISTINCT + col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT + 50 + SUM( + 76 ) AS col1 FROM tab0
----
278

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + 50 + SUM ( + 76 ) AS col1 FROM tab0
----
278

query I rowsort
SELECT - col1 + col2 + - col0 FROM tab2
----
-101
-74
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 6 * - col1 + + col1 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 74 - + col2 FROM tab0
----
-121
-173
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9155
SELECT * FROM tab1 AS cor0 WHERE - 55 * - ( - 26 ) < - CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-9155
SELECT * FROM tab1 AS cor0 WHERE - 55 * - ( - 26 ) < - CAST ( NULL AS INTEGER ) * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > ( - 39 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT + + 22 * - col0 DIV + ( - + col0 ) FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9158
SELECT + + 22 * - col0 / + ( - + col0 ) FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + 59 * + 43 + 65 ) IN ( col2 ) )
----

query I rowsort
SELECT ALL - 93 * + col1 AS col0 FROM tab0 cor0
----
-1953
-7533
-93

query I rowsort
SELECT DISTINCT + ( col2 ) * - - col2 * - + 82 AS col1 FROM tab0 AS cor0
----
-181138
-803682
-8200

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT SUM( ALL - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9162
SELECT SUM ( ALL - col1 ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9164
SELECT * FROM tab0 AS cor0 WHERE NOT ( 23 ) NOT BETWEEN col1 AND - col2 * + col2 * + ( + col1 * 46 ) + - CAST( - col1 + col0 * col0 AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-9164
SELECT * FROM tab0 AS cor0 WHERE NOT ( 23 ) NOT BETWEEN col1 AND - col2 * + col2 * + ( + col1 * 46 ) + - CAST ( - col1 + col0 * col0 AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 NOT IN ( - 11 + - ( col1 ) * col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - - col0 ) AND col1
----

query I rowsort
SELECT ALL + 58 * + + col2 FROM tab1 AS cor0
----
3422
3944
5568

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9168
SELECT CAST( NULL AS DECIMAL ), + col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9168
SELECT CAST ( NULL AS REAL ), + col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT - + ( - ( + 89 ) ) FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - ( + - 71 ) + - 46 * - ( + col1 ) FROM tab0 cor0
----
1037
117
3797

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - MIN( ( - + col2 ) ) FROM tab1 WHERE NOT + col0 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - MIN ( ( - + col2 ) ) FROM tab1 WHERE NOT + col0 IS NULL
----
96

query I rowsort
SELECT DISTINCT 19 + - 3 FROM tab2
----
16

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col1 NOT IN ( col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9175
SELECT + col2 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 WHERE NOT ( col2 * + + col0 / + 21 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT + col2 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 WHERE NOT ( col2 * + + col0 / + 21 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL - MAX( col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - MAX ( col2 ) FROM tab0
----
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + COUNT( * ) + + MIN( 65 ) AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN 95 * - col0 * + - col2 * col1 AND ( - + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + COUNT ( * ) + + MIN ( 65 ) AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN 95 * - col0 * + - col2 * col1 AND ( - + 83 )
----
NULL

query II rowsort
SELECT col0 AS col0, 41 - - + col2 FROM tab2 cor0
----
46
64
64
81
75
99

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE - col2 * + 3 + - - col0 <= + - ( 61 )
----
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT - COUNT( * ) / - - CAST( NULL AS SIGNED ) * + 62 + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) * + 62 + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT - COUNT( * ), + MIN( DISTINCT - 37 ) col1 FROM tab2 AS cor0
----
-3
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9183
SELECT - COUNT ( * ), + MIN ( DISTINCT - 37 ) col1 FROM tab2 AS cor0
----
-3
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT col2 * col2 AS col0 FROM tab2 AS cor0 WHERE col1 * + + 39 NOT IN ( - CAST( NULL AS SIGNED ), - 11 )
----

skipif mysql # not compatible
query I rowsort label-9184
SELECT col2 * col2 AS col0 FROM tab2 AS cor0 WHERE col1 * + + 39 NOT IN ( - CAST ( NULL AS INTEGER ), - 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT 69 + + - col0 DIV col1 FROM tab1
----
52
66
68

skipif mysql # not compatible
query I rowsort label-9185
SELECT 69 + + - col0 / col1 FROM tab1
----
52
66
68

query I rowsort
SELECT - 8 * + - col2 - - 68 + 1 AS col2 FROM tab1 AS cor0
----
541
613
837

query I rowsort
SELECT 59 * - - 55 FROM tab1 AS cor0 WHERE ( 30 * - 73 ) <= NULL
----

query I rowsort
SELECT ALL + ( + ( - + 72 ) ) * - col2 AS col2 FROM tab1 AS cor0
----
4248
4896
6912

query I rowsort
SELECT DISTINCT 16 * + - 23 AS col2 FROM tab2 AS cor0
----
-368

query II rowsort
SELECT ALL + 85 + col1, - ( + 10 ) AS col1 FROM tab2 AS cor0
----
136
-10
152
-10
162
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 < + col2
----

query I rowsort
SELECT DISTINCT - 65 + - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN + 71 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT COUNT( DISTINCT - col2 ) * + 18 - - 66 AS col0 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( DISTINCT - col2 ) * + 18 - - 66 AS col0 FROM tab1
----
120

query I rowsort
SELECT 15 * + col2 + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT ALL + CAST( NULL AS SIGNED ) - + 89 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + CAST ( NULL AS INTEGER ) - + 89 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - MAX( ALL - + col1 ) - + ( SUM( DISTINCT - - 22 ) ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9197
SELECT - MAX ( ALL - + col1 ) - + ( SUM ( DISTINCT - - 22 ) ) FROM tab0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 74 col0, col0 FROM tab1
----
-74
51
-74
85
-74
91

query II rowsort
SELECT 47 AS col2, + col2 + 15 + - col0 + col1 - + col2 FROM tab2
----
47
20
47
28
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9201
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9201
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * ( + - col1 ) <= NULL
----

query I rowsort
SELECT + + col1 * - + col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - 40 + + - col1 + - - 51 - + col1, col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT ALL + COUNT( * ) DIV + 92 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + COUNT ( * ) / + 92 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT col2 * + - col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col0 * 15 AS col2 FROM tab0
----
1305
1455
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT ALL col2 * - col2 + 28 + col0 FROM tab2 WHERE ( - col1 / + CAST( - 39 AS SIGNED ) <> ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL col2 * - col2 + 28 + col0 FROM tab2 WHERE ( - col1 / + CAST ( - 39 AS INTEGER ) <> ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 33 * - col2 BETWEEN - 11 AND - col0 * col2
----

query I rowsort
SELECT + 25 AS col2 FROM tab1 cor0
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9211
SELECT ALL + - CAST( NULL AS DECIMAL ) / - COUNT( * ) * + COUNT( * ) * - + COUNT( DISTINCT + - ( + 36 ) ) / COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + - CAST ( NULL AS REAL ) / - COUNT ( * ) * + COUNT ( * ) * - + COUNT ( DISTINCT + - ( + 36 ) ) / COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 78 - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - + 42 * - 37 <> ( - - 11 * 40 ) OR col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 26 - + col2 * col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9214
SELECT ALL - col2 DIV col0, 28 + + col2 AS col2 FROM tab2 AS cor0
----
0
51
0
68
0
86

skipif mysql # not compatible
query II rowsort label-9214
SELECT ALL - col2 / col0, 28 + + col2 AS col2 FROM tab2 AS cor0
----
0
51
0
68
0
86

query I rowsort
SELECT ALL + col0 * col1 - + 18 + - + 93 * - + ( 56 ) AS col2 FROM tab1 cor0
----
5615
5904
9467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT 99 * - 54 FROM tab2 AS cor0 WHERE NOT + col2 + + CAST( 68 AS SIGNED ) IS NULL
----
-5346
-5346
-5346

skipif mysql # not compatible
query I rowsort label-9216
SELECT 99 * - 54 FROM tab2 AS cor0 WHERE NOT + col2 + + CAST ( 68 AS INTEGER ) IS NULL
----
-5346
-5346
-5346

query II rowsort
SELECT col1 AS col2, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9219
SELECT col1 + - + col1 - - + CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT col1 + - + col1 - - + CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9220
SELECT COUNT( * ) DIV + + 70 + - 34 * - COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-9220
SELECT COUNT ( * ) / + + 70 + - 34 * - COUNT ( * ) FROM tab2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - MAX( ALL - - col1 ) + + 63 - + COUNT( DISTINCT - + ( - col2 ) ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-9221
SELECT - MAX ( ALL - - col1 ) + + 63 - + COUNT ( DISTINCT - + ( - col2 ) ) FROM tab1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL CAST( NULL AS SIGNED ) / 66 / - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL CAST ( NULL AS INTEGER ) / 66 / - - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + - 35 + + MIN( - 66 ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-9225
SELECT + - 35 + + MIN ( - 66 ) FROM tab2 AS cor0
----
-101

query II rowsort
SELECT ALL col0, + 87 AS col2 FROM tab1 AS cor0
----
51
87
85
87
91
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT + SUM( ALL 14 ) AS col2 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT + SUM ( ALL 14 ) AS col2 FROM tab1 cor0
----
42

query I rowsort
SELECT DISTINCT + ( + 0 ) + + - ( - 56 ) AS col2 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + 39 * 7 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + 39 * 7 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT DISTINCT - - col2 + + CAST( ( - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT - - col2 + + CAST ( ( - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT 20 AS col2 FROM tab2 cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + - col2 col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NULL < - - ( - - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL < - - ( - - 39 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9234
SELECT * FROM tab2 WHERE ( - CAST( - col1 AS DECIMAL ) ) IS NOT NULL OR ( NOT NULL > ( NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9234
SELECT * FROM tab2 WHERE ( - CAST ( - col1 AS REAL ) ) IS NOT NULL OR ( NOT NULL > ( NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 18 * + 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22666e132673523aadd4903c94ef6930

query II rowsort
SELECT ALL + 56, + col1 - 77 * 48 + - - col1 AS col0 FROM tab1
----
56
-3602
56
-3668
56
-3686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT + col0 - + - col0 * 39 * + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-295104
-366854
-8760

skipif mysql # not compatible
query I rowsort label-9237
SELECT + col0 - + - col0 * 39 * + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-295104
-366854
-8760

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + + col2 < NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL + + COUNT( * ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9239
SELECT ALL + + COUNT ( * ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND + + 84 * + + 53 AND col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 + - + col2 - - col0 * - - 47 col1, 48 + - - 62 + col0 AS col0 FROM tab2 AS cor0
----
2116
156
2928
174
3409
185

query I rowsort
SELECT 93 + - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-45
28
3

query I rowsort
SELECT + col0 + - - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + ( + 53 ) FROM tab0 AS cor0
----
140
150
68

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, col1 * + - 43 AS col1 FROM tab0 AS cor0
----
10
-903
47
-3483
99
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT DISTINCT - col2 + + + col1 DIV + col1 + col1 + col2 AS col0 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT - col2 + + + col1 / + col1 + col1 + col2 AS col0 FROM tab2 AS cor0
----
52
68
78

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + col2 - + ( + 53 ) - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT + SUM( ALL - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + SUM ( ALL - col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT col0 DIV - ( - - col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9250
SELECT col0 / - ( - - col2 ) FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9251
SELECT CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 * 28 FROM tab2
----
1428
1876
2156

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT CAST( COUNT( * ) AS SIGNED ) * + + 27 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9255
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + + 27 FROM tab1 AS cor0
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + 25 - 86 * - 85 >= ( + 55 )
----

query I rowsort
SELECT ALL col2 * - ( + - col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT - 31 * + - MAX( ALL col1 ) AS col1 FROM tab2 cor0 WHERE ( col2 ) NOT BETWEEN NULL AND + 70 / - 39
----
2387

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - 31 * + - MAX ( ALL col1 ) AS col1 FROM tab2 cor0 WHERE ( col2 ) NOT BETWEEN NULL AND + 70 / - 39
----
2387

query I rowsort
SELECT + + col1 * - 75 + + col2 + - col1 + - col0 * - col1 FROM tab2 AS cor0
----
-1507
-884
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT DISTINCT + + COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) * - + 47 + MIN( + 37 ) FROM tab2 AS cor0
----
-386

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT + + COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) * - + 47 + MIN ( + 37 ) FROM tab2 AS cor0
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT 47 * - MAX( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
2162

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT 47 * - MAX ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT - 93 AS col2 FROM tab0 AS cor0 WHERE - CAST( - + col1 AS SIGNED ) IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - 93 AS col2 FROM tab0 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT 39 * + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-9263
SELECT 39 * + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT + ( ( + col0 ) ) DIV + 48 + 44 + + ( 84 ) FROM tab2 AS cor0
----
128
129
129

skipif mysql # not compatible
query I rowsort label-9264
SELECT + ( ( + col0 ) ) / + 48 + 44 + + ( 84 ) FROM tab2 AS cor0
----
128
129
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9265
SELECT + CAST( NULL AS SIGNED ) AS col0, + MAX( col2 ) col2 FROM tab0 AS cor0
----
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9265
SELECT + CAST ( NULL AS INTEGER ) AS col0, + MAX ( col2 ) col2 FROM tab0 AS cor0
----
NULL
99

query I rowsort
SELECT ALL + 72 * + 41 FROM tab0
----
2952
2952
2952

query I rowsort
SELECT 67 * - - 58 FROM tab2
----
3886
3886
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-9268
SELECT ALL col0 DIV col0 AS col0, col2 col1 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9268
SELECT ALL col0 / col0 AS col0, col2 col1 FROM tab2
----
1
23
1
40
1
58

query II rowsort
SELECT ALL + + 47 * + + col0, + col0 - - + 92 FROM tab1 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9271
SELECT ALL - CAST( NULL AS SIGNED ) / + 78 + ( - 37 ) + col2 col1, - ( + 18 ) FROM tab1 AS cor0
----
NULL
-18
NULL
-18
NULL
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9271
SELECT ALL - CAST ( NULL AS INTEGER ) / + 78 + ( - 37 ) + col2 col1, - ( + 18 ) FROM tab1 AS cor0
----
NULL
-18
NULL
-18
NULL
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - COUNT( + - 7 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - COUNT ( + - 7 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT + - ( + COUNT( * ) ) + + 72 col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9273
SELECT DISTINCT + - ( + COUNT ( * ) ) + + 72 col2 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL + 41 + + CAST( NULL AS SIGNED ) + + 19 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + 41 + + CAST ( NULL AS INTEGER ) + + 19 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * - + col1 * + - col2, col2 AS col2 FROM tab0 WHERE col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + - ( - 24 ) + - 90 BETWEEN NULL AND + + col1 * col0 - - + col1
----

query II rowsort
SELECT DISTINCT 11, col1 AS col1 FROM tab2
----
11
51
11
67
11
77

query I rowsort
SELECT ALL col0 - + - col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + + 28 AS col0 FROM tab0 cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 91 ) col0 FROM tab2 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL - SUM( - + 95 ) AS col1 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - SUM ( - + 95 ) AS col1 FROM tab2 AS cor0
----
285

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col0 * col1 - + 23
----

query I rowsort
SELECT ALL ( - + 21 ) FROM tab0
----
-21
-21
-21

query I rowsort
SELECT col1 * col0 AS col2 FROM tab0 WHERE NOT + + col1 - + 3 >= - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2, col2 col2, + col0 * - col1 FROM tab2
----
9 values hashing to ec368b8a919bd0b46ea074c8e1f444a6

query II rowsort
SELECT + col1 * + col1 + 41 * + 89, - 71 + + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( + + col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL - COUNT( * ) * + SUM( ALL + + 78 ) AS col2 FROM tab1
----
-702

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - COUNT ( * ) * + SUM ( ALL + + 78 ) AS col2 FROM tab1
----
-702

query I rowsort
SELECT ALL 32 * + + 78 FROM tab1
----
2496
2496
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 5 col0 FROM tab2
----
-23
5
-40
5
-58
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT ALL + 89 AS col0, MIN( + - col1 ) FROM tab0
----
89
-81

skipif mysql # not compatible
query II rowsort label-9291
SELECT ALL + 89 AS col0, MIN ( + - col1 ) FROM tab0
----
89
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9292
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( - - 17 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9292
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( - - 17 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 64 * - - 20 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1280
1280
1280

query II rowsort
SELECT ALL + + col1, - col0 AS col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < col0
----
0

query I rowsort
SELECT col0 * + col2 * - 71 AS col0 FROM tab2
----
-181760
-308850
-75118

query I rowsort
SELECT 69 AS col0 FROM tab2 WHERE NOT + - col0 > - 34 - + col1 / + col0 * + col1 * ( 26 ) * + col2 + - col2 * + + col1 * col2 + + 43
----

query I rowsort
SELECT col2 * - - 37 FROM tab0
----
1739
3663
370

query I rowsort
SELECT 62 FROM tab2 WHERE NOT - col0 * 40 IS NULL
----
62
62
62

query I rowsort
SELECT - 34 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 >= + 66 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 59 + - col0 FROM tab1 cor0
----
-26
-32
8

query I rowsort
SELECT ALL col2 + + 12 AS col1 FROM tab0 AS cor0
----
111
22
59

query I rowsort
SELECT ALL col1 + - col0 + + ( - 76 ) + - col1 * 55 FROM tab2 AS cor0
----
-2876
-3769
-4298

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 26 AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE - 16 NOT IN ( + 21 / + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 65 AS col2 FROM tab0
----
-16
44
64

query I rowsort
SELECT ALL - col2 + + + col1 AS col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT 95 + + COUNT( * ) col0 FROM tab0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9309
SELECT 95 + + COUNT ( * ) col0 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 + + 15 * + - 45 * + col2 col2 FROM tab1
----
-39735
-45762
-64735

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9312
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ( ( - + COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9314
SELECT ( ( - + COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9315
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
-3481
NULL
-4624
NULL
-9216

skipif mysql # not compatible
query II rowsort label-9315
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
-3481
NULL
-4624
NULL
-9216

query I rowsort
SELECT col2 - + 13 * + col2 AS col0 FROM tab0
----
-1188
-120
-564

query I rowsort
SELECT + + col0 * - ( - + col2 ) FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT - + col1 * + + col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT ALL col1 * + 93 * + col0 + - - col0 DIV + 29 AS col2 FROM tab2 AS cor0
----
218179
458306
467327

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL col1 * + 93 * + col0 + - - col0 / + 29 AS col2 FROM tab2 AS cor0
----
218179
458306
467327

query I rowsort
SELECT - 7 * col0 AS col0 FROM tab0 AS cor0
----
-105
-609
-679

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9321
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NOT col0 + CAST( NULL AS SIGNED ) * 11 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9321
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NOT col0 + CAST ( NULL AS INTEGER ) * 11 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT - CAST( 38 AS SIGNED ) FROM tab0 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-9322
SELECT - CAST ( 38 AS INTEGER ) FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9323
SELECT DISTINCT + CAST( + - col0 AS SIGNED ), 60 AS col2 FROM tab2 AS cor0
----
-46
60
-64
60
-75
60

skipif mysql # not compatible
query II rowsort label-9323
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ), 60 AS col2 FROM tab2 AS cor0
----
-46
60
-64
60
-75
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-102
-170
-182

query I rowsort
SELECT + col1 * + 55 AS col1 FROM tab1
----
2585
275
770

query I rowsort
SELECT DISTINCT col2 * - + 99 FROM tab0 AS cor0 WHERE - 35 IS NOT NULL
----
-4653
-9801
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT MIN( ALL - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9328
SELECT MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL 39 FROM tab1 WHERE NOT NULL IS NOT NULL
----
39
39
39

query I rowsort
SELECT ALL - 69 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT + col2 + + - 5 AS col2 FROM tab2
----
18
35
53

query II rowsort
SELECT ALL col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT + 17 + 65 AS col2 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + ( - + 80 ) AS col1 FROM tab1 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT col2 + + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

query II rowsort
SELECT ALL + col2, col1 - col1 FROM tab1 cor0 WHERE ( - 83 ) IS NOT NULL
----
59
0
68
0
96
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 20 < - col2 + + - col0
----

query II rowsort
SELECT DISTINCT - col0 * - 96 * + col2 + - - col1 AS col1, ( 98 ) + ( - col2 ) AS col0 FROM tab1 AS cor0
----
470030
2
481445
39
594095
30

query I rowsort
SELECT 65 * + col2 AS col1 FROM tab0
----
3055
6435
650

query III rowsort
SELECT ALL * FROM tab1 WHERE - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - col0 * col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT - 50 - COUNT( * ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - 50 - COUNT ( * ) FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT 13 - + - SUM( + 70 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9344
SELECT 13 - + - SUM ( + 70 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT - + 59 - + col0 * - col2 AS col2 FROM tab0 AS cor0
----
646
811
9544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT 2 * - 8 AS col2 FROM tab2 AS cor0 WHERE NOT - 70 + + col2 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT 2 * - 8 AS col2 FROM tab2 AS cor0 WHERE NOT - 70 + + col2 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - col2 + col1 + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 43 + ( - + 34 ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + 30 FROM tab2 AS cor0 WHERE NULL IS NULL
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT - col1 DIV + col0 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT - col1 / + col0 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + ( - - col1 ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT + col1 AS col2, - col2 + + + col2 AS col2 FROM tab0
----
1
0
21
0
81
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 BETWEEN col0 AND + - 43 + col2 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 15 FROM tab2 AS cor0 WHERE + col1 <= ( col2 )
----

query I rowsort
SELECT ALL 62 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9357
SELECT ALL * FROM tab1 WHERE NOT - 57 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9357
SELECT ALL * FROM tab1 WHERE NOT - 57 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT SUM ( col2 ) FROM tab1
----
223

query I rowsort
SELECT + col0 * - 77 * + col2 AS col1 FROM tab0
----
-54285
-66990
-739431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT - 37 DIV - - COUNT( * ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 37 / - - COUNT ( * ) AS col1 FROM tab2
----
-12

query I rowsort
SELECT - 51 * col1 FROM tab1
----
-2397
-255
-714

query I rowsort
SELECT ALL - 40 * - - col1 AS col1 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT DISTINCT - - ( + - CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - - ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT col1 DIV + - col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT col1 / + - col2 FROM tab0
----
-1
-2
0

query II rowsort
SELECT ALL col0 * + col0 + + + col1, 55 AS col2 FROM tab0 AS cor0
----
306
55
7590
55
9410
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9366
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( CAST( NULL AS SIGNED ) * 14 + + + 90 )
----

skipif mysql # not compatible
query III rowsort label-9366
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( CAST ( NULL AS INTEGER ) * 14 + + + 90 )
----

query I rowsort
SELECT ALL + + col1 + + col2 - + col0 FROM tab1 AS cor0
----
-21
24
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + col1 * + 31 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9369
SELECT - col2 * - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) + + col2 + + col2 * 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT - col2 * - CAST ( - CAST ( NULL AS REAL ) AS REAL ) + + col2 + + col2 * 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - + - 92 * + 84 FROM tab0
----
7647
7707
7727

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9372
SELECT ALL - 52 / - CAST( NULL AS DECIMAL ) + - 85 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - 52 / - CAST ( NULL AS REAL ) + - 85 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col1 + + + col2 AS col2 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( * ) * + - 51 col0 FROM tab0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9374
SELECT - COUNT ( * ) * + - 51 col0 FROM tab0
----
153

query I rowsort
SELECT ALL + 7 - - 85 + - - col0 FROM tab2
----
138
156
167

query II rowsort
SELECT ALL - 1 * + col2, - col0 AS col1 FROM tab0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9378
SELECT * FROM tab0 AS cor0 WHERE col2 / CAST( NULL AS SIGNED ) * col2 IN ( + - 22 )
----

skipif mysql # not compatible
query III rowsort label-9378
SELECT * FROM tab0 AS cor0 WHERE col2 / CAST ( NULL AS INTEGER ) * col2 IN ( + - 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT - MIN( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - MIN ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT ALL - - CAST( + - col2 AS SIGNED ) AS col1 FROM tab2 WHERE ( NOT ( - col2 ) IS NULL )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2 WHERE ( NOT ( - col2 ) IS NULL )
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 4 * + col1 col0 FROM tab1 AS cor0
----
188
20
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT + col1 * - col2 + - col2 DIV - col0 FROM tab0 AS cor0
----
-210
-3804
-98

skipif mysql # not compatible
query I rowsort label-9384
SELECT + col1 * - col2 + - col2 / - col0 FROM tab0 AS cor0
----
-210
-3804
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT - 63 * - CAST( + AVG ( ALL 9 ) AS SIGNED ) FROM tab0 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-9385
SELECT - 63 * - CAST ( + AVG ( ALL 9 ) AS INTEGER ) FROM tab0 AS cor0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + MIN( ALL + + 69 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9386
SELECT + MIN ( ALL + + 69 ) FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9387
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT ALL - 76 AS col0, COUNT( * ) + + 76 FROM tab0
----
-76
79

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL - 76 AS col0, COUNT ( * ) + + 76 FROM tab0
----
-76
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + SUM( ALL - 46 ) col0 FROM tab0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT + SUM ( ALL - 46 ) col0 FROM tab0
----
-138

query I rowsort
SELECT DISTINCT - col0 * 21 + + 46 + - 83 AS col0 FROM tab1 WHERE + 71 IS NOT NULL
----
-1108
-1822
-1948

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT - COUNT( * ), 11 AS col0 FROM tab2 cor0
----
-3
11

skipif mysql # not compatible
query II rowsort label-9392
SELECT - COUNT ( * ), 11 AS col0 FROM tab2 cor0
----
-3
11

query I rowsort
SELECT DISTINCT col2 * col2 + + col2 - + - 96 * + col0 * + - 44 FROM tab0 AS cor0
----
-367378
-399828
-61104

query I rowsort
SELECT DISTINCT col2 - 80 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-33
-70
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT 84 * + + COUNT( * ) col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9395
SELECT 84 * + + COUNT ( * ) col0 FROM tab1 AS cor0
----
252

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT col2 + - CAST( + 97 AS SIGNED ) col1 FROM tab2
----
-39
-57
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9397
SELECT col2 + - CAST ( + 97 AS INTEGER ) col1 FROM tab2
----
-39
-57
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT - MAX( ALL + 57 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT - MAX ( ALL + 57 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT SUM( - col0 ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9400
SELECT DISTINCT SUM ( - col0 ) col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + + col0 * - 54 FROM tab2 AS cor0
----
-2484
-3456
-4050

query I rowsort
SELECT - col1 * - + col2 - - col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
100
231
3888

query I rowsort
SELECT - - 41 AS col1 FROM tab2 AS cor0
----
41
41
41

query II rowsort
SELECT DISTINCT + col1 + + 35, col2 FROM tab0 cor0
----
116
47
36
99
56
10

query I rowsort
SELECT ALL - ( col2 ) + - 93 AS col0 FROM tab2
----
-116
-133
-151

query I rowsort
SELECT ALL ( + ( - col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL + COUNT( * ) + + - CAST( + - 10 AS SIGNED ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + COUNT ( * ) + + - CAST ( + - 10 AS INTEGER ) FROM tab2
----
13

query I rowsort
SELECT + 59 - 16 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( NOT + ( + 64 ) = ( NULL ) )
----

query II rowsort
SELECT DISTINCT col1, 20 AS col0 FROM tab1 AS cor0
----
14
20
47
20
5
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9411
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-9411
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 56 IN ( - 97 + + 84 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 > + 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT DISTINCT MAX( - col0 ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-46
-3

skipif mysql # not compatible
query II rowsort label-9414
SELECT DISTINCT MAX ( - col0 ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-46
-3

query II rowsort
SELECT - col2 AS col2, ( + col0 ) FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT ALL + col1 AS col2, 76 * col1 FROM tab1 AS cor0
----
14
1064
47
3572
5
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9417
SELECT DISTINCT + - ( - + 95 ) * - COUNT( * ) DIV + COUNT( * ) AS col2, 58 AS col0 FROM tab0 cor0
----
-95
58

skipif mysql # not compatible
query II rowsort label-9417
SELECT DISTINCT + - ( - + 95 ) * - COUNT ( * ) / + COUNT ( * ) AS col2, 58 AS col0 FROM tab0 cor0
----
-95
58

query I rowsort
SELECT - - 17 * - 64 - + ( 86 ) FROM tab2 cor0
----
-1174
-1174
-1174

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT SUM( ALL + + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL + MAX( 36 ) * 87 FROM tab1
----
3132

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + MAX ( 36 ) * 87 FROM tab1
----
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL 44 * + CAST( NULL AS SIGNED ) * + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT ALL 44 * + CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT - COUNT( * ) * - 30 * + COUNT( * ) * + 55 col1 FROM tab0
----
14850

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9423
SELECT DISTINCT - COUNT ( * ) * - 30 * + COUNT ( * ) * + 55 col1 FROM tab0
----
14850

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT + MIN( 22 ) + - + COUNT( * ) AS col0, + ( - 57 ) FROM tab2
----
19
-57

skipif mysql # not compatible
query II rowsort label-9424
SELECT + MIN ( 22 ) + - + COUNT ( * ) AS col0, + ( - 57 ) FROM tab2
----
19
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT ALL - ( - COUNT( * ) ) DIV COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - ( - COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - + COUNT( + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - + COUNT ( + col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + - - 15 FROM tab0 AS cor0
----
16
36
96

query I rowsort
SELECT col2 * + + ( col0 ) AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN col0 AND + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col0 * - col2 col0, - col1 + col1 + 3 FROM tab2 AS cor0
----
-1081
3
-2600
3
-4408
3

query I rowsort
SELECT DISTINCT - + col0 * + + col2 + - col2 AS col0 FROM tab2 AS cor0
----
-1081
-2600
-4408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + - - col0 col2 FROM tab2 cor0
----
2162
4160
5700

query I rowsort
SELECT ALL - col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + 17 * + col1 + - 50 + 41 AS col2 FROM tab2 AS cor0
----
1130
1300
858

query I rowsort
SELECT - - 65 + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-25
-73
0

query I rowsort
SELECT ALL - col1 * + 50 + + col2 AS col2 FROM tab1
----
-191
-2282
-604

query III rowsort
SELECT * FROM tab1 WHERE + 91 BETWEEN + 28 AND NULL
----

query I rowsort
SELECT ( + 3 ) FROM tab2
----
3
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 87 - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE + col0 * - - col2 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT COUNT( DISTINCT - - col1 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9442
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT - ( MAX( - + 90 ) ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT - ( MAX ( - + 90 ) ) FROM tab2 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT + + 55 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT + + 55 / col0 AS col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT + col2 * + col1 * 50 FROM tab0
----
10500
190350
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT col2 DIV + 58 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9446
SELECT col2 / + 58 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( + + col0 ) * 31 AS col1 FROM tab2 AS cor0
----
-1426
-1984
-2325

query I rowsort
SELECT - col2 * - col0 * col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 65 + + + 23 AS col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT + 98 + + col2 * - - 13 AS col2 FROM tab0 AS cor0
----
1385
228
709

query I rowsort
SELECT - ( 70 ) FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT + + col1 * - + 10 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT - 56 + + + COUNT( * ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - 56 + + + COUNT ( * ) FROM tab0 AS cor0
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9456
SELECT + + col2 * + col0 + - + ( CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT + + col2 * + col0 + - + ( CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 < NULL
----
0

query I rowsort
SELECT DISTINCT + ( - 62 ) + - col1 FROM tab1
----
-109
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL + CAST( - - 90 AS SIGNED ) FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + CAST ( - - 90 AS INTEGER ) FROM tab0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > + 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 34 IS NULL
----

query I rowsort
SELECT ALL - col1 + 76 + + - col2 AS col1 FROM tab0 AS cor0
----
-24
-52
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9464
SELECT - + col1 + + CAST( NULL AS DECIMAL ) - - - ( col1 ) / + col1 / + CAST( 67 AS DECIMAL ) - - 38 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT - + col1 + + CAST ( NULL AS REAL ) - - - ( col1 ) / + col1 / + CAST ( 67 AS REAL ) - - 38 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE 30 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE 30 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - ( col0 ) col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT 88 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 col0, + col2 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT DISTINCT + AVG ( DISTINCT + col2 ) * 84 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + AVG ( DISTINCT + col2 ) * 84 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 51 * + col2 AS col2 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT 20 * + + 62 FROM tab0 cor0
----
1240
1240
1240

query II rowsort
SELECT - ( + col0 ) AS col0, col0 FROM tab1 AS cor0 WHERE ( + 45 >= + + col0 )
----

query I rowsort
SELECT + 3 - col0 * + ( 11 ) FROM tab2 AS cor0
----
-503
-701
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL - - ( - 8 ) * + 56 * + COUNT( * ) FROM tab1 AS cor0
----
-1344

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - - ( - 8 ) * + 56 * + COUNT ( * ) FROM tab1 AS cor0
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT SUM( ALL + - col0 ) * + - 68 FROM tab0 cor0
----
13532

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT SUM ( ALL + - col0 ) * + - 68 FROM tab0 cor0
----
13532

onlyif mysql # DIV for integer division: 
query II rowsort label-9476
SELECT ALL - col1 DIV + col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL - col1 / + col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9479
SELECT * FROM tab0 WHERE NOT - col1 + CAST( - 91 AS SIGNED ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9479
SELECT * FROM tab0 WHERE NOT - col1 + CAST ( - 91 AS INTEGER ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + 99 = 91 + 17
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT 71 FROM tab2 WHERE NOT NULL < + col0 * + + ( 85 ) + 70
----

query I rowsort
SELECT ALL - 96 * + 67 FROM tab1
----
-6432
-6432
-6432

query II rowsort
SELECT - + 7 AS col1, 87 * + col1 * + - 94 * col2 AS col1 FROM tab1 cor0
----
-7
-10991232
-7
-2412510
-7
-26136888

query II rowsort
SELECT - 98 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-98
10
-98
47
-98
99

query II rowsort
SELECT ALL - col2, + ( + 92 ) + + col0 AS col2 FROM tab2 cor0
----
-23
138
-40
156
-58
167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9487
SELECT ALL + 84 + - CAST( + col1 AS DECIMAL ) col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9487
SELECT ALL + 84 + - CAST ( + col1 AS REAL ) col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col2 FROM tab2 cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT ALL - ( - - CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) ) + col2 * - - col1 AS col0 FROM tab0 cor0
----
0
200
3760

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - ( - - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) ) + col2 * - - col1 AS col0 FROM tab0 cor0
----
0
200
3760

query I rowsort
SELECT 78 + - - 37 FROM tab0
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL 5 + - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL 5 + - COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL - ( + + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - ( + + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT 19 + + col1 AS col0 FROM tab0
----
100
20
40

query I rowsort
SELECT + AVG ( DISTINCT col0 ) AS col2 FROM tab1 WHERE NOT col1 * col0 / - ( col1 ) IS NULL AND NOT NULL IN ( - col0 )
----
NULL

query I rowsort
SELECT + 94 + col0 + + 29 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col0, + col0 AS col2 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT 27 + 56 AS col0 FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT MAX( - col0 ) + + - 92 AS col2 FROM tab0
----
-107

skipif mysql # not compatible
query I rowsort label-9498
SELECT MAX ( - col0 ) + + - 92 AS col2 FROM tab0
----
-107

query I rowsort
SELECT - col2 * - 68 + 30 FROM tab0
----
3226
6762
710

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 < col2 * 19
----

query I rowsort
SELECT 29 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 71 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 9 col2 FROM tab0 cor0
----
-8
12
72

query I rowsort
SELECT - col1 * col0 - - - 22 + col1 + + col2 + - + col0 * col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ( - col2 ) * - - 67 FROM tab0 AS cor0
----
-3149
-6633
-670

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9506
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + 54 AS SIGNED ) * col0 + + col2 + + ( - 58 ) BETWEEN - + 34 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9506
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + 54 AS INTEGER ) * col0 + + col2 + + ( - 58 ) BETWEEN - + 34 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 72 * - col1 AS col2 FROM tab0 AS cor0
----
1512
5832
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT - + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9508
SELECT - + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT + + CAST( ( + - col2 ) AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9509
SELECT + + CAST ( ( + - col2 ) AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT 18 * COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9510
SELECT 18 * COUNT ( * ) AS col1 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + MAX( + 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9511
SELECT + MAX ( + 40 ) FROM tab0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT ALL + 74 DIV col2 * - col1 FROM tab1 AS cor0
----
-47
-5
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + 74 / col2 * - col1 FROM tab1 AS cor0
----
-47
-5
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 > - col0
----

query II rowsort
SELECT + ( ( - + ( - 23 ) ) ) AS col0, - 7 * col2 * + + col0 + + + 44 * - col0 FROM tab0
----
23
-5595
23
-71489
23
-9918

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT + + COUNT( * ) + + + 92 - - - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT + + COUNT ( * ) + + + 92 - - - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
56

query I rowsort
SELECT - 74 + - - col1 AS col1 FROM tab1 cor0
----
-27
-60
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL COUNT( * ) * + 86 AS col1 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL COUNT ( * ) * + 86 AS col1 FROM tab0 AS cor0
----
258

query I rowsort
SELECT - 83 + col1 * col0 FROM tab0 AS cor0
----
1132
14
1744

query III rowsort
SELECT * FROM tab0 cor0 WHERE 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE 17 IS NULL
----

query I rowsort
SELECT - col0 + + 94 + + 74 FROM tab2 AS cor0
----
104
122
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT COUNT( 27 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9522
SELECT COUNT ( 27 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> + - col2
----

query I rowsort
SELECT ALL + 1 + 72 FROM tab2 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9525
SELECT ALL - CAST( NULL AS SIGNED ) + + col0, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9525
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL COUNT( DISTINCT - col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL COUNT ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9527
SELECT ALL col0 * + 87 + - col2 + - - col0 - col1 * - + 79 * + CAST( NULL AS SIGNED ) AS col2, + col2 DIV - + col2 FROM tab1 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-9527
SELECT ALL col0 * + 87 + - col2 + - - col0 - col1 * - + 79 * + CAST ( NULL AS INTEGER ) AS col2, + col2 / - + col2 FROM tab1 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

query I rowsort
SELECT - - col0 * - + col2 * + col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL - MAX( ALL + 58 ) col2 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9529
SELECT ALL - MAX ( ALL + 58 ) col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1 cor0 WHERE NULL <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 65 > col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col1 * + 87 AS col0 FROM tab0 AS cor0
----
1827
7047
87

onlyif mysql # DIV for integer division: 
query II rowsort label-9533
SELECT 93 DIV col2 * col0, - 35 - + col2 + col1 AS col1 FROM tab1 AS cor0
----
0
-117
85
-89
91
-56

skipif mysql # not compatible
query II rowsort label-9533
SELECT 93 / col2 * col0, - 35 - + col2 + col1 AS col1 FROM tab1 AS cor0
----
0
-117
85
-89
91
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT - SUM( + + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - SUM ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + col2 * - - col0 * col0 * 19 FROM tab2
----
3112960
6198750
924692

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT - COUNT( col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - COUNT ( col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col2 * + - 45 AS col1 FROM tab2
----
-1035
-1800
-2610

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + ( - + 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT DISTINCT - + AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - + AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT ALL - + 90, - COUNT( * ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab1 cor0
----
-90
-6

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL - + 90, - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
-90
-6

query I rowsort
SELECT DISTINCT 95 + - 33 AS col1 FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL - col1 * - - col1 + col2 FROM tab2
----
-2578
-4431
-5889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + MAX( 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9544
SELECT + MAX ( 56 ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT 67 * + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
3149
335
938

skipif mysql # not compatible
query I rowsort label-9546
SELECT 67 * + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
3149
335
938

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT - MAX( + - 57 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - MAX ( + - 57 ) FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT CAST( 18 AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9548
SELECT CAST ( 18 AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT 16 * 88 * - col1 + - 67 * - col0 * 29 * - col1 FROM tab0
----
-189879
-2474793
-3579429

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT + col0 * - - col0 * + col2 + - 99 + - + col0 DIV col1 AS col2 FROM tab2
----
163741
326150
48569

skipif mysql # not compatible
query I rowsort label-9550
SELECT + col0 * - - col0 * + col2 + - 99 + - + col0 / col1 AS col2 FROM tab2
----
163741
326150
48569

query I rowsort
SELECT col1 * col2 * - - col1 + + 27 FROM tab1
----
1502
150239
18843

query I rowsort
SELECT + col2 + + - col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL - CAST( - + 21 AS SIGNED ) FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL - CAST ( - + 21 AS INTEGER ) FROM tab2
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ALL col1 - col2 - - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL col1 - col2 - - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 + - ( + 78 ) AS col2, + 23 * col0 FROM tab2 cor0
----
-20
1725
-38
1472
-55
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 51 col1 FROM tab1
----
0
34
40

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND 1 + - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL MIN( DISTINCT 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL MIN ( DISTINCT 42 ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT COUNT( ALL + 7 ) AS col2 FROM tab1 WHERE NOT 20 - + col0 * col2 = - col2
----
3

skipif mysql # not compatible
query I rowsort label-9560
SELECT COUNT ( ALL + 7 ) AS col2 FROM tab1 WHERE NOT 20 - + col0 * col2 = - col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 = ( 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT DISTINCT 34 FROM tab2 WHERE NOT - 41 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 34 FROM tab2 WHERE NOT - 41 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT - SUM( + 98 ) AS col0 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - SUM ( + 98 ) AS col0 FROM tab0
----
-294

query III rowsort
SELECT * FROM tab2 WHERE ( - 78 + + 87 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + ( col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT MIN( col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT MIN ( col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 60 ) IS NOT NULL
----

query I rowsort
SELECT col2 + - 98 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
-2
-30
-39

query III rowsort
SELECT * FROM tab0 WHERE - 46 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + ( col0 ) AND col1
----

query I rowsort
SELECT 27 * - 39 FROM tab1 WHERE NOT - col2 IS NULL
----
-1053
-1053
-1053

query I rowsort
SELECT - 84 * AVG ( col0 ) AS col2 FROM tab2 WHERE NOT ( 16 ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT col1 DIV col2 + 57 FROM tab2
----
58
58
59

skipif mysql # not compatible
query I rowsort label-9573
SELECT col1 / col2 + 57 FROM tab2
----
58
58
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9574
SELECT ALL + CAST( + COUNT( ALL col0 ) AS SIGNED ) + 44 AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL + CAST ( + COUNT ( ALL col0 ) AS INTEGER ) + 44 AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9575
SELECT DISTINCT * FROM tab0 WHERE 25 * + 42 + + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9575
SELECT DISTINCT * FROM tab0 WHERE 25 * + 42 + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL COUNT( * ) FROM tab1 WHERE ( - 29 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( - 29 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL MIN( - ( + col0 ) ) * COUNT( * ) + + COUNT( * ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL MIN ( - ( + col0 ) ) * COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-288

query I rowsort
SELECT col2 + + 1 AS col0 FROM tab1
----
60
69
97

query I rowsort
SELECT 98 + - col2 * 20 FROM tab0
----
-102
-1882
-842

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - 99 ) AND 27
----

query I rowsort
SELECT ALL 82 + ( + 35 ) AS col0 FROM tab1
----
117
117
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * col0 col1 FROM tab1
----
2550
4250
4550

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT + ( col0 ) DIV - 21 FROM tab0 WHERE ( ( 65 ) * col1 ) IS NOT NULL
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT + ( col0 ) / - 21 FROM tab0 WHERE ( ( 65 ) * col1 ) IS NOT NULL
----
-4
-4
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9585
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( + CAST( + col1 AS DECIMAL ) ) = col0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( + CAST ( + col1 AS REAL ) ) = col0
----
1
21
81

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + col1 * ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT - 54 DIV 62 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9588
SELECT - 54 / 62 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + COUNT( ALL - 38 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + COUNT ( ALL - 38 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 / col2 + - col1 * + 76 ) > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT COUNT( * ) * 78 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9592
SELECT COUNT ( * ) * 78 FROM tab1 AS cor0
----
234

query I rowsort
SELECT - ( - ( + col1 ) ) * col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT - + 26 AS col0 FROM tab0 cor0
----
-26
-26
-26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / - 1 - - col0 > + 33
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - SUM( ALL + 59 ) AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9596
SELECT - SUM ( ALL + 59 ) AS col1 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT - 43 + + 23 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + MIN( 94 ) + MAX( ALL col1 + + col1 * 92 ) AS col2 FROM tab2 WHERE ( col2 ) BETWEEN - 58 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT + MIN ( 94 ) + MAX ( ALL col1 + + col1 * 92 ) AS col2 FROM tab2 WHERE ( col2 ) BETWEEN - 58 AND NULL
----
NULL

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9600
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - - 82 * 34 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9600
SELECT DISTINCT - CAST ( NULL AS REAL ) + - - 82 * 34 col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE col2 - 30 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE 59 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + ( 91 ) * 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + COUNT( * ) * + 60 - COUNT( * ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-9604
SELECT + COUNT ( * ) * + 60 - COUNT ( * ) AS col2 FROM tab2
----
177

query I rowsort
SELECT col2 * - col2 - + 58 FROM tab1
----
-3539
-4682
-9274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 - - 81 * - col0 col1 FROM tab1
----
-3935
-5162
-6860

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < - 61 * - 8
----

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT col0 + - ( 17 ) FROM tab1 AS cor0
----
34
68
74

query I rowsort
SELECT + ( col0 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT COUNT( * ) + + 50 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9611
SELECT COUNT ( * ) + + 50 FROM tab1 AS cor0
----
53

query I rowsort
SELECT + 54 * 69 FROM tab2 AS cor0
----
3726
3726
3726

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9613
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9613
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT col0 / CAST( col1 AS SIGNED ) - + col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 69 )
----

skipif mysql # not compatible
query I rowsort label-9614
SELECT col0 / CAST ( col1 AS INTEGER ) - + col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT - CAST( + - 24 AS SIGNED ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - CAST ( + - 24 AS INTEGER ) AS col2 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT 28 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-9616
SELECT 28 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + + COUNT( - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9617
SELECT + + COUNT ( - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT DISTINCT - + 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-9618
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 63 FROM tab2 AS cor0 WHERE NOT ( - col0 + - - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-9620
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
6

query I rowsort
SELECT DISTINCT 46 + + + col1 FROM tab0
----
127
47
67

query I rowsort
SELECT ( + col0 ) * + - col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + 15 * - col2 * + + col1 * - col2 FROM tab0
----
147015
2683935
31500

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9624
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN col0 * + col2 AND + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9626
SELECT - col0 * + + col2 AS col2, 47 DIV col0 + col0 * 58 col0 FROM tab1
----
-4896
2958
-5015
4930
-6188
5278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9626
SELECT - col0 * + + col2 AS col2, 47 / col0 + col0 * 58 col0 FROM tab1
----
-4896
2958
-5015
4930
-6188
5278

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + 90 NOT IN ( col1 + - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT + col2 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - col0 NOT IN ( - + 26 )
----

skipif mysql # not compatible
query I rowsort label-9628
SELECT + col2 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - col0 NOT IN ( - + 26 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL IN ( + - col1 + 78 )
----

query I rowsort
SELECT 79 + + col2 * 61 AS col0 FROM tab1
----
3678
4227
5935

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT 46 * 0 + - - COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9631
SELECT 46 * 0 + - - COUNT ( * ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 44 * - MIN( + 53 ) + - 11 FROM tab2
----
-2343

skipif mysql # not compatible
query I rowsort label-9632
SELECT 44 * - MIN ( + 53 ) + - 11 FROM tab2
----
-2343

query II rowsort
SELECT - col0 + + col2 AS col1, 71 - - col1 AS col0 FROM tab0
----
-77
92
2
72
32
152

query I rowsort
SELECT + - ( 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + col2 < NULL
----

query I rowsort
SELECT ALL ( col1 ) + 17 FROM tab0 AS cor0
----
18
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 50 * col1 * 43 + - 76 col1 FROM tab2 cor0
----
109574
143974
165474

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9638
SELECT * FROM tab2 WHERE ( - CAST( + col0 AS SIGNED ) * col0 / + col2 ) NOT BETWEEN ( 67 * + col0 ) AND ( 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9638
SELECT * FROM tab2 WHERE ( - CAST ( + col0 AS INTEGER ) * col0 / + col2 ) NOT BETWEEN ( 67 * + col0 ) AND ( 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - 36 FROM tab2
----
15
31
41

query I rowsort
SELECT col2 + + col1 FROM tab1 WHERE - + 88 * + - 13 * + col2 - + col0 * - 76 IS NULL
----

query I rowsort
SELECT + col0 * - 21 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT ALL ( + - col0 ) * + 1 * + + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT ALL 46 AS col0, SUM( ALL - 42 ) FROM tab1 AS cor0
----
46
-126

skipif mysql # not compatible
query II rowsort label-9643
SELECT ALL 46 AS col0, SUM ( ALL - 42 ) FROM tab1 AS cor0
----
46
-126

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * col1 + + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - - 1 ) AND + col0 AND ( ( 94 ) + - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 53 AS col0 FROM tab0 cor0
----
-2491
-5247
-530

query I rowsort
SELECT ALL + col2 * - 20 FROM tab0 AS cor0
----
-1980
-200
-940

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 NOT BETWEEN col0 AND + col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT ( + + SUM( ALL ( ( - - 43 ) ) ) ) + COUNT( ALL CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9650
SELECT ( + + SUM ( ALL ( ( - - 43 ) ) ) ) + COUNT ( ALL CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND NULL
----
0

query I rowsort
SELECT + col0 + - + col1 + 5 * + col1 FROM tab1 AS cor0
----
105
107
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL 19 * - MIN( col1 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL 19 * - MIN ( col1 ) FROM tab0
----
-19

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT ( - ( + col0 ) NOT IN ( - 48 - col1 ) )
----

query II rowsort
SELECT + col2 + + col1, + col0 AS col1 FROM tab2
----
117
64
125
75
74
46

query I rowsort
SELECT ALL + col2 - + - col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT - CAST( - col2 AS SIGNED ) * - col2 + - + col2 * + + 24 FROM tab1
----
-11520
-4897
-6256

skipif mysql # not compatible
query I rowsort label-9657
SELECT - CAST ( - col2 AS INTEGER ) * - col2 + - + col2 * + + 24 FROM tab1
----
-11520
-4897
-6256

query I rowsort
SELECT + col0 + - col0 + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT 53 + + ( COUNT( * ) ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9659
SELECT 53 + + ( COUNT ( * ) ) FROM tab0
----
56

query II rowsort
SELECT 36 AS col2, + 98 + col1 + - 55 * - 73 AS col2 FROM tab1
----
36
4118
36
4127
36
4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5, col2 col1 FROM tab2
----
5
23
5
40
5
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) > ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) > ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT - MIN( ALL + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT - MIN ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT - CAST( + 36 AS SIGNED ) - - - col1 FROM tab0
----
-117
-37
-57

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - CAST ( + 36 AS INTEGER ) - - - col1 FROM tab0
----
-117
-37
-57

query I rowsort
SELECT DISTINCT + 74 * + 36 * col2 + 82 * col2 AS col2 FROM tab1 AS cor0
----
162014
186728
263616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9666
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 4 NOT IN ( + - CAST( - col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 4 NOT IN ( + - CAST ( - col1 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - MIN( DISTINCT 52 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 13 / + col0 + + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT - MIN ( DISTINCT 52 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 13 / + col0 + + + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9668
SELECT ALL + col0, col2 - + 12 * + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9668
SELECT ALL + col0, col2 - + 12 * + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col0 * - col0 * + col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - MAX( ALL - 31 ) FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-9671
SELECT - MAX ( ALL - 31 ) FROM tab2 cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT SUM( + - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9672
SELECT SUM ( + - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT 70 * + + COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9673
SELECT 70 * + + COUNT ( * ) FROM tab0 AS cor0
----
210

query I rowsort
SELECT + col2 * - 59 FROM tab2
----
-1357
-2360
-3422

query I rowsort
SELECT DISTINCT + col0 + - 43 + + col2 FROM tab1
----
101
104
116

query I rowsort
SELECT 31 * + + 43 FROM tab2
----
1333
1333
1333

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN - - col1 AND + col1
----

query II rowsort
SELECT ALL + + 58, + col2 FROM tab0 cor0
----
58
10
58
47
58
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - col1 NOT IN ( - col2 + + - col0, col0 * 40 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 * 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT 47 * + 68 + col0 FROM tab2 AS cor0
----
3242
3260
3271

query II rowsort
SELECT DISTINCT 19 + - 28 + - col0 AS col2, col1 FROM tab0 AS cor0
----
-106
1
-24
81
-96
21

query I rowsort
SELECT ALL - col2 + - 25 AS col1 FROM tab0 AS cor0
----
-124
-35
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT ALL ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + - col0 * + - 5 AS col1 FROM tab0 AS cor0
----
435
485
75

query I rowsort
SELECT - col1 * + 3 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT + col0 * - - 95 AS col2 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT - col0 DIV + col1 - + 9 AS col2 FROM tab0 AS cor0
----
-106
-13
-9

skipif mysql # not compatible
query I rowsort label-9689
SELECT - col0 / + col1 - + 9 AS col2 FROM tab0 AS cor0
----
-106
-13
-9

query I rowsort
SELECT - - col2 * + 44 * - col0 * + + 28 + + + 6 AS col1 FROM tab1 AS cor0
----
-6031866
-6178474
-7623610

query I rowsort
SELECT + 60 * - 1 * + + 17 FROM tab2 AS cor0
----
-1020
-1020
-1020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 * - col0 * + 53 * col2 * + + col0 col0 FROM tab1 AS cor0
----
-158148025
-208913068
-92637216

query I rowsort
SELECT ALL - col1 * - + col1 + col2 * col1 FROM tab1 AS cor0
----
1540
320
5405

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / + + col0 NOT BETWEEN + ( 66 ) AND + col2 AND NOT col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT SUM( - + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT SUM ( - + col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT ALL 29 * - 64 AS col2 FROM tab0
----
-1856
-1856
-1856

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9697
SELECT ALL + CAST( NULL AS DECIMAL ) * CAST( col1 AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + CAST ( NULL AS REAL ) * CAST ( col1 AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - MIN( - 24 ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9698
SELECT - MIN ( - 24 ) FROM tab0 cor0
----
24

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT 6 <= + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 62 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT DISTINCT + SUM( ALL + - 53 ) AS col0 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT + SUM ( ALL + - 53 ) AS col0 FROM tab1 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL + 94 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL + 94 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-282

query II rowsort
SELECT DISTINCT col2, - col2 + + 95 + + 47 FROM tab2
----
23
119
40
102
58
84

query I rowsort
SELECT + + 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT col2 * col2 * + 63 AS col2 FROM tab1
----
219303
291312
580608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT ALL + 93 DIV + + COUNT( * ) col0 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9706
SELECT ALL + 93 / + + COUNT ( * ) col0 FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9708
SELECT ALL - 59 FROM tab2 AS cor0 WHERE + ( - + CAST( + col1 AS DECIMAL ) ) > col0
----

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - 59 FROM tab2 AS cor0 WHERE + ( - + CAST ( + col1 AS REAL ) ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - - SUM( + 30 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT - - SUM ( + 30 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 46 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN + ( 38 ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 58 * ( + col2 ) + - - col1 AS col1 FROM tab1
----
3427
3991
5582

query I rowsort
SELECT col2 + 87 + + col2 AS col1 FROM tab0
----
107
181
285

query I rowsort
SELECT DISTINCT + col0 * + - 27 AS col0 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT col2 + + 72 FROM tab1
----
131
140
168

query I rowsort
SELECT ALL + - col1 + + col2 / - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL COUNT( 91 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL COUNT ( 91 ) FROM tab0
----
3

query II rowsort
SELECT 21 * + - col1 - + - col0, - 90 AS col0 FROM tab0
----
-1686
-90
-354
-90
76
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT 37 - COUNT( * ) + + COUNT( * ) + + MAX( + col2 ) col2 FROM tab2
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT 37 - COUNT ( * ) + + COUNT ( * ) + + MAX ( + col2 ) col2 FROM tab2
----
95

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 + + col1 + col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-2014
-3942
-5491

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT MIN( + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9723
SELECT MIN ( + col2 ) AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT COUNT( ALL - + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9724
SELECT COUNT ( ALL - + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9725
SELECT ALL CAST( col1 AS SIGNED ) * - - CAST( NULL AS SIGNED ) * - - col1 AS col2, col0 + col1 AS col1 FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL CAST ( col1 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) * - - col1 AS col2, col0 + col1 AS col1 FROM tab2
----
NULL
141
NULL
142
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT DISTINCT - 21 DIV col1 * col2 FROM tab1
----
-236
-96
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - 21 / col1 * col2 FROM tab1
----
-236
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT + COUNT( * ) * SUM( - + col1 ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + COUNT ( * ) * SUM ( - + col1 ) FROM tab1
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9728
SELECT ALL - + 34 DIV - ( + MIN( ALL + col2 ) ) AS col2, COUNT( + col1 ) col0 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9728
SELECT ALL - + 34 / - ( + MIN ( ALL + col2 ) ) AS col2, COUNT ( + col1 ) col0 FROM tab1 AS cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9729
SELECT + ( - 50 ) AS col2, CAST( NULL AS SIGNED ) + - ( - 35 ) FROM tab1 AS cor0
----
-50
NULL
-50
NULL
-50
NULL

skipif mysql # not compatible
query II rowsort label-9729
SELECT + ( - 50 ) AS col2, CAST ( NULL AS INTEGER ) + - ( - 35 ) FROM tab1 AS cor0
----
-50
NULL
-50
NULL
-50
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1, 55, + col1 )
----

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL - 77 + + 81 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col1 * + - ( - col0 ) + - col0 + - - col0 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col1 + - + 52 * + 42 FROM tab2 AS cor0
----
-2235
-2251
-2261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - + col1 ) + + - col2 AS col1, col0 col0 FROM tab1 AS cor0
----
-110
51
-115
91
-64
85

query I rowsort
SELECT ALL - col2 * - 17 * col0 FROM tab0
----
11985
14790
163251

query I rowsort
SELECT DISTINCT 30 + + col1 FROM tab0
----
111
31
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9741
SELECT ALL + col1 DIV + - 44 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + col1 / + - 44 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL COUNT( * ) + + MIN( - col0 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL COUNT ( * ) + + MIN ( - col0 ) FROM tab0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT ALL - COUNT( * ) DIV - SUM( DISTINCT 38 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - COUNT ( * ) / - SUM ( DISTINCT 38 ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + + + col0 IN ( - + 70 )
----

query I rowsort
SELECT + col1 * - 2 * + ( - - 14 ) AS col0 FROM tab0
----
-2268
-28
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) + SUM( DISTINCT + 86 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT + 86 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + col2 * 95 FROM tab2 AS cor0
----
2134
3723
5443

query I rowsort
SELECT ALL - + 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL ( - - MIN( DISTINCT + col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL ( - - MIN ( DISTINCT + col1 ) ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT col0 - + col0 - + + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT col0 - + col0 - + + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - MAX( + ( 25 ) ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - MAX ( + ( 25 ) ) AS col2 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT + ( - - col2 ) * - ( 23 ) - - col0 FROM tab1 AS cor0
----
-1272
-1473
-2157

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9756
SELECT - col2 AS col2 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9756
SELECT - col2 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( + 22 ) IS NULL )
----

query I rowsort
SELECT DISTINCT + 93 * + + 77 FROM tab1
----
7161

query II rowsort
SELECT ALL + col0 AS col1, col2 + + col0 AS col1 FROM tab2
----
46
69
64
104
75
133

query II rowsort
SELECT DISTINCT + 37, 52 + + - 92 * + 26 * col1 AS col0 FROM tab0
----
37
-193700
37
-2340
37
-50180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9761
SELECT DISTINCT - CAST( NULL AS SIGNED ), - col2 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-9761
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - col2 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - - MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9762
SELECT - - MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + - MAX( DISTINCT - 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9763
SELECT + - MAX ( DISTINCT - 50 ) FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT + COUNT( * ) AS col0, - MIN( ALL + col1 ) FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-9764
SELECT + COUNT ( * ) AS col0, - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + + 44 * - - 74 * - COUNT( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
-9768

skipif mysql # not compatible
query I rowsort label-9765
SELECT + + 44 * - - 74 * - COUNT ( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
-9768

query I rowsort
SELECT ALL - + 47 FROM tab0 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT MAX( - 24 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT MAX ( - 24 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9768
SELECT - COUNT( * ) DIV COUNT( * ) col1, MAX( ALL + - 52 ) FROM tab1
----
-1
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9768
SELECT - COUNT ( * ) / COUNT ( * ) col1, MAX ( ALL + - 52 ) FROM tab1
----
-1
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + MIN( ALL - 73 ) col0 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT + MIN ( ALL - 73 ) col0 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT - 55 DIV - 59 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT - 55 / - 59 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9772
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL + - SUM( - - 46 ) FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + - SUM ( - - 46 ) FROM tab2 cor0
----
-138

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT - ( + SUM( ALL + col2 ) ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - ( + SUM ( ALL + col2 ) ) AS col2 FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT DISTINCT - col0 * - + CAST( NULL AS SIGNED ) + - - col2 + - ( 37 ) * - col2 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9776
SELECT DISTINCT - col0 * - + CAST ( NULL AS INTEGER ) + - - col2 + - ( 37 ) * - col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + - - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT DISTINCT + 36 + col2 + + 97 + - col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
156
173
191

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT + 36 + col2 + + 97 + - col2 / + col0 AS col2 FROM tab2 AS cor0
----
156
173
191

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9779
SELECT * FROM tab1 WHERE CAST( + 76 AS SIGNED ) + + + col2 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9779
SELECT * FROM tab1 WHERE CAST ( + 76 AS INTEGER ) + + + col2 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col1 ) + - - col2 * + col0 + - 15 AS col2 FROM tab1
----
4895
5005
6220

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL + COUNT( * ) + + 47 + + 67 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + COUNT ( * ) + + 47 + + 67 FROM tab1
----
117

query I rowsort
SELECT - 27 + col2 FROM tab1
----
32
41
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT COUNT( * ) + - 59 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9783
SELECT COUNT ( * ) + - 59 FROM tab0
----
-56

query I rowsort
SELECT col2 + - 26 + + + col1 FROM tab2
----
48
91
99

query I rowsort
SELECT col0 * + - col0 + - col0 * - 16 FROM tab1
----
-1785
-5865
-6825

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 - + 62 < - col0
----

query I rowsort
SELECT - col1 * 26 * - + col2 AS col1 FROM tab2
----
101036
30498
80080

query II rowsort
SELECT DISTINCT + col0, - 11 AS col2 FROM tab2 AS cor0
----
46
-11
64
-11
75
-11

query I rowsort
SELECT DISTINCT col1 * - 3 - - - 96 + - col0 * + col2 FROM tab2
----
-1307
-2887
-4647

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 WHERE + 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - 57 * + COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-513

skipif mysql # not compatible
query I rowsort label-9792
SELECT - 57 * + COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-513

query II rowsort
SELECT ALL col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - - 96 FROM tab2 AS cor0 WHERE NOT - col0 = - col1
----
96
96
96

query II rowsort
SELECT - 90 AS col1, 23 FROM tab2 cor0
----
-90
23
-90
23
-90
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 + + 53
----

query I rowsort
SELECT - 74 * col1 + - 31 + 63 * 27 FROM tab2 AS cor0
----
-2104
-3288
-4028

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + MAX( ALL col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9798
SELECT + MAX ( ALL col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT - - col0 AS col2, - col2 * - col1 FROM tab0 AS cor0
----
15
3807
87
210
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9800
SELECT ( - - CAST( NULL AS DECIMAL ) ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9800
SELECT ( - - CAST ( NULL AS REAL ) ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( col2 * - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( col2 * - col2 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 * + ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT - 80 DIV + col2 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9804
SELECT - 80 / + col2 AS col0 FROM tab2
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT DISTINCT - ( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT - ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 36
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 37 + - + col1 * + col2 - - col0 * col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 66 AS col1 FROM tab0 cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT + CAST( + col0 AS SIGNED ) * + - 64 FROM tab0 AS cor0
----
-5568
-6208
-960

skipif mysql # not compatible
query I rowsort label-9812
SELECT + CAST ( + col0 AS INTEGER ) * + - 64 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9813
SELECT 48 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
48
NULL
48
NULL
48
NULL

skipif mysql # not compatible
query II rowsort label-9813
SELECT 48 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
48
NULL
48
NULL
48
NULL

query I rowsort
SELECT col2 + col2 * - 48 FROM tab1
----
-2773
-3196
-4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE + col1 * 9 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE + col1 * 9 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9816
SELECT DISTINCT 60 AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9816
SELECT DISTINCT 60 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9817
SELECT + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + 55 AS col1, col2 AS col1 FROM tab2 AS cor0
----
55
23
55
40
55
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + - col2 ) = - 99 + - 67 * - 50 + col0 / - 10 + - col1 * ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9820
SELECT COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( AVG ( DISTINCT + - col1 ) ) FROM tab1 WHERE - + col0 * - + 23 BETWEEN col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT CAST( - + 5 AS SIGNED ) AS col1 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9822
SELECT CAST ( - + 5 AS INTEGER ) AS col1 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT ALL 36 + - col1 + + - 13 - - - col1 AS col0 FROM tab2
----
-111
-131
-79

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE - - 15 * - 16 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 15 + col1 col2 FROM tab0
----
17
177
57

query II rowsort
SELECT + col2 + col1, col2 AS col1 FROM tab0 AS cor0
----
100
99
128
47
31
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT ALL - - 10 + col0 AS col1 FROM tab2 AS cor0
----
56
74
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT - 17 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + + col2 ) + col2 + + 3, + 20 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - 17 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + + col2 ) + col2 + + 3, + 20 * col0 )
----
0

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + col2 * + 11 + + col1 AS col2 FROM tab1 AS cor0
----
1070
654
795

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL - + COUNT( * ) + - COUNT( * ) - - ( - COUNT( * ) ) * COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1 WHERE + 20 * col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) - - ( - COUNT ( * ) ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1 WHERE + 20 * col0 <= NULL
----
0

query II rowsort
SELECT + - col2 * + - col0 * col1, + col2 * - col2 AS col2 FROM tab1 AS cor0
----
25075
-3481
290836
-4624
68544
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL ( + - 38 ) * - + COUNT( * ) FROM tab2 cor0
----
114

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL ( + - 38 ) * - + COUNT ( * ) FROM tab2 cor0
----
114

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL = col2 * - 0 * - col2 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT ALL - col1 DIV - col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9836
SELECT ALL - col1 / - col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 89 * + col1 * - 0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT ALL - - col1 * + col2 * - col1 * - CAST( + 10 AS SIGNED ) FROM tab2 AS cor0
----
2371600
2603620
598230

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - - col1 * + col2 * - col1 * - CAST ( + 10 AS INTEGER ) FROM tab2 AS cor0
----
2371600
2603620
598230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9839
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT + CAST( NULL AS SIGNED ) BETWEEN + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 90 AND - 44 ) )
----

skipif mysql # not compatible
query III rowsort label-9839
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT + CAST ( NULL AS INTEGER ) BETWEEN + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 90 AND - 44 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9840
SELECT DISTINCT + 34 DIV + + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + 34 / + + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - SUM( + + 51 ) * + - 99 FROM tab1 AS cor0
----
15147

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - SUM ( + + 51 ) * + - 99 FROM tab1 AS cor0
----
15147

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT SUM( ALL - 9 ) AS col0 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9842
SELECT SUM ( ALL - 9 ) AS col0 FROM tab2 cor0
----
-27

query I rowsort
SELECT ALL ( + 4 ) AS col0 FROM tab0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT 41 + 93 FROM tab0 WHERE NOT NULL IS NOT NULL
----
134
134
134

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT 44 DIV 86 * - + 5 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT 44 / 86 * - + 5 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9847
SELECT DISTINCT - COUNT( * ) col1, SUM( DISTINCT 41 ) DIV SUM( - 85 ) * + + SUM( + col2 ) FROM tab2
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9847
SELECT DISTINCT - COUNT ( * ) col1, SUM ( DISTINCT 41 ) / SUM ( - 85 ) * + + SUM ( + col2 ) FROM tab2
----
-3
0

query II rowsort
SELECT + ( + - col1 ), col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT 5 * + col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT col2 + - + 78 DIV - 52 + + 11 AS col2 FROM tab1
----
108
71
80

skipif mysql # not compatible
query I rowsort label-9850
SELECT col2 + - + 78 / - 52 + + 11 AS col2 FROM tab1
----
108
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - + SUM( ALL - + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - + SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ( + - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT ALL + col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT ALL + 46 DIV + 81 * - COUNT( * ) * 76 * + + 81 AS col0 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + 46 / + 81 * - COUNT ( * ) * 76 * + + 81 AS col0 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT - 63 + 16 + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT 70 * - + col2 + col1 FROM tab0 cor0
----
-3209
-679
-6929

query I rowsort
SELECT ALL + 81 + + + col2 + - + col0 * + + col0 FROM tab1 AS cor0
----
-2424
-7085
-8132

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT 35 - - ( COUNT( * ) ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT 35 - - ( COUNT ( * ) ) FROM tab1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9859
SELECT CAST( - col2 AS SIGNED ) * 34, - col2 AS col0 FROM tab2
----
-1360
-40
-1972
-58
-782
-23

skipif mysql # not compatible
query II rowsort label-9859
SELECT CAST ( - col2 AS INTEGER ) * 34, - col2 AS col0 FROM tab2
----
-1360
-40
-1972
-58
-782
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL 53 * - SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
11819

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 53 * - SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
11819

query I rowsort
SELECT DISTINCT - ( - 39 ) - - 79 + - col1 + + 83 FROM tab0 cor0
----
120
180
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT + col0 DIV - ( + col0 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9863
SELECT + col0 / - ( + col0 ) AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 47 NOT BETWEEN - - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 84 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1176
3948
420

query II rowsort
SELECT DISTINCT - - ( + col1 ) AS col0, + col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT ALL + col1 DIV + 34 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + col1 / + 34 FROM tab0 cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL + COUNT( DISTINCT + - 83 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + COUNT ( DISTINCT + - 83 ) AS col2 FROM tab2 AS cor0
----
1

query II rowsort
SELECT + col0 * + col1, - col1 + - col0 AS col0 FROM tab0 AS cor0
----
1215
-96
1827
-108
97
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT NULL >= - col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT NULL >= - col2 + col2
----
0

query I rowsort
SELECT DISTINCT col1 + 98 - - + 33 FROM tab0
----
132
152
212

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( col0 BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT COUNT( * ) DIV 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9874
SELECT COUNT ( * ) / 93 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL < - - col2 + + 85
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL < - - col2 + + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL CAST( - + col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL CAST ( - + col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9877
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT CAST( NULL AS SIGNED ) * 92 + - - col1 + - 21 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT CAST ( NULL AS INTEGER ) * 92 + - - col1 + - 21 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT + 51 * + + 80 - + - COUNT( * ) + - 96 DIV - COUNT( * ) - - COUNT( * ) col2 FROM tab1 AS cor0
----
4118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9879
SELECT + 51 * + + 80 - + - COUNT ( * ) + - 96 / - COUNT ( * ) - - COUNT ( * ) col2 FROM tab1 AS cor0
----
4118

query I rowsort
SELECT DISTINCT + + 52 + 78 FROM tab2 AS cor0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT col2 + + 32 - - col1 FROM tab0
----
132
160
63

query I rowsort
SELECT ALL + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT 91 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query II rowsort
SELECT DISTINCT 97, + col0 * - col0 AS col1 FROM tab0 AS cor0
----
97
-225
97
-7569
97
-9409

query I rowsort
SELECT 46 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT 99 * 80 FROM tab0 AS cor0
----
7920
7920
7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT - CAST( - ( - + col2 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9888
SELECT - CAST ( - ( - + col2 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + 3 * + 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9890
SELECT ALL col2 col1, + 72 DIV + - 53 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9890
SELECT ALL col2 col1, + 72 / + - 53 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

query I rowsort
SELECT + col2 * - 61 + col1 * + + col1 * col0 FROM tab2 AS cor0
----
118243
333137
377016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col2 * - - col0 col2 FROM tab0 AS cor0
----
-15
-705
-87
-870
-97
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( 79 ) col0 FROM tab2 AS cor0
----
4029
5293
6083

query I rowsort
SELECT 85 * + 27 AS col2 FROM tab1 cor0
----
2295
2295
2295

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 >= - - col0 * - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL >= + ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9897
SELECT CAST( NULL AS SIGNED ) * - SUM( ALL - - col2 ) - - - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( NULL AS INTEGER ) * - SUM ( ALL - - col2 ) - - - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL + COUNT( * ) - 70 * + 7 AS col2 FROM tab1
----
-487

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + COUNT ( * ) - 70 * + 7 AS col2 FROM tab1
----
-487

query I rowsort
SELECT DISTINCT + 99 - + col2 FROM tab0
----
0
52
89

query I rowsort
SELECT ALL 17 - + + col2 * - col0 AS col2 FROM tab2
----
1075
2577
4367

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9901
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 col1, + col2 FROM tab0
----
80
10
80
47
80
99

query I rowsort
SELECT ALL + ( + ( 94 ) ) * - col2 + + - col0 AS col1 FROM tab0
----
-1027
-4433
-9403

query I rowsort
SELECT - col1 * + - col0 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT col0, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT - + 79 AS col1, col0 FROM tab2 AS cor0
----
-79
46
-79
64
-79
75

query I rowsort
SELECT DISTINCT 45 * - - col0 FROM tab2 AS cor0
----
2070
2880
3375

query I rowsort
SELECT 49 * - - col1 AS col0 FROM tab0 AS cor0
----
1029
3969
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

query II rowsort
SELECT DISTINCT + col0, - 9 FROM tab0 AS cor0
----
15
-9
87
-9
97
-9

query II rowsort
SELECT DISTINCT + - col2, col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query II rowsort
SELECT ALL + col0 + 24 + - 69 * - + col1 * col0 AS col1, col1 - - 98 FROM tab1
----
29434
103
295228
145
49341
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col0 FROM tab2 WHERE NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col0 FROM tab2 WHERE NOT + col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * + 73 * 76 col2 FROM tab0
----
-10136196
-538156
-6740820

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 < NULL
----

query I rowsort
SELECT - 35 + + - ( 51 ) FROM tab1
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT 34 + + COUNT( * ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9917
SELECT 34 + + COUNT ( * ) FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT DISTINCT 36 * + - MAX( DISTINCT - + ( + 43 ) ) AS col0, - MAX( DISTINCT + 9 ) FROM tab1
----
1548
-9

skipif mysql # not compatible
query II rowsort label-9918
SELECT DISTINCT 36 * + - MAX ( DISTINCT - + ( + 43 ) ) AS col0, - MAX ( DISTINCT + 9 ) FROM tab1
----
1548
-9

query I rowsort
SELECT ALL col0 * + 49 * 63 FROM tab1 AS cor0
----
157437
262395
280917

query I rowsort
SELECT DISTINCT ( + col0 ) * - 74 + - + 47 + + - 82 + + 27 AS col2 FROM tab2
----
-3506
-4838
-5652

query II rowsort
SELECT + 65 * + col2, col2 FROM tab0 WHERE NULL = - 42 - - 78 * - col2 * col0
----

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab0 WHERE - col0 <> NULL
----

query II rowsort
SELECT ALL col1 + + - 0 * col1, 88 + + + 12 AS col0 FROM tab1
----
14
100
47
100
5
100

query I rowsort
SELECT DISTINCT - col2 - + col1 - + col2 - - + col0 AS col2 FROM tab0
----
-102
-160
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - MAX( ALL + 64 ) * - - MIN( ALL + col1 ) + + - 32 - + + SUM( ALL + col0 ) AS col1 FROM tab1
----
-579

skipif mysql # not compatible
query I rowsort label-9925
SELECT - MAX ( ALL + 64 ) * - - MIN ( ALL + col1 ) + + - 32 - + + SUM ( ALL + col0 ) AS col1 FROM tab1
----
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL + MIN( ALL - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + MIN ( ALL - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL - 81 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - 81 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT + col2 DIV - col2 + 13 FROM tab2 cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-9929
SELECT + col2 / - col2 + 13 FROM tab2 cor0
----
12
12
12

query II rowsort
SELECT DISTINCT + 99, col2 FROM tab1
----
99
59
99
68
99
96

query I rowsort
SELECT ALL col1 * - - 21 AS col1 FROM tab1
----
105
294
987

query I rowsort
SELECT DISTINCT col0 * 30 FROM tab1 AS cor0 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL CAST( - col2 AS SIGNED ) * + col2 * 34 * + 40 AS col1 FROM tab1 AS cor0
----
-12533760
-4734160
-6288640

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL CAST ( - col2 AS INTEGER ) * + col2 * 34 * + 40 AS col1 FROM tab1 AS cor0
----
-12533760
-4734160
-6288640

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT COUNT( * ) * 17 AS col1, 50 + COUNT( * ) FROM tab2
----
51
53

skipif mysql # not compatible
query II rowsort label-9934
SELECT COUNT ( * ) * 17 AS col1, 50 + COUNT ( * ) FROM tab2
----
51
53

query I rowsort
SELECT DISTINCT + - col0 * - - col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + col1 + - + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 34 * + - ( - - ( 75 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT COUNT( ALL - col2 ) + - 6 col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9940
SELECT DISTINCT COUNT ( ALL - col2 ) + - 6 col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT + AVG ( - - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9941
SELECT + AVG ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT + 40 AS col0, COUNT( * ) FROM tab1
----
40
3

skipif mysql # not compatible
query II rowsort label-9942
SELECT + 40 AS col0, COUNT ( * ) FROM tab1
----
40
3

query I rowsort
SELECT 16 * col2 FROM tab2
----
368
640
928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9944
SELECT ALL + CAST( NULL AS DECIMAL ) + COUNT( ALL col1 ) col0, - SUM( + - 99 ) * - COUNT( * ) FROM tab2
----
NULL
-891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9944
SELECT ALL + CAST ( NULL AS REAL ) + COUNT ( ALL col1 ) col0, - SUM ( + - 99 ) * - COUNT ( * ) FROM tab2
----
NULL
-891

query I rowsort
SELECT DISTINCT + col1 * - 9 FROM tab0
----
-189
-729
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT - - 22 AS col0 FROM tab1 WHERE col2 NOT IN ( col0 + - CAST( NULL AS SIGNED ), - 62, - 41 )
----

skipif mysql # not compatible
query I rowsort label-9946
SELECT - - 22 AS col0 FROM tab1 WHERE col2 NOT IN ( col0 + - CAST ( NULL AS INTEGER ), - 62, - 41 )
----

query I rowsort
SELECT DISTINCT + col0 + - 95 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + 89 * + SUM( ALL - - col1 ) FROM tab0 WHERE 4 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT + 89 * + SUM ( ALL - - col1 ) FROM tab0 WHERE 4 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT ALL + ( - 72 ) + col1 DIV + 15 AS col2 FROM tab0 AS cor0
----
-67
-71
-72

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL + ( - 72 ) + col1 / + 15 AS col2 FROM tab0 AS cor0
----
-67
-71
-72

query I rowsort
SELECT - col2 + - + 62 FROM tab0 AS cor0
----
-109
-161
-72

query II rowsort
SELECT + col2 + + + col0 + 79 AS col0, col2 FROM tab0 AS cor0
----
141
47
176
10
275
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT 3 + COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9952
SELECT 3 + COUNT ( * ) col0 FROM tab0
----
6

query I rowsort
SELECT col2 + + 78 FROM tab0
----
125
177
88

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL > - 93
----

query I rowsort
SELECT ( col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - + col1 * + ( + col1 ) * - + col2 * + col2 AS col2 FROM tab0 AS cor0
----
14493249
44100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + - MIN( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9957
SELECT + - MIN ( col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9958
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * + 30 - 36 + + - col0 > - + col0
----

skipif mysql # not compatible
query III rowsort label-9958
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * + 30 - 36 + + - col0 > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + + MIN( + ( - col1 ) ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9959
SELECT + + MIN ( + ( - col1 ) ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9960
SELECT - col1 - + CAST( NULL AS DECIMAL ) - col1 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9960
SELECT - col1 - + CAST ( NULL AS REAL ) - col1 col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9961
SELECT ALL + col2 DIV + + col0 + - + CAST( + 45 AS SIGNED ) + + col0 + - - col2 * + col0 * - 54 AS col0 FROM tab0 AS cor0
----
-38097
-46938
-518509

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + col2 / + + col0 + - + CAST ( + 45 AS INTEGER ) + + col0 + - - col2 * + col0 * - 54 AS col0 FROM tab0 AS cor0
----
-38097
-46938
-518509

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0 cor0
----
68

query II rowsort
SELECT ALL 14 AS col2, - 92 AS col2 FROM tab2
----
14
-92
14
-92
14
-92

query II rowsort
SELECT ALL - col2 AS col2, 19 AS col2 FROM tab1
----
-59
19
-68
19
-96
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT SUM( col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT SUM ( col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT ALL + COUNT( * ) DIV - 85 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + COUNT ( * ) / - 85 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - SUM( - - 53 ) AS col0 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-9967
SELECT - SUM ( - - 53 ) AS col0 FROM tab2
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9968
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL 86 AS col1 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT + + 30 AS col2 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab2 AS cor0
----
86
86
86

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9973
SELECT - 67 AS col0, - 0 / ( - - COUNT( * ) ) * - + CAST( NULL AS SIGNED ) FROM tab1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-9973
SELECT - 67 AS col0, - 0 / ( - - COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) FROM tab1
----
-67
NULL

query I rowsort
SELECT ALL - - 82 AS col1 FROM tab2 AS cor0
----
82
82
82

query II rowsort
SELECT ALL + 21 AS col1, - col2 FROM tab0 AS cor0
----
21
-10
21
-47
21
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 14 + col1 * + col1 * - col2 * - col0 col1 FROM tab2 AS cor0
----
15178226
19527136
2751844

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + - 24 + - 42 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL - COUNT( * ) * 75 + 69 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - COUNT ( * ) * 75 + 69 FROM tab0
----
-156

query I rowsort
SELECT col2 + + 51 FROM tab2
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <= 34 + + 56
----
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= 34 + + 56
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT + CAST( NULL AS SIGNED ) + - - 56 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT + CAST ( NULL AS INTEGER ) + - - 56 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * 31 * - + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-303830
-3079
-68398

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT 72 - SUM( col2 ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9985
SELECT 72 - SUM ( col2 ) AS col2 FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - col1 + 91 AS col1 FROM tab0
----
10
70
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT ALL - COUNT( DISTINCT + 81 ) DIV - - 14 - - + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - COUNT ( DISTINCT + 81 ) / - - 14 - - + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - - ( MAX( - + col2 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9989
SELECT - - ( MAX ( - + col2 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
-56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col2 BETWEEN - col1 * + 80 + + + col0 AND + - 32
----
91
47
68

query I rowsort
SELECT + - col0 * - 76 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT + col1 * - + 27 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - 52, + 54 + - col1 * + 38 AS col1 FROM tab0 AS cor0
----
-52
-3024
-52
-744
-52
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 61 IS NULL )
----

query I rowsort
SELECT col1 * - + 95 FROM tab0 cor0
----
-1995
-7695
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT - 48 * COUNT( ALL ( - ( - 59 ) ) ) FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9996
SELECT - 48 * COUNT ( ALL ( - ( - 59 ) ) ) FROM tab1 AS cor0
----
-144

query I rowsort
SELECT + - ( - 96 ) - - + ( - - col0 ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
111
183
193

query I rowsort
SELECT DISTINCT + ( + 9 ) * col0 AS col2 FROM tab0
----
135
783
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT + col0 * - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + col0 * - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

