sqllogictest
Artifact Content
Not logged in

Artifact dcc15d1bf5b1b94117b206fbe8d3ee5842049040:


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