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)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT DISTINCT - COUNT( - col0 ) + - ( + 55 ) + 47 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT - COUNT ( - col0 ) + - ( + 55 ) + 47 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT MAX( ALL + + col1 ) + 17 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-1
SELECT MAX ( ALL + + col1 ) + 17 FROM tab1
----
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT ALL + 54 DIV 64 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL + 54 / 64 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL - CAST( + MAX( DISTINCT - col2 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - CAST ( + MAX ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + col2 DIV - col1 * + col2 * - col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8
SELECT + col2 / - col1 * + col2 * - col2 AS col1 FROM tab2
----
0
0
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-13
SELECT DISTINCT - + col2 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-13
SELECT DISTINCT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT MAX( ALL + - ( - - 51 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT MAX ( ALL + - ( - - 51 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-16
SELECT 17 DIV 84 col2, + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-16
SELECT 17 / 84 col2, + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
0
51
0
67
0
77

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

query I rowsort
SELECT ALL - - 89 + - col2 * + - 33 FROM tab0 AS cor0
----
1640
3356
419

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + MAX( - - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-19
SELECT + MAX ( - - col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col0 * + - col1 / 36 BETWEEN - 14 + + col0 AND NULL )
----

query I rowsort
SELECT ALL col0 * 34 * col2 AS col1 FROM tab0
----
23970
29580
326502

query I rowsort
SELECT + col2 + 97 * col0 * + 8 - ( col1 ) AS col0 FROM tab2
----
35668
49627
58191

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 NOT BETWEEN ( NULL ) AND 80 )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-25
SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) DIV - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2
----
9 values hashing to 12b428ff1bae21ec9947f1c6bfaf4e81

skipif mysql # not compatible
query III rowsort label-25
SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) / - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2
----
9 values hashing to 12b428ff1bae21ec9947f1c6bfaf4e81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT CAST( + 4 AS SIGNED ) * 17 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
166
34
57

skipif mysql # not compatible
query I rowsort label-28
SELECT CAST ( + 4 AS INTEGER ) * 17 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
166
34
57

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

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

query I rowsort
SELECT col1 * - col0 + + + col2 FROM tab0 AS cor0
----
-1168
-1817
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 col0, - 63 AS col1 FROM tab2 AS cor0
----
30
-63
30
-63
30
-63

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

query I rowsort
SELECT - 7 * - col1 FROM tab2 AS cor0
----
357
469
539

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - 19
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-42
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT + - 82 <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT + - 82 <= - col0
----
NULL

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

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

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

query I rowsort
SELECT col1 - - col0 + - ( - - 20 ) AS col2 FROM tab2 WHERE - - col0 * - + 5 IS NOT NULL
----
121
122
77

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT 93 + + + MIN( 23 ) * - MIN( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-252

skipif mysql # not compatible
query I rowsort label-47
SELECT 93 + + + MIN ( 23 ) * - MIN ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-252

query II rowsort
SELECT ALL + col2, col2 * - col2 FROM tab0 AS cor0
----
10
-100
47
-2209
99
-9801

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

query I rowsort
SELECT DISTINCT ( + - 34 ) + + col2 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( - col0 / col1 * - + col0 * - col1 )
----

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

query I rowsort
SELECT ALL - col2 + - + 11 AS col0 FROM tab0 AS cor0
----
-110
-21
-58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT DISTINCT col0 DIV - col1 + + ( 4 ) FROM tab2
----
3
4

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT col0 / - col1 + + ( 4 ) FROM tab2
----
3
4

query III rowsort
SELECT * FROM tab2 WHERE + 32 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL COUNT( * ) + 80 AS col2 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL COUNT ( * ) + 80 AS col2 FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col0, 94 AS col0 FROM tab0
----
88
94
88
94
88
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT ALL - col2 + + 33 + + + ( + CAST( NULL AS SIGNED ) ) / - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - col2 + + 33 + + + ( + CAST ( NULL AS INTEGER ) ) / - - col1 FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, 64 - + - col1 col0 FROM tab2
----
23
115
40
141
58
131

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

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - 40 / + COUNT ( * ) - CAST ( 62 AS INTEGER ) FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-62
SELECT ( col1 ) AS col2, + col2 / col1 * - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-62
SELECT ( col1 ) AS col2, + col2 / col1 * - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

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

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

query I rowsort
SELECT + 93 AS col1 FROM tab0 WHERE NULL IS NULL
----
93
93
93

query II rowsort
SELECT + col2 AS col0, col0 - + col2 * col0 * + - 21 FROM tab2
----
23
22264
40
53824
58
91425

query I rowsort
SELECT col2 - - - 53 * + 93 AS col1 FROM tab2 cor0
----
-4871
-4889
-4906

query I rowsort
SELECT 99 + - col1 + col1 + + - 48 FROM tab0 AS cor0
----
51
51
51

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

query I rowsort
SELECT ALL - col2 + - - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - 19 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 0 * - 4, + col1 col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT + col1 * + 24 - + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 54 IS NULL
----
-73
1929
417

query II rowsort
SELECT ALL + col0 * + - col1 AS col1, + col0 + + 18 * + col2 AS col2 FROM tab0 AS cor0
----
-1215
861
-1827
267
-97
1879

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT col2 DIV col0 * col2 DIV + col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-78
SELECT col2 / col0 * col2 / + col2 AS col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-79
SELECT - 56 AS col2, col1 DIV - col1 AS col2 FROM tab0
----
-56
-1
-56
-1
-56
-1

skipif mysql # not compatible
query II rowsort label-79
SELECT - 56 AS col2, col1 / - col1 AS col2 FROM tab0
----
-56
-1
-56
-1
-56
-1

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

query I rowsort
SELECT DISTINCT - + 67 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + + 69 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( 12 )
----

query I rowsort
SELECT ALL - - 34 + + col2 FROM tab0 AS cor0
----
133
44
81

query I rowsort
SELECT ALL + 28 * 96 + - col2 AS col2 FROM tab0
----
2589
2641
2678

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

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

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

skipif mysql # not compatible
query I rowsort label-86
SELECT - col1 / + + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT + MIN( + + col1 ) AS col2, 90 AS col1 FROM tab1 AS cor0
----
5
90

skipif mysql # not compatible
query II rowsort label-87
SELECT + MIN ( + + col1 ) AS col2, 90 AS col1 FROM tab1 AS cor0
----
5
90

query I rowsort
SELECT ALL - col2 * 53 + - - col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

query I rowsort
SELECT col1 * + + 27 AS col1 FROM tab0 AS cor0
----
2187
27
567

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( 5 ) + - col2 - + col1 + - col1 * - col2 AS col1 FROM tab0
----
184
3684
4

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT COUNT( * ) col2 FROM tab0 WHERE NULL IN ( - col0 + + 39, col0, - col2, 57 * 60 * + col2 * + col2 * col2, - 58 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-95
SELECT COUNT ( * ) col2 FROM tab0 WHERE NULL IN ( - col0 + + 39, col0, - col2, 57 * 60 * + col2 * + col2 * col2, - 58 )
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 + + ( 81 ) col0 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT ( - - col1 ) + - 98 + - ( - col2 ) FROM tab1
----
-34
12
17

query I rowsort
SELECT ALL - 35 * 82 FROM tab2 AS cor0
----
-2870
-2870
-2870

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-101
SELECT + 91 AS col0 FROM tab0 AS cor0 WHERE + col2 * + + col1 >= - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-101
SELECT + 91 AS col0 FROM tab0 AS cor0 WHERE + col2 * + + col1 >= - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----

query II rowsort
SELECT col1, col2 + ( + 68 ) AS col2 FROM tab2 cor0
----
51
91
67
126
77
108

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-103
SELECT col1, + CAST( NULL AS DECIMAL ) * - 36 AS col2 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-103
SELECT col1, + CAST ( NULL AS REAL ) * - 36 AS col2 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT CAST( + AVG ( ALL + 89 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-105
SELECT CAST ( + AVG ( ALL + 89 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-107
SELECT ALL 73 * + SUM( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-385440
NULL

skipif mysql # not compatible
query II rowsort label-107
SELECT ALL 73 * + SUM ( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-385440
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-108
SELECT - col1 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-108
SELECT - col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT DISTINCT + + col2 * 6 - + col0 AS col2 FROM tab0 AS cor0
----
-27
267
497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT DISTINCT - ( 84 ) AS col2 FROM tab1 AS cor0 WHERE col0 * col2 / - CAST( - 10 AS SIGNED ) IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT - ( 84 ) AS col2 FROM tab1 AS cor0 WHERE col0 * col2 / - CAST ( - 10 AS INTEGER ) IS NOT NULL
----
-84

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT COUNT( * ) DIV 82 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-113
SELECT COUNT ( * ) / 82 FROM tab2
----
0

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

query I rowsort
SELECT DISTINCT ( - 73 ) * - col2 FROM tab0
----
3431
7227
730

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - COUNT( * ) * - 57 AS col1 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-116
SELECT - COUNT ( * ) * - 57 AS col1 FROM tab1 AS cor0
----
171

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 57 + + 29 NOT BETWEEN + 93 AND + ( + col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 90 * + 35 + 47 AS col0, + 36 * + col0 FROM tab0
----
3197
3132
3197
3492
3197
540

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

query II rowsort
SELECT + ( + 69 ) + col2 + - - col1 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
133
-85
179
-51
184
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-122
SELECT COUNT( 23 ), + CAST( - 16 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN 76 AND ( NULL )
----
0
-16

skipif mysql # not compatible
query II rowsort label-122
SELECT COUNT ( 23 ), + CAST ( - 16 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN 76 AND ( NULL )
----
0
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, col2 * - + col0 col0 FROM tab2 AS cor0
----
-23
-1058
-40
-2560
-58
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT DISTINCT - - CAST( 2 AS SIGNED ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT - - CAST ( 2 AS INTEGER ) FROM tab1 AS cor0
----
2

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

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0 WHERE NULL <> col2
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-129
SELECT ALL col0 * 38 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL col0 * 38 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT + ( - + MAX( ALL + + col0 ) ) FROM tab1 WHERE NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT + ( - + MAX ( ALL + + col0 ) ) FROM tab1 WHERE NULL IS NULL
----
-91

query I rowsort
SELECT ALL col1 * - + col0 + - 79 + + 18 * 28 + - 28 FROM tab0
----
-1430
-818
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT ALL - CAST( - 21 AS SIGNED ) + col1 * + - 75 AS col0 FROM tab1
----
-1029
-3504
-354

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - CAST ( - 21 AS INTEGER ) + col1 * + - 75 AS col0 FROM tab1
----
-1029
-3504
-354

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-134
SELECT DISTINCT * FROM tab2 WHERE - 9 + - + col1 + col0 * + - CAST( NULL AS SIGNED ) NOT BETWEEN 48 AND + 24 / + 40 + + + 92
----

skipif mysql # not compatible
query III rowsort label-134
SELECT DISTINCT * FROM tab2 WHERE - 9 + - + col1 + col0 * + - CAST ( NULL AS INTEGER ) NOT BETWEEN 48 AND + 24 / + 40 + + + 92
----

query I rowsort
SELECT ALL - col1 + + - col1 AS col1 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT ALL * FROM tab0 WHERE - 72 * col2 / - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col2 + col2 AS col0 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col2 AND + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT DISTINCT 63 - CAST( + + 37 AS SIGNED ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT 63 - CAST ( + + 37 AS INTEGER ) AS col1 FROM tab1
----
26

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-143
SELECT ALL + CAST( + + ( - + 52 ) AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) + - 20 * 23 FROM tab0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-143
SELECT ALL + CAST ( + + ( - + 52 ) AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) + - 20 * 23 FROM tab0
----
-52
NULL
-52
NULL
-52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT - col0 DIV - 35 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-144
SELECT - col0 / - 35 AS col2 FROM tab1
----
1
2
2

query I rowsort
SELECT DISTINCT + 14 * - col2 AS col1 FROM tab2 cor0
----
-322
-560
-812

query I rowsort
SELECT ALL 34 * col1 AS col0 FROM tab1 AS cor0
----
1598
170
476

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col0, + col0 * col1 col1 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query I rowsort
SELECT ALL 33 * + + 62 AS col1 FROM tab0
----
2046
2046
2046

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 89 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - - 65 + + + 77 * - 1 AND + + col2 + col0
----

query II rowsort
SELECT + col0, 17 AS col2 FROM tab1
----
51
17
85
17
91
17

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

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

skipif mysql # not compatible
query I rowsort label-154
SELECT - COUNT ( ALL + 69 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + - COUNT( * ) FROM tab2 WHERE NOT + - col0 BETWEEN + + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-155
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT + - col0 BETWEEN + + col0 AND NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 57 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT DISTINCT 54 DIV - col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT 54 / - col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT ALL + SUM( ALL - 34 ) DIV + - COUNT( * ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + SUM ( ALL - 34 ) / + - COUNT ( * ) AS col1 FROM tab0
----
34

query I rowsort
SELECT + - col2 + - 77 FROM tab1 AS cor0
----
-136
-145
-173

query I rowsort
SELECT col2 * - - 26 / + 80 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-161
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + - CAST( NULL AS SIGNED ) - 94 <> col2
----

skipif mysql # not compatible
query III rowsort label-161
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + - CAST ( NULL AS INTEGER ) - 94 <> col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT COUNT( * ) - + COUNT( * ) + + 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + + 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

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

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

query II rowsort
SELECT + col2, col0 * + col0 * + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT 39 + + + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT 39 + + + COUNT ( * ) FROM tab2
----
42

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col1 * + 22, + col0, - 15 - + + col0 + - - col1 - - col0 - + col0 )
----

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

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

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

query II rowsort
SELECT col1, + 34 - - ( col2 ) FROM tab0 AS cor0
----
1
133
21
44
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT - + COUNT( * ) * - ( - + MIN( ALL - col1 ) ) AS col0, + MAX( ALL - - col1 ) + 34 FROM tab2 cor0
----
231
111

skipif mysql # not compatible
query II rowsort label-173
SELECT - + COUNT ( * ) * - ( - + MIN ( ALL - col1 ) ) AS col0, + MAX ( ALL - - col1 ) + 34 FROM tab2 cor0
----
231
111

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - - SUM( + + 90 ) col2 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-174
SELECT - - SUM ( + + 90 ) col2 FROM tab1 AS cor0
----
270

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 * - 39 + + + col1 FROM tab0 AS cor0 WHERE + 14 + 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 28 BETWEEN - col0 AND + col1 / + + col2
----

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 + - 16 FROM tab0 cor0
----
-6
31
83

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT - 42 * + ( COUNT( ALL - - 78 ) ) AS col2 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT - 42 * + ( COUNT ( ALL - - 78 ) ) AS col2 FROM tab1
----
-126

query I rowsort
SELECT + 97 * + ( - + 40 ) AS col2 FROM tab0
----
-3880
-3880
-3880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - COUNT( col0 ) + + + 13 AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-187
SELECT - COUNT ( col0 ) + + + 13 AS col2 FROM tab2
----
10

query I rowsort
SELECT DISTINCT + col2 + + col2 + 3 * - - col0 AS col0 FROM tab1
----
345
373
409

query I rowsort
SELECT ALL - - col1 * + col2 * + - ( - 7 ) + - 76 * + + col0 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 - + + ( - col1 ) FROM tab2 AS cor0
----
102
134
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT + 95 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-192
SELECT + 95 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT SUM( - 92 ) AS col2 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-193
SELECT SUM ( - 92 ) AS col2 FROM tab0
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT ( - COUNT( DISTINCT + + col0 ) ) DIV - 35 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT ( - COUNT ( DISTINCT + + col0 ) ) / - 35 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT col2 DIV col0 * - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-195
SELECT col2 / col0 * - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-196
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + ( + 71 ) * col1 = + CAST( col1 AS SIGNED ) - + col1 + + col1 + + - col2 * - 21 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-196
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + ( + 71 ) * col1 = + CAST ( col1 AS INTEGER ) - + col1 + + col1 + + - col2 * - 21 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 30 AND NULL
----

query I rowsort
SELECT 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

skipif mysql # not compatible
query I rowsort label-199
SELECT + 36 * + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
324

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 1 + - - col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT - MAX( DISTINCT + 61 ), - 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-61
-96

skipif mysql # not compatible
query II rowsort label-201
SELECT - MAX ( DISTINCT + 61 ), - 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-61
-96

query II rowsort
SELECT DISTINCT - 32, col1 * + col0 * - 98 AS col2 FROM tab1 AS cor0
----
-32
-41650
-32
-419146
-32
-69972

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT ALL + - MIN( DISTINCT - + ( - col0 ) ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + - MIN ( DISTINCT - + ( - col0 ) ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

query II rowsort
SELECT ALL - col0 AS col0, - col2 AS col2 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

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

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

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

query II rowsort
SELECT ( + + col2 ), + 17 - - col2 FROM tab2
----
23
40
40
57
58
75

query I rowsort
SELECT DISTINCT + col0 + - col1 + + - col0 * - 70 * + - col1 AS col2 FROM tab2
----
-164225
-344973
-351742

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT + 36 + col0 FROM tab1 AS cor0
----
121
127
87

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT ALL + col2 + + col2 DIV + col2 col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-212
SELECT ALL + col2 + + col2 / + col2 col2 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - - SUM( ALL - - 23 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
207

skipif mysql # not compatible
query I rowsort label-213
SELECT - - SUM ( ALL - - 23 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
207

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

skipif mysql # not compatible
query I rowsort label-214
SELECT - COUNT ( - 16 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 * 17 * col0 * + + col0 - - - col2 AS col1 FROM tab0
----
-1286740
-15835446
-179822

query I rowsort
SELECT DISTINCT 71 * - + col1 - - col1 + - 87 AS col0 FROM tab0 AS cor0
----
-1557
-157
-5757

query I rowsort
SELECT - col0 * col2 * 33 + + col0 FROM tab0 AS cor0
----
-23250
-28623
-316802

query II rowsort
SELECT - 77 AS col0, ( - 58 ) + col0 AS col2 FROM tab1 AS cor0
----
-77
-7
-77
27
-77
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND + + 97
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * MAX( - 39 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * MAX ( - 39 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 40 FROM tab0 AS cor0 WHERE NOT + 84 IS NOT NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <> - - col2
----
0

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 51 NOT BETWEEN - col0 AND - - 42 + - col1 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT ALL - 68 * COUNT( * ) AS col2, - COUNT( * ) col2 FROM tab2 AS cor0
----
-204
-3

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

query II rowsort
SELECT - col0 * col1 AS col2, ( col1 ) AS col0 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT ALL col1 * - 81 AS col0 FROM tab0
----
-1701
-6561
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-232
SELECT - 60 DIV - + col0 col2, + col1 * + col0 col2 FROM tab2 cor0
----
0
4928
0
5025
1
2346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-232
SELECT - 60 / - + col0 col2, + col1 * + col0 col2 FROM tab2 cor0
----
0
4928
0
5025
1
2346

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + SUM( DISTINCT + + ( + + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE 57 - - - col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + SUM ( DISTINCT + + ( + + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE 57 - - - col2 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL ( + + MIN( + col1 ) ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL ( + + MIN ( + col1 ) ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4

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

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

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

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT COUNT ( * ) + 72 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT MAX( ALL - col0 ) * + COUNT( col1 ) AS col2 FROM tab0 WHERE 15 IS NOT NULL
----
-45

skipif mysql # not compatible
query I rowsort label-239
SELECT MAX ( ALL - col0 ) * + COUNT ( col1 ) AS col2 FROM tab0 WHERE 15 IS NOT NULL
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL - MAX( DISTINCT 38 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - MAX ( DISTINCT 38 ) AS col2 FROM tab1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-242
SELECT + col0, CAST( + + col2 AS SIGNED ) + + col2 FROM tab1
----
51
192
85
118
91
136

skipif mysql # not compatible
query II rowsort label-242
SELECT + col0, CAST ( + + col2 AS INTEGER ) + + col2 FROM tab1
----
51
192
85
118
91
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE 1 <= + 72
----
1
21
81

query I rowsort
SELECT ( - 56 ) * + 79 FROM tab0 cor0
----
-4424
-4424
-4424

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL + COUNT( * ) + SUM( + + col2 ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + COUNT ( * ) + SUM ( + + col2 ) AS col0 FROM tab0 AS cor0
----
159

query I rowsort
SELECT - 9 + + col2 + + col2 * + + 61 AS col2 FROM tab1 AS cor0
----
3649
4207
5943

query I rowsort
SELECT col1 * - col0 + + col2 * + col2 FROM tab2
----
-1661
-1817
-3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT - MAX( DISTINCT 51 ) + + 35 + - CAST( NULL AS SIGNED ) * COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-248
SELECT - MAX ( DISTINCT 51 ) + + 35 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) col1 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - + col0 * - 33 AS col1 FROM tab0 AS cor0
----
2871
3201
495

query I rowsort
SELECT ALL - col1 * - ( col2 ) - + col1 + - + col1 AS col2 FROM tab0 AS cor0
----
168
3645
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + ( + 80 ) col0, + col1 * col0 FROM tab1
----
4720
425
5440
4277
7680
714

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT - col2 DIV - 81 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-254
SELECT - col2 / - 81 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT - 56 + + 76 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT MAX( + col2 ) * - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2
----
522

skipif mysql # not compatible
query I rowsort label-256
SELECT MAX ( + col2 ) * - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2
----
522

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

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

query I rowsort
SELECT DISTINCT - ( + col2 ) * - 8 AS col1 FROM tab0
----
376
792
80

query II rowsort
SELECT ALL col2 AS col1, col1 * 35 + + 70 - + + col2 FROM tab0
----
10
795
47
2858
99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL + COUNT( * ) * - 5 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + COUNT ( * ) * - 5 FROM tab2
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 56 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-263
SELECT DISTINCT 39 AS col1, - col1 * + col1 * + CAST( ( - col2 ) AS SIGNED ) FROM tab2
----
39
237160
39
260362
39
59823

skipif mysql # not compatible
query II rowsort label-263
SELECT DISTINCT 39 AS col1, - col1 * + col1 * + CAST ( ( - col2 ) AS INTEGER ) FROM tab2
----
39
237160
39
260362
39
59823

query I rowsort
SELECT DISTINCT + col1 * + - 3 * - - col1 + - 69 + - col2 + col1 * + - col2 AS col0 FROM tab1 AS cor0
----
-2097
-498
-9960

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

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

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

query II rowsort
SELECT - col2, - ( + 90 ) AS col1 FROM tab1 AS cor0
----
-59
-90
-68
-90
-96
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-268
SELECT ALL - col0 + CAST( NULL AS SIGNED ) col2, - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

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

query II rowsort
SELECT + 65, - 23 + - col0 * col1 + + - col2 AS col0 FROM tab0 AS cor0
----
65
-1285
65
-1860
65
-219

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

query I rowsort
SELECT - + col0 * + col2 - + col0 AS col1 FROM tab2 cor0
----
-1104
-2624
-4425

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + col2 + - 61 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT DISTINCT - 30 + - + COUNT( + col2 ) * - 53 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT - 30 + - + COUNT ( + col2 ) * - 53 FROM tab2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-274
SELECT 10 + - - CAST( - 41 AS SIGNED ) AS col2, col1 * 99 AS col0 FROM tab1
----
-31
1386
-31
4653
-31
495

skipif mysql # not compatible
query II rowsort label-274
SELECT 10 + - - CAST ( - 41 AS INTEGER ) AS col2, col1 * 99 AS col0 FROM tab1
----
-31
1386
-31
4653
-31
495

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL ( - COUNT( * ) ) + + SUM( DISTINCT 76 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL ( - COUNT ( * ) ) + + SUM ( DISTINCT 76 ) AS col2 FROM tab0
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 26 / + - 31 )
----

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

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

query I rowsort
SELECT ( + - 70 ) FROM tab2
----
-70
-70
-70

query I rowsort
SELECT ALL 27 * col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab2 AS cor0 WHERE col0 <= 89
----
-23

query II rowsort
SELECT ALL + col2 * - col2 + + + col0 AS col1, 86 * col1 FROM tab2 AS cor0
----
-1536
6622
-3289
5762
-483
4386

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col2 * col1 FROM tab0 AS cor0
----
10
210
47
3807
99
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT COUNT( * ) * 52 * + 84 * - + COUNT( DISTINCT - col2 ) AS col1 FROM tab0
----
-39312

skipif mysql # not compatible
query I rowsort label-287
SELECT COUNT ( * ) * 52 * + 84 * - + COUNT ( DISTINCT - col2 ) AS col1 FROM tab0
----
-39312

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

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL - COUNT ( + 72 ) FROM tab1
----
-3

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

query I rowsort
SELECT col0 * - col0 * - - 61 AS col0 FROM tab0
----
-13725
-461709
-573949

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 >= + 15
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT + 93 + - + col0 DIV + - col2 col0 FROM tab0
----
101
93
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT + 93 + - + col0 / + - col2 col0 FROM tab0
----
101
93
93

query I rowsort
SELECT - col1 + + 67 AS col0 FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT 81 + col0 FROM tab1 AS cor0
----
132
166
172

query I rowsort
SELECT DISTINCT col0 + - + 28 FROM tab0 AS cor0 WHERE NOT - col2 - + 25 - + - col2 * - col1 * - - col2 + 66 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + 9 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL 45 + COUNT( * ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL 45 + COUNT ( * ) AS col0 FROM tab0
----
48

query I rowsort
SELECT - col0 * - 73 FROM tab1
----
3723
6205
6643

query II rowsort
SELECT col0, - 69 FROM tab0
----
15
-69
87
-69
97
-69

query II rowsort
SELECT col1, + col2 * + col1 * + 68 FROM tab1
----
14
91392
47
217328
5
20060

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

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

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

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( - 31 ) FROM tab0
----
-31

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-309
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + + col2 * + 27 - + CAST( NULL AS DECIMAL ) AND - col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + + col2 * + 27 - + CAST ( NULL AS REAL ) AND - col2
----
51
67
77

query II rowsort
SELECT + + 89 AS col1, col2 + - col2 FROM tab1 AS cor0 WHERE NOT - col0 + + col2 + - - 11 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT + - col2 * 32 + CAST( 12 AS SIGNED ) FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-311
SELECT + - col2 * 32 + CAST ( 12 AS INTEGER ) FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT ALL - COUNT( * ), + COUNT( * ) col1 FROM tab0
----
-3
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * + - 76 col0 FROM tab1
----
5776
5776
5776

query II rowsort
SELECT ALL + 93, + col0 * 35 AS col2 FROM tab1
----
93
1785
93
2975
93
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-317
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( DISTINCT + 38 ) FROM tab0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-317
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT + 38 ) FROM tab0
----
NULL
1

query III rowsort
SELECT ALL * FROM tab2 WHERE 59 >= - col2 + col2 / - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + 16 * ( + ( col1 ) ) FROM tab0
----
15
1296
87
336
97
16

query I rowsort
SELECT + 52 + + col0 FROM tab0 cor0
----
139
149
67

query I rowsort
SELECT + ( 92 ) * - + col1 * + + col0 + - col1 + - 45 AS col0 FROM tab0 AS cor0
----
-111906
-168150
-8970

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 89 IN ( + 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 94 ) FROM tab1 WHERE NOT NULL = + 31
----

query I rowsort
SELECT ALL col2 * - 32 FROM tab2
----
-1280
-1856
-736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-326
SELECT + ( - col1 ) FROM tab0 WHERE NOT ( - CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-326
SELECT + ( - col1 ) FROM tab0 WHERE NOT ( - CAST ( NULL AS REAL ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT 68 * - ( - col1 DIV col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT 68 * - ( - col1 / col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 99 * - col0 - col1 * ( col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT DISTINCT MIN( DISTINCT + 90 ) - 38 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT MIN ( DISTINCT + 90 ) - 38 FROM tab1
----
52

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT MAX( + ( 26 ) ) * 18 AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-332
SELECT MAX ( + ( 26 ) ) * 18 AS col2 FROM tab0
----
468

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

skipif mysql # not compatible
query I rowsort label-333
SELECT - 71 * COUNT ( * ) AS col0 FROM tab0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT 4 - col0 DIV 61 AS col1 FROM tab1
----
3
3
4

skipif mysql # not compatible
query I rowsort label-334
SELECT 4 - col0 / 61 AS col1 FROM tab1
----
3
3
4

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

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

query I rowsort
SELECT col1 * - ( + 59 * col1 ) FROM tab0
----
-26019
-387099
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 >= + col2 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 65 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * 54 - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT - MAX( + 42 ) AS col2 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - MAX ( + 42 ) AS col2 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * - 35 FROM tab0
----
-3045
-3395
-525

query III rowsort
SELECT * FROM tab0 WHERE NOT - 81 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 54 * col2 AND - 26 - col1 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col0 col1 FROM tab2
----
-2990
-4160
-4875

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

skipif mysql # not compatible
query I rowsort label-345
SELECT MAX ( DISTINCT - 68 ) AS col0 FROM tab0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col1 FROM tab1 AS cor0 WHERE NOT NULL < + 27
----

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

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

query I rowsort
SELECT + ( + 73 ) * - col2 AS col0 FROM tab1 cor0
----
-4307
-4964
-7008

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-351
SELECT DISTINCT + 31 DIV ( + COUNT( * ) ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT + 31 / ( + COUNT ( * ) ) FROM tab2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT - ( 27 ) DIV - 96 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-352
SELECT - ( 27 ) / - 96 AS col0 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT col2 * 78 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 / - 46 ) > NULL
----

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

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

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

query I rowsort
SELECT col0 / + col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT - 33 * - + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-358
SELECT - 33 * - + COUNT ( * ) FROM tab2
----
99

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * col0 col2 FROM tab2
----
2397
5005
5092

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE NOT ( 83 * - col2 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT + COUNT( * ) DIV + 64 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-366
SELECT + COUNT ( * ) / + 64 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-368
SELECT DISTINCT - - MAX ( col0 ) col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - - 82 + + - 62 AS col0 FROM tab0 AS cor0
----
20
20
20

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

query I rowsort
SELECT - 59 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( col2 * col0 ) AND - col2
----
-59
-59
-59

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

query III rowsort
SELECT * FROM tab1 WHERE 58 NOT IN ( 95 + + 98 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 99 IS NULL )
----

query I rowsort
SELECT - - col1 + + 32 AS col2 FROM tab1 AS cor0
----
37
46
79

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-378
SELECT * FROM tab0 AS cor0 WHERE - 42 BETWEEN NULL AND + + ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-378
SELECT * FROM tab0 AS cor0 WHERE - 42 BETWEEN NULL AND + + ( + CAST ( NULL AS REAL ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT col0 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN col0 * col1 AND - col2 * CAST( NULL AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-380
SELECT col0 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN col0 * col1 AND - col2 * CAST ( NULL AS INTEGER )
----
15
87
97

query II rowsort
SELECT col0, + 24 * col1 FROM tab1 AS cor0
----
51
336
85
120
91
1128

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

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

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

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

query I rowsort
SELECT + col1 FROM tab0 WHERE ( NULL ) IS NULL
----
1
21
81

query I rowsort
SELECT col0 - - col1 * 73 FROM tab1
----
1073
3522
450

query I rowsort
SELECT DISTINCT - 54 * - 12 + col0 * + 63 + col1 FROM tab2
----
3597
4757
5440

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE - - 76 + 55 + col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-389
SELECT - 52 DIV - + COUNT( * ) AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-389
SELECT - 52 / - + COUNT ( * ) AS col2 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE col1 = + col1 * ( col2 ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 = + col1 * ( col2 ) + col1
----
0

query I rowsort
SELECT ALL 29 FROM tab1 AS cor0 WHERE + 95 >= NULL
----

query I rowsort
SELECT 69 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) >= - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col1 col1 FROM tab0 AS cor0
----
1
441
6561

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

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

query I rowsort
SELECT 73 * ( - ( + - col2 ) ) * + col0 FROM tab2
----
186880
317550
77234

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL - MIN( ALL + - col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - MIN ( ALL + - col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-225

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

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

query I rowsort
SELECT DISTINCT col1 * - 16 FROM tab2 AS cor0
----
-1072
-1232
-816

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND ( 27 * + col2 )
----

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

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

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

query I rowsort
SELECT + + col1 * 53 FROM tab0 AS cor0
----
1113
4293
53

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

query I rowsort
SELECT ALL col0 + col0 * + col0 * - col0 - + + col2 AS col0 FROM tab2
----
-262120
-421858
-97313

query II rowsort
SELECT + col0, + 43 * 47 FROM tab2
----
46
2021
64
2021
75
2021

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - + col2 * + col1 * + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT DISTINCT 17 AS col2, MIN( DISTINCT + 56 ) AS col0 FROM tab2
----
17
56

skipif mysql # not compatible
query II rowsort label-409
SELECT DISTINCT 17 AS col2, MIN ( DISTINCT + 56 ) AS col0 FROM tab2
----
17
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-410
SELECT + + COUNT( ALL - + col2 ) DIV - 37 + + 64 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-410
SELECT + + COUNT ( ALL - + col2 ) / - 37 + + 64 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
192

query I rowsort
SELECT 90 + + col2 * col1 - col1 AS col1 FROM tab2 AS cor0
----
1212
3093
3909

query I rowsort
SELECT + 96 + - col0 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 >= + + 40
----
51
67
77

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

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

query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 FROM tab2
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - 62 - - 70 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-416
SELECT - 62 - - 70 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 0 + - + ( - col1 ) * + 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-418
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - - col2 - 36 * - col0 - - CAST( - 8 AS SIGNED ) / 94 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-418
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - - col2 - 36 * - col0 - - CAST ( - 8 AS INTEGER ) / 94 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - + 6 AS col2 FROM tab2 AS cor0
----
-52
-70
-81

query I rowsort
SELECT - + col0 * col0 + - 13 + + col0 * - col2 + - - 88 FROM tab2 AS cor0
----
-3099
-6581
-9900

query I rowsort
SELECT col0 + col0 + + 38 FROM tab0 AS cor0 WHERE ( NOT col2 IS NULL )
----
212
232
68

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

query II rowsort
SELECT DISTINCT col0 AS col2, + 43 AS col1 FROM tab1
----
51
43
85
43
91
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + + 74 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT + + 21 * col0 + - col2 - - col2 DIV 50 + col0 FROM tab2 WHERE NOT col2 <= 42
----
1593

skipif mysql # not compatible
query I rowsort label-425
SELECT + + 21 * col0 + - col2 - - col2 / 50 + col0 FROM tab2 WHERE NOT col2 <= 42
----
1593

query I rowsort
SELECT col0 * - - col2 + + 10 FROM tab2 cor0
----
1068
2570
4360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 28 + - col0 * - 82 col2 FROM tab0 AS cor0
----
-1038
6546
7926

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + ( + + SUM( + 32 ) ) * COUNT( + col2 ) * - COUNT( * ) FROM tab2
----
-864

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + ( + + SUM ( + 32 ) ) * COUNT ( + col2 ) * - COUNT ( * ) FROM tab2
----
-864

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 10 + - col2 <= ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT 20 = - + col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT COUNT( * ) * + + 63 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT COUNT ( * ) * + + 63 FROM tab2
----
189

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

skipif mysql # not compatible
query I rowsort label-436
SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT - COUNT( * ) * - 83 AS col2 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - COUNT ( * ) * - 83 AS col2 FROM tab1 AS cor0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT DISTINCT - - 68 DIV - - 74 + + 58 AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT - - 68 / - - 74 + + 58 AS col0 FROM tab0 AS cor0
----
58

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

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

query I rowsort
SELECT ALL + - col0 + - - col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE ( - - 17 ) * col2 + + 90 + + 72 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 71 * 76 AS col1 FROM tab1 cor0
----
5396

query II rowsort
SELECT col2 * + 41 + - ( + 57 ) AS col2, ( + col0 ) + - 82 AS col2 FROM tab2 WHERE - col2 >= + col2 AND NOT NULL IS NULL
----

query II rowsort
SELECT - col1 AS col2, - ( - 10 ) FROM tab2 WHERE - - col2 + - col0 IS NOT NULL
----
-51
10
-67
10
-77
10

query I rowsort
SELECT 31 * col2 AS col0 FROM tab1
----
1829
2108
2976

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT 80 * col0 DIV - col1 AS col0 FROM tab2
----
-66
-72
-89

skipif mysql # not compatible
query I rowsort label-449
SELECT 80 * col0 / - col1 AS col0 FROM tab2
----
-66
-72
-89

query I rowsort
SELECT DISTINCT - col2 + + 95 * col2 + + - col1 FROM tab0
----
4337
919
9305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-451
SELECT DISTINCT - 39 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT - 39 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
13

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

query I rowsort
SELECT ALL + col1 * - col1 FROM tab0 AS cor0 WHERE NOT ( - 18 * + - 46 + 32 + ( - col0 ) * col2 = ( col1 ) )
----
-1
-441
-6561

query I rowsort
SELECT ALL + col0 + + + ( - 76 ) FROM tab0
----
-61
11
21

query I rowsort
SELECT ALL col0 - 40 FROM tab2
----
24
35
6

query I rowsort
SELECT 15 + + 91 FROM tab0
----
106
106
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 82 col0, + col1 * + - col2 FROM tab0
----
82
-210
82
-3807
82
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT - MIN( DISTINCT + 18 ) * 43 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
2322

skipif mysql # not compatible
query I rowsort label-458
SELECT - MIN ( DISTINCT + 18 ) * 43 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2322

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

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT DISTINCT MAX( - 61 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT MAX ( - 61 ) FROM tab1 AS cor0
----
-61

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-461
SELECT DISTINCT + - col0 AS col2, + CAST ( 36 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
36
-87
36
-97
36

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

skipif mysql # not compatible
query II rowsort label-462
SELECT + 63 AS col0, - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT DISTINCT - 5 * - 90 AS col0 FROM tab2, tab0 cor0
----
450

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

skipif mysql # not compatible
query I rowsort label-464
SELECT COUNT ( * ) / - + MIN ( ALL - col1 ) FROM tab2
----
0

query I rowsort
SELECT - col2 * + + col1 * - 44 AS col1 FROM tab2
----
135520
170984
51612

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

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

query I rowsort
SELECT col2 * + 89 AS col0 FROM tab1
----
5251
6052
8544

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 60 * + 8 NOT IN ( - 82 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL + - COUNT( ( CAST( NULL AS SIGNED ) ) ) * - + MIN( - - col2 ) AS col2 FROM tab0 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE col0 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT + + 48 * - 59 - + + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-2832
-2833
-2833

skipif mysql # not compatible
query I rowsort label-472
SELECT + + 48 * - 59 - + + col1 / + col0 AS col0 FROM tab2 AS cor0
----
-2832
-2833
-2833

query I rowsort
SELECT + 65 * - 40 * + - 4 FROM tab0
----
10400
10400
10400

query I rowsort
SELECT ALL col1 + + - col0 * - 44 FROM tab0
----
3849
4269
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * - col1 col1 FROM tab0
----
2511
31
651

query I rowsort
SELECT DISTINCT 77 * - + col2 FROM tab0
----
-3619
-7623
-770

query I rowsort
SELECT col0 / col1 AS col0 FROM tab1 WHERE NOT + - col0 < ( + col0 + + + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT COUNT( * ) + - + 87 + + AVG ( - ( - col0 ) ) / - - SUM( - - 40 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT COUNT ( * ) + - + 87 + + AVG ( - ( - col0 ) ) / - - SUM ( - - 40 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT ALL - 16 DIV + col0 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 16 / + col0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-480
SELECT DISTINCT CAST( + 43 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT CAST ( + 43 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL col1 + + col0 + - col2 AS col0 FROM tab0 cor0
----
-1
49
98

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE 51 IN ( + col2, 74 / ( 59 ) * - 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - - col1 col0 FROM tab2 AS cor0
----
143
159
169

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 1 + + 49 IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT + MAX( ALL 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-485
SELECT + MAX ( ALL 42 ) FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + MIN( - col0 ) col1 FROM tab1
----
-91

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

query I rowsort
SELECT col0 + col2 * col1 FROM tab0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT + COUNT( * ) + - MAX( DISTINCT - + col0 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-488
SELECT + COUNT ( * ) + - MAX ( DISTINCT - + col0 ) AS col1 FROM tab2
----
49

query I rowsort
SELECT ( + ( - 46 ) ) + - 11 FROM tab0
----
-57
-57
-57

query II rowsort
SELECT ALL + 5 + + col1 AS col0, col1 FROM tab0
----
26
21
6
1
86
81

query I rowsort
SELECT col2 + - 97 FROM tab0
----
-50
-87
2

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT + col1 + + + col0 DIV + + col1 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-492
SELECT + col1 + + + col0 / + + col1 FROM tab1
----
17
22
48

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT + COUNT( * ), - 86 AS col0 FROM tab1 WHERE col0 IS NULL
----
0
-86

skipif mysql # not compatible
query II rowsort label-493
SELECT + COUNT ( * ), - 86 AS col0 FROM tab1 WHERE col0 IS NULL
----
0
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT DISTINCT + col2 DIV 10 FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + col2 / 10 FROM tab0
----
1
4
9

query I rowsort
SELECT + col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
14
47
5

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

query I rowsort
SELECT - ( 11 ) AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - col2 * - 16 AS col0 FROM tab0 AS cor0
----
1584
160
752

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + COUNT( + 45 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-501
SELECT + COUNT ( + 45 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 17 AS col0 FROM tab1 cor0
----
17
17
17

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-506
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 + ( - + CAST( NULL AS SIGNED ) ) AS col2, 86 AS col1 FROM tab1 WHERE NOT + 39 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-506
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 + ( - + CAST ( NULL AS INTEGER ) ) AS col2, 86 AS col1 FROM tab1 WHERE NOT + 39 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( - 16 ) AND col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT DISTINCT COUNT( * ) AS col0, + 48 AS col1 FROM tab0 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-510
SELECT DISTINCT COUNT ( * ) AS col0, + 48 AS col1 FROM tab0 AS cor0
----
3
48

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 26 IS NULL
----

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

query I rowsort
SELECT + + 14 + 9 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT SUM( ALL 1 ) + - - MIN( DISTINCT + CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-514
SELECT SUM ( ALL 1 ) + - - MIN ( DISTINCT + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT - MIN( + col1 ) FROM tab0 AS cor0 WHERE col2 + - + col0 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - MIN ( + col1 ) FROM tab0 AS cor0 WHERE col2 + - + col0 * - col1 IS NULL
----
NULL

query I rowsort
SELECT + col0 * + 35 - + 50 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 44 + - + ( + col0 ) FROM tab2
----
-2
-20
-31

query I rowsort
SELECT + col1 * + 77 AS col0 FROM tab1
----
1078
3619
385

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT COUNT( * ) - - + ( + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-519
SELECT COUNT ( * ) - - + ( + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
18

query II rowsort
SELECT - 42 AS col1, col1 * - 7 + - col2 FROM tab0
----
-42
-106
-42
-157
-42
-614

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL 15 + - 32 + - COUNT( * ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL 15 + - 32 + - COUNT ( * ) FROM tab0
----
-20

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

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

query I rowsort
SELECT - 65 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL 79 * - col2 * + col2 AS col0 FROM tab0
----
-174511
-774279
-7900

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 7 / + 32 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - 39 ) * 9 * - - 3 * - 68 AS col0 FROM tab1
----
71604

query I rowsort
SELECT + 54 * - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1242
-2160
-3132

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

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

query I rowsort
SELECT DISTINCT 52 * - col1 FROM tab1
----
-2444
-260
-728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT - COUNT( * ) * COUNT( * ) * - + 62 AS col0 FROM tab1
----
558

skipif mysql # not compatible
query I rowsort label-532
SELECT - COUNT ( * ) * COUNT ( * ) * - + 62 AS col0 FROM tab1
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT + 18 DIV col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-533
SELECT + 18 / col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 6 ) AS col1 FROM tab2
----
6

query I rowsort
SELECT + 98 * - + col1 AS col1 FROM tab1
----
-1372
-4606
-490

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

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT ALL + col1 + col2 - ( - + col0 ) DIV + 19 FROM tab0 AS cor0
----
105
128
35

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL + col1 + col2 - ( - + col0 ) / + 19 FROM tab0 AS cor0
----
105
128
35

query I rowsort
SELECT ALL - col0 + + 3 FROM tab2
----
-43
-61
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT - COUNT( * ) + - SUM( ALL + - 96 ) AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - COUNT ( * ) + - SUM ( ALL + - 96 ) AS col2 FROM tab1
----
285

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

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

query I rowsort
SELECT ALL + col1 + - + ( col2 ) AS col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 - - col1 col1 FROM tab1 AS cor0
----
-38
-47
-5

query I rowsort
SELECT ALL col2 + + 34 FROM tab2 AS cor0 WHERE NOT 55 + - + col2 - - + col1 - - col0 BETWEEN - col0 * 7 + - ( - 77 ) + + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + 69 * MAX( DISTINCT + 78 ) FROM tab2 AS cor0
----
5382

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + 69 * MAX ( DISTINCT + 78 ) FROM tab2 AS cor0
----
5382

query I rowsort
SELECT ALL + 45 + + 8 * col2 FROM tab1 AS cor0
----
517
589
813

query I rowsort
SELECT + col2 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
1262
1837
196

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

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

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

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

query I rowsort
SELECT - col2 + + 44 FROM tab2
----
-14
21
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 56 + + 99 * - - 58 col1 FROM tab2
----
5844
5862
5873

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * + + col2, + col2 col0 FROM tab0 AS cor0
----
210
10
3807
47
99
99

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

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

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

skipif mysql # not compatible
query I rowsort label-555
SELECT - MAX ( DISTINCT + - 75 ) AS col2 FROM tab0
----
75

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

query I rowsort
SELECT ALL - 44 * - col2 FROM tab0 AS cor0
----
2068
4356
440

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT ALL 38 DIV 87 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL 38 / 87 + col1 FROM tab2 AS cor0
----
51
67
77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-560
SELECT ALL + + MIN( + col2 ) DIV - 52 AS col1, MAX( DISTINCT + - col2 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1
-177

skipif mysql # not compatible
query II rowsort label-560
SELECT ALL + + MIN ( + col2 ) / - 52 AS col1, MAX ( DISTINCT + - col2 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1
-177

query I rowsort
SELECT DISTINCT - 71 * col0 AS col0 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL - - 23 * - + COUNT( * ) FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - - 23 * - + COUNT ( * ) FROM tab0 cor0
----
-69

query I rowsort
SELECT ALL - + 50 FROM tab0 WHERE NULL IS NULL
----
-50
-50
-50

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + ( 23 ) < ( + col1 ) )
----
91
47
68

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col1 + + col2 + 85 * - 77 FROM tab2
----
-6420
-6428
-6471

query I rowsort
SELECT - 59 + - - col2 FROM tab1 AS cor0
----
0
37
9

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

query I rowsort
SELECT + ( - 35 ) + - 59 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - + col1 + + col2 - ( col1 ) FROM tab2 AS cor0
----
-114
-76
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT 35 DIV - + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-574
SELECT 35 / - + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 34 + - col0 AS col0 FROM tab1
----
-17
-51
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-576
SELECT - ( + - CAST( NULL AS SIGNED ) ), + col0 * - + 67 AS col0 FROM tab1
----
NULL
-3417
NULL
-5695
NULL
-6097

skipif mysql # not compatible
query II rowsort label-576
SELECT - ( + - CAST ( NULL AS INTEGER ) ), + col0 * - + 67 AS col0 FROM tab1
----
NULL
-3417
NULL
-5695
NULL
-6097

query I rowsort
SELECT ALL + col1 + - col0 * - col2 FROM tab0
----
786
891
9604

query I rowsort
SELECT + col2 - 88 * - 78 FROM tab1
----
6923
6932
6960

query I rowsort
SELECT 62 - - col2 FROM tab2
----
102
120
85

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT + col2 - - + col2 * - 60 - - - col0 DIV - + col2 AS col0 FROM tab1
----
-3480
-4011
-5664

skipif mysql # not compatible
query I rowsort label-580
SELECT + col2 - - + col2 * - 60 - - - col0 / - + col2 AS col0 FROM tab1
----
-3480
-4011
-5664

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT + col2 DIV - col1 - - - col2 FROM tab1
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-581
SELECT + col2 / - col1 - - - col2 FROM tab1
----
-102
-69
-70

query I rowsort
SELECT DISTINCT + col2 + + - 94 * 92 FROM tab2
----
-8590
-8608
-8625

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT - col1 DIV - col1 - col1 + - - col0 FROM tab1
----
38
45
81

skipif mysql # not compatible
query I rowsort label-584
SELECT - col1 / - col1 - col1 + - - col0 FROM tab1
----
38
45
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT DISTINCT + + 73 * - 73 + col1 AS col2, col2 FROM tab2 AS cor0
----
-5252
40
-5262
58
-5278
23

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT - col1 + 49 + - + col1 DIV - 84 * + - col2 AS col0 FROM tab1 cor0
----
2
35
44

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT - col1 + 49 + - + col1 / - 84 * + - col2 AS col0 FROM tab1 cor0
----
2
35
44

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

query I rowsort
SELECT ALL - ( - 35 ) FROM tab0
----
35
35
35

query I rowsort
SELECT - ( + - 92 ) FROM tab0
----
92
92
92

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

query I rowsort
SELECT DISTINCT 59 * + col0 FROM tab0
----
5133
5723
885

query I rowsort
SELECT - 27 * - col1 FROM tab0 WHERE NOT ( + 24 ) = - ( + col2 )
----
2187
27
567

query II rowsort
SELECT - ( - col0 ), - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT DISTINCT + CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-600
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT - - ( + col0 ) + + 59 DIV - + col2 + - 51 col1 FROM tab0 AS cor0
----
-37
31
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-601
SELECT - - ( + col0 ) + + 59 / - + col2 + - 51 col1 FROM tab0 AS cor0
----
-37
31
46

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT 84 + + + ( - MIN( + col1 ) ) * - 62 AS col0 FROM tab2 AS cor0
----
3246

skipif mysql # not compatible
query I rowsort label-602
SELECT 84 + + + ( - MIN ( + col1 ) ) * - 62 AS col0 FROM tab2 AS cor0
----
3246

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

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT DISTINCT + col2 DIV - 53 + 72 FROM tab0 AS cor0
----
71
72

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT + col2 / - 53 + 72 FROM tab0 AS cor0
----
71
72

query I rowsort
SELECT + + col0 * - - col0 + + col0 AS col2 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT ALL 32 * col2 + - col2 * - col2 AS col0 FROM tab2
----
1265
2880
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL + COUNT( * ) - + MIN( - + col1 ) FROM tab0 WHERE NOT col2 = + + 78 * - - col2 + - col1
----
84

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL + COUNT ( * ) - + MIN ( - + col1 ) FROM tab0 WHERE NOT col2 = + + 78 * - - col2 + - col1
----
84

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col0 + 51 + + - 22 / - col0 * + 3 - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 31 * col1 + + col1 > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT DISTINCT COUNT( - - col1 ) * - 57 + + - CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 + 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT COUNT ( - - col1 ) * - 57 + + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 + 70 IS NOT NULL
----
NULL

query I rowsort
SELECT + AVG ( - + ( - col0 ) ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT ALL + + 35 AS col1 FROM tab0 cor0
----
35
35
35

query II rowsort
SELECT - 64 * - 26 AS col2, col0 AS col0 FROM tab2
----
1664
46
1664
64
1664
75

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 21 = ( 43 ) * + 60
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT - col0 * - + 37 * + col1 FROM tab1
----
15725
158249
26418

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + MIN( ALL + 21 ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-618
SELECT + MIN ( ALL + 21 ) AS col1 FROM tab2 AS cor0
----
21

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

query II rowsort
SELECT DISTINCT + col1 * + col2 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

query II rowsort
SELECT ALL col0 AS col1, 47 AS col0 FROM tab1 AS cor0
----
51
47
85
47
91
47

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

query I rowsort
SELECT - 88 + + col1 + + ( - col2 ) * - 14 FROM tab2 cor0
----
285
549
791

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT ALL col0 + + + col1 DIV - + 18 AS col1 FROM tab2 AS cor0
----
44
60
72

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL col0 + + + col1 / - + 18 AS col1 FROM tab2 AS cor0
----
44
60
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL + 77 + MIN( + - 86 ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL + 77 + MIN ( + - 86 ) AS col0 FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-627
SELECT DISTINCT 22 + - + col2 DIV CAST( - + CAST( - col1 AS SIGNED ) AS SIGNED ) + - col1 FROM tab1
----
-26
2
6

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT 22 + - + col2 / CAST ( - + CAST ( - col1 AS INTEGER ) AS INTEGER ) + - col1 FROM tab1
----
-26
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-628
SELECT * FROM tab0 WHERE col0 + - ( col0 ) BETWEEN + ( + col0 ) - - CAST( col0 AS SIGNED ) AND + 35
----

skipif mysql # not compatible
query III rowsort label-628
SELECT * FROM tab0 WHERE col0 + - ( col0 ) BETWEEN + ( + col0 ) - - CAST ( col0 AS INTEGER ) AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT COUNT( + ( + 18 ) ) * - 67 * - + MIN( col1 ) AS col0 FROM tab1
----
1005

skipif mysql # not compatible
query I rowsort label-629
SELECT COUNT ( + ( + 18 ) ) * - 67 * - + MIN ( col1 ) AS col0 FROM tab1
----
1005

query I rowsort
SELECT ALL - col2 * - + col0 + + col1 AS col1 FROM tab0
----
786
891
9604

query II rowsort
SELECT DISTINCT col1 + - col0, + col1 FROM tab2
----
-8
67
13
77
5
51

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + MIN( DISTINCT col2 ) * - COUNT( * ) + COUNT( * ) * - - 87 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-632
SELECT + MIN ( DISTINCT col2 ) * - COUNT ( * ) + COUNT ( * ) * - - 87 FROM tab2
----
192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL + COUNT( * ) * - 76 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL + COUNT ( * ) * - 76 FROM tab1
----
-228

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

query I rowsort
SELECT DISTINCT 58 + + col2 * + col2 + - + 65 FROM tab2 AS cor0
----
1593
3357
522

query I rowsort
SELECT ALL col1 + - col0 * - col1 * - - col1 * + 66 FROM tab1
----
13267301
140255
659750

query II rowsort
SELECT DISTINCT 28 * col2 + - 34, + col2 FROM tab0
----
1282
47
246
10
2738
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT DISTINCT + - 32 DIV - + col1 - - - col0 * col2 FROM tab1 AS cor0
----
-4894
-5009
-6188

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT + - 32 / - + col1 - - - col0 * col2 FROM tab1 AS cor0
----
-4894
-5009
-6188

query I rowsort
SELECT DISTINCT + - ( + - 60 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT ALL 27 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL 27 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT COUNT( ALL 43 ) * + 66 AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-643
SELECT COUNT ( ALL 43 ) * + 66 AS col0 FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT ALL - col0 * + col2 DIV col2 * - + 33 col1 FROM tab0
----
2871
3201
495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-644
SELECT ALL - col0 * + col2 / col2 * - + 33 col1 FROM tab0
----
2871
3201
495

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT IN ( 21 * + col0, col1, + + col0 + + 0 * + - ( - - col1 ) * col1, + - 99, - + col2 )
----

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 27 + 29 BETWEEN NULL AND NULL )
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-654
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL - 99, - col2 AS col1 FROM tab2
----
-99
-23
-99
-40
-99
-58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-656
SELECT + ( + - SUM ( ALL - col1 ) ) col1 FROM tab2
----
195

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT + MAX( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE - col1 - 8 * + col2 BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE - col1 - 8 * + col2 BETWEEN NULL AND col1
----
NULL

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

query II rowsort
SELECT - 8 - - col2 + + col0, - col0 AS col2 FROM tab2 cor0 WHERE col1 NOT BETWEEN NULL AND 65
----
125
-75
96
-64

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

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

query I rowsort
SELECT DISTINCT 66 + + col0 AS col1 FROM tab0
----
153
163
81

query I rowsort
SELECT ( + + 89 ) + - 50 + + - 73 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT ALL + 71 + ( + col1 ) AS col2 FROM tab2
----
122
138
148

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

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE - + col1 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 53 * col1 + 22 AS col1 FROM tab1 AS cor0
----
-243
-2469
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 - 89 col1 FROM tab1
----
1255
206
3107

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

query I rowsort
SELECT ALL + + col1 * - 27 + - col2 + 68 AS col0 FROM tab1 AS cor0
----
-126
-1269
-406

query I rowsort
SELECT ALL ( 8 ) * - 35 AS col2 FROM tab1 cor0
----
-280
-280
-280

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-677
SELECT ALL - COUNT( * ) * + + COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) + + 45 * 66 AS col0 FROM tab1 AS cor0
----
2964

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) + + 45 * 66 AS col0 FROM tab1 AS cor0
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-678
SELECT - + CAST( + col1 AS SIGNED ) * + 99 AS col2, col0 + + col0 FROM tab2 AS cor0
----
-5049
92
-6633
150
-7623
128

skipif mysql # not compatible
query II rowsort label-678
SELECT - + CAST ( + col1 AS INTEGER ) * + 99 AS col2, col0 + + col0 FROM tab2 AS cor0
----
-5049
92
-6633
150
-7623
128

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT 21 DIV + col1 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-679
SELECT 21 / + col1 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

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

query I rowsort
SELECT ALL 57 * + col2 AS col0 FROM tab2
----
1311
2280
3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-683
SELECT - col1 FROM tab1 WHERE NOT - col0 * col1 * + col1 + + 78 IN ( - + CAST( NULL AS SIGNED ), col2, col2, - col2 )
----

skipif mysql # not compatible
query I rowsort label-683
SELECT - col1 FROM tab1 WHERE NOT - col0 * col1 * + col1 + + 78 IN ( - + CAST ( NULL AS INTEGER ), col2, col2, - col2 )
----

query I rowsort
SELECT DISTINCT col1 * + 85 FROM tab1
----
1190
3995
425

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT - 7 AS col0, + COUNT( * ) * - + 5 AS col1 FROM tab2
----
-7
-15

skipif mysql # not compatible
query II rowsort label-685
SELECT - 7 AS col0, + COUNT ( * ) * - + 5 AS col1 FROM tab2
----
-7
-15

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

query I rowsort
SELECT DISTINCT + 31 * - col1 AS col2 FROM tab2 AS cor0
----
-1581
-2077
-2387

query III rowsort
SELECT col0, - col2 + - - 42 + + + col0 AS col2, - ( col0 ) AS col0 FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + 90 + - ( + 72 ) + 40 DIV + col2 FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-689
SELECT + 90 + - ( + 72 ) + 40 / + col2 FROM tab1
----
18
18
18

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

query I rowsort
SELECT col0 * + col0 + + + 58 AS col0 FROM tab1 AS cor0
----
2659
7283
8339

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

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

query I rowsort
SELECT 67 + + - col2 AS col0 FROM tab1 AS cor0
----
-1
-29
8

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + + col1 >= + col0
----
51
14
96
91
47
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <= col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT ALL - col0 * + col2 + + + 11 * - col0 + - - 67 DIV + 88 AS col0 FROM tab1
----
-5457
-5950
-7189

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - col0 * + col2 + + + 11 * - col0 + - - 67 / + 88 AS col0 FROM tab1
----
-5457
-5950
-7189

query I rowsort
SELECT ALL - 27 + - 27 FROM tab0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - MAX( - col1 ) FROM tab1 WHERE NOT col1 + - col2 + + col0 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - MAX ( - col1 ) FROM tab1 WHERE NOT col1 + - col2 + + col0 IS NULL
----
5

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

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

query I rowsort
SELECT + 14 - col0 + col2 FROM tab2 AS cor0
----
-10
-3
-9

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

query I rowsort
SELECT ALL + col0 + - - 75 FROM tab0 AS cor0
----
162
172
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 + - ( - 60 ) + + + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 418f1c817ef9b3406f572acab9f54796

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

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL COUNT ( + 12 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL + - ( ( - MIN( ALL ( - 2 ) ) ) ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + - ( ( - MIN ( ALL ( - 2 ) ) ) ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + SUM( + ( + 57 ) ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + SUM ( + ( + 57 ) ) FROM tab1 AS cor0
----
171

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 12 * - 2 + col1 <= + - 13
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + 57 * - col2 AS col2 FROM tab2 AS cor0
----
-1311
-2280
-3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT DISTINCT - col0 * + + 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-711
SELECT DISTINCT - col0 * + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 94 < NULL
----

query I rowsort
SELECT + 68 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 68 + 2 >= NULL
----

query I rowsort
SELECT DISTINCT 22 * - 52 FROM tab1 AS cor0
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - - MIN( ALL - - col0 ) * 19 - MIN( ALL - col1 ) * + + 86 * MIN( ALL + + 32 ) FROM tab2 AS cor0 WHERE NOT + 90 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT - - MIN ( ALL - - col0 ) * 19 - MIN ( ALL - col1 ) * + + 86 * MIN ( ALL + + 32 ) FROM tab2 AS cor0 WHERE NOT + 90 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - - 14 * COUNT( * ) AS col0 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-717
SELECT - - 14 * COUNT ( * ) AS col0 FROM tab2 cor0
----
42

query I rowsort
SELECT ALL + 77 * + 2 AS col0 FROM tab0
----
154
154
154

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

query I rowsort
SELECT + col0 * - 57 AS col0 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT + ( + 1 ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-722
SELECT ALL + COUNT( + + col2 ) AS col1, - 97 FROM tab2
----
3
-97

skipif mysql # not compatible
query II rowsort label-722
SELECT ALL + COUNT ( + + col2 ) AS col1, - 97 FROM tab2
----
3
-97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT MIN( DISTINCT + 67 ) AS col1, - MAX( - - col0 ) AS col1 FROM tab2
----
67
-75

skipif mysql # not compatible
query II rowsort label-724
SELECT MIN ( DISTINCT + 67 ) AS col1, - MAX ( - - col0 ) AS col1 FROM tab2
----
67
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 / - col0 > NULL
----

query II rowsort
SELECT DISTINCT - col2 * - + 12 AS col2, col2 FROM tab2 AS cor0 WHERE + col2 / + + 10 = - + ( + 53 )
----

query I rowsort
SELECT 34 + col1 AS col0 FROM tab2 AS cor0
----
101
111
85

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT ALL 72 AS col1, + COUNT( * ) AS col1 FROM tab2
----
72
3

skipif mysql # not compatible
query II rowsort label-728
SELECT ALL 72 AS col1, + COUNT ( * ) AS col1 FROM tab2
----
72
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN ( ( + + 24 ) ) AND ( NULL )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 11 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-732
SELECT DISTINCT - - col2 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-732
SELECT DISTINCT - - col2 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT - 59 * - col0 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT ALL - 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - ( - 31 ) FROM tab2 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 87 / col2 BETWEEN - 24 AND NULL
----

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

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

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

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

query I rowsort
SELECT ALL - 41 + 85 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT 25 + - col2 AS col0 FROM tab1 AS cor0
----
-34
-43
-71

query II rowsort
SELECT col2 * - col0 * + 46 + + - col1 * + 13 AS col2, 65 + - col0 AS col0 FROM tab0
----
-33483
50
-40293
-22
-441751
-32

query I rowsort
SELECT + col2 + - - 40 FROM tab1
----
108
136
99

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

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

query I rowsort
SELECT DISTINCT + col2 * col2 + - col1 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT DISTINCT - ( 62 ) FROM tab0
----
-62

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

query I rowsort
SELECT - col2 + - - col1 * - col0 FROM tab2
----
-2369
-4968
-5083

query III rowsort
SELECT * FROM tab1 WHERE - col2 > + col0
----

query I rowsort
SELECT col1 + - 38 AS col0 FROM tab2
----
13
29
39

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

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

query II rowsort
SELECT DISTINCT + col1 * + 89 - 65 * + col0, col0 FROM tab2 AS cor0
----
1088
75
1549
46
2693
64

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT - COUNT( * ) * - 70 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-753
SELECT - COUNT ( * ) * - 70 AS col1 FROM tab1 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT DISTINCT + 67 * COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-754
SELECT DISTINCT + 67 * COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
603

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

skipif mysql # not compatible
query I rowsort label-755
SELECT + MIN ( - 12 ) AS col0 FROM tab1
----
-12

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 47 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL + - 84 * - col2 FROM tab2 cor0
----
1932
3360
4872

query I rowsort
SELECT ALL - 90 * + - 78 FROM tab1 AS cor0
----
7020
7020
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + SUM( ALL - 71 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-639

skipif mysql # not compatible
query I rowsort label-759
SELECT + SUM ( ALL - 71 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-639

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

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

query I rowsort
SELECT ALL 6 - + - 4 * + AVG ( + ( + col0 ) ) - 69 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-763
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-763
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * - col2 * - col2 AS col1 FROM tab2
----
-12167
-195112
-64000

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

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

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

query I rowsort
SELECT + ( + col0 ) * - + 37 AS col1 FROM tab2
----
-1702
-2368
-2775

query I rowsort
SELECT ALL col0 * - 57 AS col0 FROM tab0 AS cor0
----
-4959
-5529
-855

query I rowsort
SELECT DISTINCT - - 51 * col1 * + ( - 76 ) FROM tab2 AS cor0
----
-197676
-259692
-298452

query I rowsort
SELECT DISTINCT 37 + + + col1 * col1 FROM tab1
----
2246
233
62

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + 98 * + - SUM( + - 34 ) + + 99 FROM tab1 AS cor0
----
10095

skipif mysql # not compatible
query I rowsort label-772
SELECT + 98 * + - SUM ( + - 34 ) + + 99 FROM tab1 AS cor0
----
10095

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

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

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

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

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

query II rowsort
SELECT - col1, 59 * + col2 AS col0 FROM tab2
----
-51
1357
-67
3422
-77
2360

query I rowsort
SELECT DISTINCT + col0 - - + col2 - - + col1 FROM tab1
----
149
161
206

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT ALL col1 + - col1 DIV 89 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL col1 + - col1 / 89 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL 22 DIV + + 35 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL 22 / + + 35 AS col0 FROM tab0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT col2 - - CAST( + + col0 AS SIGNED ) * + ( + 30 ) * - col2 FROM tab0
----
-21103
-26090
-287991

skipif mysql # not compatible
query I rowsort label-781
SELECT col2 - - CAST ( + + col0 AS INTEGER ) * + ( + 30 ) * - col2 FROM tab0
----
-21103
-26090
-287991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - col2 col1 FROM tab2
----
104
133
69

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

query I rowsort
SELECT - col1 - 12 AS col0 FROM tab1 AS cor0
----
-17
-26
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-785
SELECT ALL 44 * - 69 - + + CAST( ( - col2 ) AS SIGNED ) * + - col1 AS col1 FROM tab1 AS cor0
----
-3331
-4380
-6232

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL 44 * - 69 - + + CAST ( ( - col2 ) AS INTEGER ) * + - col1 AS col1 FROM tab1 AS cor0
----
-3331
-4380
-6232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT CAST( NULL AS SIGNED ) * 18 + 8 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT CAST ( NULL AS INTEGER ) * 18 + 8 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL <> + col2
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-790
SELECT COUNT ( * ) - + SUM ( ALL + 1 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT - col1 DIV col2 - + 81 FROM tab2
----
-82
-82
-83

skipif mysql # not compatible
query I rowsort label-791
SELECT - col1 / col2 - + 81 FROM tab2
----
-82
-82
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-793
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-793
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT DISTINCT col1 + - 0 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT - 30 AS col1 FROM tab0 WHERE NOT col1 * + col1 >= NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT - CAST( + 26 AS SIGNED ) FROM tab2
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-797
SELECT - CAST ( + 26 AS INTEGER ) FROM tab2
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT ( + 75 + - ( col2 ) ) > ( ( + col0 ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT SUM( DISTINCT + 63 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-799
SELECT SUM ( DISTINCT + 63 ) FROM tab2
----
63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab2 WHERE NULL IS NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT MIN( ALL 7 ) col2 FROM tab2
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-802
SELECT MIN ( ALL 7 ) col2 FROM tab2
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT 94 * + COUNT( * ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-804
SELECT 94 * + COUNT ( * ) FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL MAX( col0 ) + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL MAX ( col0 ) + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - ( + col2 ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - ( + col2 ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
0

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

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

query I rowsort
SELECT col2 FROM tab1 WHERE - 13 * - col2 <> col1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT ALL - CAST( col0 AS SIGNED ) + col0 * - 96 col2 FROM tab0
----
-1455
-8439
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-809
SELECT ALL - CAST ( col0 AS INTEGER ) + col0 * - 96 col2 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT DISTINCT - ( 25 ) * - 16 FROM tab1
----
400

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

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

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
41

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT - 2 - - 86 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-815
SELECT - 2 - - 86 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-817
SELECT - 55 + col1 DIV + ( + col1 ) FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-817
SELECT - 55 + col1 / + ( + col1 ) FROM tab0 AS cor0
----
-54
-54
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) * col2 >= 6
----

query I rowsort
SELECT + col2 + 26 FROM tab1 AS cor0
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL - + 43 + ( COUNT( * ) ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - + 43 + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-40

query I rowsort
SELECT - + 46 + + col2 FROM tab1 AS cor0
----
13
22
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT MAX( 42 ) + + COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-823
SELECT MAX ( 42 ) + + COUNT ( * ) AS col1 FROM tab1
----
45

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

query I rowsort
SELECT DISTINCT - col2 * + col1 + 76 * - col2 AS col1 FROM tab2
----
-2921
-6120
-8294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL - COUNT( * ) * 19 + + 11 FROM tab2 WHERE - col2 BETWEEN + col0 AND ( col1 + + col0 )
----
11

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - COUNT ( * ) * 19 + + 11 FROM tab2 WHERE - col2 BETWEEN + col0 AND ( col1 + + col0 )
----
11

query I rowsort
SELECT ALL col1 - + + ( + col1 ) FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL col0 + 99 AS col0 FROM tab2
----
145
163
174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-831
SELECT 75 FROM tab1 WHERE CAST( col0 AS DECIMAL ) / 57 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-831
SELECT 75 FROM tab1 WHERE CAST ( col0 AS REAL ) / 57 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + + SUM( DISTINCT + col2 ) * + 55 col0 FROM tab0 AS cor0
----
8580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-832
SELECT + + SUM ( DISTINCT + col2 ) * + 55 col0 FROM tab0 AS cor0
----
8580

query I rowsort
SELECT ALL + 97 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col2 * + col0 FROM tab2 WHERE NOT - col0 + 26 <= - col0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT DISTINCT - COUNT( * ), + ( - SUM( DISTINCT col2 ) ) AS col1 FROM tab1
----
-3
-223

skipif mysql # not compatible
query II rowsort label-836
SELECT DISTINCT - COUNT ( * ), + ( - SUM ( DISTINCT col2 ) ) AS col1 FROM tab1
----
-3
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT DISTINCT 23 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( ( col1 * - col0 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT 23 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( ( col1 * - col0 ) IS NOT NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 > 80
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-840
SELECT - col0 AS col2, col0 * 70 DIV + 41 FROM tab2 AS cor0
----
-46
78
-64
109
-75
128

skipif mysql # not compatible
query II rowsort label-840
SELECT - col0 AS col2, col0 * 70 / + 41 FROM tab2 AS cor0
----
-46
78
-64
109
-75
128

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

query II rowsort
SELECT ALL - - 69, col0 AS col0 FROM tab1 AS cor0
----
69
51
69
85
69
91

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

query II rowsort
SELECT DISTINCT + + col2 AS col2, col2 + - col2 * col0 FROM tab2 AS cor0
----
23
-1035
40
-2520
58
-4292

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

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

query I rowsort
SELECT + 58 + + - ( - + col0 ) + 75 * col2 FROM tab1 AS cor0
----
4568
5249
7309

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-847
SELECT col1 + + - 45 * - - CAST( + 81 AS SIGNED ) * ( col1 DIV + col1 ) FROM tab1 AS cor0
----
-3598
-3631
-3640

skipif mysql # not compatible
query I rowsort label-847
SELECT col1 + + - 45 * - - CAST ( + 81 AS INTEGER ) * ( col1 / + col1 ) FROM tab1 AS cor0
----
-3598
-3631
-3640

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

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

query I rowsort
SELECT DISTINCT - 14 + 54 / 29 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - + col2 + + col0 BETWEEN col2 AND ( 63 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT COUNT( * ) * + + 22 AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-851
SELECT COUNT ( * ) * + + 22 AS col1 FROM tab1
----
66

query I rowsort
SELECT ALL 72 FROM tab0 WHERE NOT ( + 83 + + col2 ) IN ( col1 + - 70 )
----
72
72
72

query I rowsort
SELECT ALL - 7 * 65 FROM tab2 WHERE NOT + 60 = + + ( + 96 ) * + 76
----
-455
-455
-455

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab1 AS cor0 WHERE ( 64 ) IS NOT NULL
----
51
85
91

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 11 ) <> - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE + ( + + ( - col1 ) ) NOT IN ( - 47 * - col1 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 <= + 34
----
87
21
10

query I rowsort
SELECT DISTINCT + col2 * 50 * - - 76 - + col0 FROM tab1 AS cor0
----
224115
258309
364749

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL + MAX( ALL 50 ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL + MAX ( ALL 50 ) FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT COUNT( * ) * 9 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( * ) * 9 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE 52 < + + 79 + + col2 + + col1 * 23
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT col1 * 25 FROM tab1 AS cor0
----
1175
125
350

query I rowsort
SELECT ALL + 18 + - col0 + 97 AS col0 FROM tab1 AS cor0
----
24
30
64

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = + 72
----

query I rowsort
SELECT ALL col2 + - 78 FROM tab2
----
-20
-38
-55

query I rowsort
SELECT ALL 29 * - col2 FROM tab2
----
-1160
-1682
-667

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - ( + 47 ) col2 FROM tab1
----
14
-47
47
-47
5
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-873
SELECT - 70 AS col1, SUM( col0 ) * + + 68 AS col0 FROM tab2
----
-70
12580

skipif mysql # not compatible
query II rowsort label-873
SELECT - 70 AS col1, SUM ( col0 ) * + + 68 AS col0 FROM tab2
----
-70
12580

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-877
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 16 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-877
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 16 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL SUM( ALL - 66 ) AS col1 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL SUM ( ALL - 66 ) AS col1 FROM tab0
----
-198

query I rowsort
SELECT ALL 5 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col2 + - 56 * col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col2 * + ( 82 ) AND + + col1 * - + 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT DISTINCT - 20 * + + 0 * + col1 DIV 61 + - - 28 * - + col2 col2 FROM tab0 AS cor0
----
-1316
-2772
-280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-881
SELECT DISTINCT - 20 * + + 0 * + col1 / 61 + - - 28 * - + col2 col2 FROM tab0 AS cor0
----
-1316
-2772
-280

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col1 - - col0 + + 11 - + col0 * - col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT ALL col1 AS col2 FROM tab1 WHERE - + CAST( + - col1 AS SIGNED ) + - - col1 BETWEEN ( - - col2 + + + 17 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL col1 AS col2 FROM tab1 WHERE - + CAST ( + - col1 AS INTEGER ) + - - col1 BETWEEN ( - - col2 + + + 17 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + - 95 AS col2 FROM tab0
----
-116
-176
-96

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT DISTINCT + MAX( DISTINCT + 22 ) FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT + MAX ( DISTINCT + 22 ) FROM tab0 cor0
----
22

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0 WHERE - col2 * + + ( - col0 ) * + col1 NOT BETWEEN NULL AND + + 92 / + - ( - 21 ) * col0 + col2
----
83

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

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

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

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

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - 46 <= - ( - - col1 )
----
1
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - - 2 col0 FROM tab0 cor0
----
45
8
97

query I rowsort
SELECT 50 * - + 19 + - - col1 FROM tab1 AS cor0
----
-903
-936
-945

query I rowsort
SELECT - 39 + + col0 * - - 44 * - col1 * - col0 FROM tab2 AS cor0
----
13877209
16582461
4748265

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 30 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT - col0 / - CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-901
SELECT - col0 / - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-902
SELECT + - col2 + - - CAST( + + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-902
SELECT + - col2 + - - CAST ( + + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
17
23
24

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

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

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

skipif mysql # not compatible
query I rowsort label-904
SELECT + SUM ( DISTINCT - col2 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT + MIN( col1 ) * + - 65 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-905
SELECT + MIN ( col1 ) * + - 65 FROM tab0 AS cor0
----
-65

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

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

query I rowsort
SELECT + + ( + col0 ) * col1 + 43 FROM tab0 WHERE NOT + 59 IS NULL
----
1258
140
1870

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 46
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 60 col0 FROM tab0 AS cor0
----
-21
39
59

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

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

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

query I rowsort
SELECT ALL 11 * - 46 FROM tab2 AS cor0
----
-506
-506
-506

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

query I rowsort
SELECT - - col2 + - + col1 FROM tab0 cor0
----
-11
-34
98

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

query I rowsort
SELECT ALL + + col0 + col2 + + col1 * 23 * + 2 FROM tab2 AS cor0
----
2415
3215
3646

query I rowsort
SELECT ALL + 29 + + ( + col2 ) * + col2 FROM tab2
----
1629
3393
558

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-925
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( + col0 * + - 65 * col0 * + 82, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-925
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( + col0 * + - 65 * col0 * + 82, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT - MIN( DISTINCT + ( + 70 ) ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-926
SELECT - MIN ( DISTINCT + ( + 70 ) ) FROM tab1
----
-70

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

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

query I rowsort
SELECT col1 * + 23 AS col0 FROM tab0
----
1863
23
483

query I rowsort
SELECT DISTINCT 30 * - + col2 * - col0 AS col0 FROM tab2
----
130500
31740
76800

onlyif mysql # DIV for integer division: 
query II rowsort label-930
SELECT ALL + 69 DIV - + 75, - 95 AS col0 FROM tab2 AS cor0
----
0
-95
0
-95
0
-95

skipif mysql # not compatible
query II rowsort label-930
SELECT ALL + 69 / - + 75, - 95 AS col0 FROM tab2 AS cor0
----
0
-95
0
-95
0
-95

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

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

query I rowsort
SELECT ALL - 68 + - 22 FROM tab1 WHERE col1 IS NOT NULL
----
-90
-90
-90

query II rowsort
SELECT ALL + col0 AS col0, 56 FROM tab0 WHERE ( - col1 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 IN ( 68, + CAST( NULL AS SIGNED ), - - col1 * - 7 * - 74, - 62 ) )
----

skipif mysql # not compatible
query I rowsort label-935
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 IN ( 68, + CAST ( NULL AS INTEGER ), - - col1 * - 7 * - 74, - 62 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT 19 * - + SUM( ALL - col2 ) * - + COUNT( * ) * + - 65 col2 FROM tab0
----
577980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-937
SELECT 19 * - + SUM ( ALL - col2 ) * - + COUNT ( * ) * + - 65 col2 FROM tab0
----
577980

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 BETWEEN - col2 - col0 AND - col0
----
3

skipif mysql # not compatible
query I rowsort label-938
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 BETWEEN - col2 - col0 AND - col0
----
3

query I rowsort
SELECT col0 * - - ( col2 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + col0 * - ( + - 4 ) FROM tab2 WHERE NOT + - col0 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL ( - MAX( DISTINCT + 13 ) ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL ( - MAX ( DISTINCT + 13 ) ) FROM tab1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT 58 * col0 DIV - - col2 col0 FROM tab2 AS cor0
----
116
75
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-942
SELECT DISTINCT 58 * col0 / - - col2 col0 FROM tab2 AS cor0
----
116
75
92

query I rowsort
SELECT ALL + col1 * 86 FROM tab0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL ( + + 50 ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL ( + + 50 ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
59

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

query I rowsort
SELECT + - ( + col2 ) FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query II rowsort
SELECT + 15, + 21 AS col0 FROM tab2 cor0
----
15
21
15
21
15
21

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

query I rowsort
SELECT ALL col1 + ( + - 88 ) FROM tab0 AS cor0
----
-67
-7
-87

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

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

query I rowsort
SELECT DISTINCT + + 88 * 38 + col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-2281
-752
1228

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

skipif mysql # not compatible
query I rowsort label-952
SELECT + + MIN ( 88 ) AS col0 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - MAX( - - col1 ) + - 90 AS col2 FROM tab1 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - MAX ( - - col1 ) + - 90 AS col2 FROM tab1 AS cor0
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT col0 + + 11 + - CAST( col0 AS SIGNED ) - 13 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-954
SELECT col0 + + 11 + - CAST ( col0 AS INTEGER ) - 13 FROM tab2
----
-2
-2
-2

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

query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL - MAX( ALL - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL - MAX ( ALL - col0 ) AS col1 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL + COUNT( + 80 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + COUNT ( + 80 ) FROM tab2
----
3

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

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

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

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

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

query I rowsort
SELECT + + 87 * col2 FROM tab0 AS cor0
----
4089
8613
870

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - col2 + - - col0, col0, + col1 / - col0 )
----

query II rowsort
SELECT ALL 33 AS col1, col1 FROM tab2
----
33
51
33
67
33
77

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

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

query I rowsort
SELECT - 76 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - - 25 ) IS NOT NULL
----

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

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

query II rowsort
SELECT - col2 AS col1, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col0 * 64 * - col2 * - col1 * + 1 + col1 - + + 5 + + - 68 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, + 62 * - - col2 FROM tab0 cor0
----
1
6138
21
620
81
2914

query I rowsort
SELECT DISTINCT + - 83 / + 82 FROM tab0 WHERE col2 BETWEEN + + 88 AND - col0
----

query I rowsort
SELECT DISTINCT + col0 + ( - 95 ) FROM tab2
----
-20
-31
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + MAX( - - col2 ) + - 75 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-976
SELECT + MAX ( - - col2 ) + - 75 FROM tab0
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT - SUM( - 35 ) AS col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - SUM ( - 35 ) AS col2 FROM tab2 AS cor0
----
105

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 7 * 16 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 AS cor0 WHERE NOT - 19 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + COUNT( * ) + - 7 AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-981
SELECT + COUNT ( * ) + - 7 AS col2 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT + CAST( NULL AS SIGNED ) + 25 - + 5 AS col0 FROM tab0 cor0 WHERE ( - col2 / col2 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-982
SELECT + CAST ( NULL AS INTEGER ) + 25 - + 5 AS col0 FROM tab0 cor0 WHERE ( - col2 / col2 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - 61 FROM tab1 AS cor0
----
-10
24
30

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 20 * + 96 <> NULL
----

query I rowsort
SELECT ALL + - 7 + - - col1 * + 46 FROM tab2 AS cor0
----
2339
3075
3535

query I rowsort
SELECT DISTINCT + 34 + - col2 AS col0 FROM tab1
----
-25
-34
-62

query I rowsort
SELECT DISTINCT - 31 * col0 - ( + 61 ) AS col2 FROM tab0
----
-2758
-3068
-526

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT COUNT( * ) - + 18 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-989
SELECT COUNT ( * ) - + 18 FROM tab1
----
-15

query II rowsort
SELECT ALL - 78 - - ( + col2 ), col1 AS col0 FROM tab1 AS cor0
----
-10
47
-19
5
18
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT ALL - 84 - - - col2 + CAST( - col2 AS SIGNED ) * + col2 FROM tab0 cor0
----
-194
-2340
-9984

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - 84 - - - col2 + CAST ( - col2 AS INTEGER ) * + col2 FROM tab0 cor0
----
-194
-2340
-9984

query I rowsort
SELECT DISTINCT - col0 * - 17 * - + col2 FROM tab1
----
-105196
-83232
-85255

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT SUM( + 36 ) col0 FROM tab0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-993
SELECT DISTINCT SUM ( + 36 ) col0 FROM tab0
----
108

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

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

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - - 81 - + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0 WHERE - col1 < NULL
----

query II rowsort
SELECT + 2 AS col1, 5 * col2 FROM tab2 cor0
----
2
115
2
200
2
290

query I rowsort
SELECT - col0 * - + col0 FROM tab1 AS cor0 WHERE NOT col1 * col0 <= - + 24 * 89
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT ALL + 61 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + 61 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 20 FROM tab1 WHERE NOT - col2 - - 33 BETWEEN - col1 AND NULL
----
-20
-20

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 96 <> NULL
----

query I rowsort
SELECT - col2 * - + 15 * - + col2 FROM tab0
----
-147015
-1500
-33135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL + - MIN( DISTINCT - - 16 ) FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + - MIN ( DISTINCT - - 16 ) FROM tab0 cor0
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL - COUNT( * ) * - - 2 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1005
SELECT ALL - COUNT ( * ) * - - 2 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - COUNT( * ) - + + 16 + - 92 AS col2 FROM tab1 WHERE NULL IS NULL
----
-111

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - COUNT ( * ) - + + 16 + - 92 AS col2 FROM tab1 WHERE NULL IS NULL
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL - MIN( - 30 ) - - 79 FROM tab1 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - MIN ( - 30 ) - - 79 FROM tab1 AS cor0
----
109

query II rowsort
SELECT + 87 AS col0, + 70 AS col0 FROM tab1 cor0
----
87
70
87
70
87
70

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

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

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

query I rowsort
SELECT 98 - + - col1 AS col1 FROM tab2 AS cor0
----
149
165
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL - SUM( + + col0 ) * + 72 FROM tab2 AS cor0
----
-13320

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - SUM ( + + col0 ) * + 72 FROM tab2 AS cor0
----
-13320

query I rowsort
SELECT 34 + 36 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT + col1 + 94 FROM tab1 AS cor0
----
108
141
99

query I rowsort
SELECT 15 + + 57 * - + col1 FROM tab1 AS cor0
----
-2664
-270
-783

query I rowsort
SELECT - col1 + - col1 * - + col0 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT col1 + + 45 FROM tab0 cor0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1018
SELECT DISTINCT + CAST( ( - 12 ) AS SIGNED ) AS col2, 8 FROM tab2 WHERE ( NOT - 8 IS NULL )
----
-12
8

skipif mysql # not compatible
query II rowsort label-1018
SELECT DISTINCT + CAST ( ( - 12 ) AS INTEGER ) AS col2, 8 FROM tab2 WHERE ( NOT - 8 IS NULL )
----
-12
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT col1 + + CAST( - col2 AS SIGNED ) FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-1019
SELECT col1 + + CAST ( - col2 AS INTEGER ) FROM tab2
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * 39 - - 7 * - col2 * - 84 col0 FROM tab0
----
27129
5373
57705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 - col1 col2 FROM tab0
----
-9
51
71

query I rowsort
SELECT ALL - col0 - 90 FROM tab2 cor0
----
-136
-154
-165

query I rowsort
SELECT DISTINCT 70 * 66 FROM tab2 AS cor0
----
4620

query II rowsort
SELECT DISTINCT col0 * - + 43, col1 + - 11 AS col1 FROM tab2 AS cor0
----
-1978
40
-2752
66
-3225
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT - - col0 DIV ( + col0 ) AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1025
SELECT - - col0 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT ALL + 38 DIV 14 * - - col2 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + 38 / 14 * - - col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL - col1 * - col1 * + + 98 * 72 AS col1 FROM tab0
----
3111696
46294416
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL COUNT( ALL 59 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL COUNT ( ALL 59 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col0 * - col2 AS col0 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

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

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

query II rowsort
SELECT col2 AS col2, col0 * - 38 FROM tab1 AS cor0
----
59
-3230
68
-3458
96
-1938

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <> + col0 + + 37 + col0 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( col2 ) * col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col2 * 48 * + 30 FROM tab0 cor0
----
142560
14400
67680

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT ALL - - col2 DIV + + 63 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - - col2 / + + 63 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

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

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

query I rowsort
SELECT ( + - 87 ) FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT - 81 DIV + + col2 AS col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT - 81 / + + col2 AS col2 FROM tab0 AS cor0
----
-1
-8
0

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

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

query II rowsort
SELECT 1 AS col2, + 35 * - 38 FROM tab0 AS cor0
----
1
-1330
1
-1330
1
-1330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + COUNT( * ) FROM tab2, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + COUNT ( * ) FROM tab2, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT col0 * - + col2 + - - col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT 13 DIV - 20 * - - 46 + 11 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1049
SELECT 13 / - 20 * - - 46 + 11 FROM tab2
----
11
11
11

query I rowsort
SELECT - + 29 * - col0 + col1 * - + col0 AS col1 FROM tab1 AS cor0
----
-1638
2040
765

query I rowsort
SELECT 4 + ( ( + col2 ) ) - - - 78 AS col0 FROM tab1 AS cor0
----
-15
-6
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT ALL + MIN( - - 43 ) col2, 6 * - COUNT( * ) + - COUNT( * ) - - 77 FROM tab0 AS cor0
----
43
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1053
SELECT ALL + MIN ( - - 43 ) col2, 6 * - COUNT ( * ) + - COUNT ( * ) - - 77 FROM tab0 AS cor0
----
43
56

query I rowsort
SELECT ALL 90 + + col2 FROM tab0
----
100
137
189

query I rowsort
SELECT ALL + 45 * + 65 - col0 + + + 70 AS col0 FROM tab2
----
2920
2931
2949

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + 68 DIV ( - col2 ) - - 41 FROM tab2
----
39
40
40

skipif mysql # not compatible
query I rowsort label-1056
SELECT + 68 / ( - col2 ) - - 41 FROM tab2
----
39
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT DISTINCT col1 - - col1 DIV + col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT col1 - - col1 / + col2 FROM tab1
----
14
47
5

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < - + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT ALL - col2 DIV + + 80 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - col2 / + + 80 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT - col1 DIV ( + - 19 ) AS col0 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1061
SELECT - col1 / ( + - 19 ) AS col0 FROM tab2
----
2
3
4

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + + col0 + col1 * 42 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT col1 DIV - + 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT col1 / - + 96 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT - 74 * - + MAX( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-740

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - 74 * - + MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-740

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 74 AND + col1 * + 11
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL SUM( + 82 ) + 21 AS col1 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL SUM ( + 82 ) + 21 AS col1 FROM tab1 AS cor0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT - col0 DIV - 49 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1071
SELECT - col0 / - 49 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT 50 + - col0 * + col2 AS col1, 11 AS col1 FROM tab0
----
-655
11
-820
11
-9553
11

query II rowsort
SELECT DISTINCT 35 * + + 79 * - 35 AS col2, + col0 AS col0 FROM tab0
----
-96775
15
-96775
87
-96775
97

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

query I rowsort
SELECT DISTINCT col2 + - - 18 AS col1 FROM tab0 cor0
----
117
28
65

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

skipif mysql # not compatible
query III rowsort label-1076
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 93 + col2, col2 * + CAST ( - col2 AS INTEGER ) + - - col1, + - 40 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1079
SELECT DISTINCT + 12 - col1 + - + CAST( - col1 AS SIGNED ), 93 AS col2 FROM tab0
----
12
93

skipif mysql # not compatible
query II rowsort label-1079
SELECT DISTINCT + 12 - col1 + - + CAST ( - col1 AS INTEGER ), 93 AS col2 FROM tab0
----
12
93

query I rowsort
SELECT - col1 FROM tab0 WHERE + 80 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NULL <= NULL
----

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

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

query I rowsort
SELECT col2 - - col0 * 23 FROM tab1 AS cor0
----
1269
2014
2161

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT 72 * - COUNT( * ) + 49 + - 26 AS col0, 1 col0 FROM tab1 AS cor0
----
-193
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1086
SELECT 72 * - COUNT ( * ) + 49 + - 26 AS col0, 1 col0 FROM tab1 AS cor0
----
-193
1

query I rowsort
SELECT - col1 + + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - + COUNT( * ) + MAX( ALL + 94 ) FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1088
SELECT - + COUNT ( * ) + MAX ( ALL + 94 ) FROM tab2 cor0
----
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 + + col2 col2 FROM tab0 AS cor0
----
135
187
98

query II rowsort
SELECT col0 + - col1 AS col2, col0 AS col2 FROM tab2 AS cor0
----
-13
64
-5
46
8
75

query I rowsort
SELECT - + 13 * - - 91 + + + 49 * + + col2 AS col0 FROM tab0 AS cor0
----
-693
1120
3668

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT COUNT( * ) * 92 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT COUNT ( * ) * 92 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 NOT IN ( + col1, - col2 + - 46 )
----

query I rowsort
SELECT DISTINCT - col1 + col2 + + + col1 + col2 + - + col1 * + col2 + + 66 FROM tab1
----
-1086
-111
-2994

query I rowsort
SELECT - ( col2 ) + - + col0 * + + col1 + + - col2 * + col1 FROM tab0
----
-2047
-295
-5069

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT ALL SUM( DISTINCT - - 9 ), - 50 AS col2 FROM tab2 WHERE NOT - col0 IN ( - col1, + ( + col1 ), + col2 * + col2 + - 41 / col2 )
----
9
-50

skipif mysql # not compatible
query II rowsort label-1097
SELECT ALL SUM ( DISTINCT - - 9 ), - 50 AS col2 FROM tab2 WHERE NOT - col0 IN ( - col1, + ( + col1 ), + col2 * + col2 + - 41 / col2 )
----
9
-50

query II rowsort
SELECT - 53, + col2 FROM tab0 WHERE NOT ( + 48 ) >= + col0 + - + col2
----
-53
10

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT + col2 + - col0 / + + 32 = + col1
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT ALL - COUNT( * ) AS col1, + COUNT( * ) + + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
47

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) + + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL - MAX( DISTINCT - 10 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - MAX ( DISTINCT - 10 ) AS col1 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1102
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1102
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 59 col0 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT - col0 + - 47 AS col0 FROM tab0 AS cor0
----
-134
-144
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT - - 1 * - COUNT( * ) + COUNT( * ) * + + MAX( + col2 ) FROM tab0 AS cor0
----
294

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1107
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) + + ( - 3 ) * - MAX( - col0 ) + - ( - COUNT( * ) ) * + MAX( DISTINCT col1 ) * + - 75 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + ( - 3 ) * - MAX ( - col0 ) + - ( - COUNT ( * ) ) * + MAX ( DISTINCT col1 ) * + - 75 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 29 + col1 AS col1 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT + 60 + + + 47 AS col2 FROM tab0 AS cor0
----
107
107
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1111
SELECT ALL + CAST( 75 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL + CAST ( 75 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT DISTINCT - 60 * COUNT( * ) col1 FROM tab1 AS cor0
----
-180

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

query I rowsort
SELECT DISTINCT col0 + + 51 FROM tab2 AS cor0
----
115
126
97

query I rowsort
SELECT ALL col1 + - + col0 + - col2 FROM tab1
----
-112
-133
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT DISTINCT + 95 + 86 / - CAST( NULL AS SIGNED ) + - 38 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT + 95 + 86 / - CAST ( NULL AS INTEGER ) + - 38 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 42 <= NULL
----

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

query I rowsort
SELECT DISTINCT col0 + + 84 + + col1 * - col2 FROM tab0
----
-3708
-39
82

query II rowsort
SELECT DISTINCT 99 * col0 AS col0, - col1 FROM tab2
----
4554
-51
6336
-77
7425
-67

query II rowsort
SELECT 21 * + col1 AS col2, + 20 AS col0 FROM tab0
----
1701
20
21
20
441
20

query I rowsort
SELECT ALL ( + col1 ) * + - col2 / col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0 / + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT COUNT( * ) * COUNT( * ) DIV + 83 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT COUNT ( * ) * COUNT ( * ) / + 83 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT - CAST( NULL AS SIGNED ) / ( + + 27 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT - CAST ( NULL AS INTEGER ) / ( + + 27 ) FROM tab2
----
NULL
NULL
NULL

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - col1 - - - 30 FROM tab0
----
-1245
-127
-1857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT ALL col0 + + CAST( col0 AS SIGNED ) * + col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

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

query I rowsort
SELECT 92 * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2116
-3680
-5336

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

query I rowsort
SELECT DISTINCT + 62 * - 35 * + col2 AS col2 FROM tab0
----
-101990
-214830
-21700

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

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

query I rowsort
SELECT ALL - col0 * - 76 * - col0 AS col1 FROM tab0
----
-17100
-575244
-715084

query III rowsort
SELECT * FROM tab0 cor0 WHERE 58 > + + col2 + + 73
----

query I rowsort
SELECT DISTINCT + + 12 + - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
237
7581
9421

query II rowsort
SELECT ALL + 17 + col1 AS col2, + ( + + 67 ) AS col1 FROM tab0 AS cor0
----
18
67
38
67
98
67

query I rowsort
SELECT - col0 + 98 AS col2 FROM tab0
----
1
11
83

query I rowsort
SELECT + 91 + + 94 AS col1 FROM tab0
----
185
185
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT + COUNT( * ) + - 49 AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT + COUNT ( * ) + - 49 AS col2 FROM tab1
----
-46

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

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

query I rowsort
SELECT DISTINCT - + 89 FROM tab0 AS cor0 WHERE NOT - 76 = + + col2
----
-89

query I rowsort
SELECT col2 * - + 96 FROM tab2 cor0
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1144
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > ( + 27 / CAST( NULL AS DECIMAL ) * ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1144
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > ( + 27 / CAST ( NULL AS REAL ) * ( + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT - col0 + 34 FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT - 57 DIV 84 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 57 / 84 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + MAX( + + 42 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1147
SELECT + MAX ( + + 42 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - + + col2, 35 col1 FROM tab1
----
-21
35
-54
35
-82
35

query I rowsort
SELECT DISTINCT + + 6 * + 1 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

query I rowsort
SELECT ALL + 7 * - col2 + - - col0 * + + 4 AS col2 FROM tab1 AS cor0
----
-112
-468
-73

query I rowsort
SELECT col1 + col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1134
-1806
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * 38 + col1 col1 FROM tab0 AS cor0
----
-1591
-1651
-1671

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

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

query I rowsort
SELECT + col2 * + 86 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
1102
360
805

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL COUNT( * ) * ( - + MAX( 23 ) ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL COUNT ( * ) * ( - + MAX ( 23 ) ) FROM tab1
----
-69

query II rowsort
SELECT ALL col2, 64 FROM tab0
----
10
64
47
64
99
64

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

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

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

query II rowsort
SELECT DISTINCT - - col1, - 60 AS col1 FROM tab1 AS cor0
----
14
-60
47
-60
5
-60

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

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

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

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

query I rowsort
SELECT - + col2 + + - 76 AS col1 FROM tab0 AS cor0
----
-123
-175
-86

query I rowsort
SELECT ( + col2 ) + 59 FROM tab2 AS cor0
----
117
82
99

query I rowsort
SELECT - col0 + - 27 + 29 AS col2 FROM tab2 AS cor0
----
-44
-62
-73

query II rowsort
SELECT ALL col0, + col1 * - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
-3807
87
-210
97
-99

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

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

skipif mysql # not compatible
query I rowsort label-1171
SELECT - col2 / - + col0 + col0 / + 67 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 12 <= - - col0 * - col0 + col2 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 89 + col1 - 88 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT col2 + col0 * - + col1 FROM tab0 cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT - 0 + - 8 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE col0 + - col0 + col1 * + col2 * - - ( col2 ) - - - 72 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 + - + 83 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT + - COUNT( ALL + col2 ) + - + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + - COUNT ( ALL + col2 ) + - + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL + COUNT( * ) FROM tab1 WHERE - - 82 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + COUNT ( * ) FROM tab1 WHERE - - 82 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT + MAX( ALL col0 ) + - 40 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT + MAX ( ALL col0 ) + - 40 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1182
SELECT DISTINCT col0 DIV + - col0 + + 63 AS col2, col1 col2 FROM tab1
----
62
14
62
47
62
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1182
SELECT DISTINCT col0 / + - col0 + + 63 AS col2, col1 col2 FROM tab1
----
62
14
62
47
62
5

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + COUNT ( + 51 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT ALL col2 - - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL col2 - - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1188
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= - + 47
----

skipif mysql # not compatible
query III rowsort label-1188
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= - + 47
----

query I rowsort
SELECT - 70 + - col0 AS col1 FROM tab2 AS cor0
----
-116
-134
-145

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

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

query I rowsort
SELECT ALL + col1 + - col2 * + - col1 AS col1 FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL - col2 * - col1 * - - col2 + - - 7 AS col2 FROM tab0 AS cor0
----
178936
2107
9808

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + 16 * + col1 AS col2 FROM tab1 AS cor0
----
3136
35344
400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT 10 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-30

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1199
SELECT DISTINCT - 57 DIV MIN( DISTINCT col1 ) AS col2, - 78 AS col0 FROM tab0 AS cor0
----
-57
-78

skipif mysql # not compatible
query II rowsort label-1199
SELECT DISTINCT - 57 / MIN ( DISTINCT col1 ) AS col2, - 78 AS col0 FROM tab0 AS cor0
----
-57
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - AVG ( + - 83 ) * + 39 col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1202
SELECT + COUNT( * ) AS col1, + COUNT( * ) FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-1202
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col2 + + 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT COUNT( * ) * + + ( - ( - - COUNT( * ) ) ) AS col2, 93 FROM tab2
----
-9
93

skipif mysql # not compatible
query II rowsort label-1204
SELECT COUNT ( * ) * + + ( - ( - - COUNT ( * ) ) ) AS col2, 93 FROM tab2
----
-9
93

query I rowsort
SELECT - ( - ( - col0 ) ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT ALL - AVG ( ALL - 85 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - AVG ( ALL - 85 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT ALL col1 * 88, col0 AS col0 FROM tab2 cor0
----
4488
46
5896
75
6776
64

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE 95 * - 63 = + 5
----

query I rowsort
SELECT DISTINCT - 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL + MIN( col1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + MIN ( col1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
153

query I rowsort
SELECT - col2 + - 10 / + col0 + 38 AS col1 FROM tab1 AS cor0 WHERE - col1 = NULL
----

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

query I rowsort
SELECT 54 + + col0 + col0 AS col0 FROM tab0 AS cor0
----
228
248
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1214
SELECT ALL + MIN( - 74 ) col2, COUNT( * ) AS col1 FROM tab2
----
-74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1214
SELECT ALL + MIN ( - 74 ) col2, COUNT ( * ) AS col1 FROM tab2
----
-74
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT CAST( + - MAX( DISTINCT + 67 ) AS SIGNED ) * + 79 + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1215
SELECT CAST ( + - MAX ( DISTINCT + 67 ) AS INTEGER ) * + 79 + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT 4 * + 50 + + + ( + 35 ) FROM tab1
----
235
235
235

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT COUNT( DISTINCT + + 26 ) + 32 AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT COUNT ( DISTINCT + + 26 ) + 32 AS col2 FROM tab0
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + 28 + + + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-1220
SELECT + 28 + + + COUNT ( * ) FROM tab1
----
31

query I rowsort
SELECT DISTINCT col1 - 16 * - col0 FROM tab1 WHERE NOT - 86 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col2 * - col0 + 26 + + + ( - 19 ) - - + 71 col1 FROM tab1
----
-4869
-5022
-6201

query I rowsort
SELECT + + 26 * - - col0 FROM tab1 AS cor0
----
1326
2210
2366

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + 84 col1 FROM tab2 AS cor0
----
-4284
-5628
-6468

query I rowsort
SELECT - 9 FROM tab0 AS cor0 WHERE NULL <> + col2
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + col2 * + col1 * + ( - 44 ) AND + - 71
----
85
5
59
91
47
68

query I rowsort
SELECT + col0 * col0 - col1 FROM tab0 AS cor0
----
144
7548
9408

query I rowsort
SELECT DISTINCT col0 * - 46 AS col1 FROM tab0 AS cor0 WHERE NOT + 89 >= col0
----
-4462

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1232
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1232
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 / + - col1 = col0 * + - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * + col1 * col1 + 30 col0 FROM tab2 cor0
----
-195045
-336645
-444645

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + MAX( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1238
SELECT + MAX ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

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

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

query I rowsort
SELECT ALL - col0 * 70 * col0 AS col2 FROM tab2 AS cor0
----
-148120
-286720
-393750

onlyif mysql # aggregate syntax: 
query II rowsort label-1241
SELECT + 89 * - + 89 AS col1, MIN( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
-7921
1

skipif mysql # not compatible
query II rowsort label-1241
SELECT + 89 * - + 89 AS col1, MIN ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
-7921
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT + AVG ( ALL col0 ) - + 4 FROM tab1 WHERE NOT ( NULL ) IN ( col1 / - - col0, 45, col0, - CAST( - - 13 AS SIGNED ), - col0, + - 17 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + AVG ( ALL col0 ) - + 4 FROM tab1 WHERE NOT ( NULL ) IN ( col1 / - - col0, 45, col0, - CAST ( - - 13 AS INTEGER ), - col0, + - 17 + col1 )
----
NULL

query I rowsort
SELECT + 34 * 86 FROM tab0
----
2924
2924
2924

query I rowsort
SELECT + 58 + 25 FROM tab0 WHERE NOT + - 75 IS NULL
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL - MIN( DISTINCT + + 88 ) * + COUNT( * ) FROM tab2 WHERE NOT 54 IS NULL
----
-264

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - MIN ( DISTINCT + + 88 ) * + COUNT ( * ) FROM tab2 WHERE NOT 54 IS NULL
----
-264

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL 41 * + - COUNT( * ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL 41 * + - COUNT ( * ) FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL ( - - SUM( - + col0 ) ) + + 97 FROM tab1 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL ( - - SUM ( - + col0 ) ) + + 97 FROM tab1 AS cor0
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT COUNT( * ), 2 * + + 44 AS col1 FROM tab1 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-1249
SELECT COUNT ( * ), 2 * + + 44 AS col1 FROM tab1 AS cor0
----
3
88

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE + 4 + - col2 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT - 73 * + COUNT( DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 79 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT - 73 * + COUNT ( DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 79 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL 17 + col1 FROM tab1
----
22
31
64

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 = col0 * col0
----

query III rowsort
SELECT * FROM tab1 WHERE 2 / - 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - COUNT( * ) * + ( COUNT( ( + col0 ) ) ) FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT - COUNT ( * ) * + ( COUNT ( ( + col0 ) ) ) FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT + CAST ( + 16 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT ALL 41 DIV + SUM( DISTINCT + col1 ) + + 53 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL 41 / + SUM ( DISTINCT + col1 ) + + 53 FROM tab0
----
53

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

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + COUNT ( * ) + - ( 66 ) FROM tab0
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT COUNT( - 26 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1263
SELECT COUNT ( - 26 ) FROM tab0
----
3

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

query I rowsort
SELECT DISTINCT + 88 * - 6 FROM tab1
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - 27 * + 86 - COUNT( * ) FROM tab1
----
-2325

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 27 * + 86 - COUNT ( * ) FROM tab1
----
-2325

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > - ( col1 ) * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 6 ) + + 45 col0 FROM tab0 WHERE col2 < ( 43 )
----
51

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > ( - 73 + - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT COUNT( DISTINCT 0 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1271
SELECT COUNT ( DISTINCT 0 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 46 * 35 FROM tab2
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + COUNT( * ) FROM tab1 WHERE + col0 * - 28 BETWEEN NULL AND - 39 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-1273
SELECT + COUNT ( * ) FROM tab1 WHERE + col0 * - 28 BETWEEN NULL AND - 39 * - col0
----
0

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT 56 IN ( - col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL + MIN( ALL col0 ) AS col2 FROM tab1 WHERE ( - col1 ) > ( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + MIN ( ALL col0 ) AS col2 FROM tab1 WHERE ( - col1 ) > ( 63 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1276
SELECT + ( + COUNT( * ) ) DIV 56 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1276
SELECT + ( + COUNT ( * ) ) / 56 FROM tab0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT ( 98 ) DIV col2 AS col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT ( 98 ) / col2 AS col2 FROM tab0
----
0
2
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT col1 DIV - 33 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1279
SELECT col1 / - 33 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT 75 DIV ( + col2 ) AS col0 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-1280
SELECT 75 / ( + col2 ) AS col0 FROM tab2
----
1
1
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = - 32 * + 35 + - col1
----

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

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

query I rowsort
SELECT + 1 + 36 FROM tab0 AS cor0 WHERE NOT + 80 IS NULL
----
37
37
37

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1286
SELECT DISTINCT + COUNT ( ALL col0 ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 <= + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( col2 ) IN ( - 22 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) IN ( - 22 * + col2 )
----
3

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 69 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT ALL col2 DIV + col1 col1 FROM tab2 AS cor0 WHERE + 58 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1293
SELECT ALL col2 / + col1 col1 FROM tab2 AS cor0 WHERE + 58 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - 99 + + 87 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 98 IS NULL
----
18240
5958
8559

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 30 ) NOT BETWEEN ( - col2 - - col0 ) AND ( + col2 )
----
85
5
59
91
47
68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL - SUM( ALL 78 ) AS col0 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - SUM ( ALL 78 ) AS col0 FROM tab1
----
-234

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 93 * + col2 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT + COUNT( + - 74 ) * - 57 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-1302
SELECT + COUNT ( + - 74 ) * - 57 FROM tab1
----
-171

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

query I rowsort
SELECT ALL col2 * - 9 * 4 AS col2 FROM tab2
----
-1440
-2088
-828

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * + 87 col1 FROM tab2
----
3306
3306
3306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT ( - col1 ) * - 21 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * + col1 + - col2 col1 FROM tab0 cor0
----
-1627
-176
-6284

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

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

query I rowsort
SELECT ALL + col0 + + - 14 FROM tab1 cor0
----
37
71
77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1313
SELECT - + SUM ( - + col0 ) col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 82 / col1 ) IN ( col1 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1315
SELECT 4 + + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1315
SELECT 4 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col2 + + 52 FROM tab0
----
151
62
99

query I rowsort
SELECT + 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * 17 + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1320
SELECT ALL 69 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL 69 / + - COUNT ( * ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT 75 * - 35 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( - 82 ) BETWEEN 99 AND ( 66 * col0 )
----
15
87
97

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

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

query I rowsort
SELECT + col1 * - + 44 + - col2 FROM tab2 AS cor0
----
-2267
-3006
-3428

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT - ( COUNT( ( 31 ) ) ) * 59 + - 97 FROM tab2 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-1325
SELECT - ( COUNT ( ( 31 ) ) ) * 59 + - 97 FROM tab2 AS cor0
----
-274

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

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

query I rowsort
SELECT ALL + col0 * 10 + col1 - col0 * + 37 * col2 AS col1 FROM tab1 AS cor0
----
-180628
-184700
-227999

query II rowsort
SELECT 26 + + col0 AS col0, 73 FROM tab0
----
113
73
123
73
41
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT + col2 * + - col2 + + col2 + - - col1 DIV col2 AS col2 FROM tab2
----
-1559
-3305
-504

skipif mysql # not compatible
query I rowsort label-1329
SELECT + col2 * + - col2 + + col2 + - - col1 / col2 AS col2 FROM tab2
----
-1559
-3305
-504

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) + - col1 * - 67 AS col1 FROM tab0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT 71 - 61 + + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT 71 - 61 + + COUNT ( * ) FROM tab1
----
13

query I rowsort
SELECT ALL 91 * 45 * + - col1 + - 93 AS col2 FROM tab2
----
-208938
-274458
-315408

query I rowsort
SELECT - ( - + 1 ) FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 * - - col2 * - 85 AS col2 FROM tab1
----
416160
426275
525980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1335
SELECT + CAST( + CAST( + - col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1335
SELECT + CAST ( + CAST ( + - col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT DISTINCT 42 DIV 74 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT 42 / 74 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 WHERE - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + - 82 col0 FROM tab2 AS cor0 WHERE NOT + col2 * + 49 IN ( + + ( - - col0 ) )
----
14
14
14

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

query II rowsort
SELECT + - col2 * col1 + + col1, 48 AS col1 FROM tab0 AS cor0
----
-189
48
-3726
48
-98
48

query I rowsort
SELECT col2 * 20 + - - 99 AS col0 FROM tab2 AS cor0
----
1259
559
899

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT + 61 AS col0, SUM( - 27 ) FROM tab1 AS cor0
----
61
-81

skipif mysql # not compatible
query II rowsort label-1343
SELECT + 61 AS col0, SUM ( - 27 ) FROM tab1 AS cor0
----
61
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT - + ( COUNT( * ) ) + 43 + - + ( 14 ) FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT - + ( COUNT ( * ) ) + 43 + - + ( 14 ) FROM tab0 cor0
----
26

query I rowsort
SELECT DISTINCT - 36 FROM tab1, tab0 cor0
----
-36

query I rowsort
SELECT ALL 55 AS col2 FROM tab1 WHERE NOT - 17 IN ( + 51 + - col0 )
----
55
55
55

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) < ( NULL )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 68 - ( + 73 ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + - col0 - - col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT DISTINCT + col1 * 80 * 44 DIV + col2 FROM tab2 AS cor0
----
4066
6776
7805

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT + col1 * 80 * 44 / + col2 FROM tab2 AS cor0
----
4066
6776
7805

query I rowsort
SELECT - ( + 46 ) * col2 FROM tab1 AS cor0
----
-2714
-3128
-4416

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - 28 - + + SUM( + + 60 ) col1 FROM tab2 AS cor0
----
-208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1356
SELECT - 28 - + + SUM ( + + 60 ) col1 FROM tab2 AS cor0
----
-208

onlyif mysql # DIV for integer division: 
query II rowsort label-1357
SELECT - 54 DIV 95 DIV - col0 AS col1, 25 FROM tab0
----
0
25
0
25
0
25

skipif mysql # not compatible
query II rowsort label-1357
SELECT - 54 / 95 / - col0 AS col1, 25 FROM tab0
----
0
25
0
25
0
25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1359
SELECT ALL COUNT( DISTINCT 16 ) DIV - 52 * - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL COUNT ( DISTINCT 16 ) / - 52 * - COUNT ( * ) AS col0 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE - 83 * - 22 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE - 83 * - 22 IS NOT NULL
----
-3

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

skipif mysql # not compatible
query I rowsort label-1362
SELECT 43 * + COUNT ( * ) FROM tab1
----
129

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 37 AS col2, 33 + + - 43 * - + col1 col0, - 64 FROM tab1
----
9 values hashing to 8bc2567b60d8f81824711fbf8d1198bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - + 85
----
15
87
97

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

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

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

query I rowsort
SELECT col1 * + 14 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT + COUNT( * ) * MIN( DISTINCT - 48 ) AS col1 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-1369
SELECT + COUNT ( * ) * MIN ( DISTINCT - 48 ) AS col1 FROM tab1
----
-144

query I rowsort
SELECT - 71 AS col1 FROM tab0 WHERE NOT 69 IN ( col1, 36 / + col2 )
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + ( + + 22 ) + + + 77 + - col0 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 31 col1 FROM tab1 AS cor0
----
-1457
-155
-434

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

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

query I rowsort
SELECT ( ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 51 > col0
----
64
77
40
75
67
58

query I rowsort
SELECT ( + 71 ) FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT COUNT( * ) + + + 4 + + - SUM( ALL + ( - + 94 ) ) * 66 FROM tab0
----
18619

skipif mysql # not compatible
query I rowsort label-1379
SELECT COUNT ( * ) + + + 4 + + - SUM ( ALL + ( - + 94 ) ) * 66 FROM tab0
----
18619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT col1 + + CAST( + col2 AS SIGNED ) * col0 FROM tab0 WHERE + col1 NOT IN ( - - CAST( + + col0 AS SIGNED ) * - col0 + - col2 * - + 50 )
----
786
891
9604

skipif mysql # not compatible
query I rowsort label-1380
SELECT col1 + + CAST ( + col2 AS INTEGER ) * col0 FROM tab0 WHERE + col1 NOT IN ( - - CAST ( + + col0 AS INTEGER ) * - col0 + - col2 * - + 50 )
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - MIN( DISTINCT + 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - MIN ( DISTINCT + 0 ) FROM tab2
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT + + col1 / + 56 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 > - 78 / ( + col0 ) + - - col2
----
15
81
47
87
21
10

query II rowsort
SELECT 9, 94 AS col1 FROM tab2 AS cor0
----
9
94
9
94
9
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT DISTINCT - COUNT( * ) * + + ( - 38 ) AS col1 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT - COUNT ( * ) * + + ( - 38 ) AS col1 FROM tab0 AS cor0
----
114

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE - + col2 * + col0 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT DISTINCT 91 DIV col0 - - + col0 - + 56 + - + 26 DIV col2 * col1 AS col1 FROM tab1 AS cor0
----
-4
30
36

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT 91 / col0 - - + col0 - + 56 + - + 26 / col2 * col1 AS col1 FROM tab1 AS cor0
----
-4
30
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 < - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - + ( + - col0 ) + col0 + - col2 NOT BETWEEN NULL AND ( + col2 )
----
85
5
59

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( + + col2 ) AND NOT 25 > ( col0 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1395
SELECT col1 * + col1 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 * - 25 / + CAST( + + 87 AS DECIMAL ) ) IN ( - 46, ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1395
SELECT col1 * + col1 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 * - 25 / + CAST ( + + 87 AS REAL ) ) IN ( - 46, ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT + 95 * - col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1397
SELECT DISTINCT SUM ( - col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL - 59 * + + COUNT( ALL + 35 ) AS col0 FROM tab0 WHERE NOT ( NULL <> + 25 )
----
0

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - 59 * + + COUNT ( ALL + 35 ) AS col0 FROM tab0 WHERE NOT ( NULL <> + 25 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT ( - - ( - - col0 ) ) DIV 94 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1399
SELECT ( - - ( - - col0 ) ) / 94 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1400
SELECT DISTINCT * FROM tab1 WHERE ( - - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1400
SELECT DISTINCT * FROM tab1 WHERE ( - - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - COUNT( * ) + + 68 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1403
SELECT - COUNT ( * ) + + 68 AS col2 FROM tab1
----
65

query I rowsort
SELECT 15 + + - col2 FROM tab0 cor0
----
-32
-84
5

query I rowsort
SELECT DISTINCT - 54 * + + ( - - 40 ) * - col1 AS col1 FROM tab2 AS cor0
----
110160
144720
166320

query II rowsort
SELECT ALL - col0 * + col0 + + 86 * + col0, col2 FROM tab0 AS cor0
----
-1067
99
-87
10
1065
47

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 35 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL + COUNT( * ) * + COUNT( * ) * - 86 + + - 94 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-859

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - 86 + + - 94 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-859

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT CAST( ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) * 79 * - 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 79 * - 54 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1412
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 23 AS col2 FROM tab2
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-1412
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 23 AS col2 FROM tab2
----
NULL
23
NULL
23
NULL
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col0 ) <= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - + col0 * + - 78 FROM tab1 AS cor0
----
4074
6689
7166

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

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

query I rowsort
SELECT DISTINCT - col1 + - + col1 + 83 FROM tab1 cor0
----
-11
55
73

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IN ( 97, ( + + col0 ) * + col2 ) )
----

query I rowsort
SELECT DISTINCT + 98 * - - col1 + + col2 AS col2 FROM tab0
----
197
2068
7985

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 53 ) <> ( col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - - MAX( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1424
SELECT - - MAX ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT - MAX ( ALL - 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + COUNT( * ) * SUM( DISTINCT - - 23 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1426
SELECT + COUNT ( * ) * SUM ( DISTINCT - - 23 ) FROM tab1
----
69

query I rowsort
SELECT - 42 * 32 AS col0 FROM tab1
----
-1344
-1344
-1344

query II rowsort
SELECT + col1 AS col1, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT COUNT( - - ( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1429
SELECT COUNT ( - - ( col2 ) ) FROM tab1
----
3

query II rowsort
SELECT ALL col1 AS col2, col1 * - 62 FROM tab2
----
51
-3162
67
-4154
77
-4774

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

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

query I rowsort
SELECT ALL + col1 * - - 9 AS col2 FROM tab0
----
189
729
9

query I rowsort
SELECT ALL col2 * 47 AS col0 FROM tab1 cor0
----
2773
3196
4512

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

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

query I rowsort
SELECT DISTINCT + col1 * - - 51 AS col1 FROM tab1 AS cor0
----
2397
255
714

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

query I rowsort
SELECT ALL - - col1 + - 95 FROM tab1 AS cor0
----
-48
-81
-90

query I rowsort
SELECT 83 + + col0 FROM tab0
----
170
180
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT - 19 + COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - 19 + COUNT ( * ) FROM tab2
----
-16

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

query I rowsort
SELECT col1 + + + col2 * + 80 FROM tab1
----
4725
5487
7694

query I rowsort
SELECT DISTINCT col1 + + + ( - + col1 ) * + col0 AS col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT COUNT( * ) - + 66 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT COUNT ( * ) - + 66 FROM tab0 cor0
----
-63

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

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

query I rowsort
SELECT col0 * 36 + - + col1 AS col0 FROM tab0 AS cor0
----
3111
3491
459

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1446
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 72 BETWEEN + - CAST( + - col0 AS SIGNED ) * + col0 AND + - 97
----

skipif mysql # not compatible
query III rowsort label-1446
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 72 BETWEEN + - CAST ( + - col0 AS INTEGER ) * + col0 AND + - 97
----

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

skipif mysql # not compatible
query I rowsort label-1447
SELECT - CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT - col2 * col1 * + - ( + 80 ), - col0 AS col0 FROM tab2 cor0
----
246400
-64
310880
-75
93840
-46

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL MIN( 76 ) AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL MIN ( 76 ) AS col0 FROM tab0
----
76

query I rowsort
SELECT DISTINCT + 15 * 58 FROM tab2
----
870

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1454
SELECT + + col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1454
SELECT + + col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1455
SELECT + + ( CAST( - 41 AS SIGNED ) ) FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-1455
SELECT + + ( CAST ( - 41 AS INTEGER ) ) FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - col2 * - 24 * - 52 + + col2 + col2 * col0 + - - col1 FROM tab1 AS cor0
----
-114802
-68553
-78561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT - CAST( NULL AS SIGNED ) + + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1459
SELECT - CAST ( NULL AS INTEGER ) + + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT 48 + - COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-1460
SELECT 48 + - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1461
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

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

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

query II rowsort
SELECT - 37 + + col0 AS col2, 39 FROM tab0 AS cor0
----
-22
39
50
39
60
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1465
SELECT DISTINCT - + col0 DIV + 78 * + + 34 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT - + col0 / + 78 * + + 34 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT - 47 DIV - MIN( - - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 47 / - MIN ( - - col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 * - col0 + + - ( + col2 ) * col2 + + 92 AS col1 FROM tab0 AS cor0
----
-19312
-2822
-878

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1470
SELECT + - MIN( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - - 9 = + col0 + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT + - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - - 9 = + col0 + + - 71
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 - col0 * 93 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT MIN( - - 48 ) + ( - SUM( - 11 ) ) * + 31 + MIN( col1 ) col0 FROM tab0
----
1072

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1473
SELECT DISTINCT MIN ( - - 48 ) + ( - SUM ( - 11 ) ) * + 31 + MIN ( col1 ) col0 FROM tab0
----
1072

query II rowsort
SELECT ALL col1 - - 48 AS col1, col1 * - col2 + + - 41 FROM tab2
----
115
-3927
125
-3121
99
-1214

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1476
SELECT ALL COUNT( * ) - - 21 col2, + 49 FROM tab1
----
24
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1476
SELECT ALL COUNT ( * ) - - 21 col2, + 49 FROM tab1
----
24
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - 59 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 79 < - 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 + 22 AS col1 FROM tab0 AS cor0
----
121
32
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * ( + + 4 ) + - - 75 = 45 / + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * ( + + 4 ) + - - 75 = 45 / + - CAST ( NULL AS INTEGER )
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col0 * + + col1 + 98 * + - col0 AS col1 FROM tab0
----
15
-255
87
-6699
97
-9409

query II rowsort
SELECT + 53 AS col0, + ( - 49 ) FROM tab1
----
53
-49
53
-49
53
-49

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

query II rowsort
SELECT DISTINCT col2, + ( + col0 ) FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( 55 ) ) * + col0 * col2 + + - 95 col2 FROM tab0 cor0
----
38680
47755
528070

query I rowsort
SELECT ALL - - 19 AS col2 FROM tab0 cor0
----
19
19
19

query II rowsort
SELECT - col1 AS col2, + 51 * + col1 FROM tab1 AS cor0
----
-14
714
-47
2397
-5
255

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1490
SELECT * FROM tab1 WHERE NOT + + col1 / CAST( - - 51 AS DECIMAL ) NOT BETWEEN + col1 * + + col0 * + ( - col0 ) + - col1 + col1 AND - 54
----

skipif mysql # not compatible
query III rowsort label-1490
SELECT * FROM tab1 WHERE NOT + + col1 / CAST ( - - 51 AS REAL ) NOT BETWEEN + col1 * + + col0 * + ( - col0 ) + - col1 + col1 AND - 54
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1492
SELECT DISTINCT MAX( + CAST( + 49 AS SIGNED ) ) AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT MAX ( + CAST ( + 49 AS INTEGER ) ) AS col0 FROM tab0
----
49

query I rowsort
SELECT DISTINCT - - col2 * + ( + - col0 ) / + col2 AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN - col1 AND + 46 / col2
----

query I rowsort
SELECT DISTINCT + col1 + 98 FROM tab1
----
103
112
145

onlyif mysql # aggregate syntax: 
query III rowsort label-1495
SELECT COUNT( * ), COUNT( * ) - 12 AS col0, - - COUNT( * ) AS col1 FROM tab0
----
3
-9
3

skipif mysql # not compatible
query III rowsort label-1495
SELECT COUNT ( * ), COUNT ( * ) - 12 AS col0, - - COUNT ( * ) AS col1 FROM tab0
----
3
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT + + MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + + MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-10

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

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT - - 69 + + + 16 - - - col1 DIV + col0 FROM tab2 AS cor0
----
84
84
85

skipif mysql # not compatible
query I rowsort label-1498
SELECT - - 69 + + + 16 - - - col1 / + col0 FROM tab2 AS cor0
----
84
84
85

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + 24 FROM tab0 AS cor0
----
123
34
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT + col2 DIV - + col1 + - col0 + - + col0 AS col2 FROM tab2 cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-1500
SELECT + col2 / - + col1 + - col0 + - + col0 AS col2 FROM tab2 cor0
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 + + col2 col1 FROM tab1 cor0
----
29
38
66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col1 col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL col1 + - col0 * + + 78 AS col0 FROM tab1
----
-3964
-6625
-7051

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

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

query I rowsort
SELECT + col1 * - - 52 AS col1 FROM tab2 WHERE + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col1 + + 49 / col2 / + 34 * - 28 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL - CAST( - 93 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT - MIN( DISTINCT + 6 ) * + + 70 AS col0 FROM tab1 WHERE NOT + - CAST( + ( col1 ) AS SIGNED ) + + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT - MIN ( DISTINCT + 6 ) * + + 70 AS col0 FROM tab1 WHERE NOT + - CAST ( + ( col1 ) AS INTEGER ) + + + col2 IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col2 * - 92, col0 FROM tab2
----
-2116
46
-3680
64
-5336
75

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

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT MAX ( + 57 ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT DISTINCT - 75 * 6 + + + MAX( col1 ) + + - 42 * - + 94 - COUNT( * ) + + COUNT( * ) DIV + - MAX( - + 74 ) * - COUNT( * ) * + 45 AS col2 FROM tab1 AS cor0
----
3542

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT - 75 * 6 + + + MAX ( col1 ) + + - 42 * - + 94 - COUNT ( * ) + + COUNT ( * ) / + - MAX ( - + 74 ) * - COUNT ( * ) * + 45 AS col2 FROM tab1 AS cor0
----
3542

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1517
SELECT ALL - + 58 DIV - CAST( + 43 AS SIGNED ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - + 58 / - CAST ( + 43 AS INTEGER ) FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1519
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - CAST( col2 AS SIGNED ), + 77, 23 + + + 78 + + - 78 )
----

skipif mysql # not compatible
query III rowsort label-1519
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - CAST ( col2 AS INTEGER ), + 77, 23 + + + 78 + + - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * 50 col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 58 / - - col1 IS NOT NULL
----

query II rowsort
SELECT col1, + 76 AS col1 FROM tab2
----
51
76
67
76
77
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1524
SELECT 64 * CAST( - col0 AS SIGNED ) AS col0, - col0 + col2 FROM tab0
----
-5568
-77
-6208
2
-960
32

skipif mysql # not compatible
query II rowsort label-1524
SELECT 64 * CAST ( - col0 AS INTEGER ) AS col0, - col0 + col2 FROM tab0
----
-5568
-77
-6208
2
-960
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col2 = NULL
----

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 AS cor0 WHERE + 27 + 70 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 42 + + 3 AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT CAST( - ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1528
SELECT CAST ( - ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT + col1 * col0 + - ( CAST( 73 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
2273
4855
4952

skipif mysql # not compatible
query I rowsort label-1529
SELECT + col1 * col0 + - ( CAST ( 73 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
2273
4855
4952

query I rowsort
SELECT - 82 * ( - 76 ) + col1 * - 19 FROM tab0 AS cor0
----
4693
5833
6213

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

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

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

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL AND ( 29 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1534
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1535
SELECT - 21 - + COUNT( * ) + + ( + COUNT( * ) ) + + 11 AS col1, COUNT( * ) FROM tab0
----
-10
3

skipif mysql # not compatible
query II rowsort label-1535
SELECT - 21 - + COUNT ( * ) + + ( + COUNT ( * ) ) + + 11 AS col1, COUNT ( * ) FROM tab0
----
-10
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT 61 DIV - col0 - col2 AS col2 FROM tab2
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-1536
SELECT 61 / - col0 - col2 AS col2 FROM tab2
----
-24
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1537
SELECT col2 * - 42 - - CAST( 12 AS SIGNED ) + - col1 + - - col0 DIV col1 * + - col2 * + col2 col0 FROM tab1
----
-31682
-61648
-7515

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1537
SELECT col2 * - 42 - - CAST ( 12 AS INTEGER ) + - col1 + - - col0 / col1 * + - col2 * + col2 col0 FROM tab1
----
-31682
-61648
-7515

query I rowsort
SELECT ALL 36 - 87 FROM tab1
----
-51
-51
-51

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

skipif mysql # not compatible
query I rowsort label-1539
SELECT + SUM ( - - col0 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + COUNT( * ) * - - 15 col2 FROM tab0
----
45

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

query II rowsort
SELECT DISTINCT col1, 33 AS col1 FROM tab1
----
14
33
47
33
5
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + - + col1 col1 FROM tab1 AS cor0 WHERE ( ( + 53 ) * - + 48 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + SUM( - + 88 ) AS col0 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1546
SELECT + SUM ( - + 88 ) AS col0 FROM tab2 AS cor0
----
-264

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT - + COUNT( * ), MAX( ALL - 2 ) AS col2 FROM tab0 AS cor0
----
-3
-2

skipif mysql # not compatible
query II rowsort label-1548
SELECT - + COUNT ( * ), MAX ( ALL - 2 ) AS col2 FROM tab0 AS cor0
----
-3
-2

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

query I rowsort
SELECT DISTINCT 27 * 22 FROM tab0
----
594

query I rowsort
SELECT 42 FROM tab2 WHERE col2 * - 99 <> ( + col2 ) * + + col1 - + - col2
----
42
42
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1552
SELECT ALL 54 DIV + + COUNT( 28 ) AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL 54 / + + COUNT ( 28 ) AS col1 FROM tab2
----
18

query I rowsort
SELECT DISTINCT + 54 * - + 67 FROM tab0
----
-3618

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

query I rowsort
SELECT DISTINCT 28 * col1 + + - col0 FROM tab0 AS cor0
----
-69
2253
501

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 29 <> - + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = ( + col0 )
----

query I rowsort
SELECT DISTINCT - col2 * - 6 + - col0 AS col0 FROM tab0 AS cor0
----
-27
267
497

query I rowsort
SELECT + ( - 63 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT - + col2 + + + col0 FROM tab2 AS cor0
----
17
23
24

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

query II rowsort
SELECT DISTINCT col1, col1 + - col1 AS col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT - col1 + + 13 + + 87 / - 90 * - + col0 * - CAST( NULL AS SIGNED ) + + - 6 + + col0 * col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT - col1 + + 13 + + 87 / - 90 * - + col0 * - CAST ( NULL AS INTEGER ) + + - 6 + + col0 * col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL + 75 * - 35 * ( + COUNT( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-7875

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + 75 * - 35 * ( + COUNT ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-7875

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

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

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

skipif mysql # not compatible
query I rowsort label-1570
SELECT - MIN ( - ( + 11 ) ) AS col2 FROM tab1
----
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 NOT IN ( - - 86 * 38, - 48 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL + MAX( 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + MAX ( 82 ) FROM tab1
----
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - col1 / 88
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab1 AS cor0 WHERE NOT 26 + + col2 + - 19 > + col2
----

query I rowsort
SELECT col0 * - - col1 FROM tab1 AS cor0
----
425
4277
714

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

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

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

query I rowsort
SELECT DISTINCT - 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND + 28
----

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

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

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

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

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

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

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

query I rowsort
SELECT - col0 + - - 20 * + col2 FROM tab2 AS cor0
----
1085
414
736

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

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - + ( - + col2 ) / col0 FROM tab1 AS cor0
----
0
0
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL COUNT( * ) * + MIN( - - 35 ) col1 FROM tab1, tab1 AS cor0
----
315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1589
SELECT ALL COUNT ( * ) * + MIN ( - - 35 ) col1 FROM tab1, tab1 AS cor0
----
315

query II rowsort
SELECT ALL + col2 + - 84, col2 * + + col1 AS col0 FROM tab2
----
-26
3886
-44
3080
-61
1173

query I rowsort
SELECT DISTINCT 24 + + col2 - + 11 AS col0 FROM tab2
----
36
53
71

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

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

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

query I rowsort
SELECT ALL + col0 * 26 AS col2 FROM tab2 AS cor0
----
1196
1664
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT - col2 DIV - 1 FROM tab0 AS cor0 WHERE col2 * - 81 NOT IN ( + col0 + col0 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1595
SELECT - col2 / - 1 FROM tab0 AS cor0 WHERE col2 * - 81 NOT IN ( + col0 + col0 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 79 * - + 51 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 29 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1598
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) * + col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-1598
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + col2 < NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 * 20 * 72 + - col2 - + col0 FROM tab0 AS cor0
----
116578
1244
30143

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT COUNT( * ) * - COUNT( * ) * + 73 FROM tab0
----
-657

skipif mysql # not compatible
query I rowsort label-1601
SELECT COUNT ( * ) * - COUNT ( * ) * + 73 FROM tab0
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - COUNT( * ) FROM tab0 WHERE NOT col1 + - + col2 / + + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col1 + - + col2 / + + col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1603
SELECT 67 * + + CAST( + 73 AS SIGNED ) FROM tab0
----
4891
4891
4891

skipif mysql # not compatible
query I rowsort label-1603
SELECT 67 * + + CAST ( + 73 AS INTEGER ) FROM tab0
----
4891
4891
4891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 21 * - col1 col1 FROM tab1
----
-51
-294
-85
-105
-91
-987

query II rowsort
SELECT col1 AS col2, - 24 FROM tab0
----
1
-24
21
-24
81
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT 64 * 19 * - COUNT( * ) FROM tab0
----
-3648

skipif mysql # not compatible
query I rowsort label-1606
SELECT 64 * 19 * - COUNT ( * ) FROM tab0
----
-3648

query I rowsort
SELECT DISTINCT - - 31 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
31

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1610
SELECT + - CAST( - 30 AS SIGNED ), col1 AS col2 FROM tab0 cor0
----
30
1
30
21
30
81

skipif mysql # not compatible
query II rowsort label-1610
SELECT + - CAST ( - 30 AS INTEGER ), col1 AS col2 FROM tab0 cor0
----
30
1
30
21
30
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT DISTINCT + 73, MIN( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE 2 + - col1 IS NULL
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1611
SELECT DISTINCT + 73, MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE 2 + - col1 IS NULL
----
73
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1613
SELECT DISTINCT - + AVG ( DISTINCT - col2 ) + AVG ( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT - + AVG ( DISTINCT - col2 ) + AVG ( DISTINCT - + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 74 FROM tab1 AS cor0 WHERE - col2 BETWEEN col0 AND + col2
----

query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT - col1 + ( + 8 ) AS col0 FROM tab1
----
-39
-6
3

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE col2 - col1 > + 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 + ( + - 69 ) + - col0 * col2 col2 FROM tab2
----
-1066
-2568
-4358

query I rowsort
SELECT ALL col2 + + 59 FROM tab1
----
118
127
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT - CAST( + 59 AS SIGNED ) + SUM( + + col2 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1620
SELECT - CAST ( + 59 AS INTEGER ) + SUM ( + + col2 ) FROM tab0
----
97

query II rowsort
SELECT - 80 + - col2 + + col2, 61 AS col0 FROM tab2
----
-80
61
-80
61
-80
61

query I rowsort
SELECT ALL - 3 * - 70 AS col2 FROM tab2
----
210
210
210

query I rowsort
SELECT - + 89 * - 74 AS col0 FROM tab1 AS cor0
----
6586
6586
6586

query II rowsort
SELECT + - 72 AS col2, + 70 FROM tab2 AS cor0
----
-72
70
-72
70
-72
70

query I rowsort
SELECT - + col2 * - 62 FROM tab0 AS cor0
----
2914
6138
620

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT DISTINCT + col0 DIV col0 + - 44 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + col0 / col0 + - 44 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT col2 * - col2 + - + 73 AS col2 FROM tab1
----
-3554
-4697
-9289

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT SUM( ALL + - 82 ) AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT SUM ( ALL + - 82 ) AS col2 FROM tab1 AS cor0
----
-246

query II rowsort
SELECT - 41 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
-41
1
-41
21
-41
81

query I rowsort
SELECT - 49 * + 30 AS col2 FROM tab1 AS cor0
----
-1470
-1470
-1470

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT 11 AS col2, MIN( + - col2 ) FROM tab2 AS cor0
----
11
-58

skipif mysql # not compatible
query II rowsort label-1634
SELECT 11 AS col2, MIN ( + - col2 ) FROM tab2 AS cor0
----
11
-58

query I rowsort
SELECT ALL 29 * col2 + + + ( + 54 ) FROM tab2 AS cor0
----
1214
1736
721

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL - ( + MIN( ALL - col1 ) ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1638
SELECT ALL - ( + MIN ( ALL - col1 ) ) col1 FROM tab2
----
77

query I rowsort
SELECT ALL ( - 60 ) FROM tab2
----
-60
-60
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT + col2 DIV + 83 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1641
SELECT + col2 / + 83 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1642
SELECT ( col2 ), + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1642
SELECT ( col2 ), + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1644
SELECT ( - col2 ) + 2 + + 8 DIV - 63 * - col2 + 70 FROM tab1
----
-24
13
4

skipif mysql # not compatible
query I rowsort label-1644
SELECT ( - col2 ) + 2 + + 8 / - 63 * - col2 + 70 FROM tab1
----
-24
13
4

query I rowsort
SELECT - ( col2 ) * + + col2 + 73 + - col2 * - col2 * - + ( - 8 ) + + col0 AS col0 FROM tab0
----
15551
68777
860

query I rowsort
SELECT + 36 * + 21 + + 15 * 19 * - col2 * - ( col1 ) - col0 AS col2 FROM tab1
----
383745
84746
911525

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT - col1 + - ( col1 ) DIV - 12 FROM tab2 AS cor0
----
-47
-62
-71

skipif mysql # not compatible
query I rowsort label-1648
SELECT - col1 + - ( col1 ) / - 12 FROM tab2 AS cor0
----
-47
-62
-71

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 75 AS col0 FROM tab2
----
126
142
152

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE - + col1 * + - 22 >= + col1 * + - col1
----
-59
-68
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1655
SELECT ALL * FROM tab2 WHERE 71 / 28 + + + col0 NOT IN ( - ( + - col1 ), + col0 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1655
SELECT ALL * FROM tab2 WHERE 71 / 28 + + + col0 NOT IN ( - ( + - col1 ), + col0 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL - - 2 + + col2 FROM tab0 WHERE CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL - - 2 + + col2 FROM tab0 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 + 38 col0 FROM tab0
----
86
86
86

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

query I rowsort
SELECT + 92 * + col0 * + col2 - - 89 FROM tab2
----
235609
400289
97425

query I rowsort
SELECT DISTINCT 44 - + + col1 FROM tab0
----
-37
23
43

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

query I rowsort
SELECT DISTINCT + col1 + - col0 * + - 48 AS col0 FROM tab1 cor0
----
2462
4085
4415

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL - + MIN( + - col1 ) * - - 9 - + MAX( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
667

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - + MIN ( + - col1 ) * - - 9 - + MAX ( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT CAST( - - AVG ( ALL - 5 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1664
SELECT CAST ( - - AVG ( ALL - 5 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= - 35 * + + 82 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col2 * + col0 col1, 33 AS col1 FROM tab1 cor0
----
-249696
33
-426275
33
-563108
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT DISTINCT - 92 * + + COUNT( * ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT - 92 * + + COUNT ( * ) FROM tab2
----
-276

query I rowsort
SELECT - 36 * - 50 FROM tab2
----
1800
1800
1800

query II rowsort
SELECT + col2, 55 + + col2 + ( 12 ) AS col1 FROM tab1
----
59
126
68
135
96
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COUNT( * ) + - 80 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
-80

skipif mysql # not compatible
query I rowsort label-1673
SELECT COUNT ( * ) + - 80 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
-80

query I rowsort
SELECT - ( + + 97 ) FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT COUNT( - 32 ) + + SUM( + - 14 ) AS col0 FROM tab0 WHERE NOT - + col1 IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-1675
SELECT COUNT ( - 32 ) + + SUM ( + - 14 ) AS col0 FROM tab0 WHERE NOT - + col1 IS NULL
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL - col2 + 35 - - col0 + + col2 DIV col0 * - 59 + - + 61 FROM tab0 WHERE NOT + col1 IS NULL
----
-235
-87
51

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL - col2 + 35 - - col0 + + col2 / col0 * - 59 + - + 61 FROM tab0 WHERE NOT + col1 IS NULL
----
-235
-87
51

query II rowsort
SELECT ALL + col2, + col0 * + col1 * + col1 FROM tab2
----
23
119646
40
379456
58
336675

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL + + COUNT( * ) + + - 76 AS col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL + + COUNT ( * ) + + - 76 AS col2 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT + MIN ( + 94 ) AS col0 FROM tab1
----
94

query II rowsort
SELECT + col2 + + col0 AS col2, + 78 FROM tab1 AS cor0
----
144
78
147
78
159
78

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

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

query I rowsort
SELECT + - col1 + - - 65 AS col1 FROM tab1 AS cor0
----
18
51
60

onlyif mysql # DIV for integer division: 
query II rowsort label-1690
SELECT DISTINCT col2 * - + col1 AS col0, + 19 DIV - ( - ( - - col2 ) ) col2 FROM tab2 AS cor0
----
-1173
0
-3080
0
-3886
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1690
SELECT DISTINCT col2 * - + col1 AS col0, + 19 / - ( - ( - - col2 ) ) col2 FROM tab2 AS cor0
----
-1173
0
-3080
0
-3886
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT + - col0 * + 82 + - col0 + - col0 + + - col1 DIV 12 + - - 20 AS col0 FROM tab1 AS cor0
----
-4265
-7120
-7627

skipif mysql # not compatible
query I rowsort label-1691
SELECT + - col0 * + 82 + - col0 + - col0 + + - col1 / 12 + - - 20 AS col0 FROM tab1 AS cor0
----
-4265
-7120
-7627

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

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

query I rowsort
SELECT - col1 + 96 + + 41 FROM tab0
----
116
136
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1694
SELECT + col0 DIV col0 DIV + CAST( 14 AS SIGNED ) * + - col0 + + col1, col0 * 6 AS col2 FROM tab2
----
51
276
67
450
77
384

skipif mysql # not compatible
query II rowsort label-1694
SELECT + col0 / col0 / + CAST ( 14 AS INTEGER ) * + - col0 + + col1, col0 * 6 AS col2 FROM tab2
----
51
276
67
450
77
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + - ( + col1 ) AS col2, 66 + + + 31 col2 FROM tab0
----
-108
97
-96
97
-98
97

query I rowsort
SELECT DISTINCT 16 * + - col1 - col2 AS col2 FROM tab2
----
-1130
-1272
-839

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT - col2 DIV + col1 + + - col1 * - + col1 AS col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1697
SELECT - col2 / + col1 + + - col1 * - + col1 AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL COUNT( * ) - + 69 * + 34 FROM tab1
----
-2343

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL COUNT ( * ) - + 69 * + 34 FROM tab1
----
-2343

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT COUNT( * ) - MIN( ALL + - ( col2 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT COUNT ( * ) - MIN ( ALL + - ( col2 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 13 = - col2 * + col1 / - col0
----

query I rowsort
SELECT DISTINCT 14 + 7 * col2 AS col2 FROM tab2
----
175
294
420

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT ( 92 ) + - col0 DIV - 49 AS col2 FROM tab2
----
92
93

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT ( 92 ) + - col0 / - 49 AS col2 FROM tab2
----
92
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1705
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) <= 27 + - 87
----

skipif mysql # not compatible
query III rowsort label-1705
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) <= 27 + - 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT col0 * 74 AS col2 FROM tab1 WHERE CAST( + ( - col2 ) AS SIGNED ) IS NOT NULL
----
3774
6290
6734

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT col0 * 74 AS col2 FROM tab1 WHERE CAST ( + ( - col2 ) AS INTEGER ) IS NOT NULL
----
3774
6290
6734

query I rowsort
SELECT ALL - col0 * 28 + - col1 FROM tab2
----
-1339
-1869
-2167

query III rowsort
SELECT ALL * FROM tab2 WHERE 28 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT + 60 + - 85 * + COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT + 60 + - 85 * + COUNT ( * ) FROM tab0
----
-195

query I rowsort
SELECT col0 + col2 FROM tab2 WHERE NOT col2 BETWEEN NULL AND 89 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + 68 ) IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + 68 ) IN ( col1 )
----
-3

query I rowsort
SELECT 59 + col0 * col0 AS col2 FROM tab0
----
284
7628
9468

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT - COUNT( DISTINCT + 18 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - COUNT ( DISTINCT + 18 ) AS col0 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT ALL col0 DIV + col1 - col0 col2 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1715
SELECT ALL col0 / + col1 - col0 col2 FROM tab2
----
-46
-64
-74

query I rowsort
SELECT + 92 + + col2 AS col1 FROM tab0
----
102
139
191

query I rowsort
SELECT DISTINCT + 81 * col0 - col2 FROM tab1
----
4035
6826
7303

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL + col0 + CAST( - col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + col0 + CAST ( - col0 AS INTEGER ) FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 60 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( 10 ) ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL + COUNT( * ) * COUNT( * ) + COUNT( * ) * + 38 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) * + 38 FROM tab1
----
123

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 96 ) * col1 col1 FROM tab2 AS cor0
----
-4896
-6432
-7392

query I rowsort
SELECT - ( 71 ) AS col1 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1726
SELECT ALL 60 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL 60 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 77 * col1 + col2 AS col1 FROM tab2 AS cor0
----
3950
5217
5969

query I rowsort
SELECT 32 / col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 28
----

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

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

query I rowsort
SELECT - 22 + + col2 * + 26 FROM tab1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NULL ) <= col1 + + 68
----

query I rowsort
SELECT + 53 + + 57 * - 19 FROM tab0
----
-1030
-1030
-1030

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

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

query I rowsort
SELECT + col0 + - 30 FROM tab0
----
-15
57
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT + col0 + CAST( + ( + col1 ) + + 56 AS SIGNED ) FROM tab1 cor0
----
121
146
194

skipif mysql # not compatible
query I rowsort label-1736
SELECT + col0 + CAST ( + ( + col1 ) + + 56 AS INTEGER ) FROM tab1 cor0
----
121
146
194

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - SUM( + 72 ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1737
SELECT - SUM ( + 72 ) FROM tab1 AS cor0
----
-216

query I rowsort
SELECT - col0 * + 96 AS col2 FROM tab1 AS cor0
----
-4896
-8160
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT + + 12 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT + + 12 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col2 + col2 FROM tab1 AS cor0 WHERE + ( col0 ) + col2 IS NOT NULL
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1743
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9

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

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

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

query I rowsort
SELECT ALL col1 * col1 + - ( + col1 ) FROM tab0
----
0
420
6480

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 61 + 80 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE 6 - - col0 >= NULL
----

query I rowsort
SELECT ALL col0 + 6 AS col0 FROM tab1
----
57
91
97

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 42 * ( 54 ) ) NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT col0 - col0 * ( 5 ) FROM tab0
----
-348
-388
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1754
SELECT DISTINCT col1 + CAST( col1 AS SIGNED ) DIV col2 AS col0 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT col1 + CAST ( col1 AS INTEGER ) / col2 AS col0 FROM tab0
----
1
23
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT COUNT( DISTINCT + col0 ) - - 96 AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1755
SELECT COUNT ( DISTINCT + col0 ) - - 96 AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1756
SELECT ALL COUNT( * ) DIV + 6 + 37 AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL COUNT ( * ) / + 6 + 37 AS col1 FROM tab0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - + 81 col1 FROM tab2
----
132
148
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT 50 + COUNT( * ) + 41 DIV SUM( - 36 * - 13 ) col1 FROM tab2
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1758
SELECT 50 + COUNT ( * ) + 41 / SUM ( - 36 * - 13 ) col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT COUNT( DISTINCT + 0 ) - 97 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col2 AND col1 * - col0
----
-97

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT COUNT ( DISTINCT + 0 ) - 97 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col2 AND col1 * - col0
----
-97

query I rowsort
SELECT - 37 + - col1 AS col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT ALL 84 - col0 AS col1 FROM tab2
----
20
38
9

query I rowsort
SELECT 68 + + - col1 AS col1 FROM tab0
----
-13
47
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 88 * - 56 col0 FROM tab1 cor0
----
-4881
-4914
-4923

query I rowsort
SELECT 48 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 15 + - 49
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 + - CAST( 16 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1768
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 + - CAST ( 16 AS INTEGER ) )
----

query I rowsort
SELECT ALL 68 * - 81 * - col0 FROM tab2 AS cor0
----
253368
352512
413100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + - col1 * col0 + - 14 < col1 * + 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 32 AS col2, + 23 * - col1 - - col0 FROM tab0 cor0
----
-32
-1848
-32
-396
-32
74

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

query II rowsort
SELECT ALL + 78, col2 + + col2 AS col2 FROM tab0 cor0
----
78
198
78
20
78
94

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

query I rowsort
SELECT ALL + - 74 + + 14 + + + 94 AS col0 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + 3 + 51 * - 43 AND NULL OR NOT ( + col0 ) <= 48
----
64
77
40
75
67
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT 85 DIV - col1 AS col2 FROM tab2 WHERE NOT ( + - 44 ) <= - 43 * 30
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1778
SELECT 85 / - col1 AS col2 FROM tab2 WHERE NOT ( + - 44 ) <= - 43 * 30
----
-1
-1
-1

query I rowsort
SELECT ALL col2 * + + 58 * - col2 FROM tab2
----
-195112
-30682
-92800

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col1 <= + 9 * - ( - 13 )
----
75
67
58

query I rowsort
SELECT ALL - col1 * - + 59 AS col1 FROM tab2
----
3009
3953
4543

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT + col2 DIV + - 42 + + + col2 * col2 AS col0 FROM tab0
----
100
2208
9799

skipif mysql # not compatible
query I rowsort label-1782
SELECT + col2 / + - 42 + + + col2 * col2 AS col0 FROM tab0
----
100
2208
9799

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT + col0 + - col0 + - 87 + col2 + + 1 DIV + col2 * 86 FROM tab2
----
-29
-47
-64

skipif mysql # not compatible
query I rowsort label-1783
SELECT + col0 + - col0 + - 87 + col2 + + 1 / + col2 * 86 FROM tab2
----
-29
-47
-64

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

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

query I rowsort
SELECT ALL 88 * + + 46 AS col0 FROM tab0
----
4048
4048
4048

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT + col2 DIV + 4 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
14
17
24

skipif mysql # not compatible
query I rowsort label-1786
SELECT + col2 / + 4 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
14
17
24

query I rowsort
SELECT DISTINCT - - col2 + - + col0 * col2 AS col0 FROM tab0 AS cor0
----
-658
-860
-9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE + - ( + col0 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE + - ( + col0 ) <> NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL - 75 * COUNT( * ) FROM tab1 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - 75 * COUNT ( * ) FROM tab1 cor0
----
-225

query II rowsort
SELECT ALL - col0 AS col0, col0 * + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-46
-119646
-64
-379456
-75
-336675

query I rowsort
SELECT - + 85 * - + col2 FROM tab0 AS cor0 WHERE 12 * + col0 IS NOT NULL
----
3995
8415
850

query III rowsort
SELECT * FROM tab1 cor0 WHERE 32 < - + 38 * col2
----

query I rowsort
SELECT - + col2 * + + 58 * + + col1 * + 23 + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1792868
-393520
-4263370

query I rowsort
SELECT + 30 + + col0 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1797
SELECT DISTINCT CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1797
SELECT DISTINCT CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab1
----
NULL
3

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

query I rowsort
SELECT ALL col0 - 67 AS col2 FROM tab1
----
-16
18
24

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 36 * + - col0 > ( 94 ) )
----

query II rowsort
SELECT ALL + col2 * col0 AS col2, - 69 FROM tab1
----
4896
-69
5015
-69
6188
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT - - ( - - SUM( - col1 ) ) FROM tab2 AS cor0 WHERE + 79 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - - ( - - SUM ( - col1 ) ) FROM tab2 AS cor0 WHERE + 79 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL + MAX( ALL + 2 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + MAX ( ALL + 2 ) AS col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT - + 22 * - + col1 AS col1 FROM tab1 AS cor0
----
1034
110
308

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1807
SELECT 6 / + 6 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT 89 FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 39 / ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 39 / ( - col0 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT DISTINCT + ( - CAST( AVG ( ALL - - col1 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + ( - CAST ( AVG ( ALL - - col1 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT - + ( + + ( + col1 ) ) * col1 + + 25 AS col1 FROM tab0 AS cor0
----
-416
-6536
24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT + ( - ( + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 * col1 + - 54 ) < ( - col0 * - + CAST( + col1 AS SIGNED ) + - ( + col2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1813
SELECT + ( - ( + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 * col1 + - 54 ) < ( - col0 * - + CAST ( + col1 AS INTEGER ) + - ( + col2 ) )
----
-2

query II rowsort
SELECT ALL - 72 + + col2 AS col1, col0 FROM tab1 AS cor0
----
-13
85
-4
91
24
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT + + CAST( - - CAST( - col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1815
SELECT + + CAST ( - - CAST ( - col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1816
SELECT DISTINCT + + MAX ( ALL 35 ) col1 FROM tab1 AS cor0
----
35

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col0 + + 80 < + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( - 65 )
----

query II rowsort
SELECT DISTINCT col1 + - ( - + col0 ), col0 FROM tab2
----
141
64
142
75
97
46

query I rowsort
SELECT DISTINCT 21 * + 86 FROM tab0
----
1806

query I rowsort
SELECT DISTINCT - ( + col0 ) + - 61 AS col1 FROM tab1
----
-112
-146
-152

query I rowsort
SELECT DISTINCT 52 FROM tab0 WHERE NOT + - 95 - - - col2 IS NULL
----
52

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 19 IS NULL
----

query I rowsort
SELECT + col1 * + col0 + - col1 + 96 * - 38 AS col1 FROM tab2 cor0
----
-1353
1203
1310

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

query I rowsort
SELECT col2 * + 92 + - + 60 AS col0 FROM tab2
----
2056
3620
5276

query I rowsort
SELECT ALL - col2 + - 73 AS col0 FROM tab2
----
-113
-131
-96

query I rowsort
SELECT ALL - 7 - + + col2 FROM tab2 AS cor0
----
-30
-47
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT - + CAST( - COUNT( DISTINCT 41 ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1831
SELECT - + CAST ( - COUNT ( DISTINCT 41 ) AS INTEGER ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + 37 * - col1 FROM tab2 AS cor0
----
-1887
-2479
-2849

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + 99 - + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1834
SELECT + 99 - + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL + - MAX( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + - MAX ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT DISTINCT + 6 DIV + col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT + 6 / + col0 AS col2 FROM tab1
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + col2 / - + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT DISTINCT 58 DIV col0 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 58 / col0 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT ALL AVG ( + ( - col0 ) ) AS col1 FROM tab2 cor0 WHERE + 37 BETWEEN - + col2 AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT + MAX ( DISTINCT + 27 ) FROM tab2 cor0
----
27

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

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 + - col2 * - ( - 84 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 + - col2 * - ( - 84 ) )
----
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col2 * - col2 >= - 89 * 69
----
-51

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1848
SELECT + SUM ( DISTINCT 50 ) col1 FROM tab0 AS cor0
----
50

query II rowsort
SELECT - col2, - 65 AS col2 FROM tab1 AS cor0
----
-59
-65
-68
-65
-96
-65

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 BETWEEN - + col1 / - + col1 * col1 * col2 AND ( + 95 * - col2 )
----

query I rowsort
SELECT ALL + col0 * col0 + - col1 FROM tab1 AS cor0
----
2587
7220
8234

query I rowsort
SELECT DISTINCT + col2 + + 76 + col2 * + 1 * - + col1 FROM tab0
----
-124
-3684
76

query I rowsort
SELECT + col2 + - 74 * ( - col2 ) AS col0 FROM tab2
----
1725
3000
4350

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1855
SELECT - col1 + col0 col0, 80 DIV - 85 AS col2 FROM tab2
----
-13
0
-5
0
8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1855
SELECT - col1 + col0 col0, 80 / - 85 AS col2 FROM tab2
----
-13
0
-5
0
8
0

query I rowsort
SELECT + col2 * + col1 * + col1 AS col0 FROM tab0 cor0
----
308367
4410
99

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

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

query I rowsort
SELECT ALL col0 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT ALL 91 * + - col2 AS col1 FROM tab0 AS cor0
----
-4277
-9009
-910

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

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT + 66 DIV + 28 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1863
SELECT + 66 / + 28 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT col2 * col2 * - 68 FROM tab1 AS cor0
----
-236708
-314432
-626688

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL + COUNT( * ) col0 FROM tab2 WHERE NOT - + 60 + + 70 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1865
SELECT ALL + COUNT ( * ) col0 FROM tab2 WHERE NOT - + 60 + + 70 >= NULL
----
0

query I rowsort
SELECT DISTINCT - - 34 / + col1 + - + 4 AS col1 FROM tab2 WHERE NOT - 10 * + + col2 * + + col2 IS NOT NULL
----

query I rowsort
SELECT + - 93 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 53 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT + 41 * - col1 * col0 FROM tab1 AS cor0
----
-17425
-175357
-29274

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN - + 67 + - col0 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 49 ) IS NULL
----

query I rowsort
SELECT + 7 + + 78 AS col0 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + SUM( + 51 ) AS col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1874
SELECT + SUM ( + 51 ) AS col2 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 + - + col2 + 35 / - + 87 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 + - + col2 + 35 / - + 87 ) AND col2
----
0

query II rowsort
SELECT ALL - col0 AS col0, - col0 * - col0 AS col2 FROM tab0 WHERE NOT + 7 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + col0 col1 FROM tab1
----
42
48
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL 13 - - SUM( DISTINCT - col2 ) FROM tab0
----
-143

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 13 - - SUM ( DISTINCT - col2 ) FROM tab0
----
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col1 col0 FROM tab1
----
59
5
68
47
96
14

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

query II rowsort
SELECT - col1 - - col0, col2 FROM tab2
----
-13
40
-5
23
8
58

query I rowsort
SELECT + - 2 + 36 * - col1 FROM tab2 AS cor0
----
-1838
-2414
-2774

query I rowsort
SELECT + col1 * - col1 + + col1 AS col2 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT ALL 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT ALL + CAST( - - 42 AS SIGNED ) FROM tab2 AS cor0
----
42
42
42

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

query I rowsort
SELECT ALL - col1 * + ( 73 ) FROM tab1 AS cor0
----
-1022
-3431
-365

query I rowsort
SELECT ALL 74 * 95 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IN ( - col0 )
----
7030
7030
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL + - SUM( ALL + col0 ) * - 53 AS col2 FROM tab0 AS cor0
----
10547

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + - SUM ( ALL + col0 ) * - 53 AS col2 FROM tab0 AS cor0
----
10547

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col0 * + 9 / + 42
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1893
SELECT DISTINCT - col1 + - 37 + col1 FROM tab0 WHERE NOT + - CAST( col2 AS SIGNED ) * - - ( - CAST( NULL AS DECIMAL ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - col1 + - 37 + col1 FROM tab0 WHERE NOT + - CAST ( col2 AS INTEGER ) * - - ( - CAST ( NULL AS REAL ) ) = NULL
----

query II rowsort
SELECT col1 AS col2, - 85 + 19 + + 35 + - 56 * + 11 AS col0 FROM tab2
----
51
-647
67
-647
77
-647

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT DISTINCT + COUNT ( DISTINCT + 21 ) col2 FROM tab2
----
1

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

skipif mysql # not compatible
query III rowsort label-1896
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN + + CAST ( NULL AS INTEGER ) AND col0 * + 12 + - 34
----

query I rowsort
SELECT col2 * + - col2 * col2 AS col0 FROM tab0
----
-1000
-103823
-970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) col2 FROM tab1
----
14
47
5

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

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

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

query II rowsort
SELECT DISTINCT + 24 * 23 AS col0, col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
552
10
552
47
552
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * 35 col2 FROM tab0 AS cor0
----
2765
2765
2765

query I rowsort
SELECT DISTINCT + 86 + - col0 AS col2 FROM tab1 AS cor0
----
-5
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - + ( MAX( DISTINCT - ( - col2 ) ) ) + - - 44 col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1904
SELECT - + ( MAX ( DISTINCT - ( - col2 ) ) ) + - - 44 col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL - - 13 * - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-299
-520
-754

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT DISTINCT - + 67 DIV col1 + 73 AS col2 FROM tab0 AS cor0
----
6
70
73

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - + 67 / col1 + 73 AS col2 FROM tab0 AS cor0
----
6
70
73

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

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

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT DISTINCT col0 * - - 14 + col0 FROM tab2
----
1125
690
960

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

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

query I rowsort
SELECT ALL - 82 - - 22 + - - col0 + 79 FROM tab2
----
65
83
94

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + SUM( - - col1 ) AS col1 FROM tab0 AS cor0 WHERE - ( 63 ) * col0 + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT + SUM ( - - col1 ) AS col1 FROM tab0 AS cor0 WHERE - ( 63 ) * col0 + - col1 IS NULL
----
NULL

query II rowsort
SELECT ALL col0 * col2 + - 24, + col0 * + col0 AS col0 FROM tab2 AS cor0
----
1034
2116
2536
4096
4326
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 66 - - 36 * + 13 + + ( - COUNT( * ) ) * + + 29 AS col2 FROM tab2 AS cor0
----
447

skipif mysql # not compatible
query I rowsort label-1918
SELECT 66 - - 36 * + 13 + + ( - COUNT ( * ) ) * + + 29 AS col2 FROM tab2 AS cor0
----
447

query II rowsort
SELECT ALL - 56 * - ( - + 50 ) * - col0 + col1, ( col0 ) FROM tab1 AS cor0
----
142814
51
238005
85
254847
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( - 22 > NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1921
SELECT 36 AS col0, SUM( ALL - + 87 ) FROM tab2
----
36
-261

skipif mysql # not compatible
query II rowsort label-1921
SELECT 36 AS col0, SUM ( ALL - + 87 ) FROM tab2
----
36
-261

query II rowsort
SELECT DISTINCT + 69 AS col0, - col0 FROM tab0
----
69
-15
69
-87
69
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL - MAX( DISTINCT 12 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL - MAX ( DISTINCT 12 ) FROM tab0 AS cor0
----
-12

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * 96 col2 FROM tab1
----
2112
2112
2112

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 5 * col0 / - 52 IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-1930
SELECT ALL - MAX ( ALL - + col0 ) AS col0, COUNT ( * ) * COUNT ( + col0 ) AS col1 FROM tab1
----
51
9

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - 8 * - ( col0 ) + - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - 56 * + ( - MAX( DISTINCT 2 ) ) + - 66 * - MAX( ALL + 13 ) col0 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-1933
SELECT ALL - 56 * + ( - MAX ( DISTINCT 2 ) ) + - 66 * - MAX ( ALL + 13 ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 BETWEEN - col1 * + - col0 AND - + 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - 55 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - MIN( ALL + 40 ) + + - 4 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-1939
SELECT - MIN ( ALL + 40 ) + + - 4 FROM tab2
----
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / - - 73 * col0 IN ( + 17, - col1, + 84 + - col1 + - col0, - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT AVG ( - col1 ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT AVG ( - col1 ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT - col0 AS col0, col1 - col0 AS col2 FROM tab2 AS cor0
----
-46
5
-64
13
-75
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1943
SELECT ALL + COUNT( * ) AS col2, - CAST( COUNT( * ) AS SIGNED ) - - MAX( - 16 ) - - 22 AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1943
SELECT ALL + COUNT ( * ) AS col2, - CAST ( COUNT ( * ) AS INTEGER ) - - MAX ( - 16 ) - - 22 AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT + col1 * - col2 * - col1 * - + 85 FROM tab0 AS cor0
----
-26211195
-374850
-8415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 79 col1 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL + + 36 + + COUNT( col1 ) FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + + 36 + + COUNT ( col1 ) FROM tab2 cor0
----
39

query I rowsort
SELECT - - 49 * col2 * - 9 + + col0 * + col1 * - col1 * 20 FROM tab2 AS cor0
----
-2403063
-6759078
-7606760

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1949
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1949
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - + col1 * - 62 + + - col2 col0 FROM tab2 AS cor0
----
3088
4029
4657

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT + MIN( - 36 ) FROM tab1, tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT + MIN ( - 36 ) FROM tab1, tab2 AS cor0
----
-36

query II rowsort
SELECT DISTINCT col1 - + + col1 + - col2 + - 11, + col0 FROM tab2
----
-34
46
-51
64
-69
75

query I rowsort
SELECT 93 - - col0 FROM tab0
----
108
180
190

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1955
SELECT * FROM tab2 WHERE - 70 * + + col1 * - col2 * 83 <> - CAST( - 92 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1955
SELECT * FROM tab2 WHERE - 70 * + + col1 * - col2 * 83 <> - CAST ( - 92 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 0 - 12 AS col1 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL 6 + col2 - col2 FROM tab2
----
6
6
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - - 5 + + + 50
----

query I rowsort
SELECT ALL + 21 + - 7 AS col2 FROM tab2
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1960
SELECT * FROM tab0 WHERE + + col2 IN ( + - col0 + - - CAST( NULL AS SIGNED ), + col2 / 46 * + col0 + - 78 )
----

skipif mysql # not compatible
query III rowsort label-1960
SELECT * FROM tab0 WHERE + + col2 IN ( + - col0 + - - CAST ( NULL AS INTEGER ), + col2 / 46 * + col0 + - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col2 FROM tab0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col1 * col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 + + col2 + col2 - 94 AS col2 FROM tab0 AS cor0
----
-274
-3760
104

query I rowsort
SELECT ALL + + 4 * + + col0 AS col0 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT ALL ( - - 75 ) * - ( + + col1 ) AS col2 FROM tab2
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL + SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - 91 - 69 + - col0 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

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

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

query II rowsort
SELECT + + col1 + + col1, col2 - 12 AS col1 FROM tab1 WHERE NOT + - col0 <> col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 67 + - 37 + - + col1 col2 FROM tab2
----
2994
4174
4921

query I rowsort
SELECT col0 + + - col2 * ( + col2 ) AS col0 FROM tab0
----
-13
-2194
-9704

query II rowsort
SELECT ALL col0 AS col1, - col2 AS col1 FROM tab0 cor0
----
15
-47
87
-10
97
-99

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

query I rowsort
SELECT + + 12 FROM tab1 AS cor0 WHERE + col0 + + 75 * 57 BETWEEN NULL AND + col1 - - - 2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1976
SELECT + 4 AS col2, CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
18 values hashing to 6704b5ce0d160829d934bc8cd6fe8a3c

skipif mysql # not compatible
query II rowsort label-1976
SELECT + 4 AS col2, CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
18 values hashing to 6704b5ce0d160829d934bc8cd6fe8a3c

query I rowsort
SELECT ( - 68 ) * - + col2 FROM tab2
----
1564
2720
3944

query II rowsort
SELECT ( - 66 ), 39 + - col0 AS col1 FROM tab0
----
-66
-48
-66
-58
-66
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1979
SELECT ALL CAST( - col0 AS SIGNED ), + col1 * 44 AS col0 FROM tab2 AS cor0
----
-46
2244
-64
3388
-75
2948

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL CAST ( - col0 AS INTEGER ), + col1 * 44 AS col0 FROM tab2 AS cor0
----
-46
2244
-64
3388
-75
2948

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

skipif mysql # not compatible
query I rowsort label-1980
SELECT + - 77 + + ( + COUNT ( * ) ) FROM tab2 cor0
----
-74

query I rowsort
SELECT ALL + - 71 + - - col2 FROM tab2 AS cor0
----
-13
-31
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ( + - SUM( ALL col0 ) ) + - 32 FROM tab1
----
-259

skipif mysql # not compatible
query I rowsort label-1982
SELECT ( + - SUM ( ALL col0 ) ) + - 32 FROM tab1
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT 23 + SUM( ALL - 76 ) AS col0 FROM tab1
----
-205

skipif mysql # not compatible
query I rowsort label-1983
SELECT 23 + SUM ( ALL - 76 ) AS col0 FROM tab1
----
-205

query I rowsort
SELECT DISTINCT col2 - + 87 FROM tab0
----
-40
-77
12

query I rowsort
SELECT ALL + 5 + + + col0 FROM tab1
----
56
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col2 col0 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - ( + 1 )
----

query I rowsort
SELECT ALL - 78 + + 97 AS col1 FROM tab2
----
19
19
19

query I rowsort
SELECT ALL col2 * + 49 - + col1 * col0 AS col1 FROM tab0 AS cor0
----
-1337
1088
4754

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL + 82 * + + SUM( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-12792

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + 82 * + + SUM ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-12792

query II rowsort
SELECT + + 80, + col1 FROM tab2 AS cor0
----
80
51
80
67
80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL 42 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL 42 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + 49 * - + COUNT( DISTINCT + 57 ) AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 49 * - + COUNT ( DISTINCT + 57 ) AS col1 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL >= + - 85
----
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL >= + - 85
----
0

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col1 * + col1 * col1 AS col2 FROM tab2 cor0
----
132651
300763
456533

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - MAX( DISTINCT + 40 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1998
SELECT - MAX ( DISTINCT + 40 ) FROM tab1 AS cor0
----
-40

query I rowsort
SELECT DISTINCT - ( + 48 ) + col1 FROM tab1 AS cor0
----
-1
-34
-43

query I rowsort
SELECT ( 44 ) AS col2 FROM tab0
----
44
44
44

query I rowsort
SELECT - - 97 - col0 + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + - 44 AND - - col0
----

query I rowsort
SELECT + 63 * 67 FROM tab1 WHERE NOT - - col1 * + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - ( - col2 ) col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT + 58 DIV + - col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 58 / + - col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT + + ( - + col0 ) + + + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 16 + + col1 AS col0 FROM tab0
----
17
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - + COUNT( * ) - 25 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-34

skipif mysql # not compatible
query I rowsort label-2007
SELECT - + COUNT ( * ) - 25 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * + col0 col1, - 93 * 4 FROM tab2 AS cor0
----
1058
-372
2560
-372
4350
-372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col2, col2 * - + 72 col1 FROM tab0 AS cor0
----
100
-720
2209
-3384
9801
-7128

query I rowsort
SELECT + col1 * - - 99 FROM tab1 AS cor0
----
1386
4653
495

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + COUNT( 95 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2011
SELECT + COUNT ( 95 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2012
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 16 + - - col1 - + CAST( - + 66 AS SIGNED ) * 43 / 30 + col1 * - col0
----

skipif mysql # not compatible
query III rowsort label-2012
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 16 + - - col1 - + CAST ( - + 66 AS INTEGER ) * 43 / 30 + col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2013
SELECT DISTINCT - col0, 76 * col0 * + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2013
SELECT DISTINCT - col0, 76 * col0 * + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + COUNT( DISTINCT - col1 ) * - + 62 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2014
SELECT + COUNT ( DISTINCT - col1 ) * - + 62 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 = + col2
----
59
68
96

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT + col1 + col2 FROM tab1 WHERE + + ( + ( - - 23 ) ) * CAST( col1 AS SIGNED ) * - 20 + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2017
SELECT + col1 + col2 FROM tab1 WHERE + + ( + ( - - 23 ) ) * CAST ( col1 AS INTEGER ) * - 20 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 72 * + 72 + + col1 * + - col1 - + 52 AS col2 FROM tab2
----
261731
342787
393187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT + 79 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 79 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL MAX( ALL - 28 ) AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL MAX ( ALL - 28 ) AS col1 FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL SUM( ALL + 40 ) AS col1 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL SUM ( ALL + 40 ) AS col1 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT - ( CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2024
SELECT - ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - ( + 34 ) AS col0 FROM tab2
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + MIN( col1 ) * + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2026
SELECT + MIN ( col1 ) * + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT DISTINCT + COUNT( * ) * - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT + COUNT ( * ) * - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2028
SELECT * FROM tab2 WHERE NOT col0 + + col1 NOT BETWEEN 2 AND + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2028
SELECT * FROM tab2 WHERE NOT col0 + + col1 NOT BETWEEN 2 AND + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT col0 * - - 26 FROM tab2
----
1196
1664
1950

query I rowsort
SELECT DISTINCT 46 * col2 FROM tab0
----
2162
4554
460

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT + + 36 * 84 * MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-30240

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + + 36 * 84 * MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-30240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT DISTINCT 79 DIV 24 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT 79 / 24 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 91 AS col1, col2 * + - col2 FROM tab0 AS cor0
----
91
-100
91
-2209
91
-9801

query II rowsort
SELECT 24, col0 * 74 AS col1 FROM tab1 cor0
----
24
3774
24
6290
24
6734

query I rowsort
SELECT ALL - - col0 + + ( col0 ) FROM tab1 AS cor0 WHERE 78 * col0 > + 35
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col1 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2038
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ( - + 30 ) * + 30 + - ( - col0 ) DIV - - 38 + col0 + - - ( - ( - col0 ) ) * col1 FROM tab2
----
1493
4093
4201

skipif mysql # not compatible
query I rowsort label-2039
SELECT ( - + 30 ) * + 30 + - ( - col0 ) / - - 38 + col0 + - - ( - ( - col0 ) ) * col1 FROM tab2
----
1493
4093
4201

query I rowsort
SELECT ALL 19 * + 72 AS col1 FROM tab1
----
1368
1368
1368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 * 71 + - 13 - + - col0 * - - col1 col1 FROM tab1
----
2826
3115
6678

query II rowsort
SELECT col1 + col1 AS col0, col1 AS col2 FROM tab2
----
102
51
134
67
154
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT + COUNT( * ) + 81 AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2043
SELECT + COUNT ( * ) + 81 AS col1 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - ( 14 ) * - COUNT( * ) + - + COUNT( - 53 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2044
SELECT - ( 14 ) * - COUNT ( * ) + - + COUNT ( - 53 ) AS col1 FROM tab2
----
39

query II rowsort
SELECT - col1 + - 89 AS col0, col2 AS col2 FROM tab2
----
-140
23
-156
58
-166
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT 82 * + 81 + COUNT( + col0 ) FROM tab0
----
6645

skipif mysql # not compatible
query I rowsort label-2046
SELECT 82 * + 81 + COUNT ( + col0 ) FROM tab0
----
6645

query I rowsort
SELECT ALL + - col2 * + ( - col0 ) + - + col2 + col0 * col0 AS col1 FROM tab1 cor0
----
12181
14401
7401

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2048
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / col1 NOT IN ( + - CAST( NULL AS SIGNED ), - col2, col0, + + col2 * - 4, + 9 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-2048
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / col1 NOT IN ( + - CAST ( NULL AS INTEGER ), - col2, col0, + + col2 * - 4, + 9 )
----
97
1
99

query I rowsort
SELECT - - ( + col1 ) * + 79 AS col0 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT DISTINCT + col1 * + 18 * col0 + - - col0 + - col1 DIV col0 FROM tab2
----
42273
88767
90525

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + col1 * + 18 * col0 + - - col0 + - col1 / col0 FROM tab2
----
42273
88767
90525

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT ( - MIN( DISTINCT - - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT ( - MIN ( DISTINCT - - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + 13 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT - MIN( - + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT - MIN ( - + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ( 39 ) + - - COUNT( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2054
SELECT ( 39 ) + - - COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - + col0 col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2057
SELECT + + col2 + - CAST( NULL AS DECIMAL ) + + - col0 - + 39 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT + + col2 + - CAST ( NULL AS REAL ) + + - col0 - + 39 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT + 65 * - - col2 FROM tab0 AS cor0
----
3055
6435
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab0 WHERE NOT + - col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * col0 = NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 * + 13 FROM tab1
----
-5525
-55601
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT SUM( ALL - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT SUM ( ALL - col1 ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + MIN( DISTINCT + ( - col2 ) ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2065
SELECT + MIN ( DISTINCT + ( - col2 ) ) col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT ALL 34 DIV - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL 34 / - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + 62 * - COUNT( * ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-2069
SELECT + 62 * - COUNT ( * ) FROM tab0
----
-186

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - 94 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT DISTINCT - MIN( DISTINCT + 82 ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT - MIN ( DISTINCT + 82 ) AS col0 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT - 28 + 5 + 77 + + + CAST( - + col1 AS SIGNED ) FROM tab1
----
40
49
7

skipif mysql # not compatible
query I rowsort label-2072
SELECT - 28 + 5 + 77 + + + CAST ( - + col1 AS INTEGER ) FROM tab1
----
40
49
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 63 * + - col1 BETWEEN + + 68 AND + 11 * + col0 / - 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + - SUM( DISTINCT - col1 ) + - 12 + + 63 AS col0 FROM tab0 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-2076
SELECT + - SUM ( DISTINCT - col1 ) + - 12 + + 63 AS col0 FROM tab0 AS cor0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL COUNT( * ) * + 34 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL COUNT ( * ) * + 34 FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2078
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col0 ) - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 * col1 + - ( 32 ) AS col2 FROM tab2 AS cor0
----
2569
4457
5897

query I rowsort
SELECT ALL - col1 * 12 FROM tab2 AS cor0
----
-612
-804
-924

query III rowsort
SELECT * FROM tab1 WHERE - 0 / 59 = - col2
----

query III rowsort
SELECT * FROM tab1 WHERE + 61 BETWEEN 99 AND NULL
----

query I rowsort
SELECT DISTINCT 14 + - + 45 FROM tab1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * + col0 + col2 + + col2 - + 78 * - - 58 + - + col2 AS col1 FROM tab1 cor0
----
1732
468
550

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - 25 * + - ( + 54 ) + MIN( col2 ) AS col2 FROM tab2 AS cor0
----
1373

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - 25 * + - ( + 54 ) + MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
1373

query I rowsort
SELECT DISTINCT - + 95 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-95

query I rowsort
SELECT DISTINCT + 14 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 84 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT ALL - 55 DIV + 63 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - 55 / + 63 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT DISTINCT + SUM( DISTINCT 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + SUM ( DISTINCT 2 ) FROM tab2
----
2

query I rowsort
SELECT 77 * + - 36 FROM tab2
----
-2772
-2772
-2772

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 < - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL MAX( + 42 ) col0 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT ALL MAX ( + 42 ) col0 FROM tab2
----
42

query II rowsort
SELECT DISTINCT - 82, col0 FROM tab2
----
-82
46
-82
64
-82
75

query II rowsort
SELECT ALL 76, + col2 FROM tab2 cor0
----
76
23
76
40
76
58

query I rowsort
SELECT - 53 * + ( col1 ) FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL COUNT( * ) * COUNT( DISTINCT 79 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT 79 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + col0 * - + 42 FROM tab2
----
-1932
-2688
-3150

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + - 13 + + - 19 IS NOT NULL
----

query I rowsort
SELECT ALL 25 * - + col0 FROM tab0
----
-2175
-2425
-375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 AS col0, 29 col1 FROM tab1 AS cor0
----
90
29
90
29
90
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 58 col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT + COUNT( ALL + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT + COUNT ( ALL + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 col2 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + - 48 + col0 AS col0 FROM tab0 AS cor0
----
-33
39
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT 84 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2108
SELECT 84 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2109
SELECT DISTINCT + + col1, 81 + + - col0 - ( col1 ) DIV + - col2 FROM tab0 AS cor0
----
1
-16
21
-4
81
67

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT + + col1, 81 + + - col0 - ( col1 ) / + - col2 FROM tab0 AS cor0
----
1
-16
21
-4
81
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + 23 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + 23 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + COUNT( * ) + + 31 AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-2111
SELECT + COUNT ( * ) + + 31 AS col2 FROM tab2
----
34

query I rowsort
SELECT 58 + - + col0 AS col2 FROM tab2
----
-17
-6
12

query II rowsort
SELECT ALL + 61 * + - col2, col1 FROM tab2
----
-1403
51
-2440
77
-3538
67

query I rowsort
SELECT ( col1 ) + - 67 * + 63 AS col2 FROM tab0
----
-4140
-4200
-4220

query I rowsort
SELECT 83 + - col1 FROM tab2
----
16
32
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT 6 * 67 * + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - ( + - ( + - COUNT( * ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT 6 * 67 * + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - ( + - ( + - COUNT ( * ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT ALL - COUNT( * ) AS col0, MIN( DISTINCT + 66 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2117
SELECT ALL - COUNT ( * ) AS col0, MIN ( DISTINCT + 66 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT - CAST( + col2 AS SIGNED ) - - col1 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-2118
SELECT - CAST ( + col2 AS INTEGER ) - - col1 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT 88 - 5 FROM tab0 cor0
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) + + MIN( - 59 ) - AVG ( - + col2 ) * - + 61 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + MIN ( - 59 ) - AVG ( - + col2 ) * - + 61 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 - 68 + - col0 col0 FROM tab2
----
-108
-126
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL - COUNT( * ) + + 61 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - COUNT ( * ) + + 61 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 41 * + + col2 col2 FROM tab1
----
2414
2741
3922

query I rowsort
SELECT DISTINCT + 69 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
69

query I rowsort
SELECT DISTINCT + ( 5 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT + + SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT + + SUM ( - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 12 * + col0 AS col0 FROM tab1 AS cor0
----
-1020
-1092
-612

query I rowsort
SELECT DISTINCT + ( 30 ) * + + col0 * - col2 FROM tab0 cor0
----
-21150
-26100
-288090

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT SUM( ALL - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

query I rowsort
SELECT 10 * - + 78 AS col1 FROM tab1 AS cor0
----
-780
-780
-780

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT + COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2132
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT SUM( DISTINCT - col1 ) * COUNT( * ) - + 9 AS col1 FROM tab2 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-2133
SELECT SUM ( DISTINCT - col1 ) * COUNT ( * ) - + 9 AS col1 FROM tab2 AS cor0
----
-594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 11 col1 FROM tab0
----
1067
165
957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2135
SELECT DISTINCT + MAX( + col1 ) DIV 29 AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + MAX ( + col1 ) / 29 AS col2 FROM tab2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL - - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT + 40 * + 9 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + 40 * + 9 = NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND - col2 * + - col0 + 9
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 5 + + - 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - SUM( + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2139
SELECT - SUM ( + - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2140
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * + col0 - + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-2140
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * + col0 - + CAST ( NULL AS INTEGER ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL < - col2 * - col1 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * - col2 + - 50 col2 FROM tab2
----
1486
3239
433

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT + ( col0 ) DIV + + 81 + - col0 + + ( - + ( + col0 ) ) + - col1 * col0 FROM tab0 AS cor0
----
-1245
-2000
-290

skipif mysql # not compatible
query I rowsort label-2143
SELECT + ( col0 ) / + + 81 + - col0 + + ( - + ( + col0 ) ) + - col1 * col0 FROM tab0 AS cor0
----
-1245
-2000
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT DISTINCT - - col2 + - CAST( NULL AS SIGNED ) + + - 65 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT - - col2 + - CAST ( NULL AS INTEGER ) + + - 65 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT - MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col2 FROM tab1
----
-72
-72
-72

query II rowsort
SELECT ALL - col0 + + - col1 * - ( + col2 ) AS col2, col2 * 28 AS col0 FROM tab1
----
1293
2688
210
1652
3105
1904

query I rowsort
SELECT ALL 57 * + col2 - + + 30 AS col2 FROM tab0
----
2649
540
5613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT + 2 + CAST( NULL AS SIGNED ) + ( + + col2 ) + + ( + 33 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT + 2 + CAST ( NULL AS INTEGER ) + ( + + col2 ) + + ( + 33 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2151
SELECT - col0 * + col0 + - col0 AS col0, col2 DIV - 75 AS col2 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-2652
-1
-7310
0
-8372
0

skipif mysql # not compatible
query II rowsort label-2151
SELECT - col0 * + col0 + - col0 AS col0, col2 / - 75 AS col2 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-2652
-1
-7310
0
-8372
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2152
SELECT ALL - + ( + 82 ) AS col1, 94 DIV + + MAX( ALL + ( + col0 ) ) FROM tab2 cor0
----
-82
1

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL - + ( + 82 ) AS col1, 94 / + + MAX ( ALL + ( + col0 ) ) FROM tab2 cor0
----
-82
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col2 FROM tab2 WHERE - col0 < + col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2154
SELECT + ( SUM( ALL - + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT + ( SUM ( ALL - + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT + + 99 AS col0 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + col2 * ( + + 64 ) AS col2 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT DISTINCT + + 56 AS col0 FROM tab0 cor0
----
56

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + 60 <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 5 * - col2 col1 FROM tab2 AS cor0
----
-12800
-21750
-5290

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT DISTINCT + ( - - col1 ) DIV + ( + col2 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2160
SELECT DISTINCT + ( - - col1 ) / + ( + col2 ) col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL - ( - MAX( - 98 ) ) * + CAST( NULL AS SIGNED ) * 9 * - - 42 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - ( - MAX ( - 98 ) ) * + CAST ( NULL AS INTEGER ) * 9 * - - 42 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col1 FROM tab0 WHERE NOT NULL BETWEEN - 37 AND NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND 6 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 10 ) BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL ( - 61 ) * 49 FROM tab2
----
-2989
-2989
-2989

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + col0 NOT IN ( 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT DISTINCT + col0 + col2 col1 FROM tab1 WHERE NOT col1 * - col1 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2167
SELECT DISTINCT + col0 + col2 col1 FROM tab1 WHERE NOT col1 * - col1 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2168
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( - 2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2168
SELECT ALL * FROM tab0 WHERE NOT NULL >= ( - 2 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - MAX( 64 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT - MAX ( 64 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - col1 * 96 FROM tab2 WHERE NOT ( col1 ) <= 2 * col2
----
-4896

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab1 WHERE NOT ( + col1 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT 45 * + COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-2173
SELECT 45 * + COUNT ( * ) FROM tab1
----
135

query I rowsort
SELECT - ( 65 ) * col2 + - col0 * col0 AS col2 FROM tab2
----
-3611
-6696
-9395

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT IN ( 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT 75 * - MIN( + col0 ) FROM tab0
----
-1125

skipif mysql # not compatible
query I rowsort label-2176
SELECT 75 * - MIN ( + col0 ) FROM tab0
----
-1125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2177
SELECT 12 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT 12 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT CAST( - 6 AS SIGNED ) * col2 AS col0 FROM tab2
----
-138
-240
-348

skipif mysql # not compatible
query I rowsort label-2178
SELECT CAST ( - 6 AS INTEGER ) * col2 AS col0 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT col1 + 32 * + col0 FROM tab2 WHERE col0 / col0 <= ( + col2 )
----
1523
2125
2467

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * col1 + - 35 ) > - 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT - COUNT( col0 ) - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2181
SELECT - COUNT ( col0 ) - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL 92 * col0 FROM tab1 WHERE NOT 36 + col2 >= - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT - CAST( col0 AS SIGNED ) - col2 AS col2 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-2183
SELECT - CAST ( col0 AS INTEGER ) - col2 AS col2 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT IN ( - col1 * - 49 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT ALL col1 DIV 6 col0 FROM tab1
----
0
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2185
SELECT ALL col1 / 6 col0 FROM tab1
----
0
2
7

query I rowsort
SELECT + col1 - + 99 FROM tab1 cor0
----
-52
-85
-94

query III rowsort
SELECT * FROM tab2 cor0 WHERE 1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 7 FROM tab2 WHERE 99 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT DISTINCT + COUNT( * ) * ( ( + 17 ) + COUNT( * ) DIV 81 ) col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT DISTINCT + COUNT ( * ) * ( ( + 17 ) + COUNT ( * ) / 81 ) col2 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL - 0 - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col2 col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL col2 * 16 AS col0 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT DISTINCT + col1 * + 94 AS col1 FROM tab0 AS cor0
----
1974
7614
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - MIN( - col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT - MIN ( - col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 * - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - 47 * MAX( - 77 + + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2196
SELECT - 47 * MAX ( - 77 + + col1 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT COUNT( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * 72 NOT BETWEEN NULL AND ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * 72 NOT BETWEEN NULL AND ( - col1 )
----
0

query I rowsort
SELECT + - ( - 29 ) FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - col0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT - COUNT( ALL + 27 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2201
SELECT - COUNT ( ALL + 27 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT + + 17 * COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + + 17 * COUNT ( * ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col2 * 6 AS col1 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT 89 AS col2 FROM tab2 WHERE NOT - col2 - + 8 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT + CAST( - - 77 AS SIGNED ) * col2 FROM tab0
----
3619
7623
770

skipif mysql # not compatible
query I rowsort label-2205
SELECT + CAST ( - - 77 AS INTEGER ) * col2 FROM tab0
----
3619
7623
770

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 97 * + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 36 * col2 * - 29 AS col2 FROM tab0
----
-103356
-10440
-49068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT + CAST( + - 23 AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-2209
SELECT + CAST ( + - 23 AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
-69

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT 66 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN 31 AND col2
----

query I rowsort
SELECT DISTINCT 95 * + col0 AS col0 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + CAST( + col2 AS SIGNED ) IS NULL AND col2 + 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + CAST ( + col2 AS INTEGER ) IS NULL AND col2 + 68 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * col1 + - ( 56 ) + col1 FROM tab1 AS cor0
----
-2218
-238
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL COUNT( ALL 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL COUNT ( ALL 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - + ( - MIN( ALL 64 ) ) + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - + ( - MIN ( ALL 64 ) ) + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + 82 NOT IN ( col2 / 11 )
----

query I rowsort
SELECT col0 * - - 41 FROM tab0 AS cor0
----
3567
3977
615

query I rowsort
SELECT DISTINCT + col2 * + 61 AS col0 FROM tab2 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - + col2
----

query II rowsort
SELECT DISTINCT - 46 AS col1, 42 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-46
1886
-46
2624
-46
3075

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT + + col2 DIV + + col1 AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-2222
SELECT + + col2 / + + col1 AS col0 FROM tab0 AS cor0
----
0
0
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 + + + ( + ( col1 ) ) * - col1 ) BETWEEN ( ( + col0 ) + 72 ) AND ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT DISTINCT + col1 DIV + + col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + col1 / + + col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT + col1 DIV + 64 + - col1 + - 15 * col1 AS col2 FROM tab0 AS cor0
----
-1295
-16
-336

skipif mysql # not compatible
query I rowsort label-2225
SELECT + col1 / + 64 + - col1 + - 15 * col1 AS col2 FROM tab0 AS cor0
----
-1295
-16
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT ALL + + col2 DIV + 47 AS col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + + col2 / + 47 AS col2 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2227
SELECT DISTINCT - col2, 28 + - ( + 37 ) + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-10
-9
-47
-9
-99
90

skipif mysql # not compatible
query II rowsort label-2227
SELECT DISTINCT - col2, 28 + - ( + 37 ) + col2 / + col1 AS col0 FROM tab0 AS cor0
----
-10
-9
-47
-9
-99
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT CAST( - MIN( + 68 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2228
SELECT CAST ( - MIN ( + 68 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 / 49 ) <> ( - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2230
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL ( - MAX( ( - col2 ) ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL ( - MAX ( ( - col2 ) ) ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE 6 IS NULL AND NOT ( NULL ) IN ( + col2 + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - MIN( ALL + + 71 ) - COUNT( * ) * - + COUNT( * ) * 58 AS col0 FROM tab1
----
451

skipif mysql # not compatible
query I rowsort label-2233
SELECT - MIN ( ALL + + 71 ) - COUNT ( * ) * - + COUNT ( * ) * 58 AS col0 FROM tab1
----
451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT ALL CAST( NULL AS SIGNED ) + + col2 * + 6 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 * + 6 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL ( - + 18 ) + SUM( ALL + + col1 ) AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL ( - + 18 ) + SUM ( ALL + + col1 ) AS col0 FROM tab0
----
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT + - MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + - MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab2 AS cor0 WHERE ( NOT 54 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( + - 63 ) col0 FROM tab0
----
-1323
-5103
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 28 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2242
SELECT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col2 NOT IN ( + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 + col0 ) NOT BETWEEN + 0 - - + 16 * - 8 AND 28
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - - col2 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * + - col0 col1 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT 25 + 13 + col2 * - + col0 * - col2 FROM tab0
----
33173
8738
950735

query I rowsort
SELECT ALL - 20 * col0 AS col1 FROM tab2 WHERE NOT - - 54 IN ( col2 )
----
-1280
-1500
-920

query I rowsort
SELECT + ( + col0 ) + - - 28 FROM tab2
----
103
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT COUNT( * ) * - - 92 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT COUNT ( * ) * - - 92 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
0

query I rowsort
SELECT ALL + + 56 / col1 * 67 AS col2 FROM tab2 WHERE NOT - + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) * - 47 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) * - 47 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 97 + - col2 * - 45 FROM tab1
----
2752
3157
4417

query I rowsort
SELECT col0 FROM tab1 WHERE - 72 * + - 29 = ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT COUNT( * ) FROM tab0 WHERE col1 * + col0 * - - 59 / col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT COUNT ( * ) FROM tab0 WHERE col1 * + col0 * - - 59 / col0 <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 22 >= - 22 + + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT + + 42 AS col1, 4 + COUNT( * ) FROM tab0 AS cor0
----
42
7

skipif mysql # not compatible
query II rowsort label-2258
SELECT + + 42 AS col1, 4 + COUNT ( * ) FROM tab0 AS cor0
----
42
7

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2260
SELECT ALL * FROM tab0 AS cor0 WHERE ( 17 * + CAST( NULL AS SIGNED ) ) <= + col2 * col2
----

skipif mysql # not compatible
query III rowsort label-2260
SELECT ALL * FROM tab0 AS cor0 WHERE ( 17 * + CAST ( NULL AS INTEGER ) ) <= + col2 * col2
----

query I rowsort
SELECT ALL - col0 + - 51 * col2 * - col0 FROM tab2
----
130496
221775
53912

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT COUNT( * ) - + + 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2262
SELECT COUNT ( * ) - + + 97 FROM tab1
----
-94

query I rowsort
SELECT DISTINCT - - 66 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / + - 78 NOT IN ( - 79, - 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2265
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) / - col1 + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) / - col1 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( col2 ) + + 57 + col1 AS col2 FROM tab1 AS cor0
----
121
167
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT + COUNT( ALL + 17 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT DISTINCT + COUNT ( ALL + 17 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT + col0 DIV + + col0 + - col1 FROM tab1 cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-2268
SELECT + col0 / + + col0 + - col1 FROM tab1 cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL 85 + - - SUM( DISTINCT col1 ) FROM tab0
----
188

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL 85 + - - SUM ( DISTINCT col1 ) FROM tab0
----
188

query II rowsort
SELECT + col2 AS col0, 71 AS col0 FROM tab1
----
59
71
68
71
96
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2271
SELECT + COUNT( * ), 76 AS col0 FROM tab1
----
3
76

skipif mysql # not compatible
query II rowsort label-2271
SELECT + COUNT ( * ), 76 AS col0 FROM tab1
----
3
76

query I rowsort
SELECT ALL + ( - ( col1 ) ) + 39 AS col2 FROM tab2
----
-12
-28
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT col1 DIV - + 76 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT col1 / - + 76 AS col0 FROM tab1
----
0

query I rowsort
SELECT - col2 - + col2 * - - col2 FROM tab0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - + 22 + + 47 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 71 - - col2 AND NULL
----

query I rowsort
SELECT + col0 * 21 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
151810
173992
54672

query I rowsort
SELECT 8 * - 5 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + + 45 - + 57 + - 51 * - ( - - col1 ) * + col2 * col1 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT + 96 DIV - 13 AS col1 FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-2279
SELECT + 96 / - 13 AS col1 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 col0 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT + col1 + - col1 * + - col0 AS col2 FROM tab1
----
430
4324
728

query I rowsort
SELECT ALL 13 FROM tab0 WHERE NOT - + 16 * + + 49 + - 18 IN ( 15 )
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT 77 * 64 * - SUM( ALL 50 ) FROM tab2
----
-739200

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT 77 * 64 * - SUM ( ALL 50 ) FROM tab2
----
-739200

query I rowsort
SELECT - 16 * - col1 FROM tab0
----
1296
16
336

query I rowsort
SELECT col0 + col0 * + 38 * 83 AS col2 FROM tab1 cor0 WHERE NULL < ( ( 35 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2287
SELECT + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT - + col1 * CAST( - col0 AS SIGNED ) * + col0 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT - + col1 * CAST ( - col0 AS INTEGER ) * + col0 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - + 86 FROM tab2 cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2290
SELECT DISTINCT 21, - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
21
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2290
SELECT DISTINCT 21, - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
21
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * ( 21 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT ALL + - col0 - - 98 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + - col0 - - 98 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT + 89 - + - col2 DIV - + 33 - - col0 FROM tab2 AS cor0
----
135
152
163

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 89 - + - col2 / - + 33 - - col0 FROM tab2 AS cor0
----
135
152
163

query II rowsort
SELECT col2, 14 + 50 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2295
SELECT DISTINCT + COUNT( * ) AS col0, - 85 FROM tab2 AS cor0
----
3
-85

skipif mysql # not compatible
query II rowsort label-2295
SELECT DISTINCT + COUNT ( * ) AS col0, - 85 FROM tab2 AS cor0
----
3
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 < + col1
----
75

skipif mysql # not compatible
query I rowsort label-2296
SELECT + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 < + col1
----
75

query I rowsort
SELECT DISTINCT 96 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( ( + col2 + - + ( + + 52 ) * - col0 * + col1 ) IS NULL )
----
1
21
81

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col2 + + - 35 IN ( + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL SUM( - + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL SUM ( - + col0 ) AS col0 FROM tab0
----
-199

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT ALL - col0 DIV - + col2 AS col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - col0 / - + col2 AS col0 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 < col0
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 < col0
----
0

query I rowsort
SELECT - col2 * - + col1 AS col2 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT NULL >= CAST( - 68 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2305
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( - 68 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 63 * + + col0 * + col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT - ( 77 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - col0 * - col1 + + + 97 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 67 + + col1 * + - col0 + col2 AS col2 FROM tab2 cor0
----
-2256
-4821
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT 85 + + COUNT( * ) FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-2311
SELECT 85 + + COUNT ( * ) FROM tab1 cor0
----
88

query I rowsort
SELECT + 72 + col2 * + - ( - col0 ) + - col1 * + col0 FROM tab2 AS cor0
----
-1216
-2296
-603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2313
SELECT - col0 + + col2 AS col1, - CAST( - + 20 AS SIGNED ) DIV - + 34 FROM tab2
----
-17
0
-23
0
-24
0

skipif mysql # not compatible
query II rowsort label-2313
SELECT - col0 + + col2 AS col1, - CAST ( - + 20 AS INTEGER ) / - + 34 FROM tab2
----
-17
0
-23
0
-24
0

query II rowsort
SELECT + 93 + - col1 AS col0, col2 + col1 FROM tab0
----
12
128
72
31
92
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col0 * - 83 + - - col2 col0 FROM tab2
----
3892
5429
6350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2316
SELECT ALL - 45 * + col2 + + CAST( + 88 AS SIGNED ) - - col2 DIV 94 AS col2 FROM tab2 AS cor0
----
-1712
-2522
-947

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - 45 * + col2 + + CAST ( + 88 AS INTEGER ) - - col2 / 94 AS col2 FROM tab2 AS cor0
----
-1712
-2522
-947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT DISTINCT + 56 * 59 - CAST( 66 AS SIGNED ) + COUNT( + + col0 ) * + COUNT( * ) FROM tab0
----
3247

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + 56 * 59 - CAST ( 66 AS INTEGER ) + COUNT ( + + col0 ) * + COUNT ( * ) FROM tab0
----
3247

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( - col2 ) NOT BETWEEN ( NULL ) AND col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 16, - col2 * - col0, 96, + 69 * + col0 )
----

query I rowsort
SELECT - ( 8 ) * - col1 + - ( + 63 ) AS col1 FROM tab1
----
-23
313
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 = - 29
----

query I rowsort
SELECT - col0 * + + 43 FROM tab2 AS cor0
----
-1978
-2752
-3225

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = - col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2324
SELECT DISTINCT + - col0 * + col0 + + ( + CAST( NULL AS SIGNED ) ) / + col2, + 43 col2 FROM tab2 AS cor0
----
NULL
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2324
SELECT DISTINCT + - col0 * + col0 + + ( + CAST ( NULL AS INTEGER ) ) / + col2, + 43 col2 FROM tab2 AS cor0
----
NULL
43

query I rowsort
SELECT ALL col2 * - 56 FROM tab0 cor0 WHERE NOT ( NULL ) > col0
----

query I rowsort
SELECT DISTINCT + 20 * - 57 * + ( - col2 ) FROM tab0 AS cor0
----
112860
11400
53580

query II rowsort
SELECT ALL - + col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT DISTINCT 78 * - 37 * - col1 AS col2 FROM tab2
----
147186
193362
222222

query II rowsort
SELECT DISTINCT col2 AS col1, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2330
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 AND + CAST( NULL AS SIGNED ) - + - col1
----

skipif mysql # not compatible
query III rowsort label-2330
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 AND + CAST ( NULL AS INTEGER ) - + - col1
----

query II rowsort
SELECT DISTINCT + col1, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT col0 * - - 78 AS col2 FROM tab0
----
1170
6786
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT - 8 DIV - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - 8 / - col2 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2334
SELECT ALL col2 AS col0, col2 + col1 DIV 19 AS col2 FROM tab1
----
59
59
68
70
96
96

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL col2 AS col0, col2 + col1 / 19 AS col2 FROM tab1
----
59
59
68
70
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2335
SELECT - col0, + CAST( - - 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
53
-64
53
-75
53

skipif mysql # not compatible
query II rowsort label-2335
SELECT - col0, + CAST ( - - 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
53
-64
53
-75
53

query I rowsort
SELECT DISTINCT + 99 * - - 81 AS col1 FROM tab1 AS cor0
----
8019

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - - col1 ) + - - 91 IS NOT NULL
----

query I rowsort
SELECT ALL - - 92 * 32 + - col1 FROM tab0 AS cor0
----
2863
2923
2943

query I rowsort
SELECT DISTINCT - 90 * + col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

query II rowsort
SELECT DISTINCT + col0 * col2 AS col0, + col2 FROM tab2 cor0
----
1058
23
2560
40
4350
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + MAX( DISTINCT 1 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2341
SELECT + MAX ( DISTINCT 1 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT + col0 DIV col1 * col1 + - col0 * col1 AS col0 FROM tab0 cor0
----
-1215
-1743
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT + col0 / col1 * col1 + - col0 * col1 AS col0 FROM tab0 cor0
----
-1215
-1743
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT MIN( + - 38 ) FROM tab1 AS cor0 WHERE ( 58 ) IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-2343
SELECT MIN ( + - 38 ) FROM tab1 AS cor0 WHERE ( 58 ) IS NOT NULL
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 63 + - col1 col1 FROM tab2 cor0
----
-114
-130
-140

query I rowsort
SELECT - 27 FROM tab1 AS cor0 WHERE 90 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT - COUNT( * ) + + MAX( ALL + col2 ) FROM tab1 AS cor0 WHERE + 53 BETWEEN + col2 + - 35 AND - - col2
----
66

skipif mysql # not compatible
query I rowsort label-2346
SELECT - COUNT ( * ) + + MAX ( ALL + col2 ) FROM tab1 AS cor0 WHERE + 53 BETWEEN + col2 + - 35 AND - - col2
----
66

query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab1 WHERE + 10 * col2 > NULL
----

query I rowsort
SELECT - 46 * + + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-1058
-1840
-2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT 17 * col0 * - col0 * + col1 * col1 FROM tab2
----
-412848128
-429260625
-93563172

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - COUNT( DISTINCT - 13 ) - - + COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2351
SELECT - COUNT ( DISTINCT - 13 ) - - + COUNT ( * ) FROM tab0
----
2

query I rowsort
SELECT - 38 - - col1 AS col2 FROM tab0
----
-17
-37
43

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col0 FROM tab1 WHERE NOT NULL = - col2
----

query II rowsort
SELECT - col1 + 68 * + 77 AS col2, + col2 + + - 90 FROM tab2 AS cor0
----
5159
-50
5169
-32
5185
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + + SUM( - + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2355
SELECT + + SUM ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + col2 * - + ( 18 ) FROM tab1 AS cor0 WHERE NOT col0 + + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT DISTINCT CAST( + 62 AS SIGNED ) * + + col1 FROM tab1 AS cor0
----
2914
310
868

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT CAST ( + 62 AS INTEGER ) * + + col1 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2358
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2358
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + col1 AS INTEGER ) <> NULL
----

query II rowsort
SELECT + 75 * - ( - col0 ) * col0 * + col1 AS col0, col0 FROM tab0
----
11921175
87
1366875
15
705675
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2360
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - CAST( NULL AS SIGNED ) * - col2 / + col0 > - - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2360
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - CAST ( NULL AS INTEGER ) * - col2 / + col0 > - - ( col0 )
----

query I rowsort
SELECT + col0 * + 38 * - col2 * col1 AS col0 FROM tab2
----
-11075100
-2050404
-7490560

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT + col2 DIV ( col0 ) * col1 AS col0 FROM tab0
----
0
1
243

skipif mysql # not compatible
query I rowsort label-2362
SELECT + col2 / ( col0 ) * col1 AS col0 FROM tab0
----
0
1
243

query I rowsort
SELECT - 41 * col2 AS col0 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT + CAST( NULL AS SIGNED ) * + col1 + + col2 / - col2 AS col0 FROM tab0 WHERE NOT - col2 >= - col1 + col0
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2365
SELECT + CAST ( NULL AS INTEGER ) * + col1 + + col2 / - col2 AS col0 FROM tab0 WHERE NOT - col2 >= - col1 + col0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 71 col0 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + col2 * - CAST( NULL AS SIGNED ) * 28 * col1
----

skipif mysql # not compatible
query I rowsort label-2367
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + col2 * - CAST ( NULL AS INTEGER ) * 28 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT + + 25 DIV ( + + col1 ) * + + col2 * - 88 AS col0 FROM tab0 AS cor0
----
-217800
-880
0

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + + 25 / ( + + col1 ) * + + col2 * - 88 AS col0 FROM tab0 AS cor0
----
-217800
-880
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT - AVG ( - col2 ) * - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT - AVG ( - col2 ) * - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + 67 col2 FROM tab0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + SUM( + - 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-801

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + SUM ( + - 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-801

query I rowsort
SELECT DISTINCT col1 + col2 + + - col2 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, - 4 AS col2 FROM tab0
----
1
-4
21
-4
81
-4

query I rowsort
SELECT DISTINCT - - ( - - 23 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
23

query I rowsort
SELECT DISTINCT 72 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2376
SELECT CAST( NULL AS DECIMAL ) / - + 97 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT CAST ( NULL AS REAL ) / - + 97 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL MAX( + 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL MAX ( + 42 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT ALL - COUNT( * ) AS col1, 37 AS col0 FROM tab0 AS cor0
----
-3
37

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL - COUNT ( * ) AS col1, 37 AS col0 FROM tab0 AS cor0
----
-3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT COUNT( * ) * + 45 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT COUNT ( * ) * + 45 FROM tab0 AS cor0
----
135

query I rowsort
SELECT - 42 + col1 AS col2 FROM tab0 AS cor0
----
-21
-41
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT + - col2 DIV - - col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT + - col2 / - - col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 9 + + + col1 AS col0 FROM tab1 AS cor0
----
-4
38
5

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT - 58 + + - SUM( DISTINCT + col1 ) * - COUNT( * ) AS col0 FROM tab2
----
527

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - 58 + + - SUM ( DISTINCT + col1 ) * - COUNT ( * ) AS col0 FROM tab2
----
527

query III rowsort
SELECT * FROM tab2 WHERE - - 12 <> ( 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 * - + col2 AS col0, - col2 FROM tab0
----
-100
-10
-2209
-47
-9801
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT MIN( DISTINCT 22 ) - - COUNT( * ) AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT MIN ( DISTINCT 22 ) - - COUNT ( * ) AS col2 FROM tab0
----
25

query I rowsort
SELECT ( - 90 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 68 - 51 AS col0, + 68 FROM tab0 AS cor0
----
17
68
17
68
17
68

query I rowsort
SELECT - + col0 * + + 29 AS col2 FROM tab2 AS cor0 WHERE ( NULL >= - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT + 19 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), - 94, - - CAST( NULL AS SIGNED ), + + 10, + 21 )
----

skipif mysql # not compatible
query I rowsort label-2393
SELECT + 19 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), - 94, - - CAST ( NULL AS INTEGER ), + + 10, + 21 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2395
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + + 79 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2395
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + + 79 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 33 AS col1 FROM tab0 cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL - MAX( ALL + 12 ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - MAX ( ALL + 12 ) AS col0 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL + MAX( ALL - + 51 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + MAX ( ALL - + 51 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - COUNT( 0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - COUNT ( 0 ) FROM tab1
----
-3

query I rowsort
SELECT - 50 AS col1 FROM tab0 WHERE NOT - + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( - ( - col1 ) ) + - + col1 < NULL
----

query I rowsort
SELECT - 52 AS col1 FROM tab1 WHERE NOT col1 IN ( col0, ( - - col0 ) )
----
-52
-52
-52

query I rowsort
SELECT + - 90 FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT + col2 + + + 19 * + - col0 FROM tab0 cor0
----
-1643
-1744
-238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT col1 + col0 + + col0 FROM tab0
----
111
195
195

query I rowsort
SELECT 6 + 33 FROM tab2 WHERE ( - 66 ) BETWEEN + col2 + - + col2 AND NULL
----

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE 91 NOT BETWEEN - col1 / + col0 - - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + COUNT( * ) * 8 + - COUNT( + 47 ) + - - 1 AS col2 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COUNT ( * ) * 8 + - COUNT ( + 47 ) + - - 1 AS col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT - - 32 AS col2 FROM tab2 cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT ALL - + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT ALL 1 DIV - 70 + SUM( DISTINCT - ( ( - 42 ) ) ) AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL 1 / - 70 + SUM ( DISTINCT - ( ( - 42 ) ) ) AS col1 FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 58 col0 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2414
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) / + 91 ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2414
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) / + 91 ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT + COUNT( * ) + - - 55 AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + COUNT ( * ) + - - 55 AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT 47 DIV COUNT( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2417
SELECT 47 / COUNT ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 < NULL )
----

query I rowsort
SELECT ALL + 10 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - + 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - - 57 * + COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2422
SELECT - - 57 * + COUNT ( * ) FROM tab1 AS cor0
----
171

onlyif mysql # DIV for integer division: 
query III rowsort label-2423
SELECT + - 23 AS col2, col0, - col0 DIV - 96 FROM tab0 cor0 WHERE + 36 * - col0 < - col2
----
9 values hashing to 603270eb784fb754d64f46cc388524c1

skipif mysql # not compatible
query III rowsort label-2423
SELECT + - 23 AS col2, col0, - col0 / - 96 FROM tab0 cor0 WHERE + 36 * - col0 < - col2
----
9 values hashing to 603270eb784fb754d64f46cc388524c1

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT ( MAX( DISTINCT ( - col2 ) ) ) + - 20 AS col0 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT ( MAX ( DISTINCT ( - col2 ) ) ) + - 20 AS col0 FROM tab0
----
-30

query I rowsort
SELECT + 53 FROM tab2 WHERE + col2 > 64
----

query III rowsort
SELECT * FROM tab0 WHERE - 25 <> NULL
----

query I rowsort
SELECT ALL - 90 - + 90 * + 55 FROM tab1
----
-5040
-5040
-5040

query I rowsort
SELECT DISTINCT 43 - + col0 + - 9 FROM tab1
----
-17
-51
-57

query I rowsort
SELECT - col0 + + 1 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - COUNT( * ) + 42 * + COUNT( * ) col2 FROM tab1
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2430
SELECT ALL - COUNT ( * ) + 42 * + COUNT ( * ) col2 FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT - 31 + COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-2431
SELECT - 31 + COUNT ( * ) FROM tab2
----
-28

query I rowsort
SELECT ( + - col2 ) + + - col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT - 62 + + + col0 AS col1 FROM tab0
----
-47
25
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( + col0 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * + + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT ALL CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - ( - 32 ) AS col0 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2439
SELECT ALL MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2, + 70 AS col2 FROM tab1 AS cor0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-2439
SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, + 70 AS col2 FROM tab1 AS cor0
----
NULL
70

query I rowsort
SELECT ALL + ( + + 7 ) AS col2 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT MIN( ALL - + 20 ) col0 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2441
SELECT MIN ( ALL - + 20 ) col0 FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT ( + ( + - col2 ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ( + ( + - col2 ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 8 + 23 AS col2 FROM tab2
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT col1 * + col1 + + - col1 + - 78 DIV + 10 FROM tab0
----
-7
413
6473

skipif mysql # not compatible
query I rowsort label-2444
SELECT col1 * + col1 + + - col1 + - 78 / + 10 FROM tab0
----
-7
413
6473

query I rowsort
SELECT ALL 49 * + 43 FROM tab0
----
2107
2107
2107

query I rowsort
SELECT + 39 * + col1 AS col2 FROM tab1 WHERE NOT NULL IN ( + + col0 )
----

query II rowsort
SELECT DISTINCT col1, - 54 + + 48 * col2 AS col2 FROM tab1
----
14
4554
47
3210
5
2778

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 75 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col2 <> + col2 + - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

query I rowsort
SELECT DISTINCT col1 - + + 99 * + - col0 AS col0 FROM tab1
----
5063
8420
9056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 3 ) col0, - col1 AS col2 FROM tab0 AS cor0
----
-3
-1
-3
-21
-3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - + MAX( + + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - + MAX ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT + + 76 DIV - col1 + - 20 AS col2 FROM tab0 cor0
----
-20
-23
-96

skipif mysql # not compatible
query I rowsort label-2454
SELECT + + 76 / - col1 + - 20 AS col2 FROM tab0 cor0
----
-20
-23
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 89 * 35 ) >= col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 25 <= + col1
----
91
47
68

query I rowsort
SELECT DISTINCT - ( - 40 ) + col1 AS col0 FROM tab1 AS cor0
----
45
54
87

query I rowsort
SELECT ALL - 57 - + col2 FROM tab0
----
-104
-156
-67

query I rowsort
SELECT ALL col1 + - 37 AS col2 FROM tab1
----
-23
-32
10

query I rowsort
SELECT ALL - 75 * 82 + + 87 FROM tab0
----
-6063
-6063
-6063

query I rowsort
SELECT ALL - 31 - + col2 FROM tab2
----
-54
-71
-89

query I rowsort
SELECT DISTINCT col0 * + 92 + + 22 * + + col1 FROM tab2
----
5354
7582
8374

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 + + col1 > NULL
----

query I rowsort
SELECT ALL + + col2 * + col0 * + 99 FROM tab1 AS cor0
----
484704
496485
612612

query I rowsort
SELECT DISTINCT + col0 * + + col0 * - 32 * - ( col2 ) FROM tab1
----
13640800
18019456
7990272

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL col0 DIV - - col1 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL col0 / - - col1 AS col1 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT ALL + CAST( NULL AS SIGNED ) + + - COUNT( 98 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL + CAST ( NULL AS INTEGER ) + + - COUNT ( 98 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT - ( - - ( + + 52 ) ) AS col0 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - - SUM( ALL 99 ) AS col0 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - - SUM ( ALL 99 ) AS col0 FROM tab1 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT ALL MIN( ALL - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL MIN ( ALL - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - - ( - 86 ) AS col1 FROM tab0 AS cor0
----
-86

query II rowsort
SELECT col1 AS col0, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT col1 / - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - ( + col2 ) / + ( + col2 ) * - 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT - + col1 DIV col1 DIV + col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - + col1 / col1 / + col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT ( NULL = NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT ( NULL = NULL ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 76 col0 FROM tab0
----
-11
-21
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2477
SELECT ALL - 44 FROM tab2 WHERE CAST( NULL AS DECIMAL ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - 44 FROM tab2 WHERE CAST ( NULL AS REAL ) + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 81 * 48 col0 FROM tab0 AS cor0
----
-182736
-384912
-38880

query I rowsort
SELECT + ( - col1 ) + - 58 FROM tab2 AS cor0
----
-109
-125
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + 28 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2480
SELECT + 28 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + 24 - - + col1 FROM tab2
----
101
75
91

query I rowsort
SELECT DISTINCT + col1 / - + col1 + + - col2 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + - COUNT( ALL + 36 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2484
SELECT + - COUNT ( ALL + 36 ) AS col1 FROM tab0 cor0
----
-3

query II rowsort
SELECT DISTINCT - - 69 AS col0, col1 FROM tab1 AS cor0
----
69
14
69
47
69
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT col0 * col2 * + - col1 / - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT col0 * col2 * + - col1 / - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT + + col2 DIV - 72 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT + + col2 / - 72 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT DISTINCT - - COUNT( * ) AS col0, ( - 70 ) FROM tab1 AS cor0
----
3
-70

skipif mysql # not compatible
query II rowsort label-2488
SELECT DISTINCT - - COUNT ( * ) AS col0, ( - 70 ) FROM tab1 AS cor0
----
3
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + 4 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + 4 AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 37 - + 63, - 45 AS col1 FROM tab1
----
-26
-45

query I rowsort
SELECT col2 * - 0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL + 41 * - SUM( DISTINCT col2 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6396

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + 41 * - SUM ( DISTINCT col2 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6396

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT + COUNT( * ) * + 94 FROM tab1 cor0
----
282

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT + COUNT ( * ) * + 94 FROM tab1 cor0
----
282

query I rowsort
SELECT DISTINCT + 59 + + - 17 FROM tab0 AS cor0
----
42

query I rowsort
SELECT - - col2 * + + col0 * - + 39 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = + col0 / 34
----

query II rowsort
SELECT col2 AS col0, + col2 AS col0 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL + + ( 30 ) + - + 10 * CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + + ( 30 ) + - + 10 * CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 + - + col0 - - - ( - col0 ) AS col2, ( + col1 ) FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT 83 + - col0 + + 29 FROM tab1
----
21
27
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT ALL CAST( - 42 AS SIGNED ) + col2 FROM tab0
----
-32
5
57

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL CAST ( - 42 AS INTEGER ) + col2 FROM tab0
----
-32
5
57

query I rowsort
SELECT DISTINCT ( + - ( col2 ) ) * + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - col2 * - + col1 AS col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 56 BETWEEN - 41 * - - 73 - + - col1 AND col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT ALL + 90 + - CAST( col2 AS SIGNED ) FROM tab0
----
-9
43
80

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + 90 + - CAST ( col2 AS INTEGER ) FROM tab0
----
-9
43
80

query I rowsort
SELECT DISTINCT 4 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - col0 + + - col1 + - - col2 * + col2 FROM tab0 AS cor0
----
-8
2113
9703

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2510
SELECT DISTINCT SUM( + - ( + + CAST( NULL AS DECIMAL ) ) ) * SUM( ALL col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT SUM ( + - ( + + CAST ( NULL AS REAL ) ) ) * SUM ( ALL col1 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 64 AS col0, + col2 + + - 32 FROM tab0
----
64
-22
64
15
64
67

query II rowsort
SELECT DISTINCT col1 AS col1, - 21 * - col2 AS col1 FROM tab0
----
1
2079
21
210
81
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 28 * 69 + - col0 * col1 col1 FROM tab2 cor0
----
-2996
-3093
-414

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2515
SELECT CAST( NULL AS SIGNED ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2515
SELECT CAST ( NULL AS INTEGER ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 / - col0 col1, + col1 * - col0 + - 68 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

query I rowsort
SELECT ALL + ( - - 4 ) * + 43 FROM tab2
----
172
172
172

onlyif mysql # DIV for integer division: 
query II rowsort label-2519
SELECT DISTINCT - col2 DIV col0 AS col1, + col2 FROM tab1
----
-1
96
0
59
0
68

skipif mysql # not compatible
query II rowsort label-2519
SELECT DISTINCT - col2 / col0 AS col1, + col2 FROM tab1
----
-1
96
0
59
0
68

query I rowsort
SELECT col1 * + - 5 + col2 + - col0 * col1 * 23 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-16396
-9741
-98538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT ALL - 91 * + + CAST( + 32 AS SIGNED ) FROM tab0 AS cor0
----
-2912
-2912
-2912

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 91 * + + CAST ( + 32 AS INTEGER ) FROM tab0 AS cor0
----
-2912
-2912
-2912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 + - 61 col1 FROM tab1 cor0
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT ALL + col2 + col1 DIV + col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + col2 + col1 / + col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT DISTINCT + 94 * - col2, + 75 + + - 29 - - - 54 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - - 74 AS col1 FROM tab2 WHERE col1 / + 74 * + - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL - col2 / - + col0 + - 23 - + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - col2 / - + col0 + - 23 - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT COUNT( DISTINCT - col0 ) * + - 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT COUNT ( DISTINCT - col0 ) * + - 10 FROM tab0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT DISTINCT - col1 DIV + ( - col2 ) FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - col1 / + ( - col2 ) FROM tab2
----
1
2

query I rowsort
SELECT + 72 + + - col0 FROM tab1
----
-13
-19
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 30 + 12 + + ( - 9 ) col1 FROM tab2 AS cor0
----
1203
1743
693

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) NOT BETWEEN + col0 * 16 AND + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + + 64 - - 3 + col1 AS col2 FROM tab2
----
59
72
80

onlyif mysql # DIV for integer division: 
query II rowsort label-2534
SELECT DISTINCT + + col1 DIV - + col1, - 10 AS col2 FROM tab2 AS cor0
----
-1
-10

skipif mysql # not compatible
query II rowsort label-2534
SELECT DISTINCT + + col1 / - + col1, - 10 AS col2 FROM tab2 AS cor0
----
-1
-10

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT DISTINCT CAST( + 51 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - 5 BETWEEN NULL AND 83
----

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT CAST ( + 51 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - 5 BETWEEN NULL AND 83
----

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col0 AND NULL
----
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT - - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - - 24 FROM tab0 AS cor0
----
1128
2376
240

query I rowsort
SELECT ALL ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT ( ( + MAX( ALL + col2 ) ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT ( ( + MAX ( ALL + col2 ) ) ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - ( - SUM( DISTINCT + col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2543
SELECT - ( - SUM ( DISTINCT + col1 ) ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT MAX( ALL - 22 ) AS col2 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-2544
SELECT MAX ( ALL - 22 ) AS col2 FROM tab0
----
-22

query I rowsort
SELECT DISTINCT col2 * + col2 * - col1 * - col2 FROM tab1 AS cor0
----
1026895
12386304
14778304

query I rowsort
SELECT ALL - + col0 + - col0 * + col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT DISTINCT + COUNT( * ) AS col1, 1 AS col2 FROM tab0
----
3
1

skipif mysql # not compatible
query II rowsort label-2547
SELECT DISTINCT + COUNT ( * ) AS col1, 1 AS col2 FROM tab0
----
3
1

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE - col0 + + + col2 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab0 cor0 WHERE + ( 37 ) IS NOT NULL
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT - MAX( 32 ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - MAX ( 32 ) AS col0 FROM tab0 AS cor0
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2551
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NULL = col0 * - col2 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NULL = col0 * - col2 * + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT + - CAST( NULL AS SIGNED ) + - MAX( - col1 ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT + - CAST ( NULL AS INTEGER ) + - MAX ( - col1 ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - MIN( - + col1 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2553
SELECT - MIN ( - + col1 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
74

query I rowsort
SELECT - col0 + 92 * + col0 AS col2 FROM tab2 AS cor0
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL + SUM( DISTINCT + col2 ) + 66 AS col2 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + SUM ( DISTINCT + col2 ) + 66 AS col2 FROM tab0
----
222

query I rowsort
SELECT + 82 + + col2 FROM tab1
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT 23 + + COUNT( * ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-2557
SELECT 23 + + COUNT ( * ) AS col0 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + COUNT( * ) + - COUNT( col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT + COUNT ( * ) + - COUNT ( col1 ) AS col2 FROM tab2
----
0

query II rowsort
SELECT - col0 + + + 30 AS col0, col2 FROM tab2
----
-16
23
-34
40
-45
58

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT - COUNT( - col0 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - COUNT ( - col0 ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT + + col0 - 23 FROM tab1 AS cor0
----
28
62
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2563
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) > ( - - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT ( CAST( + - ( col0 ) AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2565
SELECT ( CAST ( + - ( col0 ) AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - - ( - col0 ) * + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + - 12 / - 86 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + - 12 / - 86 > NULL
----
0

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + + 88 IS NULL
----
1
21
81

query I rowsort
SELECT - + col0 * 13 + - col2 AS col1 FROM tab1 AS cor0
----
-1164
-1251
-759

query II rowsort
SELECT + col2 AS col0, 75 AS col2 FROM tab2 AS cor0
----
23
75
40
75
58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT + COUNT( * ) DIV - 53 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2571
SELECT + COUNT ( * ) / - 53 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 1 * + 21 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-2573
SELECT DISTINCT + col2 DIV + ( 11 ) AS col1, - col1 FROM tab0 AS cor0
----
0
-21
4
-81
9
-1

skipif mysql # not compatible
query II rowsort label-2573
SELECT DISTINCT + col2 / + ( 11 ) AS col1, - col1 FROM tab0 AS cor0
----
0
-21
4
-81
9
-1

query I rowsort
SELECT - 68 * 63 * + - col0 FROM tab2
----
197064
274176
321300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2575
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2575
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * + col1 col2 FROM tab0
----
2835
35
735

query III rowsort
SELECT * FROM tab0 WHERE NOT 78 + + col1 BETWEEN - 18 AND + - ( - 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 76 AS col1, + col1 AS col1 FROM tab1
----
76
14
76
47
76
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 col2, - col0 AS col1, + col0 * + + col1 AS col0 FROM tab2
----
9 values hashing to e8cc6b4bf566e14234698382167d85e0

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT ALL + col0 DIV - col2 - + 26 AS col0 FROM tab2 AS cor0
----
-27
-27
-28

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + col0 / - col2 - + 26 AS col0 FROM tab2 AS cor0
----
-27
-27
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 AS col2, col0 + + 25 col0 FROM tab0 AS cor0
----
76
112
76
122
76
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT + 68 * - - COUNT( DISTINCT + - 53 ) col1 FROM tab1 AS cor0 WHERE NOT ( ( + col2 + 80 + - + 77 * - col2 - - + col0 <= 19 / col0 ) )
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2583
SELECT DISTINCT + 68 * - - COUNT ( DISTINCT + - 53 ) col1 FROM tab1 AS cor0 WHERE NOT ( ( + col2 + 80 + - + 77 * - col2 - - + col0 <= 19 / col0 ) )
----
68

query I rowsort
SELECT DISTINCT - + 12 AS col2 FROM tab0 WHERE NOT - 97 <= NULL
----

query I rowsort
SELECT DISTINCT - + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 64 + col1 * - 70 AS col1 FROM tab2 AS cor0
----
-3506
-4626
-5326

query I rowsort
SELECT DISTINCT - col2 / - col0 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN 49 AND + ( - + ( - col1 ) )
----

query I rowsort
SELECT DISTINCT - col1 * ( col1 ) + col2 * col1 FROM tab0 AS cor0
----
-231
-2754
98

query III rowsort
SELECT ALL * FROM tab1 WHERE - 60 NOT BETWEEN ( col1 ) * col1 + + 92 * - col1 * - 68 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 45 - - + 9 + - - 18 AS col1 FROM tab0
----
72

query III rowsort
SELECT ALL * FROM tab2 WHERE - 4 / 89 NOT IN ( + col2 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT COUNT( ALL col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT COUNT ( ALL col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - 33 AS col2, + col0 AS col1 FROM tab1
----
-33
51
-33
85
-33
91

query I rowsort
SELECT col0 * - + 8 + col0 + + col1 FROM tab0 AS cor0
----
-24
-588
-678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL - 83 * - CAST( NULL AS SIGNED ) * - col2 * - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - 83 * - CAST ( NULL AS INTEGER ) * - col2 * - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 24 ) - - ( ( 3 ) ) AS col2 FROM tab0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab1 WHERE NOT col1 + 85 = NULL
----

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT col1 + 85 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= 81
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 74 IS NULL
----

query I rowsort
SELECT ALL col2 + 4 FROM tab1
----
100
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - SUM( - col0 ) FROM tab0 WHERE ( 84 ) NOT IN ( + col2 )
----
199

skipif mysql # not compatible
query I rowsort label-2604
SELECT - SUM ( - col0 ) FROM tab0 WHERE ( 84 ) NOT IN ( + col2 )
----
199

query I rowsort
SELECT + 28 AS col0 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT ALL - 35 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - 35 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT - 41 - MIN( + 6 + 98 ) DIV MIN( col1 ) AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-2607
SELECT - 41 - MIN ( + 6 + 98 ) / MIN ( col1 ) AS col2 FROM tab2
----
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE 39 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - MIN( ALL col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - MIN ( ALL col0 ) AS col2 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + col1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2611
SELECT ( 7 ) * SUM( DISTINCT 86 / ( - col0 ) ) AS col2 FROM tab1 WHERE NOT ( CAST( NULL AS DECIMAL ) ) - - CAST( NULL AS SIGNED ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT ( 7 ) * SUM ( DISTINCT 86 / ( - col0 ) ) AS col2 FROM tab1 WHERE NOT ( CAST ( NULL AS REAL ) ) - - CAST ( NULL AS INTEGER ) IN ( col0 )
----
NULL

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT + 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col2 AND ( ( col1 ) * 19 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT NULL <= ( - col2 + - col1 * + col1 )
----

query I rowsort
SELECT - ( ( col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 * - ( ( - col1 ) ) + col0 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + MAX( ( - col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2617
SELECT + MAX ( ( - col1 ) ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT 26 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT 26 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT ( ( COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT ( ( COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT + col2 * - 80 AS col2 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL - col0 DIV col1 FROM tab0 WHERE + col2 NOT IN ( 0 )
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - col0 / col1 FROM tab0 WHERE + col2 NOT IN ( 0 )
----
-4
-97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT - ( - CAST( - CAST( + 18 AS SIGNED ) AS SIGNED ) ) * - CAST( ( AVG ( ALL + col2 ) ) + + MIN( DISTINCT col2 ) AS SIGNED ) FROM tab2 AS cor0
----
1134

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - ( - CAST ( - CAST ( + 18 AS INTEGER ) AS INTEGER ) ) * - CAST ( ( AVG ( ALL + col2 ) ) + + MIN ( DISTINCT col2 ) AS INTEGER ) FROM tab2 AS cor0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT - COUNT( * ) * + 95 FROM tab0 WHERE ( 15 * col2 ) IS NOT NULL
----
-285

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT - COUNT ( * ) * + 95 FROM tab0 WHERE ( 15 * col2 ) IS NOT NULL
----
-285

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 67 ) NOT BETWEEN NULL AND + 62
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( 95 )
----

query I rowsort
SELECT DISTINCT - - 67 AS col1 FROM tab1 cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2628
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 < CAST( 86 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2628
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 < CAST ( 86 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 45 + - col0 FROM tab2 AS cor0
----
-109
-120
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 76 ) <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 + 68 AS col2 FROM tab1 AS cor0
----
119
153
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2632
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 95 + col0 ) AND CAST( - CAST( + 32 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2632
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - 95 + col0 ) AND CAST ( - CAST ( + 32 AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2 + col1 * 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT col0 + - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT col0 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + col2 FROM tab0 AS cor0 WHERE col1 BETWEEN - col1 * col2 + 15 AND 64
----
196
97

query I rowsort
SELECT + + col0 + 6 AS col1 FROM tab0 AS cor0
----
103
21
93

query I rowsort
SELECT DISTINCT col1 * 51 + - col2 * 13 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-512
-534
1513

query I rowsort
SELECT + 27 FROM tab0 WHERE - 88 * col2 NOT BETWEEN ( NULL ) AND - 41 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + + + col2 col0 FROM tab2
----
104
122
87

query I rowsort
SELECT DISTINCT - col0 + 74 FROM tab0
----
-13
-23
59

query I rowsort
SELECT 23 FROM tab0 WHERE col0 IS NOT NULL
----
23
23
23

query I rowsort
SELECT ALL 14 AS col1 FROM tab0 WHERE - col2 NOT IN ( - col0 )
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT MIN( 45 ) * - COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-2643
SELECT MIN ( 45 ) * - COUNT ( * ) FROM tab0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT - 45 * + col1 FROM tab2 WHERE - CAST( col1 AS SIGNED ) NOT BETWEEN + col2 * 51 AND ( NULL )
----
-2295
-3015
-3465

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT - 45 * + col1 FROM tab2 WHERE - CAST ( col1 AS INTEGER ) NOT BETWEEN + col2 * 51 AND ( NULL )
----
-2295
-3015
-3465

query I rowsort
SELECT ALL col1 + + 19 FROM tab2
----
70
86
96

query III rowsort
SELECT ALL * FROM tab1 WHERE 36 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT DISTINCT + 1 * - col1 + col1 * + col1 AS col2 FROM tab1
----
182
20
2162

query I rowsort
SELECT ALL - 6 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 57 ) - + ( 73 ) AS col0 FROM tab2 AS cor0
----
-130
-130
-130

query I rowsort
SELECT DISTINCT col0 * + 0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 - - 9 ) < - col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT SUM( 65 ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2652
SELECT SUM ( 65 ) FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT 47 + + MAX( ALL 80 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2653
SELECT DISTINCT 47 + + MAX ( ALL 80 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
127

query I rowsort
SELECT - 12 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query II rowsort
SELECT DISTINCT col2, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - COUNT( - 21 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - COUNT ( - 21 ) FROM tab2
----
-3

query I rowsort
SELECT - col1 * ( 64 ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE + col1 <> + 57
----
10
47
99

query I rowsort
SELECT - 57 FROM tab2 AS cor0 WHERE NOT 91 + + col2 * + 91 BETWEEN - col2 / - 57 + 90 * - 57 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT CAST( - + MAX( + ( - ( + 50 ) ) ) AS SIGNED ) col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2660
SELECT CAST ( - + MAX ( + ( - ( + 50 ) ) ) AS INTEGER ) col2 FROM tab2 AS cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL ( + 1 ) * - + CAST( SUM( + 51 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL ( + 1 ) * - + CAST ( SUM ( + 51 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + ( + col0 ) col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - - col2 * col1 * 93 AS col1 FROM tab1 AS cor0
----
124992
27435
297228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT + CAST( 83 AS SIGNED ) * - - col0 AS col2 FROM tab1 cor0
----
4233
7055
7553

skipif mysql # not compatible
query I rowsort label-2664
SELECT + CAST ( 83 AS INTEGER ) * - - col0 AS col2 FROM tab1 cor0
----
4233
7055
7553

query I rowsort
SELECT DISTINCT - 32 * + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
6272
70688
800

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT ALL col1 DIV col0 + + + ( 47 ) AS col1 FROM tab0 AS cor0
----
47
47
52

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL col1 / col0 + + + ( 47 ) AS col1 FROM tab0 AS cor0
----
47
47
52

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT ( col2 ) BETWEEN ( - col0 ) AND ( col1 )
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + MAX( DISTINCT + - 14 ) col0 FROM tab2 cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT ALL + MAX ( DISTINCT + - 14 ) col0 FROM tab2 cor0
----
-14

query I rowsort
SELECT 96 * col2 AS col0 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT + 2 * col1 FROM tab0 WHERE NOT ( - - ( - 17 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - col0 + + col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT + col2 * - col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 25 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT + 13 DIV - - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 13 / - - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL + ( + - COUNT( * ) ) * ( 22 ) + + COUNT( DISTINCT - col1 ) AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + ( + - COUNT ( * ) ) * ( 22 ) + + COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
-63

query I rowsort
SELECT + col2 * 7 * col1 + - 92 / - 88 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 87 + 16 FROM tab1 cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL MAX( + 8 ) + + MAX( + + col2 ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL MAX ( + 8 ) + + MAX ( + + col2 ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT - col1 * CAST( NULL AS SIGNED ) * + col1 * - + 86 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT - col1 * CAST ( NULL AS INTEGER ) * + col1 * - + 86 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL + 97 / col0 + + col1 + 81 * - 44 * col0 + - CAST( NULL AS SIGNED ) * 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + 97 / col0 + + col1 + 81 * - 44 * col0 + - CAST ( NULL AS INTEGER ) * 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 91 AS col2, ( + 54 ) FROM tab2 AS cor0
----
-91
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN + col2 * + 22 * + + col0 AND col1
----

query I rowsort
SELECT - + col1 * + 14 AS col1 FROM tab0 cor0
----
-1134
-14
-294

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 90 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col1 >= - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - - col2 - + col2 AS col2 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT ALL - ( col0 ) - - 99 DIV + + 46 FROM tab2
----
-44
-62
-73

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - ( col0 ) - - 99 / + + 46 FROM tab2
----
-44
-62
-73

query II rowsort
SELECT - col2 + - - col0 AS col1, - 58 AS col1 FROM tab1
----
-45
-58
23
-58
26
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 25 + - col0 NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT ALL 51 AS col1, - ( - 5 ) AS col1 FROM tab1
----
51
5
51
5
51
5

query I rowsort
SELECT + - col1 * - 7 + + col2 AS col2 FROM tab0 cor0
----
106
157
614

query I rowsort
SELECT ALL + 12 * - col1 * + - 99 FROM tab2 AS cor0 WHERE NOT NULL > - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT + CAST( NULL AS SIGNED ) / 83 FROM tab2 WHERE NOT ( + col1 / - 39 * + 13 * - - 98 * + - col1 + - col1 * col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2695
SELECT + CAST ( NULL AS INTEGER ) / 83 FROM tab2 WHERE NOT ( + col1 / - 39 * + 13 * - - 98 * + - col1 + - col1 * col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT MAX( - col0 ), - COUNT( * ) AS col2 FROM tab2
----
-46
-3

skipif mysql # not compatible
query II rowsort label-2697
SELECT MAX ( - col0 ), - COUNT ( * ) AS col2 FROM tab2
----
-46
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab2
----
17
17
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - - 72 ) * + + 27 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2700
SELECT - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1, 1 FROM tab2 cor0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2700
SELECT - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1, 1 FROM tab2 cor0
----
NULL
1

query I rowsort
SELECT ALL - 84 * - col1 - + 22 FROM tab0 AS cor0
----
1742
62
6782

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = 97 * + ( + - 66 )
----

query I rowsort
SELECT DISTINCT - col1 + col1 + - - 77 AS col0 FROM tab1 AS cor0
----
77

query II rowsort
SELECT 35 * - col0 AS col1, + col0 + + 61 FROM tab2 AS cor0
----
-1610
107
-2240
125
-2625
136

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT ALL col0 FROM tab0 WHERE NOT + col2 DIV + - col1 + - + ( + col1 ) NOT IN ( - col1 )
----
15
87

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL col0 FROM tab0 WHERE NOT + col2 / + - col1 + - + ( + col1 ) NOT IN ( - col1 )
----
15
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 56 + + - col0 + - col2 col2 FROM tab1
----
3160
3649
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL SUM( ALL + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL SUM ( ALL + col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL - COUNT( * ) + - 34 AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - COUNT ( * ) + - 34 AS col1 FROM tab0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT 72 * + MIN( DISTINCT 37 ) AS col0 FROM tab1
----
2664

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 72 * + MIN ( DISTINCT 37 ) AS col0 FROM tab1
----
2664

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab2 WHERE NOT - col2 < + 1 + - col2
----

query I rowsort
SELECT DISTINCT + col1 * - 72 FROM tab1
----
-1008
-3384
-360

query I rowsort
SELECT ALL + col1 * + - ( col0 ) FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT + col1 AS col0, col1 + 29 FROM tab1 AS cor0
----
14
43
47
76
5
34

query I rowsort
SELECT - 11 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query III rowsort
SELECT * FROM tab1 WHERE - + col1 <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2718
SELECT ALL + ( - 56 ) DIV - + CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + ( - 56 ) / - + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
18

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE 15 IS NULL
----

query I rowsort
SELECT + - 14 AS col1 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT - ( + - 97 ) FROM tab2 cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT - + 37 * CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2722
SELECT - + 37 * CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT 64 DIV - - COUNT( DISTINCT + 81 ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-2723
SELECT 64 / - - COUNT ( DISTINCT + 81 ) AS col0 FROM tab0
----
64

query I rowsort
SELECT ALL - col1 + 82 * - + col0 + - + col1 FROM tab2
----
-3874
-5402
-6284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2725
SELECT + 39 DIV + MIN( 33 ) AS col1 FROM tab1 WHERE - col1 >= + 27 + - 74
----
1

skipif mysql # not compatible
query I rowsort label-2725
SELECT + 39 / + MIN ( 33 ) AS col1 FROM tab1 WHERE - col1 >= + 27 + - 74
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + SUM( DISTINCT 76 ) FROM tab0 WHERE NOT ( + col1 ) = + col2
----
76

skipif mysql # not compatible
query I rowsort label-2726
SELECT + SUM ( DISTINCT 76 ) FROM tab0 WHERE NOT ( + col1 ) = + col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT col1 DIV + 11 AS col0 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2727
SELECT col1 / + 11 AS col0 FROM tab1
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 71 col0 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2729
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - CAST( + - 6 AS SIGNED ) / col0, + col2, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2729
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - CAST ( + - 6 AS INTEGER ) / col0, + col2, + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT ALL - col2 DIV ( + 74 ) + + 55 FROM tab1 AS cor0
----
54
55
55

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - col2 / ( + 74 ) + + 55 FROM tab1 AS cor0
----
54
55
55

query I rowsort
SELECT + - 1 AS col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + ( col1 ) * 60 AS col2 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + + MAX( ALL + 7 ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2736
SELECT + + MAX ( ALL + 7 ) AS col1 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT MAX( ALL - 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT MAX ( ALL - 95 ) FROM tab0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + col1 col0 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT - CAST( NULL AS SIGNED ) / + col0 + - + col0 - + col2 * - col2 + + col2 * ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT - CAST ( NULL AS INTEGER ) / + col0 + - + col0 - + col2 * - col2 + + col2 * ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT MIN( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-2740
SELECT MIN ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT ALL + col1 * + col2 * + + 51 FROM tab2 AS cor0
----
157080
198186
59823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2742
SELECT DISTINCT 3 AS col0, - col1 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2742
SELECT DISTINCT 3 AS col0, - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT DISTINCT - MAX( DISTINCT + CAST( + col0 AS SIGNED ) ) + + COUNT( * ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT - MAX ( DISTINCT + CAST ( + col0 AS INTEGER ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + + MIN( DISTINCT - - ( 11 ) ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2744
SELECT + + MIN ( DISTINCT - - ( 11 ) ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL + 78 + - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-22
-50
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col0, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL ( - MIN( ALL + - ( col1 ) ) ) col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2747
SELECT ALL ( - MIN ( ALL + - ( col1 ) ) ) col0 FROM tab0 AS cor0
----
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT - 74 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - - 22 * 4 * - - 29 + + + col0 * + 96
----

query I rowsort
SELECT ALL + 22 * 58 + - col1 AS col0 FROM tab0
----
1195
1255
1275

query I rowsort
SELECT ALL 20 * - 81 AS col0 FROM tab2
----
-1620
-1620
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT 69 + - SUM( ( + 86 ) ) * - ( - 19 ) FROM tab0
----
-4833

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT 69 + - SUM ( ( + 86 ) ) * - ( - 19 ) FROM tab0
----
-4833

query I rowsort
SELECT col2 + + - col2 * col1 FROM tab1
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT + 28 * 22 * - 87 * + + 71 * - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT + 28 * 22 * - 87 * + + 71 * - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT + CAST( ( + - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT + CAST ( ( + - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT ALL - COUNT( DISTINCT - 25 ) + 62 AS col1, MIN( + 80 ) col1 FROM tab0 cor0
----
61
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2756
SELECT ALL - COUNT ( DISTINCT - 25 ) + 62 AS col1, MIN ( + 80 ) col1 FROM tab0 cor0
----
61
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT 26 + COUNT( * ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT 26 + COUNT ( * ) FROM tab2
----
29

query I rowsort
SELECT DISTINCT col0 - + - col1 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT - 34 FROM tab0 WHERE ( - col0 ) * col1 > - col2
----
-34

query I rowsort
SELECT col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT ALL + COUNT( * ) * - - MIN( + 89 ) / + - CAST( NULL AS SIGNED ) - + + 91 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + COUNT ( * ) * - - MIN ( + 89 ) / + - CAST ( NULL AS INTEGER ) - + + 91 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL + 4 - COUNT( * ) + 27 * - 41 FROM tab2
----
-1106

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + 4 - COUNT ( * ) + 27 * - 41 FROM tab2
----
-1106

query I rowsort
SELECT + - col0 * - ( + + 90 ) - - - col1 * 60 AS col1 FROM tab0 cor0
----
-3510
6570
8670

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT + 46 * - - 56 - + - COUNT( * ) FROM tab0 AS cor0
----
2579

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + 46 * - - 56 - + - COUNT ( * ) FROM tab0 AS cor0
----
2579

query I rowsort
SELECT DISTINCT - + 85 AS col0 FROM tab2 AS cor0
----
-85

query II rowsort
SELECT ALL + - col0 AS col0, + 33 FROM tab0 AS cor0
----
-15
33
-87
33
-97
33

query I rowsort
SELECT ALL col2 * 96 AS col2 FROM tab1 cor0
----
5664
6528
9216

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + col0 NOT BETWEEN - - 5 AND ( NULL )
----

query I rowsort
SELECT ALL - col0 * - 86 * - col0 AS col0 FROM tab1
----
-223686
-621350
-712166

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < - 69
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT ALL + - CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2772
SELECT ALL + - CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + - 20 FROM tab2 cor0
----
-20

query II rowsort
SELECT DISTINCT + col1, 39 AS col2 FROM tab0
----
1
39
21
39
81
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 81 * 42 < - col1
----

query I rowsort
SELECT DISTINCT + - col1 + 9 FROM tab2 AS cor0
----
-42
-58
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( DISTINCT + col0 ) * - - 27 FROM tab0 cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( DISTINCT + col0 ) * - - 27 FROM tab0 cor0 WHERE NULL <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col0 col1 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT ALL + 57 + - + col2 AS col2 FROM tab1 cor0
----
-11
-2
-39

query I rowsort
SELECT DISTINCT ( + 38 ) AS col1 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT SUM( DISTINCT - 92 ) FROM tab0 WHERE ( - ( + - col1 ) ) NOT BETWEEN ( col1 ) AND col0
----
-92

skipif mysql # not compatible
query I rowsort label-2781
SELECT SUM ( DISTINCT - 92 ) FROM tab0 WHERE ( - ( + - col1 ) ) NOT BETWEEN ( col1 ) AND col0
----
-92

query I rowsort
SELECT ALL 51 * + col2 * + + col0 * + 58 FROM tab1
----
14482368
14834370
18304104

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 + + col1, col2 + + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 57 FROM tab2 cor0
----
46
57
64
57
75
57

query I rowsort
SELECT DISTINCT + 5 + - col2 AS col2 FROM tab0 AS cor0
----
-42
-5
-94

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col2 IN ( + ( col1 ), - col1 )
----

query II rowsort
SELECT col1 - - col2 AS col1, 45 * - - 81 - + 62 FROM tab1
----
110
3583
115
3583
64
3583

query I rowsort
SELECT + 66 * + + ( + 68 ) + 47 AS col0 FROM tab0
----
4535
4535
4535

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT - 93 + - + 50 - + COUNT( * ) FROM tab1
----
-146

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT - 93 + - + 50 - + COUNT ( * ) FROM tab1
----
-146

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( + col1 * + col1 * col1 * col2, col0 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 * 41 > 58 * - 13 / - + col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + ( - - SUM( - - 18 ) ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2792
SELECT + ( - - SUM ( - - 18 ) ) FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL - SUM( + 85 ) * + ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2793
SELECT ALL - SUM ( + 85 ) * + ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT MAX( 23 ) * + + ( + + 92 ) AS col1 FROM tab0 AS cor0
----
2116

skipif mysql # not compatible
query I rowsort label-2794
SELECT MAX ( 23 ) * + + ( + + 92 ) AS col1 FROM tab0 AS cor0
----
2116

query I rowsort
SELECT + 68 * + 42 + - - 85 + + 17 AS col1 FROM tab1 AS cor0
----
2958
2958
2958

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col0 + - col2 IN ( + col1 * col0 / col0 ) )
----

query II rowsort
SELECT 87 * - col1 * + 40, col2 FROM tab2
----
-177480
23
-233160
58
-267960
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT + 36 / + col2 FROM tab1 WHERE NOT ( - 75 / - CAST( - + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2798
SELECT + 36 / + col2 FROM tab1 WHERE NOT ( - 75 / - CAST ( - + col2 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - col1 / + col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + SUM( ALL - 51 ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + SUM ( ALL - 51 ) AS col0 FROM tab2
----
-153

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2804
SELECT + col2 / ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT + col2 / ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 89 + - col1 FROM tab2 AS cor0
----
-140
-156
-166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2807
SELECT + col1 AS col2, CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-2807
SELECT + col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 72 * + col0 * col0 - + col0 FROM tab1
----
187221
520115
596141

query I rowsort
SELECT ALL 61 + + - 40 * col2 + - col2 AS col2 FROM tab2
----
-1579
-2317
-882

query I rowsort
SELECT DISTINCT - col0 - + - col2 AS col0 FROM tab1
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - 51 - + 74 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 1 ) * + MAX( + col0 ) - - 34 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 1 ) * + MAX ( + col0 ) - - 34 FROM tab0
----
NULL

query I rowsort
SELECT + 81 + + + col0 FROM tab1
----
132
166
172

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - + MAX( ALL + col0 ) + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2816
SELECT - + MAX ( ALL + col0 ) + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT col1 + + 20 * - col0 + - + col2 - col0 + + col1 * + col0 FROM tab1 AS cor0
----
-1414
-439
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT - COUNT( * ) + - AVG ( - 31 ) * - 86 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - COUNT ( * ) + - AVG ( - 31 ) * - 86 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT + MIN( ALL + 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2820
SELECT + MIN ( ALL + 13 ) FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL + + CAST( + ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + + CAST ( + ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col1 / + + CAST( + - col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2822
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col1 / + + CAST ( + - col1 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + 75 * + 15 AS col1 FROM tab1 AS cor0
----
1125
1125
1125

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT + col0 DIV + ( - col0 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2825
SELECT + col0 / + ( - col0 ) FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT + ( + COUNT( * ) ) DIV - - COUNT( DISTINCT - + ( 71 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2826
SELECT + ( + COUNT ( * ) ) / - - COUNT ( DISTINCT - + ( 71 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - ( + - SUM( + + 11 ) ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-2827
SELECT - ( + - SUM ( + + 11 ) ) FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT DISTINCT col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT col0 * col2 AS col0, - col1 AS col0 FROM tab0
----
705
-81
870
-21
9603
-1

query I rowsort
SELECT DISTINCT - 49 * + col2 * + col2 FROM tab2
----
-164836
-25921
-78400

query I rowsort
SELECT col2 * - + 37 AS col0 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT ALL + col0 * + 22 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL MIN( 50 ) AS col2 FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL MIN ( 50 ) AS col2 FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT 94 * + + COUNT( * ) * - + COUNT( * ) * - 54 AS col2 FROM tab2
----
45684

skipif mysql # not compatible
query I rowsort label-2834
SELECT 94 * + + COUNT ( * ) * - + COUNT ( * ) * - 54 AS col2 FROM tab2
----
45684

query III rowsort
SELECT * FROM tab0 WHERE - 4 >= + 97
----

query II rowsort
SELECT - col0 AS col2, col1 * - + 40 + - - 92 AS col1 FROM tab0
----
-15
-3148
-87
-748
-97
52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + col1 NOT BETWEEN NULL AND col1 AND NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2838
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - col2 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 > + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 + col1 * col2 ) IN ( - 27 + + - 28 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 + col1 * col2 ) IN ( - 27 + + - 28 + - col1 )
----
0

query I rowsort
SELECT + - 62 + + col0 AS col0 FROM tab0 AS cor0
----
-47
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT + SUM( ALL + + 19 ) + - - 44 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT + SUM ( ALL + + 19 ) + - - 44 FROM tab2 AS cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL COUNT( * ) * 70 + COUNT( * ) AS col0 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COUNT ( * ) * 70 + COUNT ( * ) AS col0 FROM tab1
----
213

query I rowsort
SELECT DISTINCT 86 * 98 AS col0 FROM tab0
----
8428

query I rowsort
SELECT ALL col0 + - - col0 - - 64 AS col0 FROM tab1
----
166
234
246

query I rowsort
SELECT ALL 70 - col0 FROM tab2
----
-5
24
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT COUNT( * ) + 82 AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT COUNT ( * ) + 82 AS col2 FROM tab0
----
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + col2 + + - 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - col1 * + col0 * + + col0 AS col1 FROM tab1
----
-36120
-36400
-389160

query I rowsort
SELECT - - 42 FROM tab0 cor0 WHERE NOT col0 * + + col1 + - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 4 * + 11 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT 1 DIV - col2 * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2853
SELECT 1 / - col2 * col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + + ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT - ( + COUNT( * ) ) * SUM( DISTINCT col1 ) * 62 AS col0 FROM tab1 AS cor0
----
-12276

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT - ( + COUNT ( * ) ) * SUM ( DISTINCT col1 ) * 62 AS col0 FROM tab1 AS cor0
----
-12276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 35 - col1 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 31 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT - 21 * - col1 + 84 NOT IN ( - col0 * - + col0 + + - col1, col0, ( - ( - 79 ) ) )
----

query II rowsort
SELECT ALL + - col2 AS col0, 93 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + COUNT( - 91 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + COUNT ( - 91 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT 77 DIV - col2 AS col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT 77 / - col2 AS col2 FROM tab0
----
-1
-7
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 42 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < - 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = 12 + - col0 * col1
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + + 27 + + col0 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2867
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - 44 AS SIGNED ) * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2867
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - 44 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT MAX( + - 87 ) FROM tab0 AS cor0 WHERE NOT 63 / + + col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT MAX ( + - 87 ) FROM tab0 AS cor0 WHERE NOT 63 / + + col0 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT + + SUM( + + 63 ) + + + COUNT( * ) * COUNT( * ) * - 33 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT + + SUM ( + + 63 ) + + + COUNT ( * ) * COUNT ( * ) * - 33 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT 38 AS col2 FROM tab0 WHERE + col1 >= - + col2
----
38
38
38

query I rowsort
SELECT DISTINCT - col0 * + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-2872
SELECT ALL SUM( + 19 ), - 64 AS col2 FROM tab0 AS cor0
----
57
-64

skipif mysql # not compatible
query II rowsort label-2872
SELECT ALL SUM ( + 19 ), - 64 AS col2 FROM tab0 AS cor0
----
57
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT 56 * - SUM( - col0 ) FROM tab1 cor0
----
12712

skipif mysql # not compatible
query I rowsort label-2873
SELECT 56 * - SUM ( - col0 ) FROM tab1 cor0
----
12712

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT 92 * MIN( + col0 ) * + - 14 AS col1 FROM tab0 AS cor0
----
-19320

skipif mysql # not compatible
query I rowsort label-2875
SELECT 92 * MIN ( + col0 ) * + - 14 AS col1 FROM tab0 AS cor0
----
-19320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab2 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-2877
SELECT DISTINCT + + col2 + + - 0 DIV + 35, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT + + col2 + + - 0 / + 35, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2878
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND + + col1 + - 30
----

skipif mysql # not compatible
query III rowsort label-2878
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND + + col1 + - 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 + - + col1 col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + - 74 AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + - 74 AS col1 FROM tab1
----
-73

query I rowsort
SELECT + + 54 FROM tab2 WHERE - + col1 < 35
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + 58 * + - col0 - - - col0 col0 FROM tab0
----
13035
438915
545625

query I rowsort
SELECT DISTINCT - + 17 - - + col2 FROM tab2 AS cor0
----
23
41
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 72 col2, - 36 FROM tab1 AS cor0
----
-72
-36
-72
-36
-72
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT ALL + MIN( col0 ) * 59 * - - 69 col1, 47 FROM tab0
----
61065
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2885
SELECT ALL + MIN ( col0 ) * 59 * - - 69 col1, 47 FROM tab0
----
61065
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - col2 * 92
----

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT + COUNT( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + COUNT ( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / - ( + - col0 ) - col1 NOT IN ( - 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT DISTINCT - col1 * 13 - col1 + - - CAST( NULL AS SIGNED ) * - col1 * + 50 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 64
----

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - col1 * 13 - col1 + - - CAST ( NULL AS INTEGER ) * - col1 * + 50 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT COUNT( * ) + - ( + + MAX( ALL - + 1 ) ) AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT COUNT ( * ) + - ( + + MAX ( ALL - + 1 ) ) AS col0 FROM tab2
----
4

query I rowsort
SELECT - col1 + + + 75 AS col1 FROM tab2
----
-2
24
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT + ( - + 93 ) + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-2893
SELECT + ( - + 93 ) + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT + 7 + + + COUNT( * ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2894
SELECT + 7 + + + COUNT ( * ) FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL IN ( col1, + col0, 19, + - col0 * + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 > NULL
----

query I rowsort
SELECT DISTINCT 27 * + 74 FROM tab1 cor0
----
1998

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 45 + 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2899
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL 72 AS col2 FROM tab1 cor0 WHERE NOT col0 + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2901
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2901
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, - 88 + + col0 + + + 44 AS col1 FROM tab0 AS cor0
----
10
43
47
-29
99
53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1 * + col0
----

query I rowsort
SELECT col2 + + col2 + - col0 + - col1 FROM tab2 AS cor0
----
-26
-51
-61

query I rowsort
SELECT + col2 + + + 85 * - col2 FROM tab0 AS cor0
----
-3948
-8316
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT DISTINCT - 89 AS col0 FROM tab0 AS cor0 WHERE NOT - 12 + + 10 * - col2 * - - 96 * + col1 NOT BETWEEN - 60 AND ( - col0 / - col2 * + 37 * + - col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - 89 AS col0 FROM tab0 AS cor0 WHERE NOT - 12 + + 10 * - col2 * - - 96 * + col1 NOT BETWEEN - 60 AND ( - col0 / - col2 * + 37 * + - col2 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 43 + + 60 * + col0 AS col1 FROM tab1 AS cor0
----
3017
5057
5417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 56
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT MAX( ALL - ( - - 19 ) ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2911
SELECT MAX ( ALL - ( - - 19 ) ) AS col0 FROM tab2
----
-19

query I rowsort
SELECT ( - - 2 ) AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL 32 + 56 + 99 * - 69 AS col2 FROM tab2
----
-6743
-6743
-6743

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT SUM( + 11 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2914
SELECT SUM ( + 11 ) FROM tab1
----
33

query I rowsort
SELECT DISTINCT 50 - - + 68 FROM tab2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT + 93 * CAST( NULL AS SIGNED ) * - + 64 / col0 * + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + 93 * CAST ( NULL AS INTEGER ) * - + 64 / col0 * + col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL + - ( + SUM( DISTINCT + 46 ) ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL + - ( + SUM ( DISTINCT + 46 ) ) FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2918
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 14 * + + col1 * + 83 * - 50 + CAST( NULL AS DECIMAL ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2918
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 14 * + + col1 * + 83 * - 50 + CAST ( NULL AS REAL ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT CAST( NULL AS SIGNED ) * 98 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT CAST ( NULL AS INTEGER ) * 98 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 55 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 37 + + ( col0 ) BETWEEN NULL AND + 59 + - + 87 )
----

query II rowsort
SELECT DISTINCT + - 69, col0 AS col2 FROM tab1 cor0
----
-69
51
-69
85
-69
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + ( + COUNT( col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2923
SELECT + ( + COUNT ( col1 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT col2 * + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2924
SELECT col2 * + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - - COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2926
SELECT - - COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + - ( + - col1 ) * + - 24 )
----

query I rowsort
SELECT DISTINCT col2 * - 55 + 77 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND + 2 - + 23 + + - col0 * - 48 - + col2 + col1 + - - col0 - - col2 * - col0 * 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT 68 + COUNT( * ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT 68 + COUNT ( * ) AS col0 FROM tab1
----
71

query I rowsort
SELECT DISTINCT 23 * 0 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( + 21 ) ) * - col1 IS NULL
----

query I rowsort
SELECT 58 * 93 AS col0 FROM tab2
----
5394
5394
5394

query I rowsort
SELECT - 12 * - + col2 + - 62 - col1 + + 27 AS col1 FROM tab2 AS cor0
----
190
368
594

query II rowsort
SELECT + + 39 + col1 AS col2, + 43 FROM tab1 AS cor0
----
44
43
53
43
86
43

query I rowsort
SELECT - 80 + + + col1 * - - col2 FROM tab1 AS cor0
----
1264
215
3116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2936
SELECT + - 52 + 8, - 41 * + CAST( col2 AS SIGNED ) + - + col1 AS col0 FROM tab1 WHERE - col1 + + col2 = - col1 * - + col2
----

skipif mysql # not compatible
query II rowsort label-2936
SELECT + - 52 + 8, - 41 * + CAST ( col2 AS INTEGER ) + - + col1 AS col0 FROM tab1 WHERE - col1 + + col2 = - col1 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + - COUNT( * ) * 93 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-2937
SELECT + - COUNT ( * ) * 93 FROM tab1 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT + col0 DIV - col1 - - - col2 FROM tab1 AS cor0
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-2938
SELECT + col0 / - col1 - - - col2 FROM tab1 AS cor0
----
-69
-76
-99

query I rowsort
SELECT + + col2 - - col2 + + + col2 AS col1 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT DISTINCT - 25 * + + col1 + 85 FROM tab1 AS cor0
----
-1090
-265
-40

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 + - col2 + - ( + 32 ) + 34 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT - CAST( 53 AS SIGNED ) - - col2 FROM tab0 cor0
----
-43
-6
46

skipif mysql # not compatible
query I rowsort label-2942
SELECT - CAST ( 53 AS INTEGER ) - - col2 FROM tab0 cor0
----
-43
-6
46

query I rowsort
SELECT DISTINCT + col1 * + - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + 14, col0, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL 41 * + COUNT( * ) AS col2 FROM tab0 cor0
----
123

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL 41 * + COUNT ( * ) AS col2 FROM tab0 cor0
----
123

query I rowsort
SELECT DISTINCT + ( - col2 ) * - + 12 FROM tab2
----
276
480
696

query I rowsort
SELECT DISTINCT ( + - 47 ) AS col2 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - MIN( col0 ) * + - COUNT( * ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - MIN ( col0 ) * + - COUNT ( * ) AS col1 FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL COUNT( + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL COUNT ( + + col2 ) FROM tab2
----
3

query II rowsort
SELECT + 96 AS col2, 13 AS col0 FROM tab1
----
96
13
96
13
96
13

query II rowsort
SELECT DISTINCT col0, + 83 * + + col2 * - + col2 AS col2 FROM tab2
----
46
-43907
64
-132800
75
-279212

query I rowsort
SELECT + - 4 * - col0 - col0 AS col0 FROM tab1 cor0
----
153
255
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2953
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2953
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, col0 * - + 47 + - col2 + + col0 FROM tab1 AS cor0
----
-59
-3969
-68
-4254
-96
-2442

query II rowsort
SELECT ALL col0, col2 AS col2 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL - col1 * 97 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ( + MIN( ALL - col1 ) ) * + + COUNT( * ) + - 72 AS col0 FROM tab0
----
-315

skipif mysql # not compatible
query I rowsort label-2957
SELECT ( + MIN ( ALL - col1 ) ) * + + COUNT ( * ) + - 72 AS col0 FROM tab0
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 <= NULL
----
0

query I rowsort
SELECT ALL 46 * col0 * - 35 FROM tab2
----
-103040
-120750
-74060

onlyif mysql # DIV for integer division: 
query II rowsort label-2960
SELECT ALL - - 28 * - col0, col0 DIV + + 63 AS col2 FROM tab2 AS cor0
----
-1288
0
-1792
1
-2100
1

skipif mysql # not compatible
query II rowsort label-2960
SELECT ALL - - 28 * - col0, col0 / + + 63 AS col2 FROM tab2 AS cor0
----
-1288
0
-1792
1
-2100
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + CAST( + - 90 AS SIGNED ) AND + + col2 * + 44
----

skipif mysql # not compatible
query III rowsort label-2961
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + CAST ( + - 90 AS INTEGER ) AND + + col2 * + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL >= - CAST( 25 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2962
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL >= - CAST ( 25 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - - COUNT( * ) * ( + MIN( 30 ) ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - - COUNT ( * ) * ( + MIN ( 30 ) ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL - 79 AS col2 FROM tab0 cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 95 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) + + 19 AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) + + 19 AS col1 FROM tab1
----
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( col0 ) + + col0 BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - 30 * + - 56 IS NOT NULL
----

query II rowsort
SELECT + col0 * - 64 + + col2, - 10 AS col2 FROM tab1
----
-3168
-10
-5381
-10
-5756
-10

query I rowsort
SELECT col0 * + col2 + - ( - + col2 ) FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT - ( - + ( - - col2 ) ) AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > + col1
----

query I rowsort
SELECT DISTINCT + - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 95 * + 57 * + col2 + col2 AND NULL
----

query II rowsort
SELECT DISTINCT + 67 AS col2, col0 AS col0 FROM tab2 AS cor0
----
67
46
67
64
67
75

query I rowsort
SELECT ALL 74 * - 24 * + col0 + 63 FROM tab1 AS cor0
----
-150897
-161553
-90513

query I rowsort
SELECT DISTINCT col2 + - - 88 * - - col2 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT 45 - - - col2 + col2 * 61 AS col1 FROM tab1
----
3585
4125
5805

query I rowsort
SELECT 4 * + col2 AS col0 FROM tab1 AS cor0
----
236
272
384

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT + + COUNT( * ) * - - SUM( DISTINCT - + 6 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + + COUNT ( * ) * - - SUM ( DISTINCT - + 6 ) AS col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT + - col0 * + col1 + + - col1 FROM tab2 cor0
----
-2397
-5005
-5092

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - + col2 BETWEEN - 82 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 38 * + col1 AS col2 FROM tab0
----
-3078
-38
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT + MAX( DISTINCT 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + MAX ( DISTINCT 8 ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + SUM( - + col0 ) FROM tab0 WHERE NOT NULL = + + col1 + - + ( + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT + SUM ( - + col0 ) FROM tab0 WHERE NOT NULL = + + col1 + - + ( + + col2 )
----
NULL

query I rowsort
SELECT ALL - 59 * + 81 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL CAST( - 56 AS SIGNED ) FROM tab0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL CAST ( - 56 AS INTEGER ) FROM tab0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
21
21

query I rowsort
SELECT ALL + 75 * - col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

query II rowsort
SELECT DISTINCT col2, + col2 + - - col2 * - - 94 AS col2 FROM tab1
----
59
5605
68
6460
96
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + 14 * + COUNT( * ) - + - 68 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
194

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 14 * + COUNT ( * ) - + - 68 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + + 76 ) col1, col2 FROM tab1 AS cor0
----
76
59
76
68
76
96

query I rowsort
SELECT DISTINCT - + 53 + + + col1 FROM tab2 cor0
----
-2
14
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - + col0 * col2 * + + 94 col1, 56 FROM tab0 AS cor0
----
-3114690
56
-817800
56
-89365518
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + SUM( - + col1 ) * - 93 AS col2 FROM tab2 AS cor0
----
18135

skipif mysql # not compatible
query I rowsort label-2996
SELECT + SUM ( - + col1 ) * - 93 AS col2 FROM tab2 AS cor0
----
18135

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT + - col1 + + + 64 + col1 DIV - 19 FROM tab0 AS cor0
----
-21
42
63

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + - col1 + + + 64 + col1 / - 19 FROM tab0 AS cor0
----
-21
42
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT - SUM( DISTINCT - - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT + COUNT( * ) AS col0, COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3000
SELECT + COUNT ( * ) AS col0, COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT - MAX( + col1 ) AS col0, + 4 AS col2 FROM tab1 AS cor0
----
-47
4

skipif mysql # not compatible
query II rowsort label-3001
SELECT - MAX ( + col1 ) AS col0, + 4 AS col2 FROM tab1 AS cor0
----
-47
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - - COUNT( * ) + + 72 AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - - COUNT ( * ) + + 72 AS col1 FROM tab0 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT ALL 31 + col0 - - col0 DIV col1 * + + 67 * - 47 * + 20 AS col2 FROM tab2
----
-62874
77
95

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL 31 + col0 - - col0 / col1 * + + 67 * - 47 * + 20 AS col2 FROM tab2
----
-62874
77
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3004
SELECT DISTINCT + col0 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + col0 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT COUNT( ALL - + 27 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT COUNT ( ALL - + 27 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT 5 + + COUNT( DISTINCT - - col0 ) col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3006
SELECT 5 + + COUNT ( DISTINCT - - col0 ) col2 FROM tab0 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 + - col2 col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3009
SELECT DISTINCT COUNT( * ) + COUNT( DISTINCT - 80 ) AS col2, 77 AS col2 FROM tab2
----
4
77

skipif mysql # not compatible
query II rowsort label-3009
SELECT DISTINCT COUNT ( * ) + COUNT ( DISTINCT - 80 ) AS col2, 77 AS col2 FROM tab2
----
4
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - - col1 * - ( col1 ) * + col1 * 8 IS NULL
----

query I rowsort
SELECT - 5 * - 15 * + col2 + col0 FROM tab2 AS cor0
----
1771
3064
4425

query II rowsort
SELECT + col1 AS col0, + col1 + + col2 AS col0 FROM tab2 AS cor0
----
51
74
67
125
77
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL - + MIN( 33 ) AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - + MIN ( 33 ) AS col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT + - col0 * col0 DIV - 44 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
127
48
93

skipif mysql # not compatible
query I rowsort label-3015
SELECT + - col0 * col0 / - 44 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
127
48
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL + MAX( + col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3016
SELECT ALL + MAX ( + col0 ) col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT + col1, ( - 18 ) FROM tab2 AS cor0
----
51
-18
67
-18
77
-18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 96 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * col1 AS col1, col1 * col2 FROM tab1
----
1344
1344
295
295
3196
3196

query I rowsort
SELECT + 95 * + - col2 - 80 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 77 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + 91 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT + 48 FROM tab0 AS cor0 WHERE NOT - 82 IS NULL
----
48

query I rowsort
SELECT ALL + - 87 AS col1 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT 8 + - 48 - + + COUNT( * ) * 4 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3027
SELECT 8 + - 48 - + + COUNT ( * ) * 4 FROM tab0 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT 89 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT 89 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT + COUNT( * ) * + + ( + COUNT( * ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3029
SELECT + COUNT ( * ) * + + ( + COUNT ( * ) ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT ( + 71 ) DIV + + COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT ( + 71 ) / + + COUNT ( * ) FROM tab0
----
23

query I rowsort
SELECT 38 * ( + 44 ) FROM tab2
----
1672
1672
1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL - CAST( - col1 AS SIGNED ) - + - ( - 22 ) FROM tab1
----
-17
-8
25

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - CAST ( - col1 AS INTEGER ) - + - ( - 22 ) FROM tab1
----
-17
-8
25

query II rowsort
SELECT DISTINCT + - 24 AS col0, col2 AS col1 FROM tab1 cor0
----
-24
59
-24
68
-24
96

query II rowsort
SELECT ALL + + col2 AS col1, col0 - + col1 + - col0 * col2 + + + 21 + - 34 AS col0 FROM tab0 AS cor0
----
10
-817
47
-784
99
-9520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3035
SELECT * FROM tab2 AS cor0 WHERE - CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3035
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - col2 * - col1 - + 61 AS col2 FROM tab0 AS cor0
----
178868
2039
9740

query I rowsort
SELECT + + col0 - 14 * - col1 FROM tab1 AS cor0
----
155
247
749

query I rowsort
SELECT ALL - + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT col0 + + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 31 * + 23 col0 FROM tab2 AS cor0
----
16399
28520
41354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT 52 * CAST( NULL AS SIGNED ) / - col2 - col2 * + 75 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT 52 * CAST ( NULL AS INTEGER ) / - col2 - col2 * + 75 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3042
SELECT DISTINCT + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3042
SELECT DISTINCT + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - - ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + - 67 AS col2 FROM tab0 cor0
----
-67
-67
-67

query II rowsort
SELECT DISTINCT col0, ( - col1 ) FROM tab2
----
46
-51
64
-77
75
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( + col2 * - 96 NOT BETWEEN + ( col1 ) AND NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE - - 25 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - + + col2 / - 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT 9 AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3051
SELECT 9 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + + COUNT( - - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + + COUNT ( - - col2 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 69 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( 29 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 75 + 29 AS col0 FROM tab0
----
-3496
-721
-7396

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + SUM( 92 ) AS col2 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + SUM ( 92 ) AS col2 FROM tab2
----
276

query I rowsort
SELECT - col1 * 44 - 72 AS col0 FROM tab0
----
-116
-3636
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT 18 * + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3059
SELECT 18 * + COUNT ( * ) FROM tab1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT ALL col2 DIV 69 FROM tab1 WHERE ( col1 ) NOT IN ( - 2 + + 94 DIV - col0 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL col2 / 69 FROM tab1 WHERE ( col1 ) NOT IN ( - 2 + + 94 / - col0 )
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 66 + - 90 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col2 ) / - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - col1 + - 44 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT + 79 + - COUNT( * ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 79 + - COUNT ( * ) AS col2 FROM tab1
----
76

query I rowsort
SELECT DISTINCT + 36 * 73 AS col0 FROM tab1
----
2628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT + CAST( - 30 AS SIGNED ) AS col1 FROM tab1
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-3067
SELECT + CAST ( - 30 AS INTEGER ) AS col1 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT + col1 * 35 FROM tab1 WHERE col2 = - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT COUNT( ALL col2 ) DIV + 86 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3069
SELECT COUNT ( ALL col2 ) / + 86 col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 88 + col2 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ( col1 ) - - 70 FROM tab1
----
117
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT DISTINCT + col1 + - col1 DIV + col2 AS col1 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + col1 + - col1 / + col2 AS col1 FROM tab2
----
49
66
76

query I rowsort
SELECT DISTINCT + col2 * - col0 - 54 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 75 - - col2 FROM tab1
----
3921
6434
6893

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - SUM( - col1 ) FROM tab1 WHERE + 29 + 47 NOT BETWEEN + ( col2 ) + col1 AND - col2
----
66

skipif mysql # not compatible
query I rowsort label-3075
SELECT - SUM ( - col1 ) FROM tab1 WHERE + 29 + 47 NOT BETWEEN + ( col2 ) + col1 AND - col2
----
66

query I rowsort
SELECT + col1 * + ( + ( - col0 ) ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( col2 + + col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( col2 + + col0 ) AND NULL
----
0

query I rowsort
SELECT + 77 * ( 21 ) AS col1 FROM tab0
----
1617
1617
1617

query I rowsort
SELECT DISTINCT ( - 37 ) + col2 AS col0 FROM tab2
----
-14
21
3

query I rowsort
SELECT DISTINCT + 66 * ( col1 ) FROM tab0
----
1386
5346
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT DISTINCT - 10 DIV + 46 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT - 10 / + 46 FROM tab2
----
0

query I rowsort
SELECT 51 * + col2 AS col1 FROM tab0
----
2397
5049
510

query I rowsort
SELECT + col1 * ( col2 ) AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT AVG ( ALL + col2 ) * AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT AVG ( ALL + col2 ) * AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * 49 AS col1 FROM tab1
----
2499
4165
4459

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * - 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 99 + 19 AS col1 FROM tab0 AS cor0
----
118
118
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 45 + 80 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( 27 ) FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-3091
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + 2 * COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 2 * COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 74 ) BETWEEN ( NULL ) AND 46 * ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT AVG ( 6 ) FROM tab1 AS cor0 WHERE NOT ( + col2 * col0 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT 49 * - COUNT( * ) * COUNT( * ) FROM tab1
----
-441

skipif mysql # not compatible
query I rowsort label-3095
SELECT 49 * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-441

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - 8 + col1 NOT BETWEEN col0 AND 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ( 68 ) * + COUNT( * ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-3097
SELECT ( 68 ) * + COUNT ( * ) FROM tab1
----
204

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 47 ) NOT IN ( - 75 * 32 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT ALL - ( + 65 ) DIV col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - ( + 65 ) / col2 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT CAST( 31 AS SIGNED ) * ( 60 - - col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND 68
----

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT CAST ( 31 AS INTEGER ) * ( 60 - - col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND 68
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3101
SELECT DISTINCT + col2 / - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + col2 / - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ( + col1 ) + + col0 AS col2 FROM tab1
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( - 63 ) + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL SUM( DISTINCT + 98 ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL SUM ( DISTINCT + 98 ) AS col0 FROM tab1
----
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND + col1 * - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT COUNT( ALL col2 ) * + COUNT( * ) FROM tab1 WHERE - + 53 IN ( col0 / - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT COUNT ( ALL col2 ) * + COUNT ( * ) FROM tab1 WHERE - + 53 IN ( col0 / - col0 )
----
0

query I rowsort
SELECT ALL 74 + col2 * - + col0 + - 92 FROM tab1
----
-4914
-5033
-6206

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN - ( - ( 9 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + - COUNT( * ) * - COUNT( col1 + col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( col1 + col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 66 + - - col2 * col2 > + CAST( NULL AS SIGNED ) * col2
----
0

skipif mysql # not compatible
query I rowsort label-3110
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 66 + - - col2 * col2 > + CAST ( NULL AS INTEGER ) * col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT ALL + 66, - MIN( 14 ) AS col1 FROM tab1 AS cor0
----
66
-14

skipif mysql # not compatible
query II rowsort label-3111
SELECT ALL + 66, - MIN ( 14 ) AS col1 FROM tab1 AS cor0
----
66
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT + col2 * + col0 + + + 81 DIV + col1 + - col0 AS col2 FROM tab0 AS cor0
----
691
786
9587

skipif mysql # not compatible
query I rowsort label-3112
SELECT + col2 * + col0 + + + 81 / + col1 + - col0 AS col2 FROM tab0 AS cor0
----
691
786
9587

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT - COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3113
SELECT - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ( + MIN( DISTINCT col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3114
SELECT ( + MIN ( DISTINCT col0 ) ) FROM tab2
----
46

query I rowsort
SELECT ALL ( + 63 ) + - col1 AS col0 FROM tab0
----
-18
42
62

query I rowsort
SELECT + + 71 * 58 + ( + 76 + + col0 ) AS col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT - COUNT( + + 37 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3117
SELECT - COUNT ( + + 37 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 47 col0 FROM tab0
----
134
144
62

query III rowsort
SELECT ALL * FROM tab0 WHERE - 1 - + col1 >= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3120
SELECT + CAST( NULL AS DECIMAL ) - + + AVG ( ALL + 91 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT + CAST ( NULL AS REAL ) - + + AVG ( ALL + 91 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab1 AS cor0 WHERE NOT - 98 BETWEEN + 75 AND + col1 * col2
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3123
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3123
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL MAX( ALL col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( 91 ) IS NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3124
SELECT ALL MAX ( ALL col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( 91 ) IS NULL
----
77

query I rowsort
SELECT - col2 * - 42 AS col0 FROM tab0 AS cor0
----
1974
4158
420

query I rowsort
SELECT ALL + col1 * - 69 AS col2 FROM tab2 AS cor0
----
-3519
-4623
-5313

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * col2 <= 76
----

query I rowsort
SELECT - 19 * + ( + col2 ) FROM tab0 AS cor0
----
-1881
-190
-893

query I rowsort
SELECT - - 95 * col0 - - 24 + - col0 AS col0 FROM tab2 cor0
----
4348
6040
7074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL - CAST( NULL AS SIGNED ) / + + 87 - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 87 - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - 29 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 29 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT ALL 99 DIV + + col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL 99 / + + col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3133
SELECT - + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL - 55 DIV - + col2 + + ( - col0 ) - + - 48 col1 FROM tab0 AS cor0
----
-34
-49
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3134
SELECT ALL - 55 / - + col2 + + ( - col0 ) - + - 48 col1 FROM tab0 AS cor0
----
-34
-49
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + 38 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 79 + - ( col0 ) AS col2 FROM tab2
----
-125
-143
-154

query I rowsort
SELECT + 84 * - - col1 * 72 FROM tab0
----
127008
489888
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT CAST( + 65 AS SIGNED ) FROM tab1
----
65
65
65

skipif mysql # not compatible
query I rowsort label-3138
SELECT CAST ( + 65 AS INTEGER ) FROM tab1
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT DISTINCT - CAST( + 63 AS SIGNED ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - CAST ( + 63 AS INTEGER ) AS col1 FROM tab1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 * + + col1 col1 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab0 WHERE NOT ( NOT col1 = NULL )
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE + 85 + + 2 + - + 14 * + col2 + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3143
SELECT COUNT( * ) col2, + COUNT( * ) * - AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL >= + + col2
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3143
SELECT COUNT ( * ) col2, + COUNT ( * ) * - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL >= + + col2
----
0
NULL

query I rowsort
SELECT ALL + + 7 * col2 FROM tab1 WHERE NOT col2 IS NULL
----
413
476
672

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3145
SELECT CAST( NULL AS DECIMAL ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3145
SELECT CAST ( NULL AS REAL ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3146
SELECT DISTINCT 13 + - col1 FROM tab1 WHERE NOT 5 + - - CAST( - - col1 AS DECIMAL ) + + + ( + col0 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT 13 + - col1 FROM tab1 WHERE NOT 5 + - - CAST ( - - col1 AS REAL ) + + + ( + col0 ) <= NULL
----

query I rowsort
SELECT 13 + + + col0 AS col1 FROM tab1 AS cor0
----
104
64
98

query I rowsort
SELECT + 45 + col2 - - - 91 FROM tab2 AS cor0
----
-23
-6
12

query I rowsort
SELECT - 11 * + + 96 - - col2 + - - 67 AS col1 FROM tab1 AS cor0
----
-893
-921
-930

query I rowsort
SELECT ALL + 4 AS col2 FROM tab1 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT DISTINCT + col2 + - ( + col2 ) * 18 FROM tab1 AS cor0 WHERE NOT ( - col1 ) > ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3153
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 57 * - 66, + 14 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3153
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 57 * - 66, + 14 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - ( - - 20 ) FROM tab1
----
-20

query I rowsort
SELECT ALL col2 - + 98 AS col1 FROM tab2
----
-40
-58
-75

query I rowsort
SELECT ALL 40 * - - 86 + - - col0 * + + 11 + + 89 AS col1 FROM tab2
----
4035
4233
4354

query II rowsort
SELECT ALL col2, col2 - + 54 * - 67 * + col0 FROM tab1
----
59
307589
68
329306
96
184614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3158
SELECT - 95 AS col0, COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3158
SELECT - 95 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-95
NULL

query I rowsort
SELECT ( - - 49 ) AS col0 FROM tab1
----
49
49
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3160
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3161
SELECT MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL + + COUNT( ALL + + 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + + COUNT ( ALL + + 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + - 16 * + ( + 96 ) AS col2 FROM tab1 WHERE NOT NULL <> 72
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( 92 )
----

query I rowsort
SELECT + - 36 * - col0 FROM tab0 AS cor0
----
3132
3492
540

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL + COUNT( * ) * + - 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + COUNT ( * ) * + - 29 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL col1 DIV + - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL col1 / + - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 AS cor0 WHERE + 48 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - col2 * col1 + - + col1 FROM tab2
----
-1224
-3157
-3953

query I rowsort
SELECT ALL + ( + col0 ) * col1 + - - col1 FROM tab0
----
1296
1848
98

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 47 + - col0 + - - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 + - col2 + 42 FROM tab1
----
-22
-68
-73

query I rowsort
SELECT + col2 + - - col2 + - - col0 * + col1 * - 44 FROM tab0
----
-4070
-53366
-80368

query I rowsort
SELECT col0 * - + col0 + - - col0 FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT - col0 + - col1 * - col2 AS col0 FROM tab1
----
1293
210
3105

query I rowsort
SELECT DISTINCT + col1 + + col2 + col2 * + col2 * + + 57 + 36 FROM tab1
----
198517
263719
525458

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT MIN( + col2 ) * + MAX( DISTINCT - 32 ) AS col2 FROM tab0
----
-320

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT MIN ( + col2 ) * + MAX ( DISTINCT - 32 ) AS col2 FROM tab0
----
-320

query III rowsort
SELECT * FROM tab1 WHERE col1 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT ALL - col0 DIV + 48 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - col0 / + 48 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT 90 DIV + + 31 AS col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3182
SELECT 90 / + + 31 AS col2 FROM tab1
----
2
2
2

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + + - col0 + col1 * + col2 + col1 BETWEEN NULL AND + col1 + + + col2
----

query I rowsort
SELECT 4 * - col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-236
-272
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT ALL 38 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-38
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL 38 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-38
0

query I rowsort
SELECT col1 * - 30 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT + COUNT( ALL + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + COUNT ( ALL + - col2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * + col0 - + col0 col0 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT 26 - 86 FROM tab0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT COUNT( * ) + + - SUM( col2 ) - COUNT( * ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3190
SELECT COUNT ( * ) + + - SUM ( col2 ) - COUNT ( * ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT ALL + col2 + - col1 + ( - col2 ) * - 84 / + col0 + 53 / + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL + + col1 - + 42 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 * - col1 - + col2 AS col2 FROM tab2 AS cor0
----
46
-1196
64
-3120
75
-3944

query I rowsort
SELECT - col2 * + 33 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3196
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) DIV - 24 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) / - 24 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT col1 DIV + - 72 * + 48 * - col1 + - + ( - 31 ) col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT DISTINCT col1 / + - 72 * + 48 * - col1 + - + ( - 31 ) col2 FROM tab1 AS cor0
----
31

query II rowsort
SELECT ALL 63, 2 * - - 61 * - - col2 AS col2 FROM tab0 AS cor0
----
63
12078
63
1220
63
5734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT + CAST( NULL AS SIGNED ) / - + 42 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT + CAST ( NULL AS INTEGER ) / - + 42 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 96 col0 FROM tab1
----
1344
4512
480

query I rowsort
SELECT 12 * + col1 * + - 99 FROM tab0
----
-1188
-24948
-96228

query II rowsort
SELECT - ( col0 ), col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT COUNT( ALL + col0 ) FROM tab2 WHERE NOT ( ( 73 BETWEEN col1 AND - 26 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3204
SELECT COUNT ( ALL + col0 ) FROM tab2 WHERE NOT ( ( 73 BETWEEN col1 AND - 26 ) )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 <> - 22 + 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - ( + ( + 49 ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 col0 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + + COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3208
SELECT + + COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 57 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT + ( + ( COUNT( * ) ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + ( + ( COUNT ( * ) ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + + COUNT( * ) col1 FROM tab1 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-3211
SELECT + + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col2 * + 63 FROM tab0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COUNT( * ) * + + 44 AS col1 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COUNT ( * ) * + + 44 AS col1 FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - SUM( - + 74 ) AS col1 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3214
SELECT - SUM ( - + 74 ) AS col1 FROM tab2 AS cor0
----
222

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + - SUM( DISTINCT + 10 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3216
SELECT + - SUM ( DISTINCT + 10 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + + col1 * + 58 FROM tab2 AS cor0
----
2958
3886
4466

query II rowsort
SELECT ALL + col2 + 62, col1 FROM tab1
----
121
5
130
47
158
14

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NOT - - 46 + + col1 IN ( + + col0, 38 / col1 + - col0 + - - col1 + 60 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3220
SELECT DISTINCT 72 * + - ( + 17 ) + + - SUM( col2 ) + + 23 * CAST( NULL AS SIGNED ) * - 92 * 51 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT 72 * + - ( + 17 ) + + - SUM ( col2 ) + + 23 * CAST ( NULL AS INTEGER ) * - 92 * 51 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * col0 * + 61 FROM tab2
----
-143106
-300608
-306525

query I rowsort
SELECT ALL col2 * - 28 + - col0 FROM tab2
----
-1184
-1699
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT - CAST( NULL AS SIGNED ) * - 94 + - col2 + + + 23 + - 19 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT - CAST ( NULL AS INTEGER ) * - 94 + - col2 + + + 23 + - 19 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * + 37 + + col1 FROM tab0 AS cor0
----
3553
3573
3633

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + MAX( DISTINCT - 72 ) + + SUM( - col2 ) FROM tab1 AS cor0
----
-295

skipif mysql # not compatible
query I rowsort label-3225
SELECT + MAX ( DISTINCT - 72 ) + + SUM ( - col2 ) FROM tab1 AS cor0
----
-295

query I rowsort
SELECT ALL - col0 + + 36 FROM tab0 AS cor0
----
-51
-61
21

query I rowsort
SELECT DISTINCT 79 * + AVG ( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 46 - + 93 FROM tab2
----
-47
-47
-47

query II rowsort
SELECT DISTINCT 76 - col1 + 41 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
103
-51
112
-85
70
-91

query I rowsort
SELECT + col0 - - 20 - 77 AS col0 FROM tab0 AS cor0
----
-42
30
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - - MIN( + + 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3231
SELECT - - MIN ( + + 95 ) FROM tab1 AS cor0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3232
SELECT - - MIN( + - ( + + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT - - MIN ( + - ( + + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - 81 AS col1, - 65 AS col2 FROM tab2 AS cor0
----
-81
-65
-81
-65
-81
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 99 col2 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT NULL = col2
----

query II rowsort
SELECT ALL + + 37 AS col0, + col2 + + 3 AS col1 FROM tab1 cor0
----
37
62
37
71
37
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - - col0 < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE NOT col1 > - col0
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NOT col1 > - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 70 + + col2 col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-24
10
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT col1 / + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3240
SELECT col1 / + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - col2 * - 25 AS col2 FROM tab1
----
33600
7375
79900

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT SUM( + - 13 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT SUM ( + - 13 ) FROM tab0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT 22 DIV + MAX( + col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT 22 / + MAX ( + col1 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT - ( - CAST( - 55 AS SIGNED ) ) * + col2 FROM tab0
----
-2585
-5445
-550

skipif mysql # not compatible
query I rowsort label-3244
SELECT - ( - CAST ( - 55 AS INTEGER ) ) * + col2 FROM tab0
----
-2585
-5445
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL + CAST( - - 48 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + CAST ( - - 48 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT COUNT( * ) + + 21 col1, 32 FROM tab2 cor0
----
24
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3247
SELECT COUNT ( * ) + + 21 col1, 32 FROM tab2 cor0
----
24
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 39 + ( + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT DISTINCT + + col2 + - col1 AS col1, col0 FROM tab0 AS cor0
----
-11
87
-34
15
98
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - + ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 >= NULL
----
0

query I rowsort
SELECT col0 * + col1 * - col2 * col0 FROM tab1
----
-2131375
-26466076
-3495744

query I rowsort
SELECT 6 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query II rowsort
SELECT DISTINCT - col1 AS col1, 82 FROM tab2
----
-51
82
-67
82
-77
82

query III rowsort
SELECT * FROM tab1 WHERE - ( + col1 ) * - + 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - - ( - col2 ) + + - col1 * - 28 FROM tab2
----
1451
1893
2180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab1 cor0
----
-51
-85
-91

query II rowsort
SELECT + + col0 AS col2, col1 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + col2 + 2 AS col1 FROM tab1 AS cor0
----
61
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + - COUNT( ALL + col2 ) - - 1 * - + 62 * - ( 12 ) FROM tab1 AS cor0
----
741

skipif mysql # not compatible
query I rowsort label-3262
SELECT + - COUNT ( ALL + col2 ) - - 1 * - + 62 * - ( 12 ) FROM tab1 AS cor0
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL - MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 78 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 78 ) < NULL
----
NULL

query I rowsort
SELECT DISTINCT 35 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - col1 * - + col0 + - col0 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT col0 * - CAST( NULL AS SIGNED ) * + 44 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT col0 * - CAST ( NULL AS INTEGER ) * + 44 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT + 15 * - 51 IS NOT NULL )
----
128
150
92

query I rowsort
SELECT ALL col1 * + col1 * - 94 FROM tab0 AS cor0
----
-41454
-616734
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 29 col2 FROM tab0 AS cor0
----
-2523
-2813
-435

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) BETWEEN - col0 AND - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT DISTINCT - 66 DIV - col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT - 66 / - col1 FROM tab1 AS cor0
----
1
13
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT - 35 DIV + + 52 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - 35 / + + 52 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - ( - + 62 ) FROM tab1
----
62
62
62

query I rowsort
SELECT + col0 * + + col1 * + col2 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL + 22 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + 22 / - + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT MAX( + ( - col2 ) ) - ( + COUNT( * ) ) AS col2 FROM tab1 WHERE - - 92 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT MAX ( + ( - col2 ) ) - ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE - - 92 < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + MIN( ALL - + 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3278
SELECT + MIN ( ALL - + 32 ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT + 76 * + - col0 AS col0 FROM tab2 cor0
----
-3496
-4864
-5700

query I rowsort
SELECT - 5 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col0 * + + col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT ALL + 65 * col2 + + CAST( 89 AS SIGNED ) AS col2 FROM tab1
----
3924
4509
6329

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + 65 * col2 + + CAST ( 89 AS INTEGER ) AS col2 FROM tab1
----
3924
4509
6329

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 28 <> + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL + + COUNT( * ) AS col1, 17 AS col2 FROM tab2 cor0
----
3
17

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL + + COUNT ( * ) AS col1, 17 AS col2 FROM tab2 cor0
----
3
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT ALL - + COUNT( * ), 49 col0 FROM tab0 AS cor0
----
-3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3285
SELECT ALL - + COUNT ( * ), 49 col0 FROM tab0 AS cor0
----
-3
49

query I rowsort
SELECT DISTINCT - - ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT - 26, - 34 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + + col0 * - - ( - col1 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT + 4 * + 84 + + MIN( + col2 ) AS col2 FROM tab2
----
359

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + 4 * + 84 + + MIN ( + col2 ) AS col2 FROM tab2
----
359

query I rowsort
SELECT - col1 * col1 + ( - col2 ) AS col2 FROM tab1
----
-2277
-292
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT col2 DIV + + col1 + + col1 AS col1 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-3290
SELECT col2 / + + col1 + + col1 AS col1 FROM tab1
----
16
20
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3291
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3291
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT 26 * - 34 * + + col1 + 94 / CAST( - ( - col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NOT NULL <= - - ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-3292
SELECT 26 * - 34 * + + col1 + 94 / CAST ( - ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NOT NULL <= - - ( col0 ) )
----

query I rowsort
SELECT - 75 * - col2 * 28 FROM tab1 AS cor0
----
123900
142800
201600

query I rowsort
SELECT DISTINCT 37 * + + col0 AS col2 FROM tab1
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT SUM( DISTINCT + 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT SUM ( DISTINCT + 65 ) FROM tab0 AS cor0
----
65

query II rowsort
SELECT + - col0, ( col1 ) AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT 21 * 73 FROM tab0 AS cor0
----
1533
1533
1533

query I rowsort
SELECT DISTINCT col2 * 27 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT ALL + + 58 * - col0 * - CAST( - ( + col1 ) AS SIGNED ) + - 17 * col1 FROM tab2 cor0
----
-136935
-287133
-292589

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + + 58 * - col0 * - CAST ( - ( + col1 ) AS INTEGER ) + - 17 * col1 FROM tab2 cor0
----
-136935
-287133
-292589

query I rowsort
SELECT ALL + 13 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
13
13
13

query I rowsort
SELECT ALL - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT + 84, + ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
84
51
84
85
84
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 WHERE NOT - 42 + + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 42 + + - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - - col0
----

query I rowsort
SELECT - ( - 49 ) * col1 AS col0 FROM tab1
----
2303
245
686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT - CAST( + + col2 AS SIGNED ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3306
SELECT - CAST ( + + col2 AS INTEGER ) col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 14 * 94 FROM tab0
----
1316
1316
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT SUM( ALL + 10 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3308
SELECT SUM ( ALL + 10 ) FROM tab1
----
30

query I rowsort
SELECT - + col0 * + col2 + - - col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT ALL - - 7 * col1 * 18 + - col2 AS col1 FROM tab0 AS cor0
----
10159
2636
27

query I rowsort
SELECT DISTINCT - col1 * + 83 * - col0 FROM tab0 AS cor0
----
100845
151641
8051

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
47

query II rowsort
SELECT + col0, ( + col2 ) + 67 - + col0 FROM tab0
----
15
99
87
-10
97
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3315
SELECT - 37 DIV col2 + + col2 DIV CAST( - + 67 AS SIGNED ) + - - col1 + 0 AS col1 FROM tab2
----
50
67
77

skipif mysql # not compatible
query I rowsort label-3315
SELECT - 37 / col2 + + col2 / CAST ( - + 67 AS INTEGER ) + - - col1 + 0 AS col1 FROM tab2
----
50
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT CAST( NULL AS SIGNED ) + - + ( MAX( - ( - + col0 ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT CAST ( NULL AS INTEGER ) + - + ( MAX ( - ( - + col0 ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL + - COUNT( - ( 79 ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3317
SELECT ALL + - COUNT ( - ( 79 ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col2 + - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3318
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + - col2 + - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT + COUNT( ALL + - col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + COUNT ( ALL + - col2 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3320
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) < col2 + 8 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3320
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) < col2 + 8 + - col0 )
----

query I rowsort
SELECT - ( - 91 ) + + - col0 * + 21 AS col2 FROM tab1 AS cor0
----
-1694
-1820
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL ( + COUNT( * ) ) * + ( 89 ) FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL ( + COUNT ( * ) ) * + ( 89 ) FROM tab0 AS cor0
----
267

query III rowsort
SELECT * FROM tab2 WHERE - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + col2 + ( + 57 ) AS col0 FROM tab0
----
157
185
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - 80 * - + ( - + 36 ) FROM tab1
----
-2880
-2880
-2880

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT COUNT( DISTINCT + 20 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3328
SELECT COUNT ( DISTINCT + 20 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3329
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NOT NULL
----
0

query I rowsort
SELECT + 86 * + col2 FROM tab1 AS cor0
----
5074
5848
8256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT ALL CAST( COUNT( DISTINCT - + 50 ) AS SIGNED ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL CAST ( COUNT ( DISTINCT - + 50 ) AS INTEGER ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, col2, - col2, - - 90 )
----

query I rowsort
SELECT col1 * + col1 - - 38 FROM tab1 AS cor0
----
2247
234
63

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
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-3335
SELECT - COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col0 * + + 23 FROM tab2
----
1058
1472
1725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 42 col2, 7 AS col2 FROM tab2
----
-42
7
-42
7
-42
7

query I rowsort
SELECT - 74 + + - col1 FROM tab1 WHERE NOT + - 78 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT SUM( col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT SUM ( col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT DISTINCT + 39 * - col1 AS col1 FROM tab2
----
-1989
-2613
-3003

query I rowsort
SELECT - 47 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 17 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3343
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * ( - col1 ) - - + 7 - 62 + 61 <= + CAST( 31 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3343
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * ( - col1 ) - - + 7 - 62 + 61 <= + CAST ( 31 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT DISTINCT 26 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 26 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + col2 ) * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT + + 65 DIV 32 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3346
SELECT + + 65 / 32 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT 24 AS col1 FROM tab0 AS cor0 WHERE 32 IS NULL
----

query I rowsort
SELECT + 72 * + 92 FROM tab2 AS cor0
----
6624
6624
6624

query I rowsort
SELECT + + ( + ( + - col1 ) ) FROM tab2 AS cor0 WHERE 49 - + - 41 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - - COUNT( DISTINCT col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3350
SELECT - - COUNT ( DISTINCT col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query II rowsort
SELECT DISTINCT col0 + + col0, col2 * + 32 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
102
2358
170
1463
182
-2101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT ALL + - ( CAST( - AVG ( + 92 ) AS SIGNED ) ) * + + 11 + + MIN( ALL col0 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - + col0 * col1 - ( col2 ) + + col2 - 37, - 32, col2, 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + - ( CAST ( - AVG ( + 92 ) AS INTEGER ) ) * + + 11 + + MIN ( ALL col0 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - + col0 * col1 - ( col2 ) + + col2 - 37, - 32, col2, 1 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - 76 AS col2 FROM tab0 AS cor0
----
-55
-75
5

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE 2 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT DISTINCT ( SUM( - - 14 ) ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT ( SUM ( - - 14 ) ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL + CAST( CAST( 15 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + CAST ( CAST ( 15 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL COUNT( * ) - ( COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL COUNT ( * ) - ( COUNT ( * ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 55 col0 FROM tab2
----
-20
-9
9

query I rowsort
SELECT ALL + col0 - + col2 - - col2 FROM tab2
----
46
64
75

query I rowsort
SELECT 42 + + 12 FROM tab2 AS cor0
----
54
54
54

query II rowsort
SELECT DISTINCT - col1 AS col1, + 78 AS col1 FROM tab0 cor0
----
-1
78
-21
78
-81
78

query I rowsort
SELECT DISTINCT + 46 * - col0 / col0 * 83 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - - 91 ) col1 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + - COUNT( * ) + 76 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
67

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + - COUNT ( * ) + 76 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3366
SELECT ALL 6 col0, COUNT( * ) + + - 36 * 83 FROM tab2
----
6
-2985

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3366
SELECT ALL 6 col0, COUNT ( * ) + + - 36 * 83 FROM tab2
----
6
-2985

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT ALL + - 68, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL + - 68, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-68
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 7 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT - + ( MIN( + 47 ) ) AS col1 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT - + ( MIN ( + 47 ) ) AS col1 FROM tab2 AS cor0
----
-47

query III rowsort
SELECT + col2, col2, - + col1 - + 14 * col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to eea10b6ba5ecf3af1c02005b0246fb75

query II rowsort
SELECT DISTINCT col2 AS col1, 53 AS col2 FROM tab1 AS cor0
----
59
53
68
53
96
53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + + col2 * + 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT col0 + - col1 DIV - 20 FROM tab2
----
48
67
78

skipif mysql # not compatible
query I rowsort label-3374
SELECT col0 + - col1 / - 20 FROM tab2
----
48
67
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3375
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + CAST( NULL AS DECIMAL ) AND - - 3 + + + CAST( - CAST( col2 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3375
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + CAST ( NULL AS REAL ) AND - - 3 + + + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT col2 + + + 39 FROM tab1
----
107
135
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL 50 * COUNT( * ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 50 * COUNT ( * ) FROM tab0
----
150

query I rowsort
SELECT 73 + - 82 AS col1 FROM tab2
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col1 col0 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 51 + ( + - col2 )
----

query II rowsort
SELECT DISTINCT + 20 + - - 90 + + col0, - col0 AS col1 FROM tab1 AS cor0
----
161
-51
195
-85
201
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3382
SELECT ALL + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL col1 + ( - CAST( - col1 AS SIGNED ) ) * - 37 col1 FROM tab1
----
-1692
-180
-504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3383
SELECT ALL col1 + ( - CAST ( - col1 AS INTEGER ) ) * - 37 col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT ALL - SUM( DISTINCT - col0 ) * COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 - + 81 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - SUM ( DISTINCT - col0 ) * COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 - + 81 <= NULL
----
NULL

query I rowsort
SELECT - + 85 * 44 AS col2 FROM tab1 AS cor0
----
-3740
-3740
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL - - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT - 66 + - ( COUNT( ALL + + col0 ) ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT - 66 + - ( COUNT ( ALL + + col0 ) ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL + + col2 * col0 / col2 + + col0 + - - col2 AS col2 FROM tab0 WHERE col1 + + col2 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col0 - + col2 + + - 19 + - col0 * - - 27 AS col1 FROM tab0
----
-2486
-2835
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT ALL CAST( NULL AS SIGNED ) + ( AVG ( col1 ) ) * - MAX( ALL col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL CAST ( NULL AS INTEGER ) + ( AVG ( col1 ) ) * - MAX ( ALL col0 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 37 + + col2 + - 57 FROM tab2
----
20
3
38

query I rowsort
SELECT DISTINCT - 51 * + + col1 FROM tab1
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT MAX( ALL + col0 ) AS col0 FROM tab0 WHERE NULL = - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT MAX ( ALL + col0 ) AS col0 FROM tab0 WHERE NULL = - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 6, col0, - col2 )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + 61 * + 20 FROM tab2 AS cor0
----
1220
1220
1220

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3397
SELECT DISTINCT CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ), CAST( AVG ( - 61 ) AS SIGNED ) * + 68 AS col2 FROM tab0 AS cor0
----
NULL
-4148

skipif mysql # not compatible
query II rowsort label-3397
SELECT DISTINCT CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ), CAST ( AVG ( - 61 ) AS INTEGER ) * + 68 AS col2 FROM tab0 AS cor0
----
NULL
-4148

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT - - col0 DIV - 70 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT - - col0 / - 70 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT ALL 55 DIV 72 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL 55 / 72 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3400
SELECT - ( + + col1 ) DIV 55 AS col0, col1 * 94 FROM tab1
----
0
1316
0
4418
0
470

skipif mysql # not compatible
query II rowsort label-3400
SELECT - ( + + col1 ) / 55 AS col0, col1 * 94 FROM tab1
----
0
1316
0
4418
0
470

query II rowsort
SELECT + col1 * + - 47 * + 4 AS col0, - 45 AS col1 FROM tab0
----
-15228
-45
-188
-45
-3948
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT SUM( 58 ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT SUM ( 58 ) FROM tab0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT + ( + MIN( + 15 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + ( + MIN ( + 15 ) ) FROM tab0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3404
SELECT - CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT - CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - - COUNT( ALL + 70 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - - COUNT ( ALL + 70 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-15
-87
-97

query II rowsort
SELECT ALL + col2 AS col1, col2 * - 9 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col1 AND - col1
----
23
-207
40
-360
58
-522

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + + MAX( col2 ) col1 FROM tab1 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3410
SELECT + + MAX ( col2 ) col1 FROM tab1 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT CAST( NULL AS SIGNED ) * + 31 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT CAST ( NULL AS INTEGER ) * + 31 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( col0 + + col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( col0 + + col0 ) < NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT COUNT( * ) DIV - + COUNT( * ) + - - 71 AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( * ) / - + COUNT ( * ) + - - 71 AS col2 FROM tab2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT + COUNT( * ) DIV ( - 28 ) + ( - 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3414
SELECT + COUNT ( * ) / ( - 28 ) + ( - 80 ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT - + 33 + - col2 FROM tab0 AS cor0
----
-132
-43
-80

query I rowsort
SELECT DISTINCT 60 + 41 + + 6 FROM tab0
----
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * + ( - - 70 ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 9636bc2db4914c424fc177656e2b0548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3418
SELECT + MAX( + + col2 ) - + + CAST( + 98 AS SIGNED ) / ( - CAST( + COUNT( * ) AS SIGNED ) ) / - CAST( NULL AS DECIMAL ) + - + 35 * - + ( - - SUM( + col0 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT + MAX ( + + col2 ) - + + CAST ( + 98 AS INTEGER ) / ( - CAST ( + COUNT ( * ) AS INTEGER ) ) / - CAST ( NULL AS REAL ) + - + 35 * - + ( - - SUM ( + col0 ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 46 AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT DISTINCT - - col1 * - ( - + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT - - col1 * - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT + + 89, col2 FROM tab1 WHERE NOT - - 54 IS NULL
----
89
59
89
68
89
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3422
SELECT DISTINCT CAST( - 24 AS SIGNED ) * + + COUNT( * ) * + + MIN( ALL + + col0 ) * - - 29 FROM tab1
----
-106488

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT CAST ( - 24 AS INTEGER ) * + + COUNT ( * ) * + + MIN ( ALL + + col0 ) * - - 29 FROM tab1
----
-106488

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT - + ( + COUNT( ALL + + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3425
SELECT - + ( + COUNT ( ALL + + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 49 / + col1 NOT IN ( - col1 ) )
----

query I rowsort
SELECT + 4 * + + col0 * - + 79 * - - col2 FROM tab0
----
-222780
-274920
-3034548

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT COUNT( + 86 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT COUNT ( + 86 ) col1 FROM tab2
----
3

query I rowsort
SELECT + 71 * + col1 FROM tab1
----
3337
355
994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT + + ( - + CAST( NULL AS SIGNED ) ) * - col0 + col2 + - col2 / + + 66 + - - 46 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-3430
SELECT + + ( - + CAST ( NULL AS INTEGER ) ) * - col0 + col2 + - col2 / + + 66 + - - 46 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 + col0 + + col2 AS col2 FROM tab1 AS cor0
----
243
246
258

query I rowsort
SELECT - col0 * + 60 * - + col0 * 33 / - col1 + ( - 25 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 68 * - + col2 AS col2 FROM tab1
----
-4007
-4577
-6514

query I rowsort
SELECT - + ( col0 ) AS col2 FROM tab1 WHERE NULL BETWEEN + col0 * col1 / - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3435
SELECT + 24 * + col2 + col0 col1, + ( + - col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
1143
NULL
2473
NULL
327
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3435
SELECT + 24 * + col2 + col0 col1, + ( + - col1 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
1143
NULL
2473
NULL
327
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT - 37 + - + col0 DIV - - col1 col2 FROM tab1
----
-38
-40
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3436
SELECT - 37 + - + col0 / - - col1 col2 FROM tab1
----
-38
-40
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, ( + col2 ) + - 47 * col1 FROM tab2
----
51
-2374
67
-3091
77
-3579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, ( col1 ) * - col2 AS col2 FROM tab2
----
23
-1173
40
-3080
58
-3886

query I rowsort
SELECT 57 * + col1 + 0 FROM tab2
----
2907
3819
4389

query I rowsort
SELECT 63 * col2 AS col0 FROM tab0
----
2961
6237
630

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 42 > - 86 / col1
----
108
96

query I rowsort
SELECT - - 71 - + + col2 AS col0 FROM tab2 AS cor0
----
13
31
48

query I rowsort
SELECT 52 * - + col0 - + + col0 AS col2 FROM tab2
----
-2438
-3392
-3975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 10 col0 FROM tab1
----
15
24
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + + col2 + + 97 * - col0 col1 FROM tab0
----
-1407
-8428
-9309

query I rowsort
SELECT col2 + col1 * - + 99 FROM tab0
----
-2069
-7972
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
81

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
81

query I rowsort
SELECT ALL 5 - - col0 + ( + col0 ) FROM tab1 cor0
----
107
175
187

query I rowsort
SELECT DISTINCT + col0 * - col2 - col0 + - + col1 FROM tab0 AS cor0
----
-801
-9701
-978

query I rowsort
SELECT ALL - col0 * + + col2 - - - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT + 42 AS col1 FROM tab0 AS cor0 WHERE NOT 19 IS NULL
----
42
42
42

query I rowsort
SELECT - col1 * + col1 * + 59 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
2263653
5723
5806485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3453
SELECT 17 * + CAST( - + col2 AS SIGNED ) + + + 75, 80 AS col1 FROM tab1 cor0
----
-1081
80
-1557
80
-928
80

skipif mysql # not compatible
query II rowsort label-3453
SELECT 17 * + CAST ( - + col2 AS INTEGER ) + + + 75, 80 AS col1 FROM tab1 cor0
----
-1081
80
-1557
80
-928
80

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 32 + 27 IS NULL )
----

query I rowsort
SELECT DISTINCT - 57 * - - 23 * - col2 FROM tab0
----
129789
13110
61617

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT 49 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT DISTINCT - COUNT( col0 ) AS col2, + COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3458
SELECT DISTINCT - COUNT ( col0 ) AS col2, + COUNT ( * ) FROM tab1
----
-3
3

query I rowsort
SELECT - ( + - 67 ) FROM tab1
----
67
67
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 54 / - - col0 > - 21
----

query I rowsort
SELECT ALL + + 27 / - 82 * - + col1 * col1 * col0 + col2 + + + col1 + 70 * 61 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + col2 * col2 * + col1 * 16 AS col2 FROM tab2 AS cor0
----
1971200
3606208
431664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL - ( - col0 ) * - 70 AS col0 FROM tab1
----
-3570
-5950
-6370

query I rowsort
SELECT ALL 34 * + col2 * - col1 AS col2 FROM tab1
----
-10030
-108664
-45696

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - + col1 + + col2 + col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL + - COUNT( * ) * + - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL + - COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
12

query II rowsort
SELECT + 96 AS col2, - 99 FROM tab2 cor0
----
96
-99
96
-99
96
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - 10 + + COUNT( * ) * - - 84 FROM tab2 cor0 WHERE NOT col0 + + 92 / + + col2 * - col0 - - 8 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - 10 + + COUNT ( * ) * - - 84 FROM tab2 cor0 WHERE NOT col0 + + 92 / + + col2 * - col0 - - 8 IS NOT NULL
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3470
SELECT + 74 AS col0, + 22 * + - col1 / - CAST( NULL AS SIGNED ) / + col0 + - col2 FROM tab1 AS cor0
----
74
NULL
74
NULL
74
NULL

skipif mysql # not compatible
query II rowsort label-3470
SELECT + 74 AS col0, + 22 * + - col1 / - CAST ( NULL AS INTEGER ) / + col0 + - col2 FROM tab1 AS cor0
----
74
NULL
74
NULL
74
NULL

query II rowsort
SELECT + col1, col0 * - col2 * col1 * - 73 FROM tab1 cor0
----
14
5003712
47
21231028
5
1830475

query I rowsort
SELECT DISTINCT + + col2 + 83 AS col1 FROM tab2 AS cor0
----
106
123
141

query I rowsort
SELECT - + 24 * - 15 * col1 * + 44 * + + 14 FROM tab2 WHERE NULL IS NULL
----
11309760
14857920
17075520

query I rowsort
SELECT DISTINCT col1 + + 71 + - + 64 FROM tab1
----
12
21
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3475
SELECT ALL + CAST( NULL AS DECIMAL ) + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + CAST ( NULL AS REAL ) + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - - - 50 AS col2 FROM tab2
----
1
17
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + - 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT DISTINCT - 73 * ( + CAST( - 85 AS SIGNED ) ) * + 48 col1 FROM tab2
----
297840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3478
SELECT DISTINCT - 73 * ( + CAST ( - 85 AS INTEGER ) ) * + 48 col1 FROM tab2
----
297840

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + SUM( col2 ) + + + COUNT( * ) AS col1 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3479
SELECT + SUM ( col2 ) + + + COUNT ( * ) AS col1 FROM tab2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT DISTINCT - + 79 DIV + + col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT - + 79 / + + col2 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT col2 + + - 99 - - col2 AS col1 FROM tab2 AS cor0
----
-19
-53
17

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT ALL ( + col2 ) + - 2 + - + 47 + + col0 AS col0 FROM tab1
----
110
95
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3484
SELECT ALL COUNT( * ) AS col2, COUNT( ALL col1 ) - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3484
SELECT ALL COUNT ( * ) AS col2, COUNT ( ALL col1 ) - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * + ( - + col1 ) BETWEEN - col2 / + + 46 + - - 74 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 74 col1 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3487
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col2 NOT BETWEEN + + 82 AND ( + - 0 )
----

skipif mysql # not compatible
query III rowsort label-3487
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col2 NOT BETWEEN + + 82 AND ( + - 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT DISTINCT - CAST( + MIN( DISTINCT - - col1 ) AS SIGNED ) * + + COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - CAST ( + MIN ( DISTINCT - - col1 ) AS INTEGER ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT DISTINCT - 87, ( 68 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-87
-204

skipif mysql # not compatible
query II rowsort label-3490
SELECT DISTINCT - 87, ( 68 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-87
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( + - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( + - col0 ) FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT - 67 AS col1, - col1 FROM tab0
----
-67
-1
-67
-21
-67
-81

query II rowsort
SELECT ALL col1, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL COUNT( * ) * - - 49 AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL COUNT ( * ) * - - 49 AS col1 FROM tab2
----
147

query I rowsort
SELECT DISTINCT - 42 * - + 99 AS col0 FROM tab1
----
4158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10 AS col1, - 68 col2 FROM tab1
----
10
-68
10
-68
10
-68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3497
SELECT CAST( + + 90 AS DECIMAL ) / + col2 - - CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT CAST ( + + 90 AS REAL ) / + col2 - - CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL + MIN( ALL + + 80 ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + MIN ( ALL + + 80 ) AS col0 FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT - - col2 / + - CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3499
SELECT - - col2 / + - CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 - - col0 * col2 * + 68 + + ( - 85 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 48 * + 24 FROM tab1 AS cor0
----
1152

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL COUNT( * ) + + + 74 FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL COUNT ( * ) + + + 74 FROM tab0 cor0
----
77

query I rowsort
SELECT ALL - col0 + - 23 AS col1 FROM tab0
----
-110
-120
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3506
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV + 10 + + col2 DIV - col2 AS col2 FROM tab2
----
-6
-7
-8

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / + 10 + + col2 / - col2 AS col2 FROM tab2
----
-6
-7
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT ALL 16 DIV + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL 16 / + 67 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 / 16 + + + col0 < col0 * - - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL 65 + + COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL 65 + + COUNT ( * ) FROM tab2
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + 48 col1 FROM tab0 WHERE NOT + col2 * - - 50 = NULL
----

query I rowsort
SELECT ALL - col0 * - - ( ( col2 ) ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT ALL + CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT DISTINCT COUNT( * ), MIN( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-3513
SELECT DISTINCT COUNT ( * ), MIN ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
3
10

query I rowsort
SELECT col1 * - 3 + + col0 - + + col0 AS col0 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - 73 * - MIN( DISTINCT - 36 * + col0 ) FROM tab1
----
-239148

skipif mysql # not compatible
query I rowsort label-3515
SELECT - 73 * - MIN ( DISTINCT - 36 * + col0 ) FROM tab1
----
-239148

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col1 + + col1 * 93 = + col1
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - col0 IN ( 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( ( + 16 ) ) FROM tab2
----
16

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( col0 ) NOT IN ( + col0 + 3 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 40 * col1 )
----

query I rowsort
SELECT 33 AS col0 FROM tab2 WHERE NOT col1 * + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + SUM( DISTINCT 41 ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3522
SELECT + SUM ( DISTINCT 41 ) AS col0 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ( COUNT( DISTINCT col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3523
SELECT ( COUNT ( DISTINCT col2 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL MAX( ALL col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL MAX ( ALL col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL + CAST( col2 AS SIGNED ) + - col2 * - col1 AS col1 FROM tab0 WHERE ( 11 ) <= 9
----

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + CAST ( col2 AS INTEGER ) + - col2 * - col1 AS col1 FROM tab0 WHERE ( 11 ) <= 9
----

query I rowsort
SELECT - col0 * + 4 + - col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 - 42 AS col0 FROM tab1
----
-28
-37
5

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 57 ) / col1 NOT IN ( - col1 * + col0 )
----

query I rowsort
SELECT + col0 / 80 AS col1 FROM tab1 WHERE NOT + 0 * + col2 + 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT SUM( ALL - col2 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-3530
SELECT SUM ( ALL - col2 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL - CAST( NULL AS SIGNED ) + - 17 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - CAST ( NULL AS INTEGER ) + - 17 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL COUNT( * ) - - COUNT( DISTINCT - col0 ) col0 FROM tab1 WHERE ( 23 ) NOT IN ( 61 * 19 )
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT ALL COUNT ( * ) - - COUNT ( DISTINCT - col0 ) col0 FROM tab1 WHERE ( 23 ) NOT IN ( 61 * 19 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT + 32 * - col2 + + col2 * col2 FROM tab0 WHERE NOT ( CAST( col2 AS SIGNED ) + 43 * col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT + 32 * - col2 + + col2 * col2 FROM tab0 WHERE NOT ( CAST ( col2 AS INTEGER ) + 43 * col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3535
SELECT MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3536
SELECT ALL + CAST( - ( - COUNT( * ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 * col1 ) BETWEEN NULL AND + 24 * + col1
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * col2 + - 33 * - col2 col0 FROM tab2 AS cor0
----
2576
4480
6496

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT MAX( 91 ) * + 22 + - 24 AS col0 FROM tab1 AS cor0
----
1978

skipif mysql # not compatible
query I rowsort label-3539
SELECT MAX ( 91 ) * + 22 + - 24 AS col0 FROM tab1 AS cor0
----
1978

query I rowsort
SELECT + 3 + + col0 AS col2 FROM tab1 AS cor0
----
54
88
94

query I rowsort
SELECT 74 + + 8 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - 68 / + ( CAST( NULL AS SIGNED ) * + 83 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - 68 / + ( CAST ( NULL AS INTEGER ) * + 83 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( - col2 )
----

query I rowsort
SELECT ALL 4 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 - 39 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + + 22 DIV + col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT + + 22 / + col2 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT + ( - CAST( NULL AS SIGNED ) ) / - 57 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT + ( - CAST ( NULL AS INTEGER ) ) / - 57 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT DISTINCT - + col0 + - 75 DIV col2 FROM tab0 AS cor0
----
-16
-94
-97

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - + col0 + - 75 / col2 FROM tab0 AS cor0
----
-16
-94
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col1 + + 36
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE col1 >= - 55
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL - + 39 + SUM( col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - + 39 + SUM ( col2 + - col0 ) AS col1 FROM tab2 AS cor0
----
-103

query I rowsort
SELECT ALL - 59 + + 40 * col0 AS col2 FROM tab1 AS cor0
----
1981
3341
3581

query I rowsort
SELECT + 40 - - col1 FROM tab1 AS cor0
----
45
54
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 25 * 11 - COUNT( * ) AS col1 FROM tab0
----
272

skipif mysql # not compatible
query I rowsort label-3555
SELECT 25 * 11 - COUNT ( * ) AS col1 FROM tab0
----
272

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 10 - + col0 AS col0 FROM tab0
----
-87
123
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT 60 + + + ( + col2 ) + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT 60 + + + ( + col2 ) + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 76 * col2 + - col1 <= ( + 89 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col1 * 32 BETWEEN ( NULL ) AND ( + 23 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL COUNT( * ) - + 56 AS col2 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL COUNT ( * ) - + 56 AS col2 FROM tab2
----
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3562
SELECT 75 + - CAST( ( - col0 ) AS SIGNED ) DIV col0 AS col1 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-3562
SELECT 75 + - CAST ( ( - col0 ) AS INTEGER ) / col0 AS col1 FROM tab2
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT col2 * + - 80 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT col2 * + - 80 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col1 IS NULL
----

query I rowsort
SELECT + 90 * - col0 + - col0 * - col2 FROM tab2
----
-2400
-3082
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT ( + col2 ) - - col0 DIV col1 AS col2 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT ( + col2 ) - - col0 / col1 AS col2 FROM tab1
----
69
76
99

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT - 14 DIV - 89 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT - 14 / - 89 AS col0 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT + col2 DIV - ( - col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT + col2 / - ( - col1 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT ALL + 26, + COUNT( * ) AS col1 FROM tab0
----
26
3

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL + 26, + COUNT ( * ) AS col1 FROM tab0
----
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE NULL <= - col2
----

query I rowsort
SELECT ALL - col0 * 9 * + 59 AS col1 FROM tab2
----
-24426
-33984
-39825

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT + COUNT( col0 ) * + - 16 AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT + COUNT ( col0 ) * + - 16 AS col1 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - COUNT( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, + col1 * - col2 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + 66 * - col1 + - ( 20 ) <= NULL OR NOT NULL NOT BETWEEN ( col2 ) AND + col1 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 75 NOT BETWEEN - - col2 AND ( NULL ) AND ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= + col0 * col0 AND NULL IS NOT NULL
----

query I rowsort
SELECT col0 + - 11 AS col1 FROM tab0
----
4
76
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT COUNT( * ) FROM tab0 WHERE NOT + + col1 * + col2 NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT COUNT ( * ) FROM tab0 WHERE NOT + + col1 * + col2 NOT BETWEEN NULL AND col1
----
0

query II rowsort
SELECT 66 + + - 69, - 27 - 49 * - col1 AS col2 FROM tab2
----
-3
2472
-3
3256
-3
3746

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab1 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT - 46 DIV + col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3584
SELECT - 46 / + col0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + ( - SUM( ALL + 51 ) ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + ( - SUM ( ALL + 51 ) ) FROM tab0
----
-153

onlyif mysql # DIV for integer division: 
query II rowsort label-3586
SELECT - col0 DIV - col2, + 45 AS col1 FROM tab1 AS cor0
----
0
45
1
45
1
45

skipif mysql # not compatible
query II rowsort label-3586
SELECT - col0 / - col2, + 45 AS col1 FROM tab1 AS cor0
----
0
45
1
45
1
45

query I rowsort
SELECT ALL + - ( - 16 ) AS col0 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT ALL - - col1 + - - 77 FROM tab1 AS cor0
----
124
82
91

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE - 75 NOT BETWEEN 31 * - col0 - col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col0 * 4 AS col1 FROM tab2
----
-184
-256
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - COUNT( - - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - COUNT ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3593
SELECT * FROM tab1 AS cor0 WHERE + col2 + + 30 + + - CAST( - col1 AS DECIMAL ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3593
SELECT * FROM tab1 AS cor0 WHERE + col2 + + 30 + + - CAST ( - col1 AS REAL ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT - col1 col0 FROM tab1 cor0 WHERE NULL BETWEEN ( col0 * 32 ) AND + col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT - col1 col0 FROM tab1 cor0 WHERE NULL BETWEEN ( col0 * 32 ) AND + col0 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL - 91 * - ( - 88 ) * - + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT ALL - 91 * - ( - 88 ) * - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT 29 DIV MAX( - + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT 29 / MAX ( - + col2 ) FROM tab1
----
0

query I rowsort
SELECT - ( + + 44 ) AS col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-44
-44
-44

query II rowsort
SELECT col0, - 32 FROM tab0
----
15
-32
87
-32
97
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3601
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT ALL col0 - + + col0 DIV - col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL col0 - + + col0 / - col0 FROM tab1
----
52
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT DISTINCT 84 - - CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT 84 - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 55, col1 col0 FROM tab1 AS cor0
----
-55
14
-55
47
-55
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + 5 + - + 33 / + ( + 1 )
----

query I rowsort
SELECT DISTINCT - 49 FROM tab0 AS cor0 WHERE + 2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT 34, - 8 * - col2 AS col1 FROM tab2 AS cor0
----
34
184
34
320
34
464

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 92 ) >= col2
----

query I rowsort
SELECT 46 * - col1 FROM tab1 cor0
----
-2162
-230
-644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) * + + col2 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3611
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) * + + col2 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT + 59 DIV - - 63 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 59 / - - 63 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col0 * + 75 AS col0, col2 FROM tab0 AS cor0
----
1125
47
6525
10
7275
99

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE 29 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * + col2 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab1 WHERE - col1 < ( - + 24 )
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 54 NOT IN ( 94 * - col1 - - + 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col1 + col0 FROM tab0 WHERE NOT 66 IS NULL
----
-66
66
96

query I rowsort
SELECT ALL - 68 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL + col1 * 73 DIV - - col1 FROM tab1 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + col1 * 73 / - - col1 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL - CAST( + MIN( ALL - col1 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * ( + COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - CAST ( + MIN ( ALL - col1 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT NULL <> 76 * col0 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 64 * + col0 col0 FROM tab2 AS cor0
----
2893
4019
4733

query II rowsort
SELECT DISTINCT 31 AS col2, col0 AS col2 FROM tab2
----
31
46
31
64
31
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - MIN( - 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - MIN ( - 6 ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT 38 * col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, col1 col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + 22 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 63 AND col1
----

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 * 26 * - 64 AND - - col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT - col2 / - col2 * - CAST( NULL AS SIGNED ) + + 69 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - col2 / - col2 * - CAST ( NULL AS INTEGER ) + + 69 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + - 58 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT - - 99 DIV SUM( DISTINCT - col2 ) + - - 66 DIV + MAX( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - - 99 / SUM ( DISTINCT - col2 ) + - - 66 / + MAX ( col2 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 14 col2 FROM tab1 AS cor0 WHERE - col2 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT - 2 * - ( + MAX( 66 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
132

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - 2 * - ( + MAX ( 66 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
132

query I rowsort
SELECT + col0 * - 84 FROM tab1
----
-4284
-7140
-7644

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + 6 NOT BETWEEN - col2 + + 37 AND + + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - COUNT( ( - - 84 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3637
SELECT - COUNT ( ( - - 84 ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 >= + + 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col2 + + col2 AS col1, 26 FROM tab0 AS cor0
----
198
26
20
26
94
26

query II rowsort
SELECT - col2 - - + col1, 44 AS col1 FROM tab0 AS cor0
----
-98
44
11
44
34
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < col1 * - 12
----

query I rowsort
SELECT + 92 - + ( col2 ) FROM tab1 AS cor0
----
-4
24
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + col1 - - col2 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT 72 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT 72 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3647
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3647
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col2 + + col1 + - 56 - - + 80
----

query I rowsort
SELECT 91 * - + col0 + 41 * - 69 FROM tab2
----
-7015
-8653
-9654

query I rowsort
SELECT ALL + col2 * + 97 * - 40 AS col2 FROM tab0
----
-182360
-384120
-38800

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= 75 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + + col0 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 94 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * - col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1479
1649
255

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3656
SELECT col0, - 95 DIV - col1 col2 FROM tab0
----
15
1
87
4
97
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3656
SELECT col0, - 95 / - col1 col2 FROM tab0
----
15
1
87
4
97
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT DISTINCT 4 * 78 DIV - 21 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT 4 * 78 / - 21 FROM tab1 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - - ( - ( col2 ) ) col2, col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
23
0
40
0
58

query I rowsort
SELECT ALL + col1 + - + col2 * - - col1 AS col1 FROM tab1 cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL - ( 63 ) * + 62 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + - ( + + 94 ) * + col0 - + 62 + - col1 FROM tab1 AS cor0
----
-4870
-8057
-8663

query I rowsort
SELECT ALL + 66 + + col0 AS col1 FROM tab0 AS cor0
----
153
163
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + - col0 col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT col2 + - col1 * + + col1 FROM tab2
----
-2578
-4431
-5889

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE - - col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL <> + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT ALL + MAX( col1 ) col0, - 84 FROM tab0
----
81
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3667
SELECT ALL + MAX ( col1 ) col0, - 84 FROM tab0
----
81
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 97 AS col2 FROM tab1
----
5723
6596
9312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3670
SELECT - 24 / + - CAST( NULL AS SIGNED ) * + 91, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3670
SELECT - 24 / + - CAST ( NULL AS INTEGER ) * + 91, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + 37 / + ( 30 ) + + - 69 * - col1 FROM tab0 AS cor0 WHERE NULL < 98 * + col0 / + + col2
----

query II rowsort
SELECT DISTINCT + 37 AS col2, 1 FROM tab2 AS cor0 WHERE 87 NOT IN ( col1, col0 )
----
37
1

query I rowsort
SELECT DISTINCT 11 + - + 73 + + 91 FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + + COUNT( * ) + + 12 * + ( - + ( - + 13 ) ) AS col1 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + + COUNT ( * ) + + 12 * + ( - + ( - + 13 ) ) AS col1 FROM tab2 AS cor0
----
159

query I rowsort
SELECT + 6 * + - col0 - + col1 + col2 FROM tab2 AS cor0
----
-304
-421
-459

query I rowsort
SELECT DISTINCT 7 * + col2 + col2 FROM tab1 AS cor0
----
472
544
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + 48 + col2 * - col0 + + col1 AS col0 FROM tab2
----
23
-959
40
-2435
58
-4235

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( + + 88 ) AND ( NULL )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3679
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL NOT IN ( CAST( NULL AS SIGNED ), col0 + + col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-3679
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL NOT IN ( CAST ( NULL AS INTEGER ), col0 + + col2 ) ) )
----

query I rowsort
SELECT - 24 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - 44 * col0 AS col2 FROM tab1
----
-2244
-3740
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) * - col1 * 8 + 1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) * - col1 * 8 + 1 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + ( - col1 ) + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT DISTINCT + COUNT( ALL - - col0 ) col1, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3685
SELECT DISTINCT + COUNT ( ALL - - col0 ) col1, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3686
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3686
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) BETWEEN - col1 AND NULL
----

query II rowsort
SELECT ALL ( - 83 ), col1 FROM tab0 AS cor0
----
-83
1
-83
21
-83
81

query I rowsort
SELECT 84 + - 22 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + 69 + - + 40 FROM tab1 cor0 WHERE NOT + col2 = + 11
----
29

query I rowsort
SELECT DISTINCT col1 + - - 54 AS col1 FROM tab0 AS cor0
----
135
55
75

query I rowsort
SELECT + + 68 * col2 FROM tab0 AS cor0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + - MAX( ALL ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3692
SELECT + - MAX ( ALL ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT SUM( + 0 ) + 15 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT SUM ( + 0 ) + 15 FROM tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 73 col2 FROM tab1 AS cor0
----
26
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT 41 + 80 AS col1 FROM tab1 AS cor0
----
121

query I rowsort
SELECT DISTINCT - - col0 * + + col1 + + 15 FROM tab0 AS cor0
----
112
1230
1842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * + - col2 * - col0 col1 FROM tab2
----
-209920
-356700
-86756

query I rowsort
SELECT + ( - - 80 ) FROM tab0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT ALL + 10 * - CAST( - + col2 AS SIGNED ) FROM tab2
----
230
400
580

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 10 * - CAST ( - + col2 AS INTEGER ) FROM tab2
----
230
400
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT - col1 * + col1 AS col1 FROM tab1 WHERE - + 56 + + col0 > col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3701
SELECT - col1 * + col1 AS col1 FROM tab1 WHERE - + 56 + + col0 > col2 * CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 10 * - col1 col0 FROM tab1
----
-4250
-42770
-7140

query I rowsort
SELECT + 89 + 56 AS col0 FROM tab2
----
145
145
145

query I rowsort
SELECT DISTINCT - col1 * 77 FROM tab1
----
-1078
-3619
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT 55 * + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + col2 * - + 60 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT 55 * + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + col2 * - + 60 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 33, + ( col0 ) AS col2 FROM tab2
----
33
46
33
64
33
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - col1, - col1 - + col2 col1 FROM tab1 AS cor0
----
0
-110
0
-115
0
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, + col1 * col0 * + 33 * - - 54 FROM tab2 AS cor0
----
46
4180572
64
8781696
75
8954550

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT ALL + 18 - 48 DIV - col0 * + 59 FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + 18 - 48 / - col0 * + 59 FROM tab1
----
18
18
18

query I rowsort
SELECT DISTINCT 42 - - col2 FROM tab0 AS cor0
----
141
52
89

query II rowsort
SELECT ( - col2 ), - col0 AS col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT ALL - 54 * + - 59 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
188059
216739
305907

query I rowsort
SELECT ALL 40 AS col1 FROM tab0 AS cor0 WHERE NOT - 0 IS NULL
----
40
40
40

query I rowsort
SELECT DISTINCT + 35 * col1 FROM tab1
----
1645
175
490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT - COUNT( * ) DIV SUM( DISTINCT - 90 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT - COUNT ( * ) / SUM ( DISTINCT - 90 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT COUNT( DISTINCT + - 98 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT COUNT ( DISTINCT + - 98 ) AS col0 FROM tab2
----
1

query II rowsort
SELECT col0, + col0 + - - col2 * col2 FROM tab1
----
51
9267
85
3566
91
4715

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - SUM( DISTINCT 50 ) AS col2 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-3719
SELECT - SUM ( DISTINCT 50 ) AS col2 FROM tab2
----
-50

query II rowsort
SELECT DISTINCT + 44 AS col1, col1 AS col1 FROM tab0 AS cor0
----
44
1
44
21
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - ( - + MAX( ( + ( col0 ) ) ) ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - ( - + MAX ( ( + ( col0 ) ) ) ) AS col1 FROM tab0
----
97

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 AS cor0 WHERE 44 > NULL
----

query I rowsort
SELECT - ( + + 85 ) * col1 + + col0 FROM tab0 AS cor0
----
-1698
-6870
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3724
SELECT DISTINCT 45 / col0 + CAST( NULL AS DECIMAL ) + + col1 - - + col2 * - col1 + - + 19 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT 45 / col0 + CAST ( NULL AS REAL ) + + col1 - - + col2 * - col1 + - + 19 AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + - 29 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + - 29 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 51 < + col1
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT - 13 + + COUNT( * ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - 13 + + COUNT ( * ) AS col0 FROM tab1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT COUNT( * ) - - + CAST( + 60 AS SIGNED ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT COUNT ( * ) - - + CAST ( + 60 AS INTEGER ) AS col0 FROM tab2
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col1 AS col2 FROM tab1
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT - - 70 + - col1 FROM tab1 WHERE - col2 * + + col2 * 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3732
SELECT ALL - 23, COUNT( * ) col2 FROM tab0 AS cor0
----
-23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3732
SELECT ALL - 23, COUNT ( * ) col2 FROM tab0 AS cor0
----
-23
3

query II rowsort
SELECT DISTINCT - 38 AS col2, 96 FROM tab2 AS cor0
----
-38
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT - CAST( NULL AS SIGNED ) + - 44 + - - col2 * + ( 91 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT - CAST ( NULL AS INTEGER ) + - 44 + - - col2 * + ( 91 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( ( - col2 ) > + col0 / - 15 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT + 42 * - + CAST( NULL AS SIGNED ) * - col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3736
SELECT + 42 * - + CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL - SUM( - ( + 96 ) ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - SUM ( - ( + 96 ) ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT ALL - - col0 * - col1 * 26 AS col1 FROM tab0 AS cor0
----
-2522
-31590
-47502

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT - + col0 AS col2, - 15 * - 11 AS col1 FROM tab1 cor0
----
-51
165
-85
165
-91
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - COUNT( + - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3742
SELECT - COUNT ( + - col1 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + col2 * + col2 * - 86 AS col1, col1 + col2 FROM tab1
----
-299366
64
-397664
115
-792576
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT 80 * + COUNT( * ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3744
SELECT 80 * + COUNT ( * ) FROM tab2
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL - col1 / - + CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - col1 / - + CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col0 NOT BETWEEN + col2 AND 51
----

query I rowsort
SELECT ( - col2 ) * + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT + col2 >= - col2 * - col0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + + MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3749
SELECT + + MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - ( + - col1 ) + 0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 + ( - - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 47 + - 58 IS NULL
----

query I rowsort
SELECT + col1 * - 95 FROM tab2 cor0
----
-4845
-6365
-7315

query I rowsort
SELECT + - 28 * col1 FROM tab1 AS cor0
----
-1316
-140
-392

query II rowsort
SELECT col0 AS col2, - 13 FROM tab2 AS cor0
----
46
-13
64
-13
75
-13

query I rowsort
SELECT + 97 * - ( - col2 ) + - col2 + col2 FROM tab0 AS cor0
----
4559
9603
970

query I rowsort
SELECT - + col0 * - 56 AS col1 FROM tab2 AS cor0
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT 94 - COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
91
3

skipif mysql # not compatible
query II rowsort label-3759
SELECT 94 - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
91
3

query I rowsort
SELECT ALL col0 * - - ( + 68 ) + + - col0 AS col1 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT col0 * + col0 + 46 FROM tab2
----
2162
4142
5671

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3762
SELECT * FROM tab2 WHERE + col0 IN ( + col2, + CAST( NULL AS SIGNED ), - ( - col1 ) + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3762
SELECT * FROM tab2 WHERE + col0 IN ( + col2, + CAST ( NULL AS INTEGER ), - ( - col1 ) + + + col1 )
----

query I rowsort
SELECT col2 + + col2 * + col0 + - ( - 30 ) FROM tab2
----
1111
2630
4438

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 NOT IN ( + + col2 * col0 * + + col1 + + - 50, col0 )
----

query I rowsort
SELECT + col2 + + - 56 AS col0 FROM tab0 AS cor0
----
-46
-9
43

query I rowsort
SELECT + - col2 * - + 47 AS col2 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT ALL + col1 + + ( - - col2 ) + + + col1 FROM tab2 AS cor0
----
125
192
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + SUM( - col1 ) * - ( - ( + - 4 ) ) FROM tab0 AS cor0
----
412

skipif mysql # not compatible
query I rowsort label-3768
SELECT + SUM ( - col1 ) * - ( - ( + - 4 ) ) FROM tab0 AS cor0
----
412

query I rowsort
SELECT ALL + col1 * + + col1 + - + ( col1 ) AS col2 FROM tab1 AS cor0
----
182
20
2162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3770
SELECT * FROM tab2 WHERE NOT + 0 IN ( + 91, 89, - CAST( NULL AS SIGNED ), col2 * 92, col0 )
----

skipif mysql # not compatible
query III rowsort label-3770
SELECT * FROM tab2 WHERE NOT + 0 IN ( + 91, 89, - CAST ( NULL AS INTEGER ), col2 * 92, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + 41 * + COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + 41 * + COUNT ( * ) FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + MIN( ALL + - 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3772
SELECT + MIN ( ALL + - 90 ) FROM tab2
----
-90

query I rowsort
SELECT - + ( - col0 ) * - 64 AS col0 FROM tab1 AS cor0
----
-3264
-5440
-5824

query I rowsort
SELECT DISTINCT + 69 * + col0 FROM tab2 AS cor0
----
3174
4416
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - 59 * + MAX( DISTINCT col0 ) + 11 * + MAX( - 23 ) FROM tab2 AS cor0
----
-4678

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 59 * + MAX ( DISTINCT col0 ) + 11 * + MAX ( - 23 ) FROM tab2 AS cor0
----
-4678

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - + col1 )
----

query I rowsort
SELECT + - col2 * - 72 + 50 AS col0 FROM tab2 AS cor0
----
1706
2930
4226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 0 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - MAX( - col1 ) * 26 AS col2 FROM tab1 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - MAX ( - col1 ) * 26 AS col2 FROM tab1 AS cor0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT CAST( - 58 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-3781
SELECT CAST ( - 58 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + 45 * + - COUNT( * ) col0 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3782
SELECT DISTINCT + 45 * + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab1 cor0
----
47

query I rowsort
SELECT ALL 99 * col2 FROM tab0 cor0
----
4653
9801
990

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL COUNT( * ) * + + MIN( + ( - 66 ) ) AS col0 FROM tab2 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL COUNT ( * ) * + + MIN ( + ( - 66 ) ) AS col0 FROM tab2 cor0
----
-198

query I rowsort
SELECT DISTINCT col1 * + col2 * 87 AS col0 FROM tab2
----
102051
267960
338082

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3788
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( ( + 43 ), + CAST( NULL AS SIGNED ), - 9 )
----

skipif mysql # not compatible
query III rowsort label-3788
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( ( + 43 ), + CAST ( NULL AS INTEGER ), - 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT 32 DIV - + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT 32 / - + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT DISTINCT 66, COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1
----
66
6

skipif mysql # not compatible
query II rowsort label-3790
SELECT DISTINCT 66, COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1
----
66
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3791
SELECT + CAST( NULL AS DECIMAL ) AS col1, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3791
SELECT + CAST ( NULL AS REAL ) AS col1, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT - 28 AS col2, col1 FROM tab0
----
-28
1
-28
21
-28
81

query II rowsort
SELECT col2 AS col1, 9 FROM tab1
----
59
9
68
9
96
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 48 * - + col2 + + 67 * + 0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) - - 37 FROM tab0 AS cor0 WHERE - 47 * + col2 * - + col0 + col2 IS NULL
----
0
37

skipif mysql # not compatible
query II rowsort label-3795
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) - - 37 FROM tab0 AS cor0 WHERE - 47 * + col2 * - + col0 + col2 IS NULL
----
0
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT COUNT( ALL - - CAST( - + col0 AS SIGNED ) ) AS col0 FROM tab0 WHERE - 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3796
SELECT COUNT ( ALL - - CAST ( - + col0 AS INTEGER ) ) AS col0 FROM tab0 WHERE - 75 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT 74 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT 74 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT MAX( DISTINCT - 41 ) AS col1 FROM tab0, tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT MAX ( DISTINCT - 41 ) AS col1 FROM tab0, tab1 AS cor0
----
-41

query I rowsort
SELECT + col2 + - 22 + col1 FROM tab1 AS cor0
----
42
88
93

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) > + - ( - col2 )
----

query I rowsort
SELECT ALL + 2 + - - 99 AS col1 FROM tab2 AS cor0
----
101
101
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3802
SELECT DISTINCT + + COUNT( * ) DIV + + SUM( ALL - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + + COUNT ( * ) / + + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT 75 + - col1 * - 94 AS col0, + col0 + + col0 FROM tab1 AS cor0
----
1391
102
4493
182
545
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3804
SELECT - SUM( + - CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3804
SELECT - SUM ( + - CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - MIN( ALL + 42 ) + - COUNT( + col2 ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - MIN ( ALL + 42 ) + - COUNT ( + col2 ) AS col2 FROM tab1
----
-45

query I rowsort
SELECT DISTINCT col1 - + + 59 AS col0 FROM tab0
----
-38
-58
22

query I rowsort
SELECT ALL col2 * - + ( - + col1 ) + - 15 AS col0 FROM tab0
----
195
3792
84

query II rowsort
SELECT - col2, ( + + 8 ) AS col0 FROM tab1
----
-59
8
-68
8
-96
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT + COUNT( * ) AS col1, + MAX( ALL - - 58 ) AS col0 FROM tab0
----
3
58

skipif mysql # not compatible
query II rowsort label-3809
SELECT + COUNT ( * ) AS col1, + MAX ( ALL - - 58 ) AS col0 FROM tab0
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT + COUNT( + + 58 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3810
SELECT + COUNT ( + + 58 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + + col0 * - 72 AS col2 FROM tab2 cor0
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + COUNT( * ) * 39 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + COUNT ( * ) * 39 FROM tab1 AS cor0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL + - col0 * + 23 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-1058
-1472
-1725

query I rowsort
SELECT + col2 * ( + - col1 ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ( - SUM( + col1 ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3816
SELECT ( - SUM ( + col1 ) ) AS col0 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * + - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL 60 * - COUNT( * ) * + COUNT( * ) * SUM( DISTINCT - ( - col1 ) ) FROM tab2 cor0
----
-105300

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL 60 * - COUNT ( * ) * + COUNT ( * ) * SUM ( DISTINCT - ( - col1 ) ) FROM tab2 cor0
----
-105300

query I rowsort
SELECT + + 25 FROM tab1 cor0
----
25
25
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + col2 + - - ( + 43 ) + + col0 + - + ( + 92 ) * + - ( - col0 ) + + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT ALL 65 DIV + MIN( 42 ) AS col0 FROM tab2, tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL 65 / + MIN ( 42 ) AS col0 FROM tab2, tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT - COUNT( * ) * ( + - COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3824
SELECT - COUNT ( * ) * ( + - COUNT ( * ) ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + 18 * + MIN( DISTINCT - 45 ) AS col1 FROM tab1 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 18 * + MIN ( DISTINCT - 45 ) AS col1 FROM tab1 AS cor0
----
-810

query I rowsort
SELECT + - col1 + col2 * + - ( + col0 ) * + 20 FROM tab0 AS cor0
----
-14181
-17421
-192061

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + 6 + COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 6 + COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + + COUNT( * ) + + ( + 53 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3828
SELECT + + COUNT ( * ) + + ( + 53 ) FROM tab0 AS cor0
----
56

query I rowsort
SELECT - col0 * + + 73 + + col0 + + col1 FROM tab0 AS cor0
----
-6243
-6983
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT COUNT( * ) + + 89 AS col2 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3830
SELECT COUNT ( * ) + + 89 AS col2 FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT + 92 * - - col0 FROM tab2
----
4232
5888
6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3832
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - col2 * + 39 AS col2 FROM tab1
----
-2301
-2652
-3744

query I rowsort
SELECT ALL 71 * + + col1 AS col2 FROM tab2 AS cor0
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + - MIN( + 14 ) * + COUNT( * ) + - MIN( col1 ) * 2 AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + - MIN ( + 14 ) * + COUNT ( * ) + - MIN ( col1 ) * 2 AS col2 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 ) FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 > ( + ( - col1 ) ) + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT - CAST( col2 AS SIGNED ) * + + 25 AS col0 FROM tab2 AS cor0
----
-1000
-1450
-575

skipif mysql # not compatible
query I rowsort label-3838
SELECT - CAST ( col2 AS INTEGER ) * + + 25 AS col0 FROM tab2 AS cor0
----
-1000
-1450
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT + col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 57 - + 60 AS col0 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT ALL 59 DIV + 34 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL 59 / + 34 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + ( - 30 ) * - - 78 - - 47 + + col0 AS col0 FROM tab0 AS cor0
----
-2196
-2206
-2278

query I rowsort
SELECT ALL - - col2 + + + col2 + 82 AS col0 FROM tab2 AS cor0
----
128
162
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT DISTINCT CAST( - 90 AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT CAST ( - 90 AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT COUNT( * ) - - 29 - MAX( ALL - col0 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT COUNT ( * ) - - 29 - MAX ( ALL - col0 ) FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE + + 43 * + + col2 * 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE + + 43 * + + col2 * 2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - + col1 - - col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT + 70 + col1 FROM tab1
----
117
75
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 20
----

query I rowsort
SELECT ( 50 ) * + col2 FROM tab2 AS cor0
----
1150
2000
2900

query II rowsort
SELECT 13 AS col2, - col1 * col2 * - - 91 AS col0 FROM tab0
----
13
-19110
13
-346437
13
-9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT 1, + col1 AS col0 FROM tab0 AS cor0
----
1
1
1
21
1
81

query I rowsort
SELECT + - ( - + 86 ) FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT ( + col0 ) + col1 * + 44 FROM tab0 AS cor0
----
1011
141
3579

query I rowsort
SELECT 31 + + + col2 AS col0 FROM tab0
----
130
41
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - COUNT( * ) + 36 col1 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3857
SELECT - COUNT ( * ) + 36 col1 FROM tab0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3858
SELECT + 8 DIV col1 AS col1, - 1 * + 78 AS col2 FROM tab1
----
0
-78
0
-78
1
-78

skipif mysql # not compatible
query II rowsort label-3858
SELECT + 8 / col1 AS col1, - 1 * + 78 AS col2 FROM tab1
----
0
-78
0
-78
1
-78

query I rowsort
SELECT + 88 * - + ( 21 ) * col1 AS col0 FROM tab0
----
-149688
-1848
-38808

query I rowsort
SELECT - 55 * - col2 AS col1 FROM tab1
----
3245
3740
5280

query I rowsort
SELECT ALL col1 / + + 46 * - col1 * - 65 FROM tab2 cor0 WHERE col0 * - - ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT - SUM( + CAST( col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3862
SELECT - SUM ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT DISTINCT - ( - col1 ) + - 70 + - - ( + col2 ) AS col1, + col2 * + col1 FROM tab1 AS cor0
----
-6
295
40
1344
45
3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3864
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3864
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > + col2 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 + - col2 * col1 + - - col2 FROM tab1
----
-1197
-151
-3037

query I rowsort
SELECT - 73 + - col0 FROM tab0
----
-160
-170
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE 84 * CAST( - - col0 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3867
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE 84 * CAST ( - - col0 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + ( + COUNT( * ) ) * SUM( + 75 ) FROM tab2 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-3868
SELECT + ( + COUNT ( * ) ) * SUM ( + 75 ) FROM tab2 AS cor0
----
675

query II rowsort
SELECT ALL + - 30, + 31 * + col1 AS col0 FROM tab2 cor0
----
-30
1581
-30
2077
-30
2387

onlyif mysql # DIV for integer division: 
query II rowsort label-3870
SELECT - col2 * - - ( col0 ) col2, + ( - + col1 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
-705
1
-870
2
-9603
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3870
SELECT - col2 * - - ( col0 ) col2, + ( - + col1 ) / - col2 AS col0 FROM tab0 AS cor0
----
-705
1
-870
2
-9603
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE 37 > - col1 / + col0
----
10
47
99

query II rowsort
SELECT col1 AS col0, 62 AS col2 FROM tab0
----
1
62
21
62
81
62

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col1 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ), - COUNT( * ) AS col0 FROM tab1
----
-9
-3

skipif mysql # not compatible
query II rowsort label-3874
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1
----
-9
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( + col1 ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 90 ) col1 FROM tab0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT CAST( - + 62 AS SIGNED ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT CAST ( - + 62 AS INTEGER ) FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 66 AS col2, col0 + ( + + col2 ) col2 FROM tab1 AS cor0
----
66
144
66
147
66
159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + 85 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - SUM( 83 ) AS col0 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-3881
SELECT - SUM ( 83 ) AS col0 FROM tab2 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT - COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3882
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3883
SELECT ( - col0 ) * + - col2 * + 80 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
56400
NULL
69600
NULL
768240
NULL

skipif mysql # not compatible
query II rowsort label-3883
SELECT ( - col0 ) * + - col2 * + 80 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
56400
NULL
69600
NULL
768240
NULL

query II rowsort
SELECT ALL + ( - col2 ) AS col1, 9 FROM tab2
----
-23
9
-40
9
-58
9

query I rowsort
SELECT DISTINCT - 63 FROM tab1 cor0
----
-63

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE - col0 * + 0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3887
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col2 AS SIGNED ) BETWEEN ( - col0 ) * + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3887
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col2 AS INTEGER ) BETWEEN ( - col0 ) * + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT + col2 * + col0 - 98 DIV - + col0 - col0 FROM tab2 AS cor0
----
1014
2497
4276

skipif mysql # not compatible
query I rowsort label-3888
SELECT + col2 * + col0 - 98 / - + col0 - col0 FROM tab2 AS cor0
----
1014
2497
4276

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 12 - - col2 >= + 15
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT + - SUM( - 27 ), COUNT( * ) col0 FROM tab0 cor0
----
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3890
SELECT + - SUM ( - 27 ), COUNT ( * ) col0 FROM tab0 cor0
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3891
SELECT + + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT 31 AS col2, col2 * - 60 FROM tab2
----
31
-1380
31
-2400
31
-3480

query I rowsort
SELECT ( - - 67 ) AS col2 FROM tab0
----
67
67
67

query I rowsort
SELECT ALL + 52 * + + 6 + + 36 AS col1 FROM tab2
----
348
348
348

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL MAX( DISTINCT 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL MAX ( DISTINCT 52 ) FROM tab0
----
52

query II rowsort
SELECT ALL - 75, + 76 AS col2 FROM tab0
----
-75
76
-75
76
-75
76

query I rowsort
SELECT DISTINCT col0 * 80 AS col1 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT - - col0 + col0 / - col0 * + CAST( NULL AS SIGNED ) + - col2 + + - col1 * - col1 + + 48 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - - col0 + col0 / - col0 * + CAST ( NULL AS INTEGER ) + - col2 + + - col1 * - col1 + + 48 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 15 + - col1 FROM tab2 AS cor0
----
-36
-52
-62

query II rowsort
SELECT ALL col2, 51 AS col0 FROM tab0 AS cor0
----
10
51
47
51
99
51

query I rowsort
SELECT DISTINCT + + col0 + + 64 AS col0 FROM tab1 AS cor0
----
115
149
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT + COUNT( * ) + MAX( + + col0 ) + + - 13 AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + COUNT ( * ) + MAX ( + + col0 ) + + - 13 AS col1 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3904
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + + col0 * col1 * + CAST( + col1 AS DECIMAL ) + col0
----

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + + col0 * col1 * + CAST ( + col1 AS REAL ) + col0
----

query I rowsort
SELECT 33 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col1 - + + col0 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT - - 51 DIV - col1 - + 76 AS col2 FROM tab2 AS cor0
----
-76
-76
-77

skipif mysql # not compatible
query I rowsort label-3907
SELECT - - 51 / - col1 - + 76 AS col2 FROM tab2 AS cor0
----
-76
-76
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL ) OR NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 - col2 col2 FROM tab1 cor0
----
-115
-78
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT + MAX( 44 ) - + 12 + 76 AS col2, - 11 AS col1 FROM tab1 AS cor0
----
108
-11

skipif mysql # not compatible
query II rowsort label-3911
SELECT + MAX ( 44 ) - + 12 + 76 AS col2, - 11 AS col1 FROM tab1 AS cor0
----
108
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT SUM( + + 50 ) * + - 22 * + SUM( ALL - - CAST( - + 81 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
801900

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT SUM ( + + 50 ) * + - 22 * + SUM ( ALL - - CAST ( - + 81 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
801900

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT - 16 DIV + 22 + + ( - col1 ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 16 / + 22 + + ( - col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + col2 * + 90 FROM tab2 AS cor0
----
2070
3600
5220

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 61 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT - col2 DIV + 15 FROM tab0
----
-3
-6
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - col2 / + 15 FROM tab0
----
-3
-6
0

query II rowsort
SELECT + col2, + 91 + - 47 AS col0 FROM tab1
----
59
44
68
44
96
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + COUNT( + + 92 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + COUNT ( + + 92 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3919
SELECT - 41 AS col1, + 11 DIV - ( 87 ) * - 27 AS col2 FROM tab2 AS cor0
----
-41
0
-41
0
-41
0

skipif mysql # not compatible
query II rowsort label-3919
SELECT - 41 AS col1, + 11 / - ( 87 ) * - 27 AS col2 FROM tab2 AS cor0
----
-41
0
-41
0
-41
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + 76 col0 FROM tab2 AS cor0
----
-1097
-3004
-3810

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab2 cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT 39 * col1 + col2 - + + ( - 28 ) * - col2 * + ( - 97 ) * - + 28 AS col1 FROM tab1 AS cor0
----
-4486578
-5169363
-7299966

query I rowsort
SELECT ALL + col0 * - + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - ( - MAX( - 14 ) ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3924
SELECT - ( - MAX ( - 14 ) ) FROM tab0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL CAST( + 89 AS SIGNED ) AS col1 FROM tab0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL CAST ( + 89 AS INTEGER ) AS col1 FROM tab0
----
89
89
89

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT - + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT ALL + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3928
SELECT ALL + 61 + col2 * + - col2, + 60 * - col0 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 65 IN ( - 33 )
----

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL + 61 + col2 * + - col2, + 60 * - col0 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 65 IN ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL + - 29 + - MIN( + col2 ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + - 29 + - MIN ( + col2 ) FROM tab1 cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT DISTINCT 33 DIV 85 + + 49 AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT 33 / 85 + + 49 AS col2 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - MAX( 65 ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-3931
SELECT - MAX ( 65 ) FROM tab0
----
-65

query I rowsort
SELECT ALL - col2 * + - 82 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query II rowsort label-3933
SELECT DISTINCT - MAX( ALL + 43 ) AS col0, - 25 * + 41 FROM tab2
----
-43
-1025

skipif mysql # not compatible
query II rowsort label-3933
SELECT DISTINCT - MAX ( ALL + 43 ) AS col0, - 25 * + 41 FROM tab2
----
-43
-1025

query I rowsort
SELECT + - col0 - col1 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - + 54 * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-3935
SELECT - + 54 * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( - col2 ) ) * + col2 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 < + col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL + COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT 46 * + CAST( + + 54 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2484
2484
2484

skipif mysql # not compatible
query I rowsort label-3939
SELECT 46 * + CAST ( + + 54 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2484
2484
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + MAX( DISTINCT + 70 ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + MAX ( DISTINCT + 70 ) AS col1 FROM tab1 AS cor0
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 98 * 79 >= - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT DISTINCT - + 97 * + ( col0 ) DIV col0 + - col1 AS col1 FROM tab0 AS cor0
----
-118
-178
-98

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - + 97 * + ( col0 ) / col0 + - col1 AS col1 FROM tab0 AS cor0
----
-118
-178
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( + col0 ) AND col2 * - col1 + - - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( - - col0 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3945
SELECT + COUNT( * ) * - COUNT( * ) col2, + CAST( - + COUNT( * ) AS SIGNED ) DIV + SUM( - col1 ) AS col1 FROM tab1
----
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3945
SELECT + COUNT ( * ) * - COUNT ( * ) col2, + CAST ( - + COUNT ( * ) AS INTEGER ) / + SUM ( - col1 ) AS col1 FROM tab1
----
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3946
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) + + + 31 * ( col2 ) - + ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3946
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + + + 31 * ( col2 ) - + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3947
SELECT DISTINCT - COUNT( * ) DIV + + 73 AS col0, 25 col2 FROM tab2 AS cor0
----
0
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3947
SELECT DISTINCT - COUNT ( * ) / + + 73 AS col0, 25 col2 FROM tab2 AS cor0
----
0
25

query I rowsort
SELECT - ( - - col2 ) * + + col0 - + 45 AS col2 FROM tab2 AS cor0
----
-1103
-2605
-4395

query I rowsort
SELECT DISTINCT + + col0 * + + 36 + - - 93 * + - 14 FROM tab1 AS cor0
----
1758
1974
534

query I rowsort
SELECT ALL 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT DISTINCT + col0 * - - 42 + 56 * + - 35 * - CAST( NULL AS SIGNED ) * + col2 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3951
SELECT DISTINCT + col0 * - - 42 + 56 * + - 35 * - CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 23 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query II rowsort
SELECT ALL + - ( 89 ) * + col2 AS col1, col0 FROM tab1 AS cor0
----
-5251
85
-6052
91
-8544
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT - COUNT( * ), 22 AS col1 FROM tab2 AS cor0
----
-3
22

skipif mysql # not compatible
query II rowsort label-3954
SELECT - COUNT ( * ), 22 AS col1 FROM tab2 AS cor0
----
-3
22

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT + ( col2 ) * CAST( NULL AS SIGNED ) + - + col2 + + + CAST( NULL AS SIGNED ) * + col1 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT + ( col2 ) * CAST ( NULL AS INTEGER ) + - + col2 + + + CAST ( NULL AS INTEGER ) * + col1 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL MIN( ALL - - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL MIN ( ALL - - col2 ) FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT - col0 - - 44 DIV + 3 + + col2 * - col2 FROM tab2
----
-1650
-3425
-561

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - col0 - - 44 / + 3 + + col2 * - col2 FROM tab2
----
-1650
-3425
-561

query I rowsort
SELECT 93 + + 10 AS col0 FROM tab0
----
103
103
103

query I rowsort
SELECT DISTINCT col1 * + 28 FROM tab1
----
1316
140
392

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3961
SELECT * FROM tab1 WHERE NULL = - col2 - - - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3961
SELECT * FROM tab1 WHERE NULL = - col2 - - - CAST ( col0 AS INTEGER )
----

query II rowsort
SELECT ALL - 8 AS col2, 75 - + col0 AS col1 FROM tab2 AS cor0
----
-8
0
-8
11
-8
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - COUNT( + - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3963
SELECT - COUNT ( + - col2 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3965
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3965
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT 2 * + CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT 2 * + CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3967
SELECT ALL + 40, - CAST( - col2 AS SIGNED ) col2 FROM tab1
----
40
59
40
68
40
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3967
SELECT ALL + 40, - CAST ( - col2 AS INTEGER ) col2 FROM tab1
----
40
59
40
68
40
96

query I rowsort
SELECT ALL + - col0 * + 4 FROM tab0 AS cor0
----
-348
-388
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT 24 * MAX( - col1 ) FROM tab2 AS cor0
----
-1224

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT 24 * MAX ( - col1 ) FROM tab2 AS cor0
----
-1224

query I rowsort
SELECT ALL + 11 * + col2 FROM tab1 AS cor0
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT - 61 * COUNT( * ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - 61 * COUNT ( * ) FROM tab2 AS cor0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT - col0 DIV 35 AS col1 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - col0 / 35 AS col1 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT + + 90 AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL + col1 * + col2 FROM tab2 WHERE NOT col0 < + ( col2 )
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 WHERE + 51 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 5 * + col1 AS col1 FROM tab1
----
235
25
70

query I rowsort
SELECT 43 * col1 AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + SUM( ALL + 91 ) * COUNT( * ) FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + SUM ( ALL + 91 ) * COUNT ( * ) FROM tab1
----
819

query I rowsort
SELECT DISTINCT - ( 92 ) AS col1 FROM tab1 WHERE NOT col2 < ( col0 )
----
-92

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL NOT IN ( 81 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT col2 - + col0 DIV col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-3981
SELECT col2 - + col0 / col0 FROM tab1
----
58
67
95

query I rowsort
SELECT col2 - col0 * 20 FROM tab1
----
-1641
-1752
-924

query I rowsort
SELECT 90 * col1 FROM tab2
----
4590
6030
6930

query I rowsort
SELECT 28 * - col2 AS col0 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT ALL + col0 * - col0 - 95 FROM tab1
----
-2696
-7320
-8376

query I rowsort
SELECT col2 * + 63 AS col1 FROM tab1
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL + MIN( DISTINCT + col0 ) AS col0 FROM tab0 WHERE ( col0 ) = + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + MIN ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE ( col0 ) = + col2
----
NULL

query I rowsort
SELECT col1 * - 75 AS col0 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT ALL col2 * + col1 + col1 * col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL col0 + - 53 FROM tab2
----
-7
11
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT - MIN( ALL col0 ) + COUNT( * ) AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-3991
SELECT - MIN ( ALL col0 ) + COUNT ( * ) AS col0 FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT COUNT( ALL + col0 ) FROM tab1 WHERE + 93 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3992
SELECT COUNT ( ALL + col0 ) FROM tab1 WHERE + 93 <> ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col2 BETWEEN + col1 / + col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT DISTINCT 1 DIV + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT 1 / + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col1 * 65 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - 0 AS col0 FROM tab0 WHERE ( - col2 + + 58 ) NOT BETWEEN + col2 + + 48 AND 9
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN 24 AND NULL
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - MAX( ALL col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3998
SELECT - MAX ( ALL col0 ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT 36 DIV COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3999
SELECT 36 / COUNT ( * ) FROM tab1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT col0 DIV + ( col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4000
SELECT col0 / + ( col2 ) FROM tab2
----
1
1
2

query I rowsort
SELECT ALL 51 * + col1 + col1 FROM tab0 AS cor0
----
1092
4212
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE 17 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 72 )
----

query I rowsort
SELECT - 51 * 83 AS col2 FROM tab2 cor0
----
-4233
-4233
-4233

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - col2 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT + CAST( - 42 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-1932
-2688
-3150

skipif mysql # not compatible
query I rowsort label-4007
SELECT + CAST ( - 42 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-1932
-2688
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL - CAST( + 65 AS SIGNED ) FROM tab1 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - CAST ( + 65 AS INTEGER ) FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ( + col1 ) * + 3 AS col0 FROM tab2 cor0
----
153
201
231

query I rowsort
SELECT + 41 * + 85 FROM tab0 AS cor0
----
3485
3485
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + COUNT( + + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4011
SELECT + COUNT ( + + col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + 26 * + + ( col1 ) FROM tab1
----
1222
130
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 20 col1 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT - col0 * col1 + - 88 / + ( - col0 + - col1 ) FROM tab2 WHERE NOT NULL BETWEEN ( col1 + - 95 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE col2 * - col0 IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE col2 * - col0 IN ( - col1 )
----
0

query I rowsort
SELECT col2 + - + 52 FROM tab2 AS cor0
----
-12
-29
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4017
SELECT + 47 DIV COUNT( * ) + 42 DIV + COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4017
SELECT + 47 / COUNT ( * ) + 42 / + COUNT ( * ) FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT DISTINCT - - col0 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - - col0 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + col0 + + 72 FROM tab2 AS cor0
----
118
136
147

query I rowsort
SELECT ALL col1 + - - 37 AS col2 FROM tab2
----
104
114
88

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE ( - 36 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * col2 - col1 ) >= + 97
----

query I rowsort
SELECT ALL - col1 + - ( + - 50 ) AS col2 FROM tab2
----
-1
-17
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NOT ( - col0 ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( - col0 ) IS NOT NULL )
----
3

query I rowsort
SELECT 70 * - col2 AS col1 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT DISTINCT - 19 AS col2, col1 FROM tab0 AS cor0
----
-19
1
-19
21
-19
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( col0 )
----

query II rowsort
SELECT ALL + 65, + col1 FROM tab1 AS cor0
----
65
14
65
47
65
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT + col1 DIV col0 - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4032
SELECT + col1 / col0 - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT col2 - 45 * col1 AS col2 FROM tab0 AS cor0
----
-3598
-935
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT + 21 + - COUNT( * ) + - 35 col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT DISTINCT + 21 + - COUNT ( * ) + - 35 col1 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT + 13 + - 55 FROM tab2
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT DISTINCT - CAST( - - ( col2 ) AS SIGNED ) + - col0 AS col2 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT - CAST ( - - ( col2 ) AS INTEGER ) + - col0 AS col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL - col1 + + + 54 FROM tab0
----
-27
33
53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - ( col1 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 23 * ( + - ( 75 ) ) * col1 - + col1 * col1 AS col0 FROM tab1
----
-24346
-83284
-8650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT DISTINCT col0 - + - CAST( NULL AS SIGNED ) + + col2 * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT col0 - + - CAST ( NULL AS INTEGER ) + + col2 * col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 43 FROM tab0 WHERE NOT col1 IS NULL
----
43

query I rowsort
SELECT + col2 * col0 * - + col2 AS col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4044
SELECT ALL + + CAST( NULL AS DECIMAL ) - MAX( DISTINCT - ( - col1 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + + CAST ( NULL AS REAL ) - MAX ( DISTINCT - ( - col1 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 36 * + col2 - + 82 FROM tab2 AS cor0
----
-1522
-2170
-910

query I rowsort
SELECT DISTINCT + + 61 * - col0 * - col1 + - 36 - + col2 FROM tab0 AS cor0
----
111401
5782
74032

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT + ( col2 ) * ( - 36 * col1 ) IS NULL )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT ALL + ( - COUNT( ALL CAST( - col2 AS SIGNED ) ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4048
SELECT ALL + ( - COUNT ( ALL CAST ( - col2 AS INTEGER ) ) ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - MIN( ALL + 96 ) FROM tab2 WHERE NOT - - col1 = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - MIN ( ALL + 96 ) FROM tab2 WHERE NOT - - col1 = + col1
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE ( + + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL + ( MAX( DISTINCT col2 ) ) * + COUNT( * ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + ( MAX ( DISTINCT col2 ) ) * + COUNT ( * ) AS col1 FROM tab1
----
288

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 + 47 + + col1 * 6 * col2 IS NULL
----

query II rowsort
SELECT ALL + col2, - 69 AS col0 FROM tab1
----
59
-69
68
-69
96
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT col1 DIV + 3 AS col0 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-4054
SELECT col1 / + 3 AS col0 FROM tab1
----
1
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - MAX( + 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - MAX ( + 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 AS cor0 WHERE col2 * + col1 <= + + col1
----

query I rowsort
SELECT ALL + col0 * col1 + - 99 AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN ( + col1 ) AND col0 * ( 51 )
----
2247
4829
4926

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL - + MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - + MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 98 * - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col2 col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL - col0 * 55 AS col1 FROM tab1 cor0
----
-2805
-4675
-5005

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 18 * - col2 + 43 * col1 * + col0 FROM tab0 AS cor0
----
53091
5953
78741

query I rowsort
SELECT col0 * + col0 * ( + col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
132637
614120
753524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4066
SELECT SUM( DISTINCT 48 ) FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN ( + col2 + - 93 * col2 ) AND + ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT SUM ( DISTINCT 48 ) FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( + col2 + - 93 * col2 ) AND + ( col1 )
----
NULL

query I rowsort
SELECT ALL col1 + - col0 * + + 13 AS col1 FROM tab2
----
-547
-755
-908

query II rowsort
SELECT - col0 AS col1, - 71 + - + col0 AS col1 FROM tab2
----
-46
-117
-64
-135
-75
-146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4069
SELECT 55 / + CAST( NULL AS SIGNED ), col2 * 46 + col1 + + CAST( NULL AS SIGNED ) + - col2 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4069
SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4070
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - 81
----

query III rowsort
SELECT * FROM tab0 WHERE col2 / - 7 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 72 ) AS col1 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + MIN( ALL 45 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + MIN ( ALL 45 ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( + - col0 ) * - col2 * col1 * - ( + col0 ) * + col0 ) = NULL
----

query II rowsort
SELECT DISTINCT col2 + col2 * col0, - col2 AS col0 FROM tab1
----
4992
-96
5074
-59
6256
-68

query I rowsort
SELECT DISTINCT 49 + + col2 + - 85 FROM tab1
----
23
32
60

query II rowsort
SELECT ALL col2 + 65 + + col1, col0 + + col1 AS col2 FROM tab0
----
165
98
193
96
96
108

query II rowsort
SELECT ALL ( - col2 ) AS col1, ( col0 ) FROM tab2 WHERE - - 36 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - MIN( DISTINCT + - col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) AS col2 FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 11 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 77 * + 76 AS col1 FROM tab2
----
5852
5852
5852

query I rowsort
SELECT DISTINCT 37 * - col2 AS col2 FROM tab2 cor0
----
-1480
-2146
-851

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT - ( + ( - col2 ) ) * + 74 + + col2 DIV + 11 + 93 FROM tab0 AS cor0
----
3575
7428
833

skipif mysql # not compatible
query I rowsort label-4086
SELECT - ( + ( - col2 ) ) * + 74 + + col2 / + 11 + 93 FROM tab0 AS cor0
----
3575
7428
833

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT ALL - + col2 DIV - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - + col2 / - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT MIN( DISTINCT 2 ) * - COUNT( * ) * - ( - - 57 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1026

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT MIN ( DISTINCT 2 ) * - COUNT ( * ) * - ( - - 57 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1026

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT ALL + MIN( DISTINCT - - 20 ), SUM( DISTINCT + 10 ) AS col2 FROM tab2 AS cor0
----
20
10

skipif mysql # not compatible
query II rowsort label-4089
SELECT ALL + MIN ( DISTINCT - - 20 ), SUM ( DISTINCT + 10 ) AS col2 FROM tab2 AS cor0
----
20
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4090
SELECT - COUNT( DISTINCT col1 ), 73 AS col2 FROM tab0 cor0 WHERE NOT + col0 < + col2
----
-1
73

skipif mysql # not compatible
query II rowsort label-4090
SELECT - COUNT ( DISTINCT col1 ), 73 AS col2 FROM tab0 cor0 WHERE NOT + col0 < + col2
----
-1
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4091
SELECT DISTINCT - + 35 * + + 82 AS col1, CAST( 46 AS SIGNED ) FROM tab2 AS cor0
----
-2870
46

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT - + 35 * + + 82 AS col1, CAST ( 46 AS INTEGER ) FROM tab2 AS cor0
----
-2870
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 - - col2 > + + col0
----
87
21
10

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col1 + + col1, - 31 )
----

query I rowsort
SELECT DISTINCT + 94 + col1 FROM tab1
----
108
141
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + - col0 * + col1 / - + 99 + + 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - - COUNT( * ) + - 94 - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4096
SELECT - - COUNT ( * ) + - 94 - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT + col2 + - ( + ( + col1 ) ) AS col2 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT + col2 + - + 11 DIV + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4098
SELECT + col2 + - + 11 / + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + 12 + - 73 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT - + MIN( DISTINCT - + 63 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - + MIN ( DISTINCT - + 63 ) FROM tab0 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT ALL - - col0 DIV - + col0 + col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - - col0 / - + col0 + col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4103
SELECT ALL + 22 * col2 - - CAST( + col1 AS SIGNED ) DIV 57 + - + 2 FROM tab2
----
1275
504
879

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL + 22 * col2 - - CAST ( + col1 AS INTEGER ) / 57 + - + 2 FROM tab2
----
1275
504
879

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT + + COUNT( * ) - - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT + + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( 78 ) FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL AND col0 < + 60
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT + col1 - + col0 DIV + + col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-4108
SELECT + col1 - + col0 / + + col2 FROM tab2 AS cor0
----
49
66
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - - 60 AS col2, col2 * + ( 2 ) col2, - - col1 FROM tab2 AS cor0
----
9 values hashing to 135213b0ca44925bd5125b00409b70f8

query I rowsort
SELECT + - 2 + col2 AS col0 FROM tab2 AS cor0
----
21
38
56

query I rowsort
SELECT ALL - - col0 + - 98 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT col0 + + - col2 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT col2 + - col0 AS col2, 43 + - col1 AS col0 FROM tab2
----
-17
-24
-23
-8
-24
-34

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + + 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT SUM( ALL + col2 ) * - + COUNT( ALL 98 ) col1 FROM tab0
----
-468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4115
SELECT SUM ( ALL + col2 ) * - + COUNT ( ALL 98 ) col1 FROM tab0
----
-468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT ALL - col2 AS col1, 29 FROM tab2
----
-23
29
-40
29
-58
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT - 61 * + COUNT( 34 ) AS col0 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - 61 * + COUNT ( 34 ) AS col0 FROM tab1
----
-183

query II rowsort
SELECT 94, + col1 AS col1 FROM tab0
----
94
1
94
21
94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE ( - col2 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE ( - col2 IS NOT NULL )
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col0 - + col0 + - 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + - ( col2 ) * - col2 * - ( 77 ) AS col0 FROM tab2 AS cor0
----
-1873718
-19427100
-7884800

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 70 / + - col1 = - col1
----

query I rowsort
SELECT ALL - 8 * - col0 AS col0 FROM tab1 cor0
----
408
680
728

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT COUNT( * ), COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-4125
SELECT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT - 51 * - SUM( ALL + 17 ) AS col1 FROM tab1
----
2601

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 51 * - SUM ( ALL + 17 ) AS col1 FROM tab1
----
2601

query I rowsort
SELECT - 17 * - col1 AS col2 FROM tab1
----
238
799
85

query I rowsort
SELECT DISTINCT + col0 * 34 AS col1 FROM tab2
----
1564
2176
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT 60 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4129
SELECT 60 / col0 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 38 + col0 + - col2 AS col2 FROM tab0
----
115
36
6

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 43 <= - + 46 * + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT COUNT( * ) * COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4133
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT col2 + - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4134
SELECT col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + 83 + COUNT( * ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 83 + COUNT ( * ) FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - + COUNT( * ) * - - 8 + + 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-67

skipif mysql # not compatible
query I rowsort label-4136
SELECT - + COUNT ( * ) * - - 8 + + 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT - - 10 - + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT - - 10 - + COUNT ( * ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL 76 - + col2 FROM tab2 AS cor0
----
18
36
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - ( - - col0 ) + + col1 + + - col0 AND - - col0 - + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT col1 / - + 1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT col1 / - + 1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 24 / - col2 FROM tab0 WHERE NOT + + col0 + - + 54 + ( - + col2 ) <> - col2 + col2 * 2 * 9 * - - col0
----

query II rowsort
SELECT DISTINCT col1 AS col0, - 89 AS col2 FROM tab0
----
1
-89
21
-89
81
-89

query II rowsort
SELECT col0, 7 FROM tab2
----
46
7
64
7
75
7

query II rowsort
SELECT + - col2 * - 50, - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 / 60 * 17 = + CAST( - col2 AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 / 60 * 17 = + CAST ( - col2 AS INTEGER ) * col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / + - col2 * + - col1 * + + col1 - - - col0 * - ( 1 ) * - + ( col0 ) IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - COUNT( ALL - + 5 ) * - 57 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - COUNT ( ALL - + 5 ) * - 57 FROM tab0 AS cor0
----
171

query I rowsort
SELECT DISTINCT - col0 + + ( - 6 ) AS col2 FROM tab1 AS cor0
----
-57
-91
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL COUNT( * ) + + 69 col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4151
SELECT ALL COUNT ( * ) + + 69 col0 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4152
SELECT - col2 * 2 + 32 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE 95 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4152
SELECT - col2 * 2 + 32 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE 95 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 29 col1 FROM tab0
----
128
39
76

query I rowsort
SELECT DISTINCT + col1 * - + 25 FROM tab1
----
-1175
-125
-350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - 43 + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 13 * - - col1 * + 84 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT DISTINCT 14 DIV - 81 DIV COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT 14 / - 81 / COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + COUNT( * ) * + 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + COUNT ( * ) * + 93 FROM tab0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4159
SELECT ALL + 23 AS col0, col2 * + + 7 FROM tab2 WHERE NOT + CAST( - ( + - col1 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL + 23 AS col0, col2 * + + 7 FROM tab2 WHERE NOT + CAST ( - ( + - col1 ) AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4161
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 - - 94 AS col2 FROM tab0
----
104
141
193

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 BETWEEN + - col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * col0 + - 69 - + col1 + + + col1 * - - col2 * - col2 * - + col1 FROM tab0 AS cor0
----
14493804
19334
44880

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT SUM( + - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT SUM ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT + + COUNT( * ) * 61 AS col2 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4166
SELECT + + COUNT ( * ) * 61 AS col2 FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT + MAX( ALL + col2 ) AS col1, ( - COUNT( * ) ) FROM tab2 AS cor0
----
58
-3

skipif mysql # not compatible
query II rowsort label-4167
SELECT + MAX ( ALL + col2 ) AS col1, ( - COUNT ( * ) ) FROM tab2 AS cor0
----
58
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col0 + + col2 - - 27 + - + col2 * 45 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT + MIN( ALL ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT + MIN ( ALL ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + - col0 - + + 14 - - - col1 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + + col1 IS NULL
----
-110
47
-112
99
-122
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT DISTINCT - + CAST( 31 AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-31

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - + CAST ( 31 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 44 > 19
----

query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT CAST( NULL AS SIGNED ) + + + 24 * - + col1 + - 6 * - 4 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT CAST ( NULL AS INTEGER ) + + + 24 * - + col1 + - 6 * - 4 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - + 81 FROM tab2 AS cor0
----
3726
5184
6075

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + ( + col0 ) * + col0 FROM tab1 AS cor0 WHERE NULL <= - col0 * - 72 * col0 / - col0 * - col1 * + + 2
----

query I rowsort
SELECT ALL + - col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 - - - col1 AS col2 FROM tab1 cor0
----
14
-28
47
-94
5
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( - + 66 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( - + 66 ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 73 + + + ( + + col0 ) FROM tab1 AS cor0
----
124
158
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL 24 + SUM( DISTINCT - + col0 ) - - 21 AS col2 FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL 24 + SUM ( DISTINCT - + col0 ) - - 21 AS col2 FROM tab1
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT CAST( MIN( ALL - - col0 ) AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4186
SELECT CAST ( MIN ( ALL - - col0 ) AS INTEGER ) FROM tab0
----
15

query II rowsort
SELECT col2 * + + col0 AS col1, col2 AS col1 FROM tab1
----
4896
96
5015
59
6188
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT - - 0 + - - col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( - + 64, col0 * + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 66 + - 60 + - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT DISTINCT 85, + COUNT( * ) AS col2 FROM tab2
----
85
3

skipif mysql # not compatible
query II rowsort label-4192
SELECT DISTINCT 85, + COUNT ( * ) AS col2 FROM tab2
----
85
3

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab2 WHERE NULL > - + 2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 65 * - col1 + - col0 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT + - MIN( DISTINCT col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + - MIN ( DISTINCT col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT 36 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
36
36
36

query I rowsort
SELECT ALL - ( 71 ) * + col2 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT ALL 11 AS col0, COUNT( * ) FROM tab2 cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-4198
SELECT ALL 11 AS col0, COUNT ( * ) FROM tab2 cor0
----
11
3

query I rowsort
SELECT ALL - col0 * ( + col1 ) * + 28 AS col0 FROM tab1 AS cor0
----
-11900
-119756
-19992

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT - COUNT( * ) * + - COUNT( ALL + - col1 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( ALL + - col1 ) AS col1 FROM tab0
----
9

query I rowsort
SELECT 0 * - 12 FROM tab1 WHERE NOT + 21 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - ( + - 16 ) ) AS col2 FROM tab0, tab1 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 95 + + 58 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT 63 + - - 90 * ( - 13 ) FROM tab2 AS cor0
----
-1107
-1107
-1107

query I rowsort
SELECT + 46 + col1 AS col2 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT ALL - 27 + - col1 AS col1 FROM tab2 AS cor0
----
-104
-78
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + 54 IS NOT NULL
----

query I rowsort
SELECT - col0 * 18 AS col1 FROM tab2 cor0
----
-1152
-1350
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 + - - col1 col0 FROM tab2 AS cor0
----
126
142
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL + MAX( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND + col1 * - + 41 + ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + MAX ( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND + col1 * - + 41 + ( + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT MAX( - - 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4213
SELECT MAX ( - - 95 ) FROM tab1 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT DISTINCT + col2 + + 90 * CAST( NULL AS SIGNED ) AS col0, ( + + col2 ) * + 50 AS col2 FROM tab1 AS cor0
----
NULL
2950
NULL
3400
NULL
4800

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT + col2 + + 90 * CAST ( NULL AS INTEGER ) AS col0, ( + + col2 ) * + 50 AS col2 FROM tab1 AS cor0
----
NULL
2950
NULL
3400
NULL
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL - MAX( - + 40 ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - MAX ( - + 40 ) AS col2 FROM tab1 AS cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 28 >= col0 + + + col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 35 + + 68 * - + 14 AS col0 FROM tab1 AS cor0
----
-917
-917
-917

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 38 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE 75 IS NULL
----

query I rowsort
SELECT + col0 + + col1 FROM tab0 WHERE + col0 IS NOT NULL
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 98 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 70 AS col1 FROM tab2 WHERE 56 + - col2 IS NOT NULL
----
70
70
70

query I rowsort
SELECT DISTINCT + 48 FROM tab0 WHERE 92 IS NOT NULL
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT - col2 DIV + col2 + + col1 col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4225
SELECT - col2 / + col2 + + col1 col2 FROM tab2
----
50
66
76

query II rowsort
SELECT DISTINCT col1, + col2 * + + 94 AS col1 FROM tab1
----
14
9024
47
6392
5
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - SUM( DISTINCT + - 32 ) * + ( 37 ) FROM tab0 AS cor0
----
1184

skipif mysql # not compatible
query I rowsort label-4227
SELECT - SUM ( DISTINCT + - 32 ) * + ( 37 ) FROM tab0 AS cor0
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT 44 * COUNT( * ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-4228
SELECT 44 * COUNT ( * ) AS col1 FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL - COUNT( * ) * 28 col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4229
SELECT ALL - COUNT ( * ) * 28 col2 FROM tab0 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 = - + col0
----

query I rowsort
SELECT + col1 * + ( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - 90 IN ( + + 94 + + col1, ( + col0 ), - ( + - col2 ), col2 / - col2 * + 69 * + 71 + - - col2 + - col2 )
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 8 + - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT DISTINCT + - col1 DIV ( - - col2 ) FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + - col1 / ( - - col2 ) FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT ALL + 35 + - col1 AS col0 FROM tab0 WHERE NOT + - ( col1 ) * - col2 IS NULL
----
-46
14
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT 41 * - - COUNT( - 99 ) col0 FROM tab1
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT 41 * - - COUNT ( - 99 ) col0 FROM tab1
----
123

query II rowsort
SELECT ALL col1 AS col2, + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL 35 + - 94 AS col2 FROM tab1 AS cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > - 57 * - 35 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col1 * - - col0, col1 AS col0 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT + + 8 + - - col1 AS col2 FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT DISTINCT col1 * - - col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL + ( + + 80 ) FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - SUM( - col0 ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4243
SELECT - SUM ( - col0 ) col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL + ( CAST( NULL AS SIGNED ) ) + - 1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) + - 1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4245
SELECT ALL col1 - + + 5 + + - col0 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
-101
NULL
-71
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-4245
SELECT ALL col1 - + + 5 + + - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
-101
NULL
-71
NULL
61
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT DISTINCT + col1 + col2 DIV + ( + col1 ) AS col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + col1 + col2 / + ( + col1 ) AS col1 FROM tab0
----
100
21
81

query I rowsort
SELECT 16 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
16
16
16

query I rowsort
SELECT ALL 44 - col1 AS col2 FROM tab2
----
-23
-33
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT ALL - COUNT( * ) DIV + 73 + + + COUNT( * ) AS col1 FROM tab1 WHERE + + 67 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - COUNT ( * ) / + 73 + + + COUNT ( * ) AS col1 FROM tab1 WHERE + + 67 IS NOT NULL
----
3

query III rowsort
SELECT ALL + - col1 AS col2, + col2 AS col0, 74 FROM tab2 WHERE NOT col0 + 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 * col2 * col1 * + 42 FROM tab1 cor0
----
1053150
12215112
2878848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - 15 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - 15 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col0 + - + col0
----
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col0 + - + col0
----
0

query II rowsort
SELECT ALL + col2, col1 FROM tab1 cor0
----
59
5
68
47
96
14

query III rowsort
SELECT + col2, + col1, 4 FROM tab2 AS cor0
----
9 values hashing to ade8506b5b3f319a700aeeb3b3d2e609

query I rowsort
SELECT DISTINCT + - 74 * + 6 AS col2 FROM tab2 cor0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + COUNT( ALL - 80 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4257
SELECT + COUNT ( ALL - 80 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + 34, col2 AS col2 FROM tab0 AS cor0
----
34
10
34
47
34
99

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT ALL + 14 col2, COUNT( * ) FROM tab0 AS cor0
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4260
SELECT ALL + 14 col2, COUNT ( * ) FROM tab0 AS cor0
----
14
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col2 + - 12 >= NULL
----

query I rowsort
SELECT ALL + 48 FROM tab1 WHERE NOT - 57 IS NULL
----
48
48
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL OR NOT 20 + - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT - col1 * - + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - col1 * - + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT + COUNT( * ) DIV + - 70 * + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + COUNT ( * ) / + - 70 * + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) * + col1 - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ALL - ( - 38 ) DIV - 66 + - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - ( - 38 ) / - 66 + - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4269
SELECT ALL CAST( NULL AS SIGNED ) + - 16 - 38 * - col1 * CAST( NULL AS SIGNED ), ( + col0 ) * 90 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
4686
NULL
7709
NULL
8258

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL CAST ( NULL AS INTEGER ) + - 16 - 38 * - col1 * CAST ( NULL AS INTEGER ), ( + col0 ) * 90 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
4686
NULL
7709
NULL
8258

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + col0 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + + COUNT( * ) + + - 63 AS col0 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + + COUNT ( * ) + + - 63 AS col0 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT - + 44 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT - + 97 - - + ( + col1 ) FROM tab2 AS cor0
----
-20
-30
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 40 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + 40 * - COUNT( * ) + - 93 + - 21 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 40 * - COUNT ( * ) + - 93 + - 21 FROM tab2 AS cor0
----
-234

query I rowsort
SELECT + - 8 + - col0 FROM tab1 AS cor0
----
-59
-93
-99

query I rowsort
SELECT DISTINCT + - 44 + col1 AS col0 FROM tab2 AS cor0
----
23
33
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL - 18 + - - col0 FROM tab1 cor0
----
33
67
73

query III rowsort
SELECT ALL - col2 - 58, col0 + + col2 + col1 AS col2, col1 FROM tab2
----
9 values hashing to e8d7f66c876d878ef427d4d4704501ff

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 92 ) BETWEEN col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL SUM( ALL + ( col2 ) ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL SUM ( ALL + ( col2 ) ) AS col1 FROM tab2
----
121

query I rowsort
SELECT + + 72 * - - 8 * + + 59 AS col0 FROM tab0 AS cor0
----
33984
33984
33984

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND - - ( + col0 ) + + 94 + + col1
----

query II rowsort
SELECT col2 AS col1, + 8 AS col2 FROM tab0
----
10
8
47
8
99
8

query II rowsort
SELECT col1 AS col0, + 93 FROM tab0
----
1
93
21
93
81
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - col2 * + 75 * + col1 * + + 75 AS col1 FROM tab1 AS cor0
----
-1659375
-17977500
-7560000

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT COUNT( DISTINCT - - col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4289
SELECT COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL < col2
----

query I rowsort
SELECT ALL + - 0 * col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + - + col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4293
SELECT DISTINCT - 69 DIV col0 + 30, col0 AS col2 FROM tab2 AS cor0
----
29
46
29
64
30
75

skipif mysql # not compatible
query II rowsort label-4293
SELECT DISTINCT - 69 / col0 + 30, col0 AS col2 FROM tab2 AS cor0
----
29
46
29
64
30
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4294
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= CAST( - - 7 AS SIGNED ) * + + col0 + col2
----

skipif mysql # not compatible
query III rowsort label-4294
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( - - 7 AS INTEGER ) * + + col0 + col2
----

query I rowsort
SELECT ALL + + col1 + - col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) + 82 / + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) + 82 / + col1 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 1 FROM tab2
----
23
1
40
1
58
1

query I rowsort
SELECT ALL 32 + - 81 FROM tab2
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT - CAST( + col1 AS SIGNED ) * + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT - CAST ( + col1 AS INTEGER ) * + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 16 = - col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + col2 ) * - col1 * - + 67 - 20 FROM tab1
----
19745
214112
90028

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 66 * - col1 col1 FROM tab0
----
-120582
-6402
-80190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT ALL + 7 * - - MIN( DISTINCT + - col1 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + 7 * - - MIN ( DISTINCT + - col1 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 76 + col1 * col2 AS col0 FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + 26 + 18 AS col0 FROM tab1 cor0
----
1240
148
382

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4306
SELECT DISTINCT + + col0 AS col0, + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4306
SELECT DISTINCT + + col0 AS col0, + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - 62 + - + CAST( CAST( 44 AS SIGNED ) AS SIGNED ) * + 60 col0 FROM tab0 AS cor0
----
-2702
-2702
-2702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4307
SELECT - 62 + - + CAST ( CAST ( 44 AS INTEGER ) AS INTEGER ) * + 60 col0 FROM tab0 AS cor0
----
-2702
-2702
-2702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL + 16 * - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + 16 * - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT 32 + - + 21 DIV + col0 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4309
SELECT 32 + - + 21 / + col0 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4310
SELECT * FROM tab0 AS cor0 WHERE ( CAST( - + col0 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4310
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( - + col0 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab2 AS cor0 WHERE col2 - - + 2 IS NOT NULL
----
48
48
48

query I rowsort
SELECT col2 * ( + 90 ) AS col1 FROM tab1 AS cor0
----
5310
6120
8640

query I rowsort
SELECT - col0 * - + 53 AS col2 FROM tab1 AS cor0
----
2703
4505
4823

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE - col2 + - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 + - col2 >= NULL
----
0

query I rowsort
SELECT DISTINCT col0 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT + col0 DIV ( - col2 ) DIV + col1 + - col0 * + col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4317
SELECT + col0 / ( - col2 ) / + col1 + - col0 * + col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT - CAST( AVG ( ALL col0 ) AS SIGNED ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT - CAST ( AVG ( ALL col0 ) AS INTEGER ) FROM tab0
----
-66

query II rowsort
SELECT col1 AS col2, 74 FROM tab1
----
14
74
47
74
5
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL + COUNT( ALL col0 ) DIV - - 84 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + COUNT ( ALL col0 ) / - - 84 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT 11 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT 11 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( - - 71 )
----

query II rowsort
SELECT DISTINCT + 54 AS col0, + col1 FROM tab1 AS cor0
----
54
14
54
47
54
5

query II rowsort
SELECT - col2 AS col0, 59 AS col1 FROM tab0 AS cor0
----
-10
59
-47
59
-99
59

query II rowsort
SELECT + + col1 AS col0, 3 FROM tab0 AS cor0
----
1
3
21
3
81
3

query I rowsort
SELECT + 61 * + col0 FROM tab2 AS cor0
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT - 55 * MIN( DISTINCT + col0 ) FROM tab0
----
-825

skipif mysql # not compatible
query I rowsort label-4327
SELECT - 55 * MIN ( DISTINCT + col0 ) FROM tab0
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + COUNT( * ) * + 52 AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4328
SELECT + COUNT ( * ) * + 52 AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL - + 9 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 col1 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + + 57 AS col1 FROM tab0 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT + - COUNT( col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT + - COUNT ( col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL - SUM( + col1 ) + 40 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - SUM ( + col1 ) + 40 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT + + CAST( 55 AS SIGNED ) FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4334
SELECT + + CAST ( 55 AS INTEGER ) FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4335
SELECT ALL CAST( col1 AS SIGNED ) AS col1, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL CAST ( col1 AS INTEGER ) AS col1, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT 24 AS col1, + col0 FROM tab1
----
24
51
24
85
24
91

query III rowsort
SELECT * FROM tab0 WHERE + - 66 * col0 - + 93 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 WHERE col0 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT - MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 0 ) col1 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + + 89 * col0 col1 FROM tab0 AS cor0
----
1348
7756
8646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT + col2 + - - ( - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT + col2 + - - ( - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 29 col1 FROM tab2 AS cor0
----
-6
11
29

query I rowsort
SELECT 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - COUNT( + 67 ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - COUNT ( + 67 ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col0 - + col0 * - 20 FROM tab2 AS cor0
----
1344
1575
966

query I rowsort
SELECT DISTINCT - col0 * - - 97 FROM tab1 cor0
----
-4947
-8245
-8827

query I rowsort
SELECT 52 * - col2 * - - col1 FROM tab1 AS cor0
----
-15340
-166192
-69888

query I rowsort
SELECT ALL col1 * - + col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL + MIN( DISTINCT - - col1 ) * - + COUNT( * ) col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4351
SELECT ALL + MIN ( DISTINCT - - col1 ) * - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT 62 * + + 29 FROM tab0 AS cor0 WHERE NOT 20 + + col2 + + + col0 * + - CAST( NULL AS SIGNED ) BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query I rowsort label-4352
SELECT 62 * + + 29 FROM tab0 AS cor0 WHERE NOT 20 + + col2 + + + col0 * + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 69 - - + col1 + col0 * - col2 BETWEEN - col1 AND - col2 * + 71 / - 69 + ( 28 ) + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4354
SELECT DISTINCT + CAST( - - 14 AS SIGNED ) DIV 98 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT + CAST ( - - 14 AS INTEGER ) / 98 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col1 + - + col2 + col2 + - - col0 + - col2 * + + ( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
208
2305
9899

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 20 FROM tab0 AS cor0
----
-1740
-1940
-300

query I rowsort
SELECT + 72 * - 8 * + col2 AS col1 FROM tab0
----
-27072
-57024
-5760

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + col2 + + + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL MAX( - - col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL MAX ( - - col0 ) AS col2 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, 89 col0 FROM tab2
----
23
89
40
89
58
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT DISTINCT SUM( ALL ( col0 ) ) AS col1, + 14 AS col1 FROM tab1
----
227
14

skipif mysql # not compatible
query II rowsort label-4362
SELECT DISTINCT SUM ( ALL ( col0 ) ) AS col1, + 14 AS col1 FROM tab1
----
227
14

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 71 + + col0 + + 13 FROM tab1
----
135
169
175

query II rowsort
SELECT 53 * col1 AS col0, 9 AS col2 FROM tab1
----
2491
9
265
9
742
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) * + - COUNT( * ) + 46 - - + SUM( ALL + col0 ) - + 96 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - MAX ( CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + 46 - - + SUM ( ALL + col0 ) - + 96 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT COUNT( - 30 ) FROM tab1 WHERE NOT 86 <> - + 62
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT COUNT ( - 30 ) FROM tab1 WHERE NOT 86 <> - + 62
----
0

query I rowsort
SELECT - + col1 + + ( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + col2 - - col2 * + 91 * - + col2 * 34 + + - 82 FROM tab1
----
-10770232
-14306623
-28514276

query II rowsort
SELECT + 4 * 12 AS col1, - 6 AS col1 FROM tab1
----
48
-6
48
-6
48
-6

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT COUNT( * ) * - - 76 AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-4373
SELECT COUNT ( * ) * - - 76 AS col1 FROM tab2
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT + COUNT( * ) * 59 col0, COUNT( * ) FROM tab1
----
177
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4374
SELECT + COUNT ( * ) * 59 col0, COUNT ( * ) FROM tab1
----
177
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4375
SELECT + col1 + col2 * - CAST( NULL AS DECIMAL ) + - col2 + + 1 * col0 * - 0 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT + col1 + col2 * - CAST ( NULL AS REAL ) + - col2 + + 1 * col0 * - 0 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - - MIN( - col1 ) FROM tab2 AS cor0 WHERE + col2 < - 3 + + ( + - 43 ) + - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT - - MIN ( - col1 ) FROM tab2 AS cor0 WHERE + col2 < - 3 + + ( + - 43 ) + - + 8
----
NULL

query II rowsort
SELECT DISTINCT + + col1 + - col1, + col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT ( 95 ) * - + col1 + + 64 + col2 FROM tab2
----
-4758
-6243
-7211

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT - ( 53 ) - + COUNT( * ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - ( 53 ) - + COUNT ( * ) AS col2 FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - ( - ( + + SUM( + 90 ) ) ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - ( - ( + + SUM ( + 90 ) ) ) FROM tab2 AS cor0
----
270

query I rowsort
SELECT - + 51 * - 15 + col2 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
1001
2013
3893

query I rowsort
SELECT DISTINCT - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT + - col0 * + - ( + - 66 ), col1 FROM tab2 cor0
----
-3036
51
-4224
77
-4950
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT COUNT( * ) * - + 60 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-4384
SELECT COUNT ( * ) * - + 60 FROM tab1 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( ALL 67 ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( ALL 67 ) * + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + - 47 * - col1
----

query II rowsort
SELECT col2 AS col0, + 76 AS col0 FROM tab1
----
59
76
68
76
96
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT - COUNT( * ) AS col1, SUM( + col0 ) col1 FROM tab2
----
-3
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4388
SELECT - COUNT ( * ) AS col1, SUM ( + col0 ) col1 FROM tab2
----
-3
185

query I rowsort
SELECT - 74 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT ALL COUNT( * ), + 75 col0 FROM tab2
----
3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4390
SELECT ALL COUNT ( * ), + 75 col0 FROM tab2
----
3
75

query I rowsort
SELECT ALL - ( - - col0 ) * - 61 * + + 57 * 93 FROM tab1
----
16491411
27485685
29425851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4392
SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT + - col2 + - + col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL col2 * - 4 AS col1 FROM tab1
----
-236
-272
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL - MAX( DISTINCT - 52 ) * + COUNT( * ) col1 FROM tab2
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4395
SELECT ALL - MAX ( DISTINCT - 52 ) * + COUNT ( * ) col1 FROM tab2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL COUNT( * ) * - - CAST( + 44 AS SIGNED ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL COUNT ( * ) * - - CAST ( + 44 AS INTEGER ) FROM tab2 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 43 col0 FROM tab1 AS cor0
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT - COUNT( * ) DIV - - 11 + 10 AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4398
SELECT - COUNT ( * ) / - - 11 + 10 AS col0 FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL + + 17 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT ALL + col2 DIV - col0 + - - 19 AS col2 FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + col2 / - col0 + - - 19 AS col2 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - + 67 AS col0 FROM tab0 AS cor0 WHERE NOT + 66 <= + col0
----
-67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 >= ( NULL )
----

query I rowsort
SELECT + 50 FROM tab0 AS cor0 WHERE 35 * - - 68 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <= - + col0 AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT - MIN( ALL - + col1 ) + + + COUNT( * ) AS col2, MAX( + - col1 ) FROM tab2
----
80
-51

skipif mysql # not compatible
query II rowsort label-4405
SELECT - MIN ( ALL - + col1 ) + + + COUNT ( * ) AS col2, MAX ( + - col1 ) FROM tab2
----
80
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT ALL + col2 - + col0 DIV col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + col2 - + col0 / col2 FROM tab2
----
21
39
57

query II rowsort
SELECT ALL col2, + 58 FROM tab1
----
59
58
68
58
96
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - 17 ) FROM tab0 cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 96 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 96 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN ( 61 + + col1 ) AND + ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4412
SELECT - CAST( - 21 AS SIGNED ) DIV - col1 - col1 AS col1 FROM tab0
----
-22
-22
-81

skipif mysql # not compatible
query I rowsort label-4412
SELECT - CAST ( - 21 AS INTEGER ) / - col1 - col1 AS col1 FROM tab0
----
-22
-22
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col2 - + 18 * 37 col1 FROM tab0
----
-46
2248
5472

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 - + col2 >= + ( - col2 )
----

query I rowsort
SELECT DISTINCT + 53 + + col2 * 36 FROM tab0
----
1745
3617
413

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 38 + col1 ) <> ( col0 + + col1 * 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab2 WHERE ( 92 ) > - col2 / 49 + col1 * 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4418
SELECT DISTINCT * FROM tab2 WHERE + CAST( ( + col0 ) AS SIGNED ) <> ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4418
SELECT DISTINCT * FROM tab2 WHERE + CAST ( ( + col0 ) AS INTEGER ) <> ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col2 col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT + 68 + COUNT( * ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT + 68 + COUNT ( * ) FROM tab1
----
71

query I rowsort
SELECT - 92 FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 * + 35 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT ALL ( col2 ) DIV col0 + - col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL ( col2 ) / col0 + - col0 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT - MIN( 61 ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - MIN ( 61 ) AS col0 FROM tab2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT DISTINCT - col2 + + col2 DIV col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - col2 + + col2 / col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-22
-39
-57

query I rowsort
SELECT col2 - 33 AS col1 FROM tab1
----
26
35
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + COUNT( ALL 50 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4427
SELECT + COUNT ( ALL 50 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT + COUNT( ALL + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + col2 ) * 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 47 / 87 + - col0 * col1 AS col1 FROM tab1 WHERE NOT ( + 15 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - 60 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN - 53 AND ( + 90 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + MAX( DISTINCT + col2 ) FROM tab2 WHERE NOT + col1 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT + MAX ( DISTINCT + col2 ) FROM tab2 WHERE NOT + col1 * + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4434
SELECT ALL COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col1 - col0 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = - col0 * + col0 + col0
----

query I rowsort
SELECT ALL col0 + 97 * + 63 AS col1 FROM tab0 cor0 WHERE NOT col0 / col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * 81 AS col0 FROM tab0 AS cor0
----
-1701
-6561
-81

query I rowsort
SELECT ALL 73 + 81 AS col2 FROM tab1
----
154
154
154

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * - 94 >= ( NULL )
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - ( - col0 ) + + 24 * 89 NOT IN ( - 6 / + 23 + - col2 )
----

query I rowsort
SELECT + 41 + + col2 FROM tab2 AS cor0
----
64
81
99

query I rowsort
SELECT ALL ( col0 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 3 col2 FROM tab1 AS cor0 WHERE + col0 + 56 IS NULL
----

query I rowsort
SELECT DISTINCT 22 + col2 * col2 FROM tab1 AS cor0
----
3503
4646
9238

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL + + 46 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + + 46 / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT DISTINCT + 70 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + 70 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab1 cor0 WHERE 94 * + col2 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL - 1 + 66 * - 80 FROM tab0 AS cor0
----
-5281
-5281
-5281

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <= ( + 5 )
----

query I rowsort
SELECT DISTINCT col0 * + 62 AS col1 FROM tab0
----
5394
6014
930

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + col1 - - col1 >= + 36
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4455
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 5 col1 FROM tab0 WHERE NOT ( - col2 / - col2 + CAST( col2 AS DECIMAL ) ) IN ( col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4455
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 5 col1 FROM tab0 WHERE NOT ( - col2 / - col2 + CAST ( col2 AS REAL ) ) IN ( col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE col2 < col0
----
10

query I rowsort
SELECT - col0 - + 15 FROM tab2
----
-61
-79
-90

query I rowsort
SELECT ALL - col2 - - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 AS col0 FROM tab0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4461
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND CAST( + 5 AS SIGNED ) / - 51
----

skipif mysql # not compatible
query III rowsort label-4461
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND CAST ( + 5 AS INTEGER ) / - 51
----

query I rowsort
SELECT ALL 64 * ( col2 ) - + 44 AS col1 FROM tab2
----
1428
2516
3668

query I rowsort
SELECT ( - 71 ) - + 31 * col0 AS col0 FROM tab2
----
-1497
-2055
-2396

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 - + col2 > - col2 + 3 * 34 AND NOT ( col0 + col1 ) NOT IN ( 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 82 IS NULL AND NOT col0 + col0 * + col1 >= + col0 + + col0 * + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - COUNT( * ) + + 54 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - COUNT ( * ) + + 54 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT COUNT( - + ( - - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT COUNT ( - + ( - - col1 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 * + - ( + col2 ) FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT 11 * - col0 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + + col1
----
75
67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4471
SELECT ALL col1 * + ( ( + 77 ) * + 77 ) AS col0 FROM tab1 AS cor0 WHERE + CAST( + - 89 AS DECIMAL ) IS NOT NULL
----
278663
29645
83006

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL col1 * + ( ( + 77 ) * + 77 ) AS col0 FROM tab1 AS cor0 WHERE + CAST ( + - 89 AS REAL ) IS NOT NULL
----
278663
29645
83006

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - 69 * + col1 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * col2 col1 FROM tab1 AS cor0
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT MIN( DISTINCT 49 ) AS col0 FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-4476
SELECT MIN ( DISTINCT 49 ) AS col0 FROM tab1 cor0
----
49

query II rowsort
SELECT DISTINCT col2, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT + col0 * 36 * + col2 FROM tab2
----
156600
38088
92160

query I rowsort
SELECT 55 AS col0 FROM tab1 WHERE NOT ( + col2 ) > ( NULL )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( - col2 ) IN ( + col1 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 25 < ( + col2 + - col2 )
----
15
81
47

query I rowsort
SELECT + 8 FROM tab2 WHERE NOT NULL = col0
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT 23 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + - col0 ) - - 74 / 17 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * col0 * - - col2 + - - 57 col0 FROM tab0 AS cor0
----
41652
51387
566634

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - 77 + + - COUNT( DISTINCT col1 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 77 + + - COUNT ( DISTINCT col1 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT + col1 * - col0 + - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT - col2 + 71 - col1 AS col0 FROM tab2 AS cor0
----
-3
-46
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4489
SELECT - 24 DIV CAST( - COUNT( - col0 ) AS SIGNED ) + 81 AS col1 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 24 / CAST ( - COUNT ( - col0 ) AS INTEGER ) + 81 AS col1 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4490
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 70 ) col0 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT - 70 * - - col1 FROM tab2
----
-3570
-4690
-5390

query I rowsort
SELECT col1 * col2 FROM tab1 WHERE + col1 NOT IN ( 39 * ( + col0 ) )
----
1344
295
3196

query I rowsort
SELECT ALL + + col1 * 93 FROM tab2 AS cor0
----
4743
6231
7161

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT DISTINCT col2 DIV + + col0 + col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT col2 / + + col0 + col0 FROM tab1 AS cor0
----
52
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT col2 DIV 47 DIV + col0 * - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT col2 / 47 / + col0 * - col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL + COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 21 * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
1143
437
776

query I rowsort
SELECT ALL col2 * + 75 + col2 FROM tab0
----
3572
7524
760

query I rowsort
SELECT ALL + 1 + + col1 FROM tab0
----
2
22
82

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT COUNT( * ) + + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT COUNT ( * ) + + 31 FROM tab2
----
34

query III rowsort
SELECT * FROM tab2 WHERE col1 * col0 + - col2 <= 32
----

query I rowsort
SELECT - ( + - col1 ) + + + col0 AS col2 FROM tab0 WHERE - 21 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - - 0 * + 83 * - - col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col1 * + - col0 - - + 41 AS col2 FROM tab0
----
-1174
-1786
-56

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT - CAST( + MAX( ALL 67 ) AS SIGNED ) * - + 38 FROM tab0 AS cor0
----
2546

skipif mysql # not compatible
query I rowsort label-4508
SELECT - CAST ( + MAX ( ALL 67 ) AS INTEGER ) * - + 38 FROM tab0 AS cor0
----
2546

query II rowsort
SELECT DISTINCT col2, - 53 FROM tab1 AS cor0
----
59
-53
68
-53
96
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT ALL - COUNT( * ) AS col0, 49 AS col0 FROM tab2 AS cor0
----
-3
49

skipif mysql # not compatible
query II rowsort label-4510
SELECT ALL - COUNT ( * ) AS col0, 49 AS col0 FROM tab2 AS cor0
----
-3
49

query I rowsort
SELECT col1 * col1 * col1 FROM tab2 cor0
----
132651
300763
456533

query I rowsort
SELECT DISTINCT + 75 FROM tab1 AS cor0 WHERE NULL IS NULL
----
75

query I rowsort
SELECT DISTINCT - 13 FROM tab0 WHERE ( NULL ) IS NULL
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4514
SELECT ALL + COUNT( * ) AS col0, 74 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
666

skipif mysql # not compatible
query II rowsort label-4514
SELECT ALL + COUNT ( * ) AS col0, 74 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
666

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT + + col2 DIV - 7 + + 59 col0 FROM tab1 cor0
----
46
50
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4515
SELECT + + col2 / - 7 + + 59 col0 FROM tab1 cor0
----
46
50
51

query I rowsort
SELECT DISTINCT - - 85 AS col1 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL + COUNT( - + 16 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + COUNT ( - + 16 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col1 / + ( col2 ) * + 26 * + 77 - + col1 * + col2 + 54 / 38 FROM tab0 AS cor0 WHERE NOT col1 + + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT + 68 + - ( + + SUM( DISTINCT - - col1 ) ) * + 27 FROM tab2
----
-5197

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT + 68 + - ( + + SUM ( DISTINCT - - col1 ) ) * + 27 FROM tab2
----
-5197

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col1 * - + 45 + - col1 + - - 57 * - - 19 = col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4523
SELECT - 48 DIV + col1 * col1 AS col0, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-4523
SELECT - 48 / + col1 * col1 AS col0, col2 FROM tab2
----
0
23
0
40
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col0 FROM tab0
----
67

query I rowsort
SELECT DISTINCT + - 96 FROM tab0 WHERE NOT + + 76 + - col2 IS NULL
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4526
SELECT ALL + col1 AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4526
SELECT ALL + col1 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + + COUNT( * ) * 54 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4527
SELECT + + COUNT ( * ) * 54 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT COUNT( * ) + 55 AS col1, - 78 FROM tab0
----
58
-78

skipif mysql # not compatible
query II rowsort label-4528
SELECT COUNT ( * ) + 55 AS col1, - 78 FROM tab0
----
58
-78

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT + + 69 BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL + + ( col2 ) + col2 DIV + col2 AS col0 FROM tab0 WHERE NOT + 11 IS NULL
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + + ( col2 ) + col2 / + col2 AS col0 FROM tab0 WHERE NOT + 11 IS NULL
----
100
11
48

query I rowsort
SELECT ALL - - 26 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT + col0 * - - CAST( NULL AS SIGNED ) NOT IN ( - col0 * + col0 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col0 * - - CAST ( NULL AS INTEGER ) NOT IN ( - col0 * + col0 + + col0 )
----
0

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4534
SELECT - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4534
SELECT - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT ALL - - col2 * + - col0 + + col2 * - col1 + - 90 AS col1 FROM tab1 AS cor0
----
-5400
-6330
-9474

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT MIN( ALL - + 44 ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4536
SELECT MIN ( ALL - + 44 ) AS col0 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT + col0 * 48 - + 31 AS col0 FROM tab2
----
2177
3041
3569

query I rowsort
SELECT col2 - + - 33 + 26 * + + 56 * - 36 AS col2 FROM tab1
----
-52287
-52315
-52324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 65 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 65 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 18 IN ( - 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 30 AS col2, - col0 FROM tab0
----
30
-15
30
-87
30
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < col1
----

query II rowsort
SELECT ALL - col1, col1 * ( + + col2 ) + + + 84 - + 75 * col0 AS col2 FROM tab1 AS cor0
----
-14
-2397
-47
-3545
-5
-5996

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( col1 ) <= + col2 * + col0 + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT + 54 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4545
SELECT + 54 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
162

query I rowsort
SELECT DISTINCT col0 * 67 FROM tab2 AS cor0
----
3082
4288
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT ALL - col0 DIV col2 + - col1 col2 FROM tab1 cor0
----
-14
-48
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4547
SELECT ALL - col0 / col2 + - col1 col2 FROM tab1 cor0
----
-14
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - - COUNT( * ) * + - 81 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - - COUNT ( * ) * + - 81 FROM tab2 AS cor0
----
-243

query I rowsort
SELECT - ( - 54 ) AS col0 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + COUNT( * ) * + MIN( col2 ) AS col1 FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-4550
SELECT + COUNT ( * ) * + MIN ( col2 ) AS col1 FROM tab2 cor0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT ALL - SUM( ALL + CAST( - + ( - - col1 ) AS SIGNED ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - SUM ( ALL + CAST ( - + ( - - col1 ) AS INTEGER ) ) FROM tab2
----
195

query I rowsort
SELECT + 53 * + + 93 + + + col0 AS col1 FROM tab1
----
4980
5014
5020

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4553
SELECT * FROM tab0 WHERE CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4553
SELECT * FROM tab0 WHERE CAST ( + col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + - col1 * - - col0 * - - col0 + - ( - + 4 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT MAX( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4555
SELECT MAX ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT AVG ( - col1 ) - - CAST( NULL AS SIGNED ) + - AVG ( 93 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT AVG ( - col1 ) - - CAST ( NULL AS INTEGER ) + - AVG ( 93 ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - + 75, col0 AS col1 FROM tab0 AS cor0
----
-75
15
-75
87
-75
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 40 + - + col2 BETWEEN NULL AND - col1 + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT MIN( - col2 ) - ( + SUM( ALL - col2 ) ) FROM tab1 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-4559
SELECT MIN ( - col2 ) - ( + SUM ( ALL - col2 ) ) FROM tab1 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + - COUNT( * ) + - 35 - 32 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4560
SELECT + - COUNT ( * ) + - 35 - 32 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT DISTINCT ( - col0 ) * - 62 + + 68 AS col0 FROM tab1 AS cor0
----
3230
5338
5710

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
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-4562
SELECT - - COUNT ( * ) + - 43 col0 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + COUNT( * ) * + COUNT( * ) + + 89 AS col0 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4563
SELECT + COUNT ( * ) * + COUNT ( * ) + + 89 AS col0 FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4564
SELECT 8 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT 8 + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 * + ( 5 ) AS col1 FROM tab2
----
-125
-125
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL SUM( - 76 ) AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL SUM ( - 76 ) AS col0 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + SUM( ALL + 10 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4567
SELECT + SUM ( ALL + 10 ) AS col0 FROM tab0
----
30

query I rowsort
SELECT ( ( - 6 ) ) AS col0 FROM tab1
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT MAX( DISTINCT + - ( - 5 ) ) FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4569
SELECT MAX ( DISTINCT + - ( - 5 ) ) FROM tab0 cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 = + - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT + MAX( - + col0 ) + + 52 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + MAX ( - + col0 ) + + 52 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 97 = NULL
----

query I rowsort
SELECT ALL - 1 + col0 AS col2 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # DIV for integer division: 
query II rowsort label-4575
SELECT - col2 + - col2 col0, + col1 DIV - 36 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-198
0
-20
0
-94
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4575
SELECT - col2 + - col2 col0, + col1 / - 36 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-198
0
-20
0
-94
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4576
SELECT - + CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT - + CAST ( NULL AS REAL ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE ( + + col0 - - - 59 + col2 - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + COUNT( DISTINCT 31 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4578
SELECT + COUNT ( DISTINCT 31 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 23 + + + col0 AS col2 FROM tab0
----
110
120
38

query I rowsort
SELECT DISTINCT ( + - 42 ) * - ( - - 73 ) AS col1 FROM tab2
----
3066

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT COUNT( * ) DIV + - 71 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT COUNT ( * ) / + - 71 AS col0 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col0 * - col2, + col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query II rowsort
SELECT 6 AS col0, - col1 FROM tab2
----
6
-51
6
-67
6
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4585
SELECT CAST( NULL AS SIGNED ), + 2 AS col1 FROM tab0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-4585
SELECT CAST ( NULL AS INTEGER ), + 2 AS col1 FROM tab0
----
NULL
2
NULL
2
NULL
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + 96 >= + col0 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT DISTINCT col0 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT col0 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT + 65 DIV - 99 * + 12 col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4588
SELECT + 65 / - 99 * + 12 col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + 80 - + col0 + - + col2 FROM tab1
----
-64
-67
-79

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4590
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-4590
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 76 + 44 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4591
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 76 + 44 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4592
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 ) <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4592
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 ) <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4593
SELECT ALL CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + 55, - 8 - 54 AS col0 FROM tab2
----
55
-62
55
-62
55
-62

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 66 ) > + col2 * - 91 + - col0 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT MAX( ALL + - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4596
SELECT MAX ( ALL + - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4597
SELECT ( - col0 ) / - - CAST( - col2 AS DECIMAL ) + ( - 51 ) AS col2 FROM tab0 WHERE NOT + - 94 = NULL
----

skipif mysql # not compatible
query I rowsort label-4597
SELECT ( - col0 ) / - - CAST ( - col2 AS REAL ) + ( - 51 ) AS col2 FROM tab0 WHERE NOT + - 94 = NULL
----

query I rowsort
SELECT ( - 22 ) FROM tab1
----
-22
-22
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL - 74 * + - 63 * - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - 74 * + - 63 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 85 ) + col2 IS NULL
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4601
SELECT ALL + + COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4601
SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 AS col1, col2 col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT + ( + 49 ) * col1 FROM tab0
----
1029
3969
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - col1 + - col1
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - - 64 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT ( - col1 * - + 50 * + ( col2 ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 92 * + col2, 16 * - - 67 AS col2 FROM tab1 AS cor0
----
-5428
1072
-6256
1072
-8832
1072

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL + - COUNT( * ) * + + 36 AS col1 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + - COUNT ( * ) * + + 36 AS col1 FROM tab0 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4610
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IN ( ( 92 ), + CAST( NULL AS SIGNED ), 7 / + + 10 * 19 + - col1 + - col1 / - col0 / + col1 + col1 )
----

skipif mysql # not compatible
query III rowsort label-4610
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IN ( ( 92 ), + CAST ( NULL AS INTEGER ), 7 / + + 10 * 19 + - col1 + - col1 / - col0 / + col1 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT + 53 DIV + - 44 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + 53 / + - 44 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 52 + - col2 col1 FROM tab1 AS cor0
----
-111
-120
-148

query I rowsort
SELECT DISTINCT - + col2 * col1 + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4614
SELECT DISTINCT + COUNT( - ( + + col1 ) ) * - MAX( ALL + col0 ) / - ( 52 ) / + SUM( - CAST( NULL AS DECIMAL ) ) + - MIN( + ( ( - - 79 ) ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT + COUNT ( - ( + + col1 ) ) * - MAX ( ALL + col0 ) / - ( 52 ) / + SUM ( - CAST ( NULL AS REAL ) ) + - MIN ( + ( ( - - 79 ) ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + + col0 * - + col0, 56 AS col0 FROM tab1 AS cor0
----
-2601
56
-7225
56
-8281
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT 80 * + COUNT( * ) + + 24 AS col0 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-4616
SELECT 80 * + COUNT ( * ) + + 24 AS col0 FROM tab2 AS cor0
----
264

query I rowsort
SELECT ALL col1 * - col1 + + col0 AS col1 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT 67 + + 95 FROM tab0
----
162
162
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 24 * - + 85 FROM tab1
----
2040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT ALL + col0 * - - col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) + + 77 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 77 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - - col0 FROM tab1 AS cor0 WHERE NOT 97 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 * + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT + - COUNT( * ) + - 26 + - CAST( - ( - 97 ) AS SIGNED ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + - COUNT ( * ) + - 26 + - CAST ( - ( - 97 ) AS INTEGER ) FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4627
SELECT DISTINCT - - COUNT( * ) DIV + 80 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT - - COUNT ( * ) / + 80 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + 45, col0 AS col1 FROM tab1 AS cor0
----
45
51
45
85
45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - COUNT( DISTINCT - 79 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4629
SELECT - COUNT ( DISTINCT - 79 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab1 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab1 cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT DISTINCT col1 * 83 * 8 DIV + 83 FROM tab2 AS cor0
----
408
536
616

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT col1 * 83 * 8 / + 83 FROM tab2 AS cor0
----
408
536
616

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT 57 + - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 99
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4636
SELECT - 10 DIV + col2, + 79 AS col1 FROM tab2
----
0
79
0
79
0
79

skipif mysql # not compatible
query II rowsort label-4636
SELECT - 10 / + col2, + 79 AS col1 FROM tab2
----
0
79
0
79
0
79

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( col0 ) + col1 = - 39 * + col2 * - col0
----

query II rowsort
SELECT 45 * col1, 55 AS col2 FROM tab1
----
2115
55
225
55
630
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT COUNT( DISTINCT - + 61 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4639
SELECT COUNT ( DISTINCT - + 61 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 BETWEEN NULL AND 99
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT 63 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 IS NULL
----
1
21
81

query I rowsort
SELECT ALL col1 * col2 FROM tab1 AS cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL - - SUM( DISTINCT + ( - col0 ) ) + COUNT( * ) FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - - SUM ( DISTINCT + ( - col0 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-224

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - - col0 - - col2 AS col2 FROM tab0
----
107
109
295

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4647
SELECT DISTINCT * FROM tab2 WHERE NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4647
SELECT DISTINCT * FROM tab2 WHERE NULL >= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + 11 IS NOT NULL
----

query I rowsort
SELECT - 59 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT - col2 * + 76 + - ( + + col0 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-3572
-7524
-768

skipif mysql # not compatible
query I rowsort label-4650
SELECT - col2 * + 76 + - ( + + col0 ) / col2 AS col1 FROM tab0 AS cor0
----
-3572
-7524
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4651
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT col0 DIV 1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT col0 / 1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + col1 + + col0 + + + 52 * - - col2 FROM tab2 cor0
----
1293
2221
3158

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - SUM( ALL 31 ) + - 31 AS col0 FROM tab1
----
-124

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - SUM ( ALL 31 ) + - 31 AS col0 FROM tab1
----
-124

query I rowsort
SELECT + 67 * + ( - col0 ) FROM tab2
----
-3082
-4288
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4656
SELECT * FROM tab1 WHERE ( + 58 ) BETWEEN 2 AND + col1 / + ( - + 2 ) + + col1 + - ( - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4656
SELECT * FROM tab1 WHERE ( + 58 ) BETWEEN 2 AND + col1 / + ( - + 2 ) + + col1 + - ( - - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - ( + + 62 ) ) - + + 35 AS col0 FROM tab2
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 62 * - col1 - col2 col2 FROM tab2
----
-161285
-278376
-367638

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL SUM( + 52 ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL SUM ( + 52 ) FROM tab2 AS cor0
----
156

query I rowsort
SELECT - col1 * + + col0 + + 13 AS col0 FROM tab2 AS cor0
----
-2333
-4915
-5012

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT + 15 + + + 0 DIV + 90 * + - 11 AS col2 FROM tab2
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4662
SELECT + 15 + + + 0 / + 90 * + - 11 AS col2 FROM tab2
----
15
15
15

query I rowsort
SELECT ALL - 18 + - col1 * col1 AS col2 FROM tab1
----
-214
-2227
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + + COUNT( ALL ( - 69 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + + COUNT ( ALL ( - 69 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 53 * + 13 < + + col2 + - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 75 AS col1 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ALL - - COUNT( * ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 83 col2 FROM tab0 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + ( + 21 ) + - col0
----

query I rowsort
SELECT DISTINCT + + 93 * + col1 AS col0 FROM tab1 AS cor0
----
1302
4371
465

query I rowsort
SELECT 85 * - - col0 FROM tab0 cor0
----
1275
7395
8245

query I rowsort
SELECT DISTINCT + 48 * + - col2 AS col1 FROM tab1 AS cor0
----
-2832
-3264
-4608

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ALL - col2 DIV 81 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - col2 / 81 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4674
SELECT 20 DIV + - ( + 63 ) AS col2, + col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-4674
SELECT 20 / + - ( + 63 ) AS col2, + col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + 77 * + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4675
SELECT + 77 * + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
231

query II rowsort
SELECT 35 AS col1, col1 AS col0 FROM tab2
----
35
51
35
67
35
77

query I rowsort
SELECT - 65 * + - col2 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) FROM tab1 WHERE + - col2 = NULL
----

query I rowsort
SELECT col2 * - col1 * - 33 AS col1 FROM tab2
----
101640
128238
38709

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <> + - col0 + - + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1, col2 + + 27 AS col2 FROM tab0 AS cor0
----
1
126
21
37
81
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL + COUNT( * ) col1 FROM tab1 cor0 WHERE NOT - 58 * col0 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT ALL + COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT - 58 * col0 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT - - 89 + col2 AS col0 FROM tab2 AS cor0
----
112
129
147

query II rowsort
SELECT + + 20 + + ( - col2 ) - 40 AS col2, col1 * + col1 AS col2 FROM tab0 AS cor0
----
-119
1
-30
441
-67
6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4685
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - col1 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4685
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - col1 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( - 77 ) = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / 70 + + + col0 <= + col2 - - - 0 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + ( col2 ), - ( col0 ) AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 + - ( + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT + MIN( col2 ) + - - 62 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + MIN ( col2 ) + - - 62 FROM tab1
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL col2 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL col2 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 34 + + - col2 FROM tab2
----
-24
-6
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + + 21 + - - ( + 44 ) AS col2, - 66 col2 FROM tab2
----
1115
-66
1451
-66
1661
-66

query I rowsort
SELECT + - col2 * - - col2 + + col2 FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT MIN( ALL col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4695
SELECT DISTINCT MIN ( ALL col2 ) col1 FROM tab1
----
59

query I rowsort
SELECT - ( + + col0 ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT + - 74 AS col0 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - ( - 36 ) AS col1 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + 32 * + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1504
-3168
-320

query I rowsort
SELECT DISTINCT + AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL + - COUNT( * ) * + 50 col1 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT ALL + - COUNT ( * ) * + 50 col1 FROM tab0 AS cor0
----
-150

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( 37 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 * col1 * + col0 AS col1, - col0 - col1 FROM tab0
----
-158949
-108
-18225
-96
-9409
-98

query I rowsort
SELECT ALL 2 * + col0 AS col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + MAX( col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4706
SELECT + MAX ( col1 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4707
SELECT 45 DIV 34 DIV MIN( - + CAST( 52 AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT 45 / 34 / MIN ( - + CAST ( 52 AS INTEGER ) ) AS col1 FROM tab2
----
0

query II rowsort
SELECT - col0, + ( + col0 ) FROM tab0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + SUM( DISTINCT 47 ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4709
SELECT + SUM ( DISTINCT 47 ) AS col1 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - COUNT( - 70 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4710
SELECT - COUNT ( - 70 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 41 * + + col1 + - col1 AS col2 FROM tab1
----
1880
200
560

query III rowsort
SELECT * FROM tab2 WHERE + 18 = + col1 + + - col0 + - col0 * + col2
----

query I rowsort
SELECT - 42 + - col2 AS col1 FROM tab1 AS cor0
----
-101
-110
-138

onlyif mysql # DIV for integer division: 
query II rowsort label-4714
SELECT ALL - col0, + col1 DIV - col1 + + col0 + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-51
132
-85
138
-91
111

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL - col0, + col1 / - col1 + + col0 + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-51
132
-85
138
-91
111

query I rowsort
SELECT 69 * + col0 * col0 FROM tab1 AS cor0
----
179469
498525
571389

query II rowsort
SELECT 36 - - col1, - col2 AS col1 FROM tab2
----
103
-58
113
-40
87
-23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4717
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + - col2, + CAST( NULL AS SIGNED ) / - + 95 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT CAST ( NULL AS REAL ) - + - col2, + CAST ( NULL AS INTEGER ) / - + 95 FROM tab0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4718
SELECT - 84 DIV + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 84 / + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT ALL 67 * - 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1ef529616c82800477de667f2de508e8

query I rowsort
SELECT DISTINCT - 44 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4721
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 67 = + 68
----

skipif mysql # not compatible
query III rowsort label-4721
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 67 = + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, col0, - col0 * + - col0 + + + col1 + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, col0, - col0 * + - col0 + + + col1 + 88 )
----
0

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE 0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - - ( + - 72 ) FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - COUNT( * ) * + - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4725
SELECT - COUNT ( * ) * + - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - MIN( + - ( + - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4726
SELECT - MIN ( + - ( + - col2 ) ) FROM tab0
----
-10

query I rowsort
SELECT - - 21 + - + col2 FROM tab2 WHERE NOT - col0 >= - col0
----

query I rowsort
SELECT ALL 59 + - + col0 AS col0 FROM tab1
----
-26
-32
8

query I rowsort
SELECT + col0 * ( 5 ) * - col0 + - col1 AS col1 FROM tab1
----
-13019
-36130
-41452

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT - SUM( 86 ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT - SUM ( 86 ) FROM tab0
----
-258

query I rowsort
SELECT DISTINCT 47 * col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT DISTINCT col0 * + 16 FROM tab2
----
1024
1200
736

query I rowsort
SELECT DISTINCT - col0 * - - col0 * + + col1 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
1476225
3337929
9409

query I rowsort
SELECT DISTINCT col1 + - - 88 AS col2 FROM tab0 AS cor0
----
109
169
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 - ( + col0 ) * - + col0 - col1 - - col1 + - col0 * col0 AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT - CAST( NULL AS SIGNED ) - + + ( - - col0 ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT - CAST ( NULL AS INTEGER ) - + + ( - - col0 ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 - - + col2 col1 FROM tab0 cor0
----
-9
28
80

onlyif mysql # aggregate syntax: 
query III rowsort label-4739
SELECT ALL COUNT( * ), COUNT( + col2 ) AS col0, - 77 AS col2 FROM tab1 AS cor0
----
3
3
-77

skipif mysql # not compatible
query III rowsort label-4739
SELECT ALL COUNT ( * ), COUNT ( + col2 ) AS col0, - 77 AS col2 FROM tab1 AS cor0
----
3
3
-77

query II rowsort
SELECT - - 40 + - col1 + + 61 AS col2, + 79 AS col0 FROM tab0 AS cor0
----
100
79
20
79
80
79

query I rowsort
SELECT 55 * - col2 AS col2 FROM tab1 AS cor0 WHERE + col2 * + + col2 IS NOT NULL
----
-3245
-3740
-5280

query I rowsort
SELECT DISTINCT + - col1 + - + 52 FROM tab1 AS cor0
----
-57
-66
-99

query I rowsort
SELECT DISTINCT ( - + 83 ) FROM tab2 AS cor0 WHERE NOT 44 IS NULL AND NULL IS NULL
----
-83

query I rowsort
SELECT + + col0 + + 57 FROM tab1 AS cor0
----
108
142
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 * + col1 * 45 - - col2 FROM tab2
----
-105547
-221720
-226067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab0 WHERE NOT 23 + - 41 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 87 * - col0 + + col0 > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 AS col1, + 14 FROM tab1
----
14
14
47
14
5
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT 36 DIV - 7 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 36 / - 7 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT - COUNT( * ) col1, 44 FROM tab1 AS cor0
----
-3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4751
SELECT - COUNT ( * ) col1, 44 FROM tab1 AS cor0
----
-3
44

query I rowsort
SELECT DISTINCT + 85 * + - ( 93 ) * + - 34 FROM tab1 AS cor0
----
268770

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT + COUNT( * ) * + MAX( DISTINCT + - 42 ) AS col0 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4753
SELECT + COUNT ( * ) * + MAX ( DISTINCT + - 42 ) AS col0 FROM tab0 AS cor0
----
-126

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT col0 / + col0 IN ( 89, col1 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT ( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 AS col1 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - col1 + - + 10 AS col2 FROM tab0
----
-11
-31
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + SUM( ALL - 99 ) AS col2 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + SUM ( ALL - 99 ) AS col2 FROM tab2
----
-297

query I rowsort
SELECT ALL - col1 * - + col1 * col0 * col1 AS col0 FROM tab1
----
10625
139944
9447893

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT COUNT( * ) AS col2, + 53 AS col0 FROM tab1
----
3
53

skipif mysql # not compatible
query II rowsort label-4760
SELECT COUNT ( * ) AS col2, + 53 AS col0 FROM tab1
----
3
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT - 56 * - SUM( ALL + ( + 56 ) ) AS col0 FROM tab0
----
9408

skipif mysql # not compatible
query I rowsort label-4761
SELECT - 56 * - SUM ( ALL + ( + 56 ) ) AS col0 FROM tab0
----
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL COUNT( * ) * + 96 AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL COUNT ( * ) * + 96 AS col1 FROM tab1
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT DISTINCT - col2 DIV + + col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - col2 / + + col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4764
SELECT + col2 * - - 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-4764
SELECT + col2 * - - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-25
-25
-25

query I rowsort
SELECT ALL col2 + + 89 AS col0 FROM tab2 cor0
----
112
129
147

query I rowsort
SELECT 23 * - col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-1401
-580
-997

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4768
SELECT MIN( - + 29 ) DIV + SUM( DISTINCT col0 ) + + 54 * - MAX( DISTINCT + col0 ) AS col0, 87 FROM tab1
----
-4914
87

skipif mysql # not compatible
query II rowsort label-4768
SELECT MIN ( - + 29 ) / + SUM ( DISTINCT col0 ) + + 54 * - MAX ( DISTINCT + col0 ) AS col0, 87 FROM tab1
----
-4914
87

query I rowsort
SELECT - 53 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( - col2, col1 - + 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + 5 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT + + MAX( ALL 4 ) * - SUM( - col0 ) FROM tab1 AS cor0 WHERE NOT + ( + 7 ) + col2 NOT BETWEEN 11 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + + MAX ( ALL 4 ) * - SUM ( - col0 ) FROM tab1 AS cor0 WHERE NOT + ( + 7 ) + col2 NOT BETWEEN 11 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL - COUNT( + - col0 ) FROM tab1 AS cor0 WHERE NOT - 23 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - COUNT ( + - col0 ) FROM tab1 AS cor0 WHERE NOT - 23 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4774
SELECT ALL + CAST( NULL AS DECIMAL ) / - ( col2 ) + - col2 * + + 80 * + ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + CAST ( NULL AS REAL ) / - ( col2 ) + - col2 * + + 80 * + ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4775
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 52 + CAST( NULL AS SIGNED ) AND - + 42
----

skipif mysql # not compatible
query III rowsort label-4775
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 52 + CAST ( NULL AS INTEGER ) AND - + 42
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT NULL < - col1
----

query II rowsort
SELECT col0, + 2 FROM tab0
----
15
2
87
2
97
2

onlyif mysql # DIV for integer division: 
query II rowsort label-4778
SELECT ALL + col2 AS col0, col1 DIV col2 AS col0 FROM tab2
----
23
2
40
1
58
1

skipif mysql # not compatible
query II rowsort label-4778
SELECT ALL + col2 AS col0, col1 / col2 AS col0 FROM tab2
----
23
2
40
1
58
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab2 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT COUNT( DISTINCT - 0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4780
SELECT COUNT ( DISTINCT - 0 ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4781
SELECT ALL - COUNT( * ) DIV - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col1, 18 AS col2 FROM tab1 cor0
----
51
18
85
18
91
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + MAX( + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + MAX ( + + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT - + col2 AS col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + - ( - - COUNT( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4786
SELECT + - ( - - COUNT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT + col0 DIV 5 AS col2 FROM tab2 AS cor0
----
12
15
9

skipif mysql # not compatible
query I rowsort label-4787
SELECT + col0 / 5 AS col2 FROM tab2 AS cor0
----
12
15
9

query II rowsort
SELECT ALL - col1, - 21 * + col0 * + 0 AS col0 FROM tab2
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4789
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - MAX( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT - MAX ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + MIN( DISTINCT - + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4791
SELECT + MIN ( DISTINCT - + col0 ) AS col2 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4792
SELECT ALL - - AVG ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE CAST( - col1 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - - AVG ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE CAST ( - col1 AS REAL ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-164
-95
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 36 col2, - col2 * - - col1 + + col2 * - col0 FROM tab1 AS cor0
----
36
-5310
36
-6240
36
-9384

query II rowsort
SELECT ALL col1 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT 54 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
54
59
54
68
54
96

query I rowsort
SELECT ALL 78 + + col2 FROM tab1 AS cor0
----
137
146
174

query II rowsort
SELECT + + col1, - 66 AS col0 FROM tab2 AS cor0
----
51
-66
67
-66
77
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL - 31 + + 89 * COUNT( * ) FROM tab1
----
236

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - 31 + + 89 * COUNT ( * ) FROM tab1
----
236

query III rowsort
SELECT * FROM tab2 WHERE + - 56 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT ( - 11 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT + MAX( ALL + 51 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT + MAX ( ALL + 51 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 9 AS col2 FROM tab1 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + - 56 FROM tab2 AS cor0
----
-10
19
8

query I rowsort
SELECT + - 14 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT + col2 - 68 AS col1 FROM tab0
----
-21
-58
31

query I rowsort
SELECT - col2 * col2 + + col0 + - col1 AS col1 FROM tab2 cor0
----
-1613
-3356
-534

query I rowsort
SELECT DISTINCT + ( - 35 ) AS col0 FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL SUM( 46 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL SUM ( 46 ) FROM tab1 AS cor0
----
138

query I rowsort
SELECT - 56 * - + 99 AS col2 FROM tab2 AS cor0
----
5544
5544
5544

query I rowsort
SELECT col1 * - - ( - + col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + + COUNT( * ) * 95 AS col1 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4812
SELECT + + COUNT ( * ) * 95 AS col1 FROM tab1 AS cor0
----
285

query II rowsort
SELECT + ( - 27 ) * + 74 AS col0, col1 * + + col0 + + ( - + 8 ) FROM tab2 AS cor0
----
-1998
2338
-1998
4920
-1998
5017

query I rowsort
SELECT ALL + 31 * + col0 AS col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + COUNT( * ) * - 75 AS col2 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + COUNT ( * ) * - 75 AS col2 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT DISTINCT 76 * - 49 FROM tab1 cor0
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - - COUNT( * ) * 38 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - - COUNT ( * ) * 38 FROM tab1 AS cor0
----
114

query I rowsort
SELECT 68 FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 > - 25 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col1 FROM tab0 WHERE NOT - 39 + 73 IS NOT NULL
----

query I rowsort
SELECT ALL 38 AS col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT - 46 * col1 * + col0 FROM tab0
----
-4462
-55890
-84042

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + MIN( DISTINCT + 55 ) FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MIN ( DISTINCT + 55 ) FROM tab1 cor0
----
55

query I rowsort
SELECT DISTINCT + + 70 * - col2 * - - col0 AS col0 FROM tab2 AS cor0
----
-179200
-304500
-74060

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT ALL col1 * col0 DIV col0 AS col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL col1 * col0 / col0 AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - col0 * + ( - 11 ) FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4826
SELECT - + col0 + col0 - - - col2 - 53 * - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT - + col0 + col0 - - - col2 - 53 * - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT - 52 + + + CAST( + - col2 AS SIGNED ) * - col0 AS col2 FROM tab2 cor0
----
1006
2508
4298

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 52 + + + CAST ( + - col2 AS INTEGER ) * - col0 AS col2 FROM tab2 cor0
----
1006
2508
4298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT ALL - + 63 + - COUNT( ALL - + col0 ) DIV 2 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - + 63 + - COUNT ( ALL - + col0 ) / 2 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT MIN( 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4829
SELECT MIN ( 17 ) FROM tab2 AS cor0
----
17

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <> ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT + COUNT( col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT DISTINCT + COUNT ( col1 ) col2 FROM tab1
----
3

query II rowsort
SELECT 1 AS col0, 58 AS col2 FROM tab1
----
1
58
1
58
1
58

query I rowsort
SELECT col0 * - + col0 - - + 29 AS col2 FROM tab1
----
-2572
-7196
-8252

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 + + - col2 AS col1 FROM tab2
----
-51
28
-67
9
-77
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL COUNT( + + 10 ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL COUNT ( + + 10 ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT DISTINCT 50 AS col0, + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----
50
0

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT 50 AS col0, + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----
50
0

query I rowsort
SELECT ALL - col1 * + col2 + col1 + - - 87 FROM tab1 cor0
----
-1243
-203
-3062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT + - CAST( NULL AS SIGNED ) + - ( - 66 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT + - CAST ( NULL AS INTEGER ) + - ( - 66 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL - + COUNT( * ) - + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - + COUNT ( * ) - + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 67 IN ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT COUNT( * ) * COUNT( * ) col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4841
SELECT COUNT ( * ) * COUNT ( * ) col2 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL + SUM( - col0 ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - 35 ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + SUM ( - col0 ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - 35 ) <> ( NULL )
----
NULL

query I rowsort
SELECT - col2 * + 89 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # DIV for integer division: 
query II rowsort label-4844
SELECT DISTINCT + + col1 DIV - - 53 AS col1, - 62 FROM tab2 AS cor0
----
0
-62
1
-62

skipif mysql # not compatible
query II rowsort label-4844
SELECT DISTINCT + + col1 / - - 53 AS col1, - 62 FROM tab2 AS cor0
----
0
-62
1
-62

query I rowsort
SELECT 39 * - + col1 AS col0 FROM tab0 cor0
----
-3159
-39
-819

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4846
SELECT + col0 * col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - col0 IS NOT NULL
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4846
SELECT + col0 * col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - col0 IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT col0 * + col0 * - + col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - COUNT( * ) * - 48 AS col1 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - COUNT ( * ) * - 48 AS col1 FROM tab2
----
144

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE + - col1 - col1 * - 8 IS NULL
----

query II rowsort
SELECT + 67 AS col0, + ( - col0 ) + - ( - - 55 ) FROM tab0
----
67
-142
67
-152
67
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT DISTINCT - col2 DIV 12 FROM tab0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - col2 / 12 FROM tab0
----
-3
-8
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT DISTINCT - COUNT( * ) AS col2, - 65 FROM tab2
----
-3
-65

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT - COUNT ( * ) AS col2, - 65 FROM tab2
----
-3
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab2, tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT + MIN( DISTINCT - 70 ), + 78 + + 3 AS col1 FROM tab2, tab1 AS cor0
----
-70
81

skipif mysql # not compatible
query II rowsort label-4854
SELECT + MIN ( DISTINCT - 70 ), + 78 + + 3 AS col1 FROM tab2, tab1 AS cor0
----
-70
81

query I rowsort
SELECT 70 AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT - col0 + - + col2 + - col0 - + + 92 AS col1 FROM tab0 AS cor0
----
-169
-276
-385

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) NOT BETWEEN + 22 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col2 FROM tab2 WHERE col0 * - ( + 57 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 36 col0 FROM tab1 WHERE col0 * + 37 <> + 57
----
2124
2448
3456

query I rowsort
SELECT ALL 79 + + col1 * + col2 FROM tab0
----
178
289
3886

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + 53 IS NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( + 38 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT col2 / + col0 FROM tab1 WHERE 40 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT - COUNT( * ) * - 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - COUNT ( * ) * - 13 FROM tab0
----
39

query I rowsort
SELECT ( 36 ) * + 24 FROM tab2
----
864
864
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT 42 * + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-4867
SELECT 42 * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - MIN( ALL col1 ) AS col0 FROM tab0 WHERE NULL NOT IN ( col2 * ( - col1 / + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - MIN ( ALL col1 ) AS col0 FROM tab0 WHERE NULL NOT IN ( col2 * ( - col1 / + col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT COUNT( * ) * - 85 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-4869
SELECT COUNT ( * ) * - 85 FROM tab0
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT + MAX( + CAST( NULL AS SIGNED ) ) * - 97 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) * - 97 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 > ( - 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4872
SELECT ALL CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( ( col2 ) ) * 25 FROM tab1
----
-1475
-1700
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4874
SELECT ALL * FROM tab2 WHERE ( CAST( col2 AS SIGNED ) ) * col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-4874
SELECT ALL * FROM tab2 WHERE ( CAST ( col2 AS INTEGER ) ) * col2 <> NULL
----

query I rowsort
SELECT - 80 * col2 AS col0 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT DISTINCT ( - ( + 83 ) ) - col1 AS col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 70 * + 98 AS col2 FROM tab2
----
-6860
-6860
-6860

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL NOT IN ( 16 )
----

query I rowsort
SELECT col0 * 5 FROM tab0 AS cor0
----
435
485
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4881
SELECT + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 79 * col1 AS col1 FROM tab1 AS cor0
----
1106
3713
395

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ( MAX( - ( 70 ) ) ) AS col0 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4883
SELECT ( MAX ( - ( 70 ) ) ) AS col0 FROM tab0 cor0
----
-70

query I rowsort
SELECT DISTINCT - ( 48 ) + 50 * - col2 FROM tab0 AS cor0
----
-2398
-4998
-548

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4885
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT CAST( NULL AS SIGNED ) + 61 NOT BETWEEN NULL AND 48
----

skipif mysql # not compatible
query IIIIII rowsort label-4885
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT CAST ( NULL AS INTEGER ) + 61 NOT BETWEEN NULL AND 48
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 9 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 40 * + 65 FROM tab1 cor0
----
-2600
-2600
-2600

query I rowsort
SELECT + col1 * 75 AS col0 FROM tab0 AS cor0
----
1575
6075
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / - 75 BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT - col2 * 50 AS col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT ALL ( - 19 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1273
-1463
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT + 2 * SUM( DISTINCT + ( col2 ) * CAST( col0 AS SIGNED ) ) FROM tab2 cor0
----
15936

skipif mysql # not compatible
query I rowsort label-4893
SELECT + 2 * SUM ( DISTINCT + ( col2 ) * CAST ( col0 AS INTEGER ) ) FROM tab2 cor0
----
15936

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - MAX( col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-4894
SELECT - MAX ( col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL col1 + + CAST( 91 + - col0 AS SIGNED ) col1 FROM tab2 WHERE NOT NULL BETWEEN - col2 + col0 * 77 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4895
SELECT ALL col1 + + CAST ( 91 + - col0 AS INTEGER ) col1 FROM tab2 WHERE NOT NULL BETWEEN - col2 + col0 * 77 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL - MIN( ALL + + 77 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - MIN ( ALL + + 77 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT ALL 19 * - 30 AS col2 FROM tab0
----
-570
-570
-570

query I rowsort
SELECT ALL + 37 * col2 FROM tab2
----
1480
2146
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT DISTINCT CAST( 38 AS SIGNED ) AS col1 FROM tab2 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT CAST ( 38 AS INTEGER ) AS col1 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT col1 <> - 80 + 97 * col2
----

query I rowsort
SELECT ALL - ( - 30 ) * col0 FROM tab1
----
1530
2550
2730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 70 )
----

query I rowsort
SELECT DISTINCT - col0 + - + 36 + ( + 33 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1602
-3400
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT 26 / SUM( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT 26 / SUM ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 70 * - col1 FROM tab1
----
-3290
-350
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT 7 + + COUNT( * ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4906
SELECT 7 + + COUNT ( * ) AS col1 FROM tab2
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - 75 + 89 * col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT ALL ( + COUNT( * ) ) DIV - 52 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL ( + COUNT ( * ) ) / - 52 FROM tab2
----
0

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 22 / - col2 )
----

query I rowsort
SELECT ALL - 33 FROM tab2 cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4911
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( - 8 AS SIGNED ) AND ( + 39 + + 54 * 10 )
----

skipif mysql # not compatible
query III rowsort label-4911
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( - 8 AS INTEGER ) AND ( + 39 + + 54 * 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT ALL - ( + - col1 ) DIV - + 83 * 65 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - ( + - col1 ) / - + 83 * 65 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 74 + - ( + col2 ) + - 94 * + 13 AS col2 FROM tab2 cor0
----
-1171
-1188
-1206

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT ( col2 + 51 ) > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 * + + 16 + - col1 col0 FROM tab2 cor0
----
25523
53757
8413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT DISTINCT - col1 - + col2 * - 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-4917
SELECT DISTINCT - col1 - + col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4918
SELECT ALL COUNT( * ) - - - 69 AS col1, COUNT( * ) AS col2 FROM tab0
----
-66
3

skipif mysql # not compatible
query II rowsort label-4918
SELECT ALL COUNT ( * ) - - - 69 AS col1, COUNT ( * ) AS col2 FROM tab0
----
-66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT MAX( - 65 ) + - COUNT( * ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT MAX ( - 65 ) + - COUNT ( * ) FROM tab1
----
-68

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - 22 - + - COUNT( - col0 ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4921
SELECT - 22 - + - COUNT ( - col0 ) AS col0 FROM tab0
----
-19

query I rowsort
SELECT ALL - col1 - col0 * + - col0 AS col2 FROM tab2
----
2065
4019
5558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT ( - CAST( - MAX( ALL + 9 ) AS SIGNED ) ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT ( - CAST ( - MAX ( ALL + 9 ) AS INTEGER ) ) AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL SUM( ALL col1 ) - + ( - + ( + COUNT( * ) ) ) * - COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL SUM ( ALL col1 ) - + ( - + ( + COUNT ( * ) ) ) * - COUNT ( * ) FROM tab2
----
186

query I rowsort
SELECT ALL - ( col1 ) - - + 25 + + col2 * 87 FROM tab1
----
5153
5894
8363

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT + + 27 + + + 17 * + 80 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4053

skipif mysql # not compatible
query I rowsort label-4926
SELECT + + 27 + + + 17 * + 80 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4053

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT - + COUNT( ALL 24 ) - - 35 FROM tab0 cor0
----
32

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - + COUNT ( ALL 24 ) - - 35 FROM tab0 cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4928
SELECT * FROM tab2 AS cor0 WHERE + col0 / + CAST( NULL AS SIGNED ) IN ( + + 29 * - ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4928
SELECT * FROM tab2 AS cor0 WHERE + col0 / + CAST ( NULL AS INTEGER ) IN ( + + 29 * - ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT 11 AS col2 FROM tab0 WHERE ( NOT NULL <= ( + 24 ) ) OR CAST( NULL AS SIGNED ) BETWEEN NULL AND - 18 * col1
----

skipif mysql # not compatible
query I rowsort label-4929
SELECT 11 AS col2 FROM tab0 WHERE ( NOT NULL <= ( + 24 ) ) OR CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 18 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT - CAST( - - 23 AS SIGNED ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - CAST ( - - 23 AS INTEGER ) FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + COUNT( * ) * COUNT( * ) + 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
101

skipif mysql # not compatible
query I rowsort label-4931
SELECT + COUNT ( * ) * COUNT ( * ) + 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
101

query I rowsort
SELECT DISTINCT - col0 + + + col2 + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-21
24
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + - col1 ) NOT IN ( - 64 - - 83 + + col1 * - ( 42 * + 25 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 30 AS col1 FROM tab0 AS cor0
----
15
30
87
30
97
30

query II rowsort
SELECT ALL 82, 75 AS col2 FROM tab2 AS cor0
----
82
75
82
75
82
75

query I rowsort
SELECT ALL - 85 + AVG ( ALL + col2 ) FROM tab0 cor0 WHERE - 39 + + ( 33 ) * + col2 <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL + MAX( ALL - - ( + + col2 ) ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4937
SELECT ALL + MAX ( ALL - - ( + + col2 ) ) col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + - ( + 79 ) AS col2 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT 78 * - 28 FROM tab2 AS cor0
----
-2184
-2184
-2184

query I rowsort
SELECT + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - MIN( + - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - MIN ( + - col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT + col2 * - CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + col2 * - CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT MIN( - 71 ) FROM tab1 WHERE NOT ( NULL NOT IN ( col1 * - col2 * + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT MIN ( - 71 ) FROM tab1 WHERE NOT ( NULL NOT IN ( col1 * - col2 * + col2 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 54 + COUNT( * ) AS col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 54 + COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT + 77 * - 9 FROM tab2
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4947
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * col0 * - CAST( NULL AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-4947
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * col0 * - CAST ( NULL AS INTEGER ) > + col1
----

query II rowsort
SELECT ALL 52, + col1 FROM tab1
----
52
14
52
47
52
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 / + - col1 - 20 IN ( 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4950
SELECT * FROM tab1 AS cor0 WHERE ( + col2 + + col0 + + col0 * CAST( NULL AS SIGNED ) * + col1 * + col2 - + col1 ) NOT IN ( 64 )
----

skipif mysql # not compatible
query III rowsort label-4950
SELECT * FROM tab1 AS cor0 WHERE ( + col2 + + col0 + + col0 * CAST ( NULL AS INTEGER ) * + col1 * + col2 - + col1 ) NOT IN ( 64 )
----

query I rowsort
SELECT col2 + - 19 * - - col0 + + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-1851
-2217
-4857

query I rowsort
SELECT ALL 15 + + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-32
1
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 42 FROM tab0 AS cor0
----
-3402
-42
-882

query III rowsort
SELECT * FROM tab1 WHERE + col1 / - - col2 * col1 <= ( NULL )
----

query I rowsort
SELECT - - 71 AS col2 FROM tab1 cor0
----
71
71
71

query II rowsort
SELECT ALL - - col2 * - + col0 * + 71 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
-50055
-81
-61770
-21
-681813
-1

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 FROM tab1 cor0 WHERE - col0 + - 61 + col0 + - col1 * + 22 * col1 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT col0 DIV - + ( - - 16 ) + col0 FROM tab1 AS cor0
----
48
80
86

skipif mysql # not compatible
query I rowsort label-4959
SELECT col0 / - + ( - - 16 ) + col0 FROM tab1 AS cor0
----
48
80
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4960
SELECT - COUNT( * ) + - COUNT( ALL col2 ) / + - ( - - CAST( NULL AS SIGNED ) ) col2, 4 * - 92 AS col0 FROM tab0 cor0
----
NULL
-368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4960
SELECT - COUNT ( * ) + - COUNT ( ALL col2 ) / + - ( - - CAST ( NULL AS INTEGER ) ) col2, 4 * - 92 AS col0 FROM tab0 cor0
----
NULL
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) + - + col1 - + col0 - col0 * + + col1 * + 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) + - + col1 - + col0 - col0 * + + col1 * + 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT ALL - col0 / - col1 + + col1 - - 59 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - col0 / - col1 + + col1 - - 59 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 3 + + + 30 FROM tab0 cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - 37 / - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT DISTINCT 79 * + 35 + 16 - - CAST( col1 AS SIGNED ) col2 FROM tab0
----
2782
2802
2862

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4965
SELECT DISTINCT 79 * + 35 + 16 - - CAST ( col1 AS INTEGER ) col2 FROM tab0
----
2782
2802
2862

query I rowsort
SELECT DISTINCT - col1 * + + col1 + - col2 FROM tab2
----
-2624
-4547
-5969

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4967
SELECT DISTINCT - CAST( + + 69 AS SIGNED ) DIV + - 54 - 4 + - 88 DIV col2 * - col0 - 51 + + ( + col2 ) FROM tab1
----
105
42
90

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT - CAST ( + + 69 AS INTEGER ) / + - 54 - 4 + - 88 / col2 * - col0 - 51 + + ( + col2 ) FROM tab1
----
105
42
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4968
SELECT ALL - CAST( - col1 AS DECIMAL ) + + - ( - + col0 ) * + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4968
SELECT ALL - CAST ( - col1 AS REAL ) + + - ( - + col0 ) * + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT COUNT( * ) * + ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( * ) * + ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NULL BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT - 28 * + 81 * 18 * col2 + - + 5 AS col2 FROM tab1
----
-2408621
-2776037
-3919109

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 < - 17
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE + 97 IN ( - col1, col0 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT 73 DIV - 34 - MAX( - + 58 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-4973
SELECT 73 / - 34 - MAX ( - + 58 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56

query I rowsort
SELECT + 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT MAX( + ( - 7 ) ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-4975
SELECT MAX ( + ( - 7 ) ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT + + COUNT( * ) DIV + MAX( ALL col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + + COUNT ( * ) / + MAX ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT - ( + MIN( - col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - ( + MIN ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + - CAST( + 66 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4978
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + - CAST ( + 66 AS INTEGER )
----

query I rowsort
SELECT - col1 * - col0 + 11 - + - col0 FROM tab1 AS cor0
----
4379
521
776

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT DISTINCT ( + col2 ) DIV + col1 + - col0 + + 38 FROM tab0 cor0
----
-49
23
40

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT ( + col2 ) / + col1 + - col0 + + 38 FROM tab0 cor0
----
-49
23
40

query I rowsort
SELECT + - col1 + ( + col0 ) FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT col0 + + col1 - - 71 * - - col1 AS col1 FROM tab2 AS cor0
----
3718
4899
5608

query I rowsort
SELECT - 26 * - + ( - - 29 ) AS col2 FROM tab1
----
754
754
754

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL ( + MIN( ALL + - ( + col0 ) ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL ( + MIN ( ALL + - ( + col0 ) ) ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT SUM( DISTINCT + 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT SUM ( DISTINCT + 78 ) FROM tab0
----
78

query III rowsort
SELECT * FROM tab1 WHERE ( 52 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT 10 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT 10 / - col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 23 >= - col0
----

query II rowsort
SELECT + + 25 AS col0, 85 * - + col0 FROM tab0 AS cor0
----
25
-1275
25
-7395
25
-8245

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 14 + + - col1 AS col0 FROM tab1
----
-33
0
9

query I rowsort
SELECT ALL 76 - col2 FROM tab0
----
-23
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query II rowsort
SELECT DISTINCT 6 AS col0, col0 * - ( 81 ) FROM tab0 AS cor0
----
6
-1215
6
-7047
6
-7857

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col2 * + 76 - 96 * - - col0 AS col2 FROM tab0
----
-1788
-7592
2132

query I rowsort
SELECT col1 - - 57 * + 27 AS col2 FROM tab1
----
1544
1553
1586

query I rowsort
SELECT DISTINCT - col1 - + ( col2 ) AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT 73 + + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col0 FROM tab1 WHERE NOT NULL NOT IN ( + col1, + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( col2 * col1 )
----

query II rowsort
SELECT ALL + ( 55 ) AS col1, + 96 * col2 FROM tab1
----
55
5664
55
6528
55
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-5003
SELECT DISTINCT MAX( - + col0 ) AS col2, 82 FROM tab0
----
-15
82

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT MAX ( - + col0 ) AS col2, 82 FROM tab0
----
-15
82

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col2 + + col2 + 4 NOT IN ( + 41, col2 * - 20 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT SUM( DISTINCT + col1 ) * SUM( DISTINCT + col1 ) FROM tab0 cor0
----
10609

skipif mysql # not compatible
query I rowsort label-5005
SELECT SUM ( DISTINCT + col1 ) * SUM ( DISTINCT + col1 ) FROM tab0 cor0
----
10609

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT - col1 DIV + - ( - 37 ) FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT - col1 / + - ( - 37 ) FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL CAST( - 74 AS SIGNED ) FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL CAST ( - 74 AS INTEGER ) FROM tab0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - MIN( - 12 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5008
SELECT - MIN ( - 12 ) AS col0 FROM tab0
----
12

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE + col1 BETWEEN + col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-5010
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + - 75 AS col1 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / + - ( + col2 ) > - col0 * + - 3 + - col2
----
15
81
47

query II rowsort
SELECT DISTINCT + col0, ( col1 ) AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 = col2
----

query II rowsort
SELECT col1 AS col0, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = col2 + 45
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - 96 + col1 + - col0 * - - 2 * + + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col2 * col2 AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + - col0 IS NULL
----

query I rowsort
SELECT + col0 / - 17 AS col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT 0 + - ( - col2 ) FROM tab2
----
23
40
58

query I rowsort
SELECT 29 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - col0 + + + 70 + 65 FROM tab2 AS cor0
----
60
71
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 - col1 col0 FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - 60 + - COUNT( col2 ) * - SUM( + 61 ) AS col1 FROM tab1
----
489

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - 60 + - COUNT ( col2 ) * - SUM ( + 61 ) AS col1 FROM tab1
----
489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 61 col0 FROM tab1 AS cor0
----
-10
24
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT + 22 + 54 DIV col0 col2 FROM tab0 cor0
----
22
22
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5028
SELECT + 22 + 54 / col0 col2 FROM tab0 cor0
----
22
22
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT - 25 + - CAST( + col2 AS SIGNED ) + - col1 AS col2 FROM tab1 cor0
----
-135
-140
-89

skipif mysql # not compatible
query I rowsort label-5029
SELECT - 25 + - CAST ( + col2 AS INTEGER ) + - col1 AS col2 FROM tab1 cor0
----
-135
-140
-89

query I rowsort
SELECT + ( col1 ) + 96 AS col2 FROM tab0 AS cor0
----
117
177
97

query I rowsort
SELECT DISTINCT - ( + 72 ) AS col1 FROM tab2 AS cor0 WHERE NULL > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT - col2 DIV - + 42 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5032
SELECT - col2 / - + 42 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT ALL col1 * + - 29 AS col2 FROM tab1 WHERE + col2 = + - col0
----

query I rowsort
SELECT ALL 88 * col0 FROM tab1
----
4488
7480
8008

query I rowsort
SELECT DISTINCT ( - - 46 ) FROM tab1
----
46

query II rowsort
SELECT + col1, - ( - 21 ) - - col0 AS col2 FROM tab2
----
51
67
67
96
77
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - 92 * COUNT( * ) FROM tab1 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 92 * COUNT ( * ) FROM tab1 cor0
----
-276

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL + + 6 DIV - ( + col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + + 6 / - ( + col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 9 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT - COUNT( * ) DIV + 94 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5041
SELECT - COUNT ( * ) / + 94 col2 FROM tab0
----
0

query I rowsort
SELECT - 18 + col0 - - + col2 AS col2 FROM tab0 AS cor0
----
178
44
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 9 + + - col0 AS col1 FROM tab2 AS cor0
----
-55
-73
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT COUNT( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT COUNT ( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - ( + col0 ) ) * - - col0 + + - col0 col2 FROM tab1
----
-2652
-7310
-8372

query I rowsort
SELECT col1 * + 19 * 44 FROM tab1
----
11704
39292
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT - 32 AS col2, + COUNT( * ) FROM tab2
----
-32
3

skipif mysql # not compatible
query II rowsort label-5048
SELECT - 32 AS col2, + COUNT ( * ) FROM tab2
----
-32
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - ( + - col2 ) ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT + COUNT( ( - CAST( - - 20 AS SIGNED ) ) ) + + - COUNT( * ) + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT + COUNT ( ( - CAST ( - - 20 AS INTEGER ) ) ) + + - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT + col1 * + col1 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT + col1 * + col1 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT 2 * - - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5052
SELECT 2 * - - COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT + 59 DIV - - col1 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 59 / - - col1 FROM tab1 AS cor0
----
1
11
4

query I rowsort
SELECT ALL ( col1 ) * + 78 AS col0 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT DISTINCT - - 48 * - 21 AS col1 FROM tab0 AS cor0
----
-1008

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + ( - + col1 ) * - - col1 = NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 30 / + col2 * + 43 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT - - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT 63 + - COUNT( * ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT 63 + - COUNT ( * ) AS col2 FROM tab2
----
60

query I rowsort
SELECT ALL - 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col2 col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL 77 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + CAST( - ( + + 25 ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL 77 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + CAST ( - ( + + 25 ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT COUNT( ALL - col1 ) * - 33 + - - 16 AS col2 FROM tab1 WHERE 55 >= NULL
----
16

skipif mysql # not compatible
query I rowsort label-5064
SELECT COUNT ( ALL - col1 ) * - 33 + - - 16 AS col2 FROM tab1 WHERE 55 >= NULL
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT DISTINCT - 58 DIV - + ( - col1 ) - - ( - 89 ) + + + col1 AS col0 FROM tab2
----
-12
-22
-39

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - 58 / - + ( - col1 ) - - ( - 89 ) + + + col1 AS col0 FROM tab2
----
-12
-22
-39

query I rowsort
SELECT DISTINCT + 94 * col0 - - 86 FROM tab1 AS cor0
----
4880
8076
8640

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col1 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT + + MAX( - 63 ) FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + + MAX ( - 63 ) FROM tab1 cor0
----
-63

query I rowsort
SELECT - col1 * - ( - 97 ) FROM tab2 cor0
----
-4947
-6499
-7469

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT col1 DIV + ( col0 ) AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT col1 / + ( col0 ) AS col0 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL + ( - MIN( + col0 ) ) * - ( - SUM( - 58 ) ) * + + COUNT( * ) FROM tab1 WHERE - - col1 + + col2 IS NOT NULL
----
26622

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + ( - MIN ( + col0 ) ) * - ( - SUM ( - 58 ) ) * + + COUNT ( * ) FROM tab1 WHERE - - col1 + + col2 IS NOT NULL
----
26622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * col2 col2 FROM tab0
----
1504
3168
320

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + MAX( + + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5073
SELECT + MAX ( + + col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL MAX( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5075
SELECT ( + CAST( NULL AS DECIMAL ) ) * 47 / col1 * - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ( + CAST ( NULL AS REAL ) ) * 47 / col1 * - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL COUNT( DISTINCT + 28 ) * + - 80 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL COUNT ( DISTINCT + 28 ) * + - 80 FROM tab2 AS cor0
----
-80

query II rowsort
SELECT + 5 AS col2, col1 * - - col0 FROM tab0 AS cor0
----
5
1215
5
1827
5
97

query I rowsort
SELECT DISTINCT + col0 / - - col0 AS col1 FROM tab1 cor0 WHERE - col1 NOT BETWEEN NULL AND ( + 29 )
----

query I rowsort
SELECT DISTINCT - - 36 * + - 9 + + col1 * + ( + 36 ) AS col0 FROM tab1 AS cor0
----
-144
1368
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5080
SELECT ALL + SUM( DISTINCT + col0 ) DIV - SUM( DISTINCT col0 ) FROM tab0 AS cor0 WHERE + 45 + + - col1 NOT BETWEEN - col0 AND - col1 + col1
----
-1

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + SUM ( DISTINCT + col0 ) / - SUM ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE + 45 + + - col1 NOT BETWEEN - col0 AND - col1 + col1
----
-1

query I rowsort
SELECT DISTINCT 76 + - 20 AS col0 FROM tab0 AS cor0
----
56

query I rowsort
SELECT DISTINCT + 29 - + + col2 * - 76 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - + col0 + + - col2 + 82 + col1 AS col2 FROM tab1 cor0
----
-4896
-4987
-6127

query I rowsort
SELECT - col1 + - 79 FROM tab2 AS cor0
----
-130
-146
-156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NULL AND col2 < col0
----

query II rowsort
SELECT DISTINCT + col2 + - col0, + 11 AS col0 FROM tab2
----
-17
11
-23
11
-24
11

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) NOT BETWEEN NULL AND 10
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT + col2 * - 60 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT + col2 * - 60 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) * - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5090
SELECT DISTINCT - CAST( + 41 AS SIGNED ) * - 55 AS col0, + col2 AS col1 FROM tab2
----
2255
23
2255
40
2255
58

skipif mysql # not compatible
query II rowsort label-5090
SELECT DISTINCT - CAST ( + 41 AS INTEGER ) * - 55 AS col0, + col2 AS col1 FROM tab2
----
2255
23
2255
40
2255
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2
----
-27

query I rowsort
SELECT + 65 * + col0 AS col2 FROM tab0 cor0
----
5655
6305
975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT + - 27 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT + - 27 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT MIN( DISTINCT - ( - + col0 ) ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-5094
SELECT MIN ( DISTINCT - ( - + col0 ) ) FROM tab2 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col2 FROM tab0
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5096
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ALL - col1 DIV 97 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - col1 / 97 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL - + COUNT( - col2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5098
SELECT ALL - + COUNT ( - col2 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT 0 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5099
SELECT 0 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 24 AND + ( + - col0 ) + 7
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL - COUNT( * ) / - COUNT( * ) * + MIN( DISTINCT + CAST( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - COUNT ( * ) / - COUNT ( * ) * + MIN ( DISTINCT + CAST ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 / - col0 FROM tab0 WHERE NOT ( 73 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col1 FROM tab1
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + - col1 ) ) col0 FROM tab2 WHERE NOT - 30 > + + col2 + - col2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + SUM( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5107
SELECT + SUM ( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT DISTINCT + - COUNT( * ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + - COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 61 + - 53 * - CAST( - col2 AS SIGNED ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 61 + - 53 * - CAST ( - col2 AS INTEGER ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * col2 * - + col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT + MAX( + + col0 ) * + ( - - 43 ) FROM tab0
----
4171

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT + MAX ( + + col0 ) * + ( - - 43 ) FROM tab0
----
4171

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 52 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5115
SELECT - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT - CAST ( NULL AS REAL ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT + col2 * - - ( CAST( - 99 AS SIGNED ) ) * + + 84 * + - 16 + + col2 FROM tab0 AS cor0
----
13172643
1330570
6253679

skipif mysql # not compatible
query I rowsort label-5116
SELECT + col2 * - - ( CAST ( - 99 AS INTEGER ) ) * + + 84 * + - 16 + + col2 FROM tab0 AS cor0
----
13172643
1330570
6253679

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 66 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5118
SELECT - + col2, - col1 DIV - col0 - + + col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-47
-10
-99
-97

skipif mysql # not compatible
query II rowsort label-5118
SELECT - + col2, - col1 / - col0 - + + col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-47
-10
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT + MIN( DISTINCT + 40 ) AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-5119
SELECT + MIN ( DISTINCT + 40 ) AS col1 FROM tab2
----
40

query I rowsort
SELECT ALL col2 + + - col1 + - - col0 FROM tab0
----
-19
195
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT ALL - 29 DIV + + col1 - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - 29 / + + col1 - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT MIN( - 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-5122
SELECT MIN ( - 74 ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ( - SUM( - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5123
SELECT ( - SUM ( - col1 ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT SUM( + 64 ) AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5124
SELECT SUM ( + 64 ) AS col1 FROM tab1
----
192

query I rowsort
SELECT + col2 - - col1 * col1 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - COUNT( - - 91 ) - 54 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-5126
SELECT - COUNT ( - - 91 ) - 54 FROM tab2
----
-57

query I rowsort
SELECT AVG ( DISTINCT - + col0 ) AS col0 FROM tab0 WHERE - + col2 * + col0 + + + 14 * 61 * 21 * + ( 89 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 70 * - 61 FROM tab0
----
-4270

query I rowsort
SELECT + col0 - - col2 - + col2 * col0 AS col0 FROM tab0
----
-643
-773
-9407

query I rowsort
SELECT DISTINCT + col0 - - col0 * + + 66 * ( + 87 ) AS col0 FROM tab1
----
292893
488155
522613

query I rowsort
SELECT DISTINCT + + 24 FROM tab1 cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT - - CAST( NULL AS SIGNED ) + - 77 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT - - CAST ( NULL AS INTEGER ) + - 77 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - ( 25 ), col1 FROM tab1 AS cor0
----
-25
14
-25
47
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL COUNT( DISTINCT + + col2 ) + 17 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL COUNT ( DISTINCT + + col2 ) + 17 FROM tab2 cor0
----
20

query I rowsort
SELECT 60 + - + 87 AS col2 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL + 21 + + col1 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT DISTINCT - col1 * + + 59 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND - col0
----

query I rowsort
SELECT + 4 * + - 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 28 IS NULL
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 28 > + - 40 + col0
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - + ( + 13 ) FROM tab0 AS cor0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT + 40 * - col1 * + 74 FROM tab2 AS cor0
----
-150960
-198320
-227920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5144
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT ALL - 64 DIV col1 FROM tab1
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - 64 / col1 FROM tab1
----
-1
-12
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT ALL 90 DIV - ( + col2 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 90 / - ( + col2 ) FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT - col2 DIV - 37 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - col2 / - 37 FROM tab0
----
0
1
2

query III rowsort
SELECT * FROM tab0 WHERE NOT - 26 * + 75 - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE + 95 * - + col1 IN ( + 91, - col2 * + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5149
SELECT ALL * FROM tab2 WHERE + 95 * - + col1 IN ( + 91, - col2 * + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL ( + 78 ) FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT 85 + ( MIN( ALL + + col1 ) ) + - + MAX( DISTINCT + ( - 46 ) ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-5151
SELECT 85 + ( MIN ( ALL + + col1 ) ) + - + MAX ( DISTINCT + ( - 46 ) ) FROM tab2 AS cor0
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT - COUNT( * ) + + MAX( ALL - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT + col1 + - + 46 NOT BETWEEN NULL AND - col1 * - col0 - col0 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - COUNT ( * ) + + MAX ( ALL - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT + col1 + - + 46 NOT BETWEEN NULL AND - col1 * - col0 - col0 * + col0
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - col2 FROM tab1 AS cor0
----
1
29
38

query I rowsort
SELECT DISTINCT - + col2 * col1 - + col0 + - 32 + - col0 + + 4 + + + 99 FROM tab0 AS cor0
----
-222
-313
-3766

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5155
SELECT DISTINCT + - col1 + col0 * - + CAST( 95 AS SIGNED ) AS col1, - 75 FROM tab0 AS cor0
----
-1506
-75
-8286
-75
-9216
-75

skipif mysql # not compatible
query II rowsort label-5155
SELECT DISTINCT + - col1 + col0 * - + CAST ( 95 AS INTEGER ) AS col1, - 75 FROM tab0 AS cor0
----
-1506
-75
-8286
-75
-9216
-75

query I rowsort
SELECT DISTINCT - 48 + + + col2 AS col0 FROM tab1 AS cor0
----
11
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT - COUNT( * ) - - + MIN( - - ( 70 ) ) AS col1 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT - COUNT ( * ) - - + MIN ( - - ( 70 ) ) AS col1 FROM tab2
----
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - 37 ) > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT + MIN( ALL - - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5159
SELECT + MIN ( ALL - - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + 5 * MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5160
SELECT + 5 * MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5161
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT - AVG ( CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + 48 * + col2 * + 58 AS col1 FROM tab0 AS cor0
----
130848
275616
27840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT DISTINCT - 83 * + - 91 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
113295
657111
732641

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - 83 * + - 91 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
113295
657111
732641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col2 + + col1 FROM tab2 AS cor0
----
51
28
67
9
77
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT ALL 54 DIV + + 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL 54 / + + 89 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + - col2 - - col2 + ( + 78 ) FROM tab2 WHERE NOT + 81 * + + 17 IS NOT NULL
----

query I rowsort
SELECT ( - 85 ) AS col2 FROM tab0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - MIN( - 87 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - MIN ( - 87 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
87

query I rowsort
SELECT - col1 + + col1 - - - col1 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT + - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5170
SELECT + - col0 / - col1 AS col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT - col1 * + 97 FROM tab2 AS cor0
----
-4947
-6499
-7469

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - col2 + + col0 BETWEEN - col0 / col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL + COUNT( * ) + - + 39 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + COUNT ( * ) + - + 39 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL - 76 - - - 94 FROM tab2 AS cor0
----
-170
-170
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT - COUNT( * ) + + MIN( ( col1 ) ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT - COUNT ( * ) + + MIN ( ( col1 ) ) FROM tab2
----
48

query I rowsort
SELECT col0 - - 3 AS col1 FROM tab0
----
100
18
90

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + 37 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 col2 FROM tab0
----
110
2256
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT - 63 DIV - - col1 - col0 FROM tab0
----
-15
-160
-90

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 63 / - - col1 - col0 FROM tab0
----
-15
-160
-90

query I rowsort
SELECT DISTINCT + ( - 39 ) - - - 38 * + - col2 AS col2 FROM tab0
----
1747
341
3723

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5181
SELECT col2 - CAST( NULL AS SIGNED ) AS col0, 32 FROM tab0
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
query II rowsort label-5181
SELECT col2 - CAST ( NULL AS INTEGER ) AS col0, 32 FROM tab0
----
NULL
32
NULL
32
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + 71 * - 67 - + MAX( + - col2 ) AS col2 FROM tab1
----
-4698

skipif mysql # not compatible
query I rowsort label-5182
SELECT + 71 * - 67 - + MAX ( + - col2 ) AS col2 FROM tab1
----
-4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT 22 * - 70 + col2 + CAST( NULL AS SIGNED ) - + - 12 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT 22 * - 70 + col2 + CAST ( NULL AS INTEGER ) - + - 12 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT ALL MIN( DISTINCT 2 ) AS col0, + 28 + + 31 AS col0 FROM tab2
----
2
59

skipif mysql # not compatible
query II rowsort label-5184
SELECT ALL MIN ( DISTINCT 2 ) AS col0, + 28 + + 31 AS col0 FROM tab2
----
2
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT + col0 * col2 DIV + - 99 AS col1 FROM tab2 AS cor0
----
-10
-25
-43

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + col0 * col2 / + - 99 AS col1 FROM tab2 AS cor0
----
-10
-25
-43

query I rowsort
SELECT + col2 * - col1 * + col1 + col2 AS col0 FROM tab2 cor0
----
-237120
-260304
-59800

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - ( + + ( COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5187
SELECT - ( + + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT COUNT( + 99 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5188
SELECT COUNT ( + 99 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * ( + ( - 44 ) ) AS col2 FROM tab1 cor0
----
2244
3740
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT + CAST( - 82 AS SIGNED ) - + 54 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-5190
SELECT + CAST ( - 82 AS INTEGER ) - + 54 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5191
SELECT * FROM tab2 cor0 WHERE NOT 51 * - col0 BETWEEN - CAST( col1 AS SIGNED ) * + 39 - - - col2 AND + CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5191
SELECT * FROM tab2 cor0 WHERE NOT 51 * - col0 BETWEEN - CAST ( col1 AS INTEGER ) * + 39 - - - col2 AND + CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 * - + col2 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col0 * + 13 * 42 AND NULL
----

query I rowsort
SELECT + col2 * + 26 FROM tab2 AS cor0
----
1040
1508
598

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 73 * col1 = + col0 + col2 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + + 51 <> - - 40 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5197
SELECT COUNT( * ) DIV + MIN( DISTINCT 70 ) * - 13 + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5197
SELECT COUNT ( * ) / + MIN ( DISTINCT 70 ) * - 13 + - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + COUNT( DISTINCT - + 41 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + COUNT ( DISTINCT - + 41 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5199
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > 8
----

skipif mysql # not compatible
query III rowsort label-5199
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > 8
----

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab2 WHERE NOT + ( - col0 ) + 53 + col2 IS NULL
----
-1600
-3364
-529

query I rowsort
SELECT ALL + + 54 + - 64 * + + 29 FROM tab0 AS cor0
----
-1802
-1802
-1802

query I rowsort
SELECT - + 12 + - 44 * 22 + - + 28 FROM tab2 AS cor0
----
-1008
-1008
-1008

query II rowsort
SELECT - - col2 AS col0, + col2 + 94 FROM tab1 cor0
----
59
153
68
162
96
190

query I rowsort
SELECT ALL 78 * - 51 + - col2 FROM tab0 AS cor0
----
-3988
-4025
-4077

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + ( + SUM( ALL col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5205
SELECT + ( + SUM ( ALL col1 ) ) FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 cor0 WHERE ( - - col1 = - ( col0 ) + 11 * - 61 )
----

query I rowsort
SELECT DISTINCT 86 * - 63 * + 22 FROM tab1 cor0
----
-119196

query I rowsort
SELECT ALL - col2 * - - col0 - - - col1 * + col2 * - + 59 FROM tab0 cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT ALL - ( - - col2 ) DIV + 47 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - ( - - col2 ) / + 47 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + + 22 + col1 AS col1 FROM tab2 AS cor0
----
73
89
99

query I rowsort
SELECT - 28 * - 6 - - 29 + + col1 + + col1 * + col1 FROM tab0 AS cor0
----
199
659
6839

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2, - col2 )
----

query I rowsort
SELECT + + 82 * col0 + + ( + col0 ) FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT + MAX( col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + MAX ( col0 ) AS col2 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * 59 - + col1 col2, - col0 AS col2 FROM tab0
----
5112
-87
5722
-97
804
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 < ( ( - + col2 ) ) - + 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, - 51 FROM tab1
----
14
-51
47
-51
5
-51

query I rowsort
SELECT ( + + 86 ) AS col0 FROM tab2
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT MIN( + + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5219
SELECT DISTINCT MIN ( + + col2 ) col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + 88 * + 63 AS col0 FROM tab1 AS cor0
----
5544

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 18 * + + ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 64 / - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 * + ( - col0 ), col1 AS col0 FROM tab1 AS cor0
----
425
5
4277
47
714
14

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col0 / - 25 * col1 + + col2 * - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5225
SELECT * FROM tab1 WHERE NOT + - 15 + + col0 < CAST( - col1 AS SIGNED ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5225
SELECT * FROM tab1 WHERE NOT + - 15 + + col0 < CAST ( - col1 AS INTEGER ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL - col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 87 col2 FROM tab0 AS cor0
----
1827
7047
87

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 * - 70 FROM tab1 AS cor0
----
14071330
148750
699720

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col2 >= + + 39 * col2 * 84
----

query I rowsort
SELECT ALL - 70 AS col0 FROM tab0 cor0 WHERE NULL <= + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5232
SELECT + col2 + - 36 AS col2, - CAST( NULL AS SIGNED ) * + - ( 63 ) * + col1 + + + col2 col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NULL
----
23
NULL
32
NULL
60
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5232
SELECT + col2 + - 36 AS col2, - CAST ( NULL AS INTEGER ) * + - ( 63 ) * + col1 + + + col2 col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NULL
----
23
NULL
32
NULL
60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5233
SELECT DISTINCT + - ( CAST( - col1 AS SIGNED ) ), - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-5233
SELECT DISTINCT + - ( CAST ( - col1 AS INTEGER ) ), - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 27 + + 51 - + + col2 AS col1 FROM tab2 AS cor0
----
20
38
55

query I rowsort
SELECT - + col0 * 33 + - col0 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
-1538
-2865
-885

query I rowsort
SELECT - col1 + - - col1 * col2 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT DISTINCT - + col2 * + - CAST( - 49 AS SIGNED ) FROM tab2 AS cor0
----
-1127
-1960
-2842

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - + col2 * + - CAST ( - 49 AS INTEGER ) FROM tab2 AS cor0
----
-1127
-1960
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT 69 + - - ( + - MAX( DISTINCT - + col2 ) ) FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT 69 + - - ( + - MAX ( DISTINCT - + col2 ) ) FROM tab0 cor0
----
79

query I rowsort
SELECT ALL - ( - + ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - - 25 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - - 25 FROM tab0 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 WHERE + col1 + 69 + + + ( + col2 ) * + col1 <> NULL
----

query I rowsort
SELECT ALL 60 * - 95 FROM tab2
----
-5700
-5700
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT CAST( NULL AS SIGNED ) * + 92 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT CAST ( NULL AS INTEGER ) * + 92 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT + 80 * - - col2 AS col1 FROM tab2
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + MAX( ALL - col2 ) * - COUNT( 64 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-5247
SELECT + MAX ( ALL - col2 ) * - COUNT ( 64 ) FROM tab1
----
177

query I rowsort
SELECT ALL - ( + - col0 ) * - col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - COUNT( * ) * - + 92 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-5249
SELECT - COUNT ( * ) * - + 92 FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT COUNT( * ) * 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5250
SELECT COUNT ( * ) * 42 FROM tab1
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL + 33 DIV + + col1 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + 33 / + + col1 FROM tab1 AS cor0
----
0
2
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT ALL col1 DIV + + ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL col1 / + + ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT + CAST( - col1 AS SIGNED ) * - 98 + - col0 AS col1 FROM tab1 AS cor0
----
1321
405
4515

skipif mysql # not compatible
query I rowsort label-5253
SELECT + CAST ( - col1 AS INTEGER ) * - 98 + - col0 AS col1 FROM tab1 AS cor0
----
1321
405
4515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT - 75 DIV + - MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - 75 / + - MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND + col2 * - col2 * + 81 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL + + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col0 + + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col0 + + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + 66 AS col2 FROM tab0
----
-21
-31
51

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 < NULL
----

query I rowsort
SELECT ALL + col2 - ( - col1 ) AS col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 / - 82 BETWEEN + col2 AND 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5263
SELECT ALL ( ( 89 ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
89
NULL
89
NULL
89
NULL

skipif mysql # not compatible
query II rowsort label-5263
SELECT ALL ( ( 89 ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
89
NULL
89
NULL
89
NULL

query I rowsort
SELECT - 88 * - - 83 FROM tab2 AS cor0
----
-7304
-7304
-7304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 + col0 - ( - 95 ) * + 32 col0 FROM tab0 AS cor0
----
3145
3217
3227

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - COUNT( * ) * 37 AS col2 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5266
SELECT - COUNT ( * ) * 37 AS col2 FROM tab2 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - SUM( 24 ) AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-5267
SELECT - SUM ( 24 ) AS col2 FROM tab1
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT 25 < + + col0 * + - 55 / - + col1
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT COUNT( * ) DIV + 88 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT COUNT ( * ) / + 88 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 4 / - col2 + col2 * - ( + col0 ) + - col0 + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + + MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + + MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT - 43 AS col2, - 0 - - ( - col0 ) * + 43 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-43
-2193
-43
-3655
-43
-3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab1 cor0 WHERE NOT NULL >= + 47 + + 98
----

query I rowsort
SELECT + + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 65 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5277
SELECT + + 99 AS col1, COUNT( * ) AS col1 FROM tab2 cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-5277
SELECT + + 99 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0
----
99
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5279
SELECT + + COUNT( * ) AS col0, + SUM( DISTINCT + CAST( col0 AS SIGNED ) ) + CAST( + - 33 AS SIGNED ) col0 FROM tab0 AS cor0
----
3
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5279
SELECT + + COUNT ( * ) AS col0, + SUM ( DISTINCT + CAST ( col0 AS INTEGER ) ) + CAST ( + - 33 AS INTEGER ) col0 FROM tab0 AS cor0
----
3
166

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + col2 + + + 18 AS col2 FROM tab2 AS cor0
----
41
58
76

query I rowsort
SELECT DISTINCT col2 + + col0 + + 39 FROM tab1
----
183
186
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - MIN( - col1 ) + - COUNT( * ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-5283
SELECT - MIN ( - col1 ) + - COUNT ( * ) FROM tab2
----
74

query I rowsort
SELECT DISTINCT - col2 + - - 70 - - ( - col1 ) FROM tab0
----
-30
-58
39

query I rowsort
SELECT + col0 + - + 57 FROM tab0
----
-42
30
40

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT + 55 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT DISTINCT - col0 * + 76 * + CAST( col1 AS SIGNED ) * + + col2 + - col2 * + col2 FROM tab2 AS cor0
----
-14982720
-22153564
-4101337

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - col0 * + 76 * + CAST ( col1 AS INTEGER ) * + + col2 + - col2 * + col2 FROM tab2 AS cor0
----
-14982720
-22153564
-4101337

query I rowsort
SELECT ALL 16 - col2 FROM tab0
----
-31
-83
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 58 * + 5 BETWEEN NULL AND 94 / + col2 * + - col1 * - col0 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT + col0 * + col2 / + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT + col0 * + col2 / + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 25 AS col1 FROM tab1 cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5294
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + - col2 * - CAST( NULL AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5294
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + - col2 * - CAST ( NULL AS INTEGER ) + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5295
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT + col0 + + ( ( - CAST( NULL AS DECIMAL ) ) ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT + col0 + + ( ( - CAST ( NULL AS REAL ) ) ) IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 39 * 28 * - + col0, + col1 col2 FROM tab1 AS cor0
----
-55692
14
-92820
5
-99372
47

query I rowsort
SELECT DISTINCT - + 37 * - col0 FROM tab0 AS cor0
----
3219
3589
555

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5298
SELECT ALL - ( - 64 ) * + col1 + ( - + col2 ) / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - ( - 64 ) * + col1 + ( - + col2 ) / - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT + 68 DIV + - col2 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 68 / + - col2 AS col2 FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT 68 col1, COUNT( * ) AS col2 FROM tab2
----
68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5300
SELECT 68 col1, COUNT ( * ) AS col2 FROM tab2
----
68
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT - CAST( NULL AS SIGNED ) AS col2, + 55 - + col1 FROM tab1
----
NULL
41
NULL
50
NULL
8

skipif mysql # not compatible
query II rowsort label-5301
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 55 - + col1 FROM tab1
----
NULL
41
NULL
50
NULL
8

query I rowsort
SELECT + 90 FROM tab2 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + + 50 ) FROM tab2
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col1 * + 96 col2 FROM tab2 cor0
----
-23
4896
-40
7392
-58
6432

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT DISTINCT - col1 DIV col1 * + ( + + ( - - col1 ) ) * + 76 AS col2 FROM tab1 AS cor0 WHERE col1 * + col0 > + - col0
----
-1064
-3572
-380

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - col1 / col1 * + ( + + ( - - col1 ) ) * + 76 AS col2 FROM tab1 AS cor0 WHERE col1 * + col0 > + - col0
----
-1064
-3572
-380

query I rowsort
SELECT + col2 * + - 78 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT ALL + CAST( NULL AS SIGNED ) * - CAST( + + 4 AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( + + 4 AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 49 + 3 col0 FROM tab2
----
2257
3139
3678

query I rowsort
SELECT ( 16 ) + col1 - + 18 FROM tab1 AS cor0
----
12
3
45

query II rowsort
SELECT DISTINCT + ( + - col0 ) AS col0, 5 + + - col2 FROM tab2 AS cor0
----
-46
-18
-64
-35
-75
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - 30 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col2 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + + col2 + 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( DISTINCT - 19 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( DISTINCT - 19 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE + 14 IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL col0, - 72 FROM tab0
----
15
-72
87
-72
97
-72

query I rowsort
SELECT - col1 * + - 44 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query II rowsort label-5320
SELECT + MAX( ALL - ( + col2 ) ) AS col2, + COUNT( * ) FROM tab2
----
-23
3

skipif mysql # not compatible
query II rowsort label-5320
SELECT + MAX ( ALL - ( + col2 ) ) AS col2, + COUNT ( * ) FROM tab2
----
-23
3

query I rowsort
SELECT DISTINCT + 53 * + col2 - + ( + - 17 ) FROM tab2
----
1236
2137
3091

query I rowsort
SELECT ALL + ( - - col0 ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT + col0 - 46 AS col0 FROM tab1
----
39
45
5

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL < + 83
----

query I rowsort
SELECT ALL - + col0 * + - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT 69 * 73 FROM tab0
----
5037
5037
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - SUM( DISTINCT - 29 ) - MIN( DISTINCT + 35 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5327
SELECT - SUM ( DISTINCT - 29 ) - MIN ( DISTINCT + 35 ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 * - ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 * - ( col1 ) )
----

query I rowsort
SELECT + col0 + - 73 FROM tab0
----
-58
14
24

query I rowsort
SELECT ( col0 ) - 74 FROM tab0
----
-59
13
23

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 49 / col0 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL ( - 68 ) DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL ( - 68 ) / col2 FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * 83 ) NOT IN ( + 89 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 15 / - 70 AS col1 FROM tab0 WHERE ( - 13 + + col2 * + 41 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - MIN( ALL 5 ) FROM tab1 WHERE + col2 NOT BETWEEN col0 AND ( NULL )
----
-5

skipif mysql # not compatible
query I rowsort label-5335
SELECT - MIN ( ALL 5 ) FROM tab1 WHERE + col2 NOT BETWEEN col0 AND ( NULL )
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 36 ) col2 FROM tab1
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 83
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 2 / - col0 NOT BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT + 35 + + ( - MAX( 8 ) ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5339
SELECT + 35 + + ( - MAX ( 8 ) ) AS col2 FROM tab2
----
27

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 WHERE 85 + - col2 * + col2 BETWEEN - col2 * 49 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5341
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col0 AND CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5341
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col0 AND CAST ( - col2 AS REAL )
----

query I rowsort
SELECT col0 / - col1 + 7 * 90 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ( + ( COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5343
SELECT ( + ( COUNT ( * ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT - MAX( DISTINCT 7 ) AS col0 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-5344
SELECT - MAX ( DISTINCT 7 ) AS col0 FROM tab2
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT 73 * 2 - - COUNT( DISTINCT col0 + + 25 / col2 ) AS col0 FROM tab0
----
149

skipif mysql # not compatible
query I rowsort label-5346
SELECT 73 * 2 - - COUNT ( DISTINCT col0 + + 25 / col2 ) AS col0 FROM tab0
----
149

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col0 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 - col2 col0 FROM tab1 WHERE NOT col1 IS NULL
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 * + 95 AS col0 FROM tab2 AS cor0
----
4370
6080
7125

query I rowsort
SELECT DISTINCT ( - 39 ) * col0 FROM tab1 AS cor0
----
-1989
-3315
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL - MIN( + 8 ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) > + 60
----
16

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - MIN ( + 8 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) > + 60
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + 17 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + 17 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT ALL 50 DIV 14 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL 50 / 14 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT * FROM tab2 WHERE col1 * 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 60 AS col1 FROM tab2
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NULL < 14 * 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + 62 + - 29 * - COUNT( * ) FROM tab2 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + 62 + - 29 * - COUNT ( * ) FROM tab2 AS cor0
----
149

query I rowsort
SELECT + col1 - 88 FROM tab1 AS cor0 WHERE col2 * + ( col1 ) + + col1 <> - col2
----
-41
-74
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL + 98 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + 98 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
294

query I rowsort
SELECT + + 58 + 97 AS col0 FROM tab2 AS cor0
----
155
155
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE col2 - - col1 IN ( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT - SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE col2 - - col1 IN ( + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT SUM( - col0 ) + - 89 AS col1 FROM tab2 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT SUM ( - col0 ) + - 89 AS col1 FROM tab2 AS cor0
----
-274

query I rowsort
SELECT - col1 + col1 * 64 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT + 6 + col0 AS col1 FROM tab0 AS cor0
----
103
21
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 * 28 + - col1 / - col2 ) AND ( NULL )
----

query I rowsort
SELECT 55 + col0 AS col2 FROM tab2 AS cor0
----
101
119
130

query I rowsort
SELECT DISTINCT - 76 * 82 + + 54 AS col1 FROM tab1 AS cor0
----
-6178

query I rowsort
SELECT DISTINCT col2 * 86 + + col2 FROM tab0
----
4089
8613
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5371
SELECT ALL + 52 DIV - COUNT( * ) + - COUNT( DISTINCT - col2 + - col1 ) AS col1 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + 52 / - COUNT ( * ) + - COUNT ( DISTINCT - col2 + - col1 ) AS col1 FROM tab0
----
-20

query III rowsort
SELECT * FROM tab0 WHERE 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( ( col0 ) / - col0 )
----

query I rowsort
SELECT DISTINCT col0 - + col1 * + col2 AS col1 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT - 24 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT DISTINCT - col2 + + 84 DIV 82 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT - col2 + + 84 / 82 FROM tab1
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT + ( - 47 ) - - COUNT( * ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + ( - 47 ) - - COUNT ( * ) FROM tab0
----
-44

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT ( + 44 ) = ( NULL )
----

query I rowsort
SELECT ALL col1 * + 51 - + col1 AS col2 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL - COUNT( ALL + ( ( + col0 ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL - COUNT ( ALL + ( ( + col0 ) ) ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT DISTINCT + + col0 - + ( + 23 ) DIV - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + + col0 - + ( + 23 ) / - col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT 51 * ( + MIN( + 70 ) ) FROM tab2 AS cor0
----
3570

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT 51 * ( + MIN ( + 70 ) ) FROM tab2 AS cor0
----
3570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 99 ) - col1 col0 FROM tab1 AS cor0
----
52
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT SUM( ALL + 4 ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5384
SELECT SUM ( ALL + 4 ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col2 + - 72 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab2, tab0 AS cor0
----
33

query I rowsort
SELECT + ( 83 ) AS col0 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT + COUNT( * ) AS col1, + 13 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-5389
SELECT + COUNT ( * ) AS col1, + 13 FROM tab1 AS cor0
----
3
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IS NULL OR 68 + - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT + ( - COUNT( col0 ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + ( - COUNT ( col0 ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = ( + 77 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 15 * col0 * - 55 AS col1 FROM tab0 AS cor0
----
12375
71775
80025

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT AVG ( - 52 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 67 ) NOT BETWEEN col2 AND ( - col0 + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT AVG ( - 52 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 67 ) NOT BETWEEN col2 AND ( - col0 + 45 )
----
NULL

query II rowsort
SELECT ALL - 19, - col1 AS col0 FROM tab2 AS cor0
----
-19
-51
-19
-67
-19
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + COUNT( col1 ) AS col1 FROM tab0 cor0 WHERE NOT ( col2 ) + + col0 NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT + COUNT ( col1 ) AS col1 FROM tab0 cor0 WHERE NOT ( col2 ) + + col0 NOT IN ( - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT - CAST( - 72 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-5398
SELECT - CAST ( - 72 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - MIN( ALL col1 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-5399
SELECT - MIN ( ALL col1 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT 58 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT 58 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT ALL - COUNT( + 73 ), + COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5401
SELECT ALL - COUNT ( + 73 ), + COUNT ( * ) AS col1 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT 30 FROM tab0 WHERE NOT ( col1 + CAST( - col1 AS SIGNED ) ) NOT BETWEEN 32 AND ( NULL ) AND NOT 64 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5402
SELECT 30 FROM tab0 WHERE NOT ( col1 + CAST ( - col1 AS INTEGER ) ) NOT BETWEEN 32 AND ( NULL ) AND NOT 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT + MIN( ALL + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5403
SELECT + MIN ( ALL + col0 ) AS col1 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT 86 DIV + col2 col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5404
SELECT 86 / + col2 col1 FROM tab0
----
0
1
8

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col2 + + 99
----

query II rowsort
SELECT + col1 * - - col0, - col0 AS col2 FROM tab1
----
425
-85
4277
-91
714
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 93 > col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5408
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5408
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 24 col1 FROM tab0 cor0
----
-24

query II rowsort
SELECT DISTINCT - 42 AS col1, col2 FROM tab0
----
-42
10
-42
47
-42
99

query I rowsort
SELECT ALL ( - col1 ) + + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col1 + col2 + + col1 * col1 FROM tab0 AS cor0
----
101
472
6689

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + + SUM( ALL col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + + SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - - 27 * - col0 FROM tab1 AS cor0
----
-1377
-2295
-2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT CAST( - 79 AS SIGNED ) FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-5415
SELECT CAST ( - 79 AS INTEGER ) FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-5416
SELECT DISTINCT - 41 DIV + ( + col1 ) AS col1, + 3 FROM tab0 AS cor0
----
-1
3
-41
3
0
3

skipif mysql # not compatible
query II rowsort label-5416
SELECT DISTINCT - 41 / + ( + col1 ) AS col1, + 3 FROM tab0 AS cor0
----
-1
3
-41
3
0
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( - col0 )
----

query I rowsort
SELECT ALL + + col1 + - + 77 * col2 FROM tab0 AS cor0
----
-3538
-749
-7622

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 80 * - + col2 ) BETWEEN - col2 * + + 45 AND - ( - col2 ) * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 24 NOT IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 col2 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT + 82 + - COUNT( * ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + 82 + - COUNT ( * ) FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT - 70 AS col0, - COUNT( * ) AS col0 FROM tab2
----
-70
-3

skipif mysql # not compatible
query II rowsort label-5423
SELECT - 70 AS col0, - COUNT ( * ) AS col0 FROM tab2
----
-70
-3

query I rowsort
SELECT ALL + 45 + + - col2 AS col2 FROM tab1
----
-14
-23
-51

query I rowsort
SELECT ALL col2 - + - ( - - 70 ) FROM tab0
----
117
169
80

query I rowsort
SELECT DISTINCT 14 + - 44 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 WHERE ( - - 44 ) IS NOT NULL
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL + CAST( NULL AS SIGNED ) - + AVG ( + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + CAST ( NULL AS INTEGER ) - + AVG ( + col2 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 25 - - col1 + + - col2 * + col2 * + col0 AS col1 FROM tab2
----
-102298
-24258
-252208

query I rowsort
SELECT + 29 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + 50 - + - col2 FROM tab1
----
109
118
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col0 - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + - - 52 * + 30 AND - col0
----

query II rowsort
SELECT - + 20 AS col0, + col2 * - col2 FROM tab0 AS cor0
----
-20
-100
-20
-2209
-20
-9801

query II rowsort
SELECT - + 21 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
-21
-23
-21
-40
-21
-58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 47 * + col2 AS col2, 63 FROM tab2
----
-1081
63
-1880
63
-2726
63

query I rowsort
SELECT - col0 - + - col1 AS col1 FROM tab1 cor0 WHERE NOT ( + 27 ) NOT IN ( - 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL + COUNT( * ) - + 96 AS col1 FROM tab1 AS cor0 WHERE - ( + + 35 ) * - 14 * - - ( + - 1 ) + + col0 * col2 + 69 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + COUNT ( * ) - + 96 AS col1 FROM tab1 AS cor0 WHERE - ( + + 35 ) * - 14 * - - ( + - 1 ) + + col0 * col2 + 69 IS NULL
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 87 FROM tab1 AS cor0
----
5133
5916
8352

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 > ( - + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + - ( + - col0 ) col2 FROM tab1 WHERE NULL NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT + MIN( + - 74 ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-5443
SELECT + MIN ( + - 74 ) AS col1 FROM tab1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5444
SELECT * FROM tab0 WHERE - col1 IS NOT NULL OR NOT ( NOT + 17 <= + - col0 / + col0 + col2 * - CAST( NULL AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5444
SELECT * FROM tab0 WHERE - col1 IS NOT NULL OR NOT ( NOT + 17 <= + - col0 / + col0 + col2 * - CAST ( NULL AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + - ( 82 ) ) FROM tab2
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-5446
SELECT DISTINCT col0, 73 DIV + col1 FROM tab0
----
15
0
87
3
97
73

skipif mysql # not compatible
query II rowsort label-5446
SELECT DISTINCT col0, 73 / + col1 FROM tab0
----
15
0
87
3
97
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5447
SELECT DISTINCT + 22, CAST( + + ( + col1 ) AS SIGNED ) * - 89 AS col2 FROM tab1
----
22
-1246
22
-4183
22
-445

skipif mysql # not compatible
query II rowsort label-5447
SELECT DISTINCT + 22, CAST ( + + ( + col1 ) AS INTEGER ) * - 89 AS col2 FROM tab1
----
22
-1246
22
-4183
22
-445

query I rowsort
SELECT ALL + col1 * - 15 * - - col0 AS col2 FROM tab0
----
-1455
-18225
-27405

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 75 * + 86, 10 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - - CAST( 14 AS SIGNED ) ) AND 62 AND NOT col0 <> ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-5451
SELECT ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - - CAST ( 14 AS INTEGER ) ) AND 62 AND NOT col0 <> ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 49 >= - col2 + - col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - - COUNT( * ) + + - SUM( + + col2 ) * - + MAX( DISTINCT + 90 ) FROM tab1 AS cor0
----
20073

skipif mysql # not compatible
query I rowsort label-5453
SELECT - - COUNT ( * ) + + - SUM ( + + col2 ) * - + MAX ( DISTINCT + 90 ) FROM tab1 AS cor0
----
20073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT + ( - + 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-5454
SELECT + ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 36 + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5456
SELECT DISTINCT col1 * - - 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-5456
SELECT DISTINCT col1 * - - CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT col1 DIV col2 DIV - ( + 5 ) * + ( + - col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT col1 / col2 / - ( + 5 ) * + ( + - col0 ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT - + col1 * + + col1 - + col2 + + 33, col2 AS col1 FROM tab1 cor0
----
-2244
68
-259
96
-51
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT + 85 + - col2 FROM tab0 AS cor0
----
-14
38
75

query I rowsort
SELECT - + 18 + - col0 FROM tab0 AS cor0
----
-105
-115
-33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN 0 * col2 * - 66 AND col0 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 60 + + col2 * + col2 + + 8 AS col2 FROM tab1 AS cor0
----
3429
4572
9164

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT DISTINCT + - col1 + - 10 DIV + + col0 - + col1 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + - col1 + - 10 / + + col0 - + col1 FROM tab0 AS cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 44 col0, ( + - col1 ) AS col0 FROM tab1 AS cor0
----
129
-5
135
-47
95
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col0 + col2 * + ( - 81 ) + + - col2 + - 81 + - - 1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col0 ) > NULL
----

query I rowsort
SELECT DISTINCT + col0 - - + col0 AS col2 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT col2 * + 78 + + - 15 AS col2 FROM tab2
----
1779
3105
4509

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5470
SELECT * FROM tab1 WHERE - ( CAST( - + col2 AS DECIMAL ) ) NOT BETWEEN NULL AND col0 * - 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5470
SELECT * FROM tab1 WHERE - ( CAST ( - + col2 AS REAL ) ) NOT BETWEEN NULL AND col0 * - 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + MAX( DISTINCT - ( 80 ) ) * - 4 AS col1 FROM tab1
----
320

skipif mysql # not compatible
query I rowsort label-5471
SELECT + MAX ( DISTINCT - ( 80 ) ) * - 4 AS col1 FROM tab1
----
320

query III rowsort
SELECT * FROM tab2 WHERE NOT - 68 < 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col1 FROM tab1 WHERE NOT - 87 + - + col1 + 87 * - 29 IN ( + 43 )
----
-45
23
26

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT + - col0 * col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT + - col0 * col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 * + ( + + 26 ), col2 FROM tab2 AS cor0
----
-1040
40
-1508
58
-598
23

query I rowsort
SELECT 91 * + - col1 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
38675
389207
64974

query I rowsort
SELECT 24 * + col2 AS col1 FROM tab2 AS cor0
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - + MIN( ( - + 36 ) ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5479
SELECT - + MIN ( ( - + 36 ) ) AS col0 FROM tab0 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 3 col0, + ( - col0 ) col2 FROM tab0 AS cor0
----
-3
-15
-3
-87
-3
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - - MIN( ALL - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5481
SELECT - - MIN ( ALL - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT - COUNT( * ) + + - 27 AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - COUNT ( * ) + + - 27 AS col2 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5483
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - col2 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5483
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - col2 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT - COUNT( * ) DIV 34 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT - COUNT ( * ) / 34 FROM tab0
----
0

query I rowsort
SELECT + 95 * + 3 FROM tab1
----
285
285
285

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT MAX( DISTINCT 52 ) * - + 46 FROM tab2
----
-2392

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT MAX ( DISTINCT 52 ) * - + 46 FROM tab2
----
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + COUNT( * ) + + MIN( ALL + col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + COUNT ( * ) + + MIN ( ALL + col2 ) FROM tab0
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col2 + col1 * col1 ) > NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + + col2 * - col2 * - 40 FROM tab1 AS cor0
----
139181
184892
368544

query III rowsort
SELECT DISTINCT 98 + - - 10 AS col0, col1, + 57 AS col1 FROM tab0 AS cor0
----
9 values hashing to f32c318777cfae555723298e11c19d81

query II rowsort
SELECT + - 82 AS col1, - 23 + 47 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5492
SELECT + CAST( - - col2 AS DECIMAL ) * col2 / 14 + - - col2 * - + col2 + - ( CAST( NULL AS DECIMAL ) ) + col1, + 70 * + 86 * + col0 AS col1 FROM tab1
----
NULL
307020
NULL
511700
NULL
547820

skipif mysql # not compatible
query II rowsort label-5492
SELECT + CAST ( - - col2 AS REAL ) * col2 / 14 + - - col2 * - + col2 + - ( CAST ( NULL AS REAL ) ) + col1, + 70 * + 86 * + col0 AS col1 FROM tab1
----
NULL
307020
NULL
511700
NULL
547820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT DISTINCT - col2 - + - ( CAST( 69 AS SIGNED ) ) AS col1 FROM tab2
----
11
29
46

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT - col2 - + - ( CAST ( 69 AS INTEGER ) ) AS col1 FROM tab2
----
11
29
46

query II rowsort
SELECT ALL col2, col1 + - col0 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - 26 ) - - + col2 + - col1 + col0 - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - MAX( DISTINCT + ( + + col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5496
SELECT - MAX ( DISTINCT + ( + + col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + col2 + + - col1 FROM tab0 AS cor0 WHERE NOT - col0 + + col1 + + col2 * + + col0 * + + col0 + + col1 * - col1 BETWEEN + 27 AND col2
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT - col0 - 39 DIV - col1 FROM tab0 AS cor0
----
-15
-58
-86

skipif mysql # not compatible
query I rowsort label-5498
SELECT - col0 - 39 / - col1 FROM tab0 AS cor0
----
-15
-58
-86

query II rowsort
SELECT DISTINCT - 13 - - col2 * - col0, col0 + - col2 + - 63 - + col1 + col1 - 82 AS col0 FROM tab0 AS cor0
----
-718
-177
-883
-68
-9616
-147

query I rowsort
SELECT + + col1 - + col2 + + col0 AS col2 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT ( - col2 ) - + 14 * - 30 + col0 AS col0 FROM tab1
----
375
443
446

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL OR NOT + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 8 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ( + MIN( ALL + - col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5504
SELECT ( + MIN ( ALL + - col0 ) ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL + - COUNT( * ) FROM tab2 WHERE + ( - col1 ) <= + + col1
----
-3

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE + ( - col1 ) <= + + col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + ( + - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5506
SELECT + ( + - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT col2 * - col0 * + 56 * col1 FROM tab2
----
-11038720
-16321200
-3021648

onlyif mysql # aggregate syntax: 
query II rowsort label-5508
SELECT DISTINCT COUNT( * ) col2, MAX( ALL - - 19 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5508
SELECT DISTINCT COUNT ( * ) col2, MAX ( ALL - - 19 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
19

query II rowsort
SELECT DISTINCT - 12, col1 FROM tab1
----
-12
14
-12
47
-12
5

query II rowsort
SELECT DISTINCT + col2 AS col0, + 61 FROM tab1 cor0
----
59
61
68
61
96
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + COUNT( * ) col2 FROM tab0 cor0 WHERE NOT - 30 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT + COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT - 30 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - + COUNT( * ) + + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - + COUNT ( * ) + + + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5513
SELECT ALL 6 / - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL 6 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + + 7 + - COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + + 7 + - COUNT ( * ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + SUM( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5515
SELECT + SUM ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - ( - col2 ) - ( col1 ) FROM tab2 WHERE NULL IS NULL
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - 39 + col2 AS col0 FROM tab1
----
20
29
57

query I rowsort
SELECT + col0 + 17 AS col0 FROM tab0
----
104
114
32

query I rowsort
SELECT + 40 + - + ( 42 ) * + col0 AS col1 FROM tab1
----
-2102
-3530
-3782

query III rowsort
SELECT * FROM tab0 WHERE ( + - 11 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT - col0 + 43 DIV - col1 AS col0 FROM tab1 AS cor0
----
-54
-91
-93

skipif mysql # not compatible
query I rowsort label-5521
SELECT - col0 + 43 / - col1 AS col0 FROM tab1 AS cor0
----
-54
-91
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5522
SELECT DISTINCT + CAST( 91 AS SIGNED ) AS col2, + MIN( DISTINCT - - 77 ) AS col0 FROM tab0 AS cor0
----
91
77

skipif mysql # not compatible
query II rowsort label-5522
SELECT DISTINCT + CAST ( 91 AS INTEGER ) AS col2, + MIN ( DISTINCT - - 77 ) AS col0 FROM tab0 AS cor0
----
91
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5523
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE col1 + + ( + col0 ) * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col1 + + ( + col0 ) * - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + + COUNT( * ) + + 75 * - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-4947

skipif mysql # not compatible
query I rowsort label-5525
SELECT + + COUNT ( * ) + + 75 * - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 * col2 col1 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # DIV for integer division: 
query II rowsort label-5527
SELECT + col0 DIV - - col1 + + col1 + - col0 + + col0, col0 + - col2 AS col0 FROM tab2 AS cor0
----
51
23
68
17
77
24

skipif mysql # not compatible
query II rowsort label-5527
SELECT + col0 / - - col1 + + col1 + - col0 + + col0, col0 + - col2 AS col0 FROM tab2 AS cor0
----
51
23
68
17
77
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 + - col2 col1 FROM tab0 cor0
----
-21
-73
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT + - 99 DIV - COUNT( col0 ) col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5530
SELECT + - 99 / - COUNT ( col0 ) col0 FROM tab2 AS cor0
----
33

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - ( + - col1 ) ) NOT BETWEEN + col1 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + 39 * - COUNT( ALL + col1 ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + 39 * - COUNT ( ALL + col1 ) FROM tab1
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT ALL + COUNT( * ) DIV + MAX( DISTINCT ( + col0 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL + COUNT ( * ) / + MAX ( DISTINCT ( + col0 ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT + - 90 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5535
SELECT ALL + AVG ( ALL + + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + AVG ( ALL + + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5536
SELECT + col1, CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-5536
SELECT + col1, CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT - col0 * + - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + - 1 AND + col0 + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - ( - 35 ) * col0 / - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - + COUNT( * ) + - COUNT( DISTINCT col2 ) FROM tab0 WHERE NOT + - col0 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT - + COUNT ( * ) + - COUNT ( DISTINCT col2 ) FROM tab0 WHERE NOT + - col0 - + col0 IS NOT NULL
----
0

query I rowsort
SELECT 48 FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + col1 IS NULL
----

query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT - - col2 + - + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT + SUM( ALL - 46 ) + + 59 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5547
SELECT + SUM ( ALL - 46 ) + + 59 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 76 / - 64 IN ( - col0, + ( + - col1 ) * - + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 76 / - 64 IN ( - col0, + ( + - col1 ) * - + 52 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5549
SELECT DISTINCT - col0 + CAST( col2 AS SIGNED ) + - col1, 76 col1 FROM tab2 AS cor0
----
-101
76
-74
76
-84
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5549
SELECT DISTINCT - col0 + CAST ( col2 AS INTEGER ) + - col1, 76 col1 FROM tab2 AS cor0
----
-101
76
-74
76
-84
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT MIN( ALL - 89 ) AS col1 FROM tab1 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT MIN ( ALL - 89 ) AS col1 FROM tab1 cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5551
SELECT ALL CAST( NULL AS SIGNED ) + + + col2 - + + CAST( - col2 AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL CAST ( NULL AS INTEGER ) + + + col2 - + + CAST ( - col2 AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT ALL + col2 DIV 44 + col1 AS col0 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL + col2 / 44 + col1 AS col0 FROM tab2
----
51
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5554
SELECT - col0 AS col2, + CAST( + 34 AS SIGNED ) AS col2 FROM tab2
----
-46
34
-64
34
-75
34

skipif mysql # not compatible
query II rowsort label-5554
SELECT - col0 AS col2, + CAST ( + 34 AS INTEGER ) AS col2 FROM tab2
----
-46
34
-64
34
-75
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0, 22 )
----

query I rowsort
SELECT + 75 * + 93 FROM tab0
----
6975
6975
6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT CAST( NULL AS SIGNED ) * ( col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + ( + col2 ) ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - - ( col2 ) AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT col1 * - 46 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3726
-46
-966

query II rowsort
SELECT - 21, col2 FROM tab2
----
-21
23
-21
40
-21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL + + 37 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + + 37 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

query I rowsort
SELECT col2 * - 11 * col2 FROM tab0
----
-107811
-1100
-24299

query I rowsort
SELECT 62 * col0 AS col1 FROM tab0
----
5394
6014
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 34 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 34 IS NULL
----
-3

query I rowsort
SELECT + + ( - - 63 ) FROM tab0 AS cor0
----
63
63
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 BETWEEN NULL AND - 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT + 61 FROM tab2 AS cor0 WHERE NOT 11 - + + 78 IS NULL
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL - COUNT( DISTINCT + + 42 ) * + + 11 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL - COUNT ( DISTINCT + + 42 ) * + + 11 FROM tab1 AS cor0
----
-11

query II rowsort
SELECT DISTINCT + col0 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT ALL + + 81, - 34 * + + col1 AS col1 FROM tab2 AS cor0
----
81
-1734
81
-2278
81
-2618

query I rowsort
SELECT + ( - ( + 10 ) ) AS col0 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT - SUM( ALL - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - SUM ( ALL - col0 ) AS col2 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * + col1 col2, + col2 AS col0, - col1 FROM tab2
----
9 values hashing to 08f0383ff1166143f2a83ef57c6412bb

onlyif mysql # DIV for integer division: 
query II rowsort label-5576
SELECT - 61 DIV col0 AS col0, col1 AS col0 FROM tab1
----
-1
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-5576
SELECT - 61 / col0 AS col0, col1 AS col0 FROM tab1
----
-1
14
0
47
0
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5577
SELECT + 85 + - + SUM( - col1 ) AS col2 FROM tab0 WHERE NOT CAST( 13 AS DECIMAL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT + 85 + - + SUM ( - col1 ) AS col2 FROM tab0 WHERE NOT CAST ( 13 AS REAL ) > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 97 * - 6 * + col2 AS col1 FROM tab1 AS cor0
----
34338
39576
55872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT ( + - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5580
SELECT ( + - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT DISTINCT + COUNT( * ) AS col1, 6 AS col1 FROM tab0
----
3
6

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT + COUNT ( * ) AS col1, 6 AS col1 FROM tab0
----
3
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + 59 AS col0 FROM tab0 cor0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL + 23 + + COUNT( * ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + 23 + + COUNT ( * ) FROM tab1 AS cor0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT DISTINCT - + 39 * + - MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - + 39 * + - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 87 + - col2 FROM tab1 AS cor0
----
-9
19
28

query I rowsort
SELECT ALL + col1 * + 10 AS col1 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT + + col2 * - 22 AS col1 FROM tab2 AS cor0
----
-1276
-506
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT DISTINCT + - MIN( - CAST( NULL AS SIGNED ) ) / SUM( ALL col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + - MIN ( - CAST ( NULL AS INTEGER ) ) / SUM ( ALL col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + - 23 AS col2 FROM tab1 AS cor0
----
36
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE - + col0 BETWEEN + 76 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE - + col0 BETWEEN + 76 AND col2
----
0

query I rowsort
SELECT DISTINCT col1 + + col1 * + + 22 AS col2 FROM tab1
----
1081
115
322

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 21 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - 78 FROM tab0
----
-57
-77
3

query I rowsort
SELECT - - 73 FROM tab1 WHERE ( NOT col1 IS NULL )
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT + COUNT( * ) * + - ( - 21 ) col2 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5596
SELECT DISTINCT + COUNT ( * ) * + - ( - 21 ) col2 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 88, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 88, col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE - 47 <= - col0
----

query I rowsort
SELECT - + col0 * - ( + col0 ) + - col2 - - col2 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT ( col1 ) * - 79 + + col1 - - col2 FROM tab0 AS cor0
----
-1628
-6271
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT COUNT( 86 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5601
SELECT COUNT ( 86 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5602
SELECT DISTINCT CAST( - 73 AS SIGNED ), col2 FROM tab0 cor0 WHERE NOT + col2 / - col2 + col1 + col0 BETWEEN ( - + 67 ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-5602
SELECT DISTINCT CAST ( - 73 AS INTEGER ), col2 FROM tab0 cor0 WHERE NOT + col2 / - col2 + col1 + col0 BETWEEN ( - + 67 ) AND NULL
----

query I rowsort
SELECT + 71 * + col0 FROM tab0 AS cor0
----
1065
6177
6887

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT 89 DIV + 74 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5605
SELECT 89 / + 74 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + 51 AS col0 FROM tab1 WHERE NOT col1 < + col1
----
51
51
51

query II rowsort
SELECT col2 AS col1, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT CAST( + + ( - - col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5609
SELECT CAST ( + + ( - - col2 ) AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - col0 * + col0 + 69 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT DISTINCT - 18 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - 18 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 + + ( - - col0 ) * + col2 col2 FROM tab0 AS cor0
----
722
887
9620

query I rowsort
SELECT 22 + 15 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + 10 + COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-5614
SELECT + 10 + COUNT ( * ) FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT - col2 + col0 - + 51 - - + 44 * CAST( col2 AS SIGNED ) * + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5615
SELECT - col2 + col0 - + 51 - - + 44 * CAST ( col2 AS INTEGER ) * + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + ( - col1 ) FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND 39
----

query I rowsort
SELECT + col0 + - 44 FROM tab2 AS cor0
----
2
20
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - - 86 * - - COUNT( * ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5618
SELECT - - 86 * - - COUNT ( * ) FROM tab1 AS cor0
----
258

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5619
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 AS col2, 79 * - 4 FROM tab0 AS cor0
----
NULL
-316
NULL
-316
NULL
-316

skipif mysql # not compatible
query II rowsort label-5619
SELECT ALL + CAST ( NULL AS REAL ) * col0 AS col2, 79 * - 4 FROM tab0 AS cor0
----
NULL
-316
NULL
-316
NULL
-316

query I rowsort
SELECT ALL + 11 + - - 99 * - col0 + + - col2 AS col1 FROM tab0
----
-1521
-8612
-9691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT DISTINCT - 31 / + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) + - - 57 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5621
SELECT DISTINCT - 31 / + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - - 57 col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 28 - col1 AS col2 FROM tab1
----
-33
-42
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT COUNT( * ) - 36 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5623
SELECT COUNT ( * ) - 36 FROM tab1
----
-33

query I rowsort
SELECT col1 + 48 FROM tab1
----
53
62
95

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR NOT + col0 = NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT ALL - - col0 DIV col0 DIV + col2 - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - - col0 / col0 / + col2 - col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - ( - + 9 ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + 64 + - - col0 FROM tab2 AS cor0 WHERE ( NULL ) <> - + 38 + + ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT + 40 * col2 * - col2 * + 5 - 19 + + + 65 DIV col2 * - col0 AS col0 FROM tab1 AS cor0
----
-1843219
-696304
-924819

skipif mysql # not compatible
query I rowsort label-5630
SELECT + 40 * col2 * - col2 * + 5 - 19 + + + 65 / col2 * - col0 AS col0 FROM tab1 AS cor0
----
-1843219
-696304
-924819

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - 54 * col2 * + ( - + col1 ) / + col2 * - col0 * - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + + MIN( + - col2 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5632
SELECT + + MIN ( + - col2 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5633
SELECT COUNT( * ) DIV + 65 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT COUNT ( * ) / + 65 FROM tab0
----
0

query I rowsort
SELECT - col2 * + ( + 39 ) FROM tab2
----
-1560
-2262
-897

query II rowsort
SELECT ALL - + 25 * + - 3 * col1 AS col0, + col2 * + - col1 AS col0 FROM tab1 AS cor0
----
1050
-1344
3525
-3196
375
-295

query I rowsort
SELECT ALL - 89 + col0 FROM tab1 AS cor0
----
-38
-4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - - SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - - SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5638
SELECT ( - 98 ) * + + CAST( NULL AS SIGNED ) col1, COUNT( DISTINCT - col1 ) DIV COUNT( * ) FROM tab1 AS cor0
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5638
SELECT ( - 98 ) * + + CAST ( NULL AS INTEGER ) col1, COUNT ( DISTINCT - col1 ) / COUNT ( * ) FROM tab1 AS cor0
----
NULL
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 AS col0, col2 col1, - col2 FROM tab1 cor0
----
9 values hashing to 1f0022453ce99084d8150cbf2a074164

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL + 79 + ( + col2 ) DIV col1 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + 79 + ( + col2 ) / col1 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5642
SELECT - + col2 + 13 DIV CAST( + 62 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5642
SELECT - + col2 + 13 / CAST ( + 62 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - + col0 * - col0 + 26 FROM tab2 AS cor0
----
2142
4122
5651

query I rowsort
SELECT + - col1 + - + 70 - + col0 AS col0 FROM tab2 AS cor0
----
-167
-211
-212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( - col0 ) col1 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT col1 * col2 * - + col0 * - - ( col2 ) / + col0 - CAST( NULL AS SIGNED ) + - col1 * col1 * + 9 * col1 * - 79 + + col2 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5646
SELECT DISTINCT col1 * col2 * - + col0 * - - ( col2 ) / + col0 - CAST ( NULL AS INTEGER ) + - col1 * col1 * + 9 * col1 * - 79 + + col2 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 + - col1 * col0 col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT ALL 81 * + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE + col2 * + - col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL 81 * + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE + col2 * + - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL 55 * + - 25 + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-1372

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL 55 * + - 25 + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 10 = - - 44 / + + 52 - CAST( NULL AS SIGNED ) + - - col1 * - ( + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5650
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 10 = - - 44 / + + 52 - CAST ( NULL AS INTEGER ) + - - col1 * - ( + - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5651
SELECT ALL 62 DIV + 59 col2, + col2 + 7 FROM tab2 AS cor0
----
1
30
1
47
1
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5651
SELECT ALL 62 / + 59 col2, + col2 + 7 FROM tab2 AS cor0
----
1
30
1
47
1
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT ALL + - 37 * - 40 AS col2 FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + - 37 * - 40 AS col2 FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 - - 9 + - + col0 * + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - + MIN( ALL - 6 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5654
SELECT - + MIN ( ALL - 6 ) AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 82 * + - col2 <> NULL
----

query II rowsort
SELECT - col2 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - - COUNT( - - 14 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5657
SELECT - - COUNT ( - - 14 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - - 9 * COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - - 9 * COUNT ( * ) FROM tab2 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 21 / + - 61 IS NOT NULL
----

query I rowsort
SELECT ALL + 12 * 15 FROM tab2 AS cor0
----
180
180
180

query I rowsort
SELECT ALL + - ( + - col0 ) + ( + 4 ) + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1289
-206
-3101

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 23 * - col1 * col0 + col1 IS NOT NULL
----

query II rowsort
SELECT + 83 * + col0 AS col2, col0 + col2 AS col0 FROM tab2
----
3818
69
5312
104
6225
133

query I rowsort
SELECT - 31 * col1 FROM tab0
----
-2511
-31
-651

query II rowsort
SELECT - 50 * + + col2 AS col0, + col2 AS col0 FROM tab2
----
-1150
23
-2000
40
-2900
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 - + col0 IS NOT NULL
----

query II rowsort
SELECT - col0 * + 82, - 66 AS col2 FROM tab1 AS cor0
----
-4182
-66
-6970
-66
-7462
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL - MAX( ALL + 27 ) + 15 AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - MAX ( ALL + 27 ) + 15 AS col1 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + ( col2 ) * 41 / - col0 <> + 13
----
3

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + ( col2 ) * 41 / - col0 <> + 13
----
3

query I rowsort
SELECT col2 * - 97 + - - col0 AS col2 FROM tab0
----
-4544
-883
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT - MAX( ALL - 95 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
95

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT - MAX ( ALL - 95 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT - 10 DIV + - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5673
SELECT - 10 / + - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT ALL + CAST( + col1 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT DISTINCT + - 69 + - - col1 AS col1 FROM tab1 AS cor0
----
-22
-55
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - col1 + - 15 col1 FROM tab2 cor0
----
-6
13
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * 67 + + - col1 IS NOT NULL AND NOT - 52 IS NOT NULL
----

query I rowsort
SELECT col1 - + 74 FROM tab1 AS cor0
----
-27
-60
-69

query I rowsort
SELECT ALL col2 + - col0 * + ( col2 ) FROM tab2
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT 87, col2 FROM tab1 AS cor0
----
87
59
87
68
87
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT - - 0 + + 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 25 BETWEEN + 17 + 87 AND col1 * + col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT + MAX( DISTINCT - col0 ) * + CAST( NULL AS SIGNED ) * + COUNT( - + ( - + col0 ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT + MAX ( DISTINCT - col0 ) * + CAST ( NULL AS INTEGER ) * + COUNT ( - + ( - + col0 ) ) AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col1, 64 + + col0, - + col0 )
----

query II rowsort
SELECT DISTINCT col2 * ( col1 ), + col0 AS col1 FROM tab0 cor0
----
210
87
3807
15
99
97

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col1 - + col1 AS col1 FROM tab2 AS cor0
----
-114
-76
-79

query I rowsort
SELECT - 81 * - ( + 77 ) + - col1 FROM tab1 AS cor0
----
6190
6223
6232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) + - col1 col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL 61 + + ( + COUNT( * ) ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL 61 + + ( + COUNT ( * ) ) FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 46 col2 FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT + CAST( NULL AS SIGNED ) + - 92 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT + CAST ( NULL AS INTEGER ) + - 92 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT - 76 + - SUM( DISTINCT col2 ) FROM tab0
----
-232

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 76 + - SUM ( DISTINCT col2 ) FROM tab0
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT ( - + COUNT( * ) ) / - + CAST( NULL AS SIGNED ) + - - COUNT( * ) + - + 55 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT ( - + COUNT ( * ) ) / - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + - + 55 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 7 + - col0 * - col0 - col1 FROM tab2
----
2072
4026
5565

query II rowsort
SELECT ALL col0 * + ( + col0 ) AS col2, col2 + col1 FROM tab1
----
2601
110
7225
64
8281
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT COUNT( * ) * 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT COUNT ( * ) * 9 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT COUNT( + col1 ) * - 5 AS col1 FROM tab1 AS cor0 WHERE col0 / + + 25 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT COUNT ( + col1 ) * - 5 AS col1 FROM tab1 AS cor0 WHERE col0 / + + 25 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT - MIN( ( + col2 ) ) AS col0, - MAX( DISTINCT - 81 ) FROM tab0 AS cor0
----
-10
81

skipif mysql # not compatible
query II rowsort label-5702
SELECT - MIN ( ( + col2 ) ) AS col0, - MAX ( DISTINCT - 81 ) FROM tab0 AS cor0
----
-10
81

query I rowsort
SELECT DISTINCT - col0 * - 19 AS col1 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT ALL + col1 + - 30 * + col2 AS col2 FROM tab2 AS cor0
----
-1123
-1673
-639

query II rowsort
SELECT ALL - col2 * + ( 23 ) * 57 * col1 + + 55, col2 FROM tab0 AS cor0
----
-129734
99
-275255
10
-4990922
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT col2 + 32 * CAST( NULL AS SIGNED ) - - CAST( 40 AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT col2 + 32 * CAST ( NULL AS INTEGER ) - - CAST ( 40 AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 < 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - + col1 IS NULL
----

query II rowsort
SELECT + col1 + + col0 * + + 22 * + col1 AS col0, - 12 * - 56 FROM tab2 AS cor0
----
108493
672
110617
672
51663
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ( ( COUNT( ALL - + 44 ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5710
SELECT ( ( COUNT ( ALL - + 44 ) ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT ALL + 55 AS col2, + SUM( ALL 73 ) FROM tab0
----
55
219

skipif mysql # not compatible
query II rowsort label-5711
SELECT ALL + 55 AS col2, + SUM ( ALL 73 ) FROM tab0
----
55
219

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT 98 * + - COUNT( * ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5712
SELECT 98 * + - COUNT ( * ) FROM tab2 AS cor0
----
-294

query I rowsort
SELECT - ( - col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT - + MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - + MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL 6 * col2 * + ( - ( - col0 ) ) AS col1 FROM tab1
----
29376
30090
37128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5716
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT + COUNT( * ) + - ( + 31 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5717
SELECT + COUNT ( * ) + - ( + 31 ) FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL 55 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL 55 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
165

query I rowsort
SELECT ALL col0 + - + 31 AS col2 FROM tab1 cor0
----
20
54
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( + col0 ) * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) * + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) * + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 67 ) FROM tab2, tab2 AS cor0
----
-67

query I rowsort
SELECT ALL + col2 + - - 16 * - + 26 AS col2 FROM tab2
----
-358
-376
-393

query I rowsort
SELECT ALL ( + 39 ) AS col0 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT COUNT( ALL - - 82 ) * + 38 AS col1 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-5726
SELECT COUNT ( ALL - - 82 ) * + 38 AS col1 FROM tab2
----
114

query I rowsort
SELECT DISTINCT ( + + 58 ) AS col2 FROM tab0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT - + CAST( - col1 AS SIGNED ) FROM tab1 WHERE ( ( NULL IS NOT NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5728
SELECT - + CAST ( - col1 AS INTEGER ) FROM tab1 WHERE ( ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT - SUM( - col0 ) * - COUNT( * ) AS col2 FROM tab2 WHERE NULL = 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT - SUM ( - col0 ) * - COUNT ( * ) AS col2 FROM tab2 WHERE NULL = 54
----
NULL

query I rowsort
SELECT ALL - col2 * + 64 AS col0 FROM tab2
----
-1472
-2560
-3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT DISTINCT CAST( - + 93 AS SIGNED ) * col2 AS col2 FROM tab2
----
-2139
-3720
-5394

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT CAST ( - + 93 AS INTEGER ) * col2 AS col2 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT ALL 71 * col2 * - col0 FROM tab1
----
-347616
-356065
-439348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT - ( - CAST( 71 AS SIGNED ) ) * - + col0 AS col2 FROM tab0
----
-1065
-6177
-6887

skipif mysql # not compatible
query I rowsort label-5733
SELECT - ( - CAST ( 71 AS INTEGER ) ) * - + col0 AS col2 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL - 50 * + col2 + + - CAST( NULL AS SIGNED ) + col2 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - 50 * + col2 + + - CAST ( NULL AS INTEGER ) + col2 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, col2 - + 34 AS col0 FROM tab2
----
46
-11
64
6
75
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT MAX( ALL + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5736
SELECT MAX ( ALL + col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL - SUM( 82 ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - SUM ( 82 ) FROM tab2 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - SUM( + ( - + col2 ) ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5738
SELECT - SUM ( + ( - + col2 ) ) FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL ( + + COUNT( DISTINCT + col2 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL ( + + COUNT ( DISTINCT + col2 ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT SUM( ALL + col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5740
SELECT DISTINCT SUM ( ALL + col2 ) col1 FROM tab0
----
156

query I rowsort
SELECT col1 * - 95 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT - - 86 - + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT + - MIN( DISTINCT + - ( - 87 ) ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5743
SELECT + - MIN ( DISTINCT + - ( - 87 ) ) FROM tab2 AS cor0
----
-87

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - + COUNT( ( - 16 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5745
SELECT - + COUNT ( ( - 16 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 * - col0 + + + col1 * + col2 FROM tab0 AS cor0 WHERE NOT 4 > - col1 + 93
----
-1617
2
2592

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 11 + - - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5748
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
3

query I rowsort
SELECT - col1 * + + col1 AS col0 FROM tab0 WHERE NOT NULL IN ( - ( - - 7 ) + - 48, col2 * - col2, - + 88, - + 61 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + 61 ) col2 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT + 16 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( - 45 ) FROM tab0 AS cor0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT - 40 DIV col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - 40 / col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT 36 + - - COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT 36 + - - COUNT ( * ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL - + col2 + + 79 FROM tab1 AS cor0
----
-17
11
20

query I rowsort
SELECT col0 + col0 * + col0 + ( + - col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT - col1 + 52 AS col1 FROM tab1
----
38
47
5

query I rowsort
SELECT + ( 95 ) + - col0 FROM tab2
----
20
31
49

query I rowsort
SELECT DISTINCT ( + col0 ) * 50 AS col2 FROM tab1
----
2550
4250
4550

query I rowsort
SELECT col0 + ( + 89 ) FROM tab1
----
140
174
180

query III rowsort
SELECT * FROM tab0 WHERE - - col2 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 99 * 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL - col1 DIV - - 36 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - col1 / - - 36 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - ( COUNT( * ) ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - ( COUNT ( * ) ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + - MIN( DISTINCT - 8 ) AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5765
SELECT + - MIN ( DISTINCT - 8 ) AS col1 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + + MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5766
SELECT + + MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT - - MIN( + col1 ) - + ( 2 ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5767
SELECT - - MIN ( + col1 ) - + ( 2 ) AS col0 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT + COUNT( * ) + - 50 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL > - col1 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + COUNT ( * ) + - 50 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL > - col1 ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5769
SELECT + COUNT( * ) - 43, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-5769
SELECT + COUNT ( * ) - 43, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-40
NULL

query I rowsort
SELECT + - 50 + + 2 + + 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT - + col2 * - col1, + col2 + - col2 AS col0 FROM tab1 AS cor0
----
1344
0
295
0
3196
0

query II rowsort
SELECT DISTINCT + col0 * col1 AS col0, col2 AS col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col0 - - col2 col0 FROM tab0 AS cor0
----
-1168
-1817
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT 96 AS col0, - col1 AS col1 FROM tab1
----
96
-14
96
-47
96
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT - MIN( + col1 ) DIV - 5 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5776
SELECT - MIN ( + col1 ) / - 5 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 col0, + col0 AS col0 FROM tab2
----
89
46
89
64
89
75

query I rowsort
SELECT - - ( 2 ) AS col0 FROM tab2 cor0
----
2
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5779
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - 19 * col2 FROM tab0 AS cor0 WHERE + 78 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - 19 * col2 FROM tab0 AS cor0 WHERE + 78 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT SUM( ALL 15 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5781
SELECT SUM ( ALL 15 ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL SUM( ALL col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL SUM ( ALL col0 ) AS col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL MIN( DISTINCT + col2 ) - COUNT( * ) * 7 AS col1 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL MIN ( DISTINCT + col2 ) - COUNT ( * ) * 7 AS col1 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT 67 * + MIN( ALL - 67 ) FROM tab0
----
-4489

skipif mysql # not compatible
query I rowsort label-5784
SELECT 67 * + MIN ( ALL - 67 ) FROM tab0
----
-4489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * + col2 col2 FROM tab2
----
-1218
-483
-840

query I rowsort
SELECT ALL 83 FROM tab2 WHERE - col2 IN ( + col1 - + 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * col2 col1 FROM tab0
----
1034
2178
220

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 + - 57 / col2 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 + - 57 / col2 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL - 64 * COUNT( * ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - 64 * COUNT ( * ) FROM tab1
----
-192

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 18 > - col2
----

query I rowsort
SELECT DISTINCT + ( col2 ) + ( + col2 + + 36 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT + COUNT( * ) DIV + 30 AS col2 FROM tab1 WHERE ( 33 ) < col0 * + 7
----
0

skipif mysql # not compatible
query I rowsort label-5792
SELECT + COUNT ( * ) / + 30 AS col2 FROM tab1 WHERE ( 33 ) < col0 * + 7
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5793
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query III rowsort label-5793
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT DISTINCT + ( + ( - col2 ) ) * CAST( + ( + col1 ) + col2 AS SIGNED ) FROM tab2
----
-1702
-4680
-7250

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + ( + ( - col2 ) ) * CAST ( + ( + col1 ) + col2 AS INTEGER ) FROM tab2
----
-1702
-4680
-7250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND CAST( - col1 AS SIGNED ) * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND CAST ( - col1 AS INTEGER ) * + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT - COUNT( * ) DIV - 7 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( + col2 DIV - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - COUNT ( * ) / - 7 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( + col2 / - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT ALL - 36 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - 36 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL + SUM( + col0 ) * - 78 FROM tab2
----
-14430

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + SUM ( + col0 ) * - 78 FROM tab2
----
-14430

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT SUM( ALL 48 ) + ( - COUNT( * ) ) FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-5799
SELECT SUM ( ALL 48 ) + ( - COUNT ( * ) ) FROM tab0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 <> ( + col0 / ( + ( + 61 ) * 45 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 <> ( + col0 / ( + ( + 61 ) * 45 ) )
----
0

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT 9 * + 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT + 71 DIV + col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-5802
SELECT + 71 / + col1 FROM tab1
----
1
14
5

query I rowsort
SELECT ALL + col1 + ( 86 ) * + col1 FROM tab2
----
4437
5829
6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL + col2 AS col0 FROM tab2 WHERE + CAST( - ( col0 ) AS SIGNED ) + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + col2 AS col0 FROM tab2 WHERE + CAST ( - ( col0 ) AS INTEGER ) + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT col2 DIV - 49 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT col2 / - 49 AS col2 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL COUNT( * ) + CAST( SUM( ALL + col0 ) AS SIGNED ) col1 FROM tab2
----
188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5806
SELECT ALL COUNT ( * ) + CAST ( SUM ( ALL + col0 ) AS INTEGER ) col1 FROM tab2
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL 32 DIV col0 - + 74 AS col2 FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL 32 / col0 - + 74 AS col2 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT 65 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT DISTINCT col0 + 34 DIV col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT col0 + 34 / col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ( - COUNT( * ) ) FROM tab0 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5810
SELECT ( - COUNT ( * ) ) FROM tab0 cor0 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-5811
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5813
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN ( - 88 ) AND - col2 + - col0
----

query I rowsort
SELECT ALL - 60 * - 88 + + col0 FROM tab2 AS cor0 WHERE NOT 35 + - 7 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * 37 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + ( 34 ) * - COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5817
SELECT + ( 34 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + col2 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT - 96 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 41 + 93 * - col0 NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-5819
SELECT - 96 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 41 + 93 * - col0 NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - - ( - col1 ) * + 46 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT ALL + 2 * col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT DISTINCT - col2 DIV - + col0 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - col2 / - + col0 AS col1 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT col2 * - col2 + + col2 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5823
SELECT col2 * - col2 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ( - - ( MAX( DISTINCT 14 ) ) ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-5824
SELECT ( - - ( MAX ( DISTINCT 14 ) ) ) FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ALL + col0 * - 62 * + 65 FROM tab2
----
-185380
-257920
-302250

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT COUNT( - + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5827
SELECT COUNT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + ( - MIN( ALL col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5828
SELECT + ( - MIN ( ALL col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5829
SELECT * FROM tab1 WHERE ( - - col2 + - 21 ) NOT BETWEEN NULL AND - col2 * CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab1 WHERE ( - - col2 + - 21 ) NOT BETWEEN NULL AND - col2 * CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - col0 ) * - - col2 + col0 * - 47 FROM tab1
----
1020
1911
2499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 col2 FROM tab0 AS cor0 WHERE NOT - 35 * col2 - + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5831
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab0 AS cor0 WHERE NOT - 35 * col2 - + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) + - COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT + col1 + - - ( - col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
1296
1848
98

query II rowsort
SELECT DISTINCT - 38, 82 AS col2 FROM tab2 AS cor0
----
-38
82

query I rowsort
SELECT - + 5 + + + col0 AS col0 FROM tab2 AS cor0
----
41
59
70

query I rowsort
SELECT col0 + 72 AS col2 FROM tab1 cor0
----
123
157
163

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - col1 + + col2 + col1 * - + ( col1 ) * - col1 AS col2 FROM tab1
----
103844
179
2826

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IN ( col2 )
----

query I rowsort
SELECT ALL - col2 * + col2 - col1 * - ( - 84 ) AS col2 FROM tab1
----
-10392
-3901
-8572

query I rowsort
SELECT DISTINCT 73 + - + 66 AS col2 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT ALL + CAST( + 92 AS SIGNED ) - col0 - - - col0 * - 1 FROM tab1
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + CAST ( + 92 AS INTEGER ) - col0 - - - col0 * - 1 FROM tab1
----
92
92
92

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + + col1 * col2 NOT BETWEEN 18 / 76 - - 69 AND + col1 / + 10
----
10
47
99

query I rowsort
SELECT + 53 * col0 FROM tab1 WHERE ( - 87 * + col2 / - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT + col1 * 19 DIV 25 * ( - col2 ) col2 FROM tab0
----
-150
-2867
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5845
SELECT + col1 * 19 / 25 * ( - col2 ) col2 FROM tab0
----
-150
-2867
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT ALL - CAST( NULL AS SIGNED ) - 81 + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - CAST ( NULL AS INTEGER ) - 81 + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + + 55 * col0 * 23 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT ALL + + col2 + - col0 DIV - 12 AS col0 FROM tab2 AS cor0
----
26
45
64

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + + col2 + - col0 / - 12 AS col0 FROM tab2 AS cor0
----
26
45
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ( + ( + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5849
SELECT ( + ( + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 47 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 31 + 13 FROM tab1 WHERE NOT 30 NOT BETWEEN - ( + col2 ) - + col2 AND NULL OR NULL BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL col0, col1 + + col2 * - ( col1 ) AS col1 FROM tab0
----
15
-3726
87
-189
97
-98

query II rowsort
SELECT - 12 * + col0 * + col1, + col0 FROM tab1 AS cor0
----
-5100
85
-51324
91
-8568
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 4 IS NULL
----

query I rowsort
SELECT + col0 * + col1 * - col2 - + 17 AS col1 FROM tab1 AS cor0
----
-25092
-290853
-68561

query II rowsort
SELECT + ( - col0 ) * 31, 6 AS col1 FROM tab2 AS cor0
----
-1426
6
-1984
6
-2325
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5857
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 89 * - col1 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5857
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 89 * - col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT ALL + col2 * - col2 - + - CAST( + 21 AS SIGNED ) * - - col2 * 11 FROM tab1 AS cor0
----
10148
11084
12960

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL + col2 * - col2 - + - CAST ( + 21 AS INTEGER ) * - - col2 * 11 FROM tab1 AS cor0
----
10148
11084
12960

query I rowsort
SELECT ALL + - col1 * - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - - COUNT( * ) * 7 AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5860
SELECT - - COUNT ( * ) * 7 AS col0 FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT ALL - col1 * - col0 DIV + col0 - + + col2 - + 15 * col0 AS col0 FROM tab0 cor0
----
-1294
-1553
-191

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL - col1 * - col0 / + col0 - + + col2 - + 15 * col0 AS col0 FROM tab0 cor0
----
-1294
-1553
-191

query I rowsort
SELECT ALL + 66 * ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 + col0 * - col0 * + col0 )
----

query II rowsort
SELECT DISTINCT col0 + - + col0 AS col2, col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5864
SELECT ALL - col1 AS col0, - col2 DIV ( col1 ) DIV + col1 FROM tab1
----
-14
0
-47
0
-5
-2

skipif mysql # not compatible
query II rowsort label-5864
SELECT ALL - col1 AS col0, - col2 / ( col1 ) / + col1 FROM tab1
----
-14
0
-47
0
-5
-2

query I rowsort
SELECT - - 74 AS col1 FROM tab1 WHERE NOT ( - col0 ) <= + - 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5866
SELECT COUNT( * ) AS col2, CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5866
SELECT COUNT ( * ) AS col2, CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL - 95 + SUM( DISTINCT - col1 ) * - 45 FROM tab1 WHERE + + 36 * + CAST( NULL AS SIGNED ) NOT BETWEEN - 60 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL - 95 + SUM ( DISTINCT - col1 ) * - 45 FROM tab1 WHERE + + 36 * + CAST ( NULL AS INTEGER ) NOT BETWEEN - 60 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT COUNT( 51 ) * - 47 + + ( 52 ) AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-5868
SELECT COUNT ( 51 ) * - 47 + + ( 52 ) AS col0 FROM tab2
----
-89

query I rowsort
SELECT DISTINCT col1 * 66 AS col1 FROM tab1
----
3102
330
924

query I rowsort
SELECT DISTINCT col0 + + col2 AS col0 FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 col1, - 5 AS col1 FROM tab1 AS cor0
----
30
-5
30
-5
30
-5

query II rowsort
SELECT col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL 16 + 28 + - ( col1 ) * - col1 FROM tab2 AS cor0
----
2645
4533
5973

onlyif mysql # DIV for integer division: 
query II rowsort label-5874
SELECT + 31 DIV col1, + col2 FROM tab0
----
0
47
1
10
31
99

skipif mysql # not compatible
query II rowsort label-5874
SELECT + 31 / col1, + col2 FROM tab0
----
0
47
1
10
31
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL + COUNT( * ) + + 62 AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + COUNT ( * ) + + 62 AS col1 FROM tab0 AS cor0
----
65

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT + col2 + + col1 - col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 IN ( col1 )
----

query II rowsort
SELECT - 94, 12 / + + 70 FROM tab2 AS cor0 WHERE NULL BETWEEN + 27 AND NULL
----

query I rowsort
SELECT ALL col0 + 3 FROM tab2 cor0
----
49
67
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT DISTINCT + MIN( col2 ), + 95 AS col2 FROM tab2 AS cor0
----
23
95

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT + MIN ( col2 ), + 95 AS col2 FROM tab2 AS cor0
----
23
95

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col0 * - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT + col1 - - ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + col1 - - ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab0 WHERE + col1 - + col1 <= - 39
----

query I rowsort
SELECT DISTINCT 37 + + + col2 * - - 48 AS col2 FROM tab0
----
2293
4789
517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - - col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * + + col1 * col2 + + - col0 FROM tab0
----
18183
57090
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5889
SELECT + COUNT( * ) - + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT + COUNT ( * ) - + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - - ( col1 ) + 35 * - col2 AS col2 FROM tab2
----
-1259
-1888
-708

query I rowsort
SELECT + col2 + - + 12 FROM tab1
----
47
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL 85 - - COUNT( DISTINCT col2 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL 85 - - COUNT ( DISTINCT col2 ) FROM tab0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT col2 DIV - col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( 60 * - 31 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5893
SELECT col2 / - col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( 60 * - 31 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL - + 6 * + COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - + 6 * + COUNT ( * ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL + 73 FROM tab1 WHERE NOT - col0 > + 33 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 + - col1 col1 FROM tab0 WHERE + col1 * + - col1 <> col0
----
-4
-64
16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5898
SELECT + col1 AS col2, + col1 / - CAST( NULL AS SIGNED ) * + ( CAST( NULL AS SIGNED ) * - 10 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 * - + 80 * + 88 ) AND col0
----

skipif mysql # not compatible
query II rowsort label-5898
SELECT + col1 AS col2, + col1 / - CAST ( NULL AS INTEGER ) * + ( CAST ( NULL AS INTEGER ) * - 10 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 * - + 80 * + 88 ) AND col0
----

query I rowsort
SELECT - ( + 60 ) * - col1 AS col1 FROM tab0 cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT - - col2 + - - col1 FROM tab2 AS cor0 WHERE NOT 41 + + 75 - - 93 BETWEEN NULL AND - - 64
----
117
125
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * - 39 * col1 - - 88 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * - 39 * col1 - - 88 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT DISTINCT - + CAST( ( - col0 ) AS SIGNED ) col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5903
SELECT DISTINCT - + CAST ( ( - col0 ) AS INTEGER ) col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + ( 19 ) AS col0 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - + col2 * - 45 + - 88 AS col1 FROM tab1 AS cor0
----
2567
2972
4232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT - 43 * + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3741
4171
645

skipif mysql # not compatible
query I rowsort label-5906
SELECT - 43 * + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3741
4171
645

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5907
SELECT - - CAST( + + 45 AS SIGNED ) AS col1, CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-5907
SELECT - - CAST ( + + 45 AS INTEGER ) AS col1, CAST ( NULL AS REAL ) FROM tab1 cor0
----
45
NULL
45
NULL
45
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT col0 DIV + 93 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5908
SELECT col0 / + 93 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col1 FROM tab2
----
-83
-83
-83

query I rowsort
SELECT 47 + - + col1 * 90 + - - col2 FROM tab0
----
-1833
-7196
56

query I rowsort
SELECT DISTINCT + 97 * - col1 FROM tab0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5912
SELECT ALL - 92 / CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - 92 / CAST ( NULL AS REAL ) * + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 12 + col1 - - col0 IN ( - 8 + - col0 )
----

query I rowsort
SELECT col1 + - + 0 AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 83 FROM tab2 AS cor0 WHERE ( col0 * + col2 <= NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + col0 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 col2 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND - - 62
----
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND - - 62
----
0

query I rowsort
SELECT ALL 29 - - col1 * - col1 FROM tab2
----
-2572
-4460
-5900

query I rowsort
SELECT + - 35 FROM tab2 AS cor0 WHERE 80 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + + 35 + - MIN( - 8 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5921
SELECT + + 35 + - MIN ( - 8 ) FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT ALL + col2 DIV 52 * - + 6 AS col1 FROM tab2 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL + col2 / 52 * - + 6 AS col1 FROM tab2 AS cor0
----
-6
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT + - 29 DIV COUNT( * ) + - COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5923
SELECT + - 29 / COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
-9

query I rowsort
SELECT 62 * - - col1 + + + ( 0 ) - + col0 FROM tab2 AS cor0
----
3116
4079
4710

query I rowsort
SELECT DISTINCT - 22 + + col1 + ( + ( - + 41 ) ) AS col0 FROM tab2 cor0
----
-12
14
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - + col0 = NULL
----

query I rowsort
SELECT DISTINCT + 74 + col2 AS col2 FROM tab2
----
114
132
97

query II rowsort
SELECT ALL 13 * + col2 * + col1 - - ( - col0 ), col2 FROM tab1
----
17421
96
3750
59
41457
68

query I rowsort
SELECT - 98 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + ( + ( + col0 ) ) - + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( + 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ( - - ( MIN( - 29 ) ) ) * 97 AS col1 FROM tab1
----
-2813

skipif mysql # not compatible
query I rowsort label-5932
SELECT ( - - ( MIN ( - 29 ) ) ) * 97 AS col1 FROM tab1
----
-2813

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT ALL + 72 DIV + 59 + - + 72 * col2 * + + col0 AS col2 FROM tab0 AS cor0
----
-50759
-62639
-691415

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + 72 / + 59 + - + 72 * col2 * + + col0 AS col2 FROM tab0 AS cor0
----
-50759
-62639
-691415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab0 cor0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 > - - col2 + + - ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1 WHERE NOT col1 IN ( + - col1 )
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT col2 * col1 + - CAST( - col1 AS SIGNED ) + 23 AS col1 FROM tab1 AS cor0
----
1381
323
3266

skipif mysql # not compatible
query I rowsort label-5937
SELECT col2 * col1 + - CAST ( - col1 AS INTEGER ) + 23 AS col1 FROM tab1 AS cor0
----
1381
323
3266

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col2 FROM tab0 cor0 WHERE + col2 NOT BETWEEN ( + 33 + - - col1 ) AND + col1 * - col0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5940
SELECT + + COUNT( * ) AS col2, + CAST( - COUNT( * ) AS SIGNED ) * - + 43 * + + SUM( DISTINCT + 72 ) FROM tab2 AS cor0
----
3
9288

skipif mysql # not compatible
query II rowsort label-5940
SELECT + + COUNT ( * ) AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) * - + 43 * + + SUM ( DISTINCT + 72 ) FROM tab2 AS cor0
----
3
9288

query I rowsort
SELECT - 58 * + 25 AS col0 FROM tab1 AS cor0
----
-1450
-1450
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + + SUM( ALL - - ( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5942
SELECT + + SUM ( ALL - - ( col0 ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL MAX( ALL - col1 ) + - 51 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL MAX ( ALL - col1 ) + - 51 FROM tab2 AS cor0
----
-102

query II rowsort
SELECT ALL - col2 AS col0, - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL + col1 * + 10 + - 18 FROM tab1
----
122
32
452

query III rowsort
SELECT * FROM tab1 WHERE col0 <> + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 40 * - - 38 AS col1 FROM tab1
----
1520
1520
1520

query III rowsort
SELECT * FROM tab2 WHERE + 84 = - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - COUNT( * ) * 80 AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-5949
SELECT - COUNT ( * ) * 80 AS col1 FROM tab2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + COUNT( * ) * + - 47 col2 FROM tab0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5950
SELECT + COUNT ( * ) * + - 47 col2 FROM tab0
----
-141

query I rowsort
SELECT DISTINCT - col2 + 52 + col1 FROM tab0 AS cor0
----
-46
63
86

query I rowsort
SELECT ALL 61 + col1 * - + 20 * ( - - ( - + col1 ) ) AS col2 FROM tab0 AS cor0
----
131281
81
8881

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 74 ) IS NULL
----

query I rowsort
SELECT - 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + 92 * 93 FROM tab0
----
8556
8556
8556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT DISTINCT + + 25 - - col0 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 59 * - col0 + - - CAST( col0 AS SIGNED ) AND + ( - + col0 ) * col0
----

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT + + 25 - - col0 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 59 * - col0 + - - CAST ( col0 AS INTEGER ) AND + ( - + col0 ) * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 10 * col1 - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - - - col0 * + col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col0 BETWEEN + + ( + col0 ) AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + + COUNT( * ) - + COUNT( * ) + + + 36 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5961
SELECT + + COUNT ( * ) - + COUNT ( * ) + + + 36 AS col2 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5962
SELECT DISTINCT - 25 / CAST( NULL AS SIGNED ), 58 AS col2 FROM tab2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-5962
SELECT DISTINCT - 25 / CAST ( NULL AS INTEGER ), 58 AS col2 FROM tab2
----
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85, col1 col0 FROM tab2
----
85
51
85
67
85
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT - 31 DIV - + col0 * + + col2 * - 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT - 31 / - + col0 * + + col2 * - 77 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 + - + col2 NOT BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5965
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 + - + col2 NOT BETWEEN + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT 34 AS col0, COUNT( * ) AS col2 FROM tab0
----
34
3

skipif mysql # not compatible
query II rowsort label-5966
SELECT 34 AS col0, COUNT ( * ) AS col2 FROM tab0
----
34
3

query II rowsort
SELECT 9, col1 FROM tab2
----
9
51
9
67
9
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5968
SELECT ALL CAST( 9 AS SIGNED ) * - col0 * + - 12 AS col0, + 14 + + CAST( NULL AS SIGNED ) + - + col2 * + 43 / - col1 + - + CAST( + col2 AS DECIMAL ) AS col1 FROM tab0
----
10476
NULL
1620
NULL
9396
NULL

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL CAST ( 9 AS INTEGER ) * - col0 * + - 12 AS col0, + 14 + + CAST ( NULL AS INTEGER ) + - + col2 * + 43 / - col1 + - + CAST ( + col2 AS REAL ) AS col1 FROM tab0
----
10476
NULL
1620
NULL
9396
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + ( 7 ) col2 FROM tab0 AS cor0
----
147
567
7

query II rowsort
SELECT DISTINCT + + 67 AS col2, - col1 + + - col0 FROM tab1 AS cor0
----
67
-138
67
-65
67
-90

query I rowsort
SELECT ALL col2 * - - col2 FROM tab0 cor0
----
100
2209
9801

query II rowsort
SELECT - - 77 AS col0, + 21 - - col2 FROM tab1 cor0
----
77
117
77
80
77
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT CAST( + col1 AS SIGNED ) * + - 70 AS col1 FROM tab1
----
-3290
-350
-980

skipif mysql # not compatible
query I rowsort label-5973
SELECT CAST ( + col1 AS INTEGER ) * + - 70 AS col1 FROM tab1
----
-3290
-350
-980

query I rowsort
SELECT ALL - + 50 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL + + MAX( - col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5975
SELECT ALL + + MAX ( - col2 ) col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL - 55 + - + 55 AS col1 FROM tab2 AS cor0
----
-110
-110
-110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5977
SELECT ALL - col1 + 61 + - 64 AS col1 FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col0 / col1, + CAST( NULL AS DECIMAL ), - col1, + + col0 - - col1 + - - ( + - col0 ), col0, 90 )
----

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - col1 + 61 + - 64 AS col1 FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col0 / col1, + CAST ( NULL AS REAL ), - col1, + + col0 - - col1 + - - ( + - col0 ), col0, 90 )
----

query I rowsort
SELECT ALL + col2 + 22 AS col0 FROM tab1 AS cor0
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + 43 * - COUNT( * ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-129

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + 43 * - COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 AS cor0 WHERE col0 <= + col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - ( - SUM( DISTINCT + - 34 ) ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5981
SELECT - ( - SUM ( DISTINCT + - 34 ) ) FROM tab0 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + col0 col1, - col0 AS col1 FROM tab2 AS cor0
----
17
-75
23
-46
24
-64

query I rowsort
SELECT - col2 FROM tab2 WHERE + ( + col1 ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 + 53 AS col1 FROM tab1
----
-32
-38
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 64 col2 FROM tab2 WHERE ( - + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5986
SELECT * FROM tab2 WHERE - 54 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5986
SELECT * FROM tab2 WHERE - 54 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col1 ) NOT IN ( 10, ( col2 ) + col1 / + 69 )
----

query I rowsort
SELECT - col1 * - + 65 * - col0 + col1 * - 21 FROM tab2
----
-153561
-321937
-328032

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - ( - COUNT( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5989
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - 40 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-25
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab1 AS cor0
----
31
31
31

query II rowsort
SELECT DISTINCT - 66 AS col0, - col2 FROM tab0 AS cor0
----
-66
-10
-66
-47
-66
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + - 76 + COUNT( * ) + + 30 AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + - 76 + COUNT ( * ) + + 30 AS col1 FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5994
SELECT ALL - 81, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-81
3

skipif mysql # not compatible
query II rowsort label-5994
SELECT ALL - 81, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-81
3

query I rowsort
SELECT DISTINCT col2 + - - 29 FROM tab1 AS cor0
----
125
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT MIN( ALL - ( + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT MIN ( ALL - ( + col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT ALL - 81 - col0 + col2 - - col1 AS col1 FROM tab2 AS cor0
----
-28
-31
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT + + COUNT( * ) + - 97 AS col0 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5998
SELECT + + COUNT ( * ) + - 97 AS col0 FROM tab2 cor0
----
-94

query I rowsort
SELECT col1 + + + 32 - col0 FROM tab0 cor0
----
-34
-64
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT + CAST( NULL AS SIGNED ) * + 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT + CAST ( NULL AS INTEGER ) * + 89 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT - 94 DIV + - col1 col2 FROM tab0 AS cor0
----
1
4
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6001
SELECT - 94 / + - col1 col2 FROM tab0 AS cor0
----
1
4
94

query I rowsort
SELECT + 98 * - - 3 FROM tab2 AS cor0
----
294
294
294

query I rowsort
SELECT DISTINCT - + col0 * - 66 * - + col2 FROM tab2 AS cor0
----
-168960
-287100
-69828

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL 70 * - - MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-1610

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL 70 * - - MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1610

query I rowsort
SELECT - col1 * + - col1 FROM tab1 AS cor0 WHERE NOT col2 + + col2 NOT BETWEEN - + col2 * + + 51 + - - col1 AND NULL
----

query I rowsort
SELECT ALL + 68 * - 67 FROM tab1 AS cor0
----
-4556
-4556
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT + - COUNT( DISTINCT - col2 ) - 4 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT + - COUNT ( DISTINCT - col2 ) - 4 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
-4

query I rowsort
SELECT col2 * - col0 * - col1 * + col1 FROM tab2
----
15178240
19527150
2751858

query III rowsort
SELECT * FROM tab0 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE - col1 > + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + + ( COUNT( * ) ) + + + COUNT( * ) - + SUM( ALL - col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT + + ( COUNT ( * ) ) + + + COUNT ( * ) - + SUM ( ALL - col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + COUNT( DISTINCT + 31 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6012
SELECT + COUNT ( DISTINCT + 31 ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL - SUM( DISTINCT + + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - SUM ( DISTINCT + + col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL + 48 * + 25 + 18 AS col1 FROM tab1 AS cor0
----
1218
1218
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 17 * + MIN( ALL + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 17 * + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT DISTINCT - - col2 DIV col1 + - 51 * + 31 FROM tab2 AS cor0
----
-1581

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - - col2 / col1 + - 51 * + 31 FROM tab2 AS cor0
----
-1581

query I rowsort
SELECT DISTINCT - + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

query I rowsort
SELECT - col1 * - col2 + + col1 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT + 76 + - - 81 * - + col1 AS col1 FROM tab0 AS cor0
----
-1625
-5
-6485

query II rowsort
SELECT + col1 + - col0, + 78 * - col1 AS col0 FROM tab1 AS cor0
----
-37
-1092
-44
-3666
-80
-390

query II rowsort
SELECT DISTINCT 84, + 7 + 99 AS col0 FROM tab0 AS cor0
----
84
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL - COUNT( * ) * - COUNT( * ) * - 50 FROM tab0 AS cor0
----
-450

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - 50 FROM tab0 AS cor0
----
-450

query I rowsort
SELECT DISTINCT + + col2 * + col0 + - col0 FROM tab1 cor0
----
4845
4930
6097

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col0 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT - 45 DIV - col2 * - col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6025
SELECT - 45 / - col2 * - col2 col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - - 44 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT + col1 DIV col2 - + col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6027
SELECT + col1 / col2 - + col2 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + 47, col2 + + - 92 col1 FROM tab0
----
134
-82
144
7
62
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - col0 AS col1, col2 col2 FROM tab2
----
-141
40
-142
58
-97
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 65 = - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL ( + - col1 ) AS col1 FROM tab1 AS cor0 WHERE 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * + col2 col0 FROM tab1
----
1003
1156
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT col1 DIV + 75 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6034
SELECT col1 / + 75 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT + - col0 + + + 53 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6036
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - col0 + + + 53 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT NULL <= + + col1 ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT + COUNT( * ) DIV 98 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + COUNT ( * ) / 98 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + + col0 ) < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - + COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6041
SELECT - + COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT + - CAST( col0 AS SIGNED ) * - - col1 - - col0 AS col1 FROM tab2 cor0
----
-2300
-4864
-4950

skipif mysql # not compatible
query I rowsort label-6042
SELECT + - CAST ( col0 AS INTEGER ) * - - col1 - - col0 AS col1 FROM tab2 cor0
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 / + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - MIN( ( + 94 ) ) AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-6044
SELECT - MIN ( ( + 94 ) ) AS col0 FROM tab2
----
-94

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 6 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT + 15 + + COUNT( + col1 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT + 15 + + COUNT ( + col1 ) FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6048
SELECT 66 * + SUM( - CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6048
SELECT 66 * + SUM ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + 19 = col2
----

query I rowsort
SELECT DISTINCT - col2 + + 11 FROM tab2 AS cor0
----
-12
-29
-47

query I rowsort
SELECT + + 27 + col0 FROM tab0 AS cor0
----
114
124
42

query I rowsort
SELECT - col2 + + 39 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6054
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT DISTINCT + 37 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + 37 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT - col2 + + 50 DIV 85 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6056
SELECT - col2 + + 50 / 85 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6057
SELECT ALL - col0 + 58 - + col0 + - col2 + + CAST( NULL AS SIGNED ) * col1 * - 53 col0, col0 * - - col1 DIV col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6057
SELECT ALL - col0 + 58 - + col0 + - col2 + + CAST ( NULL AS INTEGER ) * col1 * - 53 col0, col0 * - - col1 / col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL col1 - - - col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL col2 * + + ( col2 ) AS col0 FROM tab2
----
1600
3364
529

query II rowsort
SELECT DISTINCT - 87, col2 AS col1 FROM tab0
----
-87
10
-87
47
-87
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT - - col0 DIV + + ( - 58 ) FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6061
SELECT - - col0 / + + ( - 58 ) FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 88 * + - 11 * - 64 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col0 FROM tab1, tab1 cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6065
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6065
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 199105619049271147956de52e7f5ed4

query II rowsort
SELECT ALL + col0 * - 45 AS col2, 34 AS col2 FROM tab0
----
-3915
34
-4365
34
-675
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> - col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT - - 27 * 67 * + COUNT( * ) * - 42 FROM tab1 AS cor0 WHERE NOT ( 37 ) BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - - 27 * 67 * + COUNT ( * ) * - 42 FROM tab1 AS cor0 WHERE NOT ( 37 ) BETWEEN NULL AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 * + - col1 IN ( - col1 * - col2 + + col0 / + - 34, 75, + + col1 * - 37 )
----
3

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 * + - col1 IN ( - col1 * - col2 + + col0 / + - 34, 75, + + col1 * - 37 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT ALL 95, + ( + SUM( + - 13 ) ) AS col1 FROM tab2
----
95
-39

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL 95, + ( + SUM ( + - 13 ) ) AS col1 FROM tab2
----
95
-39

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + - col2 < + 19
----

query I rowsort
SELECT - col0 * - - col2 * col1 AS col2 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT ALL * FROM tab2 WHERE 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6076
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - CAST( NULL AS DECIMAL ) + col0 * + 12 / - 97 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / col1 - + col2 - + - 85 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - CAST ( NULL AS REAL ) * - CAST ( NULL AS REAL ) + col0 * + 12 / - 97 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col1 - + col2 - + - 85 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - + 82 + + + col2 AS col0 FROM tab0 AS cor0
----
-62
116
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT + 0 + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + 0 + + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6079
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * + 6 * - col2 AS col2 FROM tab2 AS cor0
----
-18480
-23316
-7038

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + - COUNT( ALL + + ( + 43 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6081
SELECT + - COUNT ( ALL + + ( + 43 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT DISTINCT 54 DIV - + col0 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6082
SELECT DISTINCT 54 / - + col0 col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - - 94 * - + col0 * + - col1 FROM tab1 AS cor0
----
39950
402038
67116

query I rowsort
SELECT ALL + 7 * + col0 * - - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 8 * col1 + + 21 AS col2 FROM tab0 AS cor0
----
189
29
669

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - 40 * - MIN( + - 78 ) FROM tab1
----
-3120

skipif mysql # not compatible
query I rowsort label-6086
SELECT - 40 * - MIN ( + - 78 ) FROM tab1
----
-3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6087
SELECT COUNT( col1 ) DIV - COUNT( * ) - + 50 AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6087
SELECT COUNT ( col1 ) / - COUNT ( * ) - + 50 AS col0 FROM tab2
----
-51

query I rowsort
SELECT + col0 - - ( 53 ) AS col1 FROM tab1
----
104
138
144

query I rowsort
SELECT ALL ( 49 ) AS col2 FROM tab0 cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT CAST( NULL AS SIGNED ) / - 81 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT CAST ( NULL AS INTEGER ) / - 81 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT COUNT( * ) * + 32 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT COUNT ( * ) * + 32 FROM tab2
----
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 63 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6093
SELECT ALL COUNT( * ) DIV + ( + COUNT( * ) ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL COUNT ( * ) / + ( + COUNT ( * ) ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + COUNT( DISTINCT + 39 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6094
SELECT + COUNT ( DISTINCT + 39 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6095
SELECT DISTINCT CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 44 )
----

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT DISTINCT + CAST( + - AVG ( col1 ) AS SIGNED ) FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT + CAST ( + - AVG ( col1 ) AS INTEGER ) FROM tab1 cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT + + col0 DIV + 47 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-6099
SELECT + + col0 / + 47 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT DISTINCT + + 9 FROM tab0 AS cor0 WHERE NOT - col0 + 2 / - col2 * + - 17 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6102
SELECT ALL + 87 col0, + 9 DIV col1 AS col1 FROM tab1 AS cor0
----
87
0
87
0
87
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6102
SELECT ALL + 87 col0, + 9 / col1 AS col1 FROM tab1 AS cor0
----
87
0
87
0
87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + + MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6103
SELECT + + MIN ( col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 16 = NULL
----

query I rowsort
SELECT + col2 * - 40 * 87 FROM tab2
----
-139200
-201840
-80040

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT COUNT( - 58 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT COUNT ( - 58 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 * + - col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT col2 * - ( col0 ) AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - 79 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 93 + + col0 AND + col0 * + col0 - + 59
----

query I rowsort
SELECT 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL 31 + - col0 FROM tab1
----
-20
-54
-60

query I rowsort
SELECT + 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT - col0 DIV col0 DIV - ( - + 45 ) + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-6113
SELECT - col0 / col0 / - ( - + 45 ) + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - + col0 + 83 FROM tab2 AS cor0
----
19
37
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6115
SELECT + SUM( + 29 ) + + - COUNT( * ) + - + CAST( COUNT( - 63 ) AS SIGNED ) col0, - MAX( - 82 ) FROM tab0 AS cor0
----
81
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6115
SELECT + SUM ( + 29 ) + + - COUNT ( * ) + - + CAST ( COUNT ( - 63 ) AS INTEGER ) col0, - MAX ( - 82 ) FROM tab0 AS cor0
----
81
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6116
SELECT - col0 DIV - 55 + + col2 AS col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-6116
SELECT - col0 / - 55 + + col2 AS col2 FROM tab1 AS cor0
----
60
69
96

query I rowsort
SELECT - 9 + 96 AS col2 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT ALL - - 25 - + - col0 + + CAST( NULL AS SIGNED ) + - + col1 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - - 25 - + - col0 + + CAST ( NULL AS INTEGER ) + - + col1 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + COUNT( * ) + - 63 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6119
SELECT + COUNT ( * ) + - 63 FROM tab0
----
-60

query I rowsort
SELECT ALL col2 * + + col1 + - col2 AS col0 FROM tab0
----
0
200
3760

query I rowsort
SELECT DISTINCT - 90 FROM tab0 WHERE NULL >= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT DISTINCT 49 * + COUNT( - - col1 ) * - CAST( NULL AS SIGNED ) - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT 49 * + COUNT ( - - col1 ) * - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 > ( NULL )
----

query I rowsort
SELECT col1 * - 52 FROM tab0 cor0
----
-1092
-4212
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT ( + + COUNT( * ) ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT ( + + COUNT ( * ) ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 76 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0 - + + 60
----

query I rowsort
SELECT - 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT + + ( 74 ) AS col0 FROM tab0 AS cor0
----
74

query I rowsort
SELECT + - col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + + ( - + 20 ) AS col1 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT ALL + + SUM( - - col0 ) * - - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + + SUM ( - - col0 ) * - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT ALL col0 DIV + 56 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL col0 / + 56 FROM tab0 AS cor0
----
0
1
1

query II rowsort
SELECT col2 AS col1, 22 FROM tab1 AS cor0
----
59
22
68
22
96
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6134
SELECT ALL - CAST( NULL AS SIGNED ) + + 18 * + col2 * + col0 AS col0, + 46 * - + 76 AS col2 FROM tab2
----
NULL
-3496
NULL
-3496
NULL
-3496

skipif mysql # not compatible
query II rowsort label-6134
SELECT ALL - CAST ( NULL AS INTEGER ) + + 18 * + col2 * + col0 AS col0, + 46 * - + 76 AS col2 FROM tab2
----
NULL
-3496
NULL
-3496
NULL
-3496

query I rowsort
SELECT col0 * 72 AS col2 FROM tab1
----
3672
6120
6552

query I rowsort
SELECT ALL + 65 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT col2 * + 46 AS col2 FROM tab1
----
2714
3128
4416

query II rowsort
SELECT ALL 31 AS col1, + 47 AS col2 FROM tab2
----
31
47
31
47
31
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - MAX( 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-6139
SELECT - MAX ( 10 ) FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6140
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + col1 ) <= - CAST( + + 33 AS SIGNED ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6140
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + col1 ) <= - CAST ( + + 33 AS INTEGER ) * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT + CAST( + 68 AS SIGNED ) + + + 63 FROM tab2 AS cor0
----
131
131
131

skipif mysql # not compatible
query I rowsort label-6141
SELECT + CAST ( + 68 AS INTEGER ) + + + 63 FROM tab2 AS cor0
----
131
131
131

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT - 42 * - + COUNT( * ) * 84 FROM tab1
----
10584

skipif mysql # not compatible
query I rowsort label-6143
SELECT - 42 * - + COUNT ( * ) * 84 FROM tab1
----
10584

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT MIN( ALL - - 42 ) * - 76 * COUNT( * ) FROM tab0
----
-9576

skipif mysql # not compatible
query I rowsort label-6144
SELECT MIN ( ALL - - 42 ) * - 76 * COUNT ( * ) FROM tab0
----
-9576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6145
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 * CAST( NULL AS SIGNED ) * 88
----

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 * CAST ( NULL AS INTEGER ) * 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT + MIN( ALL + + col0 ) + - 50 * ( + COUNT( * ) ) + - COUNT( * ) col0, - 9 FROM tab1 cor0 WHERE ( - 35 <> NULL )
----
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6147
SELECT + MIN ( ALL + + col0 ) + - 50 * ( + COUNT ( * ) ) + - COUNT ( * ) col0, - 9 FROM tab1 cor0 WHERE ( - 35 <> NULL )
----
NULL
-9

query I rowsort
SELECT DISTINCT - col0 + 7 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT ALL - - 2 AS col2 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - col2 / ( ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, + col2 col2 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT DISTINCT - COUNT( ALL - ( - col1 ) ) DIV + - 33 - - ( + 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - COUNT ( ALL - ( - col1 ) ) / + - 33 - - ( + 80 ) FROM tab1 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 89 col0 FROM tab2
----
31
49
66

query I rowsort
SELECT 18 - + col0 AS col1 FROM tab2
----
-28
-46
-57

query II rowsort
SELECT ALL 16, 6 AS col2 FROM tab0
----
16
6
16
6
16
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6155
SELECT DISTINCT * FROM tab2 WHERE + + col1 * + + col1 NOT BETWEEN + + col0 + - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6155
SELECT DISTINCT * FROM tab2 WHERE + + col1 * + + col1 NOT BETWEEN + + col0 + - CAST ( NULL AS REAL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT + COUNT( * ) AS col2, - 86 AS col0 FROM tab1
----
3
-86

skipif mysql # not compatible
query II rowsort label-6157
SELECT + COUNT ( * ) AS col2, - 86 AS col0 FROM tab1
----
3
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT - + SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT - + SUM ( col2 ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT DISTINCT - - col0 + col0 + - ( - 0 ) AS col0, 46 FROM tab2 AS cor0
----
128
46
150
46
92
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - col0 NOT IN ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT - COUNT( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6161
SELECT - COUNT ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT ALL - COUNT( * ) AS col2, - 25 FROM tab2
----
-3
-25

skipif mysql # not compatible
query II rowsort label-6162
SELECT ALL - COUNT ( * ) AS col2, - 25 FROM tab2
----
-3
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL 38 * - - COUNT( * ) AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL 38 * - - COUNT ( * ) AS col0 FROM tab1
----
114

query I rowsort
SELECT col1 + + 72 FROM tab0
----
153
73
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT DISTINCT - 3 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT - 3 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT ALL - 86 + 17 - col1 - + col1 DIV + 8 FROM tab2 cor0
----
-126
-144
-155

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - 86 + 17 - col1 - + col1 / + 8 FROM tab2 cor0
----
-126
-144
-155

query I rowsort
SELECT col1 * - + 77 AS col0 FROM tab1 AS cor0
----
-1078
-3619
-385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6168
SELECT - ( - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6168
SELECT - ( - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93 - + col0 + + + col1 * col1 + - - 59 * + - col1 col1, 49 FROM tab0
----
-62
49
-792
49
1860
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6170
SELECT ALL * FROM tab2 WHERE NOT - col1 + + 30 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6170
SELECT ALL * FROM tab2 WHERE NOT - col1 + + 30 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col0, 69 * col1 AS col0 FROM tab1
----
51
966
85
345
91
3243

query II rowsort
SELECT DISTINCT - + 59, col0 AS col1 FROM tab0 AS cor0
----
-59
15
-59
87
-59
97

query II rowsort
SELECT ALL col0 AS col1, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT 24 + - 58 AS col2 FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6176
SELECT - COUNT( * ) * 69 AS col0 FROM tab0 cor0 WHERE col2 IN ( CAST( - + 49 AS DECIMAL ) * + - col2, + col2 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT - COUNT ( * ) * 69 AS col0 FROM tab0 cor0 WHERE col2 IN ( CAST ( - + 49 AS REAL ) * + - col2, + col2 / + col0 )
----
0

query I rowsort
SELECT col0 * + 96 - + col2 * - 2 * + col1 * col0 * + 46 FROM tab2 AS cor0
----
18141184
26820600
4968552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT DISTINCT col0 FROM tab1 WHERE NULL <= - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT col0 FROM tab1 WHERE NULL <= - CAST ( - col1 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 >= - + col0
----
15
81
47

query I rowsort
SELECT + col2 * + - col2 FROM tab1 cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ( MIN( DISTINCT + 34 ) ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6182
SELECT ( MIN ( DISTINCT + 34 ) ) FROM tab0 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT - 50 + - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-114
-125
-96

skipif mysql # not compatible
query I rowsort label-6184
SELECT - 50 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-114
-125
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT - + 19 + + + ( ( + - COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6185
SELECT DISTINCT - + 19 + + + ( ( + - COUNT ( * ) ) ) col1 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT - + 21 * + - COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT - + 21 * + - COUNT ( * ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT DISTINCT - + 26 + + - COUNT( * ) - + - 48 col0 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT DISTINCT - + 26 + + - COUNT ( * ) - + - 48 col0 FROM tab1 AS cor0
----
19

query I rowsort
SELECT ( - 11 ) AS col2 FROM tab1 AS cor0
----
-11
-11
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT - COUNT( + + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6190
SELECT - COUNT ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + ( - 42 ) + - 94 FROM tab0 AS cor0
----
-136
-136
-136

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab0 WHERE col0 <= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6194
SELECT SUM( DISTINCT + col2 ), ( CAST( - - AVG ( col2 ) AS SIGNED ) ) AS col2 FROM tab2
----
121
40

skipif mysql # not compatible
query II rowsort label-6194
SELECT SUM ( DISTINCT + col2 ), ( CAST ( - - AVG ( col2 ) AS INTEGER ) ) AS col2 FROM tab2
----
121
40

query I rowsort
SELECT DISTINCT 62 * - - col2 * col0 FROM tab2
----
158720
269700
65596

query I rowsort
SELECT col0 FROM tab2 WHERE NULL < + 32
----

query I rowsort
SELECT 57 + col1 + + + 36 FROM tab1 AS cor0
----
107
140
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6198
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * + 43 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * + 43 FROM tab1 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT ALL 33 - - col0 + - 65 DIV - - 21 col0 FROM tab1
----
115
121
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6201
SELECT ALL 33 - - col0 + - 65 / - - 21 col0 FROM tab1
----
115
121
81

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE col1 NOT BETWEEN - 91 AND + col2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT 59 - - + COUNT( DISTINCT + - col1 ) col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6203
SELECT 59 - - + COUNT ( DISTINCT + - col1 ) col1 FROM tab2 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col2 + col1 col0 FROM tab1 cor0
----
-14
110
-47
115
-5
64

query I rowsort
SELECT col2 - + 58 * - col0 FROM tab1 AS cor0
----
3054
4989
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT COUNT( * ) * + SUM( ALL + 67 ) * + 91 FROM tab0 AS cor0
----
54873

skipif mysql # not compatible
query I rowsort label-6206
SELECT COUNT ( * ) * + SUM ( ALL + 67 ) * + 91 FROM tab0 AS cor0
----
54873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN - col2 * - col1 AND + 31 / + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN - col2 * - col1 AND + 31 / + - 98
----
NULL

query I rowsort
SELECT + + 42 * + col2 * 34 * + col0 / - - col2 + col1 + + - 34 AS col0 FROM tab2 AS cor0 WHERE NOT 33 * + 27 + + + col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 93 - col1 FROM tab2 AS cor0
----
2088
3643
5327

query I rowsort
SELECT DISTINCT - + 89 FROM tab2 AS cor0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - SUM( DISTINCT - 87 ) FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-6211
SELECT - SUM ( DISTINCT - 87 ) FROM tab0 cor0
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6212
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + - col0 + ( + col1 ) * + - col0 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6212
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + - col0 + ( + col1 ) * + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + ( - - MIN( ALL - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + ( - - MIN ( ALL - col2 ) ) FROM tab2
----
-58

query II rowsort
SELECT 15, + col1 AS col0 FROM tab0
----
15
1
15
21
15
81

query II rowsort
SELECT DISTINCT col2, ( - - col2 ) * - col0 * + + 52 + + 14 AS col1 FROM tab0 AS cor0
----
10
-45226
47
-36646
99
-499342

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT 87 * COUNT( * ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-6216
SELECT 87 * COUNT ( * ) FROM tab0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT ALL - CAST( + + col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6217
SELECT ALL - CAST ( + + col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 35 * + 64 FROM tab1
----
2240
2240
2240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 99 + + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 + + col0 - + col2 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT 48 * - 49 + - - 51 * COUNT( * ) + 70 AS col0 FROM tab0 cor0
----
-2129

skipif mysql # not compatible
query I rowsort label-6223
SELECT 48 * - 49 + - - 51 * COUNT ( * ) + 70 AS col0 FROM tab0 cor0
----
-2129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col1 col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT NULL IN ( 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT 73 + - - COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-6226
SELECT 73 + - - COUNT ( * ) FROM tab0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6227
SELECT + col0 + + 86 + - - CAST( NULL AS SIGNED ) AS col2, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6227
SELECT + col0 + + 86 + - - CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 AS col0 FROM tab2
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT col2 col2 FROM tab1 WHERE - col0 - - col2 NOT BETWEEN NULL AND col2 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6230
SELECT col2 col2 FROM tab1 WHERE - col0 - - col2 NOT BETWEEN NULL AND col2 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT + + ( - + ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT + + ( - + ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + 87 ) FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + col1 * - - col2 + + 82 + - + ( + col2 ) FROM tab2 AS cor0
----
1232
3122
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL + 60 + COUNT( * ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 60 + COUNT ( * ) AS col0 FROM tab1
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6235
SELECT DISTINCT * FROM tab0 WHERE ( 23 * CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6235
SELECT DISTINCT * FROM tab0 WHERE ( 23 * CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6236
SELECT ALL COUNT( ( col0 ) ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL COUNT ( ( col0 ) ) / COUNT ( * ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * - col1 col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 WHERE ( NULL ) BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT 91 + 78 FROM tab2
----
169
169
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - 20 - MIN( DISTINCT 71 + col1 ) FROM tab0 WHERE ( 32 ) IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-6240
SELECT - 20 - MIN ( DISTINCT 71 + col1 ) FROM tab0 WHERE ( 32 ) IS NOT NULL
----
-92

query I rowsort
SELECT ALL - col2 + - col2 FROM tab0 WHERE NOT col1 * - 76 IS NULL
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) <> + 60
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 82 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 - col0 col0 FROM tab2
----
2070
4032
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT + COUNT( ALL + 44 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6245
SELECT + COUNT ( ALL + 44 ) FROM tab0
----
3

query I rowsort
SELECT col1 * 81 - - col2 FROM tab1
----
1230
3875
464

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE + col2 >= 37 * col2
----
0

skipif mysql # not compatible
query I rowsort label-6248
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE + col2 >= 37 * col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6249
SELECT ALL * FROM tab1 WHERE CAST( + col2 AS SIGNED ) NOT IN ( col2 - ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6249
SELECT ALL * FROM tab1 WHERE CAST ( + col2 AS INTEGER ) NOT IN ( col2 - ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 - 99 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT COUNT( col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6251
SELECT COUNT ( col0 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL col1 + - 65 AS col0 FROM tab2 AS cor0
----
-14
12
2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col0 ) NOT IN ( - 18 * + 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT + COUNT( * ) FROM tab1 WHERE ( + col0 * + col2 - - 67 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT + COUNT ( * ) FROM tab1 WHERE ( + col0 * + col2 - - 67 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 58 / 23 > ( - col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT COUNT( * ) + - 43 AS col1 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-6257
SELECT COUNT ( * ) + - 43 AS col1 FROM tab1
----
-40

query I rowsort
SELECT col1 + + 69 AS col0 FROM tab1 WHERE - 14 * col1 NOT IN ( col2 )
----
116
74
83

query I rowsort
SELECT col1 * + col2 + + ( + 89 ) AS col0 FROM tab1
----
1433
3285
384

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6260
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT 20 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6260
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT 20 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 94 * col1 + + col1 FROM tab2
----
4845
6365
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT - - COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6262
SELECT - - COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query I rowsort
SELECT ALL - 20 + - col1 FROM tab0 AS cor0
----
-101
-21
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT DISTINCT + MIN( - CAST( 49 AS SIGNED ) ) + 96 AS col2 FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + MIN ( - CAST ( 49 AS INTEGER ) ) + 96 AS col2 FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
47

query I rowsort
SELECT ALL - + 42 * col2 + col1 FROM tab0 AS cor0
----
-1893
-399
-4157

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= + col1 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6269
SELECT DISTINCT CAST( MIN( + col0 ) AS DECIMAL ) FROM tab2 AS cor0 WHERE ( 3 * - CAST( col1 AS SIGNED ) ) BETWEEN + col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT CAST ( MIN ( + col0 ) AS REAL ) FROM tab2 AS cor0 WHERE ( 3 * - CAST ( col1 AS INTEGER ) ) BETWEEN + col1 AND col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL MAX( 56 ) FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL MAX ( 56 ) FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 33 * 86 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT DISTINCT + MAX( DISTINCT - col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + MAX ( DISTINCT - col0 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < - 28
----

query I rowsort
SELECT ALL + col1 + - + 2 FROM tab1
----
12
3
45

query I rowsort
SELECT ALL - 55 - + - col0 FROM tab0
----
-40
32
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6276
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 + - col2 / + col0 BETWEEN ( CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6276
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 + - col2 / + col0 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6277
SELECT CAST( NULL AS DECIMAL ) - + 3 + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT CAST ( NULL AS REAL ) - + 3 + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE 66 * 78 + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6279
SELECT ALL * FROM tab2 WHERE NOT + col2 * ( - 69 ) BETWEEN + col2 * 29 AND ( col0 * + col1 + + CAST( NULL AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6279
SELECT ALL * FROM tab2 WHERE NOT + col2 * ( - 69 ) BETWEEN + col2 * 29 AND ( col0 * + col1 + + CAST ( NULL AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 50 - - 24 AS col1 FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT + COUNT( * ) - - + COUNT( DISTINCT - 12 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6281
SELECT + COUNT ( * ) - - + COUNT ( DISTINCT - 12 ) FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + ( - 42 ) col2 FROM tab1
----
127
133
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6283
SELECT 98 * MIN( 57 ) + - MAX( + CAST( + col1 AS SIGNED ) ) * 51 AS col1 FROM tab0
----
1455

skipif mysql # not compatible
query I rowsort label-6283
SELECT 98 * MIN ( 57 ) + - MAX ( + CAST ( + col1 AS INTEGER ) ) * 51 AS col1 FROM tab0
----
1455

query I rowsort
SELECT + 90 + - 30 * col2 FROM tab0
----
-1320
-210
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT ( + MAX( + 87 ) ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT ( + MAX ( + 87 ) ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT COUNT( * ) + + 40 * MAX( - col1 + col2 ) AS col2 FROM tab0 cor0
----
3923

skipif mysql # not compatible
query I rowsort label-6286
SELECT COUNT ( * ) + + 40 * MAX ( - col1 + col2 ) AS col2 FROM tab0 cor0
----
3923

query I rowsort
SELECT DISTINCT + - col1 + + - 92 AS col2 FROM tab1 AS cor0
----
-106
-139
-97

query I rowsort
SELECT DISTINCT - + ( + 28 ) * col2 + - col2 FROM tab0 AS cor0
----
-1363
-2871
-290

query I rowsort
SELECT ALL col0 * + - 45 AS col0 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT 52 * 47 FROM tab1 WHERE NOT ( - - 30 / - col2 ) IN ( - col2 )
----
2444
2444
2444

onlyif mysql # DIV for integer division: 
query I rowsort label-6291
SELECT DISTINCT col1 DIV - 2 AS col1 FROM tab0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT col1 / - 2 AS col1 FROM tab0
----
-10
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 65 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 65 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 52 FROM tab2
----
51
52
67
52
77
52

query I rowsort
SELECT + - col0 * - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - ( 67 ) ) > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT ALL + 48 DIV + 9 AS col0 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + 48 / + 9 AS col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( - 80 ) IN ( + 70 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT CAST( 46 AS SIGNED ) AS col1 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-6298
SELECT CAST ( 46 AS INTEGER ) AS col1 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - 47 * SUM( DISTINCT - col1 ) FROM tab1
----
3102

skipif mysql # not compatible
query I rowsort label-6299
SELECT - 47 * SUM ( DISTINCT - col1 ) FROM tab1
----
3102

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND ( ( + col0 ) ) / + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT - 13 * - CAST( NULL AS SIGNED ) * - COUNT( * ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT - 13 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 24 + col0 FROM tab2 WHERE NOT 90 * - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6304
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6304
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT 65 * - 3 + + COUNT( * ) AS col2 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-6305
SELECT 65 * - 3 + + COUNT ( * ) AS col2 FROM tab1
----
-192

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 < - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 NOT IN ( - ( + 31 ) + - ( + 4 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL - SUM( - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - SUM ( - + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT + 60 + - 62 DIV - col1 AS col0 FROM tab0 AS cor0
----
122
60
62

skipif mysql # not compatible
query I rowsort label-6310
SELECT + 60 + - 62 / - col1 AS col0 FROM tab0 AS cor0
----
122
60
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - 70 * - - ( + col0 ) * - col0 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT - 68 + + CAST( NULL AS SIGNED ) * 15 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT - 68 + + CAST ( NULL AS INTEGER ) * 15 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + - - col0 AS col2 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT + 59 * - col0 * - 55 + col0 FROM tab0 AS cor0
----
282402
314862
48690

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 47 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - COUNT( * ) + 52 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6316
SELECT - COUNT ( * ) + 52 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 - col0 * + col2 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT 65 + - + col1 + - col2 FROM tab2
----
-52
-60
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT ( - COUNT( * ) ) - - + 48 AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT ( - COUNT ( * ) ) - - + 48 AS col1 FROM tab1
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6321
SELECT + col0 AS col0, CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6321
SELECT + col0 AS col0, CAST ( NULL AS REAL ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT + + col1 * - col1 + - + ( col0 ) + col1 AS col0 FROM tab1 WHERE NOT 55 IS NULL
----
-105
-2253
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT - 34 - 98 + - COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6323
SELECT - 34 - 98 + - COUNT ( * ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 28 * + col1 AS col0 FROM tab1 AS cor0
----
1316
140
392

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL + + COUNT( * ) * 42 AS col2 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + + COUNT ( * ) * 42 AS col2 FROM tab1 AS cor0
----
126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col1, + col2 * - - 63 + - - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6328
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6329
SELECT ALL ( - - CAST( NULL AS DECIMAL ) ) * - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL ( - - CAST ( NULL AS REAL ) ) * - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + - col0 ) + + col2 NOT IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + 39 * 85 * - 67 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-222102

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + 39 * 85 * - 67 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-222102

query I rowsort
SELECT ALL 30 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT + CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6333
SELECT + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT - + 20 * CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1620
-20
-420

skipif mysql # not compatible
query I rowsort label-6334
SELECT - + 20 * CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6335
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 / col0 + col1 + - ( 2 ) * + 85 BETWEEN CAST( col0 AS SIGNED ) / - col0 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6335
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 / col0 + col1 + - ( 2 ) * + 85 BETWEEN CAST ( col0 AS INTEGER ) / - col0 AND NULL )
----

query I rowsort
SELECT 18 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + - - 37 IS NULL
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 NOT IN ( - 68 + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6338
SELECT ALL * FROM tab0 WHERE NOT - CAST( 51 AS DECIMAL ) + + + col2 * + 6 + - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6338
SELECT ALL * FROM tab0 WHERE NOT - CAST ( 51 AS REAL ) + + + col2 * + 6 + - + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 89 / - 55 + + + col1 ) BETWEEN - col2 AND + 34
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 40 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * - - col0 col0 FROM tab1
----
1887
3145
3367

query I rowsort
SELECT ALL - ( + 8 ) FROM tab2
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-6343
SELECT + col1, col2 DIV - col0 - + 77 - + + 48 * - + col1 * + 71 * col0 FROM tab2
----
51
7995091
67
17125123
77
16794547

skipif mysql # not compatible
query II rowsort label-6343
SELECT + col1, col2 / - col0 - + 77 - + + 48 * - + col1 * + 71 * col0 FROM tab2
----
51
7995091
67
17125123
77
16794547

query I rowsort
SELECT DISTINCT - 83 * + + col0 AS col1 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT + col1 * + 49 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL + SUM( ALL 68 ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + SUM ( ALL 68 ) FROM tab0 AS cor0
----
204

query I rowsort
SELECT ALL col0 + 62 + col0 * 1 FROM tab2 AS cor0
----
154
190
212

query II rowsort
SELECT 50 AS col1, 41 - col1 FROM tab1 AS cor0
----
50
-6
50
27
50
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL + SUM( DISTINCT 43 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + SUM ( DISTINCT 43 ) FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT ALL - COUNT( DISTINCT - - col2 ) * - CAST( NULL AS SIGNED ) + + + MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL - COUNT ( DISTINCT - - col2 ) * - CAST ( NULL AS INTEGER ) + + + MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 56 - + - col1 - + - col0 FROM tab0
----
152
154
164

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 98 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 64 ) * - - col2 FROM tab2
----
-1472
-2560
-3712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) * + 63 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 63 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + - 77 FROM tab0 AS cor0
----
-124
-176
-87

query I rowsort
SELECT ALL 65 FROM tab1 AS cor0 WHERE + 38 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT - 36 DIV col0 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT - 36 / col0 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - 2 col1 FROM tab1 AS cor0
----
-53
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL - MAX( + ( + col1 ) ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - MAX ( + ( + col1 ) ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query II rowsort
SELECT DISTINCT - col0 * - + 92 * - - col0 + - col1, 89 + ( - + ( col2 ) ) AS col1 FROM tab1 cor0
----
239278
-7
664695
30
761805
21

query I rowsort
SELECT ALL - 10 - - col1 AS col1 FROM tab1
----
-5
37
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT COUNT( + + col0 ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT COUNT ( + + col0 ) + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col2 - + 0 + + - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT MAX( DISTINCT + - 66 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT MAX ( DISTINCT + - 66 ) FROM tab0
----
-66

query I rowsort
SELECT ALL 12 * col1 * - col0 - - col0 AS col1 FROM tab0
----
-1067
-14565
-21837

query I rowsort
SELECT col2 * + 85 FROM tab1
----
5015
5780
8160

query I rowsort
SELECT ALL + 39 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 19 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT COUNT( * ) * - - MIN( col1 ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT COUNT ( * ) * - - MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 60 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6373
SELECT col2 + + col1 AS col1, 88 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
100
88
128
88
31
88

skipif mysql # not compatible
query II rowsort label-6373
SELECT col2 + + col1 AS col1, 88 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
100
88
128
88
31
88

query II rowsort
SELECT - + 66, + col2 AS col2 FROM tab0 AS cor0
----
-66
10
-66
47
-66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT 0 * MAX( ALL - - col1 ) + - + COUNT( * ) * - 66 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6375
SELECT 0 * MAX ( ALL - - col1 ) + - + COUNT ( * ) * - 66 FROM tab1 AS cor0
----
198

query II rowsort
SELECT DISTINCT - col0 + - col0, - col2 AS col2 FROM tab0
----
-174
-10
-194
-99
-30
-47

query I rowsort
SELECT col2 + + col1 * - col0 * + col1 FROM tab2
----
-119623
-336617
-379416

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 < + + ( - col1 ) / + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT ALL MIN( CAST( col1 AS SIGNED ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL MIN ( CAST ( col1 AS INTEGER ) ) FROM tab1
----
5

query I rowsort
SELECT + 15 + - col1 AS col1 FROM tab2
----
-36
-52
-62

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) IN ( + col0 * - - 41 / col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / - col1 * - col2 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + + + col2 * + + 49 AS col0 FROM tab0 cor0
----
2384
4852
511

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 * col0 ) IN ( - 58 / - ( 28 ), - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( 4, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT ALL - COUNT( * ) * 92 DIV 88 + - 96 AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - COUNT ( * ) * 92 / 88 + - 96 AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT + + 30 * + col1, col0 FROM tab2 AS cor0
----
1530
46
2010
75
2310
64

onlyif mysql # DIV for integer division: 
query II rowsort label-6388
SELECT ALL + - col2 - col1 DIV col0 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-52
15
-99
97

skipif mysql # not compatible
query II rowsort label-6388
SELECT ALL + - col2 - col1 / col0 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-52
15
-99
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( 86 = NULL ) )
----

query I rowsort
SELECT col1 + - 99 FROM tab0 cor0
----
-18
-78
-98

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + + 80 * + ( - + col0 )
----

query I rowsort
SELECT + col1 * - - col2 + col0 + - col0 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT DISTINCT col2 DIV + + col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT col2 / + + col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT ALL 80 DIV - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6394
SELECT ALL 80 / - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - + ( COUNT( * ) ) FROM tab0 WHERE - 67 + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT - + ( COUNT ( * ) ) FROM tab0 WHERE - 67 + col0 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT ALL - CAST( 60 AS SIGNED ) AS col0 FROM tab0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - CAST ( 60 AS INTEGER ) AS col0 FROM tab0
----
-60
-60
-60

query I rowsort
SELECT + 60 * - col1 AS col2 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL <> + + col2 * + ( 87 ) + + col1
----

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL <> + + col2 * + ( 87 ) + + col1
----

query I rowsort
SELECT - - col2 + + - 99 FROM tab2 WHERE NOT ( NULL ) <= + col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT - + ( + COUNT( - col1 ) ) FROM tab2 AS cor0 WHERE NOT col2 + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - + ( + COUNT ( - col1 ) ) FROM tab2 AS cor0 WHERE NOT col2 + col2 IS NULL
----
-3

query I rowsort
SELECT - 80 * - + col0 AS col0 FROM tab0 AS cor0
----
1200
6960
7760

query II rowsort
SELECT DISTINCT - + col2, - col2 AS col1 FROM tab0 WHERE ( 37 IS NULL )
----

query II rowsort
SELECT + col1 AS col2, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6404
SELECT + - 99 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - 99 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ( - MIN( - + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6405
SELECT ( - MIN ( - + col1 ) ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT ALL - + col0 AS col0, ( col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

query I rowsort
SELECT - 71 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71
-71
-71

query II rowsort
SELECT + + col0 AS col1, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL - 11 + + COUNT( * ) - MIN( DISTINCT col1 ) * - 58 AS col0 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - 11 + + COUNT ( * ) - MIN ( DISTINCT col1 ) * - 58 AS col0 FROM tab1 AS cor0
----
282

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN + 81 AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - + col1 + - 58 FROM tab2 WHERE - col0 + - col1 < NULL
----

query II rowsort
SELECT ALL col0, + ( col2 ) FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT ALL 32 * + col0 AS col1, 38 AS col1 FROM tab2
----
1472
38
2048
38
2400
38

query I rowsort
SELECT ALL + 89 * - + col1 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ( + - 16 ) * COUNT( * ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6415
SELECT ( + - 16 ) * COUNT ( * ) FROM tab1
----
-48

query II rowsort
SELECT ALL - col1 AS col2, + col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # DIV for integer division: 
query II rowsort label-6417
SELECT ALL + col2, 19 DIV - col0 * 42 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-6417
SELECT ALL + col2, 19 / - col0 * 42 FROM tab2
----
23
0
40
0
58
0

query III rowsort
SELECT * FROM tab2 WHERE + + 90 IN ( + 7, + col0 + + 59 )
----

query I rowsort
SELECT DISTINCT + 21 * - col2 AS col0 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT ALL - - 76 + + col2 FROM tab2 AS cor0
----
116
134
99

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE - col2 / - 66 <= + col1
----
46
64
75

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL AND NOT + col1 <= + col1 * - 24
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6423
SELECT - 79 DIV + + 38 AS col0, + col2 FROM tab0 AS cor0
----
-2
10
-2
47
-2
99

skipif mysql # not compatible
query II rowsort label-6423
SELECT - 79 / + + 38 AS col0, + col2 FROM tab0 AS cor0
----
-2
10
-2
47
-2
99

query I rowsort
SELECT ALL - col2 / + col0 FROM tab0 AS cor0 WHERE NOT - col2 * + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 35 * - + col2 * + - col0 AS col0, + 10 + - col1 col1 FROM tab2
----
152250
-57
37030
-41
89600
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT DISTINCT + CAST( - - 57 AS SIGNED ) col1 FROM tab1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6426
SELECT DISTINCT + CAST ( - - 57 AS INTEGER ) col1 FROM tab1
----
57

query II rowsort
SELECT DISTINCT - 15 * + - ( - - col1 ) AS col0, 85 AS col1 FROM tab1
----
210
85
705
85
75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL + 87 * + COUNT( * ) AS col2 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + 87 * + COUNT ( * ) AS col2 FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT ALL + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT ALL 69 DIV col1 AS col0 FROM tab0
----
0
3
69

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 69 / col1 AS col0 FROM tab0
----
0
3
69

query I rowsort
SELECT + ( + col0 ) * + 56 FROM tab1
----
2856
4760
5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6433
SELECT DISTINCT - COUNT( * ) 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-6433
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT - COUNT( * ) * + 53 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-6434
SELECT - COUNT ( * ) * + 53 FROM tab2
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - 39 col0 FROM tab1 AS cor0
----
12
46
52

query I rowsort
SELECT ALL 80 + + col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ( + 0 ) + - 2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6439
SELECT + 78, + ( col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6439
SELECT + 78, + ( col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + 35 + col1 - col1 AS col1 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT DISTINCT col1 * - - CAST( - 47 AS SIGNED ) AS col2 FROM tab1
----
-2209
-235
-658

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT col1 * - - CAST ( - 47 AS INTEGER ) AS col2 FROM tab1
----
-2209
-235
-658

query I rowsort
SELECT DISTINCT - ( - + 50 ) AS col2 FROM tab2
----
50

query I rowsort
SELECT ALL + 5 + - + 25 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + + 17 * + + col1
----

query I rowsort
SELECT ( + - 21 ) FROM tab1
----
-21
-21
-21

query I rowsort
SELECT DISTINCT 27 * 71 AS col0 FROM tab2
----
1917

query I rowsort
SELECT DISTINCT + col0 + 63 * - 7 AS col0 FROM tab0
----
-344
-354
-426

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT col2 DIV - + ( + - 11 ) AS col1 FROM tab1
----
5
6
8

skipif mysql # not compatible
query I rowsort label-6448
SELECT col2 / - + ( + - 11 ) AS col1 FROM tab1
----
5
6
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6449
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6449
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT + 61 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < - CAST( NULL AS SIGNED ) / - + col2 * + col1 * - col1
----

skipif mysql # not compatible
query I rowsort label-6450
SELECT + 61 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < - CAST ( NULL AS INTEGER ) / - + col2 * + col1 * - col1
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( col2 * - col0 ) IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT 99 - col1 + + col0 + + + 53 AS col0 FROM tab1
----
189
196
232

query I rowsort
SELECT + + 50 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 23 * 12 FROM tab2, tab1 cor0
----
9 values hashing to 263b63df310c6915c056fad21eb9945d

query I rowsort
SELECT 43 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
43
43
43

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 36 <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 44 col0 FROM tab2
----
111
121
95

query I rowsort
SELECT + col2 + + + col2 FROM tab0
----
198
20
94

query II rowsort
SELECT DISTINCT - col1, col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT - CAST( + + col1 AS SIGNED ) * col0 + - col2 + + + col2 + - col2 + col0 * - + col0 FROM tab1 AS cor0
----
-12626
-3411
-7709

skipif mysql # not compatible
query I rowsort label-6461
SELECT - CAST ( + + col1 AS INTEGER ) * col0 + - col2 + + + col2 + - col2 + col0 * - + col0 FROM tab1 AS cor0
----
-12626
-3411
-7709

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6463
SELECT + COUNT( * ) col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6463
SELECT + COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6464
SELECT DISTINCT col2, col0 * col1 DIV + - col2 AS col2 FROM tab1 AS cor0
----
59
-7
68
-62
96
-7

skipif mysql # not compatible
query II rowsort label-6464
SELECT DISTINCT col2, col0 * col1 / + - col2 AS col2 FROM tab1 AS cor0
----
59
-7
68
-62
96
-7

query I rowsort
SELECT ALL + 99 * - - col0 * - col0 FROM tab2 AS cor0
----
-209484
-405504
-556875

query I rowsort
SELECT + - col0 * + 75 + - col0 FROM tab0 AS cor0
----
-1140
-6612
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * - - col0 col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query II rowsort
SELECT 31 AS col1, + 31 AS col2 FROM tab1 cor0
----
31
31
31
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 < - 12
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 * + + 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 74 / + - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col0 FROM tab2 cor0
----
68
68
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 63 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT MIN( DISTINCT 35 ) FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT - 67 IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-6475
SELECT MIN ( DISTINCT 35 ) FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT - 67 IS NULL
----
35

query I rowsort
SELECT DISTINCT - - ( + 35 ) + + + col2 AS col0 FROM tab2 AS cor0
----
58
75
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
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-6477
SELECT ALL ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT + 78, COUNT( * ) AS col1 FROM tab2 AS cor0
----
78
3

skipif mysql # not compatible
query II rowsort label-6478
SELECT + 78, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
78
3

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 66 AND - ( - + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT - 21 + - COUNT( * ) + - - 71 + COUNT( * ) * COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT - 21 + - COUNT ( * ) + - - 71 + COUNT ( * ) * COUNT ( * ) FROM tab2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT + 82 col0 FROM tab0 WHERE + CAST( - ( - col0 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6481
SELECT + 82 col0 FROM tab0 WHERE + CAST ( - ( - col0 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 93 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col0 ) NOT IN ( + 64, col2, + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 * + + col2 - 37 + ( + col0 ), 8 AS col0 FROM tab2
----
1067
8
2587
8
4388
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT 66 DIV + - col1 + col0 FROM tab1
----
47
72
90

skipif mysql # not compatible
query I rowsort label-6485
SELECT 66 / + - col1 + col0 FROM tab1
----
47
72
90

query I rowsort
SELECT ALL + col2 * + - col1 - + + col0 + 17 AS col0 FROM tab0
----
-179
-280
-3805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT 73 DIV - COUNT( - 33 ) + - 18 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-6487
SELECT 73 / - COUNT ( - 33 ) + - 18 FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT SUM( ALL 42 ) AS col1 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT SUM ( ALL 42 ) AS col1 FROM tab2 AS cor0
----
126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 + - - col2 * - + col1, col0 )
----

query I rowsort
SELECT ALL + - col0 + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 56 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - + 43 AS col0 FROM tab0 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 74 ) col0 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL + COUNT( * ) FROM tab1 WHERE + 35 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + 35 IS NULL
----
0

query I rowsort
SELECT 75 * - ( + ( col0 ) ) FROM tab2
----
-3450
-4800
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL COUNT( DISTINCT - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL COUNT ( DISTINCT - - col1 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col2 / - col2 / - col0 * - 60 + - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11 col1, + col1 + - col1 * - + 19 AS col0 FROM tab0 cor0
----
11
1620
11
20
11
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL + COUNT( * ) * + + 58 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6500
SELECT ALL + COUNT ( * ) * + + 58 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 86 AS col0 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT + 95 DIV + ( + col2 ) AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6502
SELECT + 95 / + ( + col2 ) AS col1 FROM tab2
----
1
2
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6503
SELECT CAST( CAST( + 76 AS DECIMAL ) AS SIGNED ) + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

skipif mysql # not compatible
query I rowsort label-6503
SELECT CAST ( CAST ( + 76 AS REAL ) AS INTEGER ) + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col2 <> 9 * - col0
----
51
67
77

query I rowsort
SELECT DISTINCT - 8 * + + col2 FROM tab2 cor0
----
-184
-320
-464

query I rowsort
SELECT DISTINCT + col1 + + col0 + + col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
2762
7374
8487

query II rowsort
SELECT - + col0 + ( - - col1 ) AS col1, 37 FROM tab0 AS cor0
----
-66
37
-96
37
66
37

query II rowsort
SELECT col2 + - col0 * + - col2 AS col1, 85 AS col1 FROM tab1 cor0
----
4992
85
5074
85
6256
85

query I rowsort
SELECT col2 + 65 * + 10 FROM tab1 AS cor0
----
709
718
746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT DISTINCT - col0 * - - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT - col0 * - - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 45 + + - col1 * + + col0 * col0 * col1 AS col1, 73 AS col0 FROM tab1 AS cor0
----
-180580
73
-18292684
73
-509751
73

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL <> - + 68
----

query I rowsort
SELECT DISTINCT col1 - - 83 AS col1 FROM tab2
----
134
150
160

query I rowsort
SELECT DISTINCT col0 + + 53 AS col1 FROM tab0
----
140
150
68

query I rowsort
SELECT DISTINCT - col2 - - 97 FROM tab2
----
39
57
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT 61 DIV - 16 col0 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6516
SELECT 61 / - 16 col0 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT DISTINCT + col0 DIV - col0 + + col2 DIV col2 + + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + col0 / - col0 + + col2 / col2 + + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + col0, col1, - col1, - + 18 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( 99 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT + ( + MIN( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT + ( + MIN ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) <= 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT + MAX( ( 74 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT + MAX ( ( 74 ) ) FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + COUNT( ALL - ( + - col2 ) ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6523
SELECT + COUNT ( ALL - ( + - col2 ) ) col2 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT - col1 DIV + ( - 55 ) AS col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6525
SELECT - col1 / + ( - 55 ) AS col0 FROM tab2 cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( col1, - ( + 88 ), 22 + - col1 + + 80, - 58, 24 * - + 17 )
----

query I rowsort
SELECT 13 * - - 85 + - 44 FROM tab1 AS cor0
----
1061
1061
1061

query I rowsort
SELECT ALL + col0 * 39 AS col0 FROM tab0 AS cor0
----
3393
3783
585

query I rowsort
SELECT col0 * - + col0 * col2 + - col2 AS col2 FROM tab1
----
-249792
-426334
-563176

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT DISTINCT + col0 DIV - 83 - - - col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-81

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT + col0 / - 83 - - - col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * - - col2 col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6533
SELECT - + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT COUNT( * ) * - MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6534
SELECT COUNT ( * ) * - MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT + COUNT( * ) * + 79 AS col0 FROM tab2 cor0
----
237

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + COUNT ( * ) * + 79 AS col0 FROM tab2 cor0
----
237

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - 66 ) IS NOT NULL )
----

query II rowsort
SELECT ALL - - col1 + + col0 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
108
-87
96
-15
98
-97

query II rowsort
SELECT ALL 50, + col2 AS col0 FROM tab1 AS cor0
----
50
59
50
68
50
96

query II rowsort
SELECT DISTINCT 58 + - - col1 AS col1, + col2 - col1 FROM tab2
----
109
-28
125
-9
135
-37

query I rowsort
SELECT DISTINCT - col0 * + 96 * - 38 - + col0 FROM tab1
----
185997
309995
331877

query I rowsort
SELECT ALL col2 + col1 + - 10 * + col2 + + + col1 FROM tab1
----
-518
-521
-836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT DISTINCT + col2 * - col1 - - CAST( + col0 AS SIGNED ) FROM tab1
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT + col2 * - col1 - - CAST ( + col0 AS INTEGER ) FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT ALL col1 * col2 - + 45 AS col2 FROM tab0
----
165
3762
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT COUNT( + col2 ) + MAX( + + 96 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT COUNT ( + col2 ) + MAX ( + + 96 ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL - COUNT( ALL col0 ) - - - ( - - COUNT( * ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL - COUNT ( ALL col0 ) - - - ( - - COUNT ( * ) ) FROM tab2
----
-6

query I rowsort
SELECT col1 + + + 22 FROM tab0
----
103
23
43

query I rowsort
SELECT 22 * + col0 + 30 * - col0 FROM tab1
----
-408
-680
-728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6548
SELECT DISTINCT - + col1 + + 73 * - - CAST( NULL AS DECIMAL ) * 25 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - + col1 + + 73 * - - CAST ( NULL AS REAL ) * 25 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) = - 42
----

query II rowsort
SELECT - - 63 * - 98 + - - col2 AS col1, 27 - + - col1 + + - 21 * - col0 + col2 FROM tab0 AS cor0
----
-6075
2164
-6127
470
-6164
1885

query II rowsort
SELECT col2 AS col1, - col0 * 97 FROM tab2
----
23
-4462
40
-6208
58
-7275

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT col2 DIV ( + 32 ) AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6553
SELECT col2 / ( + 32 ) AS col1 FROM tab0
----
0
1
3

query I rowsort
SELECT + 16 * - ( + col2 ) AS col1 FROM tab2
----
-368
-640
-928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT 57 DIV SUM( 50 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT 57 / SUM ( 50 ) FROM tab2
----
0

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT 75 + + 74 FROM tab0
----
149
149
149

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 WHERE 24 + + col2 >= NULL
----

query II rowsort
SELECT col0, - 77 * + - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT DISTINCT + col0 * + + ( + ( - 61 ) ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT + col0 * + + ( + ( - 61 ) ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT + 94 + - COUNT( * ) AS col2 FROM tab0 cor0
----
91

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + 94 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT - SUM( ALL + col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6562
SELECT - SUM ( ALL + col1 ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT ALL col2 + - 58 - + - col2 * + col2 FROM tab2 AS cor0
----
1582
3364
494

query II rowsort
SELECT ALL - col1 + + col0 + - + col0 AS col2, + 73 FROM tab1 AS cor0
----
-14
73
-47
73
-5
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT COUNT( * ), + 67 + COUNT( * ) * + - 17 AS col0 FROM tab2
----
3
16

skipif mysql # not compatible
query II rowsort label-6566
SELECT COUNT ( * ), + 67 + COUNT ( * ) * + - 17 AS col0 FROM tab2
----
3
16

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE col0 BETWEEN col2 + - 94 * - col1 AND NULL
----

query II rowsort
SELECT + ( - col1 ) AS col1, col0 / - 84 AS col1 FROM tab2 WHERE + + 36 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT - ( + - COUNT( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6569
SELECT - ( + - COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 19 ) col2 FROM tab2 AS cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT - - 89 * - 83 FROM tab1 cor0
----
-7387
-7387
-7387

query I rowsort
SELECT ALL - - ( + + 80 ) * - - 13 AS col2 FROM tab0 cor0
----
1040
1040
1040

query I rowsort
SELECT + + col0 * - 21 FROM tab2 AS cor0
----
-1344
-1575
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - - COUNT( DISTINCT + 7 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - COUNT ( DISTINCT + 7 ) AS col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - - MIN( col0 ) * + - 70 col1 FROM tab2 AS cor0
----
-3220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6575
SELECT - - MIN ( col0 ) * + - 70 col1 FROM tab2 AS cor0
----
-3220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT COUNT( DISTINCT + ( - - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT COUNT ( DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6578
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( - + col0 ) + - - col2 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6580
SELECT + + CAST( + - col2 AS SIGNED ) AS col1, - CAST( + 68 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-68
-47
-68
-99
-68

skipif mysql # not compatible
query II rowsort label-6580
SELECT + + CAST ( + - col2 AS INTEGER ) AS col1, - CAST ( + 68 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-68
-47
-68
-99
-68

query I rowsort
SELECT ALL + + col1 + + 90 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL - - MAX( DISTINCT + CAST( + col0 AS SIGNED ) ) + + - 20 AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - - MAX ( DISTINCT + CAST ( + col0 AS INTEGER ) ) + + - 20 AS col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL MIN( ALL + 54 ) FROM tab1 WHERE NOT - - 41 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL MIN ( ALL + 54 ) FROM tab1 WHERE NOT - - 41 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ( ( MAX( ALL - 8 ) ) ) FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT ( ( MAX ( ALL - 8 ) ) ) FROM tab2 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND ( 81 )
----

query I rowsort
SELECT - 33 * + col2 * - 4 FROM tab0
----
13068
1320
6204

query I rowsort
SELECT col0 * - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT + 98 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
98
NULL
98
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-6590
SELECT + 98 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
98
NULL
98
NULL
98
NULL

query I rowsort
SELECT DISTINCT + 83 + - col2 FROM tab1 AS cor0
----
-13
15
24

query I rowsort
SELECT 54 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT ALL + 88 - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----
88

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + 88 - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6595
SELECT - 82 DIV - + 37 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6595
SELECT - 82 / - + 37 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + ( 77 ) * - col2 AS col0 FROM tab1 AS cor0
----
-4543
-5236
-7392

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <> 25
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6598
SELECT ALL col0 DIV + - col0 + + col2 + - CAST( - col2 AS SIGNED ) DIV col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL col0 / + - col0 + + col2 + - CAST ( - col2 AS INTEGER ) / col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL 51 + - COUNT( - col1 ) + + + 68 FROM tab1
----
116

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL 51 + - COUNT ( - col1 ) + + + 68 FROM tab1
----
116

query I rowsort
SELECT ( ( + ( - + col2 ) ) ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * + - ( col2 ), col2 + + col0, + 49 + col2, + 21 )
----

query I rowsort
SELECT + ( 21 ) FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT ALL - col1 * + 85 AS col2 FROM tab0 AS cor0
----
-1785
-6885
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - ( 76 ) col2 FROM tab0
----
-304
-304
-304

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 23 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT - COUNT( + 46 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6606
SELECT - COUNT ( + 46 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 11 AS col1, + col1 AS col0 FROM tab2
----
11
51
11
67
11
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6608
SELECT ALL - col0, col1 DIV + 84 col1 FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6608
SELECT ALL - col0, col1 / + 84 col1 FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL - 95 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - 95 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-285

query II rowsort
SELECT DISTINCT + ( - col2 ) AS col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + - COUNT( DISTINCT - - 66 ) AS col2 FROM tab2 WHERE NOT ( - col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + - COUNT ( DISTINCT - - 66 ) AS col2 FROM tab2 WHERE NOT ( - col2 IS NOT NULL )
----
0

query I rowsort
SELECT 98 + col1 AS col0 FROM tab2
----
149
165
175

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 33 ) <= NULL
----

query I rowsort
SELECT ALL ( - col0 ) + col1 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + MAX( DISTINCT - + col0 ) * COUNT( * ) + + 15 AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-6618
SELECT + MAX ( DISTINCT - + col0 ) * COUNT ( * ) + + 15 AS col1 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT DISTINCT + 44 * + col2 AS col1 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL - - COUNT( * ) - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL - - COUNT ( * ) - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6621
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6621
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col0 NOT BETWEEN + col2 AND + + 75 + - col0 * + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + + 56 * - COUNT( * ) FROM tab2 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-6623
SELECT + + 56 * - COUNT ( * ) FROM tab2 cor0
----
-168

query I rowsort
SELECT ALL + col2 + + 43 FROM tab0 AS cor0
----
142
53
90

query II rowsort
SELECT col1 AS col2, 54 FROM tab1 cor0
----
14
54
47
54
5
54

query I rowsort
SELECT ALL + + ( - - 4 ) AS col2 FROM tab0 AS cor0
----
4
4
4

query II rowsort
SELECT DISTINCT 19, + col0 FROM tab0 AS cor0
----
19
15
19
87
19
97

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + ( 83 ) AS col0 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT MAX( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT MAX ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT col1 / + 7 + ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( + + ( 66 ) AS SIGNED ) NOT BETWEEN + + CAST( + + 21 AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-6631
SELECT col1 / + 7 + ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( + + ( 66 ) AS INTEGER ) NOT BETWEEN + + CAST ( + + 21 AS INTEGER ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT - CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL + ( + 19 ) * COUNT( * ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + ( + 19 ) * COUNT ( * ) AS col0 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL COUNT( 25 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6634
SELECT ALL COUNT ( 25 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + col2 + 63 FROM tab0
----
110
162
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT + 1 * - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT + 1 * - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6637
SELECT DISTINCT + 71 + COUNT( * ) DIV - MIN( + ( col2 ) ) AS col0, + 48 FROM tab1 AS cor0
----
71
48

skipif mysql # not compatible
query II rowsort label-6637
SELECT DISTINCT + 71 + COUNT ( * ) / - MIN ( + ( col2 ) ) AS col0, + 48 FROM tab1 AS cor0
----
71
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + - 65 + - 36 col1 FROM tab0 AS cor0
----
-128
-128
-128

query I rowsort
SELECT DISTINCT - 77 + + col2 FROM tab0 AS cor0
----
-30
-67
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT DISTINCT - COUNT( ALL - - col0 ) FROM tab2 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) * + col1 NOT IN ( + col2, - CAST( - col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - COUNT ( ALL - - col0 ) FROM tab2 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) * + col1 NOT IN ( + col2, - CAST ( - col2 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + - 57 + - ( - 19 ) FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT - col2 * + - CAST( 34 AS SIGNED ) AS col0 FROM tab2 WHERE 26 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6642
SELECT - col2 * + - CAST ( 34 AS INTEGER ) AS col0 FROM tab2 WHERE 26 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + - 16 FROM tab1
----
35
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT 67 * - 45 * - + COUNT( * ) col2 FROM tab2
----
9045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6644
SELECT 67 * - 45 * - + COUNT ( * ) col2 FROM tab2
----
9045

query I rowsort
SELECT ALL - col0 + - 12 AS col0 FROM tab0
----
-109
-27
-99

query I rowsort
SELECT + col0 * col2 + - ( col1 ) - - col0 * col0 AS col0 FROM tab1
----
12235
14422
7483

query I rowsort
SELECT DISTINCT + col0 * - ( - col2 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT + + col0 + + col1 * - + 24 AS col2 FROM tab0 AS cor0
----
-1929
-417
73

query I rowsort
SELECT DISTINCT - - 46 + + + col0 AS col2 FROM tab2 AS cor0
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT + COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6650
SELECT + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - ( - 37 ) FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + + 87 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - 18 * + + MIN( + 13 ) FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6653
SELECT - 18 * + + MIN ( + 13 ) FROM tab1 cor0
----
-234

query II rowsort
SELECT ALL + - ( - 11 ) AS col1, col0 AS col0 FROM tab2 AS cor0
----
11
46
11
64
11
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 48 ) col2 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL <= + col1 + + 21
----
0

skipif mysql # not compatible
query I rowsort label-6657
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL <= + col1 + + 21
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6658
SELECT col1 DIV + CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT col1 / + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 97 * 71 AS col2 FROM tab1
----
6887
6887
6887

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL COUNT( * ) * - 39 * COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-1053

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL COUNT ( * ) * - 39 * COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT SUM( - ( + 18 ) ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT SUM ( - ( + 18 ) ) FROM tab1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE ( - 2 ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT CAST( NULL AS SIGNED ) + 28 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT CAST ( NULL AS INTEGER ) + 28 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * col1 col1 FROM tab1
----
4345
484
810

query III rowsort
SELECT * FROM tab1 WHERE NOT 36 >= ( + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT MIN( + col0 ) + - 88 col0 FROM tab1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6668
SELECT MIN ( + col0 ) + - 88 col0 FROM tab1
----
-37

query I rowsort
SELECT - col2 * + 80 FROM tab1
----
-4720
-5440
-7680

query I rowsort
SELECT DISTINCT + 34 * + col1 AS col0 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT ALL - 50 + + col0 * 16 FROM tab2
----
1150
686
974

query I rowsort
SELECT DISTINCT - col2 + + 2 * - 76 FROM tab1
----
-211
-220
-248

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 54 * - col1 <> ( - col0 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + 27 + - col1 = ( + col1 )
----

query I rowsort
SELECT ALL 80 FROM tab1 WHERE col0 IS NOT NULL
----
80
80
80

query I rowsort
SELECT + 20 * ( col0 ) AS col0 FROM tab0
----
1740
1940
300

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT COUNT( ALL + col2 ) AS col2 FROM tab2 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6677
SELECT COUNT ( ALL + col2 ) AS col2 FROM tab2 WHERE NOT col2 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT + col1 * ( - ( col0 ) DIV col0 ) col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6678
SELECT + col1 * ( - ( col0 ) / col0 ) col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col2 * + 85 FROM tab2
----
-1955
-3400
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT 23 - - ( AVG ( ALL + col2 ) + + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6680
SELECT 23 - - ( AVG ( ALL + col2 ) + + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT ALL 55 * + COUNT( * ) col1 FROM tab2
----
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT ALL 55 * + COUNT ( * ) col1 FROM tab2
----
165

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( - col1 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( NULL ) = col0
----
0

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) = col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - ( col2 ) * - ( col1 ) - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 45 FROM tab0 WHERE NOT ( NULL ) >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col1 FROM tab2 WHERE NOT - col0 >= 38 * - 87
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) <> + col2 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT DISTINCT col2 / + col0 + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT col2 / + col0 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT + MAX( 54 ) FROM tab1 WHERE NOT + col1 + ( - 93 ) NOT BETWEEN + ( col0 ) AND ( col2 * col0 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + MAX ( 54 ) FROM tab1 WHERE NOT + col1 + ( - 93 ) NOT BETWEEN + ( col0 ) AND ( col2 * col0 + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT ALL col0 DIV 54 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL col0 / 54 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + 52 BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT SUM( col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-6693
SELECT SUM ( col1 ) FROM tab0 cor0
----
103

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 IN ( - 75 )
----

query I rowsort
SELECT - ( 50 ) AS col1 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + col1 * + col2 - - col2 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT - 38 * 42 - + col0 AS col2 FROM tab0 AS cor0
----
-1611
-1683
-1693

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT 26 - + ( - COUNT( ALL - 53 ) ) AS col2 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6699
SELECT 26 - + ( - COUNT ( ALL - 53 ) ) AS col2 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + COUNT( * ) - 27 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6700
SELECT + COUNT ( * ) - 27 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL + col1 + + 35 FROM tab1 AS cor0
----
40
49
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT DISTINCT 55 + + COUNT( * ) col1 FROM tab0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT DISTINCT 55 + + COUNT ( * ) col1 FROM tab0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL ( 19 ) AS col2 FROM tab1
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT DISTINCT 7 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT 7 / - col0 FROM tab2
----
0

query I rowsort
SELECT ALL 74 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT DISTINCT - + 25 DIV - col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - + 25 / - col0 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 74 IS NOT NULL
----

query I rowsort
SELECT ALL 92 FROM tab2 cor0 WHERE col2 * 16 >= - col2
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - 47 NOT BETWEEN col0 - + col2 / + 60 AND ( + 40 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6712
SELECT DISTINCT ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 97 * - col0 AS col2 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - + MAX( 91 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6714
SELECT - + MAX ( 91 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT - 0 * + 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-6715
SELECT - 0 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL AVG ( ALL - col2 ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL AVG ( ALL - col2 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT COUNT( * ) + COUNT( * ) * 49 AS col0 FROM tab1 WHERE NOT ( + col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6717
SELECT COUNT ( * ) + COUNT ( * ) * 49 AS col0 FROM tab1 WHERE NOT ( + col1 ) <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6718
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6718
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - 95 > col0 - - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col2 ) IN ( 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 27 ) FROM tab0 WHERE NOT 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 77 + 12 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT ( + col0 ) NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0 WHERE col2 <= + col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6724
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE col2 <= + col2
----
3

query I rowsort
SELECT ALL + 34 FROM tab1 AS cor0 WHERE NOT ( col2 - col0 ) IS NULL
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 0 + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 78 - + 67 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 18 FROM tab0 WHERE NOT col0 IN ( col0 * - col0 )
----
-18

query I rowsort
SELECT - col1 * 16 AS col1 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT - - ( + 62 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query II rowsort label-6731
SELECT DISTINCT 13 AS col2, COUNT( * ) FROM tab2 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-6731
SELECT DISTINCT 13 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col2 FROM tab1 cor0 WHERE - 71 IN ( - col2 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col2 FROM tab1 cor0 WHERE - 71 IN ( - col2 * col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + + + col1 col2 FROM tab0 AS cor0
----
108
168
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT - 91 DIV - MAX( DISTINCT - + 29 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6734
SELECT - 91 / - MAX ( DISTINCT - + 29 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT + 23 + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + 23 + COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 53 * col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - col1 < - col0
----

query I rowsort
SELECT ALL + col1 * - - 64 + ( col2 ) AS col1 FROM tab1 cor0
----
3076
379
992

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 * + col2 col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - MIN( DISTINCT - - col0 ) + - COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-6742
SELECT - MIN ( DISTINCT - - col0 ) + - COUNT ( * ) FROM tab1
----
-54

query I rowsort
SELECT col1 * - + col0 + - 9 AS col1 FROM tab2
----
-2355
-4937
-5034

query I rowsort
SELECT DISTINCT 31 - + col1 AS col0 FROM tab0
----
-50
10
30

query I rowsort
SELECT col1 FROM tab2 WHERE ( - + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT + - col2 DIV 55 + - 61 * col1 FROM tab1 AS cor0
----
-2868
-306
-855

skipif mysql # not compatible
query I rowsort label-6746
SELECT + - col2 / 55 + - 61 * col1 FROM tab1 AS cor0
----
-2868
-306
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 6 + col1 col1 FROM tab1 AS cor0 WHERE NOT col2 + - col0 + ( + col0 ) <> - col2 * + col1 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT + ( - - col2 ) DIV ( col2 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6748
SELECT + ( - - col2 ) / ( col2 ) AS col1 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT - CAST( + 7 AS SIGNED ) FROM tab0 cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-6749
SELECT - CAST ( + 7 AS INTEGER ) FROM tab0 cor0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( ( - + 52 ) ) ) <= ( NULL )
----

query I rowsort
SELECT 15 * + + 69 AS col1 FROM tab0 cor0
----
1035
1035
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT - COUNT( * ) * - 80 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-6752
SELECT - COUNT ( * ) * - 80 FROM tab0 AS cor0
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-6753
SELECT + 32 DIV - 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6753
SELECT + 32 / - 89 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ( - COUNT( * ) ) * - - 52 AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6754
SELECT ( - COUNT ( * ) ) * - - 52 AS col1 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-6755
SELECT + 20 AS col1, - col1 DIV col2 col0 FROM tab0
----
20
-1
20
-2
20
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6755
SELECT + 20 AS col1, - col1 / col2 col0 FROM tab0
----
20
-1
20
-2
20
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 74 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28, col0 col2 FROM tab1
----
-28
51
-28
85
-28
91

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE 86 - + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT - MAX( ALL col1 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT - MAX ( ALL col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 84 + + - col0 FROM tab2
----
20
38
9

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT 27 * - + 90 > NULL
----

query I rowsort
SELECT - - col2 + + - 58 + - 65 * - - col2 + + col1 * col1 * + col0 * + col1 FROM tab0 AS cor0
----
-6297
7968549
805009

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + COUNT( * ) + SUM( - + col1 ) AS col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6764
SELECT + COUNT ( * ) + SUM ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + - COUNT( * ) + COUNT( + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT + - COUNT ( * ) + COUNT ( + col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT + COUNT( * ) - + - MIN( - 70 ) AS col1 FROM tab2 AS cor0 WHERE NULL > col1 + - col1 + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT + COUNT ( * ) - + - MIN ( - 70 ) AS col1 FROM tab2 AS cor0 WHERE NULL > col1 + - col1 + col1
----
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-6768
SELECT ALL + 1 - MIN( DISTINCT - col1 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + 1 - MIN ( DISTINCT - col1 ) FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT 47 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6769
SELECT 47 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
44

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT ALL - col1 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - col1 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 81 * - 27 AS col0 FROM tab0 AS cor0
----
-2187

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT DISTINCT - COUNT( * ) * + 85 * - 48 AS col2, COUNT( * ) + + COUNT( * ) * 22 FROM tab0 WHERE ( - - col0 * + + 80 ) IS NOT NULL
----
12240
69

skipif mysql # not compatible
query II rowsort label-6774
SELECT DISTINCT - COUNT ( * ) * + 85 * - 48 AS col2, COUNT ( * ) + + COUNT ( * ) * 22 FROM tab0 WHERE ( - - col0 * + + 80 ) IS NOT NULL
----
12240
69

query I rowsort
SELECT ALL 47 * - + col1 AS col0 FROM tab1
----
-2209
-235
-658

query I rowsort
SELECT AVG ( col1 ) FROM tab1 AS cor0 WHERE NOT + col2 <= + 93 + col1
----
NULL

query I rowsort
SELECT - col2 * col1 + - col0 * - 99 - - 11 AS col2 FROM tab1 cor0
----
3716
5824
8131

query I rowsort
SELECT DISTINCT + 62 * - - ( - col0 ) FROM tab0 AS cor0
----
-5394
-6014
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT ALL 64 DIV + 17 + + - 7 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL 64 / + 17 + + - 7 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6780
SELECT - 32 * + + col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1280
NULL
-1856
NULL
-736
NULL

skipif mysql # not compatible
query II rowsort label-6780
SELECT - 32 * + + col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1280
NULL
-1856
NULL
-736
NULL

query I rowsort
SELECT DISTINCT - col2 * + col2 - + col0 FROM tab0 AS cor0
----
-187
-2224
-9898

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - - col1 IN ( + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / + 90 <> + ( + + col0 ) * - 35 + - col0 * - col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT ALL col0 / + - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL col0 / + - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT DISTINCT COUNT( + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT COUNT ( + + col2 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 67 NOT BETWEEN - col1 + - + ( - + col0 ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 84 * - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 / col0 * - 76, - col0 + col0 + 33 / + col1 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE + + col2 * - 64 * - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + + col2 * - 64 * - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ( + + ( - + COUNT( * ) ) ) * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6790
SELECT ( + + ( - + COUNT ( * ) ) ) * + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL + COUNT( + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + COUNT ( + col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 37 + col0 FROM tab1 AS cor0
----
14
48
54

query I rowsort
SELECT ALL + col1 - - - col0 * - col1 AS col0 FROM tab1 cor0 WHERE NOT 43 * + col2 - col2 <> - 85 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT 78 + + CAST( 7 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-6794
SELECT 78 + + CAST ( 7 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT - COUNT( * ) * - 97 + + - 2 FROM tab0 cor0
----
289

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - COUNT ( * ) * - 97 + + - 2 FROM tab0 cor0
----
289

query I rowsort
SELECT col0 + - 49 + col2 FROM tab2
----
20
55
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT - 45 * + - MAX( DISTINCT - col2 ) col2 FROM tab2
----
-1035

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6797
SELECT DISTINCT - 45 * + - MAX ( DISTINCT - col2 ) col2 FROM tab2
----
-1035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6798
SELECT ALL + col2 / - 47 - - - col1 / + 47 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL + col2 / - 47 - - - col1 / + 47 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + 30 AS col0, col1 FROM tab2 AS cor0
----
-30
51
-30
67
-30
77

query II rowsort
SELECT DISTINCT - - 53 AS col1, 50 FROM tab1 cor0
----
53
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL - MIN( ALL 70 ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - MIN ( ALL 70 ) AS col1 FROM tab0 AS cor0
----
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6803
SELECT ALL + CAST( NULL AS DECIMAL ) / - 4 * - 71 + + 65 + - SUM( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + CAST ( NULL AS REAL ) / - 4 * - 71 + + 65 + - SUM ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT DISTINCT + 34 DIV - - col0 * col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + 34 / - - col0 * col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - + col2 * - + 60 * - 20 + 63 + - 68 + col1 + + - 27 AS col0 FROM tab0 cor0
----
-118831
-12011
-56351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT - CAST( NULL AS SIGNED ) - + MIN( DISTINCT - + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT - CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6807
SELECT 96 * + + MIN( DISTINCT - col2 ) + CAST( NULL AS SIGNED ) + + 88 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT 96 * + + MIN ( DISTINCT - col2 ) + CAST ( NULL AS INTEGER ) + + 88 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * col0 + + - 15 AS col1 FROM tab1
----
2586
7210
8266

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT MIN( ALL + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT MIN ( ALL + - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT 49 * col2 FROM tab0
----
2303
4851
490

onlyif mysql # aggregate syntax: 
query II rowsort label-6811
SELECT COUNT( * ) * COUNT( * ) col2, + COUNT( * ) * - 75 FROM tab0
----
9
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6811
SELECT COUNT ( * ) * COUNT ( * ) col2, + COUNT ( * ) * - 75 FROM tab0
----
9
-225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col2
----

query I rowsort
SELECT ALL col2 * + 78 FROM tab2 cor0
----
1794
3120
4524

query I rowsort
SELECT DISTINCT + + ( col1 ) * - - 41 FROM tab2 AS cor0
----
2091
2747
3157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6815
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, COUNT( ALL 13 ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6815
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, COUNT ( ALL 13 ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL + - 55 + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + - 55 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-58

query II rowsort
SELECT ( - ( + 55 ) ), - 45 AS col1 FROM tab2 cor0
----
-55
-45
-55
-45
-55
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 + + - 27 + + + col2 BETWEEN NULL AND + + col2 / - + col0
----
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 + + - 27 + + + col2 BETWEEN NULL AND + + col2 / - + col0
----
0

query I rowsort
SELECT DISTINCT + + col1 + + 29 + - col0 * - col0 - col0 AS col0 FROM tab0 AS cor0
----
320
7532
9342

query I rowsort
SELECT + col0 + + 90 FROM tab2 AS cor0
----
136
154
165

query I rowsort
SELECT DISTINCT - ( - + 73 ) FROM tab1
----
73

query I rowsort
SELECT 40 + + - ( + 91 ) * - col2 FROM tab0
----
4317
9049
950

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT ( 37 * + + 20 * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 12 * + col0 * + + col2 FROM tab1
----
-58752
-60180
-74256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + + - col2 col1 FROM tab0
----
-198
-220
-3854

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 25 * col0 - - col2, - 88 * - col1 col2 FROM tab1
----
1371
1232
2184
440
2343
4136

query I rowsort
SELECT + - 61 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL COUNT( + col1 ) * - + 63 * - COUNT( * ) FROM tab1 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL COUNT ( + col1 ) * - + 63 * - COUNT ( * ) FROM tab1 AS cor0
----
567

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT - 66 DIV - 83 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - 66 / - 83 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - - ( + SUM( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6831
SELECT - - ( + SUM ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
-195

query II rowsort
SELECT + col1 AS col0, - 68 FROM tab0 AS cor0
----
1
-68
21
-68
81
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6833
SELECT + 14 * + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT + 14 * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6834
SELECT - COUNT( * ), + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0, + MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
-3
NULL
47

skipif mysql # not compatible
query III rowsort label-6834
SELECT - COUNT ( * ), + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, + MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
-3
NULL
47

query II rowsort
SELECT DISTINCT 99 AS col0, - 95 FROM tab0
----
99
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL + COUNT( col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6836
SELECT ALL + COUNT ( col1 ) col0 FROM tab0
----
3

query II rowsort
SELECT ALL - col0 AS col1, col1 - - col0 FROM tab2
----
-46
97
-64
141
-75
142

query II rowsort
SELECT col0 AS col0, - 30 FROM tab0
----
15
-30
87
-30
97
-30

query I rowsort
SELECT col0 * + - col1 * + 63 AS col0 FROM tab1
----
-26775
-269451
-44982

query I rowsort
SELECT - 50 * + col2 + - - 8 AS col0 FROM tab2 AS cor0
----
-1142
-1992
-2892

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT + 58 + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT ( 46 IN ( - - col0, - col0, + + col2 * ( - col0 ) + + ( - col0 ) ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-6841
SELECT + 58 + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT ( 46 IN ( - - col0, - col0, + + col2 * ( - col0 ) + + ( - col0 ) ) ) )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6842
SELECT * FROM tab0 WHERE NOT NULL <= - col0 / - - CAST( NULL AS SIGNED ) * + 68
----

skipif mysql # not compatible
query III rowsort label-6842
SELECT * FROM tab0 WHERE NOT NULL <= - col0 / - - CAST ( NULL AS INTEGER ) * + 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + - - col0 col1 FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - + + 27 * - col1 <> - 6 * - col2 + - col1 + - col1 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + COUNT( * ) + - MAX( DISTINCT 81 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT 81 ) FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6846
SELECT ALL + CAST( NULL AS DECIMAL ) + + - col0 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6846
SELECT ALL + CAST ( NULL AS REAL ) + + - col0 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6847
SELECT DISTINCT + + 88 + SUM( - col2 ) AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-135
NULL

skipif mysql # not compatible
query II rowsort label-6847
SELECT DISTINCT + + 88 + SUM ( - col2 ) AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-135
NULL

query I rowsort
SELECT ALL - ( - ( + + 53 ) ) FROM tab1 AS cor0 WHERE - 55 * + - col1 IS NULL
----

query II rowsort
SELECT + + ( - - 40 ), ( 96 ) AS col0 FROM tab0 AS cor0
----
40
96
40
96
40
96

query I rowsort
SELECT ALL - - col2 * col0 AS col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT ALL - 58, + col1 AS col1 FROM tab1
----
-58
14
-58
47
-58
5

query I rowsort
SELECT DISTINCT + 41 + + + col0 FROM tab0 WHERE NOT NULL <> col0
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL < - - 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT 9 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT 9 / col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT 51 * - 82 + ( COUNT( ALL - + col1 ) ) FROM tab0
----
-4179

skipif mysql # not compatible
query I rowsort label-6856
SELECT 51 * - 82 + ( COUNT ( ALL - + col1 ) ) FROM tab0
----
-4179

query I rowsort
SELECT DISTINCT - col1 * + - col0 * + + col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT + col1 * + 63 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT 17 + + MAX( DISTINCT CAST( + 54 AS SIGNED ) ) col1 FROM tab2
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6859
SELECT 17 + + MAX ( DISTINCT CAST ( + 54 AS INTEGER ) ) col1 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT COUNT( * ) * 15 AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT COUNT ( * ) * 15 AS col1 FROM tab2
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-6861
SELECT DISTINCT - + col0 AS col1, + 9 - + - col0 DIV + col0 FROM tab0 AS cor0
----
-15
10
-87
10
-97
10

skipif mysql # not compatible
query II rowsort label-6861
SELECT DISTINCT - + col0 AS col1, + 9 - + - col0 / + col0 FROM tab0 AS cor0
----
-15
10
-87
10
-97
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT ALL + 36 DIV + COUNT( - ( - col1 ) ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + 36 / + COUNT ( - ( - col1 ) ) FROM tab1
----
12

query I rowsort
SELECT + 94 * col2 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT - col2 * 84 - 83 FROM tab2 AS cor0
----
-2015
-3443
-4955

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 38 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 65 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 45 * - - 67 AS col1 FROM tab1
----
3015
3015
3015

query I rowsort
SELECT ALL + col1 * + 94 AS col2 FROM tab0
----
1974
7614
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT SUM( DISTINCT col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6870
SELECT SUM ( DISTINCT col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT col1 * + col2 * 33 FROM tab1
----
105468
44352
9735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT DISTINCT + COUNT( * ) DIV ( + + ( + + COUNT( * ) ) ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6872
SELECT DISTINCT + COUNT ( * ) / ( + + ( + + COUNT ( * ) ) ) col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 99 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 WHERE NOT NULL < + + col0 + 50
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT DISTINCT 2 AS col2, + COUNT( * ) AS col1 FROM tab2 cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-6876
SELECT DISTINCT 2 AS col2, + COUNT ( * ) AS col1 FROM tab2 cor0
----
2
3

query II rowsort
SELECT + col0 * + col2, col2 * + col2 AS col1 FROM tab1
----
4896
9216
5015
3481
6188
4624

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col1 + - 96 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + + 22 * + + col0 FROM tab0 AS cor0
----
1935
2135
411

query I rowsort
SELECT ( col2 ) + + 6 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT 75 + - MAX( - + col1 ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT 75 + - MAX ( - + col1 ) FROM tab2 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6882
SELECT ALL - + CAST( - - 84 AS SIGNED ) AS col1, + 83 FROM tab1 AS cor0
----
-84
83
-84
83
-84
83

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL - + CAST ( - - 84 AS INTEGER ) AS col1, + 83 FROM tab1 AS cor0
----
-84
83
-84
83
-84
83

query I rowsort
SELECT ALL - col0 + col0 + col2 * + + 31 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT ( + col1 ) + - ( + col2 ) AS col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - col0 + + col2 + col0 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL col0 * + + 83 FROM tab2
----
3818
5312
6225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6887
SELECT + + 17 AS col2, + 43 col1 FROM tab1 WHERE + - CAST( + 35 AS SIGNED ) + 52 + - + col1 IS NOT NULL
----
17
43
17
43
17
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6887
SELECT + + 17 AS col2, + 43 col1 FROM tab1 WHERE + - CAST ( + 35 AS INTEGER ) + 52 + - + col1 IS NOT NULL
----
17
43
17
43
17
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT COUNT( * ) * - - MIN( DISTINCT - 78 ) AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT COUNT ( * ) * - - MIN ( DISTINCT - 78 ) AS col1 FROM tab1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL - 25 * + COUNT( * ) * + - 20 FROM tab0 AS cor0
----
1500

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL - 25 * + COUNT ( * ) * + - 20 FROM tab0 AS cor0
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - 20 - + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6890
SELECT - 20 - + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT - col2 - - 82 - + col1 AS col1 FROM tab1 AS cor0
----
-28
-33
18

query I rowsort
SELECT DISTINCT - + col2 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 + - ( - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 + - ( - col2 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + col0 * + - col1 / + col0 + + col2
----

query I rowsort
SELECT ALL - - col1 * - 87 AS col0 FROM tab0 AS cor0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT DISTINCT - MAX( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT + 66 DIV + - 22 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6898
SELECT + 66 / + - 22 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - - col2 * - 7 AS col2 FROM tab2 AS cor0
----
-161
-280
-406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT ALL - - MAX( - col2 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - - MAX ( - col2 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-19

query II rowsort
SELECT col0 AS col0, col1 * 68 FROM tab0 AS cor0
----
15
5508
87
1428
97
68

query I rowsort
SELECT 63 * + ( - + 88 ) FROM tab2 AS cor0
----
-5544
-5544
-5544

query I rowsort
SELECT col0 / - col1 + 96 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT ALL col0 DIV - 32 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL col0 / - 32 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT 96 * + col2 * + col1 FROM tab1 WHERE NOT ( NOT + ( + 17 ) NOT IN ( + + col2 * col0, col0 + col1, + col1 ) )
----
129024
28320
306816

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT + COUNT( * ) * - 85 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + COUNT ( * ) * - 85 FROM tab2
----
-255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL - MAX( ALL + 96 ) DIV - COUNT( * ) - + COUNT( * ) + + ( COUNT( * ) ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - MAX ( ALL + 96 ) / - COUNT ( * ) - + COUNT ( * ) + + ( COUNT ( * ) ) AS col0 FROM tab2
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 13 col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL <> + 46 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> 58 + + col2
----

query I rowsort
SELECT + 76 * + - 52 AS col1 FROM tab0
----
-3952
-3952
-3952

query I rowsort
SELECT - 71 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + 72 FROM tab1 cor0 WHERE NOT ( NULL IS NULL ) OR NOT NULL IS NOT NULL
----
72

query I rowsort
SELECT + col1 * - 40 * + col2 AS col0 FROM tab0 AS cor0
----
-152280
-3960
-8400

query I rowsort
SELECT DISTINCT - col2 * - 77 AS col1 FROM tab0 AS cor0
----
3619
7623
770

query I rowsort
SELECT DISTINCT 30 * + + col0 + - 12 FROM tab2 AS cor0
----
1368
1908
2238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT 38 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT 38 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT ALL - MAX( ALL + + CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6918
SELECT ALL - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL MIN( ALL ( - 1 ) ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL MIN ( ALL ( - 1 ) ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL MAX( DISTINCT + - 38 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL MAX ( DISTINCT + - 38 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

query I rowsort
SELECT + col1 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6922
SELECT ALL * FROM tab0 cor0 WHERE - col2 BETWEEN NULL AND - col2 * - 5 * + CAST( 90 AS SIGNED ) * + - 78
----

skipif mysql # not compatible
query III rowsort label-6922
SELECT ALL * FROM tab0 cor0 WHERE - col2 BETWEEN NULL AND - col2 * - 5 * + CAST ( 90 AS INTEGER ) * + - 78
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - 49 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + MAX( ALL + 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6924
SELECT + MAX ( ALL + 68 ) FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + 69 + 36 + + col2 AS col0 FROM tab1 AS cor0
----
164
173
201

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col0 ) = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + + col2 IS NOT NULL )
----

query II rowsort
SELECT + 66, - 39 * ( - 92 ) AS col1 FROM tab2 AS cor0
----
66
3588
66
3588
66
3588

query II rowsort
SELECT 30 + col1 * + col2 * - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-25045
85
-290806
91
-68514
51

query I rowsort
SELECT ALL 59 + + col0 AS col2 FROM tab1 WHERE NOT - - 87 IS NULL
----
110
144
150

query I rowsort
SELECT - 48 - + col2 FROM tab2
----
-106
-71
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT + col0 * - col1 + + 21 * col1 DIV - - col1 AS col2 FROM tab0
----
-1194
-1806
-76

skipif mysql # not compatible
query I rowsort label-6933
SELECT + col0 * - col1 + + 21 * col1 / - - col1 AS col2 FROM tab0
----
-1194
-1806
-76

query I rowsort
SELECT - col1 * col1 + col0 AS col0 FROM tab2
----
-2555
-4414
-5865

query II rowsort
SELECT ALL col0, col2 * + - 12 FROM tab1
----
51
-1152
85
-708
91
-816

query I rowsort
SELECT - 47 + - col1 - col2 FROM tab1
----
-111
-157
-162

query II rowsort
SELECT DISTINCT 27, + ( + + col1 ) * col2 + + - col0 AS col2 FROM tab0 AS cor0
----
27
123
27
2
27
3792

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT + - COUNT( * ), + 84 + - 67 AS col2 FROM tab0 AS cor0 WHERE NULL >= - ( col2 )
----
0
17

skipif mysql # not compatible
query II rowsort label-6938
SELECT + - COUNT ( * ), + 84 + - 67 AS col2 FROM tab0 AS cor0 WHERE NULL >= - ( col2 )
----
0
17

query I rowsort
SELECT ALL + + col0 - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT + 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6941
SELECT ALL + CAST( col1 AS SIGNED ) AS col0, - col1 FROM tab1 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6941
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0, - col1 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6942
SELECT ALL - CAST( NULL AS SIGNED ), 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 69fd1ead82eed2591ef787e212541d98

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL - CAST ( NULL AS INTEGER ), 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 69fd1ead82eed2591ef787e212541d98

query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE - 28 + + + col2 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL - COUNT( DISTINCT col1 ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6944
SELECT ALL - COUNT ( DISTINCT col1 ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 99 BETWEEN NULL AND 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ) AS col1, - ( + col1 ) * + col0 col2 FROM tab1 AS cor0
----
-14
-714
-47
-4277
-5
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
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-6947
SELECT ALL + + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + SUM( ALL + + 83 ) AS col0 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6948
SELECT + SUM ( ALL + + 83 ) AS col0 FROM tab1 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT + - 12 + + col0 AS col2 FROM tab0 WHERE NOT - - 64 NOT BETWEEN CAST( NULL AS SIGNED ) / + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6949
SELECT + - 12 + + col0 AS col2 FROM tab0 WHERE NOT - - 64 NOT BETWEEN CAST ( NULL AS INTEGER ) / + col1 AND NULL
----

query I rowsort
SELECT + 86 * - - col1 FROM tab2
----
4386
5762
6622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, col0 col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT - 52 * - - col2 AS col2 FROM tab0
----
-2444
-5148
-520

query II rowsort
SELECT ALL + 56, + col2 * - col2 - + col2 * + ( - 19 ) + - col1 AS col2 FROM tab2
----
56
-143
56
-2329
56
-917

query II rowsort
SELECT col1 AS col1, - 13 + + col0 FROM tab2
----
51
33
67
62
77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL MIN( - col2 ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL MIN ( - col2 ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL + 30 + - COUNT( * ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + 30 + - COUNT ( * ) FROM tab2 cor0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - + col0 AND + 18
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6958
SELECT ALL - 38 AS col2, col2 DIV - col1 FROM tab2 AS cor0
----
-38
0
-38
0
-38
0

skipif mysql # not compatible
query II rowsort label-6958
SELECT ALL - 38 AS col2, col2 / - col1 FROM tab2 AS cor0
----
-38
0
-38
0
-38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT DISTINCT COUNT( * ) + - 29 AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT COUNT ( * ) + - 29 AS col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL col1 * col0 + - 59 AS col2 FROM tab2
----
2287
4869
4966

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL + 46 + + MAX( col0 ) * - 37 AS col1 FROM tab1
----
-3321

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + 46 + + MAX ( col0 ) * - 37 AS col1 FROM tab1
----
-3321

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 99 <> NULL
----

query I rowsort
SELECT - 57 * + col2 + + 38 AS col0 FROM tab1 AS cor0
----
-3325
-3838
-5434

query I rowsort
SELECT DISTINCT - - 69 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( col0, col2 )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE - 77 + - 86 > ( + - 63 )
----

query I rowsort
SELECT ALL ( - + col1 ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * + + col1 + - - col0 AS col2 FROM tab2
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 56 + + 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * col1 - - col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) <= + 13
----

query I rowsort
SELECT - + col0 - + + ( 42 ) * + 42 FROM tab0 AS cor0
----
-1779
-1851
-1861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL + ( + col1 ) + + CAST( + 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
117
37
57

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + ( + col1 ) + + CAST ( + 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
117
37
57

query II rowsort
SELECT ALL + col1, - col2 + - 38 FROM tab2
----
51
-61
67
-96
77
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6974
SELECT DISTINCT + CAST( - 33 AS SIGNED ) * + - 3 * ( - MIN( 37 ) ) DIV + + COUNT( * ) + + + ( + + COUNT( * ) ) AS col2 FROM tab1
----
-1218

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) * + - 3 * ( - MIN ( 37 ) ) / + + COUNT ( * ) + + + ( + + COUNT ( * ) ) AS col2 FROM tab1
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT + SUM( + + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6975
SELECT + SUM ( + + col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT + SUM( ALL - 95 ) AS col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6976
SELECT + SUM ( ALL - 95 ) AS col1 FROM tab0 AS cor0
----
-285

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6977
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NOT - 41 / - col0 + 8 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NOT - 41 / - col0 + 8 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - + COUNT( * ), - 0 AS col2 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-6978
SELECT - + COUNT ( * ), - 0 AS col2 FROM tab1 AS cor0
----
-3
0

query II rowsort
SELECT DISTINCT + - col0, - col2 AS col1 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + col0 * + ( 46 ) AS col2 FROM tab2
----
2116
2944
3450

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 + col2 * - 25 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT 33 * - + SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
-6567

skipif mysql # not compatible
query I rowsort label-6982
SELECT 33 * - + SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
-6567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT DISTINCT CAST( - 0 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT CAST ( - 0 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( 65 * 34, col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT SUM( + + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6985
SELECT SUM ( + + col0 ) AS col2 FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL - col0 * + 68 * - - col1 AS col1, + col2 + + 58 FROM tab0 AS cor0
----
-124236
68
-6596
157
-82620
105

query II rowsort
SELECT - - 39 + + col0 AS col2, col1 AS col0 FROM tab0 AS cor0
----
126
21
136
1
54
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT ALL + 71 DIV + 29 + + - 29 col2 FROM tab1 cor0
----
-27
-27
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6988
SELECT ALL + 71 / + 29 + + - 29 col2 FROM tab1 cor0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT ALL col1 DIV - + 86 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL col1 / - + 86 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT DISTINCT 18 * - CAST( col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-106722
-46818
-80802

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT 18 * - CAST ( col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-106722
-46818
-80802

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6991
SELECT + - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL - 9 * - MIN( + 61 ) * + 85 col2 FROM tab1 cor0
----
46665

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6992
SELECT ALL - 9 * - MIN ( + 61 ) * + 85 col2 FROM tab1 cor0
----
46665

query I rowsort
SELECT + 93 * - col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6994
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * - ( - - col1 ) = + col2 - + col1 ) OR CAST( NULL AS SIGNED ) NOT IN ( + - col1 )
----

skipif mysql # not compatible
query III rowsort label-6994
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * - ( - - col1 ) = + col2 - + col1 ) OR CAST ( NULL AS INTEGER ) NOT IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 * - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 * - col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 56 - - - col0 + 40 FROM tab1
----
11
45
5

query I rowsort
SELECT ALL - col2 - + - 51 AS col2 FROM tab0
----
-48
4
41

query I rowsort
SELECT ALL 54 * - col2 AS col1 FROM tab2
----
-1242
-2160
-3132

query II rowsort
SELECT DISTINCT - col0 - + col0 AS col0, col2 * col0 FROM tab2
----
-128
2560
-150
4350
-92
1058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT ALL - col2 - CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - col2 - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + col2 + 19 AS col1 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT DISTINCT COUNT( * ) DIV COUNT( DISTINCT col1 ) * - COUNT( * ) + - + MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT COUNT ( * ) / COUNT ( DISTINCT col1 ) * - COUNT ( * ) + - + MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT 40 + COUNT( - col2 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7003
SELECT 40 + COUNT ( - col2 ) FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL - CAST( NULL AS SIGNED ) - 17 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - CAST ( NULL AS INTEGER ) - 17 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT MAX( DISTINCT + 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-7006
SELECT MAX ( DISTINCT + 49 ) FROM tab0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT - COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7007
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE + col1 / + - col0 + ( - col2 ) / + + col2 - 13 + + + 57 = + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 47 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + SUM( col1 ) + + COUNT( * ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7011
SELECT + SUM ( col1 ) + + COUNT ( * ) AS col1 FROM tab1
----
69

query III rowsort
SELECT * FROM tab0 WHERE NOT + 84 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7013
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND col0 * - CAST( NULL AS SIGNED ) * + + col1
----

skipif mysql # not compatible
query III rowsort label-7013
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND col0 * - CAST ( NULL AS INTEGER ) * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + COUNT( * ) + + 47 * + 43 FROM tab2
----
2024

skipif mysql # not compatible
query I rowsort label-7014
SELECT + COUNT ( * ) + + 47 * + 43 FROM tab2
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT 13 + + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-7015
SELECT 13 + + COUNT ( * ) FROM tab1
----
16

query II rowsort
SELECT ALL col2 AS col1, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7017
SELECT DISTINCT + col1 AS col0, 55 + - 43 DIV - col2 AS col1 FROM tab1
----
14
55
47
55
5
55

skipif mysql # not compatible
query II rowsort label-7017
SELECT DISTINCT + col1 AS col0, 55 + - 43 / - col2 AS col1 FROM tab1
----
14
55
47
55
5
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 89, col0 * + - 14 col0 FROM tab0 AS cor0
----
89
-1218
89
-1358
89
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT ALL - 3 + - col2 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1176
-3083
-3889

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - 3 + - col2 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1176
-3083
-3889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + col2 col1 FROM tab0 AS cor0
----
110
162
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT + MAX( DISTINCT - - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT ALL + col2 / + 45 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT 84 + + COUNT( 53 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7023
SELECT 84 + + COUNT ( 53 ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + COUNT( * ) + + 88 AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7024
SELECT + COUNT ( * ) + + 88 AS col1 FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - ( col0 ) * - 78 - + + col2 + col2 - - - col0 * + 84 * col0 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT - 82 = NULL
----

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT - 82 = NULL
----

query II rowsort
SELECT + 26, + col0 AS col2 FROM tab1
----
26
51
26
85
26
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7028
SELECT ALL * FROM tab0 WHERE 5 / + col0 + + col0 + + ( 4 ) * + col0 BETWEEN CAST( NULL AS SIGNED ) + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7028
SELECT ALL * FROM tab0 WHERE 5 / + col0 + + col0 + + ( 4 ) * + col0 BETWEEN CAST ( NULL AS INTEGER ) + + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT ALL 51 DIV - col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL 51 / - col2 FROM tab0
----
-1
-5
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7031
SELECT - + col2 AS col2, col2 + - - CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
-10
-83
-47
-46
-99
6

skipif mysql # not compatible
query II rowsort label-7031
SELECT - + col2 AS col2, col2 + - - CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
-10
-83
-47
-46
-99
6

query I rowsort
SELECT ALL + - ( + 28 ) FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - 12 * - COUNT( * ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7033
SELECT - 12 * - COUNT ( * ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL - 97 FROM tab0 WHERE NOT + + 49 BETWEEN + col1 AND - col2
----
-97
-97
-97

query I rowsort
SELECT - 28 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # DIV for integer division: 
query II rowsort label-7036
SELECT DISTINCT + col1 DIV 94, - 84 AS col1 FROM tab0
----
0
-84

skipif mysql # not compatible
query II rowsort label-7036
SELECT DISTINCT + col1 / 94, - 84 AS col1 FROM tab0
----
0
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL - MIN( + col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7037
SELECT ALL - MIN ( + col1 ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL + MIN( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + MIN ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - + col1 * col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL COUNT( ALL - 27 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL COUNT ( ALL - 27 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * col2 + - ( - col1 ) FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7042
SELECT DISTINCT - COUNT( * ), + CAST( NULL AS DECIMAL ) * - MIN( - - 4 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7042
SELECT DISTINCT - COUNT ( * ), + CAST ( NULL AS REAL ) * - MIN ( - - 4 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0
NULL

query I rowsort
SELECT DISTINCT + + col2 + 64 + col1 FROM tab0 AS cor0
----
164
192
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 76 col0 FROM tab1
----
1064
3572
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 18 col2, 31 FROM tab1
----
18
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT CAST( NULL AS SIGNED ) + + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT CAST ( NULL AS INTEGER ) + + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT - 8 + - COUNT( * ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 8 + - COUNT ( * ) FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - + MIN( ALL - 43 ) AS col0 FROM tab0 AS cor0 WHERE col2 > col1
----
43

skipif mysql # not compatible
query I rowsort label-7049
SELECT - + MIN ( ALL - 43 ) AS col0 FROM tab0 AS cor0 WHERE col2 > col1
----
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + col2 * - 30 < NULL
----

query I rowsort
SELECT DISTINCT 42 * - + col2 FROM tab2
----
-1680
-2436
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT DISTINCT col2 - + CAST( NULL AS SIGNED ) + + col2 * + col2 * - col0 * + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT col2 - + CAST ( NULL AS INTEGER ) + + col2 * + col2 * - col0 * + - col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL + 31 + + COUNT( * ) * 74 AS col2 FROM tab1 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL + 31 + + COUNT ( * ) * 74 AS col2 FROM tab1 AS cor0
----
253

query I rowsort
SELECT + 4 + + col2 * - - col0 FROM tab1 AS cor0 WHERE col1 * + col1 + + - col1 = - col1
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7055
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 AS col2, col0 DIV col1 AS col0 FROM tab0
----
NULL
0
NULL
4
NULL
97

skipif mysql # not compatible
query II rowsort label-7055
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 AS col2, col0 / col1 AS col0 FROM tab0
----
NULL
0
NULL
4
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT MAX( DISTINCT + col2 ) AS col1, 32 FROM tab0
----
99
32

skipif mysql # not compatible
query II rowsort label-7056
SELECT MAX ( DISTINCT + col2 ) AS col1, 32 FROM tab0
----
99
32

query I rowsort
SELECT ALL - 20 * - col1 * 86 FROM tab2
----
115240
132440
87720

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 IN ( - col1, 83, + 28 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + 52 * SUM( ALL + + 70 ) AS col0 FROM tab2 cor0
----
10920

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + 52 * SUM ( ALL + + 70 ) AS col0 FROM tab2 cor0
----
10920

query I rowsort
SELECT + - col2 * - col0 * 36 FROM tab0 AS cor0
----
25380
31320
345708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + 23 * + - col1 * 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT - COUNT( * ) + + - 14 AS col2 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - COUNT ( * ) + + - 14 AS col2 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT DISTINCT - COUNT( * ) col1, + ( + 72 ) FROM tab2 cor0
----
-3
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7064
SELECT DISTINCT - COUNT ( * ) col1, + ( + 72 ) FROM tab2 cor0
----
-3
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - - col0 IS NOT NULL )
----

query I rowsort
SELECT - 2 + - + col0 FROM tab0 AS cor0 WHERE ( + 79 <= + col0 )
----
-89
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( NOT ( NULL ) IS NULL ) )
----

query I rowsort
SELECT 3 + + + col1 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( - 64 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( - 64 ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 * 8 + + col0 FROM tab1
----
-285
-61
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 > - + col1 * + - 92
----
97
1
99

query I rowsort
SELECT DISTINCT ( - - 52 ) FROM tab1
----
52

query I rowsort
SELECT col1 + - 53 AS col1 FROM tab2
----
-2
14
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7074
SELECT CAST( + col0 AS SIGNED ) * + + CAST( NULL AS SIGNED ) + - col2 + col1 AS col1, + 63 * + + col0 * - 61 * col0 FROM tab1
----
NULL
-27765675
NULL
-31823883
NULL
-9995643

skipif mysql # not compatible
query II rowsort label-7074
SELECT CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + - col2 + col1 AS col1, + 63 * + + col0 * - 61 * col0 FROM tab1
----
NULL
-27765675
NULL
-31823883
NULL
-9995643

query I rowsort
SELECT - 47 * - + col1 AS col0 FROM tab1
----
2209
235
658

query II rowsort
SELECT DISTINCT ( col2 ), + 50 FROM tab2
----
23
50
40
50
58
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT ALL col0 + 43 DIV col0 * + col0 - - + 61 + - - col0 * + col2 * col0 FROM tab0 AS cor0
----
10681
75838
931649

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL col0 + 43 / col0 * + col0 - - + 61 + - - col0 * + col2 * col0 FROM tab0 AS cor0
----
10681
75838
931649

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT - COUNT( * ) - + + 37 AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-7078
SELECT - COUNT ( * ) - + + 37 AS col1 FROM tab2
----
-40

query I rowsort
SELECT col0 FROM tab1 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7081
SELECT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7081
SELECT - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT - - COUNT( * ) + - 60 AS col1 FROM tab2 AS cor0 WHERE - col2 * + - 80 BETWEEN + col1 - + col0 AND - col1
----
-60

skipif mysql # not compatible
query I rowsort label-7082
SELECT - - COUNT ( * ) + - 60 AS col1 FROM tab2 AS cor0 WHERE - col2 * + - 80 BETWEEN + col1 - + col0 AND - col1
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab2 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL + COUNT( col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7084
SELECT ALL + COUNT ( col2 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 17 FROM tab2 AS cor0 WHERE NOT - 71 * + 7 IS NULL
----
17

query I rowsort
SELECT + 52 FROM tab1 WHERE NOT + - col1 * + col1 IS NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT + 33, COUNT( * ) AS col1 FROM tab0
----
33
3

skipif mysql # not compatible
query II rowsort label-7087
SELECT + 33, COUNT ( * ) AS col1 FROM tab0
----
33
3

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 17 + - + 28 IS NULL
----

query II rowsort
SELECT ALL col2 AS col0, - 21 AS col1 FROM tab2
----
23
-21
40
-21
58
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7091
SELECT COUNT( * ) AS col0, 57 * - COUNT( * ) FROM tab1 AS cor0
----
3
-171

skipif mysql # not compatible
query II rowsort label-7091
SELECT COUNT ( * ) AS col0, 57 * - COUNT ( * ) FROM tab1 AS cor0
----
3
-171

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ) AS col0, + col1 * + - col0 * + 30 + + - col1 col2 FROM tab0 AS cor0
----
1
-2911
21
-54831
81
-36531

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2 - col1
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2 - col1
----
0

query I rowsort
SELECT ALL 15 + - + col0 FROM tab2 AS cor0 WHERE col1 >= ( 35 )
----
-31
-49
-60

query I rowsort
SELECT DISTINCT + col1 * + 51 + + col1 FROM tab1 AS cor0
----
2444
260
728

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT DISTINCT col2 * 85 DIV + col1 AS col0 FROM tab1 AS cor0
----
1003
122
582

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT col2 * 85 / + col1 AS col0 FROM tab1 AS cor0
----
1003
122
582

query I rowsort
SELECT ALL + col2 * + - col0 + col1 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT - col1 * - 77 + - + col2 FROM tab2 AS cor0
----
3904
5101
5889

query II rowsort
SELECT ALL + 0 + - col1 AS col2, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 89
----

query II rowsort
SELECT + ( + + col0 ) AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT - COUNT( * ) + 92 AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - COUNT ( * ) + 92 AS col2 FROM tab0
----
89

query III rowsort
SELECT * FROM tab0 WHERE 90 * + 95 * col0 BETWEEN - ( - - col1 ) AND NULL
----

query I rowsort
SELECT col1 + + col1 - - 59 FROM tab0
----
101
221
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7107
SELECT DISTINCT + 41 + - + MIN( 61 ), + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-7107
SELECT DISTINCT + 41 + - + MIN ( 61 ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-20
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 * + 81 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT ALL col0 DIV - 78 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL col0 / - 78 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 86 * - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 32 AND ( NULL )
----

query I rowsort
SELECT ( 20 ) FROM tab1 WHERE NULL BETWEEN + col0 AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 99 * 93 NOT IN ( col0 )
----

query I rowsort
SELECT - 63 * col1 - - col2 FROM tab2
----
-3190
-4163
-4811

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT col0 DIV ( col2 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7115
SELECT col0 / ( col2 ) FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT - ( col1 ) DIV col0 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - ( col1 ) / col0 AS col1 FROM tab2
----
-1
0

query I rowsort
SELECT ALL + col2 * col1 - 55 * 54 FROM tab1
----
-1626
-2675
226

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) * col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - col1 * + 58 IN ( 77 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( + col2 * 28 )
----

query I rowsort
SELECT 71 + col2 FROM tab2 WHERE NOT col0 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT col2 * + col1 + CAST( + col1 + col0 AS SIGNED ) AS col0 FROM tab2
----
1270
3221
4028

skipif mysql # not compatible
query I rowsort label-7122
SELECT col2 * + col1 + CAST ( + col1 + col0 AS INTEGER ) AS col0 FROM tab2
----
1270
3221
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT MAX( ALL + ( col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7123
SELECT MAX ( ALL + ( col1 ) ) FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL 88 + ( COUNT( * ) ) * + 75 AS col2 FROM tab1 WHERE NOT col1 < ( + 65 / 75 )
----
313

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL 88 + ( COUNT ( * ) ) * + 75 AS col2 FROM tab1 WHERE NOT col1 < ( + 65 / 75 )
----
313

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( 81 ) AS col0 FROM tab1
----
81
81
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( - col0 * col0 - 55 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND 79 * 92
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 85 > NULL
----

query I rowsort
SELECT DISTINCT 92 + + col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE 54 NOT BETWEEN NULL AND col1
----
14
47
5

query I rowsort
SELECT DISTINCT col1 * 73 FROM tab1 cor0
----
1022
3431
365

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT COUNT( - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT COUNT ( - col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 5 * - 36 + 28 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * + col2 + + 12 col1 FROM tab0 cor0
----
3020
6348
652

query I rowsort
SELECT 93 * 42 AS col2 FROM tab1 AS cor0
----
3906
3906
3906

query I rowsort
SELECT 90 FROM tab1 AS cor0 WHERE NOT ( + col2 ) * col1 IS NULL
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT DISTINCT col1 + 16 DIV 14 AS col2 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT col1 + 16 / 14 AS col2 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT 41 * COUNT( * ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-7140
SELECT 41 * COUNT ( * ) FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7141
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 99 + + col2 AND NULL
----

query I rowsort
SELECT + 68 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + 36 * - col2 FROM tab2 cor0
----
1440
2088
828

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + 96 + + MAX( DISTINCT + ( col2 ) ) FROM tab2 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-7145
SELECT + 96 + + MAX ( DISTINCT + ( col2 ) ) FROM tab2 AS cor0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT MIN( 43 ) + + 10 AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7146
SELECT MIN ( 43 ) + + 10 AS col1 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE col1 * 12 + col0 NOT IN ( 28 )
----
3

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * 12 + col0 NOT IN ( 28 )
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 57 + col1 NOT BETWEEN ( NULL ) AND - ( 1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT ( - col0 ) DIV 81 + col0 col1 FROM tab0
----
15
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7150
SELECT ( - col0 ) / 81 + col0 col1 FROM tab0
----
15
86
96

query I rowsort
SELECT + col0 * + 10 + + 74 AS col0 FROM tab0
----
1044
224
944

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL COUNT( * ) * + MIN( ALL - col1 ) - 33 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL COUNT ( * ) * + MIN ( ALL - col1 ) - 33 FROM tab1
----
-174

query III rowsort
SELECT * FROM tab2 WHERE col1 / col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT ALL ( + + ( - col1 ) ) + - col0 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT ALL 26 * - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL 26 * - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT DISTINCT MAX( + - col1 ) * COUNT( * ) - MIN( - CAST( + col2 AS SIGNED ) - - col2 * col0 ) FROM tab0
----
-661

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT MAX ( + - col1 ) * COUNT ( * ) - MIN ( - CAST ( + col2 AS INTEGER ) - - col2 * col0 ) FROM tab0
----
-661

query I rowsort
SELECT ALL - col0 * + col1 * - col2 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT 76 * + - MIN( DISTINCT ( 50 ) ) FROM tab1
----
-3800

skipif mysql # not compatible
query I rowsort label-7159
SELECT 76 * + - MIN ( DISTINCT ( 50 ) ) FROM tab1
----
-3800

query I rowsort
SELECT DISTINCT - col1 + 58 FROM tab2 cor0
----
-19
-9
7

query I rowsort
SELECT col1 * - 35 - col2 AS col1 FROM tab0 AS cor0
----
-134
-2882
-745

query I rowsort
SELECT ALL - 69 + 3 AS col1 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - 58 * 49 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d0f25ea260afae0b1da800a1a89a98ce

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 54 ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + + 78 * + 18 AS col1 FROM tab2 AS cor0
----
-108108
-71604
-94068

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - COUNT( * ) + 12 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7166
SELECT - COUNT ( * ) + 12 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

query II rowsort
SELECT + col0 AS col1, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7169
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 BETWEEN + 74 / - col2 + + 35 * + 16 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 77 AS col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT + + 5 * - col0 AS col0 FROM tab1 AS cor0
----
-255
-425
-455

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( - 69 * col0 )
----

query I rowsort
SELECT col1 / col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT ALL - 20 FROM tab1 WHERE NOT col0 / - 74 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT 38 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT 38 > ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( - col0 / 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 67 ) FROM tab2 WHERE + 41 * col0 + - 88 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 97 NOT BETWEEN - col0 / 18 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 24 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7181
SELECT ( - + ( COUNT( * ) ) ) DIV 9 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ( - + ( COUNT ( * ) ) ) / 9 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL + MAX( ALL + - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + MAX ( ALL + - col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7183
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7183
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 91 FROM tab0 AS cor0 WHERE NOT col1 * 10 NOT IN ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT - CAST( NULL AS SIGNED ) * - - col0 + 18 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT - CAST ( NULL AS INTEGER ) * - - col0 + 18 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 49 * col0 + + col0 FROM tab1 cor0
----
-2448
-4080
-4368

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 66 ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT 44 + COUNT( * ) - 65 + COUNT( ALL + 93 ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7188
SELECT 44 + COUNT ( * ) - 65 + COUNT ( ALL + 93 ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + MAX( 83 ) * - COUNT( * ) FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + MAX ( 83 ) * - COUNT ( * ) FROM tab1
----
-249

query I rowsort
SELECT + - col2 FROM tab1 WHERE + 29 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 2 + + - col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 93 + + col0 + + col1 FROM tab2 AS cor0
----
190
234
235

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7195
SELECT ALL + CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab1 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col2 * 18 * - col2 FROM tab2 AS cor0
----
-28877
-60619
-9573

query I rowsort
SELECT ALL - + col0 + + 93 FROM tab1 AS cor0
----
2
42
8

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( + col0 - + 25 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL + MAX( ALL + col2 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + MAX ( ALL + col2 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT - ( - - 46 ) AS col1 FROM tab0, tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT - 69 * + COUNT( * ) * - SUM( DISTINCT 10 ) AS col0 FROM tab2
----
2070

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - 69 * + COUNT ( * ) * - SUM ( DISTINCT 10 ) AS col0 FROM tab2
----
2070

query I rowsort
SELECT DISTINCT col1 - - + col2 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= + 74 + - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col2 ) * - col1 * col0 - col0 col1 FROM tab1
----
-25160
-290927
-68595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT ALL COUNT( * ) - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL COUNT ( * ) - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7207
SELECT DISTINCT - col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7207
SELECT DISTINCT - col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT 7 * + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 + col1 + + + col2 * + + 37, 79 col1 FROM tab0 AS cor0
----
1838
79
3682
79
409
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7210
SELECT DISTINCT MIN( - 38 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR ( + - CAST( NULL AS SIGNED ) + - - col1 ) IN ( - CAST( col2 AS SIGNED ) - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT MIN ( - 38 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR ( + - CAST ( NULL AS INTEGER ) + - - col1 ) IN ( - CAST ( col2 AS INTEGER ) - 30 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT + 0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT + 0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 78 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - - 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 18 * + - 24 FROM tab0 AS cor0
----
-432
-432
-432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7215
SELECT DISTINCT ( + - 23 ) DIV COUNT( * ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT ( + - 23 ) / COUNT ( * ) AS col1 FROM tab1
----
-7

query I rowsort
SELECT + 22 + - - 53 AS col1 FROM tab0
----
75
75
75

query I rowsort
SELECT col0 + - - col1 AS col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7218
SELECT + 43, - 7 + - col0 + - col1 * col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
43
-104
43
-1222
43
-1834

skipif mysql # not compatible
query II rowsort label-7218
SELECT + 43, - 7 + - col0 + - col1 * col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
43
-104
43
-1222
43
-1834

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT COUNT( - 13 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT COUNT ( - 13 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - 93 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - 93 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL - col1 + - col1 AS col1 FROM tab1 WHERE - ( - col2 ) + + CAST( NULL AS SIGNED ) + - + col2 + - col2 * - col1 * CAST( NULL AS SIGNED ) + 69 >= ( 39 * + col0 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - col1 + - col1 AS col1 FROM tab1 WHERE - ( - col2 ) + + CAST ( NULL AS INTEGER ) + - + col2 + - col2 * - col1 * CAST ( NULL AS INTEGER ) + 69 >= ( 39 * + col0 + - col0 )
----

query II rowsort
SELECT ALL col1 + - col1 * - - col0 + - 27 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-1161
47
-123
99
-1833
10

query I rowsort
SELECT DISTINCT + + col0 * + 2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - COUNT( * ) FROM tab2 WHERE ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7224
SELECT - COUNT ( * ) FROM tab2 WHERE ( - col2 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - - 84 )
----

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + ( - + 37 ) FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7228
SELECT - 37 + ( + COUNT( * ) ) DIV + - ( + 61 ) AS col1 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7228
SELECT - 37 + ( + COUNT ( * ) ) / + - ( + 61 ) AS col1 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE 93 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + 40 + COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7230
SELECT + 40 + COUNT ( * ) FROM tab2 AS cor0
----
43

query II rowsort
SELECT 21 * + - 99 AS col2, 22 FROM tab2 AS cor0
----
-2079
22
-2079
22
-2079
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7232
SELECT ALL - 55 + + - 83 AS col1, + CAST( 28 AS SIGNED ) + + - 75 + + - col2 AS col2 FROM tab1 AS cor0
----
-138
-106
-138
-115
-138
-143

skipif mysql # not compatible
query II rowsort label-7232
SELECT ALL - 55 + + - 83 AS col1, + CAST ( 28 AS INTEGER ) + + - 75 + + - col2 AS col2 FROM tab1 AS cor0
----
-138
-106
-138
-115
-138
-143

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE + col1 <= NULL
----

query I rowsort
SELECT DISTINCT + 26 - 85 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT - MAX( + col0 ) - + MAX( + col0 ) AS col0 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - MAX ( + col0 ) - + MAX ( + col0 ) AS col0 FROM tab2
----
-150

query I rowsort
SELECT DISTINCT - col0 - - + ( + ( col2 ) ) AS col2 FROM tab1
----
-23
-26
45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - + col0 * col1 * ( + 47 ) IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + col0 ) - - + 22 * + col2 * + col1 * + col0 + + col2 FROM tab1
----
1508115
551794
6398551

query I rowsort
SELECT DISTINCT - col1 - - 79 FROM tab0
----
-2
58
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * + + 77 + col2 col2 FROM tab0 AS cor0
----
-54238
-66980
-739332

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT DISTINCT - col0 DIV + + 20 + col2 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
102397
24332
252297

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - col0 / + + 20 + col2 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
102397
24332
252297

query I rowsort
SELECT - col0 * 6 AS col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
-276
-384
-450

query I rowsort
SELECT + - ( + 72 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL - 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT DISTINCT - + 48 + col0 - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - + 48 + col0 - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 24 * + col0 + 18 FROM tab0 AS cor0
----
2106
2346
378

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT 39 >= + col0 * - 58
----

query I rowsort
SELECT DISTINCT col1 * - - 52 FROM tab2 AS cor0
----
2652
3484
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 8 * + - col0 col2 FROM tab1 AS cor0
----
-408
-680
-728

query I rowsort
SELECT - 84 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + col0 / + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7251
SELECT ALL + COUNT( * ) DIV + 40 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + COUNT ( * ) / + 40 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 19 + 41 AS col1 FROM tab1 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> ( - col1 + - + 20 * - 46 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col1, 29 AS col2 FROM tab0 WHERE NULL <> + + 2 * col2 * + col2 + + col0 + + col1 + - col2 + + 95
----

query I rowsort
SELECT DISTINCT 37 * + - col2 FROM tab0
----
-1739
-3663
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT + col0 DIV - + col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7257
SELECT + col0 / - + col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT + ( + 71 ) AS col0, + ( - + ( + - col1 ) ) AS col0, - 62 + col1 * + col1 FROM tab2 AS cor0
----
9 values hashing to a26e0e7127442e859312ef067b8a5b22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT - col0 + - col1 + + - CAST( NULL AS SIGNED ) * - 89 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - col0 + - col1 + + - CAST ( NULL AS INTEGER ) * - 89 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * - - 19 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1881
-3990
-72333

query I rowsort
SELECT + + 10 AS col0 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT - ( + - 61 ) AS col0 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ALL 29 + col0 FROM tab2 cor0
----
104
75
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 74 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 + - 89 AS col1, + ( + 36 ) * 64 AS col1 FROM tab1
----
-38
2304
-4
2304
2
2304

query II rowsort
SELECT ALL - 97 - - col0 + + 94 - + - 82 AS col1, + col2 AS col1 FROM tab1
----
130
96
164
59
170
68

query I rowsort
SELECT + 11 * + - col1 FROM tab1
----
-154
-517
-55

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT 35 BETWEEN NULL AND 15 / - 34
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + + 86 * - + COUNT( + 77 ) * 31 FROM tab2 AS cor0
----
-7998

skipif mysql # not compatible
query I rowsort label-7270
SELECT + + 86 * - + COUNT ( + 77 ) * 31 FROM tab2 AS cor0
----
-7998

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT MAX( ALL + 36 ) col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
36
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7271
SELECT MAX ( ALL + 36 ) col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
36
3

query I rowsort
SELECT ALL - ( - col2 ) * - - 94 FROM tab1 AS cor0
----
5546
6392
9024

query II rowsort
SELECT DISTINCT ( + - 93 ) + - col0, col0 AS col1 FROM tab0 AS cor0
----
-108
15
-180
87
-190
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT ( - CAST( - ( col2 ) AS SIGNED ) ) * - 16 AS col2 FROM tab1 AS cor0
----
-1088
-1536
-944

skipif mysql # not compatible
query I rowsort label-7274
SELECT ( - CAST ( - ( col2 ) AS INTEGER ) ) * - 16 AS col2 FROM tab1 AS cor0
----
-1088
-1536
-944

query I rowsort
SELECT - 78 + ( + 56 ) FROM tab1 AS cor0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 59 + + col0 - + - 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT - - CAST( NULL AS SIGNED ) + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7277
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-7278
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + - 39 - - - 37 AND - 70
----

skipif mysql # not compatible
query III rowsort label-7278
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + - 39 - - - 37 AND - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL + MIN( 2 ) col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7279
SELECT ALL + MIN ( 2 ) col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT 81 + - col2 - + 54 FROM tab2
----
-13
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT COUNT( * ) + - 81 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7281
SELECT COUNT ( * ) + - 81 FROM tab0
----
-78

query II rowsort
SELECT DISTINCT + col0 AS col2, 44 FROM tab1 WHERE NOT + ( 73 ) = ( + - 76 )
----
51
44
85
44
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT COUNT( * ) FROM tab2 WHERE + - 10 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7283
SELECT COUNT ( * ) FROM tab2 WHERE + - 10 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7284
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 87 - + - 94 AS col1 FROM tab0
----
NULL
181
NULL
181
NULL
181

skipif mysql # not compatible
query II rowsort label-7284
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 87 - + - 94 AS col1 FROM tab0
----
NULL
181
NULL
181
NULL
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT COUNT( - - col2 ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT COUNT ( - - col2 ) * - + COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL col1 * col0 * col1 AS col2 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7287
SELECT MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL COUNT( * ) - + ( - + COUNT( * ) ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL COUNT ( * ) - + ( - + COUNT ( * ) ) AS col0 FROM tab1
----
6

query I rowsort
SELECT 92 + - 27 FROM tab0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL + COUNT( * ) + + ( MIN( DISTINCT - 48 ) ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + COUNT ( * ) + + ( MIN ( DISTINCT - 48 ) ) FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT ALL col1 * + + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL col1 * + + CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT 90 + + ( - - MIN( + col2 ) ) AS col0 FROM tab1
----
149

skipif mysql # not compatible
query I rowsort label-7293
SELECT 90 + + ( - - MIN ( + col2 ) ) AS col0 FROM tab1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT DISTINCT col1 DIV + 47 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT col1 / + 47 FROM tab1 cor0
----
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - col2 + - col0 * - col2 AND + + 56 * - - 38
----

query I rowsort
SELECT DISTINCT - 27 FROM tab2 AS cor0 WHERE NOT col1 / - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT - + 55 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7297
SELECT - + 55 / - col2 AS col1 FROM tab0 AS cor0
----
0
1
5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col0 * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7299
SELECT + - ( + 79 ) AS col1, - 82 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-79
NULL
-79
NULL
-79
NULL

skipif mysql # not compatible
query II rowsort label-7299
SELECT + - ( + 79 ) AS col1, - 82 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-79
NULL
-79
NULL
-79
NULL

query I rowsort
SELECT - col2 * - 80 AS col1 FROM tab2
----
1840
3200
4640

query II rowsort
SELECT 27, + AVG ( + 74 ) * + 43 AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT DISTINCT - col1 col2 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) * - col0 * 4 / CAST( NULL AS SIGNED ) + - col2 + col2 + - - col0 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7302
SELECT DISTINCT - col1 col2 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) * - col0 * 4 / CAST ( NULL AS INTEGER ) + - col2 + col2 + - - col0 >= NULL
----

query I rowsort
SELECT + 60 * + col0 AS col2 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT - col0 * - 15 FROM tab2 AS cor0
----
1125
690
960

query II rowsort
SELECT ALL col1, - 48 FROM tab1 AS cor0
----
14
-48
47
-48
5
-48

query II rowsort
SELECT col2 AS col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7307
SELECT - + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + 99, col2 FROM tab0 AS cor0
----
99
10
99
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 50 * + col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT 81 * - - col1 * CAST( + - col0 AS SIGNED ) FROM tab1
----
-34425
-346437
-57834

skipif mysql # not compatible
query I rowsort label-7310
SELECT 81 * - - col1 * CAST ( + - col0 AS INTEGER ) FROM tab1
----
-34425
-346437
-57834

query I rowsort
SELECT ALL col1 + 9 AS col1 FROM tab0
----
10
30
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7312
SELECT ALL - - CAST( NULL AS SIGNED ) * - + COUNT( * ), - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7312
SELECT ALL - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ), - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + col2 AS col0 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + - - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL COUNT( * ) + - MAX( DISTINCT - col2 ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT - col2 ) AS col2 FROM tab2
----
26

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 AS col2 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT DISTINCT + 4 * col0 * - col1 AS col2 FROM tab0
----
-388
-4860
-7308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT col1 + + col1 + + - col1 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
435
4371
742

skipif mysql # not compatible
query I rowsort label-7319
SELECT col1 + + col1 + + - col1 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
435
4371
742

query II rowsort
SELECT 83 * col0 + col1 AS col2, 38 FROM tab0
----
1326
38
7242
38
8052
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT - - COUNT( * ) + + MIN( DISTINCT 20 ) AS col1, + COUNT( * ) FROM tab0 cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-7321
SELECT - - COUNT ( * ) + + MIN ( DISTINCT 20 ) AS col1, + COUNT ( * ) FROM tab0 cor0
----
23
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT ALL col2 DIV col1 * - + col1 + col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL col2 / col1 * - + col1 + col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT + col1 + - ( - + col0 ) FROM tab2 AS cor0
----
141
142
97

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <> ( 31 )
----

query I rowsort
SELECT 74 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT DISTINCT col1 + + col2 + - 86 FROM tab2
----
-12
31
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7328
SELECT ALL ( 61 ) - - 63 DIV - COUNT( * ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL ( 61 ) - - 63 / - COUNT ( * ) FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT 20 - + SUM( - 49 ) AS col0 FROM tab2
----
167

skipif mysql # not compatible
query I rowsort label-7329
SELECT 20 - + SUM ( - 49 ) AS col0 FROM tab2
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT - + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT - + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < col2 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7332
SELECT DISTINCT - 72 AS col0, + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-72
3

skipif mysql # not compatible
query II rowsort label-7332
SELECT DISTINCT - 72 AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-72
3

query I rowsort
SELECT + + 40 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + + 87 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - col0 + 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT - 51 DIV + col1 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 51 / + col1 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL COUNT( * ) * + - COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL COUNT ( * ) * + - COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT COUNT( + col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7337
SELECT DISTINCT COUNT ( + col1 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT - MAX( + col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7338
SELECT - MAX ( + col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7339
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2, + 29 AS col2 FROM tab1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-7339
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2, + 29 AS col2 FROM tab1
----
NULL
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7340
SELECT + - CAST( + + MAX( DISTINCT + + 90 ) AS SIGNED ) FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7340
SELECT + - CAST ( + + MAX ( DISTINCT + + 90 ) AS INTEGER ) FROM tab2 cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT - MIN( - + 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT - MIN ( - + 91 ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = + 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT ALL 69 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL 69 / - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col0 * - 92 AS col0 FROM tab2 WHERE NOT col2 NOT IN ( + col1 + - + ( col0 ) )
----

query II rowsort
SELECT ALL + 68, 64 * + + col0 * col2 AS col2 FROM tab1
----
68
313344
68
320960
68
396032

query III rowsort
SELECT * FROM tab2 WHERE NOT + 23 + 96 IS NOT NULL
----

query I rowsort
SELECT + col2 * + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col2 + + - 57 FROM tab1 AS cor0
----
-116
-125
-153

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 >= col1
----

query I rowsort
SELECT ALL col2 + + 70 AS col1 FROM tab2 cor0
----
110
128
93

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 cor0 WHERE - col0 / + 29 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - COUNT( * ) + COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7352
SELECT - COUNT ( * ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 52 + 43 + + col2 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
293
315
3949

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - + col0 AND col2
----
-9

skipif mysql # not compatible
query I rowsort label-7354
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - + col0 AND col2
----
-9

query I rowsort
SELECT ALL + col2 * ( - col2 ) + + 6 FROM tab1
----
-3475
-4618
-9210

query I rowsort
SELECT DISTINCT 28 * 60 FROM tab2
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7357
SELECT CAST( + 96 AS SIGNED ) AS col1, col0 AS col1 FROM tab0
----
96
15
96
87
96
97

skipif mysql # not compatible
query II rowsort label-7357
SELECT CAST ( + 96 AS INTEGER ) AS col1, col0 AS col1 FROM tab0
----
96
15
96
87
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT 55 * - + 41 * - - COUNT( * ) AS col1 FROM tab1
----
-6765

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 55 * - + 41 * - - COUNT ( * ) AS col1 FROM tab1
----
-6765

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT ( + 94 ) + - COUNT( * ) FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
94

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT ( + 94 ) + - COUNT ( * ) FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
94

query I rowsort
SELECT DISTINCT - col0 + + - col2 AS col1 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL + MIN( ALL 30 ) AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + MIN ( ALL 30 ) AS col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL - + col1 + - col1 - - col0 AS col2 FROM tab0 AS cor0
----
-147
45
95

query I rowsort
SELECT + - ( + col0 ) - + 28 FROM tab1 AS cor0
----
-113
-119
-79

query I rowsort
SELECT + col0 - - 47 AS col2 FROM tab0 AS cor0
----
134
144
62

query I rowsort
SELECT - + 79 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query III rowsort
SELECT * FROM tab1 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT ALL - - 56 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query II rowsort
SELECT ALL col1, + col2 + - - 88 FROM tab0 AS cor0
----
1
187
21
98
81
135

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7371
SELECT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-7371
SELECT CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT 56 * + - COUNT( * ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7372
SELECT 56 * + - COUNT ( * ) FROM tab2 AS cor0
----
-168

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 AND col1
----

query II rowsort
SELECT DISTINCT - col0 * - + 28 + + col2 AS col1, col0 FROM tab1 AS cor0
----
1524
51
2439
85
2616
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 col2, + col1 FROM tab2 AS cor0
----
-90
51
-90
67
-90
77

query I rowsort
SELECT ALL - 11 * - 94 AS col1 FROM tab0 AS cor0
----
1034
1034
1034

onlyif mysql # DIV for integer division: 
query I rowsort label-7377
SELECT + col2 DIV - 51 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7377
SELECT + col2 / - 51 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL - ( 31 ) * - COUNT( * ) col0 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7378
SELECT ALL - ( 31 ) * - COUNT ( * ) col0 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT - MIN( ALL + - 26 ) col0 FROM tab1
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7379
SELECT DISTINCT - MIN ( ALL + - 26 ) col0 FROM tab1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7380
SELECT * FROM tab1 WHERE NOT + + col0 * - CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7380
SELECT * FROM tab1 WHERE NOT + + col0 * - CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + + COUNT( * ) / - - SUM( ALL col2 ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT + + COUNT ( * ) / - - SUM ( ALL col2 ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 7 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT COUNT( * ) * - + COUNT( * ) * - CAST( + ( + - 52 ) AS SIGNED ) FROM tab2 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-7383
SELECT COUNT ( * ) * - + COUNT ( * ) * - CAST ( + ( + - 52 ) AS INTEGER ) FROM tab2 AS cor0
----
-468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 col2, 42 * col2 * + + 35 * - 44 FROM tab0 AS cor0
----
-8
-3039960
-8
-6403320
-8
-646800

query II rowsort
SELECT col2, + ( col0 ) * col1 FROM tab2 AS cor0
----
23
2346
40
4928
58
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL - + ( - + SUM( + + 69 ) ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - + ( - + SUM ( + + 69 ) ) FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT + 87 + - + col0 + 98 FROM tab2
----
110
121
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT + MAX( + 89 ) AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + MAX ( + 89 ) AS col2 FROM tab0
----
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col0 * col0 / + 81 * - + col2
----

query II rowsort
SELECT + col1 * + col0, + col1 AS col2 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query II rowsort
SELECT ALL - - col1 + + + 91, 97 + col0 AS col2 FROM tab0 AS cor0
----
112
184
172
112
92
194

query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT 65 + + 96 AS col1 FROM tab2
----
161

query I rowsort
SELECT 90 + + + col2 FROM tab1
----
149
158
186

query I rowsort
SELECT ALL + 73 * 42 + col1 + + - col1 * + col0 FROM tab1
----
-1164
2366
2646

query I rowsort
SELECT DISTINCT col2 - + 52 AS col0 FROM tab0
----
-42
-5
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7399
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) + + - 64 NOT BETWEEN - col0 AND - col1
----

skipif mysql # not compatible
query III rowsort label-7399
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) + + - 64 NOT BETWEEN - col0 AND - col1
----

query I rowsort
SELECT ( - col0 ) * ( 15 ) - - col1 + col1 FROM tab1 AS cor0
----
-1265
-1271
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + SUM( - - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7401
SELECT + SUM ( - - col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL 84 + + + COUNT( * ) * - 59 * - + 74 AS col1 FROM tab1 cor0
----
13182

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL 84 + + + COUNT ( * ) * - 59 * - + 74 AS col1 FROM tab1 cor0
----
13182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( 49 ) AS col1, + col2 * - col2 col0, + 47 + - col2 FROM tab0 cor0 WHERE NULL = 34
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL ( + col0 ) AS col0, + col0 * + - col1 - + 90 AS col2 FROM tab1
----
51
-804
85
-515
91
-4367

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 + + - col0 * 96 + - col0 > - 17
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT MAX( ALL 13 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT MAX ( ALL 13 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL MIN( col2 ) * COUNT( ALL + 56 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL MIN ( col2 ) * COUNT ( ALL + 56 ) FROM tab2 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT + 88 + - + col2 + - 10 DIV - col1 AS col2 FROM tab2 cor0 WHERE NOT - col0 BETWEEN - ( col2 ) AND - col2
----
30
48
65

skipif mysql # not compatible
query I rowsort label-7409
SELECT + 88 + - + col2 + - 10 / - col1 AS col2 FROM tab2 cor0 WHERE NOT - col0 BETWEEN - ( col2 ) AND - col2
----
30
48
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT MIN( + + col2 ) * + COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7411
SELECT MIN ( + + col2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 - + + col1 AND - col0
----

query I rowsort
SELECT DISTINCT - col1 * + + col0 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL 40 FROM tab0 WHERE NOT ( ( NULL ) <> col1 )
----

query I rowsort
SELECT + col0 * + 35 FROM tab0
----
3045
3395
525

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7416
SELECT - col1 AS col1, CAST( - + 24 AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-7416
SELECT - col1 AS col1, CAST ( - + 24 AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT 48 * - COUNT( * ) * MAX( ALL col2 ) FROM tab0
----
-14256

skipif mysql # not compatible
query I rowsort label-7417
SELECT 48 * - COUNT ( * ) * MAX ( ALL col2 ) FROM tab0
----
-14256

query III rowsort
SELECT ALL * FROM tab0 WHERE + 84 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) < + col1 - - 16
----
87
21
10
97
1
99

query I rowsort
SELECT - 54 + - col1 + + + 70 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - ( + col1 ) IS NULL
----
-35
-51
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) * 34 * + 16 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) * 34 * + 16 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col0 col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT 17 * MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
391

skipif mysql # not compatible
query I rowsort label-7423
SELECT 17 * MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
391

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT + 96 DIV ( - + col2 ) DIV + col2 * - - col0 + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7424
SELECT + 96 / ( - + col2 ) / + col2 * - - col0 + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 + - col2 + + col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL ( col1 ) * + - 81 * - - col2 AS col1 FROM tab1 AS cor0
----
-108864
-23895
-258876

query I rowsort
SELECT DISTINCT + 89 * - 28 FROM tab0 AS cor0
----
-2492

query I rowsort
SELECT - 7 + + 40 AS col1 FROM tab0 cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT DISTINCT + col0 + + col0 DIV - 31 AS col0 FROM tab1 AS cor0
----
50
83
89

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + col0 + + col0 / - 31 AS col0 FROM tab1 AS cor0
----
50
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT - ( - - COUNT( * ) ) - 30 AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT - ( - - COUNT ( * ) ) - 30 AS col1 FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT + col1 * - col2 AS col1 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) IS NULL
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-7431
SELECT + col1 * - col2 AS col1 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) IS NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7432
SELECT ALL - col2 / - + col1 AS col0, col1 AS col2 FROM tab2 WHERE NOT NULL <= + col0 + - 13 + col2 + - CAST( - + col2 AS SIGNED ) * col1
----

skipif mysql # not compatible
query II rowsort label-7432
SELECT ALL - col2 / - + col1 AS col0, col1 AS col2 FROM tab2 WHERE NOT NULL <= + col0 + - 13 + col2 + - CAST ( - + col2 AS INTEGER ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT COUNT( DISTINCT + 70 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7433
SELECT COUNT ( DISTINCT + 70 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT COUNT( * ) - + - 33 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT COUNT ( * ) - + - 33 AS col2 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - MIN( - ( + - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7435
SELECT - MIN ( - ( + - col1 ) ) FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + 71 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL ( + MIN( + 22 ) ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL ( + MIN ( + 22 ) ) FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / + 76 IS NULL OR NOT 65 * - - ( col0 ) * + 11 + col2 + + col2 + + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 - 10 AS col1 FROM tab2 AS cor0
----
-33
-50
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7440
SELECT ALL col0 + col0 col1, - 53 * + - CAST( - + 24 AS SIGNED ) FROM tab0 AS cor0
----
174
-1272
194
-1272
30
-1272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7440
SELECT ALL col0 + col0 col1, - 53 * + - CAST ( - + 24 AS INTEGER ) FROM tab0 AS cor0
----
174
-1272
194
-1272
30
-1272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + + + ( + CAST( NULL AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + + + ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7442
SELECT * FROM tab2 WHERE NOT - col0 + col2 - - col0 = + CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7442
SELECT * FROM tab2 WHERE NOT - col0 + col2 - - col0 = + CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + 56 FROM tab0 AS cor0
----
15
56
87
56
97
56

query I rowsort
SELECT - + 76 * + col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + 89 ) AND + 3 * col1
----

query I rowsort
SELECT DISTINCT - - ( + 81 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ( + 94 ) AS col1 FROM tab0 cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 73 * 44 * + + col0 FROM tab1 AS cor0
----
163812
273020
292292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT - CAST( - - 14 AS SIGNED ) col2 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7450
SELECT - CAST ( - - 14 AS INTEGER ) col2 FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT MAX( DISTINCT - - 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT MAX ( DISTINCT - - 88 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT - col2 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 * - col0 * - col0 AS col0 FROM tab2 WHERE NOT - + 70 * + 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * 18 col2 FROM tab0
----
306
306
306

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL + + 91 + - + ( + COUNT( * ) ) * - MAX( DISTINCT + 15 ) FROM tab1 WHERE - 41 IS NOT NULL
----
136

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL + + 91 + - + ( + COUNT ( * ) ) * - MAX ( DISTINCT + 15 ) FROM tab1 WHERE - 41 IS NOT NULL
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT ALL + CAST( 22 AS SIGNED ) * + col1 FROM tab1
----
1034
110
308

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL + CAST ( 22 AS INTEGER ) * + col1 FROM tab1
----
1034
110
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT DISTINCT - - col0 * + CAST( + col0 AS SIGNED ) * - - col2 AS col0 FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT - - col0 * + CAST ( + col0 AS INTEGER ) * - - col2 AS col0 FROM tab1 cor0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT DISTINCT + col0 + + + col2, - 18 AS col0 FROM tab0 AS cor0
----
196
-18
62
-18
97
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT DISTINCT - - ( SUM( DISTINCT - + col0 ) ) * - + ( - + CAST( + 41 AS SIGNED ) ) + + COUNT( * ) - 78 AS col2 FROM tab2 AS cor0
----
-7660

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT - - ( SUM ( DISTINCT - + col0 ) ) * - + ( - + CAST ( + 41 AS INTEGER ) ) + + COUNT ( * ) - 78 AS col2 FROM tab2 AS cor0
----
-7660

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 29 * - col0 * + + col2 * col2 + - col0 IS NULL
----

query I rowsort
SELECT - col0 * 0 * - col1 * + - col2 * + col0 + 69 FROM tab1 AS cor0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + + 3 + + 48
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7463
SELECT ALL - CAST( NULL AS DECIMAL ) * + 19 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - CAST ( NULL AS REAL ) * + 19 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col2 ) + col1 AND NULL
----

query I rowsort
SELECT - + col0 + - col0 - + col0 FROM tab0 AS cor0 WHERE - col2 * col1 IS NOT NULL
----
-261
-291
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT ALL CAST( - + col2 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL CAST ( - + col2 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ( + 63 ) + col1 FROM tab0
----
144
64
84

query I rowsort
SELECT 31 * - + col1 * - + col2 FROM tab1
----
41664
9145
99076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 65 ) col1 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT MIN( DISTINCT 36 ) * + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1152

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT MIN ( DISTINCT 36 ) * + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col1 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT 18 * col0 - + col2 * + - col0 FROM tab2 cor0 WHERE NOT 25 IS NULL
----
1886
3712
5700

query II rowsort
SELECT ALL col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT - col2 + + 97 + col0 * + col2 AS col1 FROM tab0
----
755
957
9601

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT - COUNT( 44 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT - COUNT ( 44 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL <> + col0
----

query I rowsort
SELECT - col2 * - 9 FROM tab0
----
423
891
90

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT + SUM( DISTINCT - + 1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7480
SELECT + SUM ( DISTINCT - + 1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 69 * + col1 * + 18 FROM tab0
----
100602
1242
26082

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 13 BETWEEN NULL AND NULL
----

query II rowsort
SELECT 82 + - + col1 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
15
-75
31
-46
5
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT MIN( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT col0 + - col1 + + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-14
-6
7

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT col0 + - col1 + + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-14
-6
7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - - col0 + + col2 FROM tab1
----
149
161
206

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - - col0 + + col2 FROM tab1
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT + CAST( NULL AS SIGNED ) - - + col0 + - ( + col0 ) / ( - col2 ) + ( - col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT + CAST ( NULL AS INTEGER ) - - + col0 + - ( + col0 ) / ( - col2 ) + ( - col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 43 * + col1 * - col1 AS col0 FROM tab0
----
-18963
-282123
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7490
SELECT DISTINCT + col1 col2, + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * col2 col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7490
SELECT DISTINCT + col1 col2, + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL ( + 19 ) FROM tab2
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7492
SELECT ALL - + CAST( + col0 AS SIGNED ) * col2 * + + 84 * - - col0 + CAST( NULL AS SIGNED ) / + + 23 * col2 * - col0 AS col1, - col2 AS col1 FROM tab1 WHERE NOT - col0 = col1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL - + CAST ( + col0 AS INTEGER ) * col2 * + + 84 * - - col0 + CAST ( NULL AS INTEGER ) / + + 23 * col2 * - col0 AS col1, - col2 AS col1 FROM tab1 WHERE NOT - col0 = col1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT + COUNT( DISTINCT + 11 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + COUNT ( DISTINCT + 11 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT 21 * col2 FROM tab0 AS cor0
----
2079
210
987

query II rowsort
SELECT DISTINCT col1, + ( + 48 ) AS col0 FROM tab1 AS cor0
----
14
48
47
48
5
48

query I rowsort
SELECT ALL + + 53 AS col2 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + + 77 + + 32 AS col0 FROM tab1 AS cor0
----
109
109
109

query I rowsort
SELECT + - 8 AS col1 FROM tab1 cor0
----
-8
-8
-8

query II rowsort
SELECT - + col1 AS col0, - 49 FROM tab2 cor0
----
-51
-49
-67
-49
-77
-49

query I rowsort
SELECT DISTINCT 30 * - col1 AS col0 FROM tab0 AS cor0
----
-2430
-30
-630

query I rowsort
SELECT DISTINCT - + ( - - col0 ) + + 51 AS col1 FROM tab0 AS cor0
----
-36
-46
36

query II rowsort
SELECT ALL - - col2 AS col1, 22 FROM tab2 AS cor0
----
23
22
40
22
58
22

query II rowsort
SELECT + - 59, + 50 AS col0 FROM tab2 AS cor0
----
-59
50
-59
50
-59
50

query I rowsort
SELECT DISTINCT col1 * + + 78 + + col2 AS col1 FROM tab2 AS cor0
----
4001
5284
6046

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col2 FROM tab0
----
76

query I rowsort
SELECT DISTINCT ( - col0 ) * + - col0 + + col2 AS col2 FROM tab0
----
272
7579
9508

query I rowsort
SELECT ALL + col0 * + 14 * + 83 AS col1 FROM tab2
----
53452
74368
87150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT - CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT - CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - - ( + col0 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT col0 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7512
SELECT col0 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT SUM( - col2 ) + 64 + - + 8 FROM tab1 AS cor0
----
-167

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT SUM ( - col2 ) + 64 + - + 8 FROM tab1 AS cor0
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT - - COUNT( DISTINCT - + col2 ) AS col0 FROM tab0 cor0 WHERE + 87 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7514
SELECT - - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab0 cor0 WHERE + 87 >= NULL
----
0

query I rowsort
SELECT ALL + + col2 * 31 * - col1 FROM tab1 WHERE NULL NOT BETWEEN + ( - 17 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - col0 <> col1 + + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7517
SELECT ALL 26 * - col1 AS col2, 80 * col1 - - - CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> + ( + - ( + - col0 ) )
----

skipif mysql # not compatible
query II rowsort label-7517
SELECT ALL 26 * - col1 AS col2, 80 * col1 - - - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> + ( + - ( + - col0 ) )
----

query II rowsort
SELECT ALL - col0, + col2 * 94 AS col2 FROM tab0 cor0
----
-15
4418
-87
940
-97
9306

query I rowsort
SELECT DISTINCT + - 96 + + - col0 AS col1 FROM tab2 AS cor0
----
-142
-160
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, 24 + col0 FROM tab2 AS cor0
----
-46
70
-64
88
-75
99

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 + + col2 + col1 FROM tab1 AS cor0
----
5057
5164
6394

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col1 NOT IN ( - col0, 77, + col0 * + col0 + + 51 + col0, - 55 * + col2 * col0 * 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT MIN( DISTINCT + 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-7524
SELECT MIN ( DISTINCT + 37 ) FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT MIN( + 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7525
SELECT MIN ( + 15 ) FROM tab0
----
15

query I rowsort
SELECT ALL - col2 * - - col0 * - + col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL + - 55 + + 5 + - + ( - - 78 ) * + + col2 FROM tab1 WHERE NOT NULL <= - 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7528
SELECT ALL + COUNT( * ) * - MAX( DISTINCT + + ( - col2 ) ), - 99 AS col0 FROM tab1 AS cor0
----
177
-99

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT + + ( - col2 ) ), - 99 AS col0 FROM tab1 AS cor0
----
177
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT 71 DIV + + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT 71 / + + col0 FROM tab0
----
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL BETWEEN col1 * + 67 / ( 72 ) + CAST( NULL AS SIGNED ) + col0 AND - col2 + - 15
----
0

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN col1 * + 67 / ( 72 ) + CAST ( NULL AS INTEGER ) + col0 AND - col2 + - 15
----
0

query II rowsort
SELECT ALL col1 AS col1, - 6 FROM tab2
----
51
-6
67
-6
77
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - - 58 * - 60 FROM tab2 cor0
----
-3480
-3480
-3480

query I rowsort
SELECT - - ( - + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) <> - - 13
----

query I rowsort
SELECT + col2 + + col1 * 97 + + 66 * + 13 FROM tab0 AS cor0
----
1054
2905
8762

query I rowsort
SELECT - col0 + - + 89 * + 49 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4412
-4446
-4452

query I rowsort
SELECT ALL + 61 + + col2 AS col0 FROM tab2
----
101
119
84

query II rowsort
SELECT ALL col2 AS col0, 34 * - col0 FROM tab1
----
59
-2890
68
-3094
96
-1734

query I rowsort
SELECT - 25 + + 23 AS col0 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT - col0 * 7 * - + col2 + + col1 * col2 * col1 * col1 AS col0 FROM tab0
----
24982662
67320
98700

query II rowsort
SELECT 53 * - col0 AS col0, - col2 AS col1 FROM tab2
----
-2438
-23
-3392
-40
-3975
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col2 + col1 + + col1 * - + 29 AND NULL
----

query I rowsort
SELECT col1 * - - 8 * - 63 AS col2 FROM tab0
----
-10584
-40824
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT COUNT( * ) * + SUM( + - 21 ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-7544
SELECT COUNT ( * ) * + SUM ( + - 21 ) FROM tab2
----
-189

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + + col1, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT + ( + - MIN( ALL + - col1 ) ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + ( + - MIN ( ALL + - col1 ) ) AS col2 FROM tab1 cor0
----
47

query I rowsort
SELECT - col0 * - 86 * - col2 FROM tab2 AS cor0
----
-220160
-374100
-90988

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + ( COUNT( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7548
SELECT + ( COUNT ( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * 47 FROM tab0 AS cor0
----
4089
4559
705

query II rowsort
SELECT col1 + + col0, + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT + COUNT( * ) * 60 + - SUM( 50 ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + COUNT ( * ) * 60 + - SUM ( 50 ) AS col2 FROM tab2 AS cor0
----
30

query II rowsort
SELECT + 33 AS col2, 81 AS col0 FROM tab0 AS cor0
----
33
81
33
81
33
81

query I rowsort
SELECT + 53 * - 5 AS col0 FROM tab2 AS cor0
----
-265
-265
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL COUNT( * ) * 41 + + 46 FROM tab1 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL COUNT ( * ) * 41 + + 46 FROM tab1 AS cor0
----
169

query I rowsort
SELECT - col2 * 79 + - 17 * + col2 FROM tab0 AS cor0
----
-4512
-9504
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 39 col2 FROM tab2 cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col1 col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 21 * + 18 FROM tab1
----
-378
-378
-378

query I rowsort
SELECT - 11 * col2 AS col1 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + COUNT( * ) * - MAX( col2 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7560
SELECT + COUNT ( * ) * - MAX ( col2 ) FROM tab1
----
-288

query I rowsort
SELECT DISTINCT col0 - 13 AS col2 FROM tab1
----
38
72
78

query I rowsort
SELECT ALL - 72 FROM tab2 WHERE - col1 IS NOT NULL
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT DISTINCT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( col1 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL MIN( + col2 ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL MIN ( + col2 ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 * col0 col2 FROM tab1 WHERE NULL IS NULL
----
1275
2125
2275

query I rowsort
SELECT DISTINCT col2 * - 37 AS col2 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - 50 * + ( - col0 ) AND col2 + - 70 * + 6
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( - 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT SUM( + 86 ) col2 FROM tab1
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7570
SELECT SUM ( + 86 ) col2 FROM tab1
----
258

query I rowsort
SELECT ALL - 84 * + col2 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT ALL + ( - ( col2 ) ) * col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL 38 * - COUNT( * ) AS col1 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 38 * - COUNT ( * ) AS col1 FROM tab1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT MIN( DISTINCT - col0 ) + - 7 AS col2 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-7574
SELECT MIN ( DISTINCT - col0 ) + - 7 AS col2 FROM tab1
----
-98

query I rowsort
SELECT - 90 AS col2 FROM tab2 WHERE NOT ( - 9 ) IS NULL
----
-90
-90
-90

query I rowsort
SELECT 21 * + 84 FROM tab0 WHERE + col1 + - 16 / - 7 IS NOT NULL
----
1764
1764
1764

query I rowsort
SELECT DISTINCT ( col1 ) * - col0 AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( + col2 )
----

query I rowsort
SELECT ALL - col0 - col0 AS col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT col2 - + 67 FROM tab2
----
-27
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7581
SELECT * FROM tab0 WHERE - col0 * 76 - CAST( NULL AS SIGNED ) BETWEEN NULL AND ( 60 )
----

skipif mysql # not compatible
query III rowsort label-7581
SELECT * FROM tab0 WHERE - col0 * 76 - CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + COUNT( * ) * 80 + - MIN( col1 ) * - COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 + - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT + COUNT ( * ) * 80 + - MIN ( col1 ) * - COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 + - col2 AND NULL
----
NULL

query I rowsort
SELECT + 18 * col2 AS col0 FROM tab2
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT - CAST( - col2 AS SIGNED ) * col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7584
SELECT - CAST ( - col2 AS INTEGER ) * col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col1 - - 47 FROM tab0
----
128
48
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT COUNT( * ) FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7587
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT 47 + - 3 AS col0 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7588
SELECT 47 + - 3 AS col0 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + col2 + - 84 FROM tab0 AS cor0
----
-37
-74
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( ( col2 ) ) AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
87
87
87

query I rowsort
SELECT DISTINCT col2 * col0 - col0 AS col0 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL COUNT( * ) - + 66 * - 55 FROM tab2
----
3633

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL COUNT ( * ) - + 66 * - 55 FROM tab2
----
3633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 80 AS col1 FROM tab2 WHERE - col1 NOT IN ( 70 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 80 AS col1 FROM tab2 WHERE - col1 NOT IN ( 70 + + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT + col0 DIV col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT DISTINCT + col0 / col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT - 90 * + col2 AS col2 FROM tab1 AS cor0
----
-5310
-6120
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT MAX( DISTINCT col2 ) * COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7598
SELECT MAX ( DISTINCT col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
174

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 4 NOT BETWEEN - 63 AND - col0
----

query I rowsort
SELECT ( - 92 ) FROM tab2
----
-92
-92
-92

query I rowsort
SELECT ALL col0 * - ( + col1 ) AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT SUM( + ( + 96 ) ) AS col0 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-7603
SELECT SUM ( + ( + 96 ) ) AS col0 FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT MAX( ALL - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7604
SELECT MAX ( ALL - - col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL - 98 * + 89 AS col1 FROM tab2 AS cor0
----
-8722
-8722
-8722

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - 27 BETWEEN 35 - + col1 * + 97 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL - + MIN( col2 ) AS col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - + MIN ( col2 ) AS col1 FROM tab0 cor0
----
-10

query I rowsort
SELECT - - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT 84 * + col0 AS col1 FROM tab1 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( + col0 ) IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 73 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL COUNT( * ) + - 64 AS col0 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL COUNT ( * ) + - 64 AS col0 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT + 48 + + 42 FROM tab0 cor0
----
90
90
90

query I rowsort
SELECT col2 * - col1 + - col0 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT - + 42 * + col2 + col0 FROM tab2 AS cor0
----
-1616
-2361
-920

query I rowsort
SELECT ALL - 93 + + + col2 * - col2 * col0 FROM tab1
----
-295978
-420877
-470109

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT 62 + - MAX( DISTINCT - col1 - 18 ) AS col2 FROM tab1 WHERE ( - + ( + col0 ) + + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT 62 + - MAX ( DISTINCT - col1 - 18 ) AS col2 FROM tab1 WHERE ( - + ( + col0 ) + + col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7619
SELECT ALL - col1 AS col2 FROM tab1 WHERE ( - CAST( NULL AS DECIMAL ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - col1 AS col2 FROM tab1 WHERE ( - CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 18 * ( - 73 ) AS col2 FROM tab0
----
-1314
-1314
-1314

query I rowsort
SELECT + 96 * + col0 AS col1 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT ALL + 67 - + col1 * + col0 FROM tab2
----
-2279
-4861
-4958

query I rowsort
SELECT - 63 * + 14 FROM tab2
----
-882
-882
-882

query I rowsort
SELECT + col0 FROM tab0 WHERE + 92 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT 40 FROM tab2 WHERE + + ( - + col1 ) / col1 >= - col1 + 56
----
40
40

query III rowsort
SELECT * FROM tab0 WHERE - 26 BETWEEN NULL AND + + col2 / col0
----

query I rowsort
SELECT ALL + 27 AS col1 FROM tab1
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT + + ( + + 79 ) - - CAST( NULL AS SIGNED ) + - col0 + - 78 * col1 * + 88 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT + + ( + + 79 ) - - CAST ( NULL AS INTEGER ) + - col0 + - 78 * col1 * + 88 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 + col0 * + 67 ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - 26 + COUNT( * ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7630
SELECT - 26 + COUNT ( * ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT + SUM( - col2 ) + + 70 AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + SUM ( - col2 ) + + 70 AS col1 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL <= + ( + 23 )
----

query I rowsort
SELECT DISTINCT - col0 + - 1 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL - MAX( ALL + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - MAX ( ALL + col2 ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL SUM( col2 ) * + COUNT( * ) AS col1 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL SUM ( col2 ) * + COUNT ( * ) AS col1 FROM tab1
----
669

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT + - 14, ( - COUNT( * ) ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-14
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7636
SELECT + - 14, ( - COUNT ( * ) ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-14
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT DISTINCT + col2 DIV - + 61 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT + col2 / - + 61 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + - 82 FROM tab1 cor0
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7639
SELECT ALL - - ( CAST( NULL AS DECIMAL ) ) col1 FROM tab1 AS cor0 WHERE - col2 + - col2 * - - col0 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7639
SELECT ALL - - ( CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0 WHERE - col2 + - col2 * - - col0 <> NULL
----

query I rowsort
SELECT + col0 * - + col0 + col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 + + 51 + - col2 + ( - col1 ) + - col2 * col2 <= ( - col1 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 60 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 84 * col0 <> 95 + + - col2 / + ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 69 * - - 98 - - 73 + - col1 * - col1 FROM tab1 AS cor0
----
6860
7031
9044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7645
SELECT - - COUNT( * ) DIV + ( ( + COUNT( * ) ) ) + + 74 + + 4 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7645
SELECT - - COUNT ( * ) / + ( ( + COUNT ( * ) ) ) + + 74 + + 4 FROM tab2 AS cor0
----
79

query I rowsort
SELECT DISTINCT - 49 FROM tab1 AS cor0 WHERE NOT 83 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 14 - - col2 col2, 76 * + + ( - 68 ) AS col1 FROM tab0 AS cor0
----
1228
-5168
1457
-5168
257
-5168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( - ( - 30 ) / + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT ALL COUNT( * ), + 85 AS col1 FROM tab1 AS cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-7649
SELECT ALL COUNT ( * ), + 85 AS col1 FROM tab1 AS cor0
----
3
85

query I rowsort
SELECT DISTINCT + col1 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + - col0 AND ( + ( - 22 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NOT NULL IS NULL ) )
----

query II rowsort
SELECT ALL col2, 60 AS col2 FROM tab1
----
59
60
68
60
96
60

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 / + col0 >= + col0 * 62 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + 5 / - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 68 * + 10 + - 23 FROM tab2 AS cor0
----
657
657
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT - 63 / - + col0 * ( col2 ) * - col0 * 7 * 38 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT - 63 / - + col0 * ( col2 ) * - col0 * 7 * 38 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab1 cor0 WHERE col0 + + col2 / - - 5 * + 59 * - - ( col1 ) * - ( - col1 + ( - 33 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT DISTINCT + col0 + + + 32 DIV + col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT + col0 + + + 32 / + col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL - col1 * 60 * col0 + + + 60 FROM tab0 AS cor0
----
-109560
-5760
-72840

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7661
SELECT DISTINCT - - 94 + + CAST( NULL AS DECIMAL ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7661
SELECT DISTINCT - - 94 + + CAST ( NULL AS REAL ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - col1 + + - 7 + + col2 + + - col2 - + col2 * 16 * - 23 FROM tab2 AS cor0 WHERE col1 * col2 IS NOT NULL
----
14636
21270
8406

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > ( + col2 )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - 48 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 * - - ( - col0 ) AND NULL
----

query I rowsort
SELECT - col1 + col0 * + ( ( + 28 ) ) * + ( + + col0 ) AS col1 FROM tab0
----
211911
263451
6219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT DISTINCT col1 FROM tab0 WHERE NOT + - 24 * + CAST( NULL AS SIGNED ) IN ( - 72 + + - 68 + + col0 * - col0 + col1 )
----

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT col1 FROM tab0 WHERE NOT + - 24 * + CAST ( NULL AS INTEGER ) IN ( - 72 + + - 68 + + col0 * - col0 + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( - col2 ) NOT IN ( + 46, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - - col2 * + col0 - + col0 FROM tab0
----
-18357
-57120
-9700

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 col0 FROM tab0
----
0

query I rowsort
SELECT ALL + col2 * - - col2 AS col0 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT DISTINCT 95 DIV + 9 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT 95 / + 9 AS col2 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT - COUNT( * ) col1, 30 AS col2 FROM tab0 AS cor0
----
-3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7674
SELECT - COUNT ( * ) col1, 30 AS col2 FROM tab0 AS cor0
----
-3
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 35 NOT IN ( - + ( col0 ), + col0 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL - - SUM( - + 2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - - SUM ( - + 2 ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL - MIN( ALL 39 ) FROM tab1 AS cor0 WHERE 26 <> - ( col0 )
----
-39

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - MIN ( ALL 39 ) FROM tab1 AS cor0 WHERE 26 <> - ( col0 )
----
-39

query II rowsort
SELECT ALL - col0 * + col0 + - ( col1 ), + col2 - - col2 AS col2 FROM tab0 AS cor0
----
-306
94
-7590
20
-9410
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 52, col2 + - - col1 AS col2 FROM tab1
----
52
110
52
115
52
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 col2, - col2 col2 FROM tab1
----
86
-59
86
-68
86
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT ALL + col0 DIV + - col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + col0 / + - col0 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT - col1 DIV - 5 FROM tab0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-7684
SELECT - col1 / - 5 FROM tab0
----
0
16
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT DISTINCT + col2 DIV 24 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + col2 / 24 AS col1 FROM tab2
----
0
1
2

query II rowsort
SELECT col0, col1 AS col0 FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 BETWEEN ( - 96 * + 48 + + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT + 17 + - COUNT( * ) FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + 17 + - COUNT ( * ) FROM tab0 cor0
----
14

query I rowsort
SELECT + col1 + col0 + - 19 FROM tab0
----
77
79
89

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col0 / - + ( - - col2 ) + + col0 * col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT - 47 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 47 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT ( - - col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 96
----

query I rowsort
SELECT ALL 18 + - col0 AS col0 FROM tab1 AS cor0
----
-33
-67
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7695
SELECT CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + 15 - + col1 FROM tab2
----
-36
-52
-62

query I rowsort
SELECT ( + col0 ) - - col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 WHERE 59 NOT IN ( - col2 / + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 NOT BETWEEN ( - 42 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 73 * col1 col2 FROM tab2 AS cor0
----
-3723
-4891
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT + ( MAX( - - ( col1 ) ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7702
SELECT + ( MAX ( - - ( col1 ) ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL + COUNT( - ( - + ( 46 ) ) ) * 78 AS col1 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + COUNT ( - ( - + ( 46 ) ) ) * 78 AS col1 FROM tab1
----
234

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT + + col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT ALL COUNT( * ) col2, + 18 - + COUNT( * ) FROM tab0
----
3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7705
SELECT ALL COUNT ( * ) col2, + 18 - + COUNT ( * ) FROM tab0
----
3
15

query II rowsort
SELECT + col2 AS col0, + 32 AS col2 FROM tab0 AS cor0
----
10
32
47
32
99
32

query II rowsort
SELECT + col2 * + - col2, 56 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 AS col1, 9 * 9 col0 FROM tab2 AS cor0
----
68
81
68
81
68
81

query I rowsort
SELECT - col1 * col0 * - 0 * + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7710
SELECT ALL col0 * + col0 - + - 22, CAST( NULL AS SIGNED ) - - 23 AS col1 FROM tab2 AS cor0
----
2138
NULL
4118
NULL
5647
NULL

skipif mysql # not compatible
query II rowsort label-7710
SELECT ALL col0 * + col0 - + - 22, CAST ( NULL AS INTEGER ) - - 23 AS col1 FROM tab2 AS cor0
----
2138
NULL
4118
NULL
5647
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT DISTINCT - 13 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - 13 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7712
SELECT DISTINCT - 73 + - CAST( - + col0 AS SIGNED ) - col1 col2, + ( + 60 ) FROM tab1 cor0
----
-29
60
-36
60
7
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7712
SELECT DISTINCT - 73 + - CAST ( - + col0 AS INTEGER ) - col1 col2, + ( + 60 ) FROM tab1 cor0
----
-29
60
-36
60
7
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + MAX( 83 ) AS col2 FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-7713
SELECT + MAX ( 83 ) AS col2 FROM tab0 cor0
----
83

query II rowsort
SELECT DISTINCT + + 84, ( + + 9 ) AS col2 FROM tab0 AS cor0
----
84
9

query II rowsort
SELECT ALL - 59 AS col0, - col1 FROM tab0 AS cor0
----
-59
-1
-59
-21
-59
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7716
SELECT ALL * FROM tab0 WHERE NOT + + col1 * + + col0 NOT BETWEEN + - col0 * - - 78 AND CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-7716
SELECT ALL * FROM tab0 WHERE NOT + + col1 * + + col0 NOT BETWEEN + - col0 * - - 78 AND CAST ( NULL AS INTEGER ) * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * ( + + col1 ) + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL SUM( DISTINCT - 78 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL SUM ( DISTINCT - 78 ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT SUM( - - col0 ) + - - 27 FROM tab1 AS cor0
----
254

skipif mysql # not compatible
query I rowsort label-7719
SELECT SUM ( - - col0 ) + - - 27 FROM tab1 AS cor0
----
254

query I rowsort
SELECT - + 37 + - col0 + - col2 + - col1 - - 2 AS col0 FROM tab2 AS cor0
----
-155
-216
-235

query I rowsort
SELECT ( col0 ) + - 53 FROM tab1 AS cor0
----
-2
32
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + + col0 AND + ( - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - + COUNT( DISTINCT - 18 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7723
SELECT - + COUNT ( DISTINCT - 18 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT - MAX( + + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7724
SELECT - MAX ( + + col0 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col1 col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT - 19 - + col0 AS col2 FROM tab0 AS cor0
----
-106
-116
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86 AS col2, col1 + + 1 col1 FROM tab2 AS cor0
----
-86
52
-86
68
-86
78

query I rowsort
SELECT ALL - + 26 + + 51 * col2 FROM tab2 AS cor0
----
1147
2014
2932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( - SUM( DISTINCT + ( + col0 ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( - SUM ( DISTINCT + ( + col0 ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - + 30 AS col2 FROM tab0 AS cor0
----
-117
-127
-45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 71 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT COUNT( * ) * - + 29 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT COUNT ( * ) * - + 29 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7733
SELECT DISTINCT col2, + CAST( 34 AS SIGNED ) col1 FROM tab2
----
23
34
40
34
58
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7733
SELECT DISTINCT col2, + CAST ( 34 AS INTEGER ) col1 FROM tab2
----
23
34
40
34
58
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 * + - 46 * 57 col2 FROM tab2
----
-11770158
-15545838
-6819822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL - + col2 FROM tab1 WHERE + col2 NOT BETWEEN + col0 + + - col2 AND + + CAST( NULL AS SIGNED ) * - 18 + - col1 + - - col0
----

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - + col2 FROM tab1 WHERE + col2 NOT BETWEEN + col0 + + - col2 AND + + CAST ( NULL AS INTEGER ) * - 18 + - col1 + - - col0
----

query II rowsort
SELECT col2 AS col2, + col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT + 15 AS col1, col1 FROM tab2
----
15
51
15
67
15
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT - + MAX( DISTINCT - 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7738
SELECT - + MAX ( DISTINCT - 23 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7739
SELECT ALL * FROM tab1 cor0 WHERE + col0 * - - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7739
SELECT ALL * FROM tab1 cor0 WHERE + col0 * - - CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col0 * col2 FROM tab1 AS cor0 WHERE NOT col0 + + 22 + + + col0 * + ( 83 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + col0 * + - 25 FROM tab0 AS cor0
----
2175
2425
375

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT DISTINCT COUNT( * ) + - - 99 AS col1, SUM( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
102
156

skipif mysql # not compatible
query II rowsort label-7743
SELECT DISTINCT COUNT ( * ) + - - 99 AS col1, SUM ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
102
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 / + - col2 > ( NULL )
----

query I rowsort
SELECT ALL - - col1 + + 28 - + + col0 * + + col1 * + - 73 FROM tab2 AS cor0
----
171337
359849
366920

query I rowsort
SELECT ALL + + col0 * + col1 + - - col2 + col0 + ( + 8 ) AS col2 FROM tab1 AS cor0
----
4444
577
869

query I rowsort
SELECT 64 + + + 35 AS col1 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT col1 * + + ( col1 ) AS col0 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + - col2 IS NULL
----

query I rowsort
SELECT ALL ( - col1 ) + + 13 FROM tab2
----
-38
-54
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT - + col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * - 30 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7751
SELECT - + col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * - 30 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7752
SELECT + COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7752
SELECT + COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT - + col2 - + 91 + + + col0 AS col2 FROM tab1 AS cor0
----
-136
-65
-68

query I rowsort
SELECT + col2 * - + col2 + + - 88 * + 94 AS col2 FROM tab2
----
-11636
-8801
-9872

query I rowsort
SELECT + 34 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - 58 + + 83 AS col0 FROM tab0
----
25
25
25

query I rowsort
SELECT ALL - - 96 * col2 + - - col2 AS col1 FROM tab0 WHERE NOT + 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT + MIN( + - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + MIN ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + 22 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7760
SELECT ( + col2 ) AS col2, CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + 76 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7760
SELECT ( + col2 ) AS col2, CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + 76 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT col2 DIV ( - 60 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7761
SELECT col2 / ( - 60 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT + - col1 DIV 41 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT + - col1 / 41 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7763
SELECT ALL col1 - - + col1 * col1 AS col2, col0 FROM tab1 cor0 WHERE NOT col0 NOT IN ( col1, 70, - CAST( - - 86 AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-7763
SELECT ALL col1 - - + col1 * col1 AS col2, col0 FROM tab1 cor0 WHERE NOT col0 NOT IN ( col1, 70, - CAST ( - - 86 AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 20 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 50 <= + col0 * + col1 + - 65
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7766
SELECT - CAST( NULL AS DECIMAL ), COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7766
SELECT - CAST ( NULL AS REAL ), COUNT ( * ) AS col2 FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + MAX( - 82 ) AS col0 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-7767
SELECT + MAX ( - 82 ) AS col0 FROM tab1
----
-82

query II rowsort
SELECT - col0, 84 AS col2 FROM tab1
----
-51
84
-85
84
-91
84

query II rowsort
SELECT DISTINCT + col2, 31 AS col0 FROM tab1
----
59
31
68
31
96
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 = - + col2 - + + 20
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 61 <> ( col2 - + col1 )
----

query I rowsort
SELECT ALL + + col0 * col2 * - - col0 FROM tab2 WHERE NOT - + 32 IS NULL
----
163840
326250
48668

query II rowsort
SELECT col2 AS col1, col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT + - CAST( - + 96 AS SIGNED ) FROM tab0 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-7774
SELECT + - CAST ( - + 96 AS INTEGER ) FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT 5 FROM tab0 WHERE NOT - 71 > ( 35 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT + col0 DIV - ( - col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7776
SELECT + col0 / - ( - col2 ) FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL + COUNT( * ) FROM tab1 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7779
SELECT ALL col0 * - CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL col0 * - CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + col2 * - 75 + + col2 - + + col2 FROM tab1 AS cor0
----
-4425
-5100
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT 2 * - COUNT( * ) * + 38 * - + 40 AS col1 FROM tab2 cor0
----
9120

skipif mysql # not compatible
query I rowsort label-7781
SELECT 2 * - COUNT ( * ) * + 38 * - + 40 AS col1 FROM tab2 cor0
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT 83 * COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT 83 * COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col0 col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7785
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL col0 * + col1 AS col0, - col0 FROM tab0
----
1215
-15
1827
-87
97
-97

query I rowsort
SELECT DISTINCT + col1 * + 66 AS col0 FROM tab1
----
3102
330
924

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT 82 + + + 33 DIV - + col2 FROM tab2
----
81
82
82

skipif mysql # not compatible
query I rowsort label-7788
SELECT 82 + + + 33 / - + col2 FROM tab2
----
81
82
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT + + SUM( + col2 ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT + + SUM ( + col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 79 - + 25 * + + col0 FROM tab0 AS cor0
----
-2009
-2249
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT + COUNT( - 2 ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + COUNT ( - 2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 34 + - - 86 - - 82 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
202

query I rowsort
SELECT - 41 - - + col1 FROM tab0
----
-20
-40
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7794
SELECT col2 - + - CAST( - + col2 AS SIGNED ) col1, + CAST( 74 AS SIGNED ) + - 35 AS col2 FROM tab2
----
0
39
0
39
0
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7794
SELECT col2 - + - CAST ( - + col2 AS INTEGER ) col1, + CAST ( 74 AS INTEGER ) + - 35 AS col2 FROM tab2
----
0
39
0
39
0
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT ALL + col1 DIV + - col0 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + col1 / + - col0 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + ( ( - + 26 ) ) - - col0 FROM tab2
----
20
38
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT + MIN( ALL - 34 ) col0 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7797
SELECT + MIN ( ALL - 34 ) col0 FROM tab2 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT + ( - 10 ) * + - col0 - + + col1 + - + CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7798
SELECT + ( - 10 ) * + - col0 - + + col1 + - + CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col2 + - col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - + 22 / 28 IS NOT NULL
----

query I rowsort
SELECT + + ( col1 ) FROM tab2 cor0 WHERE NOT - 45 < 60
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL - CAST( + - CAST( + ( + + COUNT( * ) ) AS SIGNED ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - CAST ( + - CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7803
SELECT ALL col1 DIV - col1 AS col1, 52 AS col2 FROM tab1
----
-1
52
-1
52
-1
52

skipif mysql # not compatible
query II rowsort label-7803
SELECT ALL col1 / - col1 AS col1, 52 AS col2 FROM tab1
----
-1
52
-1
52
-1
52

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL <> ( - - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT + MIN( DISTINCT 46 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7805
SELECT + MIN ( DISTINCT 46 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT + + col0 DIV 76 * - - 17 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT + + col0 / 76 * - - 17 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 0 * 45 FROM tab1
----
0
0
0

query II rowsort
SELECT ( + + 76 ) * + - 65 + col1 * ( + col2 ) AS col2, col2 AS col0 FROM tab2
----
-1054
58
-1860
40
-3767
23

query I rowsort
SELECT 49 * - col1 AS col0 FROM tab2
----
-2499
-3283
-3773

query I rowsort
SELECT 71 + + col2 AS col1 FROM tab2 AS cor0
----
111
129
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT DISTINCT - COUNT( DISTINCT col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT - COUNT ( DISTINCT col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - COUNT( * ) + - + 59 AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7814
SELECT - COUNT ( * ) + - + 59 AS col0 FROM tab2 AS cor0
----
-62

query II rowsort
SELECT col2 * + + col0 + + + col2, ( + 81 ) AS col1 FROM tab0 AS cor0
----
752
81
880
81
9702
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7816
SELECT * FROM tab1 AS cor0 WHERE NULL = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7816
SELECT * FROM tab1 AS cor0 WHERE NULL = CAST ( NULL AS REAL )
----

query I rowsort
SELECT + 22 + col1 AS col0 FROM tab2 cor0
----
73
89
99

query I rowsort
SELECT ALL + 78 + col2 AS col1 FROM tab0 AS cor0
----
125
177
88

query I rowsort
SELECT DISTINCT - col0 + - + 42 + - - col1 * 90 FROM tab0
----
-49
1761
7233

query II rowsort
SELECT col0, - col0 - + col2 FROM tab2
----
46
-69
64
-104
75
-133

query I rowsort
SELECT ALL col1 * 51 FROM tab1
----
2397
255
714

query I rowsort
SELECT ALL + col0 - + col1 + - ( + col1 ) * + col2 * 27 + + col1 - + 23 * - col1 * - + col1 + + col1 * col0 + + + col0 + col0 + col2 FROM tab1
----
-132481
-39833
-7801

query I rowsort
SELECT - col0 * col2 / - + 49 * - col0 * - 6 / + - col1 AS col0 FROM tab0 WHERE NULL BETWEEN col2 * - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT ALL - col1 + - col2 - + - 1 * + col1 DIV + + 14 AS col2 FROM tab1 cor0
----
-109
-112
-64

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - col1 + - col2 - + - 1 * + col1 / + + 14 AS col2 FROM tab1 cor0
----
-109
-112
-64

query I rowsort
SELECT - - ( - col1 ) - + + col1 AS col2 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - col1 + - - 50 FROM tab0 AS cor0
----
-31
29
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT - CAST( NULL AS SIGNED ) * - 5 - 36 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT - CAST ( NULL AS INTEGER ) * - 5 - 36 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + + 87 FROM tab1 AS cor0
----
138
172
178

query I rowsort
SELECT 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT 72 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 37 + - col2 + + 91 > - col1
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL - + SUM( ALL + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - + SUM ( ALL + + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - MAX( - - 27 ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7834
SELECT - MAX ( - - 27 ) FROM tab2 cor0
----
-27

query II rowsort
SELECT ALL + col0 * - + col1 AS col2, + col1 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + + 66 * - CAST( + + 16 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-104544
-10560
-49632

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + + 66 * - CAST ( + + 16 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-104544
-10560
-49632

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT ALL - col2 DIV + col0 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL - col2 / + col0 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT COUNT( * ) DIV - MAX( col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT COUNT ( * ) / - MAX ( col0 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 44 col2 FROM tab0
----
-2068
-4356
-440

query I rowsort
SELECT DISTINCT + 0 * - - col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL MAX( - + 81 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL MAX ( - + 81 ) FROM tab2
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 97 col2 FROM tab0
----
10
97
47
97
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 88 + col1 AS col0 FROM tab0 cor0
----
-15
169
-87
109
-97
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + 59 + + col2 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT - col2 + - 86 + col0 FROM tab2 AS cor0
----
-62
-63
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 77 IS NOT NULL
----

query I rowsort
SELECT col2 + - col2 * col1 + + col0 FROM tab2
----
-1104
-2976
-3753

query I rowsort
SELECT 79 * col0 + + 80 AS col2 FROM tab0 AS cor0
----
1265
6953
7743

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL ( + MIN( + - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL ( + MIN ( + - col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - col0 + + + 68 FROM tab2 AS cor0
----
-7
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + COUNT( + col0 ) + 66 AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7854
SELECT + COUNT ( + col0 ) + 66 AS col2 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT 39 DIV - 9 + + - ( col0 ) AS col2 FROM tab0
----
-101
-19
-91

skipif mysql # not compatible
query I rowsort label-7855
SELECT 39 / - 9 + + - ( col0 ) AS col2 FROM tab0
----
-101
-19
-91

query I rowsort
SELECT DISTINCT 49 - + 40 FROM tab2
----
9

query I rowsort
SELECT ALL + col1 * + col1 * + ( col2 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT col1 DIV + + col2 + + col0 AS col2 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-7858
SELECT col1 / + + col2 + + col0 AS col2 FROM tab0
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + SUM( - 66 ) AS col2 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7859
SELECT + SUM ( - 66 ) AS col2 FROM tab1 AS cor0
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT MIN( CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) ) * - MIN( col2 ) FROM tab1 AS cor0
----
5369

skipif mysql # not compatible
query I rowsort label-7860
SELECT MIN ( CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) * - MIN ( col2 ) FROM tab1 AS cor0
----
5369

query I rowsort
SELECT DISTINCT + 22 * col2 FROM tab0 AS cor0 WHERE ( + 79 ) <> NULL
----

query I rowsort
SELECT col1 * 43 + col1 AS col2 FROM tab0 cor0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( ( + ( col0 ) ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( ( + ( col0 ) ) ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col0 AS col2, + 88 FROM tab0 cor0
----
15
88
87
88
97
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT DISTINCT AVG ( DISTINCT + col2 ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT AVG ( DISTINCT + col2 ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT + + 47 DIV + - COUNT( * ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7866
SELECT + + 47 / + - COUNT ( * ) FROM tab2 cor0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - 97 )
----

query I rowsort
SELECT DISTINCT + + ( + 9 ) AS col0 FROM tab0 WHERE + 6 / + col0 IS NULL
----

query I rowsort
SELECT - col1 * - - ( + + col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT + + 60, - 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 8f368925ac5b9b2fe271b12cbc3777a6

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT DISTINCT COUNT( + 44 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT COUNT ( + 44 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - MAX( - col1 ) + + + ( - MIN( ALL - 69 ) ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7872
SELECT - MAX ( - col1 ) + + + ( - MIN ( ALL - 69 ) ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
123

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 >= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col1 * col1 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + 59 <= NULL OR ( col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) * - 18 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 18 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7877
SELECT + CAST( NULL AS SIGNED ) AS col0, 71 col0 FROM tab1 cor0
----
NULL
71
NULL
71
NULL
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7877
SELECT + CAST ( NULL AS INTEGER ) AS col0, 71 col0 FROM tab1 cor0
----
NULL
71
NULL
71
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT + COUNT( * ) + - + 9 AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + COUNT ( * ) + - + 9 AS col0 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL 86 + + + MAX( ALL - 25 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL 86 + + + MAX ( ALL - 25 ) AS col2 FROM tab2
----
61

query I rowsort
SELECT ALL col1 - + col1 + - col1 AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 94 * - + col2 AS col2 FROM tab2 WHERE - - 41 * - col2 <= NULL
----

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - + col2 + + 84 AND NULL
----

query I rowsort
SELECT ALL col0 - + ( + 59 ) FROM tab2
----
-13
16
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7885
SELECT ( - CAST( NULL AS DECIMAL ) ) * + 54 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT ( - CAST ( NULL AS REAL ) ) * + 54 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL - CAST( NULL AS SIGNED ) * - 66 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - CAST ( NULL AS INTEGER ) * - 66 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - 21 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + COUNT( * ) * 96 AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + COUNT ( * ) * 96 AS col2 FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT COUNT( + 41 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7889
SELECT COUNT ( + 41 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT + col2 * + ( + col2 ) * - col0 + - 77 + + col0 + col1 * CAST( - + 83 AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-10433
-39920
-950760

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + col2 * + ( + col2 ) * - col0 + - 77 + + col0 + col1 * CAST ( - + 83 AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-10433
-39920
-950760

query I rowsort
SELECT - 68 * 14 FROM tab2 AS cor0
----
-952
-952
-952

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ( - - col2 ) * - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT DISTINCT + COUNT( * ) AS col1, + 96 AS col0 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-7894
SELECT DISTINCT + COUNT ( * ) AS col1, + 96 AS col0 FROM tab1 AS cor0
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL <= - col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7896
SELECT ALL col0, + col2 - 59 DIV col0 - col2 FROM tab1
----
51
-1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7896
SELECT ALL col0, + col2 - 59 / col0 - col2 FROM tab1
----
51
-1
85
0
91
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 75 AS col0, + 44 AS col2 FROM tab2
----
-75
44

query I rowsort
SELECT - - 14 + + + col2 FROM tab0 AS cor0
----
113
24
61

query I rowsort
SELECT DISTINCT + col0 * + - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + COUNT( * ) * + 34 AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-7901
SELECT + COUNT ( * ) * + 34 AS col1 FROM tab2
----
102

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE ( - + col2 / + - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT + COUNT( * ) - + 26 AS col0, + MIN( col1 ) FROM tab2 AS cor0
----
-23
51

skipif mysql # not compatible
query II rowsort label-7903
SELECT + COUNT ( * ) - + 26 AS col0, + MIN ( col1 ) FROM tab2 AS cor0
----
-23
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT col2 + col0 * - 54 + - + 52 DIV - 62 * + - col0 FROM tab0 AS cor0
----
-4688
-5139
-763

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT col2 + col0 * - 54 + - + 52 / - 62 * + - col0 FROM tab0 AS cor0
----
-4688
-5139
-763

query I rowsort
SELECT - + ( 31 ) FROM tab2 AS cor0 WHERE + 63 IS NOT NULL
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col2 - + + col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL ( - col0 ) + - + 4 * 67 FROM tab0
----
-283
-355
-365

query I rowsort
SELECT ALL col0 - - - col1 * + ( col0 ) FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT + 30 - col1 AS col1 FROM tab2
----
-21
-37
-47

query I rowsort
SELECT DISTINCT - col1 - - 18 AS col1 FROM tab0
----
-3
-63
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) * 44 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) * 44 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 17 * col0 AS col0 FROM tab2
----
1088
1275
782

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT SUM( ALL 11 ) AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT SUM ( ALL 11 ) AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT + COUNT( ALL - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + COUNT ( ALL - + col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) - - COUNT( * ) - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) - - COUNT ( * ) - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( 91 ) * - 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c2fc2f2802fb3ffe6f0273eae47c2e85

query I rowsort
SELECT ALL + 88 AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7922
SELECT DISTINCT ( col2 ) * + col1 + - col1 DIV 32 * - - CAST( 24 AS SIGNED ) FROM tab0 AS cor0
----
210
3759
99

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT ( col2 ) * + col1 + - col1 / 32 * - - CAST ( 24 AS INTEGER ) FROM tab0 AS cor0
----
210
3759
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 29 IS NOT NULL
----

query I rowsort
SELECT 17 + col1 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + SUM( + 51 ) + + COUNT( * ) AS col2 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-7926
SELECT + SUM ( + 51 ) + + COUNT ( * ) AS col2 FROM tab1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT DISTINCT CAST( + + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 88 * + col0 * - 9 AS col1 FROM tab0
----
-11880
-68904
-76824

query I rowsort
SELECT - + col0 * + + 86 + col0 + + + col1 AS col0 FROM tab1 WHERE + + col1 IS NOT NULL
----
-4321
-7220
-7688

query I rowsort
SELECT ALL - 46 + + - col2 + + - col1 + + + ( col0 ) - + - col2 + col2 + - col0 * col1 * + col1 + 2 * - 4 FROM tab0 AS cor0
----
-38345
-98488
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL + 6 * - - COUNT( * ) col0 FROM tab1 cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7931
SELECT ALL + 6 * - - COUNT ( * ) col0 FROM tab1 cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 col2 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT col0 + + + col2 * - 36 FROM tab0
----
-1677
-273
-3467

query I rowsort
SELECT + col2 * 73 + - col1 FROM tab1
----
4302
4917
6994

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 24 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - 82 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - 82 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
246

query II rowsort
SELECT ALL + col0 + + col1 AS col2, + col2 AS col1 FROM tab1 cor0
----
138
68
65
96
90
59

query I rowsort
SELECT 26 * - 62 FROM tab1 AS cor0
----
-1612
-1612
-1612

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE - col2 + - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + 39 * - - col1 AS col2 FROM tab1 cor0
----
1833
195
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7941
SELECT ALL + 18 AS col0, + COUNT( CAST( + 1 AS SIGNED ) ) - + 47 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18
-44

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL + 18 AS col0, + COUNT ( CAST ( + 1 AS INTEGER ) ) - + 47 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT - + 42, + MAX( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
-42
-51

skipif mysql # not compatible
query II rowsort label-7942
SELECT - + 42, + MAX ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
-42
-51

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT DISTINCT + col1 + - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT + col1 + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1 - + 13 AS col2, + col2 + + col1 AS col0 FROM tab0
----
-12
100
68
128
8
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 90 + - col0 + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 90 + - col0 + col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT DISTINCT COUNT( col1 ) * - 83 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT COUNT ( col1 ) * - 83 FROM tab2
----
-249

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 68 * - + col2 col2 FROM tab1 AS cor0
----
236708
314432
626688

query I rowsort
SELECT col0 + col0 AS col1 FROM tab0 WHERE NOT + col1 = - + ( - col2 )
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + + col0 AND + 72
----

query II rowsort
SELECT ALL + - 12, - col0 FROM tab1 cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + COUNT( ALL + 68 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7953
SELECT + COUNT ( ALL + 68 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + - COUNT( * ) + + - MAX( ALL + 49 ) * MIN( ALL col0 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-741

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + - COUNT ( * ) + + - MAX ( ALL + 49 ) * MIN ( ALL col0 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-741

query I rowsort
SELECT DISTINCT - - 49 AS col2 FROM tab0 AS cor0 WHERE 74 / - - 95 > - col0
----
49

query I rowsort
SELECT ALL + 79 + - col0 AS col0 FROM tab2 AS cor0
----
15
33
4

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + MIN( col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7958
SELECT + MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT ALL col0 DIV 29 + - + 31 FROM tab2 AS cor0
----
-29
-29
-30

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL col0 / 29 + - + 31 FROM tab2 AS cor0
----
-29
-29
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + ( - + col1 ) = col1 * - ( + - col2 ) + - 1 - - - 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7961
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 68 - + + col0 AS col2, - col2 + + - col0 col1 FROM tab1 cor0
----
NULL
-144
NULL
-147
NULL
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7961
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 68 - + + col0 AS col2, - col2 + + - col0 col1 FROM tab1 cor0
----
NULL
-144
NULL
-147
NULL
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - - SUM( + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - - SUM ( + + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT ALL - 36 + COUNT( * ) * - MAX( DISTINCT + ( - 80 ) ) col1, COUNT( * ) FROM tab0
----
204
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7963
SELECT ALL - 36 + COUNT ( * ) * - MAX ( DISTINCT + ( - 80 ) ) col1, COUNT ( * ) FROM tab0
----
204
3

query II rowsort
SELECT DISTINCT + col2 AS col0, 86 * + 9 FROM tab0 WHERE NOT - col2 IS NULL
----
10
774
47
774
99
774

query I rowsort
SELECT + col2 - 17 FROM tab0 WHERE - + col2 BETWEEN - col1 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT COUNT( * ) * - COUNT( * ) + + + 96 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7967
SELECT COUNT ( * ) * - COUNT ( * ) + + + 96 AS col1 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT - 2 * + + MIN( ALL - 62 ) + + + 82 AS col0 FROM tab0 AS cor0
----
206

skipif mysql # not compatible
query I rowsort label-7968
SELECT - 2 * + + MIN ( ALL - 62 ) + + + 82 AS col0 FROM tab0 AS cor0
----
206

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 0 <> NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 69 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7971
SELECT ALL * FROM tab2 WHERE NOT CAST( - 69 AS SIGNED ) >= + - col0
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-7971
SELECT ALL * FROM tab2 WHERE NOT CAST ( - 69 AS INTEGER ) >= + - col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT col0 - + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7972
SELECT col0 - + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT 29 * col2 - + 92 FROM tab2 AS cor0
----
1068
1590
575

query II rowsort
SELECT + + 49 AS col1, - col1 FROM tab0 AS cor0 WHERE - col1 <> + col1 * col0
----
49
-1
49
-21
49
-81

query I rowsort
SELECT ALL ( - 30 ) AS col0 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT 52 * + - ( 61 ) * + - col2 FROM tab2 AS cor0 WHERE NOT 43 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL + 66 * - - COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + 66 * - - COUNT ( * ) FROM tab1 AS cor0
----
198

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL 91 * + 89 FROM tab0 AS cor0
----
8099
8099
8099

query II rowsort
SELECT col1, + 58 FROM tab1
----
14
58
47
58
5
58

query II rowsort
SELECT + col0 AS col2, - 40 AS col0 FROM tab2
----
46
-40
64
-40
75
-40

query I rowsort
SELECT DISTINCT + 34 * 44 AS col0 FROM tab1
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT MIN( 77 ) AS col2 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-7983
SELECT MIN ( 77 ) AS col2 FROM tab0
----
77

query II rowsort
SELECT + col0, 40 + + col1 AS col2 FROM tab0
----
15
121
87
61
97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT - COUNT( * ) * - 67 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - COUNT ( * ) * - 67 FROM tab1 AS cor0
----
201

query II rowsort
SELECT - col2, - 38 AS col2 FROM tab2 AS cor0
----
-23
-38
-40
-38
-58
-38

query I rowsort
SELECT DISTINCT + col0 * - col1 * - + col1 AS col0 FROM tab1 cor0
----
201019
2125
9996

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 89 / col0 / + - col1 > NULL
----

query I rowsort
SELECT DISTINCT - ( + + 89 ) AS col1 FROM tab0 cor0
----
-89

query I rowsort
SELECT DISTINCT - col0 + + 13 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ( + 85 ) + + + 31 + ( + col2 ) * 15 FROM tab1 AS cor0
----
1001
1136
1556

query II rowsort
SELECT ALL col1 + col0 AS col1, col2 - col1 AS col1 FROM tab1 AS cor0
----
138
21
65
82
90
54

query I rowsort
SELECT DISTINCT - col1 + col2 + 34 FROM tab0 cor0
----
0
132
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT DISTINCT + col0 DIV + col2 + + 90 FROM tab2 AS cor0
----
91
92

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + col0 / + col2 + + 90 FROM tab2 AS cor0
----
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 94, ( - 25 ) col2 FROM tab2 AS cor0
----
19
-25
30
-25
48
-25

query I rowsort
SELECT ALL col0 + - - 0 * + - col2 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT + 59 AS col1, + COUNT( * ) FROM tab2
----
59
3

skipif mysql # not compatible
query II rowsort label-7997
SELECT + 59 AS col1, + COUNT ( * ) FROM tab2
----
59
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * - + 37 FROM tab0
----
-3219
-3589
-555

query II rowsort
SELECT ALL 93, col2 FROM tab2
----
93
23
93
40
93
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT + - 48 - + - CAST( - col1 AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
-57
-76
-85

skipif mysql # not compatible
query I rowsort label-8002
SELECT + - 48 - + - CAST ( - col1 AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
-57
-76
-85

query I rowsort
SELECT DISTINCT - 29 + - - 72 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL col2 * - col0 + - + col0 + + - 68 FROM tab0 AS cor0
----
-1025
-788
-9768

query I rowsort
SELECT ALL col2 * - 57 AS col0 FROM tab0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT DISTINCT 75 + - col1 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
28
61
70

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT 75 + - col1 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
28
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - 56 + COUNT( DISTINCT - col1 + 55 * 50 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - 56 + COUNT ( DISTINCT - col1 + 55 * 50 ) FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL = ( col0 * CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL = ( col0 * CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT col1 + 99 AS col0 FROM tab2
----
150
166
176

query I rowsort
SELECT 76 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( - ( + ( col0 ) ) * col2 ) AND ( 75 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT DISTINCT 67 DIV + col2 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT 67 / + col2 AS col2 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8015
SELECT COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab2
----
12

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 38 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT SUM( + 52 ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT SUM ( + 52 ) FROM tab1
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 81 / col2 ) <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT COUNT( DISTINCT - 41 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( DISTINCT - 41 ) FROM tab0
----
1

query I rowsort
SELECT ( 80 ) AS col2 FROM tab1
----
80
80
80

query I rowsort
SELECT DISTINCT + col2 / + col2 AS col2 FROM tab1 WHERE NULL <= ( col0 - 68 )
----

query I rowsort
SELECT DISTINCT - col2 + + 27 AS col1 FROM tab1
----
-32
-41
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT COUNT( * ) FROM tab1 WHERE 35 * - col1 + 51 NOT BETWEEN col1 * col0 + 86 AND ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8024
SELECT COUNT ( * ) FROM tab1 WHERE 35 * - col1 + 51 NOT BETWEEN col1 * col0 + 86 AND ( col0 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT + CAST( 98 AS SIGNED ) + ( - 24 ) * COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL > 30 / 60 + - col0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8025
SELECT + CAST ( 98 AS INTEGER ) + ( - 24 ) * COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL > 30 / 60 + - col0
----
98

query I rowsort
SELECT DISTINCT 6 / col0 + 6 * + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 * 42 AS col1 FROM tab2 AS cor0
----
2142
2814
3234

query I rowsort
SELECT col2 + 29 FROM tab1 AS cor0
----
125
88
97

query I rowsort
SELECT col2 * col2 + col1 AS col0 FROM tab0
----
121
2290
9802

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 21 - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ( COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-8031
SELECT ( COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
-58

query I rowsort
SELECT ALL + col1 * 43 AS col0 FROM tab1 AS cor0
----
2021
215
602

query I rowsort
SELECT ALL + - 46 + - col0 AS col1 FROM tab2 AS cor0
----
-110
-121
-92

query I rowsort
SELECT ( ( + ( + 29 ) ) ) FROM tab0 cor0
----
29
29
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * 0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL <= ( + col0 )
----

query I rowsort
SELECT ( + col0 ) / col1 AS col0 FROM tab2 AS cor0 WHERE - 83 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8040
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) + - 90 )
----

skipif mysql # not compatible
query III rowsort label-8040
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) + - 90 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + col2 col2 FROM tab1 cor0
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 - + col0 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 / 63 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 17 + - 35 AS col1 FROM tab2
----
1104
1274
832

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 > ( 46 )
----
51
14
96
85
5
59

query I rowsort
SELECT ALL + 91 + + - 87 AS col1 FROM tab2
----
4
4
4

query I rowsort
SELECT ALL - col1 - col1 + 74 FROM tab1
----
-20
46
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8048
SELECT + MAX( DISTINCT - CAST( + col2 AS SIGNED ) ) + - ( - COUNT( * ) ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-8048
SELECT + MAX ( DISTINCT - CAST ( + col2 AS INTEGER ) ) + - ( - COUNT ( * ) ) AS col0 FROM tab0
----
-7

query I rowsort
SELECT + col2 + - - col2 AS col1 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - COUNT( * ) + - MAX( 17 ) + - COUNT( 21 + ( - 16 + + col0 ) ) AS col1 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-8050
SELECT - COUNT ( * ) + - MAX ( 17 ) + - COUNT ( 21 + ( - 16 + + col0 ) ) AS col1 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT - 74 + COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) = 29 + 56 / col0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8051
SELECT - 74 + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) = 29 + 56 / col0
----
-74

query I rowsort
SELECT col0 + + - 78 * col1 AS col2 FROM tab2 cor0
----
-3932
-5151
-5942

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( col0 * - 65 + - 70 ) IS NULL
----
51
85
91

query I rowsort
SELECT 5 * + 93 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( ( 11 ) * + col0 - 59 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 0 - + 97 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 63 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8058
SELECT ALL * FROM tab2 WHERE ( + CAST( 40 AS DECIMAL ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8058
SELECT ALL * FROM tab2 WHERE ( + CAST ( 40 AS REAL ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - 62 * - COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-8059
SELECT - 62 * - COUNT ( * ) FROM tab2
----
186

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab0 WHERE NOT + 85 * + 85 + ( 4 ) IS NOT NULL
----

query I rowsort
SELECT 69 * + - 67 * ( col1 ) + - col1 FROM tab2 AS cor0
----
-235824
-309808
-356048

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 10 ) NOT IN ( - ( col0 ) )
----

query I rowsort
SELECT + - col0 * - ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8064
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( + col0 ) IS NULL
----
3

query I rowsort
SELECT ALL - col0 * 34 * - col2 FROM tab1 cor0
----
166464
170510
210392

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 - + ( + col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 IN ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 42 + - col0 NOT BETWEEN ( col2 ) AND col0 + - col1 * 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col1 < ( + 92 ) AND NOT + col2 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT COUNT( - col1 ) * 68 AS col1 FROM tab0 WHERE NOT col0 * - + 47 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT COUNT ( - col1 ) * 68 AS col1 FROM tab0 WHERE NOT col0 * - + 47 NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 4 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 4 AS col2 FROM tab1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8073
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col2, ( + + 68 ) DIV MAX( DISTINCT ( 28 ) * col1 ) FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-8073
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col2, ( + + 68 ) / MAX ( DISTINCT ( 28 ) * col1 ) FROM tab2
----
3
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8076
SELECT - col0 + + CAST( NULL AS DECIMAL ) * + col0 FROM tab0 AS cor0 WHERE ( + 8 ) IN ( - 8 + + CAST( - + 59 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8076
SELECT - col0 + + CAST ( NULL AS REAL ) * + col0 FROM tab0 AS cor0 WHERE ( + 8 ) IN ( - 8 + + CAST ( - + 59 AS REAL ) )
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0 WHERE ( - 92 ) + - - col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 3 * 0 + + + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 * - 56 + + 83 + - - ( - col2 ) FROM tab1 AS cor0
----
-256
-2617
-797

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8081
SELECT * FROM tab0 WHERE ( - col0 + 7 > + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8081
SELECT * FROM tab0 WHERE ( - col0 + 7 > + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 97
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT COUNT( * ) AS col2, + 57 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-8083
SELECT COUNT ( * ) AS col2, + 57 FROM tab2
----
3
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT 27 * + + AVG ( ALL - col1 ) + - CAST( NULL AS SIGNED ) / - 73 / - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT 27 * + + AVG ( ALL - col1 ) + - CAST ( NULL AS INTEGER ) / - 73 / - COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8085
SELECT ( + CAST( col0 AS SIGNED ) ) * - col2 AS col0, col1 * col2 - + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
query II rowsort label-8085
SELECT ( + CAST ( col0 AS INTEGER ) ) * - col2 AS col0, col1 * col2 - + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1
----
-4896
NULL
-5015
NULL
-6188
NULL

query I rowsort
SELECT col0 + - 49 + 55 / col1 * 63 AS col1 FROM tab2 WHERE col1 BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT 70 - col1 FROM tab1
----
23
56
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + ( - col2 ) ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + - col0 col2 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT DISTINCT - + 14, ( + + 34 ) AS col2 FROM tab2 AS cor0
----
-14
34

query I rowsort
SELECT + + col2 * + col2 + 75 - 74 + - col0 FROM tab2 cor0
----
1537
3290
484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 7, - 67 col2 FROM tab0 AS cor0
----
7
-67
7
-67
7
-67

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= - + col0 + 84
----

query I rowsort
SELECT ALL + + 52 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - - 99 * - + col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( 89 ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT - COUNT( * ) DIV + CAST( 55 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - COUNT ( * ) / + CAST ( 55 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 * + + 48 + + col2 FROM tab1 cor0
----
2544
4139
4436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL - COUNT( * ) * - + 21 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL - COUNT ( * ) * - + 21 FROM tab1
----
63

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) <= NULL
----

query II rowsort
SELECT ALL 45, ( + + col0 ) AS col0 FROM tab0
----
45
15
45
87
45
97

query II rowsort
SELECT col2, 90 AS col1 FROM tab1
----
59
90
68
90
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 - - col1 NOT BETWEEN col2 AND ( - 60 / col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 - - col1 NOT BETWEEN col2 AND ( - 60 / col2 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > + - 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT DISTINCT - 7 + SUM( DISTINCT - col1 ) AS col0, 59 FROM tab1
----
-73
59

skipif mysql # not compatible
query II rowsort label-8107
SELECT DISTINCT - 7 + SUM ( DISTINCT - col1 ) AS col0, 59 FROM tab1
----
-73
59

query I rowsort
SELECT - - 39 * + col2 + - 95 + - 99 * - ( 43 ) FROM tab0 AS cor0
----
4552
5995
8023

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN 27 * + - col0 + - col1 AND ( - col2 / + 15 * - - col0 )
----

query I rowsort
SELECT 16 + - col0 - + + col2 AS col0 FROM tab2 AS cor0
----
-117
-53
-88

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT - + 26 * col2 + - + col1 DIV 61 + - + col2 - col1 * + col1 FROM tab0 AS cor0
----
-2674
-711
-7831

skipif mysql # not compatible
query I rowsort label-8112
SELECT - + 26 * col2 + - + col1 / 61 + - + col2 - col1 * + col1 FROM tab0 AS cor0
----
-2674
-711
-7831

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + + col0 + 71 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT - - col2 DIV + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8114
SELECT - - col2 / + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col1 * 62 * col2 FROM tab1
----
-18290
-198152
-83328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - 52 col0 FROM tab1
----
2444
260
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT + col0 DIV 4 AS col0 FROM tab2 AS cor0
----
11
16
18

skipif mysql # not compatible
query I rowsort label-8118
SELECT + col0 / 4 AS col0 FROM tab2 AS cor0
----
11
16
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8119
SELECT - 26 DIV + 43 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT - 26 / + 43 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT - COUNT( * ) + + 20 AS col0 FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - COUNT ( * ) + + 20 AS col0 FROM tab0 cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8122
SELECT + 57 * + col2 - - + ( + CAST( NULL AS SIGNED ) ), col2 AS col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8122
SELECT + 57 * + col2 - - + ( + CAST ( NULL AS INTEGER ) ), col2 AS col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL 17 + - + col2 + + col1 + + col1 * col1 FROM tab2 cor0
----
2646
4515
5983

query I rowsort
SELECT - - col2 FROM tab1 WHERE + + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT COUNT( DISTINCT - - 24 ) + 64 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-8125
SELECT COUNT ( DISTINCT - - 24 ) + 64 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT - CAST( NULL AS SIGNED ) * + col1 + - - 1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT - CAST ( NULL AS INTEGER ) * + col1 + - - 1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN + + col1 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL COUNT( * ) FROM tab2 WHERE 16 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL COUNT ( * ) FROM tab2 WHERE 16 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT SUM( - col2 ) * + COUNT( * ) col2 FROM tab1
----
-669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8129
SELECT SUM ( - col2 ) * + COUNT ( * ) col2 FROM tab1
----
-669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT DISTINCT COUNT( * ) DIV - 45 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8130
SELECT DISTINCT COUNT ( * ) / - 45 col1 FROM tab2
----
0

query II rowsort
SELECT - + col0 AS col2, - col2 AS col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8132
SELECT DISTINCT + - COUNT( * ) DIV + MIN( ALL + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT + - COUNT ( * ) / + MIN ( ALL + col2 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col2 AS col0, 33 + - + col1 FROM tab0 AS cor0
----
-10
12
-47
-48
-99
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) * + 9 - + - CAST( NULL AS SIGNED ) + 22 * 62 * - - col1 * - + 37 + col0 + - - 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) * + 9 - + - CAST ( NULL AS INTEGER ) + 22 * 62 * - - col1 * - + 37 + col0 + - - 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 37 * 20 * col0 FROM tab2 AS cor0
----
34040
47360
55500

query I rowsort
SELECT + col0 - + col2 * - col0 * - 18 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-18998
-46016
-78225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8137
SELECT ALL 11 DIV + 58, + COUNT( * ) - - + MIN( - + 94 ) AS col2 FROM tab0
----
0
-91

skipif mysql # not compatible
query II rowsort label-8137
SELECT ALL 11 / + 58, + COUNT ( * ) - - + MIN ( - + 94 ) AS col2 FROM tab0
----
0
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + COUNT( * ) * - 24 AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8139
SELECT + COUNT ( * ) * - 24 AS col0 FROM tab1
----
-72

query I rowsort
SELECT ALL + + col1 * - col1 AS col1 FROM tab1 WHERE - + 96 NOT BETWEEN + 80 AND NULL
----
-196
-2209
-25

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT DISTINCT 53 + + col0 / + - ( + col2 ) * CAST( NULL AS SIGNED ) / - - 14 * + col0 + col0 * 55 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT 53 + + col0 / + - ( + col2 ) * CAST ( NULL AS INTEGER ) / - - 14 * + col0 + col0 * 55 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL < ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL < ( - col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8145
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) * + 33 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) * + 33 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL - - MAX( ALL - 38 ) AS col0 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - - MAX ( ALL - 38 ) AS col0 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT 63 * col0 AS col1 FROM tab1 AS cor0
----
3213
5355
5733

query II rowsort
SELECT + col0 AS col2, 75 AS col2 FROM tab0 AS cor0
----
15
75
87
75
97
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT MIN( 52 ) DIV 42 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT MIN ( 52 ) / 42 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8150
SELECT + col2 DIV col2 DIV + - col0, col2 col2 FROM tab1 AS cor0 WHERE col1 >= - + col1
----
0
59
0
68
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8150
SELECT + col2 / col2 / + - col0, col2 col2 FROM tab1 AS cor0 WHERE col1 >= - + col1
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT COUNT( * ) AS col2, COUNT( + col1 ) AS col1 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8151
SELECT COUNT ( * ) AS col2, COUNT ( + col1 ) AS col1 FROM tab0 cor0
----
3
3

query I rowsort
SELECT DISTINCT + col2 - + 97 FROM tab2
----
-39
-57
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 - - 39 col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL 29 * + col2 * - + col0 + - col0 AS col2 FROM tab2
----
-126225
-30728
-74304

query II rowsort
SELECT ALL - 33 + col0 AS col2, col1 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 0 * + col1 - - + 85 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL col0 + + col0 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT COUNT( ALL col0 ) * + 30 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8158
SELECT COUNT ( ALL col0 ) * + 30 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT SUM( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8159
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8160
SELECT + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 48 BETWEEN + col0 * col2 AND 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT - CAST( - 77 AS SIGNED ) + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
163

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT - CAST ( - 77 AS INTEGER ) + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8163
SELECT 8 * + + ( + - 7 ) * + COUNT( * ) / - - CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT 8 * + + ( + - 7 ) * + COUNT ( * ) / - - CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + CAST( NULL AS SIGNED ) * - 11 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT + CAST ( NULL AS INTEGER ) * - 11 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - - 61 FROM tab1 AS cor0 WHERE ( NULL IS NULL ) OR 71 * col0 = + + col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * - + col1 * + - 12 * col2 + - + col0 FROM tab0 AS cor0
----
117515
2147133
25113

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab0 WHERE NOT + + col1 * + - 66 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 6 AS col0, 71 AS col2 FROM tab1
----
6
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 32 col0, col0 FROM tab0
----
-32
15
-32
87
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL ( + MAX( + 57 ) ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL ( + MAX ( + 57 ) ) AS col0 FROM tab2
----
57

query II rowsort
SELECT ALL col2, + col1 * + + 45 / 51 AS col2 FROM tab1 WHERE NOT + + col0 / ( - 88 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + MIN( DISTINCT - - col1 ) + + 77 AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-8174
SELECT + MIN ( DISTINCT - - col1 ) + + 77 AS col0 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT + COUNT( * ) + - COUNT( * ) AS col0, - 6 FROM tab0 AS cor0
----
0
-6

skipif mysql # not compatible
query II rowsort label-8175
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0, - 6 FROM tab0 AS cor0
----
0
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + col1 * - + col0 + - col1 * + - 44 col1 FROM tab1 AS cor0
----
-149
-2300
-290

query I rowsort
SELECT - 50 + + col2 + col1 FROM tab1 AS cor0
----
14
60
65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 40 <= col2
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT - 22 + + + ( - col1 ) FROM tab1 AS cor0
----
-27
-36
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - COUNT( * ) + - + COUNT( DISTINCT - + 17 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - COUNT ( * ) + - + COUNT ( DISTINCT - + 17 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 24 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 12 + - + col1 col2 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT col1 + + col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * 5 + + col0 - col2 IS NULL
----

query I rowsort
SELECT + 31 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + ( + COUNT( * ) ) FROM tab0 WHERE NULL > + - col1
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + ( + COUNT ( * ) ) FROM tab0 WHERE NULL > + - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL ( - - MAX( ALL ( - - col2 ) ) ) col0 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-8187
SELECT ALL ( - - MAX ( ALL ( - - col2 ) ) ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + 46, 40 AS col2 FROM tab2
----
46
40

query II rowsort
SELECT + 79 AS col2, 95 - - col2 * ( - - col0 ) AS col0 FROM tab2
----
79
1153
79
2655
79
4445

query II rowsort
SELECT 57, col1 FROM tab2
----
57
51
57
67
57
77

query I rowsort
SELECT + 10 * + + 89 AS col1 FROM tab1
----
890
890
890

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - MIN( ALL 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-8192
SELECT - MIN ( ALL 85 ) FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + - MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col0, col2 + col0 * + col1 )
----
-81

skipif mysql # not compatible
query I rowsort label-8193
SELECT + - MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col0, col2 + col0 * + col1 )
----
-81

query I rowsort
SELECT DISTINCT + 8 * - - 10 AS col0 FROM tab0 AS cor0
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col2 FROM tab1
----
51
51
51

query I rowsort
SELECT ( + - 70 ) * - col0 FROM tab2
----
3220
4480
5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT ALL col1 * - CAST( - ( - col1 ) AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
-103823
-125
-2744

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL col1 * - CAST ( - ( - col1 ) AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
-103823
-125
-2744

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT DISTINCT + col2 DIV - col0 - 85 FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + col2 / - col0 - 85 FROM tab2 cor0
----
-85

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT - COUNT( * ) + 59 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8200
SELECT - COUNT ( * ) + 59 FROM tab2 AS cor0
----
56

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col2 * - col0 * 96 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
470212
481465
596257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT - CAST( NULL AS SIGNED ) * + 84 + - COUNT( ALL + col0 ) * - ( - 29 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT - CAST ( NULL AS INTEGER ) * + 84 + - COUNT ( ALL + col0 ) * - ( - 29 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8204
SELECT DISTINCT + col1 + - CAST( NULL AS DECIMAL ) * + 96 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 24 < + 54
----

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) * + 96 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 24 < + 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col0 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT SUM( DISTINCT 10 ) * - COUNT( * ) AS col1 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8206
SELECT SUM ( DISTINCT 10 ) * - COUNT ( * ) AS col1 FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT ALL 97 AS col1, COUNT( * ) col1 FROM tab2
----
97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8207
SELECT ALL 97 AS col1, COUNT ( * ) col1 FROM tab2
----
97
3

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - col1 / + ( 25 ) + + col1 * col0 * - + col2 * col0 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + ( + MIN( ALL + - col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8209
SELECT + ( + MIN ( ALL + - col0 ) ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL - ( - COUNT( * ) ) * + + 65 FROM tab1 cor0
----
195

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - ( - COUNT ( * ) ) * + + 65 FROM tab1 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + 73 col1 FROM tab1 AS cor0
----
-22
12
18

query I rowsort
SELECT ALL + + col0 * - 98 * - - 8 + 75 FROM tab0 AS cor0
----
-11685
-68133
-75973

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT - 48 + - - 3, + COUNT( * ) AS col1 FROM tab1
----
-45
3

skipif mysql # not compatible
query II rowsort label-8213
SELECT - 48 + - - 3, + COUNT ( * ) AS col1 FROM tab1
----
-45
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 WHERE - col1 + col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT ALL - col2 * col2 DIV + col2 - + + col2 AS col2 FROM tab0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - col2 * col2 / + col2 - + + col2 AS col2 FROM tab0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE - + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - col0 <= col2 + + 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 * + - col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT 20 DIV + col1 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8219
SELECT 20 / + col1 FROM tab1 AS cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT MIN( ALL + - 20 ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-8220
SELECT MIN ( ALL + - 20 ) FROM tab0
----
-20

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE 12 + + + col2 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= + 37 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL + CAST( - col0 AS SIGNED ) * 22 + - col1 + - 94 AS col0 FROM tab2 AS cor0
----
-1157
-1579
-1811

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + CAST ( - col0 AS INTEGER ) * 22 + - col1 + - 94 AS col0 FROM tab2 AS cor0
----
-1157
-1579
-1811

query III rowsort
SELECT * FROM tab0 WHERE NOT 41 <= col0
----
15
81
47

query I rowsort
SELECT DISTINCT + col1 * - col2 * - + 63 FROM tab0
----
13230
239841
6237

query I rowsort
SELECT - 2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - + 77 * + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-3634
-7720
-857

query I rowsort
SELECT DISTINCT - col2 * + + 14 AS col0 FROM tab2 AS cor0
----
-322
-560
-812

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8231
SELECT DISTINCT - 47 * + - 97 + - CAST( NULL AS SIGNED ) + + 10, col0 col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8231
SELECT DISTINCT - 47 * + - 97 + - CAST ( NULL AS INTEGER ) + + 10, col0 col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT + - 99 AS col2 FROM tab1 cor0
----
-99
-99
-99

query I rowsort
SELECT + col1 * 96 + 75 + + col2 AS col0 FROM tab2 AS cor0
----
4994
6565
7507

query I rowsort
SELECT DISTINCT + - col1 + + - col1 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + SUM( 63 ) AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-8235
SELECT + SUM ( 63 ) AS col0 FROM tab2
----
189

query I rowsort
SELECT DISTINCT ( - 21 ) + col2 FROM tab1
----
38
47
75

query I rowsort
SELECT ALL + 46 FROM tab1, tab1 cor0 WHERE NOT + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8239
SELECT CAST( NULL AS SIGNED ) + - 19 AS col2, + MAX( ALL col0 ) + - COUNT( * ) FROM tab0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-8239
SELECT CAST ( NULL AS INTEGER ) + - 19 AS col2, + MAX ( ALL col0 ) + - COUNT ( * ) FROM tab0
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL MIN( + col0 ) * COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL MIN ( + col0 ) * COUNT ( * ) FROM tab2
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8241
SELECT 98 + 64 * - 9 - + col2 AS col0, - col1 / + 66 * - + CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
-501
NULL
-518
NULL
-536
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8241
SELECT 98 + 64 * - 9 - + col2 AS col0, - col1 / + 66 * - + CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
-501
NULL
-518
NULL
-536
NULL

query II rowsort
SELECT - ( + 46 ) + col1 * - col1 AS col2, + ( - - col0 ) FROM tab0 AS cor0
----
-47
97
-487
87
-6607
15

query II rowsort
SELECT ALL + col0 + + + 97, col2 FROM tab2 AS cor0
----
143
23
161
40
172
58

query I rowsort
SELECT + 81 * col1 * ( + 52 ) * - - 5 AS col0 FROM tab0 AS cor0
----
1705860
21060
442260

query I rowsort
SELECT DISTINCT 28 * + col1 * + col2 + + col0 - - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL + - 90 DIV + + col1 col1 FROM tab1 AS cor0
----
-1
-18
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8246
SELECT ALL + - 90 / + + col1 col1 FROM tab1 AS cor0
----
-1
-18
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT ALL 27 DIV + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL 27 / + - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL - - COUNT( DISTINCT + 56 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - - COUNT ( DISTINCT + 56 ) FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT + - 12 DIV - 5 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8250
SELECT + - 12 / - 5 FROM tab2 cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT DISTINCT + - col2 DIV 76 DIV col1 + - 75 col1 FROM tab0 AS cor0
----
-75
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8251
SELECT DISTINCT + - col2 / 76 / col1 + - 75 col1 FROM tab0 AS cor0
----
-75
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-8252
SELECT + ( + 68 ) DIV + col1 AS col2, col0 AS col1 FROM tab1 AS cor0
----
1
91
13
85
4
51

skipif mysql # not compatible
query II rowsort label-8252
SELECT + ( + 68 ) / + col1 AS col2, col0 AS col1 FROM tab1 AS cor0
----
1
91
13
85
4
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT - COUNT( + + col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - COUNT ( + + col0 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 18 BETWEEN 97 AND ( + + col1 ) / col2 + + - 99
----

query II rowsort
SELECT ALL 73 AS col2, + 40 * - col0 FROM tab0
----
73
-3480
73
-3880
73
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - COUNT( * ) * + + MIN( + 32 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8256
SELECT - COUNT ( * ) * + + MIN ( + 32 ) FROM tab1
----
-96

query I rowsort
SELECT 95 * col2 * + col0 FROM tab0
----
66975
82650
912285

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 3 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT - 85 DIV - col2 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - 85 / - col2 AS col1 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8260
SELECT col2, - CAST( - + col2 AS SIGNED ) FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-8260
SELECT col2, - CAST ( - + col2 AS INTEGER ) FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2, - col2 col0, - - 35 FROM tab1 AS cor0
----
9 values hashing to 634385d7ebba5f36a149470a9dafafbb

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 95 > ( + 2 ) + 32
----

query I rowsort
SELECT DISTINCT col2 + col1 - + col2 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL MAX( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL MAX ( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8265
SELECT - 38 DIV - 26 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8265
SELECT - 38 / - 26 AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE ( 68 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col1 ) + + - col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - 63 + + ( + col0 ) * - col1 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT 54 + + - col1 - 70 DIV + - 4 + - col1 FROM tab1 AS cor0
----
-23
43
61

skipif mysql # not compatible
query I rowsort label-8269
SELECT 54 + + - col1 - 70 / + - 4 + - col1 FROM tab1 AS cor0
----
-23
43
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT + SUM( ALL 3 ) + - ( + + 68 ) col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8270
SELECT + SUM ( ALL 3 ) + - ( + + 68 ) col0 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL - + COUNT( - col1 ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8271
SELECT ALL - + COUNT ( - col1 ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + col1 * - - 62 FROM tab1
----
2914
310
868

query I rowsort
SELECT DISTINCT col2 * + 43 * + col0 FROM tab0
----
30315
37410
412929

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT - COUNT( * ) * - + 78 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - COUNT ( * ) * - + 78 FROM tab0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE - col2 - + 21 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + 25 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT DISTINCT - + COUNT( * ) AS col2, - SUM( 0 ) AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT - + COUNT ( * ) AS col2, - SUM ( 0 ) AS col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT - ( 53 ) + ( col1 ) * - - col2 - 9 FROM tab1 AS cor0
----
1282
233
3134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL 30 + - 37 * + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL 30 + - 37 * + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
30

query I rowsort
SELECT - 42 * + col0 FROM tab2
----
-1932
-2688
-3150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) < - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 6 AS col0 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 + col2 = NULL
----

query I rowsort
SELECT col2 * - + col1 + - 68 FROM tab1 AS cor0
----
-1412
-3264
-363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT COUNT( * ) DIV + 8 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8287
SELECT COUNT ( * ) / + 8 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + ( - 76 ) * - COUNT( * ) * ( 29 ) FROM tab2
----
6612

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + ( - 76 ) * - COUNT ( * ) * ( 29 ) FROM tab2
----
6612

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT ALL col1 DIV - - col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL col1 / - - col0 FROM tab0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - ( 65 ) BETWEEN - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col0, - col0 * + col2 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - MIN( + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8293
SELECT - MIN ( + col1 ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col0 * - 54 + - col1 FROM tab2 AS cor0
----
-2535
-3533
-4117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT + + 76 + + CAST( NULL AS SIGNED ) 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-8295
SELECT + + 76 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 86, 23 AS col0 FROM tab0 AS cor0
----
-86
23
-86
23
-86
23

query II rowsort
SELECT ALL 93, col1 FROM tab2
----
93
51
93
67
93
77

query III rowsort
SELECT - 94, col1 AS col2, - 16 AS col2 FROM tab2 AS cor0
----
9 values hashing to e729c56463b5b87181650035f3ba1d42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - - col1 col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ( - col2 ) - + + col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8301
SELECT * FROM tab1 AS cor0 WHERE 32 * + col1 / + 73 <> - - CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8301
SELECT * FROM tab1 AS cor0 WHERE 32 * + col1 / + 73 <> - - CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col2 ) + col1 FROM tab2
----
28
37
9

query I rowsort
SELECT + - 12 + + + 20 * + - ( - - col2 ) FROM tab0 WHERE + col2 * - col2 IS NOT NULL
----
-1992
-212
-952

query I rowsort
SELECT - 20 + - 72 FROM tab0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT SUM( 19 ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT SUM ( 19 ) AS col0 FROM tab0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT DISTINCT ( + - CAST( 26 AS SIGNED ) ) * + 22 * - - col0 - - col0 AS col1 FROM tab0
----
-49677
-55387
-8565

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT ( + - CAST ( 26 AS INTEGER ) ) * + 22 * - - col0 - - col0 AS col1 FROM tab0
----
-49677
-55387
-8565

query I rowsort
SELECT DISTINCT ( + 12 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL COUNT( * ) + 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
101

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL COUNT ( * ) + 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
101

query II rowsort
SELECT - + col2 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL ( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1 * + col2, col2 AS col1 FROM tab1
----
1344
96
295
59
3196
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + MAX( 6 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8313
SELECT + MAX ( 6 ) AS col0 FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 9 = + col1 * + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT DISTINCT + col2 + CAST( + + ( - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + col2 + CAST ( + + ( - col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT DISTINCT COUNT( * ) DIV - - COUNT( ALL + 51 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT COUNT ( * ) / - - COUNT ( ALL + 51 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT col1 * + + 57 * - col0 * + + 17 + + 79 + col2 FROM tab0
----
-1177209
-1770274
-93815

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8318
SELECT CAST( - col1 AS SIGNED ) DIV 39 + - + col1 + - 59 FROM tab1
----
-107
-64
-73

skipif mysql # not compatible
query I rowsort label-8318
SELECT CAST ( - col1 AS INTEGER ) / 39 + - + col1 + - 59 FROM tab1
----
-107
-64
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT 40 + - + 41 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT 40 + - + 41 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + - col0 / - + col0 AND 59
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col1 * 96 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - COUNT( ALL + 38 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8322
SELECT - COUNT ( ALL + 38 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 IN ( + CAST( 66 AS SIGNED ) * + + col0, 6 )
----
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 IN ( + CAST ( 66 AS INTEGER ) * + + col0, 6 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8324
SELECT ALL - 59 * 25 + + 27, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1448
-3

skipif mysql # not compatible
query II rowsort label-8324
SELECT ALL - 59 * 25 + + 27, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1448
-3

query I rowsort
SELECT ALL 65 - + col2 FROM tab1
----
-3
-31
6

query II rowsort
SELECT - 69 AS col2, - col0 + col2 FROM tab0
----
-69
-77
-69
2
-69
32

query III rowsort
SELECT col0, - ( + col0 ) * 63 * col0 * + + ( - 65 ) AS col2, + col2 + + ( 56 ) FROM tab1
----
9 values hashing to cc573d8cd546251d740964bf6c8daf1f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT ALL - CAST( NULL AS SIGNED ) + SUM( DISTINCT col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT col2 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - + col1 - + col0 - + col1 AS col0 FROM tab1 AS cor0
----
-185
-79
-95

query I rowsort
SELECT DISTINCT - col0 - - - 47 * col0 FROM tab1 cor0
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL - ( - 59 ) * - MAX( + ( col1 ) ) FROM tab0 AS cor0
----
-4779

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - ( - 59 ) * - MAX ( + ( col1 ) ) FROM tab0 AS cor0
----
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL SUM( DISTINCT 84 ) col2 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8332
SELECT ALL SUM ( DISTINCT 84 ) col2 FROM tab2
----
84

query I rowsort
SELECT ALL + 55 * - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05f2f003c72ec3f1116bc54e810b933f

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8335
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) * - col1 AND + + 31
----

skipif mysql # not compatible
query III rowsort label-8335
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) * - col1 AND + + 31
----

query III rowsort
SELECT DISTINCT + + ( + col1 ) AS col2, - col2 AS col0, 67 FROM tab0 AS cor0
----
9 values hashing to 1c8ea39d29fa749af04163d8f4e62d76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( + + col2 ) + + - 63
----

query I rowsort
SELECT ALL + 27 * col1 + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
1354
1751
2039

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 36 )
----

query I rowsort
SELECT + col1 * + ( + - col0 ) * - 94 * + + 27 + - col1 AS col1 FROM tab0
----
246185
3083589
4636905

query II rowsort
SELECT ALL - col1, col0 + - 38 AS col2 FROM tab0
----
-1
59
-21
49
-81
-23

query I rowsort
SELECT - 83 * - 90 FROM tab1
----
7470
7470
7470

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < + - 31
----

query I rowsort
SELECT + 1 * - col0 AS col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT DISTINCT + col1, col0 + + 34 FROM tab1
----
14
85
47
125
5
119

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 8 * col1 / - col0 IS NULL
----

query I rowsort
SELECT + col0 + + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL + + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT 57 FROM tab1 WHERE ( col0 <> ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * 80 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 80 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 12 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL + col2 + + 23 AS col1 FROM tab2 AS cor0
----
46
63
81

query I rowsort
SELECT col2 - + + col0 - + - col2 FROM tab1 AS cor0
----
141
33
45

query I rowsort
SELECT DISTINCT - 64 + - - 70 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL - 14 + + CAST( + MIN( - 43 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - 14 + + CAST ( + MIN ( - 43 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL + col1 * - col0 - - col2 AS col0 FROM tab0 cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT col0 * 24 - - col2 + - col0 + col1 * col2 * - col2 FROM tab2
----
-121688
-223605
-25898

query I rowsort
SELECT ALL - 99 - col2 AS col0 FROM tab2
----
-122
-139
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT SUM( - 50 ) AS col0 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-8361
SELECT SUM ( - 50 ) AS col0 FROM tab2
----
-150

query I rowsort
SELECT 55 * + col2 * - 20 FROM tab1
----
-105600
-64900
-74800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8363
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + - CAST( + 95 AS SIGNED ) / + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8363
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + - CAST ( + 95 AS INTEGER ) / + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IN ( + 54, + ( - col0 ) * - - col2, col0, - + col2, - col0 )
----

query I rowsort
SELECT 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + ( 44 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8369
SELECT ALL * FROM tab1 cor0 WHERE + CAST( 95 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8369
SELECT ALL * FROM tab1 cor0 WHERE + CAST ( 95 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 39 + + col2 * - col0 - - + col0 + + col2 FROM tab2 AS cor0
----
-1028
-2495
-4256

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----

query I rowsort
SELECT + col2 * - + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT - col2 * + ( + col1 ) FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT ALL col2 * ( - col1 ) DIV + col0 + + - col0 FROM tab1
----
-126
-77
-88

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL col2 * ( - col1 ) / + col0 + + - col0 FROM tab1
----
-126
-77
-88

query II rowsort
SELECT - 66 * - col0 AS col2, - 57 - + + col2 AS col2 FROM tab0
----
5742
-67
6402
-156
990
-104

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL < - col2 )
----

query II rowsort
SELECT ALL col1 * + 32 AS col1, + 22 + col0 FROM tab2
----
1632
68
2144
97
2464
86

query I rowsort
SELECT ALL + + 55 + 31 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT + col0 + - - col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT - col1 + + CAST( NULL AS SIGNED ) + - 33 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8381
SELECT - col1 + + CAST ( NULL AS INTEGER ) + - 33 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - - 13 AS col0 FROM tab1
----
182
611
65

query II rowsort
SELECT DISTINCT ( + - col1 ) * - col1, - 59 AS col1 FROM tab1
----
196
-59
2209
-59
25
-59

query I rowsort
SELECT + 32 + + 88 FROM tab0
----
120
120
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( col2 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + - col1 * - 23 AS col1 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT col1 * 20 - - + 43 AS col1 FROM tab2 AS cor0
----
1063
1383
1583

query I rowsort
SELECT DISTINCT 65 + - 64 * + col0 * - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
116993
6273
77825

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 46 FROM tab2 WHERE + 25 * + + 90 <> 83
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT DISTINCT - 70 DIV - 78 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - 70 / - 78 AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - col2, col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( - 12 ) IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 24 + - 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 25 col1 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - + SUM( + 1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8398
SELECT - + SUM ( + 1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8399
SELECT - COUNT( * ) AS col0, ( + + COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8399
SELECT - COUNT ( * ) AS col0, ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= 55
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT - 2 + + CAST( - + 78 AS SIGNED ) DIV + 84 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT - 2 + + CAST ( - + 78 AS INTEGER ) / + 84 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col2 + + col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 86 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 * - 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT + SUM( DISTINCT 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8406
SELECT + SUM ( DISTINCT 6 ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-8407
SELECT DISTINCT - col1 * - + col0 * + + 83 * col0, 92 DIV + col1 + col2 AS col1 FROM tab1
----
2998375
77
3022362
102
32304181
69

skipif mysql # not compatible
query II rowsort label-8407
SELECT DISTINCT - col1 * - + col0 * + + 83 * col0, 92 / + col1 + col2 AS col1 FROM tab1
----
2998375
77
3022362
102
32304181
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT + col1 + - ( + + 22 ) DIV - 73 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8408
SELECT + col1 + - ( + + 22 ) / - 73 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT 56 + + + col0 AS col1 FROM tab1
----
107
141
147

query I rowsort
SELECT ALL col1 + - + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 52 FROM tab1 AS cor0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT + 80 * 80 + - - col2 AS col0 FROM tab1 cor0
----
6459
6468
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, col2 * - col2 FROM tab0 cor0
----
-10
-100
-47
-2209
-99
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 13 AS col0, 94 col2 FROM tab2 AS cor0
----
-13
94
-13
94
-13
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + - col1 ) AS col0, 21 col2 FROM tab2 AS cor0
----
51
21
67
21
77
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT + - 20 * - + ( - 90 ) * + col2 + col1 + + col0 FROM tab1 AS cor0
----
-106110
-122262
-172735

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 19 * + 27 - + + 50 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col1 col0 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + 41 + 57 * - - COUNT( * ) * - - 29 FROM tab2 WHERE - - col2 IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + 41 + 57 * - - COUNT ( * ) * - - 29 FROM tab2 WHERE - - col2 IS NULL
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT - 92 * + COUNT( * ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - 92 * + COUNT ( * ) FROM tab2
----
-276

query I rowsort
SELECT ALL ( col2 ) * + - col2 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT col1 AS col1, + ( 47 ) AS col0 FROM tab0
----
1
47
21
47
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - MAX( - - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8424
SELECT - MAX ( - - col0 ) FROM tab0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT ALL 66 DIV col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL 66 / col2 AS col2 FROM tab0
----
0
1
6

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8427
SELECT - - MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT - 56 * + ( + - 26 ) + COUNT( * ) FROM tab2 AS cor0
----
1459

skipif mysql # not compatible
query I rowsort label-8428
SELECT - 56 * + ( + - 26 ) + COUNT ( * ) FROM tab2 AS cor0
----
1459

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 96 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 72 ) <= col1 + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT MAX( ALL col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT MAX ( ALL col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
21

query I rowsort
SELECT ALL + ( col0 ) + ( col2 ) * + col2 FROM tab2
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT COUNT( * ) - + 12 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT COUNT ( * ) - + 12 FROM tab2
----
-9

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + SUM( + col2 ) * - COUNT( * ) AS col1 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-8437
SELECT + SUM ( + col2 ) * - COUNT ( * ) AS col1 FROM tab2
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE + 37 * + 58 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE + 37 * + 58 IS NOT NULL
----
3

query I rowsort
SELECT ALL 77 * col2 + ( - col2 ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( ( 1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8440
SELECT ALL ( - 94 ) + + CAST( col1 AS SIGNED ) * ( - 48 DIV 53 ) AS col0 FROM tab1
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL ( - 94 ) + + CAST ( col1 AS INTEGER ) * ( - 48 / 53 ) AS col0 FROM tab1
----
-94
-94
-94

query I rowsort
SELECT 49 * col2 AS col1 FROM tab0 WHERE NOT + 30 NOT IN ( 51 * - col1 )
----

query I rowsort
SELECT ALL + col1 * - col1 + - col0 FROM tab0
----
-528
-6576
-98

query I rowsort
SELECT 57 * col1 AS col2 FROM tab1
----
2679
285
798

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab1 WHERE NOT ( + 14 ) IS NULL
----
-5

query I rowsort
SELECT ALL col2 + + 61 FROM tab1
----
120
129
157

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - 56 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8447
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN CAST( 85 AS SIGNED ) AND col2 * col0
----

skipif mysql # not compatible
query III rowsort label-8447
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN CAST ( 85 AS INTEGER ) AND col2 * col0
----

query I rowsort
SELECT - 47 * - col2 + + col0 FROM tab0 WHERE 34 BETWEEN - col2 AND 49
----
2224
4750
557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE - col0 * - 96 IS NULL
----

query I rowsort
SELECT ALL ( + col0 ) * 51 FROM tab0
----
4437
4947
765

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT + 92 DIV - 54 - ( - 51 ) AS col0 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8451
SELECT + 92 / - 54 - ( - 51 ) AS col0 FROM tab1
----
50
50
50

query I rowsort
SELECT DISTINCT + 52 * col1 + col0 AS col0 FROM tab0 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 35 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + 62
----

query I rowsort
SELECT + col0 FROM tab2 WHERE ( 62 * ( col0 ) ) >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - COUNT( * ) * + 6 AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - COUNT ( * ) * + 6 AS col0 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8458
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-8458
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER ) * - col2
----

query I rowsort
SELECT ALL - 80 - - col2 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND - 68 + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL - 77 * COUNT( * ) FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - 77 * COUNT ( * ) FROM tab1 AS cor0
----
-231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL - COUNT( * ) * + ( SUM( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( + ( col1 ) ) - col0 * - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - COUNT ( * ) * + ( SUM ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( + ( col1 ) ) - col0 * - col0 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT + 50 DIV + col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 50 / + col0 FROM tab2 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 NOT IN ( 10 )
----

query I rowsort
SELECT DISTINCT - 82 * 35 FROM tab0
----
-2870

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT col1 IN ( - 82 * + col2 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + col0 ) ) col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 40
----

query I rowsort
SELECT ALL + col2 * col2 + col0 * - 60 FROM tab1 AS cor0
----
-1619
-836
6156

query I rowsort
SELECT + + 78 + + - col2 AS col0 FROM tab2 AS cor0
----
20
38
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL + ( + 73 ) + COUNT( * ) * MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
364

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + ( + 73 ) + COUNT ( * ) * MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
364

query I rowsort
SELECT DISTINCT - + 19 + col2 + + col1 + + col1 AS col1 FROM tab2 AS cor0
----
106
173
175

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + 7 ) IN ( 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT + 73 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT + 73 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT COUNT( ALL - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8475
SELECT COUNT ( ALL - + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT DISTINCT - COUNT( * ) * + CAST( + ( + COUNT( * ) ) AS SIGNED ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT DISTINCT - COUNT ( * ) * + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) col0 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8477
SELECT + CAST( - - MAX( + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8477
SELECT + CAST ( - - MAX ( + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - col1 + 58 * - - col0 FROM tab2 cor0
----
2617
3635
4283

query I rowsort
SELECT 75 + - col0 FROM tab2 AS cor0
----
0
11
29

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( col2 * - col0 - - 92 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT COUNT( + 17 ) + + ( - 28 ) AS col1 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT COUNT ( + 17 ) + + ( - 28 ) AS col1 FROM tab0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NOT NULL AND NOT ( NULL <= col0 / col1 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT DISTINCT + col0 - - - 40 + - + ( - - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8483
SELECT DISTINCT + col0 - - - 40 + - + ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT CAST( NULL AS SIGNED ) + + - col1 + - col2 * - + CAST( - 48 AS SIGNED ) * col1 - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT CAST ( NULL AS INTEGER ) + + - col1 + - col2 * - + CAST ( - 48 AS INTEGER ) * col1 - - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT SUM( col1 ) * + + COUNT( * ) AS col0 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT SUM ( col1 ) * + + COUNT ( * ) AS col0 FROM tab0
----
309

query I rowsort
SELECT - 5 * - + col2 + + ( - col1 ) * + 65 AS col0 FROM tab0
----
-1315
-5030
430

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - 42 * + + MIN( - 53 ) * - ( COUNT( * ) ) * + 54 - - COUNT( * ) AS col0 FROM tab2
----
-360609

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - 42 * + + MIN ( - 53 ) * - ( COUNT ( * ) ) * + 54 - - COUNT ( * ) AS col0 FROM tab2
----
-360609

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT MIN( ( col1 ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT MIN ( ( col1 ) ) AS col2 FROM tab2
----
51

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + col0 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT SUM( 59 ) + - - MAX( + - col0 ) * ( MIN( DISTINCT col0 ) ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-8490
SELECT SUM ( 59 ) + - - MAX ( + - col0 ) * ( MIN ( DISTINCT col0 ) ) FROM tab0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8491
SELECT * FROM tab1 AS cor0 WHERE ( col0 < CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8491
SELECT * FROM tab1 AS cor0 WHERE ( col0 < CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col1 * - - 33 - + 51 AS col1 FROM tab0 AS cor0
----
-18
2622
642

query I rowsort
SELECT DISTINCT - - ( + - 69 ) FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL col2 DIV - + 38 + - - col2 * - col0 FROM tab2 AS cor0
----
-1058
-2561
-4351

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL col2 / - + 38 + - - col2 * - col0 FROM tab2 AS cor0
----
-1058
-2561
-4351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col1 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL col2 * + - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - col2 * - col1 + 59 FROM tab2 AS cor0 WHERE ( - col2 ) + + ( col0 ) >= ( NULL )
----

query I rowsort
SELECT - 62 * + - col0 - 83 * + 66 AS col2 FROM tab1 AS cor0
----
-208
-2316
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT + CAST( - ( 9 ) AS SIGNED ) * + + 96 * - - col1 AS col1 FROM tab1 cor0
----
-12096
-40608
-4320

skipif mysql # not compatible
query I rowsort label-8500
SELECT + CAST ( - ( 9 ) AS INTEGER ) * + + 96 * - - col1 AS col1 FROM tab1 cor0
----
-12096
-40608
-4320

query I rowsort
SELECT col1 * 3 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 + - + 16 NOT BETWEEN + col1 AND - col0 * + 96
----

query I rowsort
SELECT ALL col2 + - col2 * - col2 FROM tab2 AS cor0 WHERE NOT col2 - + 24 < ( - col1 ) + + col2
----
1640
3422
552

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, - ( + - col1 ) AS col0 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL COUNT( ALL 59 ) FROM tab1 WHERE NOT + 50 + - col2 * - col1 * + col2 IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL COUNT ( ALL 59 ) FROM tab1 WHERE NOT + 50 + - col2 * - col1 * + col2 IN ( col2 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT ALL 79, COUNT( * ) AS col1 FROM tab0
----
79
3

skipif mysql # not compatible
query II rowsort label-8506
SELECT ALL 79, COUNT ( * ) AS col1 FROM tab0
----
79
3

query II rowsort
SELECT DISTINCT - 26, col1 + col1 AS col1 FROM tab1
----
-26
10
-26
28
-26
94

query I rowsort
SELECT ALL 47 * col2 AS col2 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT 70 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT 70 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 76 * 54 col2 FROM tab2 AS cor0
----
-4027
-4037
-4053

query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
-196
-62
-97

query I rowsort
SELECT col2 + - - 97 FROM tab1 AS cor0
----
156
165
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 0 * + col0 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 66 AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
66
66
66

query I rowsort
SELECT DISTINCT + col0 + - 96 AS col2 FROM tab2 AS cor0
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT - 57 - COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - 57 - COUNT ( * ) FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8517
SELECT MIN( ALL CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT MIN ( ALL CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) - - col0 AS col1 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 34 + + col2 FROM tab0
----
133
44
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT DISTINCT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 * + 8 FROM tab2
----
184
320
464

query I rowsort
SELECT ALL 65 - - 91 AS col1 FROM tab2
----
156
156
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT + col0 - col1 DIV col0 * + 15 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8523
SELECT + col0 - col1 / col0 * + 15 AS col0 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 81 - + col2 * col1, 34 * col2 * + - col1 col1, + col0 col2 FROM tab1
----
9 values hashing to 784479f3277b19537dabcde783c01bf8

query I rowsort
SELECT ALL + col1 * + 19 FROM tab1
----
266
893
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8526
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) / + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8526
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) / + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT ALL + 99 DIV - col2 AS col1 FROM tab0
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + 99 / - col2 AS col1 FROM tab0
----
-1
-2
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - + 12 NOT BETWEEN NULL AND ( + ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT + col1 + - CAST( - col1 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
185
79
95

skipif mysql # not compatible
query I rowsort label-8529
SELECT + col1 + - CAST ( - col1 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - MAX( - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - MAX ( - - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + MAX( + 80 ) AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + MAX ( + 80 ) AS col0 FROM tab0 AS cor0
----
80

query II rowsort
SELECT DISTINCT - col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 70 NOT IN ( 28 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 67 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 62, col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT + - 7 * COUNT( + col2 ) * + ( COUNT( * ) ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8536
SELECT + - 7 * COUNT ( + col2 ) * + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8537
SELECT ALL - CAST( - 40 AS DECIMAL ), + 23 - 36 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8537
SELECT ALL - CAST ( - 40 AS REAL ), + 23 - 36 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT - - 38 DIV + 85 * - 41 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT - - 38 / + 85 * - 41 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 72 ) * - col1 - + + col1 AS col1 FROM tab1
----
3337
355
994

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * - col0 + - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 AS col1, 15 AS col0 FROM tab1
----
14
15
47
15
5
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT ALL + 32 * + + col2 * col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + 32 * + + col2 * col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE + 50 = + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col1, + col1 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8544
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col1, + col1 * - col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT + col2 DIV + - 25 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT + col2 / + - 25 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL - 48 * 61 AS col0 FROM tab0
----
-2928
-2928
-2928

query I rowsort
SELECT - col1 * 53 FROM tab2 AS cor0 WHERE ( - col0 * col2 ) IS NOT NULL
----
-2703
-3551
-4081

query I rowsort
SELECT - ( - 11 ) * - - ( + col1 ) * - ( - 80 ) - + col0 FROM tab1 AS cor0
----
12269
41269
4315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT + - CAST( NULL AS SIGNED ) - + - 86 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT + - CAST ( NULL AS INTEGER ) - + - 86 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8552
SELECT ALL + CAST( NULL AS SIGNED ) + col2, col0 * + ( - - CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL + CAST ( NULL AS INTEGER ) + col2, col0 * + ( - - CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - - col2 - + - 17 + + col1 col0, - col2 AS col2 FROM tab0 AS cor0
----
18
-99
38
-10
98
-47

query I rowsort
SELECT ALL + 48 * - col2 + - ( + ( + 78 ) ) AS col1 FROM tab0 AS cor0
----
-2334
-4830
-558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT + + ( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - col0 * - ( + - col0 ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT + + ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - col0 * - ( + - col0 ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT DISTINCT + col2 * + + col1 FROM tab1 WHERE NULL IS NULL
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT IN ( 85 * + - col0 / + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT + MAX( DISTINCT - + 65 ) * - 42 * - 0 + COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8559
SELECT + MAX ( DISTINCT - + 65 ) * - 42 * - 0 + COUNT ( * ) AS col1 FROM tab2
----
3

query II rowsort
SELECT col0 AS col0, + ( - 38 ) AS col1 FROM tab0 WHERE + 65 + - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8561
SELECT * FROM tab1 WHERE col2 * CAST( - 76 AS SIGNED ) NOT BETWEEN NULL AND - 43 * 61
----

skipif mysql # not compatible
query III rowsort label-8561
SELECT * FROM tab1 WHERE col2 * CAST ( - 76 AS INTEGER ) NOT BETWEEN NULL AND - 43 * 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 - col1 col1 FROM tab1
----
-3
30
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT - + SUM( + + 57 ) AS col1, SUM( - col1 ) + - 33 FROM tab2 AS cor0
----
-171
-228

skipif mysql # not compatible
query II rowsort label-8563
SELECT - + SUM ( + + 57 ) AS col1, SUM ( - col1 ) + - 33 FROM tab2 AS cor0
----
-171
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8564
SELECT - COUNT( * ) * + 14 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8564
SELECT - COUNT ( * ) * + 14 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-42
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) * 9 = NULL
----

query I rowsort
SELECT - - 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - - col1 * + col0 AS col0 FROM tab0 WHERE NOT - 70 - - 55 * col1 = NULL
----

query II rowsort
SELECT 27 AS col2, col1 * + col2 AS col2 FROM tab2
----
27
1173
27
3080
27
3886

query I rowsort
SELECT ALL + 48 * + - 5 AS col2 FROM tab0
----
-240
-240
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col2 ) col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL + - SUM( ALL - col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8571
SELECT ALL + - SUM ( ALL - col0 ) col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT - MIN( DISTINCT - 71 ) * + 11 FROM tab1 AS cor0
----
781

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - MIN ( DISTINCT - 71 ) * + 11 FROM tab1 AS cor0
----
781

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 * 49 * - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col2 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT COUNT( ALL - - col1 ) * + 79 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-8575
SELECT COUNT ( ALL - - col1 ) * + 79 FROM tab2
----
237

query I rowsort
SELECT DISTINCT - 81 + + + col1 FROM tab1 WHERE - + col2 NOT BETWEEN 42 AND NULL
----
-34
-67
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 < 95 + col0
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col1 AS col0 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 NOT IN ( - col0, + col1 )
----

query II rowsort
SELECT ALL - col0 * - ( - col1 ) * - - col2 + + - col2 AS col2, col0 AS col0 FROM tab0
----
-18280
87
-57152
15
-9702
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8581
SELECT ALL * FROM tab1 AS cor0 WHERE + 43 NOT IN ( - col0, 58 / + col2 * col2, - col2 - - - col2 + + + ( - ( - CAST( + col2 AS DECIMAL ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8581
SELECT ALL * FROM tab1 AS cor0 WHERE + 43 NOT IN ( - col0, 58 / + col2 * col2, - col2 - - - col2 + + + ( - ( - CAST ( + col2 AS REAL ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT + + COUNT( - - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8582
SELECT + + COUNT ( - - col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT + CAST( NULL AS SIGNED ) + - MAX( DISTINCT + ( + + col2 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + ( + + col2 ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( + col0 / - col0 - + col1 + + 75 + col1 ) > CAST( + col1 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( + col0 / - col0 - + col1 + + 75 + col1 ) > CAST ( + col1 AS INTEGER )
----
64

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 - + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT MIN( ALL - - 7 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8586
SELECT MIN ( ALL - - 7 ) FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8587
SELECT DISTINCT CAST( + CAST( ( + 86 ) AS DECIMAL ) AS SIGNED ) + - 96 AS col2, + COUNT( * ) + CAST( - - 86 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
89

skipif mysql # not compatible
query II rowsort label-8587
SELECT DISTINCT CAST ( + CAST ( ( + 86 ) AS REAL ) AS INTEGER ) + - 96 AS col2, + COUNT ( * ) + CAST ( - - 86 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT col2 - 29 + - 52 * + CAST( col1 AS SIGNED ) FROM tab2
----
-2658
-3455
-3993

skipif mysql # not compatible
query I rowsort label-8588
SELECT col2 - 29 + - 52 * + CAST ( col1 AS INTEGER ) FROM tab2
----
-2658
-3455
-3993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8589
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) AS col0, MIN( ALL + - col0 ) AS col0 FROM tab0
----
0
-97

skipif mysql # not compatible
query II rowsort label-8589
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, MIN ( ALL + - col0 ) AS col0 FROM tab0
----
0
-97

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT + col2 IS NULL
----
14
47
5

query I rowsort
SELECT 58 * + + 19 AS col0 FROM tab1
----
1102
1102
1102

query I rowsort
SELECT ALL 21 * - col0 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab2 cor0
----
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 + - - col0 = NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT ( - 94 ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT + + col2 * - - col0 + + col0 + + col1 * col1 * - col0 FROM tab0 WHERE NOT - - col2 / + 73 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT 87 FROM tab0, tab1 cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col0 FROM tab2
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT + 7 + - col2 AS col0 FROM tab2 AS cor0
----
-16
-33
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-8601
SELECT DISTINCT + 84 + + - col1 * + col2 DIV - + col2 col0, 22 * + - 51 FROM tab2 AS cor0
----
135
-1122
151
-1122
161
-1122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8601
SELECT DISTINCT + 84 + + - col1 * + col2 / - + col2 col0, 22 * + - 51 FROM tab2 AS cor0
----
135
-1122
151
-1122
161
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + SUM( ALL col1 ) - + + MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + SUM ( ALL col1 ) - + + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - 75 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN - col0 * + 13 AND NULL
----

query I rowsort
SELECT ( col2 ) - - col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT + 87 - + col2 AS col0 FROM tab2 cor0
----
29
47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT - - ( + - 46 ) + - MAX( ALL + 30 ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8606
SELECT - - ( + - 46 ) + - MAX ( ALL + 30 ) AS col1 FROM tab1 AS cor0
----
-76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT col0 + + 14 AS col0 FROM tab1 AS cor0
----
105
65
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col0 + + 55 * + col0 + col1 / col1 / - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT - COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT - COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 96 * + AVG ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT col2 * - col1 * + col0 <= + + 15
----
NULL

query I rowsort
SELECT col1 + 5 * + - col1 + - + col0 * - 5 * + col1 * + + col2 AS col0 FROM tab1 AS cor0
----
125355
1453992
342664

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - ( MAX( ALL col1 ) ) AS col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8613
SELECT - ( MAX ( ALL col1 ) ) AS col1 FROM tab0 cor0
----
-81

query I rowsort
SELECT col0 * + + 72 AS col2 FROM tab0
----
1080
6264
6984

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT col1 * + col2 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT DISTINCT - col2 * + CAST( ( + col0 ) AS SIGNED ) + + 99 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 53 AND - col0 * col0 + - + col1
----

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - col2 * + CAST ( ( + col0 ) AS INTEGER ) + + 99 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 53 AND - col0 * col0 + - + col1
----

query II rowsort
SELECT DISTINCT col0, 56 AS col2 FROM tab0 AS cor0
----
15
56
87
56
97
56

query I rowsort
SELECT DISTINCT ( + + col0 ) * + col1 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT ALL 40 AS col2, + col1 FROM tab0
----
40
1
40
21
40
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL - COUNT( 70 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - COUNT ( 70 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT 1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT 1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 + + + col1 FROM tab1 AS cor0
----
-20
-29
13

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE - 8 IS NOT NULL
----
51
67
77

query I rowsort
SELECT col2 + + - col2 + + + 10 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT ALL - 7 + col2 FROM tab1 AS cor0
----
52
61
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL SUM( ALL - CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL SUM ( ALL - CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + 64 + 66 FROM tab0 AS cor0 WHERE NULL IS NULL
----
130
130
130

query I rowsort
SELECT - ( - + col0 ) * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8629
SELECT * FROM tab0 WHERE - CAST( + - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8629
SELECT * FROM tab0 WHERE - CAST ( + - col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 4 + - ( - - col0 ) - + col1 * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + ( MAX( + col1 ) ) * + 94 AS col0 FROM tab2
----
7238

skipif mysql # not compatible
query I rowsort label-8631
SELECT + ( MAX ( + col1 ) ) * + 94 AS col0 FROM tab2
----
7238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT - 55 DIV COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 55 / COUNT ( * ) FROM tab1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT 67 DIV - ( - col1 ) AS col0 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-8633
SELECT 67 / - ( - col1 ) AS col0 FROM tab1
----
1
13
4

query I rowsort
SELECT DISTINCT + col0 * + - col1 * 52 * + + 4 AS col1 FROM tab2
----
-1025024
-1045200
-487968

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT - col0 + + - ( col1 ) DIV + 23 FROM tab0 AS cor0
----
-18
-87
-97

skipif mysql # not compatible
query I rowsort label-8635
SELECT - col0 + + - ( col1 ) / + 23 FROM tab0 AS cor0
----
-18
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 49 - + col0, col1 col2 FROM tab1 cor0
----
-2
14
-36
5
-42
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT - COUNT( * ) + - - 99 AS col2, + 14 FROM tab2 AS cor0
----
96
14

skipif mysql # not compatible
query II rowsort label-8637
SELECT - COUNT ( * ) + - - 99 AS col2, + 14 FROM tab2 AS cor0
----
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT + COUNT( * ) * - 39 * - + 60 + + 47 AS col2 FROM tab1
----
7067

skipif mysql # not compatible
query I rowsort label-8638
SELECT + COUNT ( * ) * - 39 * - + 60 + + 47 AS col2 FROM tab1
----
7067

query I rowsort
SELECT ALL 73 + + - col0 + + - col1 * - col1 FROM tab0
----
-23
427
6619

query I rowsort
SELECT 5 + + + col2 AS col1 FROM tab0
----
104
15
52

query III rowsort
SELECT * FROM tab1 WHERE - col0 = - + col2
----

query II rowsort
SELECT + 39, col2 FROM tab0 AS cor0
----
39
10
39
47
39
99

query I rowsort
SELECT ALL - + 31 AS col2 FROM tab1 cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT CAST( NULL AS SIGNED ) * col0 * + col0 + + col2 * - 68 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT CAST ( NULL AS INTEGER ) * col0 * + col0 + + col2 * - 68 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8645
SELECT 0 DIV - COUNT( * ) * - MIN( col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT 0 / - COUNT ( * ) * - MIN ( col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - 49 * - 40 + - - COUNT( * ) FROM tab2 AS cor0
----
1963

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 49 * - 40 + - - COUNT ( * ) FROM tab2 AS cor0
----
1963

query I rowsort
SELECT ALL 26 * + - 41 FROM tab0 AS cor0
----
-1066
-1066
-1066

query III rowsort
SELECT * FROM tab1 WHERE NOT + 32 > - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL ) <= NULL )
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL < col1
----

query I rowsort
SELECT DISTINCT col0 * - 2 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT + col1 DIV 71 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8652
SELECT + col1 / 71 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + - 9 + 51 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT + 33 AS col2 FROM tab1 AS cor0 WHERE col1 + + 64 IS NULL
----

query I rowsort
SELECT - ( + 24 ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT 44 AS col2 FROM tab0 WHERE NULL IS NULL
----
44
44
44

query III rowsort
SELECT * FROM tab0 WHERE - col0 = col1
----

query I rowsort
SELECT DISTINCT - 13 * - col2 + - col0 AS col2 FROM tab0
----
1190
43
596

query I rowsort
SELECT - col2 + + 92 FROM tab0
----
-7
45
82

query I rowsort
SELECT + - col2 + + - 57 AS col1 FROM tab2 AS cor0
----
-115
-80
-97

query I rowsort
SELECT ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-77

query I rowsort
SELECT DISTINCT + - 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT MAX( + + 5 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
5

skipif mysql # not compatible
query I rowsort label-8664
SELECT MAX ( + + 5 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
5

query I rowsort
SELECT ( + col1 ) FROM tab0 WHERE NOT ( NOT ( NULL ) = 66 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query I rowsort
SELECT col2 * + 7 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT + + CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab2 cor0 WHERE - 65 < NULL OR NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8668
SELECT + + CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab2 cor0 WHERE - 65 < NULL OR NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 col2 FROM tab1 AS cor0
----
7

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT col2 * 64 IS NOT NULL
----

query II rowsort
SELECT ALL + ( - + col2 ) AS col2, col2 AS col0 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - 11 + col2 <= + col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - 30 col1 FROM tab0
----
-1320
-1320
-1320

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 * 16 - + col1 + + - col2 IN ( - col2, col0 )
----

query II rowsort
SELECT col2, - col0 + - 35 AS col1 FROM tab1
----
59
-120
68
-126
96
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT CAST( - 38 AS SIGNED ) AS col0 FROM tab0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-8676
SELECT CAST ( - 38 AS INTEGER ) AS col0 FROM tab0
----
-38
-38
-38

query II rowsort
SELECT 64 AS col1, ( - + col1 ) AS col1 FROM tab1
----
64
-14
64
-47
64
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 * - col0 + + - col1 )
----

query III rowsort
SELECT - col0, + 22 AS col1, - + ( col1 ) + 39 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to d88fd291f7be4636aa99c25457bca709

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab1
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col2 + + col2 + - 16, 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 22 + col2 col1 FROM tab2
----
126
155
91

query I rowsort
SELECT + + 33 AS col0 FROM tab2 AS cor0
----
33
33
33

query II rowsort
SELECT - col1 * col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-441
21
-6561
81

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + + COUNT( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8689
SELECT + + COUNT ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + MIN( DISTINCT + - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8690
SELECT + MIN ( DISTINCT + - col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8691
SELECT * FROM tab1 WHERE + CAST( col2 AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-8691
SELECT * FROM tab1 WHERE + CAST ( col2 AS INTEGER ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - col1 + + col0 * - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT DISTINCT + ( + - col1 ) + + 30 DIV - + col0 * + 23 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + ( + - col1 ) + + 30 / - + col0 * + 23 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL 71 FROM tab1 cor0 WHERE NULL IS NULL
----
71
71
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 58 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + 72 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col0, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 68 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 68 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT - COUNT( * ) * + ( - 10 ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT - COUNT ( * ) * + ( - 10 ) FROM tab2 cor0
----
30

query I rowsort
SELECT - + 44 * + - 43 FROM tab2 AS cor0
----
1892
1892
1892

query I rowsort
SELECT DISTINCT - + col1 * - + col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT + 56 * - 69 AS col2 FROM tab0 AS cor0
----
-3864
-3864
-3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8705
SELECT ( COUNT( * ) ) DIV + 13 + + + COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8705
SELECT ( COUNT ( * ) ) / + 13 + + + COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL col2 * - - 8 AS col0, + 69 + - col0 FROM tab1
----
472
-16
544
-22
768
18

query I rowsort
SELECT DISTINCT ( - + 20 ) FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8708
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT - - 5 + - CAST( - col1 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT - - 5 + - CAST ( - col1 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 + - 33 FROM tab2 AS cor0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 26 NOT IN ( - 38 + + 76 / - 38 * - 6, col1 + 19, - + 9 * - col2 + - col2 + - - 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - 20 FROM tab1 cor0
----
39
48
76

query I rowsort
SELECT ALL - + ( col1 ) + - - col1 - - 5 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 37 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 37 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT SUM( - 73 ) col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8714
SELECT SUM ( - 73 ) col1 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT + 92 * + col2 + + - 48 AS col0 FROM tab1 cor0
----
5380
6208
8784

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT + - SUM( DISTINCT - 80 ) col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8716
SELECT DISTINCT + - SUM ( DISTINCT - 80 ) col2 FROM tab0 AS cor0
----
80

query II rowsort
SELECT DISTINCT + col1 * + + col0 + + 34 AS col0, + ( col1 ) AS col1 FROM tab2 AS cor0
----
2380
51
4962
77
5059
67

query I rowsort
SELECT - col0 - + + 6 + + 7 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-8719
SELECT + col0 DIV - col1 + - + col1 AS col2, 42 * - col1 FROM tab1 AS cor0
----
-17
-588
-22
-210
-48
-1974

skipif mysql # not compatible
query II rowsort label-8719
SELECT + col0 / - col1 + - + col1 AS col2, 42 * - col1 FROM tab1 AS cor0
----
-17
-588
-22
-210
-48
-1974

query I rowsort
SELECT + ( + 43 ) + col0 FROM tab1 AS cor0
----
128
134
94

query I rowsort
SELECT col1 * - col1 + + col1 * - - 48 * 59 * - col1 * + col2 FROM tab2 AS cor0
----
-169421337
-671643049
-737349673

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT ALL col1 - + col1 DIV - 89 * col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL col1 - + col1 / - 89 * col1 AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - MIN( + - ( 26 ) ) * - COUNT( * ) AS col2 FROM tab0 WHERE NULL IN ( + - col2, + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT - MIN ( + - ( 26 ) ) * - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IN ( + - col2, + 98 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * 60 col0 FROM tab2
----
4800
4800
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT MIN( ALL + col1 ) * + MAX( + 60 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8725
SELECT MIN ( ALL + col1 ) * + MAX ( + 60 ) AS col1 FROM tab0
----
60

query II rowsort
SELECT col1 * - col0 AS col0, 29 FROM tab1 AS cor0
----
-425
29
-4277
29
-714
29

query I rowsort
SELECT DISTINCT col0 * - - col1 + - - col1 AS col2 FROM tab0 cor0
----
1296
1848
98

query I rowsort
SELECT DISTINCT - col0 * - 67 * col0 FROM tab0 AS cor0
----
15075
507123
630403

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * 3 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT ALL 9 * - COUNT( * ) AS col2, + 56 col2 FROM tab2 AS cor0
----
-27
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8730
SELECT ALL 9 * - COUNT ( * ) AS col2, + 56 col2 FROM tab2 AS cor0
----
-27
56

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 >= + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + + ( MIN( + col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8732
SELECT + + ( MIN ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT - col2, 13 + + + 49 * col0 AS col1 FROM tab2 AS cor0
----
-23
2267
-40
3149
-58
3688

query I rowsort
SELECT + ( + ( + 11 ) ) AS col1 FROM tab0
----
11
11
11

query I rowsort
SELECT ALL - + 44 AS col0 FROM tab2 WHERE 95 > - + col1
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT - COUNT( * ) AS col0, COUNT( + col1 ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8736
SELECT - COUNT ( * ) AS col0, COUNT ( + col1 ) AS col2 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE - col2 <> - - col1
----
-3

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE - col2 <> - - col1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8738
SELECT - col1 AS col2, - ( - - 17 ) DIV + - 84 - - col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-8738
SELECT - col1 AS col2, - ( - - 17 ) / + - 84 - - col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT ALL - + col2 + - + col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT + col2 * + + col2 + + col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT - col0 * + - col2 + + col2 * - - 9 * - - 58 AS col0 FROM tab2
----
13064
23440
34626

query II rowsort
SELECT - col1 + + 55, ( + + 83 ) * col2 AS col2 FROM tab0
----
-26
3901
34
830
54
8217

query II rowsort
SELECT DISTINCT col2 * - - col1 AS col1, 65 AS col2 FROM tab2 AS cor0
----
1173
65
3080
65
3886
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8745
SELECT ALL + MIN( - + 10 ), + COUNT( * ) * - COUNT( ALL col0 ) + + 4 AS col2 FROM tab1 cor0
----
-10
-5

skipif mysql # not compatible
query II rowsort label-8745
SELECT ALL + MIN ( - + 10 ), + COUNT ( * ) * - COUNT ( ALL col0 ) + + 4 AS col2 FROM tab1 cor0
----
-10
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - MIN( - col2 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8746
SELECT - MIN ( - col2 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

query I rowsort
SELECT + col0 * - + col2 - - - col1 * - col0 - - - col2 AS col1 FROM tab0
----
-9605
463
947

query I rowsort
SELECT col1 * - 41 - - ( - col2 ) FROM tab2
----
-2114
-2805
-3197

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + + ( 74 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 75 * 21 FROM tab2 WHERE - - ( - + 0 ) + - col2 * - + col2 = col2
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + col2 + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 20 col1 FROM tab0 WHERE NOT - col0 / + - 58 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 - col1 FROM tab1
----
182
20
2162

query II rowsort
SELECT ALL col0 AS col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL - SUM( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - SUM ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + ( 23 ) FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT + MIN( + + col1 ) * - - 69 * + 26 AS col0 FROM tab2 AS cor0
----
91494

skipif mysql # not compatible
query I rowsort label-8758
SELECT + MIN ( + + col1 ) * - - 69 * + 26 AS col0 FROM tab2 AS cor0
----
91494

query I rowsort
SELECT ALL + 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL + col1 * + + 27 AS col1 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - SUM( DISTINCT - 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8761
SELECT - SUM ( DISTINCT - 27 ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT MIN( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8762
SELECT MIN ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT ALL - - col0 * + col1 + - col2 DIV + - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - - col0 * + col1 + - col2 / + - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - MIN( - + col1 ) * - 2 + - 0 col0 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8764
SELECT - MIN ( - + col1 ) * - 2 + - 0 col0 FROM tab0 AS cor0
----
-162

query II rowsort
SELECT ( - + 88 ) AS col2, col0 * - 18 AS col2 FROM tab0 AS cor0
----
-88
-1566
-88
-1746
-88
-270

query I rowsort
SELECT ALL + ( + - 10 ) FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT ( - + col1 ) DIV - - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT ( - + col1 ) / - - col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - 61 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - 61 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT - COUNT( * ) / + MIN( - 29 ) + - CAST( NULL AS SIGNED ) + + + COUNT( * ) / MIN( - col1 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8769
SELECT - COUNT ( * ) / + MIN ( - 29 ) + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / MIN ( - col1 ) col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + + - ( - col2 ) * + col2 BETWEEN - 13 AND col2 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + - 76 >= + 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8772
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + 97 BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8772
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + 97 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL 8 AS col2 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT ALL + + col1 + col0 + - 62 AS col2 FROM tab0 cor0
----
34
36
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8775
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 9 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8775
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 9 IS NOT NULL
----

query I rowsort
SELECT ALL + 36 + - 16 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - 52 - 60 + + col0 FROM tab1
----
-21
-27
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT 62 + - + col1 AS col1 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT ALL col2 + 49 * - col0 FROM tab1 AS cor0
----
-2403
-4106
-4391

query I rowsort
SELECT + 70 - - 75 + + 82 + - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 12 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8784
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - - 96 >= + col0 * - CAST( NULL AS SIGNED ) * - col0 + + 72
----

skipif mysql # not compatible
query III rowsort label-8784
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - - 96 >= + col0 * - CAST ( NULL AS INTEGER ) * - col0 + + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT + 78 DIV - 68 + + - col2 + 17 AS col2 FROM tab2 cor0
----
-24
-42
-7

skipif mysql # not compatible
query I rowsort label-8785
SELECT + 78 / - 68 + + - col2 + 17 AS col2 FROM tab2 cor0
----
-24
-42
-7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 20 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - 58 FROM tab2 AS cor0
----
-1334
-2320
-3364

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT DISTINCT - col1 * + ( + col2 ) DIV - - col2 + - 47 AS col1 FROM tab2
----
-114
-124
-98

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - col1 * + ( + col2 ) / - - col2 + - 47 AS col1 FROM tab2
----
-114
-124
-98

query I rowsort
SELECT ( + 8 ) * - col0 AS col1 FROM tab2
----
-368
-512
-600

query I rowsort
SELECT - col2 * - + 17 FROM tab1
----
1003
1156
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT 45 DIV + 44 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8791
SELECT 45 / + 44 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT - col1 * - - col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL 88 * + 93 * 44 FROM tab2
----
360096
360096
360096

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col1 * + 14 FROM tab1
----
351050
4071704
959616

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT ( - + 59 ) * col0 DIV - col1 - - + ( 8 ) * + col0 AS col2 FROM tab0
----
130
6499
940

skipif mysql # not compatible
query I rowsort label-8795
SELECT ( - + 59 ) * col0 / - col1 - - + ( 8 ) * + col0 AS col2 FROM tab0
----
130
6499
940

query I rowsort
SELECT DISTINCT ( - ( + - 14 ) ) * col0 AS col1 FROM tab2
----
1050
644
896

query III rowsort
SELECT * FROM tab0 WHERE - + col1 - - + col2 / + col1 / - 46 * - 96 + - col1 BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 < + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - 50 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 17 * + col2 NOT BETWEEN - col1 AND - - col0 * - 17 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 + + col2 + + 15 AS col1 FROM tab0 AS cor0
----
-62
17
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - 62 IS NULL
----

query I rowsort
SELECT + 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - ( + - 94 ) * col0 - + col2 AS col1 FROM tab0
----
1363
8168
9019

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT DISTINCT 25 DIV + 18 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT 25 / + 18 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 65 col2 FROM tab0 AS cor0
----
-152
-162
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT ALL + CAST( NULL AS SIGNED ) + + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + CAST ( NULL AS INTEGER ) + + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT DISTINCT - 78 DIV - - ( - - 88 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - 78 / - - ( - - 88 ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8809
SELECT col2 - - col2 DIV + - CAST( + ( 56 ) AS SIGNED ) + - CAST( 73 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-16
-33
-50

skipif mysql # not compatible
query I rowsort label-8809
SELECT col2 - - col2 / + - CAST ( + ( 56 ) AS INTEGER ) + - CAST ( 73 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-16
-33
-50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - 60 BETWEEN NULL AND - 31
----

query I rowsort
SELECT - col2 * - + col0 - + - col0 + - 77 - - - col0 FROM tab0 AS cor0
----
628
793
9526

query I rowsort
SELECT ALL - ( - 74 ) AS col2 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8813
SELECT DISTINCT 16 * COUNT( * ) DIV COUNT( * ) * + 2 AS col0, + 86 FROM tab0
----
32
86

skipif mysql # not compatible
query II rowsort label-8813
SELECT DISTINCT 16 * COUNT ( * ) / COUNT ( * ) * + 2 AS col0, + 86 FROM tab0
----
32
86

query I rowsort
SELECT ALL + col2 * + ( - 56 ) * col0 FROM tab2
----
-143360
-243600
-59248

query I rowsort
SELECT + + col1 * - col1 * + - col1 FROM tab0 AS cor0
----
1
531441
9261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8816
SELECT ALL COUNT( * ) DIV - 37 + ( COUNT( * ) ) DIV + - COUNT( + col1 ) + + + COUNT( * ) * + 19 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL COUNT ( * ) / - 37 + ( COUNT ( * ) ) / + - COUNT ( + col1 ) + + + COUNT ( * ) * + 19 FROM tab2 AS cor0
----
56

query II rowsort
SELECT - col2 AS col1, - col0 + col2 AS col0 FROM tab2 AS cor0
----
-23
-23
-40
-24
-58
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 * - + col0 * - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 * - + col0 * - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT - + COUNT( + 95 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8820
SELECT - + COUNT ( + 95 ) FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT - - 40 * + col1 + col0 DIV - col2 + col0 FROM tab2 AS cor0
----
2084
2754
3143

skipif mysql # not compatible
query I rowsort label-8821
SELECT - - 40 * + col1 + col0 / - col2 + col0 FROM tab2 AS cor0
----
2084
2754
3143

query I rowsort
SELECT + 93 FROM tab0 WHERE NOT NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT + COUNT( * ) * + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
630

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + COUNT ( * ) * + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
630

query II rowsort
SELECT - ( - - col1 ) AS col2, - 66 FROM tab1 cor0
----
-14
-66
-47
-66
-5
-66

query I rowsort
SELECT + 6 + 30 FROM tab2
----
36
36
36

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT 40 + + - 78 + - col2 - col2 AS col0 FROM tab1
----
-156
-174
-230

query I rowsort
SELECT DISTINCT - col2 * - 72 * col1 FROM tab0
----
15120
274104
7128

query I rowsort
SELECT DISTINCT + col0 * 65 + 77 AS col2 FROM tab2
----
3067
4237
4952

query I rowsort
SELECT - col2 * col1 + - 71 FROM tab2 AS cor0
----
-1244
-3151
-3957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT + 42 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8831
SELECT + 42 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - - ( + + col1 ) ) col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT DISTINCT - - 12 + + + col1 - + col1 + - 3 - - - col1 - - col0 + + col0 * col0 * col2 * - col1 + 62 DIV - - col1 FROM tab1 cor0
----
-2131274
-26466022
-3495694

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - - 12 + + + col1 - + col1 + - 3 - - - col1 - - col0 + + col0 * col0 * col2 * - col1 + 62 / - - col1 FROM tab1 cor0
----
-2131274
-26466022
-3495694

query I rowsort
SELECT ALL - 19 * + col1 AS col1 FROM tab0
----
-1539
-19
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT - ( - col2 ) AS col2 FROM tab2 WHERE ( + CAST( - CAST( 95 AS SIGNED ) AS SIGNED ) * col1 ) >= col1
----

skipif mysql # not compatible
query I rowsort label-8835
SELECT - ( - col2 ) AS col2 FROM tab2 WHERE ( + CAST ( - CAST ( 95 AS INTEGER ) AS INTEGER ) * col1 ) >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT ( + col0 ) DIV - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8836
SELECT ( + col0 ) / - col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8837
SELECT COUNT( * ) DIV ( - 70 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT COUNT ( * ) / ( - 70 ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 98 / col0 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT ALL MIN( ALL 8 ) DIV 12 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL MIN ( ALL 8 ) / 12 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8840
SELECT * FROM tab0 WHERE + 49 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8840
SELECT * FROM tab0 WHERE + 49 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 99 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND + col0 + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8843
SELECT * FROM tab0 WHERE ( CAST( NULL AS DECIMAL ) * 9 - ( col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8843
SELECT * FROM tab0 WHERE ( CAST ( NULL AS REAL ) * 9 - ( col0 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT - CAST( + ( col0 ) AS SIGNED ) * col2 AS col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8844
SELECT - CAST ( + ( col0 ) AS INTEGER ) * col2 AS col0 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + 55 col2 FROM tab2
----
96
96
96

query I rowsort
SELECT + col2 - + ( 30 ) FROM tab0
----
-20
17
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT ALL col2 DIV 83 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL col2 / 83 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( 29 ) AND NULL
----

query I rowsort
SELECT DISTINCT ( 9 ) FROM tab1
----
9

query I rowsort
SELECT 93 + + ( col1 ) * 30 FROM tab1
----
1503
243
513

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL > ( col2 + - 23 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col0 / col2 )
----

query I rowsort
SELECT 33 FROM tab1 WHERE NOT - 72 * - col2 <= col2
----
33
33
33

query I rowsort
SELECT DISTINCT 75 + col2 FROM tab1 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT COUNT( * ) FROM tab2 WHERE NOT 35 * - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8856
SELECT COUNT ( * ) FROM tab2 WHERE NOT 35 * - col1 < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + MAX( col1 ) - COUNT( col0 ) col0 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8858
SELECT + MAX ( col1 ) - COUNT ( col0 ) col0 FROM tab0
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN col2 AND col0 - - ( - col2 ) * 14
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 23 / col0 )
----

query I rowsort
SELECT ALL + 36 - - 85 FROM tab1
----
121
121
121

query I rowsort
SELECT col1 + ( col2 ) FROM tab2 cor0 WHERE NOT col1 IS NULL
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + 57 * - ( - 28 ) ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 86 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
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-8865
SELECT - CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( 98 ) IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 92 = 55 / ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - ( - ( + COUNT( * ) ) ) * SUM( col1 + - col2 * - col1 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
12660

skipif mysql # not compatible
query I rowsort label-8868
SELECT - ( - ( + COUNT ( * ) ) ) * SUM ( col1 + - col2 * - col1 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
12660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 60 col0 FROM tab1 AS cor0
----
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8871
SELECT ALL - AVG ( + CAST( NULL AS DECIMAL ) ) + - 75 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - AVG ( + CAST ( NULL AS REAL ) ) + - 75 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) < ( + 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT CAST( 55 AS SIGNED ) / col0 FROM tab0 AS cor0 WHERE ( NULL ) > 14
----

skipif mysql # not compatible
query I rowsort label-8873
SELECT CAST ( 55 AS INTEGER ) / col0 FROM tab0 AS cor0 WHERE ( NULL ) > 14
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8874
SELECT ALL 49 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL 49 * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 * + col0 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8877
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT - col1 * col1 NOT BETWEEN - col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT - col1 * col1 NOT BETWEEN - col2 AND col0
----
NULL

query I rowsort
SELECT - col1 * - - col2 * - col2 AS col1 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> 41 * + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 32
----

query I rowsort
SELECT ALL - 86 AS col2 FROM tab2 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - - 29 + - 16 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8882
SELECT - - 29 + - 16 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NULL ) IS NULL
----

query I rowsort
SELECT + - 75 + - 5 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT DISTINCT + MIN( DISTINCT + ( col2 ) ) * 61 - 61 DIV COUNT( * ) AS col0 FROM tab2
----
1383

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + MIN ( DISTINCT + ( col2 ) ) * 61 - 61 / COUNT ( * ) AS col0 FROM tab2
----
1383

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 80 * ( col1 - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 AS col1, + ( - col2 ) FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL <> col2 / col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 70 <= - - col0
----
15
81
47

query II rowsort
SELECT + - col1 AS col2, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL 37 * + col1 * + + col1 AS col0 FROM tab1 cor0
----
7252
81733
925

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab2 cor0
----
45

query I rowsort
SELECT ALL + + 87 * col1 + 14 AS col1 FROM tab1 AS cor0
----
1232
4103
449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * + + col0 col2 FROM tab2 AS cor0
----
2162
3008
3525

query II rowsort
SELECT + 21 AS col1, col2 - + + ( col1 ) FROM tab1 AS cor0
----
21
21
21
54
21
82

query I rowsort
SELECT 30 AS col1 FROM tab2 cor0
----
30
30
30

query II rowsort
SELECT - + 60, 86 AS col1 FROM tab1 AS cor0
----
-60
86
-60
86
-60
86

query I rowsort
SELECT ALL col2 * + 70 + col1 AS col2 FROM tab0 AS cor0
----
3371
6931
721

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT + 31 * + - COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + 31 * + - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8900
SELECT DISTINCT 22 DIV + - MIN( DISTINCT - col0 ) * + - 86 * 94 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8900
SELECT DISTINCT 22 / + - MIN ( DISTINCT - col0 ) * + - 86 * 94 col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT ( + col0 ) DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8901
SELECT ( + col0 ) / + col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE ( 3 ) IS NULL
----

query I rowsort
SELECT DISTINCT 8 * - col2 * - col1 * - col1 AS col2 FROM tab2
----
-1897280
-2082896
-478584

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = col0 + col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT ( col0 ) * col1 FROM tab1 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) NOT IN ( - col0 * + 61 ) )
----

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT ( col0 ) * col1 FROM tab1 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) NOT IN ( - col0 * + 61 ) )
----

query II rowsort
SELECT + - col0 + + col0, col2 FROM tab2 cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT - - SUM( - 26 ) * MIN( - col2 ) + + MIN( ALL col0 ) AS col0 FROM tab1 AS cor0
----
7539

skipif mysql # not compatible
query I rowsort label-8907
SELECT - - SUM ( - 26 ) * MIN ( - col2 ) + + MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
7539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT - - CAST( col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-8908
SELECT - - CAST ( col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - + 25 + col0 AS col1 FROM tab0 AS cor0
----
-10
62
72

query II rowsort
SELECT + col2 * - + col2, - col1 * - 81 AS col1 FROM tab1 AS cor0
----
-3481
405
-4624
3807
-9216
1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT CAST( col2 AS SIGNED ) * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-8911
SELECT CAST ( col2 AS INTEGER ) * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col0 + col0 + + 22 FROM tab2 AS cor0
----
114
150
172

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 28 * + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL - MAX( - col2 ) + 91 * + 87 AS col2 FROM tab2 AS cor0
----
7940

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL - MAX ( - col2 ) + 91 * + 87 AS col2 FROM tab2 AS cor0
----
7940

query II rowsort
SELECT - - 32 AS col2, col0 FROM tab1 AS cor0
----
32
51
32
85
32
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + 35 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + 35 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
105

query I rowsort
SELECT ALL 33 + - - col0 AS col0 FROM tab2 AS cor0
----
108
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 ) >= + col2
----
3

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col2 ) >= + col2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8919
SELECT col0 * - + CAST( NULL AS DECIMAL ) + - 70 + + col1 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT col0 * - + CAST ( NULL AS REAL ) + - 70 + + col1 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 50 ) IN ( - ( + col2 ) * + 7 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL - SUM( ALL - - col1 ) * SUM( DISTINCT col0 ) * - - 69 + MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-1414283

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - SUM ( ALL - - col1 ) * SUM ( DISTINCT col0 ) * - - 69 + MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-1414283

query I rowsort
SELECT ALL + ( + + col1 ) + col2 * - col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-543
-828
-9601

query I rowsort
SELECT DISTINCT col1 - - - col2 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL - ( + + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - ( + + COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT + ( + col2 ) + + - col0 DIV + col0 col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8925
SELECT + ( + col2 ) + + - col0 / + col0 col0 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - 74 + + + COUNT( DISTINCT - + 63 ) * + + 92 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - 74 + + + COUNT ( DISTINCT - + 63 ) * + + 92 FROM tab2
----
18

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT ALL ( + 4 ) FROM tab1 WHERE + col1 NOT IN ( + 93 + + - col1 + + 96 * ( col0 ) )
----
4
4
4

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - + ( + - 13 ) FROM tab0
----
2
74
84

query II rowsort
SELECT 97 AS col0, col1 * - col1 FROM tab0
----
97
-1
97
-441
97
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + 45 + - + 4 + - 97 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT - 31 AS col1, + COUNT( * ) AS col1 FROM tab1 cor0
----
-31
3

skipif mysql # not compatible
query II rowsort label-8933
SELECT - 31 AS col1, + COUNT ( * ) AS col1 FROM tab1 cor0
----
-31
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 89 + 49 + + ( ( + col0 ) ) NOT IN ( - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT - + col2 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT - + col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + + col0 + + - col0 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT ( - col0 ) DIV - + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8937
SELECT ( - col0 ) / - + col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - MIN( DISTINCT col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8938
SELECT - MIN ( DISTINCT col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT - ( - 23 ) FROM tab2
----
23
23
23

query I rowsort
SELECT - - col2 * 22 + + col2 * + + col2 + col0 + + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
1076
2531
4723

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 NOT IN ( + - col1 * + col2 ) )
----

query II rowsort
SELECT DISTINCT + col0 * col1, col1 AS col2 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query II rowsort
SELECT ALL + 11, - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + 37 / - col0 )
----

query I rowsort
SELECT ALL - ( - - col1 ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL 53 FROM tab2 WHERE col2 IS NOT NULL
----
53
53
53

query II rowsort
SELECT + 63, col0 AS col1 FROM tab1
----
63
51
63
85
63
91

query I rowsort
SELECT ALL col1 * + - 57 AS col0 FROM tab0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT COUNT( + + 78 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8948
SELECT COUNT ( + + 78 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL - col0 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - col0 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL - CAST( NULL AS SIGNED ) + 64 / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - CAST ( NULL AS INTEGER ) + 64 / - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT COUNT( * ) * + 16 AS col1 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8952
SELECT COUNT ( * ) * + 16 AS col1 FROM tab2 AS cor0
----
48

query I rowsort
SELECT - col1 + + - col0 AS col1 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 59 ) + - col1 BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - - 30 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT 71 <= + 89
----
30
30
30

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT COUNT( * ) * 94 col0 FROM tab2
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8957
SELECT DISTINCT COUNT ( * ) * 94 col0 FROM tab2
----
282

query I rowsort
SELECT DISTINCT col1 - + col2 * + col2 AS col2 FROM tab2
----
-1523
-3297
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - MIN( 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8959
SELECT - MIN ( 10 ) FROM tab1
----
-10

query II rowsort
SELECT ALL - col0 * + - ( 17 ) AS col2, 83 + + col0 FROM tab1
----
1445
168
1547
174
867
134

query I rowsort
SELECT ALL + col2 * - + 81 AS col2 FROM tab1
----
-4779
-5508
-7776

query I rowsort
SELECT col2 - - - col2 + - 14 * + col2 AS col2 FROM tab0
----
-1386
-140
-658

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( 99 ) AND ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + - col0 + - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8965
SELECT DISTINCT - col1 + - - col2 col1, - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8965
SELECT DISTINCT - col1 + - - col2 col1, - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - + - 88 * - 93 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( - col2 ) AS col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL + - col0 * + col1 * 6 AS col1 FROM tab2 AS cor0
----
-14076
-29568
-30150

query II rowsort
SELECT + - col0 * + 20 AS col2, col2 + - + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-1740
0
-1940
0
-300
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 44 <= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, - 73 * + + col1 FROM tab2 AS cor0
----
-23
-3723
-40
-5621
-58
-4891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT - - col2 * col1 + - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
1330
290
3149

skipif mysql # not compatible
query I rowsort label-8972
SELECT - - col2 * col1 + - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
1330
290
3149

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 61 AND NULL
----

query II rowsort
SELECT ALL - 73 AS col1, 49 FROM tab1, tab0 AS cor0
----
18 values hashing to 7d0773bb8ef32eef2103b4bb82fe5627

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT 74 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT 74 / - col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT DISTINCT - COUNT( * ) * - ( 41 ) AS col2 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - COUNT ( * ) * - ( 41 ) AS col2 FROM tab1
----
123

query I rowsort
SELECT ALL ( - col2 ) * + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 67 * col2 * + + 40 AS col1 FROM tab0
----
125960
265320
26800

query III rowsort
SELECT * FROM tab2 WHERE ( 26 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL col1 * ( CAST( + col0 AS SIGNED ) ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL col1 * ( CAST ( + col0 AS INTEGER ) ) FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT DISTINCT + - 83 DIV + 25 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + - 83 / + 25 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 93 - + col1 FROM tab2 AS cor0
----
16
26
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT DISTINCT col1 DIV + ( + + col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT col1 / + ( + + col1 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 91 + 47 col1 FROM tab0 AS cor0
----
138
138
138

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT ALL + - col2 DIV + col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + - col2 / + col1 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL + - 57 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + - 57 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 / ( + - col2 ) < - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8989
SELECT col1 * 16 + + - ( col2 ), col2, + 12 DIV + CAST( - col2 AS SIGNED ) + + + col2 + - - col0 AS col1 FROM tab1
----
9 values hashing to f1819221851f951ee47640354e55a332

skipif mysql # not compatible
query III rowsort label-8989
SELECT col1 * 16 + + - ( col2 ), col2, + 12 / + CAST ( - col2 AS INTEGER ) + + + col2 + - - col0 AS col1 FROM tab1
----
9 values hashing to f1819221851f951ee47640354e55a332

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT + 79 + COUNT( * ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT + 79 + COUNT ( * ) AS col2 FROM tab1
----
82

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT ALL + 26 DIV - col2 - col1 AS col2 FROM tab2
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + 26 / - col2 - col1 AS col2 FROM tab2
----
-52
-67
-77

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 WHERE NOT + col1 * - col2 + + col0 + col0 * - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL + MAX( ALL + 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + MAX ( ALL + 16 ) FROM tab1
----
16

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8996
SELECT MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT + COUNT( - + 30 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8997
SELECT + COUNT ( - + 30 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 63 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-8999
SELECT ALL + COUNT( * ), - 83 AS col0 FROM tab0
----
3
-83

skipif mysql # not compatible
query II rowsort label-8999
SELECT ALL + COUNT ( * ), - 83 AS col0 FROM tab0
----
3
-83

query I rowsort
SELECT + + ( - 66 ) * - 53 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7e2f1bbdc84de6222fb032259a30515d

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT - 82 NOT BETWEEN + 64 AND 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9002
SELECT + CAST( NULL AS SIGNED ) AS col2, col1 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9002
SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57 col1, col2 AS col0 FROM tab1
----
-57
59
-57
68
-57
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + MIN( DISTINCT + 94 ) AS col1 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-9004
SELECT + MIN ( DISTINCT + 94 ) AS col1 FROM tab0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9005
SELECT ALL + 7 AS col0, 49 + - 53 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
7
32

skipif mysql # not compatible
query II rowsort label-9005
SELECT ALL + 7 AS col0, 49 + - 53 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
7
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT COUNT( + + 43 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT COUNT ( + + 43 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, 11 FROM tab0 AS cor0
----
10
11
47
11
99
11

query II rowsort
SELECT DISTINCT col1, ( - 97 ) AS col2 FROM tab2 AS cor0
----
51
-97
67
-97
77
-97

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT SUM( DISTINCT col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9010
SELECT SUM ( DISTINCT col2 ) col0 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-9011
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 0 col2 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT + col0 * 45 * + 29 FROM tab1
----
110925
118755
66555

query II rowsort
SELECT col1, col2 * + 35 FROM tab0
----
1
3465
21
350
81
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT SUM( 23 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9015
SELECT SUM ( 23 ) AS col2 FROM tab2
----
69

query I rowsort
SELECT + 5 * - col0 FROM tab1
----
-255
-425
-455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT + COUNT( * ) DIV + 40 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT + COUNT ( * ) / + 40 FROM tab0
----
0

query I rowsort
SELECT + 27 AS col2 FROM tab0 AS cor0 WHERE - 99 IS NULL
----

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - 6 + 13 AS col0 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT ALL + + ( + - CAST( NULL AS SIGNED ) ) + + 56 + COUNT( * ) * + MAX( + 98 ) - - - ( - 69 ) * 83 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + + ( + - CAST ( NULL AS INTEGER ) ) + + 56 + COUNT ( * ) * + MAX ( + 98 ) - - - ( - 69 ) * 83 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT - CAST( NULL AS SIGNED ) + - 33 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT - CAST ( NULL AS INTEGER ) + - 33 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + ( - col1 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT 14 * col2 + - col2 + - + 84 * - 17 / CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT 14 * col2 + - col2 + - + 84 * - 17 / CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT + 69 * + col2 * 33 + + + col0 * + col0 FROM tab2
----
137691
54487
95176

query I rowsort
SELECT ALL 91 * 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to fd45466e6df20145f1b9999f8152320f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT - 72 DIV ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9028
SELECT - 72 / ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9029
SELECT + CAST( + SUM( ALL 26 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9029
SELECT + CAST ( + SUM ( ALL 26 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL col1 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9031
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - col2 = - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - col2 = - 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT ALL 9 * + 42 / - - 45 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL 9 * + 42 / - - 45 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 63 * + col0 AS col1 FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT - ( + + COUNT( * ) ) DIV + COUNT( * ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9034
SELECT DISTINCT - ( + + COUNT ( * ) ) / + COUNT ( * ) col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9035
SELECT COUNT( * ) * - CAST( AVG ( + col2 ) AS SIGNED ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-9035
SELECT COUNT ( * ) * - CAST ( AVG ( + col2 ) AS INTEGER ) FROM tab2
----
-120

query II rowsort
SELECT 10 AS col0, col1 AS col1 FROM tab0
----
10
1
10
21
10
81

query II rowsort
SELECT + 42 AS col2, + col0 FROM tab2 cor0
----
42
46
42
64
42
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT CAST( - + 62 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-9038
SELECT CAST ( - + 62 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT - + ( - - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9039
SELECT - + ( - - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - COUNT( * ) * - - 33 col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9040
SELECT - COUNT ( * ) * - - 33 col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9042
SELECT ALL + col2 + - CAST( col2 AS DECIMAL ) - - CAST( NULL AS DECIMAL ) + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + col2 + - CAST ( col2 AS REAL ) - - CAST ( NULL AS REAL ) + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT + 87 + - 99 * - COUNT( * ) - - - COUNT( * ) col2 FROM tab2 AS cor0
----
381

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9043
SELECT DISTINCT + 87 + - 99 * - COUNT ( * ) - - - COUNT ( * ) col2 FROM tab2 AS cor0
----
381

query I rowsort
SELECT ALL - col1 + + 84 FROM tab1
----
37
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL - COUNT( col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - COUNT ( col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT + col1 + - col1 * + - 97 + - - col2 + 11 DIV - 9 FROM tab0
----
196
2067
7984

skipif mysql # not compatible
query I rowsort label-9046
SELECT + col1 + - col1 * + - 97 + - - col2 + 11 / - 9 FROM tab0
----
196
2067
7984

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 WHERE NOT ( + col2 ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT ALL - 34 DIV COUNT( * ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - 34 / COUNT ( * ) FROM tab2
----
-11

query III rowsort
SELECT * FROM tab1 WHERE - 43 / + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9050
SELECT + col2 / col1 * CAST( + ( - + ( 0 ) ) AS SIGNED ) * + - col2 + + CAST( NULL AS DECIMAL ) * 65 + - 98 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + col2 / col1 * CAST ( + ( - + ( 0 ) ) AS INTEGER ) * + - col2 + + CAST ( NULL AS REAL ) * 65 + - 98 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 + + + col1 + + col2 * - 74 * - col1 AS col0, col0 AS col2 FROM tab0
----
15474
87
281784
15
7230
97

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col0 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT col1 / - col1 + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT col1 / - col1 + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 86 ) FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9055
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 45 + - CAST( col1 AS SIGNED ) AND - 26
----

skipif mysql # not compatible
query III rowsort label-9055
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 45 + - CAST ( col1 AS INTEGER ) AND - 26
----

query I rowsort
SELECT ( - - col2 ) - + col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT 58 * col2 - + col2 + 73 AS col0 FROM tab2
----
1384
2353
3379

query I rowsort
SELECT 81 + + col0 AS col0 FROM tab2 AS cor0 WHERE + 36 <> - + col2
----
127
145
156

query II rowsort
SELECT ALL + 91, col2 + - 79 AS col1 FROM tab0 AS cor0
----
91
-32
91
-69
91
20

query I rowsort
SELECT ALL + ( col1 ) + ( - 65 ) AS col1 FROM tab1 AS cor0
----
-18
-51
-60

query I rowsort
SELECT DISTINCT col2 * + - 22 + - - col0 FROM tab1 cor0
----
-1213
-1405
-2061

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col0 = + ( + 22 ) / + col2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + col1 col2 FROM tab0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / - col0 + - 65 NOT IN ( - ( + col2 ) + + 11 + 40, col0, + 17 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE + + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9066
SELECT ALL + COUNT( - + col1 ), COUNT( ALL col0 ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9066
SELECT ALL + COUNT ( - + col1 ), COUNT ( ALL col0 ) AS col0 FROM tab2
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + 95 col0 FROM tab1 AS cor0
----
-4845
-8075
-8645

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 88 ) <= - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT 72 DIV + COUNT( * ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9069
SELECT 72 / + COUNT ( * ) AS col1 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT - 1, COUNT( * ) AS col0 FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-9070
SELECT - 1, COUNT ( * ) AS col0 FROM tab0
----
-1
3

query I rowsort
SELECT - 59 * 73 + - col1 FROM tab0
----
-4308
-4328
-4388

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT 99 + + SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-9072
SELECT 99 + + SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-128

query I rowsort
SELECT DISTINCT + 88 + 40 - col2 FROM tab1 AS cor0
----
32
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL + ( + MAX( + ( + col0 ) ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + ( + MAX ( + ( + col0 ) ) ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0 WHERE + 16 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9075
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE + 16 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + ( COUNT( * ) ) * - - 58 AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-9076
SELECT + ( COUNT ( * ) ) * - - 58 AS col1 FROM tab2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9077
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9077
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----

query I rowsort
SELECT - - col2 * + col2 AS col2 FROM tab2 WHERE - + 60 + - + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9079
SELECT - col1 DIV col0 AS col2, + col1 FROM tab2
----
-1
51
-1
77
0
67

skipif mysql # not compatible
query II rowsort label-9079
SELECT - col1 / col0 AS col2, + col1 FROM tab2
----
-1
51
-1
77
0
67

query I rowsort
SELECT DISTINCT + col0 * - 48 FROM tab2
----
-2208
-3072
-3600

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 96 <= + 35 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 + - col1 ) < + col2
----
15
81
47
97
1
99

query I rowsort
SELECT 86 + + col0 FROM tab1 AS cor0
----
137
171
177

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN 49 + + ( - col0 ) * + col2 AND - col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 - - col0 col1 FROM tab0
----
170
180
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT - - SUM( - - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9086
SELECT - - SUM ( - - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT - 12 DIV + + 32 * - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 12 / + + 32 * - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 8 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - ( COUNT( * ) ) * - 11 * + 10 AS col1 FROM tab2 AS cor0
----
330

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - ( COUNT ( * ) ) * - 11 * + 10 AS col1 FROM tab2 AS cor0
----
330

query II rowsort
SELECT - col1 AS col0, 10 AS col1 FROM tab0
----
-1
10
-21
10
-81
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT MIN( DISTINCT - - 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT MIN ( DISTINCT - - 56 ) FROM tab0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL COUNT( DISTINCT + + 76 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9092
SELECT ALL COUNT ( DISTINCT + + 76 ) col2 FROM tab0
----
1

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 AS col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * col2 col2 FROM tab0 AS cor0 WHERE col1 + + 25 + + 94 BETWEEN + col2 AND - - col2
----

query II rowsort
SELECT col2, - 16 FROM tab0 AS cor0
----
10
-16
47
-16
99
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - ( col0 ) AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT ALL - MIN( - col0 ) AS col0, - COUNT( - - col1 ) col1 FROM tab2 AS cor0
----
75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9097
SELECT ALL - MIN ( - col0 ) AS col0, - COUNT ( - - col1 ) col1 FROM tab2 AS cor0
----
75
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT + ( - CAST( NULL AS SIGNED ) ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT + ( - CAST ( NULL AS INTEGER ) ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 21 FROM tab1 cor0
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + + SUM( ALL - - 41 ) * MAX( - col2 ) FROM tab0 AS cor0
----
-1230

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + + SUM ( ALL - - 41 ) * MAX ( - col2 ) FROM tab0 AS cor0
----
-1230

query I rowsort
SELECT DISTINCT - + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE + 89 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 47 AND + ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - col1 + 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL 4 + + - COUNT( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL 4 + + - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT 7 + + col1 + ( + 54 ) FROM tab2 AS cor0
----
112
128
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT - + COUNT( * ) + - 0 DIV - 62 AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9108
SELECT - + COUNT ( * ) + - 0 / - 62 AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT COUNT( + + ( - - 90 ) ) + + 78 AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9109
SELECT COUNT ( + + ( - - 90 ) ) + + 78 AS col0 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9110
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) + + col2 AND ( ( + col0 + + col0 + col1 IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-9110
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) + + col2 AND ( ( + col0 + + col0 + col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - 41 + + + COUNT( * ) col2 FROM tab2
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT - 41 + + + COUNT ( * ) col2 FROM tab2
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 82 col2 FROM tab1
----
35
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9113
SELECT DISTINCT col1 AS col0, CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9113
SELECT DISTINCT col1 AS col0, CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL col0 + + + 27 FROM tab0
----
114
124
42

query I rowsort
SELECT DISTINCT + col2 * + ( - - 45 ) * + col0 FROM tab2
----
115200
195750
47610

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT COUNT( * ) - - COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9116
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) col1 FROM tab2
----
6

query II rowsort
SELECT ALL - ( col0 ), - 80 FROM tab2 WHERE NOT + col0 * + 54 - + 9 * - ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 97 + + 11 + MIN( ALL 19 ) * - - 87 FROM tab0
----
1761

skipif mysql # not compatible
query I rowsort label-9118
SELECT 97 + + 11 + MIN ( ALL 19 ) * - - 87 FROM tab0
----
1761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + - - col0 + + - col2 - + - 25 + + - col2 * + + col1 - - - 86 col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 79 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col0 * + col0 + - 64 AS col1 FROM tab0
----
1
9345
21
7505
81
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT DISTINCT - COUNT( * ) + + + 23 AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - COUNT ( * ) + + + 23 AS col0 FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL col0 * - col2 * - 85 + + 7 FROM tab1 AS cor0
----
416167
426282
525987

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) * + col0 * 45 IS NULL
----

query I rowsort
SELECT ALL - 38 + + + 60 AS col0 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT ALL col1 - + + 40 * + col0 AS col2 FROM tab0
----
-3459
-3879
-519

query II rowsort
SELECT ALL + 34 * - - col0 AS col2, col1 AS col0 FROM tab2
----
1564
51
2176
77
2550
67

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + col2 + + - col1 + col2 NOT BETWEEN NULL AND 67
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - - col1 * - - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9131
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( 77 ) + col1 + + 84 * - CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9131
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( 77 ) + col1 + + 84 * - CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9132
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - - col1 * CAST( col0 AS SIGNED ) * - ( col2 ), col1, + col2 + + col0, + col0, - col0 * col0, + col0 )
----

skipif mysql # not compatible
query III rowsort label-9132
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - - col1 * CAST ( col0 AS INTEGER ) * - ( col2 ), col1, + col2 + + col0, + col0, - col0 * col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT ALL - COUNT( * ) AS col2, COUNT( + 12 ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9133
SELECT ALL - COUNT ( * ) AS col2, COUNT ( + 12 ) FROM tab0
----
-3
3

query II rowsort
SELECT 11, - col1 AS col1 FROM tab1
----
11
-14
11
-47
11
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + col0 NOT BETWEEN NULL AND col0 * - - col2 * - + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT MAX( - + col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9136
SELECT MAX ( - + col1 ) col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9137
SELECT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9137
SELECT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT - 53 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT - 53 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0, 90 AS col2 FROM tab0
----
15
90
87
90
97
90

query I rowsort
SELECT - - 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - 53 * - ( + - col0 ) FROM tab0 AS cor0
----
-4611
-5141
-795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT CAST( - + 48 AS SIGNED ) * - - 25 + COUNT( * ) * MAX( ALL + 49 ) FROM tab1 AS cor0
----
-1053

skipif mysql # not compatible
query I rowsort label-9143
SELECT CAST ( - + 48 AS INTEGER ) * - - 25 + COUNT ( * ) * MAX ( ALL + 49 ) FROM tab1 AS cor0
----
-1053

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT ALL + - col0 * - col1 + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT - + col1 * + col1 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-9146
SELECT - + col1 * + col1 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT ALL + 65 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
65
65
65

query II rowsort
SELECT - - 47 AS col2, col0 + col2 FROM tab2 AS cor0
----
47
104
47
133
47
69

query I rowsort
SELECT DISTINCT + + 69 + col2 - ( + + 96 ) * 86 AS col2 FROM tab2 cor0
----
-8129
-8147
-8164

query II rowsort
SELECT 61 * - 42 AS col1, col1 * 79 FROM tab2
----
-2562
4029
-2562
5293
-2562
6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT + 48 * 26 * + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + 48 * 26 * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + - 21 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT 25 * + COUNT( * ) * 40 - + 0 AS col2 FROM tab0
----
3000

skipif mysql # not compatible
query I rowsort label-9153
SELECT 25 * + COUNT ( * ) * 40 - + 0 AS col2 FROM tab0
----
3000

query I rowsort
SELECT col0 - + col2 + 69 FROM tab0
----
146
37
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT - MAX( DISTINCT - - col2 ) - + COUNT( * ) * - MIN( DISTINCT + + col2 ) * + 85 + ( + COUNT( * ) ) * - COUNT( * ) + + COUNT( DISTINCT 25 ) AS col1 FROM tab2
----
5799

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) - + COUNT ( * ) * - MIN ( DISTINCT + + col2 ) * + 85 + ( + COUNT ( * ) ) * - COUNT ( * ) + + COUNT ( DISTINCT 25 ) AS col1 FROM tab2
----
5799

query I rowsort
SELECT + col1 * + col1 + + col2 FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT + col1 + + col2 + + + col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT 45 * - COUNT( * ) AS col2 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT 45 * - COUNT ( * ) AS col2 FROM tab1
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, 5 AS col1 FROM tab1
----
14
5
47
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9160
SELECT + col1 + col2 AS col1 FROM tab0 cor0 WHERE NOT CAST( - col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9160
SELECT + col1 + col2 AS col1 FROM tab0 cor0 WHERE NOT CAST ( - col1 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT DISTINCT - 98 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 69 > NULL
----
-98
0

skipif mysql # not compatible
query II rowsort label-9161
SELECT DISTINCT - 98 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 69 > NULL
----
-98
0

query I rowsort
SELECT DISTINCT + col2 + + 30 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
53
70
88

query II rowsort
SELECT ALL col1, col0 + - col2 FROM tab2 AS cor0
----
51
23
67
17
77
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT + + col0 * + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT + + col0 * + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT + MAX( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9165
SELECT + MAX ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 15 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL + CAST( NULL AS SIGNED ) / - ( + + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + CAST ( NULL AS INTEGER ) / - ( + + col1 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + ( - col1 ) FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) + 95 / + AVG ( - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) + 95 / + AVG ( - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL + ( + - 10 ) + + COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL + ( + - 10 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL SUM( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL SUM ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT - + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9172
SELECT - + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT + 11 AS col2, - col0 AS col1 FROM tab1
----
11
-51
11
-85
11
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT DISTINCT col2 + + - ( - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT col2 + + - ( - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + SUM( + col2 ) - + + 31 FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-9175
SELECT + SUM ( + col2 ) - + + 31 FROM tab1 cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT COUNT( * ) * ( - COUNT( * ) ) + + SUM( col0 ) - + COUNT( * ) FROM tab1 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( * ) * ( - COUNT ( * ) ) + + SUM ( col0 ) - + COUNT ( * ) FROM tab1 AS cor0
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL + COUNT( * ) + + - ( - SUM( + 44 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
399

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + COUNT ( * ) + + - ( - SUM ( + 44 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
399

query I rowsort
SELECT DISTINCT - 93 + col1 AS col1 FROM tab0 AS cor0
----
-12
-72
-92

query I rowsort
SELECT DISTINCT - - col1 * - col2 * - col2 + 41 FROM tab1 AS cor0
----
129065
17446
217369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT ALL - COUNT( * ) + + 67 DIV - + 5 AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL - COUNT ( * ) + + 67 / - + 5 AS col1 FROM tab0 AS cor0
----
-16

query III rowsort
SELECT * FROM tab2 WHERE - col2 - - col1 * + col2 + + col0 * - ( - 12 ) * - col1 IS NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9183
SELECT DISTINCT - 59 * - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT - 59 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT ALL - 89 AS col1, col2 * col1 * - + 17 - - col1 FROM tab2 AS cor0
----
-89
-19890
-89
-52283
-89
-65995

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - 68 * - + 93 * - + COUNT( * ) AS col0 FROM tab0
----
-18972

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - 68 * - + 93 * - + COUNT ( * ) AS col0 FROM tab0
----
-18972

query II rowsort
SELECT ALL col0 * 18, + ( - 69 ) AS col2 FROM tab0
----
1566
-69
1746
-69
270
-69

query I rowsort
SELECT + 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + col0 > col1 + + + col1 * - + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + col0 > col1 + + + col1 * - + col0 * col0
----
0

query I rowsort
SELECT ALL - - 54 AS col2 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT DISTINCT COUNT( * ), - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9191
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9192
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <> + - col2
----

skipif mysql # not compatible
query III rowsort label-9192
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <> + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT + COUNT( * ) * ( 56 ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + COUNT ( * ) * ( 56 ) AS col1 FROM tab1 AS cor0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT DISTINCT + col1 DIV + ( + col1 ) - + col2 col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT DISTINCT + col1 / + ( + col1 ) - + col2 col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - COUNT( * ) * - ( + + COUNT( * ) ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COUNT ( * ) * - ( + + COUNT ( * ) ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL + col1 * + - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL SUM( DISTINCT - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL SUM ( DISTINCT - col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9199
SELECT DISTINCT 40 DIV - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT 40 / - COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9201
SELECT col2 DIV + 53 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9201
SELECT col2 / + 53 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT - 41 * + col1 FROM tab0
----
-3321
-41
-861

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT ALL - col1 DIV - + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - col1 / - + col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT - ( + 66 ) AS col0 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + - 33 + - col1 AS col2 FROM tab0 cor0 WHERE + 37 + + col0 = NULL
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE col1 <= + 62
----
23

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT col0 * - col1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT col2 - - 23 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= - - 77
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 77 AND 23
----

query I rowsort
SELECT ALL + col2 * - + col2 * col2 + 24 AS col2 FROM tab2 AS cor0
----
-12143
-195088
-63976

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT 15 * + - COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9212
SELECT 15 * + - COUNT ( * ) FROM tab0 AS cor0
----
-45

query II rowsort
SELECT + col2, 15 * + 28 FROM tab2 AS cor0 WHERE + col0 > ( + 14 )
----
23
420
40
420
58
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL 18 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL 18 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 16 - - col0 FROM tab1 AS cor0
----
35
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + MAX( - col1 ) - + - 29 AS col2 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9216
SELECT + MAX ( - col1 ) - + - 29 AS col2 FROM tab0 cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + + 72 col1 FROM tab0
----
-51
-71
9

query I rowsort
SELECT col0 - 25 * - ( 17 ) FROM tab2
----
471
489
500

query I rowsort
SELECT col1 * - col2 - + + 68 FROM tab2
----
-1241
-3148
-3954

query II rowsort
SELECT DISTINCT + col2 * - 61 - - - col2 AS col1, + col2 FROM tab2
----
-1426
23
-2480
40
-3596
58

query I rowsort
SELECT DISTINCT - col0 - 43 + - col2 * + 74 AS col0 FROM tab2
----
-1791
-3067
-4410

query II rowsort
SELECT - col2 + - + 99 * + + col1, 39 AS col1 FROM tab2
----
-5072
39
-6691
39
-7663
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT COUNT( ALL + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT COUNT ( ALL + + col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT + - 70 * + CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9224
SELECT + - 70 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9225
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= col0 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9225
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= col0 * + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + col0 * + + col2 * + 14 AS col2 FROM tab1 cor0
----
68544
70210
86632

query I rowsort
SELECT + col1 * - - 86 + ( + - col2 ) * - - ( col1 ) FROM tab0 AS cor0
----
-13
1596
3159

query II rowsort
SELECT DISTINCT + - col0 AS col0, 32 FROM tab1 AS cor0
----
-51
32
-85
32
-91
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT + COUNT( * ) * + - SUM( ALL + + CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-9229
SELECT + COUNT ( * ) * + - SUM ( ALL + + CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + ( - + SUM( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9230
SELECT + ( - + SUM ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 64 * - col1 * + - 45 AS col0 FROM tab1
----
135360
14400
40320

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT + COUNT( * ) * + 92 col1 FROM tab2
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9233
SELECT DISTINCT + COUNT ( * ) * + 92 col1 FROM tab2
----
276

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 14 + - 49 < 67
----

query III rowsort
SELECT ALL + - col1 AS col2, + col0, + 30 FROM tab0 cor0
----
9 values hashing to 3223ceec0cab0852e59b7695c634d1e1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 > ( - - ( + - col1 ) / - col1 / - col1 + + col2 * - 47 )
----

query I rowsort
SELECT DISTINCT - + col2 * + col0 - + 16 + - ( - - col1 ) * col0 * col2 AS col2 FROM tab2 AS cor0
----
-199696
-295816
-55032

query I rowsort
SELECT + - 12 * + - 36 + col1 FROM tab0 AS cor0
----
433
453
513

query I rowsort
SELECT DISTINCT + col1 + - - 91 AS col0 FROM tab1 AS cor0
----
105
138
96

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT + SUM( DISTINCT - 9 ) * + CAST( + 71 AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT + SUM ( DISTINCT - 9 ) * + CAST ( + 71 AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT 66 DIV + 76 + - + 26 FROM tab2 cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-9242
SELECT 66 / + 76 + - + 26 FROM tab2 cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT ALL - col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - col0 / - + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 69 * 87 NOT BETWEEN NULL AND - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL + - 66 * - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL + - 66 * - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9246
SELECT - col1 + - 17, CAST( NULL AS SIGNED ) * - ( 89 ) AS col0 FROM tab2
----
-68
NULL
-84
NULL
-94
NULL

skipif mysql # not compatible
query II rowsort label-9246
SELECT - col1 + - 17, CAST ( NULL AS INTEGER ) * - ( 89 ) AS col0 FROM tab2
----
-68
NULL
-84
NULL
-94
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < col1 * - 23
----

query I rowsort
SELECT + + 21 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2325
-4907
-5004

query I rowsort
SELECT - + 3 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - ( - col1 ) + + 90 + 70 + + 7 + + + col1 * - 80 AS col0 FROM tab0 AS cor0
----
-1492
-6232
88

query I rowsort
SELECT - + ( + col2 ) + - 10 AS col2 FROM tab2 AS cor0
----
-33
-50
-68

query I rowsort
SELECT DISTINCT + 7 + + + col1 AS col2 FROM tab2 AS cor0
----
58
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9254
SELECT - - col0 + col0 - - col1 AS col2, CAST( + + 82 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
111
3854
195
8118
195
820

skipif mysql # not compatible
query II rowsort label-9254
SELECT - - col0 + col0 - - col1 AS col2, CAST ( + + 82 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
111
3854
195
8118
195
820

query I rowsort
SELECT ALL 77 + + - col0 AS col2 FROM tab1 AS cor0
----
-14
-8
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 21 = + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 54 * - + col0 * + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 39 + + + col0 AS col2 FROM tab0 AS cor0
----
126
136
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col1 * - + col1 * + col0 + col1 BETWEEN + ( + 78 ) AND - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + - col2 - + col1 * col2 FROM tab2 AS cor0
----
-1150
-3056
-3869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT ALL CAST( NULL AS SIGNED ) + 0 - - + col0 + + + col0 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL CAST ( NULL AS INTEGER ) + 0 - - + col0 + + + col0 * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 57 * - col2 FROM tab2 WHERE - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT COUNT( * ) * - COUNT( * ) * + + 3 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-9263
SELECT COUNT ( * ) * - COUNT ( * ) * + + 3 FROM tab1
----
-27

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col1 + - 42 ) OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - 50 ) FROM tab2
----
50
50
50

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 58 AND 11 + + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 67 = + col0 * + ( - col1 )
----

query I rowsort
SELECT - col2 * - 66 AS col1 FROM tab2 AS cor0
----
1518
2640
3828

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - ( - - 85 ) * + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT - - 95 AS col0, 3 * - - COUNT( * ) * COUNT( - 36 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
95
243

skipif mysql # not compatible
query II rowsort label-9270
SELECT - - 95 AS col0, 3 * - - COUNT ( * ) * COUNT ( - 36 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
95
243

query I rowsort
SELECT ALL + col1 * - 90 * - + 55 + + col1 * col1 + + 67 - + col0 AS col1 FROM tab2 AS cor0
----
255072
336131
387082

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9272
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9272
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - + 92 + - + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - + 92 + - + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL + COUNT( * ) + - 51 + 60 AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + COUNT ( * ) + - 51 + 60 AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT + CAST( 21 AS SIGNED ) + + - 16 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + CAST ( 21 AS INTEGER ) + + - 16 FROM tab2 AS cor0
----
5

query I rowsort
SELECT + col2 * - - ( + ( - + 27 ) ) FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL - SUM( DISTINCT + - 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - SUM ( DISTINCT + - 20 ) FROM tab0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 97 col2 FROM tab0
----
1455
8439
9409

query I rowsort
SELECT + col0 * + 3 FROM tab1
----
153
255
273

query I rowsort
SELECT - ( - + col2 ) * col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT DISTINCT - col2 * - - col2 * 49 * + 59 AS col1, 25 AS col1 FROM tab2
----
-1529339
25
-4625600
25
-9725324
25

query I rowsort
SELECT DISTINCT + ( - + 70 ) + - - col2 * - + ( - - col1 ) * - 14 AS col1 FROM tab2 WHERE NOT NULL IN ( - 2, + col2 )
----

query I rowsort
SELECT + ( + 17 ) * + - col2 AS col1 FROM tab2
----
-391
-680
-986

query I rowsort
SELECT - 34 * 58 FROM tab2
----
-1972
-1972
-1972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT DISTINCT ( + - CAST( - AVG ( + col0 ) AS SIGNED ) ) * - 38 AS col1 FROM tab0
----
-2508

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT ( + - CAST ( - AVG ( + col0 ) AS INTEGER ) ) * - 38 AS col1 FROM tab0
----
-2508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL - CAST( + AVG ( - col2 ) AS SIGNED ) * - 58 AS col1 FROM tab0
----
-3016

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - CAST ( + AVG ( - col2 ) AS INTEGER ) * - 58 AS col1 FROM tab0
----
-3016

query I rowsort
SELECT - col2 * + 31 * - col0 FROM tab2
----
134850
32798
79360

query I rowsort
SELECT ALL 53 * + - col0 * - col0 FROM tab0
----
11925
401157
498677

query II rowsort
SELECT DISTINCT + 64 * 56 AS col2, - ( + + col0 ) FROM tab2
----
3584
-46
3584
-64
3584
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col0, - col2 col0 FROM tab0
----
1215
-47
1827
-10
97
-99

query I rowsort
SELECT ALL - col2 * - col0 + + col0 AS col1 FROM tab0
----
720
957
9700

query I rowsort
SELECT ALL + + 88 AS col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE 62 * - 0 * - - ( - 11 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9293
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE 62 * - 0 * - - ( - 11 ) IS NULL
----
0

query I rowsort
SELECT - 97 * + col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-4559
-9603
-970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9295
SELECT - MAX( ALL + col1 ) AS col1, CAST( NULL AS SIGNED ) - + - CAST( 81 AS SIGNED ) AS col2 FROM tab2 cor0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-9295
SELECT - MAX ( ALL + col1 ) AS col1, CAST ( NULL AS INTEGER ) - + - CAST ( 81 AS INTEGER ) AS col2 FROM tab2 cor0
----
-77
NULL

query II rowsort
SELECT + + 62 * - + col2 - + col0 AS col0, col0 * + - col0 AS col0 FROM tab1 AS cor0
----
-3743
-7225
-4307
-8281
-6003
-2601

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT + col0 * col1 DIV col2 + - col2 FROM tab0 cor0
----
-22
-99
172

skipif mysql # not compatible
query I rowsort label-9297
SELECT + col0 * col1 / col2 + - col2 FROM tab0 cor0
----
-22
-99
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - ( + COUNT( DISTINCT + + 13 ) ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9298
SELECT - ( + COUNT ( DISTINCT + + 13 ) ) AS col2 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT - 2 AS col0, 50 AS col1 FROM tab2
----
-2
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9300
SELECT col1 AS col1, - col1 - + - col0 * - CAST( + 42 AS SIGNED ) + + col2 FROM tab0
----
1
-3976
21
-3665
81
-664

skipif mysql # not compatible
query II rowsort label-9300
SELECT col1 AS col1, - col1 - + - col0 * - CAST ( + 42 AS INTEGER ) + + col2 FROM tab0
----
1
-3976
21
-3665
81
-664

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 16 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab1 cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - - ( + - col2 ) col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + SUM( DISTINCT + 28 ) AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9307
SELECT + SUM ( DISTINCT + 28 ) AS col2 FROM tab1 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9308
SELECT ALL + CAST( NULL AS SIGNED ), 37 AS col2 FROM tab2 AS cor0
----
NULL
37
NULL
37
NULL
37

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL + CAST ( NULL AS INTEGER ), 37 AS col2 FROM tab2 AS cor0
----
NULL
37
NULL
37
NULL
37

query I rowsort
SELECT ( + 39 ) + 56 AS col0 FROM tab2
----
95
95
95

query I rowsort
SELECT ALL col2 + - 96 AS col1 FROM tab2
----
-38
-56
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT DISTINCT - 12 DIV - 61 + MIN( 52 ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - 12 / - 61 + MIN ( 52 ) AS col2 FROM tab1
----
52

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN ( col0 ) AND 69
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col1 * + 38 AS col2 FROM tab0
----
3078
38
798

query I rowsort
SELECT DISTINCT + col0 + col0 * 76 FROM tab2 WHERE NOT + col1 + - 62 IS NULL
----
3542
4928
5775

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col1 ) * col0 BETWEEN col0 * + col2 AND ( col2 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT COUNT( * ) * 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT COUNT ( * ) * 89 FROM tab0
----
267

query I rowsort
SELECT DISTINCT - 50 + 52 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + COUNT( * ) * MIN( ALL ( col2 ) ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9318
SELECT + COUNT ( * ) * MIN ( ALL ( col2 ) ) AS col1 FROM tab0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * 64 col0 FROM tab1
----
5056
5056
5056

query I rowsort
SELECT - col2 - 10 * col0 FROM tab2
----
-483
-680
-808

query I rowsort
SELECT - 87 * 26 FROM tab2
----
-2262
-2262
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - COUNT( * ) * 1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9322
SELECT - COUNT ( * ) * 1 FROM tab1
----
-3

query I rowsort
SELECT - col2 * - col1 FROM tab0 WHERE - ( col2 ) / col1 IS NOT NULL
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT + COUNT( * ) * + 16 col1 FROM tab0 WHERE ( + 46 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9324
SELECT DISTINCT + COUNT ( * ) * + 16 col1 FROM tab0 WHERE ( + 46 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9325
SELECT DISTINCT 10 + + col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT 10 + + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT ALL + col2 DIV 25 + col1 FROM tab2
----
51
69
78

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + col2 / 25 + col1 FROM tab2
----
51
69
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT col2 * + 44 + col1 * + col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) / ( - 74 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9327
SELECT col2 * + 44 + col1 * + col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) / ( - 74 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * 38 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT CAST( NULL AS SIGNED ) * MIN( DISTINCT 31 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 31 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - 63 * col2 AS col0 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND CAST( NULL AS SIGNED ) * col1 - col0
----

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND CAST ( NULL AS INTEGER ) * col1 - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col1 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ( MIN( + col1 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9336
SELECT ( MIN ( + col1 ) ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT DISTINCT 63 + + COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT 63 + + COUNT ( * ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - 30 + - 2 FROM tab0
----
-32
-32
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9339
SELECT - 16 + - COUNT( * ) DIV 38 col2 FROM tab0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9339
SELECT - 16 + - COUNT ( * ) / 38 col2 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT + MAX( DISTINCT 53 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT + MAX ( DISTINCT 53 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 * 34 AS col0 FROM tab2 AS cor0
----
1734
2278
2618

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 / - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * 96 FROM tab1 WHERE NOT col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * 7 col1 FROM tab0 WHERE NOT ( col0 + 4 ) NOT BETWEEN ( + col2 * 29 ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT 79 DIV + - col2 col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9347
SELECT 79 / + - col2 col1 FROM tab2
----
-1
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT - COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9348
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL + col1 * + col2 * col2 - CAST( NULL AS SIGNED ) / - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + col1 * + col2 * col2 - CAST ( NULL AS INTEGER ) / - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT MAX( DISTINCT + 30 ) AS col2 FROM tab2, tab2 AS cor0 WHERE NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-9352
SELECT MAX ( DISTINCT + 30 ) AS col2 FROM tab2, tab2 AS cor0 WHERE NULL IS NULL
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - + ( - COUNT( * ) ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT - + ( - COUNT ( * ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + - - 47 FROM tab0 AS cor0
----
128
48
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 90 ) >= ( - col1 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT col0 - + CAST( 57 + + col2 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE + col0 - + col2 = + col0 OR NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9356
SELECT col0 - + CAST ( 57 + + col2 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE + col0 - + col2 = + col0 OR NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9358
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN + CAST( - col1 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9358
SELECT * FROM tab1 cor0 WHERE col1 BETWEEN + CAST ( - col1 AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( ( col0 ) ) * + 93 ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + 23 * + + ( + + 86 ) * + SUM( - 48 ) FROM tab0 AS cor0
----
-284832

skipif mysql # not compatible
query I rowsort label-9360
SELECT + 23 * + + ( + + 86 ) * + SUM ( - 48 ) FROM tab0 AS cor0
----
-284832

query I rowsort
SELECT DISTINCT - col1 * - + col1 + - col0 + + 82 + + col0 FROM tab1 AS cor0
----
107
2291
278

query I rowsort
SELECT ALL - 81 * 80 + + 94 AS col2 FROM tab0
----
-6386
-6386
-6386

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - 92 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 41 + + 90 FROM tab0
----
131

query III rowsort
SELECT * FROM tab0 WHERE - col0 <> col2 / 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT COUNT( DISTINCT + 57 ) - + COUNT( * ) AS col0 FROM tab2 WHERE + - col2 + - col2 IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-9366
SELECT COUNT ( DISTINCT + 57 ) - + COUNT ( * ) AS col0 FROM tab2 WHERE + - col2 + - col2 IS NOT NULL
----
-2

query I rowsort
SELECT - 87 - - - 83 FROM tab1
----
-170
-170
-170

query I rowsort
SELECT DISTINCT ( - - col1 ) * ( col1 ) FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 * - + col1 AS col2 FROM tab2
----
-1288
-2368
-675

query I rowsort
SELECT col0 * - - col2 * + + 28 - 0 FROM tab0
----
19740
24360
268884

onlyif mysql # aggregate syntax: 
query II rowsort label-9371
SELECT ALL - SUM( DISTINCT + col1 ) col1, + 78 * - 30 FROM tab0
----
-103
-2340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9371
SELECT ALL - SUM ( DISTINCT + col1 ) col1, + 78 * - 30 FROM tab0
----
-103
-2340

query I rowsort
SELECT DISTINCT ( + 49 ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT DISTINCT + MIN( DISTINCT + 19 ) col0, ( 48 ) col0 FROM tab1 cor0
----
19
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9373
SELECT DISTINCT + MIN ( DISTINCT + 19 ) col0, ( 48 ) col0 FROM tab1 cor0
----
19
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 11 - - col2 * - col2 col0 FROM tab0 cor0
----
-2
-2183
-9693

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT + COUNT( * ) + + 90 AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9375
SELECT + COUNT ( * ) + + 90 AS col2 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE + 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - MIN( DISTINCT - + 93 ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-9377
SELECT - MIN ( DISTINCT - + 93 ) AS col0 FROM tab2
----
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - + col0 <> - - col0 + - - col1
----

query I rowsort
SELECT 52 * - + col0 AS col1 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # DIV for integer division: 
query II rowsort label-9380
SELECT - col0, + 68 DIV - 1 AS col1 FROM tab0 AS cor0
----
-15
-68
-87
-68
-97
-68

skipif mysql # not compatible
query II rowsort label-9380
SELECT - col0, + 68 / - 1 AS col1 FROM tab0 AS cor0
----
-15
-68
-87
-68
-97
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT + col0 DIV + ( + 84 ) - + 90 * 53 * - 4 FROM tab2 AS cor0
----
19080
19080
19080

skipif mysql # not compatible
query I rowsort label-9381
SELECT + col0 / + ( + 84 ) - + 90 * 53 * - 4 FROM tab2 AS cor0
----
19080
19080
19080

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - - COUNT( * ) * + 55 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9382
SELECT - - COUNT ( * ) * + 55 FROM tab0 AS cor0
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT DISTINCT 95 DIV 73 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT 95 / 73 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9384
SELECT DISTINCT + 97 * + + col0 AS col2, col1 * + col2 + 7 - - - 89 DIV - ( - col0 * + col2 ) FROM tab2
----
4462
1180
6208
3087
7275
3893

skipif mysql # not compatible
query II rowsort label-9384
SELECT DISTINCT + 97 * + + col0 AS col2, col1 * + col2 + 7 - - - 89 / - ( - col0 * + col2 ) FROM tab2
----
4462
1180
6208
3087
7275
3893

query II rowsort
SELECT ALL col1, - 37 AS col0 FROM tab0
----
1
-37
21
-37
81
-37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 70 + col2 / - - col0 ) IS NULL
----

query I rowsort
SELECT + + col2 * + 77 * - + col1 + col0 + + col1 + + col2 * col1 FROM tab0 cor0
----
-15852
-289236
-7426

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL ( - COUNT( * ) ) + + 5 AS col2 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL ( - COUNT ( * ) ) + + 5 AS col2 FROM tab0 cor0
----
2

query I rowsort
SELECT - 83 + - col2 + + col2 AS col2 FROM tab2 cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - COUNT( ALL + 6 ) + - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9390
SELECT - COUNT ( ALL + 6 ) + - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL - col2 + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - - 78 + - col1 * + - col0 * - 20 AS col0 FROM tab0 AS cor0
----
-20634
-35760
5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - ( + - col0 ) * + + 88 FROM tab2 cor0
----
4048
5632
6600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9396
SELECT col2 DIV + CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT col2 / + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 25 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9398
SELECT DISTINCT + - col1 * + col2 * CAST( NULL AS DECIMAL ) / + + col1 * + - 88 * 58 + + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT + - col1 * + col2 * CAST ( NULL AS REAL ) / + + col1 * + - 88 * 58 + + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 33 + + + col1 - col2 + + col2 FROM tab2 cor0
----
100
110
84

query I rowsort
SELECT ALL + + col0 + + 37 FROM tab1 AS cor0
----
122
128
88

query I rowsort
SELECT - - col0 + + 52 AS col2 FROM tab0 AS cor0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 51 * + MAX( ALL - + col2 ) FROM tab2 AS cor0 WHERE + 69 + - + 73 - - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 51 * + MAX ( ALL - + col2 ) FROM tab2 AS cor0 WHERE + 69 + - + 73 - - col1 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL - 18 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - 18 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT COUNT( + 95 ) FROM tab0 AS cor0 WHERE + col2 NOT IN ( + 53 )
----
3

skipif mysql # not compatible
query I rowsort label-9404
SELECT COUNT ( + 95 ) FROM tab0 AS cor0 WHERE + col2 NOT IN ( + 53 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9405
SELECT - 18 + ( - COUNT( DISTINCT ( CAST( + 54 AS SIGNED ) ) ) ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9405
SELECT - 18 + ( - COUNT ( DISTINCT ( CAST ( + 54 AS INTEGER ) ) ) ) AS col2 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9406
SELECT + col2 FROM tab1 AS cor0 WHERE 86 / - col2 * - ( CAST( NULL AS DECIMAL ) ) >= - col2 + + col2
----

skipif mysql # not compatible
query I rowsort label-9406
SELECT + col2 FROM tab1 AS cor0 WHERE 86 / - col2 * - ( CAST ( NULL AS REAL ) ) >= - col2 + + col2
----

query I rowsort
SELECT 63 + col0 + + col2 FROM tab2 AS cor0
----
132
167
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - 15 * + SUM( ALL - - 97 ) + - 54 * 32 FROM tab2
----
-6093

skipif mysql # not compatible
query I rowsort label-9408
SELECT - 15 * + SUM ( ALL - - 97 ) + - 54 * 32 FROM tab2
----
-6093

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT - COUNT( + + col2 ) AS col0 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT - COUNT ( + + col2 ) AS col0 FROM tab0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL + + 29 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT 84 + col2 DIV - - CAST( col2 AS SIGNED ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT 84 + col2 / - - CAST ( col2 AS INTEGER ) FROM tab0
----
85

query II rowsort
SELECT - col1, - col2 + ( col0 ) AS col0 FROM tab1
----
-14
-45
-47
23
-5
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT 62 DIV - + 34 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9414
SELECT 62 / - + 34 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) * - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + ( - - col2 ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + MAX( DISTINCT + col2 ) * + - COUNT( * ) * - MIN( + - 97 ) + - 24 AS col2 FROM tab1 AS cor0
----
-27960

skipif mysql # not compatible
query I rowsort label-9418
SELECT + MAX ( DISTINCT + col2 ) * + - COUNT ( * ) * - MIN ( + - 97 ) + - 24 AS col2 FROM tab1 AS cor0
----
-27960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 65 * - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 82 > NULL
----

query I rowsort
SELECT 8 * + - 52 FROM tab2 AS cor0
----
-416
-416
-416

query I rowsort
SELECT - - 74 * - 51 * + ( + - ( + 33 ) ) + + col1 / + + col2 + col2 * ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, 65 AS col1 FROM tab2
----
46
65
64
65
75
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - + 53 = ( - 93 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - + 53 = ( - 93 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - COUNT( ALL 21 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9425
SELECT - COUNT ( ALL 21 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - MIN( ALL 83 ) AS col2 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-9426
SELECT - MIN ( ALL 83 ) AS col2 FROM tab0
----
-83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 54 NOT BETWEEN ( + col0 + - col2 ) AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + col1 + + col2 * + + 70 AS col2 FROM tab1 cor0 WHERE + col1 NOT IN ( - + col2 )
----
4555
7434
9037

query I rowsort
SELECT ALL - + col1 * col2 + - + 5 + - col0 FROM tab1 AS cor0
----
-1400
-3292
-385

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 44 ) NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + - - col0 * 9 col0 FROM tab0
----
141
789
879

query I rowsort
SELECT DISTINCT + 25 * col2 FROM tab2
----
1000
1450
575

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9433
SELECT ALL - col2 * - + CAST( NULL AS DECIMAL ), + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9433
SELECT ALL - col2 * - + CAST ( NULL AS REAL ), + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT ALL + + COUNT( * ) * - - 28, + COUNT( col0 ) + COUNT( * ) col0 FROM tab1 AS cor0
----
84
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9434
SELECT ALL + + COUNT ( * ) * - - 28, + COUNT ( col0 ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
84
6

query II rowsort
SELECT DISTINCT + col2 AS col0, + 5 FROM tab0 AS cor0
----
10
5
47
5
99
5

query I rowsort
SELECT ALL - 51 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-102
-118
-128

query I rowsort
SELECT DISTINCT - - 66 * + 96 + 14 * - + col0 * 38 * - - 74 AS col1 FROM tab2 AS cor0
----
-1804592
-2513216
-2946264

query I rowsort
SELECT DISTINCT + - ( - - col2 ) - ( - col0 ) FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT ALL + 27 + 80 DIV + col2 AS col2 FROM tab0 AS cor0
----
27
28
35

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + 27 + 80 / + col2 AS col2 FROM tab0 AS cor0
----
27
28
35

onlyif mysql # DIV for integer division: 
query II rowsort label-9440
SELECT + 88 DIV + + col1 AS col2, 13 FROM tab1 AS cor0
----
1
13
17
13
6
13

skipif mysql # not compatible
query II rowsort label-9440
SELECT + 88 / + + col1 AS col2, 13 FROM tab1 AS cor0
----
1
13
17
13
6
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT ALL - COUNT( DISTINCT ( col0 ) ) - 25 DIV + + 12 + + + 74 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - COUNT ( DISTINCT ( col0 ) ) - 25 / + + 12 + + + 74 FROM tab2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT - COUNT( * ) - COUNT( * ) * + - SUM( - col2 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT - COUNT ( * ) - COUNT ( * ) * + - SUM ( - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT ( col2 ), col0 * ( - col2 ) + 90 + - - col1 AS col2 FROM tab0
----
10
-759
47
-534
99
-9512

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + COUNT( * ) * MAX( DISTINCT + col2 ) AS col2 FROM tab0 WHERE + 88 >= - + col2
----
297

skipif mysql # not compatible
query I rowsort label-9444
SELECT + COUNT ( * ) * MAX ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE + 88 >= - + col2
----
297

query I rowsort
SELECT 48 * + + col0 - + col2 AS col0 FROM tab1
----
2352
4021
4300

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9447
SELECT - MIN( - col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT - MIN ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT DISTINCT - 13 DIV - - col1 AS col0 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - 13 / - - col1 AS col0 FROM tab1
----
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT - COUNT( * ) + - MAX( col2 ), 58 AS col2 FROM tab0 AS cor0
----
-102
58

skipif mysql # not compatible
query II rowsort label-9449
SELECT - COUNT ( * ) + - MAX ( col2 ), 58 AS col2 FROM tab0 AS cor0
----
-102
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + COUNT( ALL - col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9450
SELECT + COUNT ( ALL - col1 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - MIN( - col2 ) FROM tab1 WHERE NOT NULL = + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - MIN ( - col2 ) FROM tab1 WHERE NOT NULL = + 6
----
NULL

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 68 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - MIN( DISTINCT + 30 ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9454
SELECT - MIN ( DISTINCT + 30 ) AS col0 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL - - 99 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9455
SELECT ALL - - 99 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT - col1 * - 48 * + - 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41616
-54672
-62832

query I rowsort
SELECT - col0 * - - col0 + + - col0 * col2 * - 11 FROM tab2 AS cor0
----
24064
42225
9522

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9458
SELECT + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 AS col1, + col2 * col2 col2 FROM tab0 AS cor0
----
39
100
39
2209
39
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT + ( - 96 ) FROM tab0
----
-96
-96
-96

query II rowsort
SELECT ALL + ( col2 ), col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL 20 + + 65 AS col0 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT MAX( ALL 38 ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9464
SELECT MAX ( ALL 38 ) FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9465
SELECT 88, - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
88
-9

skipif mysql # not compatible
query II rowsort label-9465
SELECT 88, - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
88
-9

query I rowsort
SELECT DISTINCT - + 90 * - 84 + col2 AS col1 FROM tab0 AS cor0
----
7570
7607
7659

query I rowsort
SELECT + + col2 + + - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col0 + + - 70 + col2 FROM tab2 cor0
----
-87
-93
-94

query I rowsort
SELECT - + col1 * + 52 + - 64 + - + col0 FROM tab0 AS cor0
----
-1243
-213
-4291

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - 73 + SUM( - col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9470
SELECT - 73 + SUM ( - col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT ( - col1 ) DIV + - col1 + - 95 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1121
1733
3

skipif mysql # not compatible
query I rowsort label-9471
SELECT ( - col1 ) / + - col1 + - 95 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1121
1733
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT ALL - + 15 + col0 DIV + - col2 FROM tab2 cor0
----
-16
-16
-17

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL - + 15 + col0 / + - col2 FROM tab2 cor0
----
-16
-16
-17

query I rowsort
SELECT - col0 + - 23 + - col0 + + + col0 FROM tab1 AS cor0
----
-108
-114
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + MAX( DISTINCT - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + MAX ( DISTINCT - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + + 45 + - col1 * + 39 * + - 18 FROM tab2 AS cor0
----
35847
47079
54099

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - 15 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - 15 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col0 * - col1 col2 FROM tab1
----
201019
2125
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 col0, col2 AS col2 FROM tab1
----
73
59
73
68
73
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 96, + col2 + + col2 + - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + SUM( - 73 ) AS col0 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + SUM ( - 73 ) AS col0 FROM tab2 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9482
SELECT DISTINCT * FROM tab1 WHERE - - 36 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + 64 * - + 20 * + col2 + + 0 + + + 31 * + ( - + col1 ) / - col0 = col2
----

skipif mysql # not compatible
query III rowsort label-9482
SELECT DISTINCT * FROM tab1 WHERE - - 36 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 64 * - + 20 * + col2 + + 0 + + + 31 * + ( - + col1 ) / - col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + MIN( ALL - col1 ) AS col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9483
SELECT + MIN ( ALL - col1 ) AS col1 FROM tab0 cor0
----
-81

query I rowsort
SELECT + - ( - + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab1 WHERE NOT ( + - col0 * + col1 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab1 WHERE NOT ( + - col0 * + col1 ) <= NULL
----
NULL

query I rowsort
SELECT + col0 - - 36 FROM tab1 WHERE NULL NOT BETWEEN col2 AND ( + col2 / + col1 + + col0 + + col2 / + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL MIN( DISTINCT + - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL MIN ( DISTINCT + - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT CAST( + - ( + 79 ) AS SIGNED ) FROM tab0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( + - ( + 79 ) AS INTEGER ) FROM tab0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT AVG ( - 57 ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT AVG ( - 57 ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL - 43 AS col2, col2 * col0 AS col0 FROM tab0
----
-43
705
-43
870
-43
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT col0 DIV + 97 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9491
SELECT col0 / + 97 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + - 20 FROM tab0 cor0
----
-101
-21
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT ALL CAST( NULL AS SIGNED ) + + - col0 / - 7 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL CAST ( NULL AS INTEGER ) + + - col0 / - 7 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT + - MIN( ALL col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + - MIN ( ALL col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 72 + + col2 * col2 FROM tab0 cor0
----
172
2281
9873

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL + + COUNT( * ) - ( SUM( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + + COUNT ( * ) - ( SUM ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-9497
SELECT DISTINCT - col1 DIV + col1 col0, - col0 FROM tab0
----
-1
-15
-1
-87
-1
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9497
SELECT DISTINCT - col1 / + col1 col0, - col0 FROM tab0
----
-1
-15
-1
-87
-1
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT DISTINCT col1 + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT col1 + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 50 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT - 0 * + - 19 - + - col1 DIV - - 10 - - col0 + + col2 - - + col0 * col2 FROM tab1 AS cor0
----
5044
5159
6351

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - 0 * + - 19 - + - col1 / - - 10 - - col0 + + col2 - - + col0 * col2 FROM tab1 AS cor0
----
5044
5159
6351

query I rowsort
SELECT 75 * col2 FROM tab1
----
4425
5100
7200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT - COUNT( * ) DIV + + 33 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT - COUNT ( * ) / + + 33 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( * ) - + - 90 FROM tab1 WHERE NOT col1 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( * ) - + - 90 FROM tab1 WHERE NOT col1 IS NULL
----
87

query I rowsort
SELECT ALL 53 * - col1 AS col2 FROM tab0
----
-1113
-4293
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT DISTINCT - COUNT( * ) DIV MAX( col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - COUNT ( * ) / MAX ( col0 ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 1 AS col2, ( - col2 ) col0 FROM tab1 AS cor0
----
-1
-59
-1
-68
-1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT - - MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - - MAX ( col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT - 73 DIV - COUNT( - + col1 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9508
SELECT - 73 / - COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + 69 * 42 AS col2 FROM tab0 AS cor0
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT + COUNT( * ) col2 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-9510
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col2, + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL <= ( NULL ) )
----

query II rowsort
SELECT ALL 3 AS col1, col1 FROM tab1
----
3
14
3
47
3
5

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col2 - - col1 IS NOT NULL
----

query I rowsort
SELECT + ( + - col2 ) + 40 * - - 95 / - 7 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 37 * 91 FROM tab2, tab1 AS cor0
----
9 values hashing to a3307c2e62da67085c8712818632a892

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT - - COUNT( + col1 ) * + + 50 AS col2 FROM tab1 cor0
----
150

skipif mysql # not compatible
query I rowsort label-9517
SELECT - - COUNT ( + col1 ) * + + 50 AS col2 FROM tab1 cor0
----
150

query II rowsort
SELECT - col0, col0 - - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) + + col1 <> ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 + + ( col1 ) col1 FROM tab0 AS cor0
----
-47
-67
13

query II rowsort
SELECT - col2, 42 AS col2 FROM tab0 AS cor0
----
-10
42
-47
42
-99
42

query II rowsort
SELECT DISTINCT 46 AS col1, - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - - 9 + - - col0 AS col2 FROM tab2 AS cor0
----
55
73
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9523
SELECT + 75 AS col0, - CAST( NULL AS DECIMAL ) * - col0 FROM tab1 AS cor0
----
75
NULL
75
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9523
SELECT + 75 AS col0, - CAST ( NULL AS REAL ) * - col0 FROM tab1 AS cor0
----
75
NULL
75
NULL
75
NULL

query I rowsort
SELECT DISTINCT - col0 + + - 56 + + col2 FROM tab0
----
-133
-24
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9525
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9525
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - CAST ( - col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE - + 90 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 83 BETWEEN + + col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + + col1 ) + - - col2 + col1 + - + col2 AS col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9529
SELECT * FROM tab1 WHERE + + 31 * CAST( NULL AS DECIMAL ) - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9529
SELECT * FROM tab1 WHERE + + 31 * CAST ( NULL AS REAL ) - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + 76 / - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 97 * + 49 - + 11 FROM tab1
----
4742

query I rowsort
SELECT + + col1 + - + ( 91 ) - + ( + col2 ) FROM tab0 AS cor0
----
-189
-57
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT + col2 + CAST( + + ( - - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-9533
SELECT + col2 + CAST ( + + ( - - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + + col0 + - col2 + - + ( - + col0 ) FROM tab2 AS cor0
----
69
88
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT 35 + COUNT( * ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT 35 + COUNT ( * ) FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL - COUNT( * ) * + 14 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - COUNT ( * ) * + 14 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT - 10 * + 95 AS col0 FROM tab1 AS cor0
----
-950
-950
-950

query II rowsort
SELECT DISTINCT - 55 * + + col1 * + col2 AS col1, + col2 * 45 AS col2 FROM tab2 AS cor0
----
-169400
1800
-213730
2610
-64515
1035

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9541
SELECT + CAST( NULL AS DECIMAL ) * + 54 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT + CAST ( NULL AS REAL ) * + 54 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 15 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
1334
1433
861

query I rowsort
SELECT 61 / + col0 + - col0 FROM tab1 WHERE NOT + col0 NOT IN ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * - - 69 + + col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2782
-2815
-2824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
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-9547
SELECT - MAX( - 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9547
SELECT - MAX ( - 49 ) FROM tab1
----
49

query I rowsort
SELECT + - 22 AS col1 FROM tab2 cor0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 91 * + - 21 + - col2, - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 82 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9551
SELECT - 23 DIV col2 * - 74 AS col2 FROM tab0
----
0
0
148

skipif mysql # not compatible
query I rowsort label-9551
SELECT - 23 / col2 * - 74 AS col2 FROM tab0
----
0
0
148

query I rowsort
SELECT DISTINCT + 36 * + 82 FROM tab2
----
2952

query I rowsort
SELECT ALL col0 * + col2 * + col1 + col0 AS col1 FROM tab1 cor0
----
25160
290927
68595

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 >= - - col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - col1 * col2 AND + 40
----
2

skipif mysql # not compatible
query I rowsort label-9555
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - col1 * col2 AND + 40
----
2

query I rowsort
SELECT ALL + 27 + + col2 FROM tab0 AS cor0
----
126
37
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( ( NOT - - col2 IS NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT - ( col2 ) DIV + 81 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT - ( col2 ) / + 81 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL 57 + COUNT( * ) * + - 29 AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL 57 + COUNT ( * ) * + - 29 AS col2 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT - ( - + col0 ) + + - col1 * + - 33 + col2 AS col1 FROM tab1
----
1710
309
609

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL SUM( ALL + col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9561
SELECT ALL SUM ( ALL + col1 ) col0 FROM tab2
----
195

query II rowsort
SELECT ALL col2 AS col1, ( + 63 ) * - col2 FROM tab0
----
10
-630
47
-2961
99
-6237

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL OR NULL BETWEEN NULL AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT 69 DIV + col2 - - col0 AS col0 FROM tab2
----
49
65
76

skipif mysql # not compatible
query I rowsort label-9564
SELECT 69 / + col2 - - col0 AS col0 FROM tab2
----
49
65
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND ( + col0 )
----

query I rowsort
SELECT ALL + 18 + col1 * 70 * 19 FROM tab1 AS cor0
----
18638
62528
6668

query II rowsort
SELECT col0 + 75 AS col0, + col1 FROM tab2
----
121
51
139
77
150
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT ALL col0 * + + col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL col0 * + + col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) - + 31 + - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) - + 31 + - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 81 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 87 * + - 36 col1, + col2 FROM tab1 AS cor0
----
-3132
59
-3132
68
-3132
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 55 IS NOT NULL
----

query I rowsort
SELECT 23 * - 72 - + 56 FROM tab2 AS cor0
----
-1712
-1712
-1712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT - ( - CAST( - col0 AS SIGNED ) ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT - ( - CAST ( - col0 AS INTEGER ) ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, col0 + 32 AS col0 FROM tab2
----
-23
78
-40
96
-58
107

query I rowsort
SELECT 82 * + col2 FROM tab0
----
3854
8118
820

query I rowsort
SELECT ALL - ( - 63 ) FROM tab1
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL 47 * + - 6 AS col0 FROM tab0
----
-282
-282
-282

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 + - + 22 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + COUNT( - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9582
SELECT + COUNT ( - - col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col0 ) = col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT - COUNT( * ) + + + 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-9584
SELECT - COUNT ( * ) + + + 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT SUM( - - 57 ) + - 85 + + COUNT( + - 90 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT SUM ( - - 57 ) + - 85 + + COUNT ( + - 90 ) FROM tab0 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + ( col1 ) col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - 47 * + + 33 + + + col2 + - + col2 + - 87 FROM tab1 AS cor0
----
-1638
-1638
-1638

query I rowsort
SELECT col0 * col1 + col2 * + col2 FROM tab0 AS cor0
----
1927
3424
9898

query I rowsort
SELECT DISTINCT - col1 + ( - - col1 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 22 + col1 col1 FROM tab1 AS cor0
----
1081
115
322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 AS col0, - col1 col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( - ( + - 69 ) )
----
29
-51
29
-67
29
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL MIN( - col2 ) + - + 77 col0 FROM tab0 cor0
----
-176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9593
SELECT ALL MIN ( - col2 ) + - + 77 col0 FROM tab0 cor0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL + COUNT( - + 35 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + COUNT ( - + 35 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT col2 * - CAST( - 8 AS SIGNED ) + 94 * 9 FROM tab1
----
1318
1390
1614

skipif mysql # not compatible
query I rowsort label-9595
SELECT col2 * - CAST ( - 8 AS INTEGER ) + 94 * 9 FROM tab1
----
1318
1390
1614

query I rowsort
SELECT DISTINCT - 65 FROM tab0, tab2 cor0
----
-65

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab1, tab1 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col1 + 4
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT ALL 39 * - 45 * - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0
----
5265
-3

skipif mysql # not compatible
query II rowsort label-9599
SELECT ALL 39 * - 45 * - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0
----
5265
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - col1, - 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT - CAST( + - 80 AS SIGNED ) * - col2 AS col2 FROM tab2 cor0
----
-1840
-3200
-4640

skipif mysql # not compatible
query I rowsort label-9601
SELECT - CAST ( + - 80 AS INTEGER ) * - col2 AS col2 FROM tab2 cor0
----
-1840
-3200
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT ALL - + 16 + - col0 - col1 DIV + 30 AS col1 FROM tab2 AS cor0
----
-63
-82
-93

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - + 16 + - col0 - col1 / + 30 AS col1 FROM tab2 AS cor0
----
-63
-82
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> - 30 * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col1 * 21 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col1 * 21 FROM tab2
----
NULL

query I rowsort
SELECT col0 / + - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT COUNT( * ) AS col1, - 75 FROM tab0 AS cor0
----
3
-75

skipif mysql # not compatible
query II rowsort label-9606
SELECT COUNT ( * ) AS col1, - 75 FROM tab0 AS cor0
----
3
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT DISTINCT - CAST( col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9607
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 32 col1, 16 col2 FROM tab0 cor0
----
32
16

query I rowsort
SELECT + + col0 * - 84 * + col0 AS col1 FROM tab1 cor0
----
-218484
-606900
-695604

query II rowsort
SELECT DISTINCT col2, col2 * + + ( - + 18 ) + + col0 FROM tab2 AS cor0
----
23
-368
40
-656
58
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT MAX( DISTINCT - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9611
SELECT MAX ( DISTINCT - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT + COUNT( - col2 ), - 16 AS col0 FROM tab0
----
3
-16

skipif mysql # not compatible
query II rowsort label-9612
SELECT + COUNT ( - col2 ), - 16 AS col0 FROM tab0
----
3
-16

query I rowsort
SELECT DISTINCT col0 * - - col2 + - col0 FROM tab0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + 37 + - COUNT( * ) col2 FROM tab2 cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9614
SELECT ALL + 37 + - COUNT ( * ) col2 FROM tab2 cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 30 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - col1 col0 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT col1 * + + 49 FROM tab0
----
1029
3969
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL MIN( + col0 ) + - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL MIN ( + col0 ) + - COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT DISTINCT - col0 + - ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN NULL AND col1 + - col1
----

query I rowsort
SELECT - col2 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT + MAX( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT + MAX ( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL col2 + - + 13 * - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 * + CAST( - CAST( + 47 AS SIGNED ) AS SIGNED ) * - + col0 ) AND + ( + - col2 )
----

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL col2 + - + 13 * - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 * + CAST ( - CAST ( + 47 AS INTEGER ) AS INTEGER ) * - + col0 ) AND + ( + - col2 )
----

query I rowsort
SELECT ALL - col0 + 19 + - 55 * + col0 AS col1 FROM tab2 cor0
----
-2557
-3565
-4181

query II rowsort
SELECT + 1 AS col1, col0 AS col1 FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + 61 col1 FROM tab1
----
-2
35
7

query I rowsort
SELECT 25 * - 28 FROM tab0
----
-700
-700
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 - col2 col2 FROM tab1
----
-42
-51
-79

query I rowsort
SELECT ( - + col2 ) - - col1 * + col1 FROM tab1
----
-34
100
2141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT + 29 - 56 * - ( + CAST( NULL AS SIGNED ) ) / 65 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT + 29 - 56 * - ( + CAST ( NULL AS INTEGER ) ) / 65 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 96 + col1 AS col1 FROM tab1
----
101
110
143

query I rowsort
SELECT 26 * col0 + col0 FROM tab1
----
1377
2295
2457

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT ALL 49 DIV col1 FROM tab0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL 49 / col1 FROM tab0
----
0
2
49

query I rowsort
SELECT ALL + ( + - 28 ) AS col2 FROM tab2 AS cor0 WHERE NOT 63 NOT IN ( + 47, - col1 / + + col1 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT ALL + + 23 DIV - col1 AS col1 FROM tab0 cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + + 23 / - col1 AS col1 FROM tab0 cor0
----
-1
-23
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 AS cor0 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT - col0 FROM tab1 WHERE NOT + 33 + - CAST( NULL AS SIGNED ) * + - col2 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9638
SELECT - col0 FROM tab1 WHERE NOT + 33 + - CAST ( NULL AS INTEGER ) * + - col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9639
SELECT DISTINCT + + COUNT( * ) AS col0, CAST( - - 14 AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
3
17

skipif mysql # not compatible
query II rowsort label-9639
SELECT DISTINCT + + COUNT ( * ) AS col0, CAST ( - - 14 AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
3
17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9640
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + CAST( NULL AS DECIMAL ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9640
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + CAST ( NULL AS REAL ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT + col2 DIV 86 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9641
SELECT + col2 / 86 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9642
SELECT - - 45 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-9642
SELECT - - 45 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
45
NULL
45
NULL
45
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT - + col1 * col2 DIV - 25 FROM tab2 cor0
----
123
155
46

skipif mysql # not compatible
query I rowsort label-9643
SELECT - + col1 * col2 / - 25 FROM tab2 cor0
----
123
155
46

query II rowsort
SELECT DISTINCT col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9645
SELECT col2 AS col1, - CAST( - ( + - col0 ) AS SIGNED ) AS col0 FROM tab0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
query II rowsort label-9645
SELECT col2 AS col1, - CAST ( - ( + - col0 ) AS INTEGER ) AS col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE - 80 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 80 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9647
SELECT ALL - - COUNT( * ) AS col0, + ( + 65 ) FROM tab1 WHERE + + col0 * + col0 + CAST( - + 15 AS SIGNED ) = NULL
----
0
65

skipif mysql # not compatible
query II rowsort label-9647
SELECT ALL - - COUNT ( * ) AS col0, + ( + 65 ) FROM tab1 WHERE + + col0 * + col0 + CAST ( - + 15 AS INTEGER ) = NULL
----
0
65

query I rowsort
SELECT DISTINCT + 18 FROM tab1 WHERE ( NOT - col1 IS NULL )
----
18

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 ) + 10 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ( + + COUNT( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT ( + + COUNT ( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9652
SELECT col2 DIV + - col0, 28 * 35 AS col0 FROM tab2
----
0
980
0
980
0
980

skipif mysql # not compatible
query II rowsort label-9652
SELECT col2 / + - col0, 28 * 35 AS col0 FROM tab2
----
0
980
0
980
0
980

query I rowsort
SELECT + + col2 + 36 FROM tab1 WHERE NULL IS NULL
----
104
132
95

query II rowsort
SELECT - - 24 + col0 AS col2, 98 + col2 AS col0 FROM tab0 AS cor0
----
111
108
121
197
39
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9655
SELECT + + MIN( - - col1 ) + + COUNT( * ) * - COUNT( * ) DIV 34 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9655
SELECT + + MIN ( - - col1 ) + + COUNT ( * ) * - COUNT ( * ) / 34 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9656
SELECT 7 + - 56 AS col0, - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-49
NULL
-49
NULL
-49
NULL

skipif mysql # not compatible
query II rowsort label-9656
SELECT 7 + - 56 AS col0, - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-49
NULL
-49
NULL
-49
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + col2 + - col1 + - + col0 col0 FROM tab0 AS cor0
----
-114
-15
-65

query I rowsort
SELECT + 29 + + + ( - col2 ) FROM tab0 AS cor0
----
-18
-70
19

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 <> + - 48 * - + col1 + + col0 + + - col0 * + 70 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - 61 AS col1 FROM tab0
----
5307
5917
915

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT + 10 DIV - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 10 / - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( 0 ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + - - 52 AS col2 FROM tab0 WHERE NOT NULL IN ( - + col2, col2 + - 81 )
----

query I rowsort
SELECT 42 * 91 - 86 + - 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8290e27159b4fba1d5a2bd5ce6d1404

query I rowsort
SELECT ALL col2 + - + 45 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL MIN( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + + 29 + - - col0 col2 FROM tab0 AS cor0
----
29

query II rowsort
SELECT DISTINCT - 38 * + - col2 + - col1 * + col0, col2 AS col1 FROM tab1 cor0
----
-1693
68
1817
59
2934
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9669
SELECT DISTINCT col2 AS col2, + CAST( - - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-9669
SELECT DISTINCT col2 AS col2, + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
85
68
91
96
51

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-9671
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL + + COUNT( * ) + + 8 col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9675
SELECT ALL + + COUNT ( * ) + + 8 col1 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL - col2 + + - col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 cor0 WHERE ( NULL ) > - col1
----

query I rowsort
SELECT DISTINCT + col1 - + ( - + 19 ) + 96 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 17 + col1 FROM tab1
----
22
31
64

query I rowsort
SELECT 37 * - col0 + + 83 FROM tab0
----
-3136
-3506
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + ( - COUNT( * ) ) * + COUNT( - + col2 ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9681
SELECT + ( - COUNT ( * ) ) * + COUNT ( - + col2 ) col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + 21 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT ALL 13 + - + col0 + ( col2 ) + - - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-10
-11
-5

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL 13 + - + col0 + ( col2 ) + - - col0 / - col1 AS col2 FROM tab2 AS cor0
----
-10
-11
-5

query I rowsort
SELECT DISTINCT 23 - - col0 * - 38 AS col0 FROM tab0
----
-3283
-3663
-547

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL - 15 DIV + - 67 - + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - 15 / + - 67 - + col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col1 + 93 * - + col1 AS col2 FROM tab0
----
-1932
-7452
-92

query I rowsort
SELECT DISTINCT col0 - - + ( + 90 ) FROM tab1
----
141
175
181

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 44 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL - COUNT( * ) FROM tab1 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL - COUNT ( * ) FROM tab1 WHERE col1 IS NOT NULL
----
-3

query II rowsort
SELECT + - 34 * - col0, + col0 FROM tab1 AS cor0
----
1734
51
2890
85
3094
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT DISTINCT - col0 DIV - 46 + 78 AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - col0 / - 46 + 78 AS col1 FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT ALL - 89 DIV + col0 col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9693
SELECT ALL - 89 / + col0 col2 FROM tab0
----
-1
-5
0

query I rowsort
SELECT - 75 * col1 FROM tab0
----
-1575
-6075
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT - 88 DIV 19 AS col1 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-9695
SELECT - 88 / 19 AS col1 FROM tab2
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL 24 * - MAX( ALL + col2 ) AS col2 FROM tab0 cor0
----
-2376

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL 24 * - MAX ( ALL + col2 ) AS col2 FROM tab0 cor0
----
-2376

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - 9 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL MIN( + - col1 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL MIN ( + - col1 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT + SUM( ALL ( - ( - - ( + col1 ) ) ) ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9700
SELECT + SUM ( ALL ( - ( - - ( + col1 ) ) ) ) FROM tab0 cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT ALL - 70 + - - 24 DIV col1 FROM tab1 AS cor0
----
-66
-69
-70

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - 70 + - - 24 / col1 FROM tab1 AS cor0
----
-66
-69
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL - COUNT( * ) * - - 81 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - COUNT ( * ) * - - 81 FROM tab0 AS cor0
----
-243

query I rowsort
SELECT col0 * - col2 - 96 FROM tab0 AS cor0
----
-801
-966
-9699

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT ALL 62 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL 62 / - col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT COUNT( * ) + - COUNT( * ) - - MAX( - - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9705
SELECT COUNT ( * ) + - COUNT ( * ) - - MAX ( - - col2 ) AS col0 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + ( col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 37 + - 90 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN + col2 AND 24
----

query II rowsort
SELECT - col1 + col2, - col1 AS col1 FROM tab1
----
21
-47
54
-5
82
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 41 col1 FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL - col0 + + 27 FROM tab0 AS cor0
----
-60
-70
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9711
SELECT * FROM tab2 AS cor0 WHERE 44 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9711
SELECT * FROM tab2 AS cor0 WHERE 44 <> - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col1 + - 71, col1 AS col1 FROM tab2 AS cor0
----
-20
51
-4
67
6
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9713
SELECT * FROM tab1 WHERE ( NOT ( NULL ) < CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9713
SELECT * FROM tab1 WHERE ( NOT ( NULL ) < CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + 97 * - col0 * - col2 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT SUM( 4 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 62 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT SUM ( 4 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 62 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT COUNT( * ) + - + 13 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9717
SELECT COUNT ( * ) + - + 13 FROM tab0
----
-10

query I rowsort
SELECT - col1 + - 50 AS col0 FROM tab2 AS cor0
----
-101
-117
-127

query I rowsort
SELECT DISTINCT - 57 * + + col1 FROM tab2 AS cor0 WHERE NOT 15 IS NULL
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - + COUNT( * ) + - - 90 AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9720
SELECT - + COUNT ( * ) + - - 90 AS col0 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT SUM( 50 ) + - ( - + COUNT( - col0 ) ) AS col1 FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-9721
SELECT SUM ( 50 ) + - ( - + COUNT ( - col0 ) ) AS col1 FROM tab0 cor0
----
153

query I rowsort
SELECT ALL + 16 + - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-43
-52
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9723
SELECT - COUNT( * ) * - 4 + + MIN( ALL + ( - col0 ) ) AS col1, 69 FROM tab1 AS cor0
----
-79
69

skipif mysql # not compatible
query II rowsort label-9723
SELECT - COUNT ( * ) * - 4 + + MIN ( ALL + ( - col0 ) ) AS col1, 69 FROM tab1 AS cor0
----
-79
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT ALL col1 * col1 + + + col1 + - col1 DIV 10 * ( 70 ) + + + 34 AS col0 FROM tab2 AS cor0
----
2336
4170
5550

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL col1 * col1 + + + col1 + - col1 / 10 * ( 70 ) + + + 34 AS col0 FROM tab2 AS cor0
----
2336
4170
5550

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col2 + + + col0 AND - + col0 * + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9726
SELECT ALL col0, + 37 DIV - col2 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-9726
SELECT ALL col0, + 37 / - col2 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + - col2 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + - col2 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9729
SELECT DISTINCT * FROM tab2 WHERE - CAST( - col0 AS SIGNED ) + col0 NOT BETWEEN ( - col1 ) AND + 29 * - - col0
----

skipif mysql # not compatible
query III rowsort label-9729
SELECT DISTINCT * FROM tab2 WHERE - CAST ( - col0 AS INTEGER ) + col0 NOT BETWEEN ( - col1 ) AND + 29 * - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9730
SELECT COUNT( * ) AS col2, - 64 AS col0 FROM tab1
----
3
-64

skipif mysql # not compatible
query II rowsort label-9730
SELECT COUNT ( * ) AS col2, - 64 AS col0 FROM tab1
----
3
-64

query II rowsort
SELECT 67 AS col1, + 54 AS col0 FROM tab1
----
67
54
67
54
67
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9732
SELECT col1, + col1, col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 5784a1b0fe6042e940ea5642bd663b71

skipif mysql # not compatible
query III rowsort label-9732
SELECT col1, + col1, col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 5784a1b0fe6042e940ea5642bd663b71

query I rowsort
SELECT - + col2 * - - col1 * - 41 FROM tab1 cor0
----
12095
131036
55104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT 80 + - CAST( ( - - ( + col0 ) ) AS SIGNED ) AS col2 FROM tab1
----
-11
-5
29

skipif mysql # not compatible
query I rowsort label-9734
SELECT 80 + - CAST ( ( - - ( + col0 ) ) AS INTEGER ) AS col2 FROM tab1
----
-11
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT MIN( + - 4 ) FROM tab1 AS cor0 WHERE + 32 + - + col2 BETWEEN - col0 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT MIN ( + - 4 ) FROM tab1 AS cor0 WHERE + 32 + - + col2 BETWEEN - col0 AND ( NULL )
----
NULL

query I rowsort
SELECT - 63 + 59 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + 99 AND 98
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL CAST( NULL AS SIGNED ) + - 83 - - + ( + col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9739
SELECT ALL CAST ( NULL AS INTEGER ) + - 83 - - + ( + col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT - MAX( DISTINCT 7 ) AS col1 FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9740
SELECT - MAX ( DISTINCT 7 ) AS col1 FROM tab2 cor0
----
-7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND 38
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 * + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2 / - col0 + + col0 + col0, col2 * - col2 + - col2 + + ( - col1 ), - col0 )
----

query I rowsort
SELECT + 86 / - col0 FROM tab2 WHERE + + 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT MIN( 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT MIN ( 26 ) FROM tab2
----
26

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT ALL - col1 + - + 37 - CAST( NULL AS SIGNED ) + - col2 * col1 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - col1 + - + 37 - CAST ( NULL AS INTEGER ) + - col2 * col1 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 20 ) FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT DISTINCT COUNT( * ) AS col0, + MAX( DISTINCT - 50 ) FROM tab1 AS cor0 WHERE ( col0 ) * - 99 * + - col0 IS NOT NULL
----
3
-50

skipif mysql # not compatible
query II rowsort label-9749
SELECT DISTINCT COUNT ( * ) AS col0, + MAX ( DISTINCT - 50 ) FROM tab1 AS cor0 WHERE ( col0 ) * - 99 * + - col0 IS NOT NULL
----
3
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE 32 NOT BETWEEN + col1 AND + - ( + col2 ) + col0
----
3

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE 32 NOT BETWEEN + col1 AND + - ( + col2 ) + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL - 54 + + COUNT( * ) + MAX( - - 91 ) - + 20 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - 54 + + COUNT ( * ) + MAX ( - - 91 ) - + 20 FROM tab0 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT ALL CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * + + col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE col0 > - col2 * + - 96 + + col0 * + - col1 + 8
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 56 * - col1 AS col2 FROM tab1
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT DISTINCT 90 DIV - 63 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT 90 / - 63 FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT ALL SUM( col0 ) DIV + 92 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL SUM ( col0 ) / + 92 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL SUM( DISTINCT - 20 ) + 35 AS col0 FROM tab2 WHERE NOT col2 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL SUM ( DISTINCT - 20 ) + 35 AS col0 FROM tab2 WHERE NOT col2 IN ( col2 )
----
NULL

query I rowsort
SELECT 24 + 83 AS col1 FROM tab1
----
107
107
107

query III rowsort
SELECT * FROM tab0 WHERE + 2 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE 11 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT 19 + MAX( - col0 ) FROM tab2 WHERE col0 IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-9762
SELECT 19 + MAX ( - col0 ) FROM tab2 WHERE col0 IS NOT NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT + 84 - - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT + 84 - - COUNT ( * ) FROM tab2
----
87

query I rowsort
SELECT ALL + col1 + 66 FROM tab2
----
117
133
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT + CAST( NULL AS SIGNED ) / ( COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT + CAST ( NULL AS INTEGER ) / ( COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT - 60 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT - 60 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 44 * + col2 )
----

query I rowsort
SELECT ALL + 25 + - col1 FROM tab2
----
-26
-42
-52

query I rowsort
SELECT - 42 FROM tab2 WHERE ( 43 ) = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 9 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT CAST( + col1 AS SIGNED ) * ( CAST( col2 AS SIGNED ) ) + + col2 AS col1 FROM tab2
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-9771
SELECT CAST ( + col1 AS INTEGER ) * ( CAST ( col2 AS INTEGER ) ) + + col2 AS col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT ALL + col2 + - 70 AS col0 FROM tab2
----
-12
-30
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT + MIN( 41 ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-9773
SELECT + MIN ( 41 ) AS col0 FROM tab1
----
41

query I rowsort
SELECT 65 + - col1 FROM tab2
----
-12
-2
14

query I rowsort
SELECT col0 / + 28 + col1 AS col2 FROM tab2 WHERE NOT 51 NOT BETWEEN ( + col2 + + 4 * 99 ) AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + COUNT( - col1 ) AS col1 FROM tab0 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT + COUNT ( - col1 ) AS col1 FROM tab0 WHERE ( NULL ) = ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < + col1 + col1 * + 84
----

query I rowsort
SELECT 29 * col2 + - ( + col0 ) FROM tab0 WHERE NULL <= - 24 + - 48
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - MAX( col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9780
SELECT - MAX ( col1 ) AS col1 FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 * ( - col0 ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col2 + + 42 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9782
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col2 + + 42 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT ( - 37 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT ( - 37 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT COUNT( - 11 ) * 48 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( - 11 ) * 48 FROM tab2 AS cor0
----
144

query I rowsort
SELECT ( + AVG ( DISTINCT col1 ) ) AS col2 FROM tab2 WHERE NOT ( NULL ) < col2
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab2 ON NOT ( 27 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT 78 - + 8 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - 10 / + 19 + - 79 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT + + CAST( - AVG ( + 64 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9790
SELECT + + CAST ( - AVG ( + 64 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + col0 + + 96 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT - - ( 83 ) AS col1 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT - col2 * + col1 + - 95 FROM tab2 cor0
----
-1268
-3175
-3981

query I rowsort
SELECT + col2 + - col1 * + 1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + 59 + 27 * 43 FROM tab0 AS cor0
----
1220
1220
1220

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE ( - col1 / 73 ) <> ( NULL )
----

query I rowsort
SELECT ALL 18 + 3 * - col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-102
-156
-51

query I rowsort
SELECT DISTINCT + - 50 * col1 AS col2 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + MAX( DISTINCT + col2 ) + + ( - COUNT( * ) ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9799
SELECT + MAX ( DISTINCT + col2 ) + + ( - COUNT ( * ) ) AS col0 FROM tab2
----
55

query I rowsort
SELECT col1 + 38 FROM tab2 WHERE ( NULL ) = - col1 * 71
----

query III rowsort
SELECT * FROM tab0 WHERE 53 + 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT 54 * col0 * CAST( 71 AS SIGNED ) AS col2 FROM tab1
----
195534
325890
348894

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT 54 * col0 * CAST ( 71 AS INTEGER ) AS col2 FROM tab1
----
195534
325890
348894

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT 42 + + 82 DIV - 97 FROM tab2 WHERE col2 DIV 60 IS NOT NULL
----
42
42
42

skipif mysql # not compatible
query I rowsort label-9803
SELECT 42 + + 82 / - 97 FROM tab2 WHERE col2 / 60 IS NOT NULL
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 16 + col2 / col1 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 + 18 FROM tab0 AS cor0
----
117
28
65

query I rowsort
SELECT + 75 - 90 AS col1 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9807
SELECT DISTINCT * FROM tab2 WHERE - col0 * CAST( CAST( NULL AS DECIMAL ) + col2 AS SIGNED ) BETWEEN ( NULL ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-9807
SELECT DISTINCT * FROM tab2 WHERE - col0 * CAST ( CAST ( NULL AS REAL ) + col2 AS INTEGER ) BETWEEN ( NULL ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT DISTINCT - 72 DIV 45 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT - 72 / 45 AS col0 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT ALL - 78 DIV - 47 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - 78 / - 47 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + MIN( DISTINCT 82 ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9810
SELECT + MIN ( DISTINCT 82 ) AS col1 FROM tab1
----
82

query I rowsort
SELECT col0 + + col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - col2 )
----

query I rowsort
SELECT + - 43 AS col0 FROM tab1 cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT ( - col1 ) + + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT DISTINCT - - 97 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - - 97 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 * - 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col2 AS col0, - 84 AS col1 FROM tab2 AS cor0
----
-23
-84
-40
-84
-58
-84

query I rowsort
SELECT + 50 * - col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 65 * - 31 + + col2 * - 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT + + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9819
SELECT + + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9820
SELECT * FROM tab1 WHERE NOT + 48 BETWEEN ( + 85 ) AND ( - 75 ) - CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9820
SELECT * FROM tab1 WHERE NOT + 48 BETWEEN ( + 85 ) AND ( - 75 ) - CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT ALL - 82 DIV - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - 82 / - col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9822
SELECT + col1 DIV - + col2 AS col0, + col0 * + 97 AS col0 FROM tab2
----
-1
6208
-1
7275
-2
4462

skipif mysql # not compatible
query II rowsort label-9822
SELECT + col1 / - + col2 AS col0, + col0 * + 97 AS col0 FROM tab2
----
-1
6208
-1
7275
-2
4462

query I rowsort
SELECT DISTINCT 39 * + + col2 * + 72 AS col2 FROM tab2
----
112320
162864
64584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9824
SELECT COUNT( ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT COUNT ( ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL MAX( - - 95 ) * + 72 AS col0 FROM tab2
----
6840

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL MAX ( - - 95 ) * + 72 AS col0 FROM tab2
----
6840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 >= + col1
----
97
1
99

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT MAX( - 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9828
SELECT MAX ( - 81 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT + MIN( ALL + col1 ) AS col0, + COUNT( * ) col0 FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9829
SELECT + MIN ( ALL + col1 ) AS col0, + COUNT ( * ) col0 FROM tab0 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT - MIN( 84 ) FROM tab2 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - MIN ( 84 ) FROM tab2 cor0
----
-84

query I rowsort
SELECT ALL col1 + + 13 * + col1 AS col2 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT DISTINCT + 58 * - 30 FROM tab0 cor0
----
-1740

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT col0 / col1 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + 56 ) + + + col2 + - col1 ) <> NULL
----

query I rowsort
SELECT 24 * + 9 AS col1 FROM tab0
----
216
216
216

query I rowsort
SELECT 62 + + col2 FROM tab2
----
102
120
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) <= ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + col2 AS col0 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > ( - 46 )
----

query I rowsort
SELECT DISTINCT + - ( + + 10 ) + + 16 AS col1 FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * - + col0 * - + col2 col2 FROM tab0 AS cor0
----
6345
7830
86427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL - CAST( NULL AS SIGNED ) + + 13 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - CAST ( NULL AS INTEGER ) + + 13 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE - 16 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, col1 * col1 AS col2 FROM tab2
----
51
2601
67
4489
77
5929

query II rowsort
SELECT col0 AS col2, + 49 * - + 34 * - col1 FROM tab2
----
46
84966
64
128282
75
111622

query I rowsort
SELECT - 36 AS col2 FROM tab2 WHERE col0 + - 18 NOT BETWEEN ( col2 * - - col1 ) AND ( + col1 )
----
-36
-36
-36

query I rowsort
SELECT - 65 - - 57 * + + col1 AS col2 FROM tab0
----
-8
1132
4552

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 82 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col2 - + - 96 + col0 FROM tab1
----
-114
-1197
-3009

query I rowsort
SELECT col0 FROM tab0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT col1 * - CAST( NULL AS SIGNED ) + 50 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT col1 * - CAST ( NULL AS INTEGER ) + 50 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 - col2 * + col0 ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT - + COUNT( - col0 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT DISTINCT - + COUNT ( - col0 ) col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + 45 + 76 + - col0 + - col2 * 51 FROM tab2 AS cor0
----
-1098
-1983
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + COUNT( - col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9855
SELECT + COUNT ( - col0 ) AS col1 FROM tab2 cor0
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - col1 * + + col2 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT DISTINCT ( 18 ) DIV + + 36 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT ( 18 ) / + + 36 FROM tab2
----
0

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9860
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 / + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9860
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 / + - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL + col2 / - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( 0 NOT IN ( + col1 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT + + 94 * CAST( - 5 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 * + col2 + + + col1 * - 32
----

skipif mysql # not compatible
query I rowsort label-9863
SELECT + + 94 * CAST ( - 5 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 * + col2 + + + col1 * - 32
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL BETWEEN NULL AND - + 65 )
----

query I rowsort
SELECT + + 31 * - + col0 * col0 AS col0 FROM tab2 AS cor0
----
-126976
-174375
-65596

query II rowsort
SELECT DISTINCT - 81 * - 27, + 79 AS col1 FROM tab2 AS cor0
----
2187
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9867
SELECT ALL COUNT( * ) DIV - + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL COUNT ( * ) / - + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT col1 DIV - 50 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9868
SELECT col1 / - 50 AS col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT + col0 AS col2, - col1 - - - 85 FROM tab1
----
51
-99
85
-90
91
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT DISTINCT col1 DIV + - col2 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT col1 / + - col2 AS col1 FROM tab0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - col1 + 67 + col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 14 AS col1 FROM tab1 AS cor0 WHERE NOT + ( + 96 ) IS NOT NULL
----

query II rowsort
SELECT + col0, - 92 FROM tab2 AS cor0
----
46
-92
64
-92
75
-92

query I rowsort
SELECT - 60 * + - col0 AS col2 FROM tab0 AS cor0
----
5220
5820
900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 86 * - col1 NOT IN ( - 3 + + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - - 22 * - 47 * - - col2 + - col1 / + ( + col0 ) BETWEEN NULL AND + col0 + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT - - 35 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT - - 35 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT + + COUNT( + col2 ) + 27 AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT + + COUNT ( + col2 ) + 27 AS col2 FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT ALL 22 * - 71 + col2 DIV - 52 FROM tab0 AS cor0 WHERE 57 + + 0 NOT BETWEEN 90 AND 49 DIV - - 42 + col0 + - 3 * col0 OR NOT NULL IS NULL
----
-1562
-1562
-1563

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL 22 * - 71 + col2 / - 52 FROM tab0 AS cor0 WHERE 57 + + 0 NOT BETWEEN 90 AND 49 / - - 42 + col0 + - 3 * col0 OR NOT NULL IS NULL
----
-1562
-1562
-1563

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9880
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - col0 * col0 AND + col0 / + col1 + - 81
----

skipif mysql # not compatible
query III rowsort label-9880
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - col0 * col0 AND + col0 / + col1 + - 81
----

query I rowsort
SELECT ALL - col1 - + + col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + COUNT( * ) * + 39 + + 59 * + 83 + - COUNT( * ) + - - COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
5014

skipif mysql # not compatible
query I rowsort label-9882
SELECT + COUNT ( * ) * + 39 + + 59 * + 83 + - COUNT ( * ) + - - COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
5014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT + col1 AS col1 FROM tab1 WHERE - - ( - CAST( NULL AS SIGNED ) ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9883
SELECT + col1 AS col1 FROM tab1 WHERE - - ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
14
47
5

query I rowsort
SELECT ( 41 ) * - - 27 * 80 * ( - + ( - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
1328400
7704720
8590320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ( + 29 ) * - CAST( + - col1 AS SIGNED ) + 28 FROM tab2
----
1507
1971
2261

skipif mysql # not compatible
query I rowsort label-9885
SELECT ( + 29 ) * - CAST ( + - col1 AS INTEGER ) + 28 FROM tab2
----
1507
1971
2261

query I rowsort
SELECT DISTINCT + col2 - + - 98 FROM tab1
----
157
166
194

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL NOT IN ( - 79, col2 ) )
----

query I rowsort
SELECT - 48 * + 38 AS col2 FROM tab1
----
-1824
-1824
-1824

query I rowsort
SELECT - 92 * - - col0 AS col2 FROM tab0 cor0
----
-1380
-8004
-8924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + + 29 col1 FROM tab1 AS cor0 WHERE + 53 + - + 9 + col1 * col2 IS NOT NULL
----
-34
-43
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT - + 57 * COUNT( * ) col0 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9891
SELECT - + 57 * COUNT ( * ) col0 FROM tab2 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT - - COUNT( * ) * - COUNT( - col0 ) col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9892
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( - col0 ) col2 FROM tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col2 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT MAX( + 74 ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9894
SELECT MAX ( + 74 ) AS col0 FROM tab2 AS cor0
----
74

query II rowsort
SELECT col1 * col1, col2 AS col1 FROM tab0
----
1
99
441
10
6561
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 0 / + 52 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT - 80 * col0 AS col2 FROM tab1
----
-4080
-6800
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT DISTINCT 47 + + 29 + - col0 - - ( + + col0 ) DIV col2 * + + 24 * - col1 FROM tab2
----
-1607
-1836
-2418

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT 47 + + 29 + - col0 - - ( + + col0 ) / col2 * + + 24 * - col1 FROM tab2
----
-1607
-1836
-2418

query I rowsort
SELECT ALL 65 + + ( col2 ) AS col2 FROM tab1
----
124
133
161

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT ALL col1 + 25 - - ( 7 ) DIV + - 35 AS col1 FROM tab0 AS cor0
----
106
26
46

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL col1 + 25 - - ( 7 ) / + - 35 AS col1 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9902
SELECT DISTINCT col0 DIV - col1 + - - col1 AS col2 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT col0 / - col1 + - - col1 AS col2 FROM tab2 AS cor0
----
51
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT - 82 + SUM( + 20 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - 82 + SUM ( + 20 ) FROM tab1
----
-22

query III rowsort
SELECT * FROM tab1 WHERE 10 + 41 + - + 97 * + ( + 29 ) * col0 IS NOT NULL AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT 5 + + + COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9905
SELECT 5 + + + COUNT ( * ) FROM tab0
----
8

query I rowsort
SELECT ALL 40 + col2 AS col1 FROM tab0
----
139
50
87

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT - MIN( - col2 ) * COUNT( * ) FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - MIN ( - col2 ) * COUNT ( * ) FROM tab2 cor0
----
174

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 WHERE ( NOT NULL > + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT - MIN( DISTINCT + col1 ) + + 37 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - MIN ( DISTINCT + col1 ) + + 37 FROM tab0 AS cor0
----
36

query I rowsort
SELECT DISTINCT 79 + - - 16 AS col1 FROM tab1 cor0
----
95

query I rowsort
SELECT DISTINCT 71 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - - + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT DISTINCT + + col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9915
SELECT DISTINCT + + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - col1 + - + col1 AS col0 FROM tab2
----
2550
4422
5852

query II rowsort
SELECT ALL - ( - col2 ) AS col0, - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT + col0 FROM tab0 WHERE + col1 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9918
SELECT + col0 FROM tab0 WHERE + col1 >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT - ( - - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col0 * - 14 FROM tab2
----
1050
644
896

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT + col2 DIV + - col2 - + + 66 * - + col0 * + 32 DIV + - 1 AS col0 FROM tab2
----
-135169
-158401
-97153

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + col2 / + - col2 - + + 66 * - + col0 * + 32 / + - 1 AS col0 FROM tab2
----
-135169
-158401
-97153

query I rowsort
SELECT col1 + + ( + - 76 ) * + col0 AS col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT 56 + col1 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT 56 + col1 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9924
SELECT ALL SUM( ALL + + col1 ) col2, - CAST( NULL AS SIGNED ) * + 26 * - SUM( + + CAST( NULL AS SIGNED ) ) / - 59 AS col0 FROM tab2 AS cor0
----
195
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9924
SELECT ALL SUM ( ALL + + col1 ) col2, - CAST ( NULL AS INTEGER ) * + 26 * - SUM ( + + CAST ( NULL AS INTEGER ) ) / - 59 AS col0 FROM tab2 AS cor0
----
195
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - 90 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT + + MIN( - 74 ) col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9927
SELECT DISTINCT + + MIN ( - 74 ) col2 FROM tab0 AS cor0
----
-74

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT - 44 <> ( + 27 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9929
SELECT ALL + CAST ( NULL AS INTEGER ) col1 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-9930
SELECT DISTINCT MIN( CAST( 90 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT MIN ( CAST ( 90 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT col2 + - - 29 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT COUNT( * ) * COUNT( * ) col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9932
SELECT COUNT ( * ) * COUNT ( * ) col0 FROM tab1 cor0
----
9

query I rowsort
SELECT 47 * - 98 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4606
-4606
-4606

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT ALL + - col0 * - col0 + + 58 + - + 64 DIV - col1 + + col0 * + col2 FROM tab0 AS cor0
----
19134
8500
988

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + - col0 * - col0 + + 58 + - + 64 / - col1 + + col0 * + col2 FROM tab0 AS cor0
----
19134
8500
988

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) / - 21 ) < NULL
----

query I rowsort
SELECT ALL ( - + 66 ) FROM tab2 AS cor0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( + ( 26 ) ) - + + ( col2 ) + col1 col2 FROM tab1 AS cor0
----
1201
282
76

query I rowsort
SELECT - + ( - 48 ) AS col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9939
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col1 * - CAST( NULL AS DECIMAL ) NOT IN ( + - 77 * + col1, col1 - - - col0, col1 * - col0 * + 89 * + + col1, + col1 )
----

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col1 * - CAST ( NULL AS REAL ) NOT IN ( + - 77 * + col1, col1 - - - col0, col1 * - col0 * + 89 * + + col1, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT + ( + CAST( + + col0 AS SIGNED ) ) + col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-9940
SELECT + ( + CAST ( + + col0 AS INTEGER ) ) + col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT 44 * col2 AS col0 FROM tab0
----
2068
4356
440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9942
SELECT DISTINCT + col1 * + col2 + 61 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + col1 * + col2 + 61 / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT - 36 * - COUNT( * ) col1 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9943
SELECT DISTINCT - 36 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL 2 AS col1 FROM tab0 cor0 WHERE 48 / - col0 IS NOT NULL
----
2
2
2

query II rowsort
SELECT + + col2 AS col0, - col1 AS col2 FROM tab1 cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + col2 * + 56 + + + col2 AS col1 FROM tab1 AS cor0
----
3363
3876
5472

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + col1 NOT BETWEEN + - 61 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, - 60 col0 FROM tab2 AS cor0
----
46
-60
64
-60
75
-60

query I rowsort
SELECT - 9 * 21 AS col2 FROM tab2 AS cor0
----
-189
-189
-189

query I rowsort
SELECT - + 57 * 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT DISTINCT + col2 - - 45 DIV col2 + + - col0 AS col0 FROM tab0
----
-73
2
32

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + col2 - - 45 / col2 + + - col0 AS col0 FROM tab0
----
-73
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - COUNT( * ) * + + SUM( DISTINCT - - 1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - COUNT ( * ) * + + SUM ( DISTINCT - - 1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT - col1 + - 59 * + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-5154
-5724
-966

skipif mysql # not compatible
query I rowsort label-9953
SELECT - col1 + - 59 * + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-5154
-5724
-966

onlyif mysql # DIV for integer division: 
query II rowsort label-9954
SELECT DISTINCT - - col2 DIV col0 AS col0, col0 * + - col2 FROM tab2 AS cor0
----
0
-1058
0
-2560
0
-4350

skipif mysql # not compatible
query II rowsort label-9954
SELECT DISTINCT - - col2 / col0 AS col0, col0 * + - col2 FROM tab2 AS cor0
----
0
-1058
0
-2560
0
-4350

query I rowsort
SELECT ALL 72 FROM tab1 AS cor0 WHERE 6 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT ALL + col0 - - 5 DIV + - col2 * + 23 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + col0 - - 5 / + - col2 * + 23 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col0 * + col1 + + + col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT + + ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col1 + - 58 AS col2 FROM tab0
----
-37
-57
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT COUNT( * ) AS col1 FROM tab1 WHERE - 79 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE - 79 >= col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 76 ) >= col1
----
15
81
47

query I rowsort
SELECT ( + 63 ) AS col2 FROM tab1
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT col2 DIV + 51 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT col2 / + 51 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL + COUNT( - - ( + ( - col0 ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + COUNT ( - - ( + ( - col0 ) ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col2, - 96, + - col1 )
----

query II rowsort
SELECT DISTINCT + col2, 45 AS col0 FROM tab2
----
23
45
40
45
58
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9967
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + col1, col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT + 36, - col0 AS col0 FROM tab1 AS cor0
----
36
-51
36
-85
36
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9970
SELECT - CAST( - ( + + CAST( col1 AS SIGNED ) ) AS SIGNED ) AS col2, col0 FROM tab2 AS cor0 WHERE NOT + col0 + col1 * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9970
SELECT - CAST ( - ( + + CAST ( col1 AS INTEGER ) ) AS INTEGER ) AS col2, col0 FROM tab2 AS cor0 WHERE NOT + col0 + col1 * + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT - col0 DIV - ( + 52 ) AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9971
SELECT - col0 / - ( + 52 ) AS col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL MIN( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL MIN ( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
10

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - col1 + + 15 FROM tab1 AS cor0
----
-32
1
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( - col0 * col2 + col1 * + col0 * 32, 7, - col2, - col1 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT DISTINCT CAST( - COUNT( ALL 49 ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT CAST ( - COUNT ( ALL 49 ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + + col1 * - + col2 FROM tab0 WHERE NOT + col0 * - col2 - + - col1 + - 66 * - 43 * - + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT COUNT( * ) * + 59 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-9978
SELECT COUNT ( * ) * + 59 FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9979
SELECT - 73 DIV CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 73 / CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-1
-7
0

query I rowsort
SELECT col0 * + - 15 FROM tab2
----
-1125
-690
-960

query I rowsort
SELECT ALL 26 * + ( + + 28 ) AS col0 FROM tab2
----
728
728
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT + COUNT( * ) * - 25 AS col2 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9982
SELECT + COUNT ( * ) * - 25 AS col2 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT DISTINCT COUNT( * ) + - MIN( ALL col1 ) AS col0, SUM( + col0 ) AS col2 FROM tab1
----
-2
227

skipif mysql # not compatible
query II rowsort label-9983
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL col1 ) AS col0, SUM ( + col0 ) AS col2 FROM tab1
----
-2
227

query I rowsort
SELECT ALL - col1 + + ( - 51 ) FROM tab2 AS cor0
----
-102
-118
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL + 88 * 64 * - COUNT( * ) - 90 FROM tab0
----
-16986

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 88 * 64 * - COUNT ( * ) - 90 FROM tab0
----
-16986

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 22 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 < - 48
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT 15 * COUNT( 18 ) - + 79 * 75 + + 0 FROM tab2 AS cor0
----
-5880

skipif mysql # not compatible
query I rowsort label-9990
SELECT 15 * COUNT ( 18 ) - + 79 * 75 + + 0 FROM tab2 AS cor0
----
-5880

query I rowsort
SELECT + ( - 97 ) - + 5 AS col0 FROM tab1 AS cor0
----
-102
-102
-102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) ) OR NULL = - col2 + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT MIN( 63 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9993
SELECT MIN ( 63 ) FROM tab0 AS cor0
----
63

query II rowsort
SELECT DISTINCT ( - - col1 ) AS col2, 80 * + col0 AS col1 FROM tab1
----
14
4080
47
7280
5
6800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( - 52 ) col0 FROM tab0
----
-1092
-4212
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9996
SELECT + 11 * + + col1 AS col2, CAST( - 74 AS SIGNED ) FROM tab0
----
11
-74
231
-74
891
-74

skipif mysql # not compatible
query II rowsort label-9996
SELECT + 11 * + + col1 AS col2, CAST ( - 74 AS INTEGER ) FROM tab0
----
11
-74
231
-74
891
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + - col2 - - + 39
----

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab0 WHERE NULL >= - 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 93 AS col1 FROM tab1
----
51
-93
85
-93
91
-93

