sqllogictest
Artifact Content
Not logged in

Artifact a0260fa19b914216fe698cc9b55e109336fd9b80:


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 ALL COUNT( ALL + - col0 ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-9

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - - 38 ) * + ( - col0 ) * + 71 - + - 28 + + 85 AND - - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = - 85
----

query I rowsort
SELECT col2 * + + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT ALL COUNT( * ) DIV + 66 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL COUNT ( * ) / + 66 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT DISTINCT col0 DIV + + col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT col0 / + + col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL - CAST( - 61 AS SIGNED ) FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - CAST ( - 61 AS INTEGER ) FROM tab2
----
61
61
61

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9
SELECT ALL + col0 + + - col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-9
SELECT ALL + col0 + + - col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab1 cor0
----
10
28
94

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

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

query I rowsort
SELECT ALL col1 * - + col2 + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT ALL - col2 + + 95 AS col1 FROM tab0 AS cor0
----
-4
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT - 37 * - ( - - ( + 67 ) ) + - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
2488

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - 37 * - ( - - ( + 67 ) ) + - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-16
SELECT ALL + col2 + - CAST( - - col0 AS SIGNED ) FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + col2 + - CAST ( - - col0 AS INTEGER ) FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - col1 + + 96 AS col2 FROM tab1
----
49
82
91

query I rowsort
SELECT col0 + + 67 AS col0 FROM tab2
----
113
131
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT COUNT( * ) + - - MAX( 41 ) * 11 * - + COUNT( * ) + CAST( + ( - SUM( - + col2 ) ) AS SIGNED ) AS col2 FROM tab0
----
-1194

skipif mysql # not compatible
query I rowsort label-19
SELECT COUNT ( * ) + - - MAX ( 41 ) * 11 * - + COUNT ( * ) + CAST ( + ( - SUM ( - + col2 ) ) AS INTEGER ) AS col2 FROM tab0
----
-1194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 + - ( + 8 ) col2 FROM tab1 AS cor0
----
13
46
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL + - ( + CAST( 65 AS SIGNED ) ) + + 15 + + - col0 + + + 61 AS col1 FROM tab1 AS cor0
----
-40
-74
-80

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + - ( + CAST ( 65 AS INTEGER ) ) + + 15 + + - col0 + + + 61 AS col1 FROM tab1 AS cor0
----
-40
-74
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT ALL - 4 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
19
36
54

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - 4 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
19
36
54

query I rowsort
SELECT ALL col1 - - 76 + - + col1 FROM tab2
----
76
76
76

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

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

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

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

query I rowsort
SELECT ALL col2 * - col0 + ( - col2 ) - + col2 FROM tab1 AS cor0
----
-5088
-5133
-6324

query II rowsort
SELECT col2, + col0 * - col1 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

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

skipif mysql # not compatible
query I rowsort label-30
SELECT - - 93 * CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + + - COUNT ( * ) FROM tab2 cor0
----
276

query II rowsort
SELECT - col2 + col1 AS col2, col2 * - 75 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT ALL - 24 DIV + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - 24 / + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-24
0

query II rowsort
SELECT ALL 23, col0 AS col0 FROM tab2 cor0
----
23
46
23
64
23
75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT col2 DIV 1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-37
SELECT col2 / 1 AS col0 FROM tab2
----
23
40
58

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

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

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

skipif mysql # not compatible
query II rowsort label-39
SELECT ( col0 ), - CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

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

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

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT - col2 + + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE col2 + col0 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL - col0 / + - col1 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT ALL col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL col2 / + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT 8 + - COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT 8 + - COUNT ( * ) FROM tab2 AS cor0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT - ( + 60 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-180

skipif mysql # not compatible
query I rowsort label-46
SELECT - ( + 60 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-180

query I rowsort
SELECT DISTINCT + 77 FROM tab1 AS cor0 WHERE ( + 37 ) BETWEEN col2 + - 13 + 56 + + 23 * col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * + - col1 col1 FROM tab0
----
-3564
-44
-924

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

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT + COUNT( * ), SUM( 77 ) - - 80 AS col1 FROM tab1
----
3
311

skipif mysql # not compatible
query II rowsort label-50
SELECT + COUNT ( * ), SUM ( 77 ) - - 80 AS col1 FROM tab1
----
3
311

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-52
SELECT 12, col2 / - ( - - col2 ) * + CAST( NULL AS DECIMAL ) + col2 - col0 - + - 45 AS col1 FROM tab2
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
query II rowsort label-52
SELECT 12, col2 / - ( - - col2 ) * + CAST ( NULL AS REAL ) + col2 - col0 - + - 45 AS col1 FROM tab2
----
12
NULL
12
NULL
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT COUNT( * ) * - 31 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-53
SELECT COUNT ( * ) * - 31 FROM tab0
----
-93

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

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

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

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

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab2 cor0
----
-14

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

query I rowsort
SELECT col0 * + - col1 - + col0 + - - col1 FROM tab0 AS cor0
----
-1149
-1893
-193

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

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

query I rowsort
SELECT - col1 * + + 73 AS col0 FROM tab1
----
-1022
-3431
-365

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

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

query I rowsort
SELECT - + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN - - col2 AND - 9 * + col1
----

query I rowsort
SELECT ALL col0 * 85 * - col2 FROM tab1
----
-416160
-426275
-525980

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

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

query I rowsort
SELECT DISTINCT - ( - 90 ) FROM tab1
----
90

query I rowsort
SELECT DISTINCT + 16 * - col1 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT - MIN( ALL - - 54 ) AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-71
SELECT - MIN ( ALL - - 54 ) AS col0 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL MAX( - 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL MAX ( - 93 ) FROM tab0 AS cor0
----
-93

query I rowsort
SELECT 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 78 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 18 col1 FROM tab1 AS cor0 WHERE NOT 41 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 - 3 col2 FROM tab2
----
-57
-57
-57

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col1 > - 12
----

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

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

query II rowsort
SELECT ALL + col2 + - col1, + ( - col1 ) AS col2 FROM tab0 WHERE ( NOT ( ( NOT - 12 + + col2 <> ( + 46 ) ) ) )
----
-11
-21
-34
-81
98
-1

query I rowsort
SELECT + col1 + + - col2 * + col1 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT - MIN( + 53 ) + - 83 FROM tab1
----
-136

skipif mysql # not compatible
query I rowsort label-83
SELECT - MIN ( + 53 ) + - 83 FROM tab1
----
-136

query I rowsort
SELECT DISTINCT + 66 * - 53 - + 54 * + + col1 AS col1 FROM tab1
----
-3768
-4254
-6036

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT + - COUNT( * ) col2 FROM tab0 WHERE + + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-85
SELECT + - COUNT ( * ) col2 FROM tab0 WHERE + + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 28 * - - 83 * + 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 28 * - - 83 * + 70 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 AS col0, col1 col2, col1 AS col2 FROM tab1
----
9 values hashing to 3e0ccd43a3c31f9cb6c49cc17636481c

onlyif mysql # aggregate syntax: 
query II rowsort label-88
SELECT 3 AS col0, SUM( DISTINCT col2 ) + - COUNT( * ) FROM tab1
----
3
220

skipif mysql # not compatible
query II rowsort label-88
SELECT 3 AS col0, SUM ( DISTINCT col2 ) + - COUNT ( * ) FROM tab1
----
3
220

query I rowsort
SELECT col2 * 62 * + 34 AS col2 FROM tab1
----
124372
143344
202368

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-91
SELECT ALL + 53 DIV CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL + 53 / CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL - MAX( ALL + 56 ) AS col0 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - MAX ( ALL + 56 ) AS col0 FROM tab0 AS cor0
----
-56

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

query I rowsort
SELECT ( + col2 ) * + col2 AS col2 FROM tab2 cor0
----
1600
3364
529

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= - 35 / + col0 * - col0 + col1 * - - ( - col2 ) * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab1 WHERE NOT - - 26 - col0 + + - col2 / + col2 + col0 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - 97 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2 / - - col2 * + 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-102
SELECT + - SUM( DISTINCT + 19 ) col1, + ( - 84 ) AS col1 FROM tab0 AS cor0
----
-19
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-102
SELECT + - SUM ( DISTINCT + 19 ) col1, + ( - 84 ) AS col1 FROM tab0 AS cor0
----
-19
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT + 83 * - - COUNT( * ) * 26 AS col2 FROM tab2, tab2 AS cor0
----
19422

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT + 83 * - - COUNT ( * ) * 26 AS col2 FROM tab2, tab2 AS cor0
----
19422

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 38 IS NOT NULL
----

query I rowsort
SELECT 89 * + + col1 + col0 * 56 FROM tab0
----
5521
6741
8049

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - SUM( ALL + ( - col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL <= 47
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT - SUM ( ALL + ( - col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL <= 47
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT - MAX( + + col0 ) + 52 col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-111
SELECT DISTINCT - MAX ( + + col0 ) + 52 col1 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT - SUM( - + 85 ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - SUM ( - + 85 ) FROM tab1
----
255

query I rowsort
SELECT + col2 * + + col1 * + col2 FROM tab0
----
178929
2100
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT DISTINCT col0 - - - col1 DIV - - col1 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT col0 - - - col1 / - - col1 FROM tab0
----
14
86
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-115
SELECT ALL - 60 - - 71 AS col0, - 61 + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + + - MIN( - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
11
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-115
SELECT ALL - 60 - - 71 AS col0, - 61 + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + + - MIN ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
11
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 82 * - 43 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + ( - - 80 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 - col0 col2, + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 > + 98
----
-10
64
-21
75
8
46

query I rowsort
SELECT DISTINCT - + 25 FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND + - 98 + - + 99 / + 83 - - 26
----

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

query I rowsort
SELECT ALL + 34 FROM tab0 AS cor0 WHERE NOT + ( - + 65 ) IS NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT + 71 col2, - SUM( + - col2 ) FROM tab1 AS cor0
----
71
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-123
SELECT + 71 col2, - SUM ( + - col2 ) FROM tab1 AS cor0
----
71
223

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT 73 * + - COUNT( * ) AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-124
SELECT 73 * + - COUNT ( * ) AS col0 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL - MAX( - col2 ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-125
SELECT ALL - MAX ( - col2 ) col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - COUNT( * ) - + 44 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-126
SELECT - COUNT ( * ) - + 44 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-47

query II rowsort
SELECT ALL 43 AS col1, col2 * col2 + + + col2 * + - col1 FROM tab2
----
43
-1480
43
-522
43
-644

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

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

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

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

query I rowsort
SELECT ALL + 7 + + col0 * + col2 * - col1 FROM tab0 cor0
----
-18263
-57098
-9596

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT ALL - + ( col1 ) - col0 / + 24 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( - - 3 AS SIGNED ) + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - + ( col1 ) - col0 / + 24 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( - - 3 AS INTEGER ) + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 36 * - - ( - col2 ) + 66 - 14 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT - 5 + + - col1 DIV - col1 AS col1 FROM tab1 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-134
SELECT - 5 + + - col1 / - col1 AS col1 FROM tab1 cor0
----
-4
-4
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - MAX( - 64 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
64

skipif mysql # not compatible
query I rowsort label-136
SELECT - MAX ( - 64 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-137
SELECT - - col0 DIV + - 59 AS col0, + col2 FROM tab1 AS cor0
----
-1
59
-1
68
0
96

skipif mysql # not compatible
query II rowsort label-137
SELECT - - col0 / + - 59 AS col0, + col2 FROM tab1 AS cor0
----
-1
59
-1
68
0
96

query I rowsort
SELECT + col1 * - col0 * 59 FROM tab0 AS cor0 WHERE 96 / col0 * + + 50 = NULL
----

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

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

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

query I rowsort
SELECT - col2 - - 54 AS col1 FROM tab2 cor0
----
-4
14
31

query I rowsort
SELECT - 38 * 4 * col2 - + - col0 FROM tab1 AS cor0
----
-10245
-14541
-8883

query I rowsort
SELECT DISTINCT + col2 + + 27 + - 79 AS col2 FROM tab0 AS cor0
----
-42
-5
47

query I rowsort
SELECT - + ( 1 ) - + col1 - + + col1 FROM tab2 AS cor0
----
-103
-135
-155

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

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

query I rowsort
SELECT - ( + 49 ) - - col1 FROM tab1 AS cor0
----
-2
-35
-44

query I rowsort
SELECT + col2 - - 81 - + - col2 * + + ( 38 ) + col2 AS col2 FROM tab1 AS cor0
----
2441
2801
3921

query I rowsort
SELECT ALL 34 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 + - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT 24 - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT 24 - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 + col1 + + col0 col2 FROM tab1 AS cor0
----
-15
10
58

query III rowsort
SELECT ALL * FROM tab0 WHERE + 47 NOT BETWEEN ( NULL ) AND 4 * col0
----

query I rowsort
SELECT ALL + 93 + - - col1 AS col2 FROM tab0
----
114
174
94

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

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

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

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + CAST ( + - 59 AS INTEGER ) FROM tab1
----
-59

query II rowsort
SELECT DISTINCT col1 * + col0 * + 91, col0 * - col0 - col1 AS col2 FROM tab0
----
110565
-306
166257
-7590
8827
-9410

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 <> - 82
----

query I rowsort
SELECT + 1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> col0 / + 32
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col0 * - + ( + col1 ) * ( + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT - SUM( ALL 27 ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-159
SELECT - SUM ( ALL 27 ) AS col1 FROM tab1
----
-81

query I rowsort
SELECT ALL + 99 * + + 27 FROM tab1 AS cor0
----
2673
2673
2673

query I rowsort
SELECT ALL - ( - + col1 ) - + 86 FROM tab1 AS cor0 WHERE NOT 23 IS NULL
----
-39
-72
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT + + 71 * col0 + - col0 DIV - - col2 AS col2 FROM tab0 WHERE NOT 6 - col2 IS NULL
----
1065
6169
6887

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + + 71 * col0 + - col0 / - - col2 AS col2 FROM tab0 WHERE NOT 6 - col2 IS NULL
----
1065
6169
6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT COUNT( * ) * - - 73 * + + 97 * ( + MAX( - CAST( + 61 AS SIGNED ) ) ) FROM tab0
----
-1295823

skipif mysql # not compatible
query I rowsort label-163
SELECT COUNT ( * ) * - - 73 * + + 97 * ( + MAX ( - CAST ( + 61 AS INTEGER ) ) ) FROM tab0
----
-1295823

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

query I rowsort
SELECT DISTINCT - 42 * col1 * - col2 AS col0 FROM tab2
----
129360
163212
49266

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT 48 DIV - 85 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-166
SELECT 48 / - 85 col0 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT 49 * - 41 * + 11 * 68 - COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-1502735

skipif mysql # not compatible
query I rowsort label-168
SELECT 49 * - 41 * + 11 * 68 - COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-1502735

query I rowsort
SELECT DISTINCT 98 + - 68 - + col2 + - col2 AS col2 FROM tab0 cor0
----
-168
-64
10

query I rowsort
SELECT ALL + 72 / + col0 FROM tab2 AS cor0 WHERE col1 BETWEEN - col2 AND - ( col0 )
----

query I rowsort
SELECT ALL + 57 + - col2 FROM tab2 AS cor0
----
-1
17
34

query I rowsort
SELECT 46 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 24 - + col2 FROM tab0
----
-1175
-2475
-250

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 = + 76 + + + col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT + 32 FROM tab1 AS cor0 WHERE col0 * + - col0 IS NOT NULL
----
32
32
32

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

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

query I rowsort
SELECT ( - ( 41 ) ) * 82 FROM tab2
----
-3362
-3362
-3362

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-181
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT col0 DIV 31 AS col2 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-182
SELECT col0 / 31 AS col2 FROM tab0
----
0
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT - 11 * + col0 DIV - + col0 AS col1 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-183
SELECT - 11 * + col0 / - + col0 AS col1 FROM tab2
----
11
11
11

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

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

query I rowsort
SELECT ALL - - 11 * + 44 * col0 AS col0 FROM tab2 AS cor0
----
22264
30976
36300

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT 17 * SUM( - - 13 ) + MIN( DISTINCT + 58 ) AS col0 FROM tab2 AS cor0 WHERE - col0 + + col1 = 13
----
279

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 17 * SUM ( - - 13 ) + MIN ( DISTINCT + 58 ) AS col0 FROM tab2 AS cor0 WHERE - col0 + + col1 = 13
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT DISTINCT + 15 * - - MIN( DISTINCT col1 ) + + + 42 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT + 15 * - - MIN ( DISTINCT col1 ) + + + 42 FROM tab0 AS cor0
----
57

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

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT 16 * + ( COUNT ( * ) ) FROM tab0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - + col1, + ( ( + col2 ) ) col0 FROM tab0
----
-1
99
-441
10
-6561
47

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT SUM( ALL - - 14 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT SUM ( ALL - - 14 ) FROM tab2
----
42

query I rowsort
SELECT ALL 14 * col1 * 84 * col1 AS col0 FROM tab2
----
3058776
5279064
6972504

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

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

query I rowsort
SELECT col2 * - 93 * + 47 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
1289504
13969784
5874720

query II rowsort
SELECT - col1 * - col1 AS col0, col0 + + 43 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
140
441
130
6561
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 94 ) >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-196
SELECT - + CAST( - col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-196
SELECT - + CAST ( - col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL - MAX( + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL - MAX ( + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-199
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + ( 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT COUNT( * ) * + 93 AS col1 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-206
SELECT COUNT ( * ) * + 93 AS col1 FROM tab0 AS cor0
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT + + 30 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-207
SELECT + + 30 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

query II rowsort
SELECT DISTINCT + col0, 87 - + col1 FROM tab1
----
51
73
85
82
91
40

query III rowsort
SELECT ALL + col1, col2 * - col1 * + + col2 AS col2, + col0 AS col2 FROM tab0
----
9 values hashing to 052d219fd00756d4b3871023473563b3

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

query II rowsort
SELECT 29 AS col2, col0 AS col0 FROM tab0
----
29
15
29
87
29
97

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

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

query II rowsort
SELECT 66 AS col0, 51 AS col0 FROM tab0
----
66
51
66
51
66
51

query II rowsort
SELECT 72, + 16 AS col2 FROM tab2
----
72
16
72
16
72
16

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

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

query I rowsort
SELECT DISTINCT - 41 - - 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query I rowsort
SELECT + col2 * 21 AS col1 FROM tab2
----
1218
483
840

query I rowsort
SELECT + 12 * ( 11 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 71eda8f1cddbd49f139e3cd450755dd8

query I rowsort
SELECT DISTINCT + 90 * + - 72 AS col1 FROM tab0 AS cor0
----
-6480

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

query I rowsort
SELECT ALL + col1 * - col2 * - - ( - col2 ) + - - 16 + + 20 FROM tab0 cor0
----
178965
2136
9837

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

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT ( 83 ) * + - CAST ( NULL AS INTEGER ) + + - col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL - col0 + - + col0 + + col1 + - + 29 DIV col0 FROM tab2
----
-41
-51
-83

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - col0 + - + col0 + + col1 + - + 29 / col0 FROM tab2
----
-41
-51
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-225
SELECT DISTINCT col0 + - col2 * + - col0, CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
4947
-14
5100
-5
6279
-47

skipif mysql # not compatible
query II rowsort label-225
SELECT DISTINCT col0 + - col2 * + - col0, CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
4947
-14
5100
-5
6279
-47

query II rowsort
SELECT ALL - col0, col1 * col1 AS col2 FROM tab0
----
-15
6561
-87
441
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT col0 DIV - 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-227
SELECT col0 / - 79 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 20 + 96 FROM tab1 AS cor0
----
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL + + MAX( col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + + MAX ( col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT col1 * - 53 AS col0 FROM tab2 WHERE NOT + col0 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ( + COUNT( * ) ) * - MAX( col2 + + col0 ) AS col1 FROM tab1
----
-477

skipif mysql # not compatible
query I rowsort label-232
SELECT ( + COUNT ( * ) ) * - MAX ( col2 + + col0 ) AS col1 FROM tab1
----
-477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT DISTINCT - 55 * - 78 + - SUM( ALL 18 ) * - MIN( - col0 * CAST( 29 * - col2 AS SIGNED ) ) FROM tab0
----
1108320

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT - 55 * - 78 + - SUM ( ALL 18 ) * - MIN ( - col0 * CAST ( 29 * - col2 AS INTEGER ) ) FROM tab0
----
1108320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-234
SELECT ALL + COUNT( * ) DIV + SUM( DISTINCT 87 * 59 ) + + SUM( col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + COUNT ( * ) / + SUM ( DISTINCT 87 * 59 ) + + SUM ( col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col0 >= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-236
SELECT COUNT ( * ) + COUNT ( - 17 ) col1 FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( 67 ) ) IN ( col0 )
----

query I rowsort
SELECT col1 * + 31 FROM tab2
----
1581
2077
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT COUNT( * ) * - COUNT( ALL - 81 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-239
SELECT COUNT ( * ) * - COUNT ( ALL - 81 ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT DISTINCT col1 DIV 10 AS col2 FROM tab2
----
5
6
7

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT col1 / 10 AS col2 FROM tab2
----
5
6
7

query I rowsort
SELECT 54 * 22 AS col2 FROM tab0
----
1188
1188
1188

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 89 col2 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT - col1 + - 96 DIV col2 FROM tab0
----
-1
-30
-83

skipif mysql # not compatible
query I rowsort label-246
SELECT - col1 + - 96 / col2 FROM tab0
----
-1
-30
-83

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 + 60 ) < - 27
----

query I rowsort
SELECT 23 * col1 + - 47 FROM tab1
----
1034
275
68

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL SUM( - col1 ) AS col1 FROM tab0 WHERE col0 + col2 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL SUM ( - col1 ) AS col1 FROM tab0 WHERE col0 + col2 * col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT 56 - - COUNT( * ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT 56 - - COUNT ( * ) FROM tab0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col0 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-255
SELECT 61 * 8 AS col1 FROM tab0 WHERE NOT 60 < 43 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-255
SELECT 61 * 8 AS col1 FROM tab0 WHERE NOT 60 < 43 * + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ( col2 ) + col2 DIV - 10 AS col1 FROM tab0
----
43
9
90

skipif mysql # not compatible
query I rowsort label-256
SELECT ( col2 ) + col2 / - 10 AS col1 FROM tab0
----
43
9
90

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT DISTINCT - 9 DIV + 54 + + 34 AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - 9 / + 54 + + 34 AS col0 FROM tab1
----
34

query I rowsort
SELECT - col1 + col0 * + col0 FROM tab0
----
144
7548
9408

query I rowsort
SELECT 13 * 65 - + ( - col1 ) AS col1 FROM tab2
----
896
912
922

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

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab2 WHERE NULL IS NULL
----
13

query I rowsort
SELECT - ( - 96 ) + col1 AS col0 FROM tab0
----
117
177
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT COUNT( DISTINCT col2 ) * + 72 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 7 ) > + 37
----
216

skipif mysql # not compatible
query I rowsort label-265
SELECT COUNT ( DISTINCT col2 ) * + 72 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 7 ) > + 37
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT CAST( 67 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-266
SELECT CAST ( 67 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
67
67
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT 69 * COUNT( * ) AS col2 FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-269
SELECT 69 * COUNT ( * ) AS col2 FROM tab1 cor0
----
207

query I rowsort
SELECT + col2 + + 33 * col2 FROM tab2 AS cor0
----
1360
1972
782

query I rowsort
SELECT DISTINCT + 60 + col0 AS col1 FROM tab1 AS cor0
----
111
145
151

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT COUNT( * ) + + 79 col0 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-272
SELECT COUNT ( * ) + + 79 col0 FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL col2 + 5 FROM tab0 AS cor0
----
104
15
52

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

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

query I rowsort
SELECT ALL + col0 * col2 + col0 * + 50 AS col0 FROM tab0 AS cor0
----
14453
1455
5220

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-276
SELECT DISTINCT + MAX ( + ( 65 ) ) + - COUNT ( * ) col0 FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT ALL CAST( - 31 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
15
33
44

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL CAST ( - 31 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
15
33
44

query I rowsort
SELECT DISTINCT - - 12 * - col0 + - col2 * col2 FROM tab1 AS cor0
----
-4501
-5716
-9828

query I rowsort
SELECT ALL + + 34 + - col0 * - 7 FROM tab1 AS cor0
----
391
629
671

query I rowsort
SELECT ALL - 80 + + col0 * + 12 AS col2 FROM tab1 AS cor0
----
1012
532
940

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

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

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE - ( - 29 ) / 57 + + col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT MAX( - 77 ) - + COUNT( * ) AS col0 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT MAX ( - 77 ) - + COUNT ( * ) AS col0 FROM tab2
----
-80

query I rowsort
SELECT ALL col2 * + col0 - col1 AS col2 FROM tab1
----
4882
5010
6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + 38 col2 FROM tab2
----
1638
3402
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL OR ( CAST( col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL OR ( CAST ( col0 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT - col1 * + col2 + - 31 AS col1 FROM tab1
----
-1375
-3227
-326

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL 76 * COUNT( * ) FROM tab0 AS cor0 WHERE 17 <= ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL 76 * COUNT ( * ) FROM tab0 AS cor0 WHERE 17 <= ( - col0 )
----
0

query I rowsort
SELECT + col0 * + col1 + - col1 * 96 FROM tab1 AS cor0
----
-235
-55
-630

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

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

query I rowsort
SELECT ALL + col1 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
121
2290
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ( COUNT( DISTINCT 46 ) ) col2 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL < col2
----

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1, + col2 + col0 AS col0 FROM tab0 cor0
----
1
196
21
97
81
62

query I rowsort
SELECT 85 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 * - col0 ) >= + ( + 78 ) + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT - col1 * - ( 87 ) + CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) * + col0 FROM tab0 cor0
----
-9516
6342
957

skipif mysql # not compatible
query I rowsort label-300
SELECT - col1 * - ( 87 ) + CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) * + col0 FROM tab0 cor0
----
-9516
6342
957

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

query I rowsort
SELECT - 59 * - col0 AS col2 FROM tab1 WHERE NOT + col1 / - col2 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT + MAX( ALL - + col0 ) AS col0, 77 * 98 AS col0 FROM tab1
----
-51
7546

skipif mysql # not compatible
query II rowsort label-305
SELECT + MAX ( ALL - + col0 ) AS col0, 77 * 98 AS col0 FROM tab1
----
-51
7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-306
SELECT + SUM( ALL + col0 ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
185
NULL

skipif mysql # not compatible
query II rowsort label-306
SELECT + SUM ( ALL + col0 ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
185
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) <> ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + 59 + + col2 AS col2 FROM tab1
----
2841
354
922

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col0 AS col0 FROM tab2 AS cor0
----
2392
4992
5100

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT DISTINCT + col0 * + col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2 * - 0 * ( - CAST( ( col0 ) AS SIGNED ) ) + col0
----

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + col0 * + col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2 * - 0 * ( - CAST ( ( col0 ) AS INTEGER ) ) + col0
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 BETWEEN + + col1 AND ( + col0 / col0 )
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE col1 IN ( + col0 * - + 95 + + col1 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT - MAX( + + col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - MAX ( + + col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT + + col0 FROM tab2 WHERE ( 49 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 + - + col2 + 96 ) BETWEEN NULL AND - col1
----

query II rowsort
SELECT ALL + 5 AS col2, 56 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col0 + + 27 AS col1 FROM tab1 AS cor0
----
112
118
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT - MIN( ALL - 16 ) * - COUNT( * ) FROM tab0 cor0 WHERE col1 NOT BETWEEN - - 28 AND + 83
----
-32

skipif mysql # not compatible
query I rowsort label-321
SELECT - MIN ( ALL - 16 ) * - COUNT ( * ) FROM tab0 cor0 WHERE col1 NOT BETWEEN - - 28 AND + 83
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-322
SELECT ALL + CAST( 87 AS DECIMAL ) FROM tab0 AS cor0 WHERE - col1 BETWEEN col1 AND 6
----

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + CAST ( 87 AS REAL ) FROM tab0 AS cor0 WHERE - col1 BETWEEN col1 AND 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT COUNT( * ) + - 75 FROM tab1, tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT COUNT ( * ) + - 75 FROM tab1, tab0 AS cor0
----
-66

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

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

query I rowsort
SELECT DISTINCT + col0 + ( - 85 ) AS col1 FROM tab0
----
-70
12
2

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

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT 33 + - COUNT ( * ) FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT + ( - col0 ) - + col0 + - + 51 + 63 DIV - - col0 FROM tab2
----
-142
-179
-201

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + ( - col0 ) - + col0 + - + 51 + 63 / - - col0 FROM tab2
----
-142
-179
-201

query I rowsort
SELECT ALL 25 AS col2 FROM tab1 WHERE + col1 * + col2 * col1 * - + col0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + 52 - 88 - + - 13 * - SUM( - col0 ) AS col1 FROM tab2
----
2369

skipif mysql # not compatible
query I rowsort label-329
SELECT + 52 - 88 - + - 13 * - SUM ( - col0 ) AS col1 FROM tab2
----
2369

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - - ( - - 70 ) FROM tab1 AS cor0
----
4130
4760
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 78 * col0 col0 FROM tab1 AS cor0
----
381888
391170
482664

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - - 73 * COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
222

skipif mysql # not compatible
query I rowsort label-336
SELECT - - 73 * COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
222

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

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

query II rowsort
SELECT ALL - col2 * - + ( - + col0 ) * col2 + col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-102323
40
-24283
23
-252233
58

query I rowsort
SELECT DISTINCT - - 4 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT - + ( - col0 ) * + 67 AS col1 FROM tab0 AS cor0
----
1005
5829
6499

query II rowsort
SELECT + col2 * col2 AS col0, 9 * col1 FROM tab0 AS cor0
----
100
189
2209
729
9801
9

query I rowsort
SELECT + 91 * + - 72 AS col0 FROM tab1
----
-6552
-6552
-6552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-344
SELECT + COUNT( DISTINCT + col2 ) DIV - + COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-344
SELECT + COUNT ( DISTINCT + col2 ) / - + COUNT ( * ) AS col0 FROM tab2
----
-1

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

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

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

query II rowsort
SELECT ALL + col2, 5 * col1 FROM tab2
----
23
255
40
385
58
335

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL - COUNT( * ) * + - 29 AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - COUNT ( * ) * + - 29 AS col0 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT MAX( - - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-351
SELECT MAX ( - - col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col1 + - - col0 * - + col1 FROM tab0 AS cor0
----
-1296
-1848
-98

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-354
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND ( col2 * 26 )
----

query I rowsort
SELECT - 23 * col0 AS col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + 42 * + - 21
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - 28 IS NULL
----

query I rowsort
SELECT - 21 * - col0 - + - 45 AS col1 FROM tab0 AS cor0
----
1872
2082
360

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT COUNT( * ) * - - 98 - - 36 AS col0 FROM tab1 cor0
----
330

skipif mysql # not compatible
query I rowsort label-362
SELECT COUNT ( * ) * - - 98 - - 36 AS col0 FROM tab1 cor0
----
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 57 col0 FROM tab1 AS cor0
----
104
62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT + - ( + COUNT( * ) ) * + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + - ( + COUNT ( * ) ) * + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT CAST( + + ( ( + + col2 ) ) AS SIGNED ) * col2 + - - col2 AS col1 FROM tab1
----
3540
4692
9312

skipif mysql # not compatible
query I rowsort label-365
SELECT CAST ( + + ( ( + + col2 ) ) AS INTEGER ) * col2 + - - col2 AS col1 FROM tab1
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT + MAX( - col0 ) + + 10 AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT + MAX ( - col0 ) + + 10 AS col2 FROM tab2
----
-36

query II rowsort
SELECT DISTINCT 65 AS col0, 28 * - 76 FROM tab1
----
65
-2128

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-369
SELECT DISTINCT * FROM tab1 WHERE - CAST( 75 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-369
SELECT DISTINCT * FROM tab1 WHERE - CAST ( 75 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT DISTINCT COUNT( * ) - - 19 + - 73 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT COUNT ( * ) - - 19 + - 73 AS col0 FROM tab1
----
-51

query I rowsort
SELECT 3 + + - col1 * - col1 FROM tab0
----
4
444
6564

onlyif mysql # aggregate syntax: 
query II rowsort label-372
SELECT DISTINCT 73, + 5 + COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
73
14

skipif mysql # not compatible
query II rowsort label-372
SELECT DISTINCT 73, + 5 + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
73
14

query I rowsort
SELECT 11 * + + col1 AS col0 FROM tab1
----
154
517
55

query II rowsort
SELECT ( - + ( col2 ) ) AS col1, 25 * col1 AS col2 FROM tab1
----
-59
125
-68
1175
-96
350

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * - col0 * + 58 col0 FROM tab0 AS cor0
----
368358
410698
63510

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT - ( + col0 ) IS NULL
----
51
67
77

query II rowsort
SELECT - 70, + 99 * - 23 AS col2 FROM tab0 AS cor0
----
-70
-2277
-70
-2277
-70
-2277

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - SUM( ALL - 20 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-380
SELECT - SUM ( ALL - 20 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-381
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-381
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( + 7 ) * - + col1 FROM tab0
----
147
567
7

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT COUNT( * ) * - 94 AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT COUNT ( * ) * - 94 AS col0 FROM tab0
----
-282

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

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

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

query I rowsort
SELECT ALL + - col0 * + 19 + 7 + col0 FROM tab0 AS cor0
----
-1559
-1739
-263

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-390
SELECT MIN( CAST( NULL AS DECIMAL ) ) + - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT MIN ( CAST ( NULL AS REAL ) ) + - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 77 + + 75 AS col1 FROM tab1
----
152
152
152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL COUNT( * ) * 84 * - + 4 AS col1 FROM tab2
----
-1008

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL COUNT ( * ) * 84 * - + 4 AS col1 FROM tab2
----
-1008

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-396
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / + CAST( NULL AS SIGNED ) BETWEEN 41 AND + col0 * + col2
----

skipif mysql # not compatible
query III rowsort label-396
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / + CAST ( NULL AS INTEGER ) BETWEEN 41 AND + col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT ALL + - col1 + - col0 + + 87 DIV + col1 AS col1 FROM tab0 AS cor0
----
-104
-11
-95

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + - col1 + - col0 + + 87 / + col1 AS col1 FROM tab0 AS cor0
----
-104
-11
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + - col2 - col0 col0 FROM tab2
----
-26
-55
9

query I rowsort
SELECT - col2 + + col0 - 46 AS col1 FROM tab1
----
-20
-23
-91

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

query I rowsort
SELECT DISTINCT - 46 * - col0 FROM tab2 cor0
----
2116
2944
3450

query I rowsort
SELECT + col2 * col2 - + ( col0 ) + - col0 AS col2 FROM tab1 cor0
----
3311
4442
9114

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

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

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

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - 65 IS NULL
----

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

query I rowsort
SELECT DISTINCT col0 + + - 50 AS col0 FROM tab1
----
1
35
41

query I rowsort
SELECT DISTINCT col1 + + 77 + + col1 AS col0 FROM tab0
----
119
239
79

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - SUM( - - 42 ) * 86 FROM tab2
----
-10836

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - SUM ( - - 42 ) * 86 FROM tab2
----
-10836

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT DISTINCT + col2 DIV + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + col2 / + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 = 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col2 ) col0 FROM tab1 AS cor0
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-415
SELECT col1 / + 72 AS col2 FROM tab0
----
0
0
1

query II rowsort
SELECT + + col0, + col1 * + 13 AS col2 FROM tab2 AS cor0
----
46
663
64
1001
75
871

query I rowsort
SELECT DISTINCT + 6 * col1 FROM tab2 cor0
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT COUNT( * ) * - 63 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-418
SELECT COUNT ( * ) * - 63 FROM tab0
----
-189

query I rowsort
SELECT col0 * + 85 FROM tab1
----
4335
7225
7735

query II rowsort
SELECT DISTINCT - col2, - ( + + 79 ) * + 94 AS col1 FROM tab1
----
-59
-7426
-68
-7426
-96
-7426

query I rowsort
SELECT DISTINCT col2 * + - 84 AS col0 FROM tab0
----
-3948
-8316
-840

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT ALL col2 DIV + 91 + - col1 - + + col0 AS col2 FROM tab1
----
-138
-64
-90

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL col2 / + 91 + - col1 - + + col0 AS col2 FROM tab1
----
-138
-64
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT CAST( 63 AS SIGNED ) AS col1 FROM tab0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-426
SELECT CAST ( 63 AS INTEGER ) AS col1 FROM tab0
----
63
63
63

query I rowsort
SELECT + 83 * + 44 AS col1 FROM tab0
----
3652
3652
3652

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT + col2 DIV - col0 - - + ( + - 77 ) FROM tab0
----
-77
-78
-80

skipif mysql # not compatible
query I rowsort label-428
SELECT + col2 / - col0 - - + ( + - 77 ) FROM tab0
----
-77
-78
-80

query I rowsort
SELECT ALL col2 - + - col1 + + 41 * + - 58 AS col0 FROM tab0 cor0
----
-2250
-2278
-2347

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

query I rowsort
SELECT DISTINCT + 10 + + 75 + col0 * - col1 FROM tab1 AS cor0
----
-340
-4192
-629

query I rowsort
SELECT ( + col2 ) + - 12 * + + 50 FROM tab1 cor0
----
-504
-532
-541

query I rowsort
SELECT ALL 23 * - col0 FROM tab1
----
-1173
-1955
-2093

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT COUNT( * ) DIV + 22 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT COUNT ( * ) / + 22 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + SUM( DISTINCT - 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-437
SELECT + SUM ( DISTINCT - 48 ) FROM tab2
----
-48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-439
SELECT + COUNT( * ), 18 AS col0 FROM tab2
----
3
18

skipif mysql # not compatible
query II rowsort label-439
SELECT + COUNT ( * ), 18 AS col0 FROM tab2
----
3
18

query I rowsort
SELECT - AVG ( + col2 ) FROM tab2 AS cor0 WHERE NOT + 81 * + 81 IS NOT NULL
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE col0 / 24 / 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT ALL + 10 + + 46 DIV 44 * + - 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + 10 + + 46 / 44 * + - 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL 20 * - 9 * col1 + + col0 * 25 FROM tab1 AS cor0
----
-1245
-6185
1225

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 + 13 + - + col2 * col2 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + col2 + + 83 AS col2 FROM tab0 AS cor0
----
145
180
279

query I rowsort
SELECT - 81 + - - 64 FROM tab2 AS cor0 WHERE col2 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-450
SELECT ALL 98 DIV + col1 - CAST( + 76 AS SIGNED ) + - - col2 AS col1 FROM tab2 AS cor0
----
-17
-35
-52

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL 98 / + col1 - CAST ( + 76 AS INTEGER ) + - - col2 AS col1 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT - 70 - col0 AS col0 FROM tab2 WHERE 5 IS NOT NULL
----
-116
-134
-145

query I rowsort
SELECT + 47 * + col0 FROM tab2
----
2162
3008
3525

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT + 61 DIV col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-453
SELECT + 61 / col2 AS col1 FROM tab1
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-454
SELECT CAST ( - + 67 AS INTEGER ) * 37 * + - COUNT ( * ) AS col0 FROM tab2
----
7437

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT + 80 * + COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-455
SELECT + 80 * + COUNT ( * ) FROM tab0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - SUM( DISTINCT - - ( + - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-456
SELECT - SUM ( DISTINCT - - ( + - col1 ) ) FROM tab0
----
103

query I rowsort
SELECT ALL ( - col1 ) - col1 AS col1 FROM tab1
----
-10
-28
-94

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 72 <> - col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 29 AS col2, - col1 AS col2, + - col2 col2 FROM tab0 AS cor0
----
9 values hashing to 67f9dee63327996747970317d0883351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + + CAST( + - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-463
SELECT ALL + - col2 AS col0, + col2 + col2 DIV 57 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
59

skipif mysql # not compatible
query II rowsort label-463
SELECT ALL + - col2 AS col0, + col2 + col2 / 57 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT ALL MAX( ALL - - 63 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL MAX ( ALL - - 63 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT DISTINCT - - 58 * col2 DIV + ( + - col0 ) FROM tab1 AS cor0
----
-109
-40
-43

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT - - 58 * col2 / + ( + - col0 ) FROM tab1 AS cor0
----
-109
-40
-43

query I rowsort
SELECT - 32 * + 74 AS col0 FROM tab0
----
-2368
-2368
-2368

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( col0 * - ( col0 ), 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-468
SELECT ALL - CAST( - 50 AS SIGNED ) AS col2 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL - CAST ( - 50 AS INTEGER ) AS col2 FROM tab2
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT + col1 DIV - + col1 col2 FROM tab0
----
-1
-1
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT + ( - CAST( - col1 AS SIGNED ) ) FROM tab1
----
14
47
5

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

query I rowsort
SELECT ALL 33 * - col2 FROM tab2
----
-1320
-1914
-759

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL - 85 * + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - 85 * + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

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

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - col0, - col0 * + ( col1 ) + - col2 )
----

query I rowsort
SELECT ALL ( - ( ( + col0 ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

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

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

query II rowsort
SELECT ALL + col2, - 40 * - + col1 AS col1 FROM tab0 AS cor0
----
10
840
47
3240
99
40

query I rowsort
SELECT ALL - 25 + + + col1 AS col2 FROM tab1 AS cor0
----
-11
-20
22

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL - 95 + - + COUNT( * ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - 95 + - + COUNT ( * ) FROM tab0 AS cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-481
SELECT - 41 AS col1, CAST( + MAX( 9 ) AS SIGNED ) * + + 29 AS col2 FROM tab0 AS cor0
----
-41
261

skipif mysql # not compatible
query II rowsort label-481
SELECT - 41 AS col1, CAST ( + MAX ( 9 ) AS INTEGER ) * + + 29 AS col2 FROM tab0 AS cor0
----
-41
261

query II rowsort
SELECT + col1, col2 * + + 49 FROM tab1 AS cor0
----
14
4704
47
3332
5
2891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 + - + col0 col1, - col1 FROM tab1
----
-122
-5
-128
-47
-88
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - COUNT( DISTINCT 58 ) + + + COUNT( * ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-485
SELECT - COUNT ( DISTINCT 58 ) + + + COUNT ( * ) AS col0 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( 14 ) col2 FROM tab1
----
19
28
61

query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT - - col2 * + - col2 - + col2 FROM tab0 WHERE NOT + col0 + - - 73 * 23 IS NULL
----
-110
-2256
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT COUNT( * ) + + MAX( ALL + + 3 ) AS col2 FROM tab0 WHERE ( NULL ) <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT COUNT ( * ) + + MAX ( ALL + + 3 ) AS col2 FROM tab0 WHERE ( NULL ) <= + col1
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL - COUNT( * ) - - + 62 + + + 51 - + 18 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL - COUNT ( * ) - - + 62 + + + 51 - + 18 FROM tab1
----
92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-492
SELECT ( - 27 ) - + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / - MAX ( col0 ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT DISTINCT col1 AS col1, + col1 + + CAST( + 99 AS SIGNED ) FROM tab1
----
14
113
47
146
5
104

skipif mysql # not compatible
query II rowsort label-493
SELECT DISTINCT col1 AS col1, + col1 + + CAST ( + 99 AS INTEGER ) FROM tab1
----
14
113
47
146
5
104

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT - - 12 FROM tab0 AS cor0 WHERE NOT ( NOT CAST( 19 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-497
SELECT - - 12 FROM tab0 AS cor0 WHERE NOT ( NOT CAST ( 19 AS INTEGER ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-498
SELECT - CAST( NULL AS SIGNED ), ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-498
SELECT - CAST ( NULL AS INTEGER ), ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT col1 * col2 * - 11 AS col0 FROM tab0 AS cor0
----
-1089
-2310
-41877

query I rowsort
SELECT + 4 AS col2 FROM tab2 cor0
----
4
4
4

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

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

skipif mysql # not compatible
query I rowsort label-502
SELECT + MAX ( DISTINCT - 22 ) AS col1 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + MAX( + + 88 ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-503
SELECT + MAX ( + + 88 ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 40 * - col0 FROM tab2
----
-1840
-2560
-3000

query II rowsort
SELECT ALL - 75 AS col2, - col0 * + + 84 FROM tab0
----
-75
-1260
-75
-7308
-75
-8148

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

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

query I rowsort
SELECT ALL col1 + - 65 + col2 FROM tab2 WHERE + - col1 / + - 61 IN ( - 92 )
----

query I rowsort
SELECT - 15 * + - col0 FROM tab2
----
1125
690
960

query II rowsort
SELECT 35, + col1 FROM tab0
----
35
1
35
21
35
81

query I rowsort
SELECT DISTINCT - - col1 * + - col1 * col2 * 92 AS col1 FROM tab0 AS cor0
----
-28369764
-405720
-9108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL col0 * + + col1 - + CAST( + 99 AS SIGNED ) FROM tab0 AS cor0
----
-2
1116
1728

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL col0 * + + col1 - + CAST ( + 99 AS INTEGER ) FROM tab0 AS cor0
----
-2
1116
1728

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-513
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - CAST( - col2 AS DECIMAL ) + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-513
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - CAST ( - col2 AS REAL ) + - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + col1 + 40 + - col1 AS col1, col0 + 14 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
40
60
40
78
40
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-515
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 99 * - col1 AS col0 FROM tab0 cor0
----
NULL
-2079
NULL
-8019
NULL
-99

skipif mysql # not compatible
query II rowsort label-515
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 99 * - col1 AS col0 FROM tab0 cor0
----
NULL
-2079
NULL
-8019
NULL
-99

query I rowsort
SELECT DISTINCT AVG ( + 59 ) FROM tab1 AS cor0 WHERE NULL > - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT 63 * - - ( + - SUM( DISTINCT - 20 ) ) FROM tab0
----
1260

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT 63 * - - ( + - SUM ( DISTINCT - 20 ) ) FROM tab0
----
1260

query I rowsort
SELECT ALL + 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - col0 + - 91 + + + col1 * - col1 FROM tab1
----
-201
-2391
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - ( COUNT( * ) ) + 85 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-520
SELECT - ( COUNT ( * ) ) + 85 FROM tab0
----
82

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 48 + + + ( + 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT + - 97 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-143
-161
-172

skipif mysql # not compatible
query I rowsort label-523
SELECT + - 97 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-143
-161
-172

query I rowsort
SELECT ALL - - 24 * col2 + - 26 FROM tab1 AS cor0
----
1390
1606
2278

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-526
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + - 44 ), - col2, - CAST( - col2 AS DECIMAL ), - col0, - col1 )
----

skipif mysql # not compatible
query III rowsort label-526
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + - 44 ), - col2, - CAST ( - col2 AS REAL ), - col0, - col1 )
----

query I rowsort
SELECT ALL 2 + + + col1 AS col1 FROM tab0
----
23
3
83

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 + 55 col0 FROM tab0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL - col0 * 23 DIV + + 4 FROM tab1
----
-293
-488
-523

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - col0 * 23 / + + 4 FROM tab1
----
-293
-488
-523

query I rowsort
SELECT - 22 * col1 AS col0 FROM tab1
----
-1034
-110
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-532
SELECT DISTINCT + col0 - - col0 DIV ( + col2 ) col1 FROM tab1
----
51
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-532
SELECT DISTINCT + col0 - - col0 / ( + col2 ) col1 FROM tab1
----
51
86
92

query I rowsort
SELECT + 40 * + 85 FROM tab0
----
3400
3400
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-534
SELECT ALL COUNT( * ) * - SUM( DISTINCT - CAST( col2 AS SIGNED ) ) col2 FROM tab1
----
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-534
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - CAST ( col2 AS INTEGER ) ) col2 FROM tab1
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL + ( - - MIN( ALL + + 56 ) ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + ( - - MIN ( ALL + + 56 ) ) FROM tab2
----
56

query II rowsort
SELECT + ( - + col0 ) - 23 AS col0, + 24 FROM tab1 AS cor0
----
-108
24
-114
24
-74
24

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

query I rowsort
SELECT + 50 - + 86 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - 57 FROM tab2 WHERE + + 89 >= - col2
----
-57
-57
-57

query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 63 ) col1, 9 col2 FROM tab0
----
63
9
63
9
63
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-542
SELECT ALL CAST( - MIN( col0 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL CAST ( - MIN ( col0 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-15

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 25 * + col0, + col2 + - ( 58 ) col2 FROM tab2 AS cor0
----
-1150
-35
-1600
-18
-1875
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-546
SELECT + + ( - + CAST( NULL AS SIGNED ) ) AS col1, 41 + 97 col2 FROM tab1 AS cor0
----
NULL
138
NULL
138
NULL
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-546
SELECT + + ( - + CAST ( NULL AS INTEGER ) ) AS col1, 41 + 97 col2 FROM tab1 AS cor0
----
NULL
138
NULL
138
NULL
138

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT - ( + MIN( + + col0 ) ) FROM tab0 AS cor0 WHERE NOT 89 * + col0 * - 59 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT - ( + MIN ( + + col0 ) ) FROM tab0 AS cor0 WHERE NOT 89 * + col0 * - 59 < col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT + ( + col2 ) DIV - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-548
SELECT + ( + col2 ) / - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL ( SUM ( - CAST ( + + col2 AS INTEGER ) ) ) FROM tab2
----
-121

query I rowsort
SELECT DISTINCT ( + - 82 ) AS col1 FROM tab1
----
-82

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-552
SELECT CAST( NULL AS DECIMAL ) + SUM( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT 24 * - col0 / 97 * + ( + - 50 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT CAST ( NULL AS REAL ) + SUM ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT 24 * - col0 / 97 * + ( + - 50 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col1 - 93 AS col0, 80 FROM tab2 WHERE NOT - - col2 * 31 IS NOT NULL
----

query II rowsort
SELECT + col2, - 45 * col2 FROM tab1 AS cor0
----
59
-2655
68
-3060
96
-4320

query I rowsort
SELECT - + 60 * ( - col1 ) FROM tab0 AS cor0
----
1260
4860
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + + 9 col2 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT - 98 DIV 67 + col1 AS col2 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-557
SELECT - 98 / 67 + col1 AS col2 FROM tab0 AS cor0
----
0
20
80

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 61 * + 55 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT DISTINCT CAST( + col2 AS SIGNED ) - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT CAST ( + col2 AS INTEGER ) - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 63 + - 17 * + - col1 AS col1 FROM tab2 AS cor0
----
1202
1372
930

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL + COUNT( * ) - MAX( + col0 ) AS col0 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + COUNT ( * ) - MAX ( + col0 ) AS col0 FROM tab0
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-563
SELECT DISTINCT col0 DIV col2 AS col2, col1 * - 65 FROM tab2
----
1
-4355
1
-5005
2
-3315

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT col0 / col2 AS col2, col1 * - 65 FROM tab2
----
1
-4355
1
-5005
2
-3315

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + 57 * + + ( - + col0 ) + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT 38 + - COUNT( * ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-565
SELECT 38 + - COUNT ( * ) AS col1 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-566
SELECT DISTINCT + AVG ( + + CAST( NULL AS SIGNED ) ), + 63 col2 FROM tab0 cor0
----
NULL
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-566
SELECT DISTINCT + AVG ( + + CAST ( NULL AS INTEGER ) ), + 63 col2 FROM tab0 cor0
----
NULL
63

query I rowsort
SELECT + + col0 * - 4 + + 86 AS col1 FROM tab1 AS cor0
----
-118
-254
-278

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

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

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
46

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

query II rowsort
SELECT + col2, + 15 + col0 + + col0 FROM tab0 AS cor0
----
10
189
47
45
99
209

query I rowsort
SELECT - 65 * + ( - 55 ) AS col0 FROM tab0 AS cor0
----
3575
3575
3575

query II rowsort
SELECT DISTINCT + - 27 * - col1 - - col1 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
1316
-91
140
-85
392
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col2 >= + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col2 >= + + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT + AVG ( DISTINCT - col1 ) col1 FROM tab0 WHERE NOT + col0 <= NULL AND NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-577
SELECT + AVG ( DISTINCT - col1 ) col1 FROM tab0 WHERE NOT + col0 <= NULL AND NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-578
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - + CAST( 98 AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-578
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - + CAST ( 98 AS REAL ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT col0 DIV 26 AS col2 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-579
SELECT col0 / 26 AS col2 FROM tab0
----
0
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN + col1 AND col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN + col1 AND col0 * + col1
----
0

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

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

query I rowsort
SELECT ALL - 18 * col2 FROM tab0
----
-1782
-180
-846

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-583
SELECT - SUM ( ALL - + col2 ) col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT COUNT( * ) + + + 93 AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT COUNT ( * ) + + + 93 AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL - MIN( DISTINCT 15 ) AS col2 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - MIN ( DISTINCT 15 ) AS col2 FROM tab2 cor0
----
-15

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 FROM tab1 AS cor0
----
-1330
-290
-3149

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

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

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

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

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

query II rowsort
SELECT DISTINCT 95 + - 95 AS col2, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT ALL col0 - col0 * ( - - col0 ) FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT col1 - + col2 + - 89 AS col0 FROM tab2
----
-52
-61
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL - CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-594
SELECT ALL col2 DIV col0 - - + 37 FROM tab0
----
37
38
40

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL col2 / col0 - - + 37 FROM tab0
----
37
38
40

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT col2 - - col1 DIV - 37 - + col0 AS col1 FROM tab2
----
-18
-24
-26

skipif mysql # not compatible
query I rowsort label-595
SELECT col2 - - col1 / - 37 - + col0 AS col1 FROM tab2
----
-18
-24
-26

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

skipif mysql # not compatible
query I rowsort label-596
SELECT + MAX ( + col1 ) AS col1 FROM tab1
----
47

query II rowsort
SELECT ALL - 20 * - col1 AS col0, - col2 FROM tab1 AS cor0
----
100
-59
280
-96
940
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-598
SELECT + 1 DIV - - col0 * - 25 + CAST( + col0 AS SIGNED ) + 20 FROM tab1 AS cor0
----
105
111
71

skipif mysql # not compatible
query I rowsort label-598
SELECT + 1 / - - col0 * - 25 + CAST ( + col0 AS INTEGER ) + 20 FROM tab1 AS cor0
----
105
111
71

query II rowsort
SELECT col0 AS col0, ( - col1 ) * - - 53 FROM tab0 AS cor0
----
15
-4293
87
-1113
97
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + 81 * - MAX( + col2 ) FROM tab2
----
-4698

skipif mysql # not compatible
query I rowsort label-600
SELECT + 81 * - MAX ( + col2 ) FROM tab2
----
-4698

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT ALL + MAX( + col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NOT + + 29 * CAST( NULL AS SIGNED ) + col1 + + col2 NOT BETWEEN + 76 AND NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + MAX ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NOT + + 29 * CAST ( NULL AS INTEGER ) + col1 + + col2 NOT BETWEEN + 76 AND NULL ) ) )
----
NULL

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

query I rowsort
SELECT + col2 * - 45 AS col2 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 WHERE NOT ( ( col1 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 WHERE NOT ( ( col1 IS NULL ) )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-607
SELECT ALL + col2 / - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * ( + 21 ) AS col2 FROM tab2 AS cor0
----
1218
483
840

query II rowsort
SELECT + col1, col0 + + + 89 AS col0 FROM tab2 AS cor0 WHERE NOT col1 < + col2 + + - 80
----
51
135
67
164
77
153

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

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

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

skipif mysql # not compatible
query II rowsort label-612
SELECT ALL COUNT ( * ), 3 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-613
SELECT CAST( + + 13 AS SIGNED ) DIV 87 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-613
SELECT CAST ( + + 13 AS INTEGER ) / 87 AS col2 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT + col1 * - - col1 FROM tab0 AS cor0 WHERE col1 <> col2
----
1
441
6561

query I rowsort
SELECT ALL col2 + - 57 AS col1 FROM tab2 AS cor0
----
-17
-34
1

query I rowsort
SELECT 77 + + col2 FROM tab0 AS cor0
----
124
176
87

query I rowsort
SELECT ALL + 46 + - col2 FROM tab2 AS cor0
----
-12
23
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * + col1 col2 FROM tab0
----
1785
6885
85

query I rowsort
SELECT DISTINCT ( + 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL + 79 - + 44 * + - COUNT( * ) FROM tab0
----
211

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + 79 - + 44 * + - COUNT ( * ) FROM tab0
----
211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT ALL + COUNT( * ) * - - AVG ( col0 ) * - + MIN( - 75 ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + COUNT ( * ) * - - AVG ( col0 ) * - + MIN ( - 75 ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 45 - 17 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT col2 - 9 * col2 FROM tab1 AS cor0
----
-472
-544
-768

query I rowsort
SELECT + col1 + + - 74 * col1 AS col0 FROM tab1 AS cor0
----
-1022
-3431
-365

query I rowsort
SELECT DISTINCT - ( + + 65 ) * - ( col2 ) + + + 7 * + + col0 FROM tab2 cor0
----
1817
3048
4295

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT 96 + + + 22 DIV - col2 FROM tab1 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-627
SELECT 96 + + + 22 / - col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + 84 + col1 FROM tab1
----
131
89
98

query I rowsort
SELECT 76 * + 51 FROM tab2
----
3876
3876
3876

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT + + 33 DIV + + col0 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-631
SELECT + + 33 / + + col0 AS col1 FROM tab0 AS cor0
----
0
0
2

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT DISTINCT + col1 DIV - 5 - - 69 + col1 + col2 AS col0 FROM tab1 AS cor0
----
132
175
177

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + col1 / - 5 - - 69 + col1 + col2 AS col0 FROM tab1 AS cor0
----
132
175
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT DISTINCT MAX( + + col0 ) DIV - MIN( DISTINCT - - 9 ) AS col2 FROM tab0 AS cor0
----
-10

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-638
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 NOT IN ( + col2 * 42, + col2 * - CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-638
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 NOT IN ( + col2 * 42, + col2 * - CAST ( NULL AS INTEGER ) + - col2 )
----

query I rowsort
SELECT 76 + - + col0 FROM tab2 AS cor0
----
1
12
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 24 + col0 + - col1 > - col0
----

query I rowsort
SELECT DISTINCT col2 * 55 * + + col2 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 34 IS NOT NULL
----

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

query I rowsort
SELECT - - ( + 39 ) * - - col1 AS col1 FROM tab1 WHERE - - col0 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT - + MIN( ALL + col0 ) FROM tab0 WHERE col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT - + MIN ( ALL + col0 ) FROM tab0 WHERE col1 > NULL
----
NULL

query I rowsort
SELECT ALL ( 7 ) + - col0 FROM tab1 AS cor0
----
-44
-78
-84

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 79 IN ( + - 12, + col0 )
----

query I rowsort
SELECT ALL col0 + + 12 AS col1 FROM tab2 AS cor0
----
58
76
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) - - 80 col2 FROM tab0 cor0
----
-17
-7
65

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 * 70 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, - 22 AS col0 FROM tab2 AS cor0
----
46
-22
64
-22
75
-22

query II rowsort
SELECT ALL + + col1, - col0 * + col0 + - 98 + col1 FROM tab1 AS cor0
----
14
-2685
47
-8332
5
-7318

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-658
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-659
SELECT - col0 AS col2, - 65 * - col2 + - col1 + - 13 DIV + col0 + - 61 * + - col1 FROM tab1 AS cor0
----
-51
7080
-85
4135
-91
7240

skipif mysql # not compatible
query II rowsort label-659
SELECT - col0 AS col2, - 65 * - col2 + - col1 + - 13 / + col0 + - 61 * + - col1 FROM tab1 AS cor0
----
-51
7080
-85
4135
-91
7240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + + 64 col1 FROM tab2 AS cor0
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT 58 * - COUNT( ALL - col0 ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-661
SELECT 58 * - COUNT ( ALL - col0 ) FROM tab2
----
-174

query I rowsort
SELECT ALL ( + + col0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-663
SELECT ALL SUM( ALL CAST( NULL AS DECIMAL ) ) AS col2, - MIN( + + col1 ) AS col1 FROM tab0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-663
SELECT ALL SUM ( ALL CAST ( NULL AS REAL ) ) AS col2, - MIN ( + + col1 ) AS col1 FROM tab0
----
NULL
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-665
SELECT DISTINCT * FROM tab1 WHERE ( + - col0 ) - - col0 * + - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-665
SELECT DISTINCT * FROM tab1 WHERE ( + - col0 ) - - col0 * + - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-666
SELECT CAST( AVG ( ALL + col0 ) AS SIGNED ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-666
SELECT CAST ( AVG ( ALL + col0 ) AS INTEGER ) FROM tab0
----
66

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

skipif mysql # not compatible
query I rowsort label-667
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----
0

query I rowsort
SELECT + 20 FROM tab0 AS cor0 WHERE NOT ( ( + + ( + + col2 ) ) ) <> NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( - col0, col0, 19 )
----
-46
-64
-75

query I rowsort
SELECT ALL - + col2 * 29 FROM tab0 cor0
----
-1363
-2871
-290

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

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - col0 / + + col0 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT DISTINCT col0 * - + col0 + + CAST( + 59 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT col1 * 70 * + - col1 IS NULL
----
-2057
-4037
-5566

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-672
SELECT DISTINCT col0 * - + col0 + + CAST ( + 59 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT col1 * 70 * + - col1 IS NULL
----
-2057
-4037
-5566

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

query I rowsort
SELECT ALL col1 * + + 80 FROM tab0
----
1680
6480
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 > col2
----
97
1
99

query II rowsort
SELECT col2, + 75 * - 95 AS col0 FROM tab1 AS cor0
----
59
-7125
68
-7125
96
-7125

query I rowsort
SELECT DISTINCT - 85 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL 92 + - COUNT( * ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 92 + - COUNT ( * ) FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT ALL - 64 AS col1, + COUNT( * ) - - ( - 7 ) FROM tab0 AS cor0
----
-64
-4

skipif mysql # not compatible
query II rowsort label-680
SELECT ALL - 64 AS col1, + COUNT ( * ) - - ( - 7 ) FROM tab0 AS cor0
----
-64
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - COUNT( * ) + SUM( 41 ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - COUNT ( * ) + SUM ( 41 ) AS col1 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT COUNT( - ( + 86 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-682
SELECT COUNT ( - ( + 86 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT 29 AS col2, - MAX( + + col2 ) FROM tab1
----
29
-96

skipif mysql # not compatible
query II rowsort label-683
SELECT 29 AS col2, - MAX ( + + col2 ) FROM tab1
----
29
-96

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

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT + 1 / col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT DISTINCT 26 DIV 24 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT 26 / 24 AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-686
SELECT DISTINCT - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 * + 7 BETWEEN NULL AND + col1 + - col2
----

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 * + 7 BETWEEN NULL AND + col1 + - col2
----

query II rowsort
SELECT - - col0 AS col1, 34 * + - col0 AS col0 FROM tab2 cor0
----
46
-1564
64
-2176
75
-2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-688
SELECT DISTINCT - 98 + - 74, - COUNT( * ) / - SUM( ( + col2 ) ) + - + COUNT( * ) * + - 5 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-172
NULL

skipif mysql # not compatible
query II rowsort label-688
SELECT DISTINCT - 98 + - 74, - COUNT ( * ) / - SUM ( ( + col2 ) ) + - + COUNT ( * ) * + - 5 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-172
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-690
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT + 33 * col0 + col0 DIV 55 FROM tab1
----
1683
2806
3004

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + 33 * col0 + col0 / 55 FROM tab1
----
1683
2806
3004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 2 - col1 AS col1, - col0 col2 FROM tab2
----
-49
-46
-65
-75
-75
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + - 62 * - MAX( DISTINCT - - ( - col1 ) ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-694
SELECT + - 62 * - MAX ( DISTINCT - - ( - col1 ) ) FROM tab0 AS cor0
----
-62

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

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

query I rowsort
SELECT DISTINCT + 59 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT - 87 * - + CAST( + 62 AS SIGNED ) AS col1 FROM tab2 cor0
----
5394
5394
5394

skipif mysql # not compatible
query I rowsort label-697
SELECT - 87 * - + CAST ( + 62 AS INTEGER ) AS col1 FROM tab2 cor0
----
5394
5394
5394

query II rowsort
SELECT + + col1 * - col0, 80 AS col0 FROM tab1 AS cor0
----
-425
80
-4277
80
-714
80

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

skipif mysql # not compatible
query I rowsort label-699
SELECT - COUNT ( * ) * - - CAST ( + + 63 AS INTEGER ) FROM tab2 AS cor0
----
-189

query I rowsort
SELECT - 21 + + col1 FROM tab2 WHERE NOT + - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col1, ( - col1 ) FROM tab1
----
14
-14
47
-47
5
-5

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

skipif mysql # not compatible
query II rowsort label-702
SELECT CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1, - 41 FROM tab2
----
-51
-41
-67
-41
-77
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 + col2 AS col1 FROM tab0
----
15
94
87
20
97
198

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-705
SELECT - 19 AS col1, CAST( NULL AS SIGNED ) + + col2 - + col2 FROM tab0 cor0
----
-19
NULL
-19
NULL
-19
NULL

skipif mysql # not compatible
query II rowsort label-705
SELECT - 19 AS col1, CAST ( NULL AS INTEGER ) + + col2 - + col2 FROM tab0 cor0
----
-19
NULL
-19
NULL
-19
NULL

query II rowsort
SELECT ALL + col0, + 98 FROM tab2 cor0
----
46
98
64
98
75
98

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

query I rowsort
SELECT 3 * - col1 + - col1 AS col0 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - 51 < NULL
----

query I rowsort
SELECT ALL ( 14 ) AS col2 FROM tab1
----
14
14
14

query I rowsort
SELECT - col0 * 4 AS col1 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT + col0 * 29 AS col0 FROM tab1
----
1479
2465
2639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 66 col1 FROM tab2
----
117
133
143

query I rowsort
SELECT ALL col1 * + 78 + col2 AS col1 FROM tab0
----
1648
177
6365

query I rowsort
SELECT 38 * 97 FROM tab2
----
3686
3686
3686

query I rowsort
SELECT 81 * - col2 AS col2 FROM tab2
----
-1863
-3240
-4698

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - 87 = ( - 58 + - 94 )
----
-51
-67
-77

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 39 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-723
SELECT + 96 DIV CAST( ( col2 ) * 25 AS SIGNED ) + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-723
SELECT + 96 / CAST ( ( col2 ) * 25 AS INTEGER ) + col1 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 43 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NOT ( 41 - ( col1 ) ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT ( + 62 ) + + 66 * + 34 FROM tab1 AS cor0
----
2306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + + 80 col0 FROM tab1 AS cor0
----
127
85
94

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

query I rowsort
SELECT ALL + col2 + 39 AS col2 FROM tab0 cor0
----
138
49
86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT DISTINCT 55 DIV 28 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT 55 / 28 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 7 < - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) - + col1 FROM tab0 AS cor0 WHERE NOT ( 31 ) IN ( col0 )
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 7 BETWEEN - col0 * - col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 53 * 46 FROM tab1 AS cor0
----
-2438
-2438
-2438

query I rowsort
SELECT DISTINCT - 66 * - 19 FROM tab1 AS cor0
----
1254

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

query I rowsort
SELECT + col1 * + + col2 * col2 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT COUNT( * ) * - 21 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-744
SELECT COUNT ( * ) * - 21 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT SUM( DISTINCT - 27 ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT SUM ( DISTINCT - 27 ) AS col2 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT 15 * - col2 AS col1 FROM tab1
----
-1020
-1440
-885

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

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

query I rowsort
SELECT DISTINCT - col0 + - col2 + + col1 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-749
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> + 48 * - 73
----

skipif mysql # not compatible
query III rowsort label-749
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> + 48 * - 73
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT SUM( + + 95 ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT SUM ( + + 95 ) FROM tab0
----
285

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN NULL AND 52 )
----

query I rowsort
SELECT ALL + col1 * + 70 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT DISTINCT - 86 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
1

skipif mysql # not compatible
query I rowsort label-755
SELECT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
1

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

query II rowsort
SELECT + + col0, 93 * col2 * col1 AS col1 FROM tab0 AS cor0
----
15
354051
87
19530
97
9207

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT ALL - 44 DIV - col2 + - col0 + ( ( - col2 ) + 48 ) AS col1 FROM tab1 AS cor0
----
-111
-96
-99

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - 44 / - col2 + - col0 + ( ( - col2 ) + 48 ) AS col1 FROM tab1 AS cor0
----
-111
-96
-99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <> + + col2
----

query I rowsort
SELECT + 53 - col2 FROM tab1 AS cor0
----
-15
-43
-6

query I rowsort
SELECT - 28 + - col1 AS col2 FROM tab0 AS cor0
----
-109
-29
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL 19 - - COUNT( * ) col0 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-762
SELECT ALL 19 - - COUNT ( * ) col0 FROM tab2
----
22

query I rowsort
SELECT 10 + - col0 FROM tab2
----
-36
-54
-65

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - + 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-767
SELECT DISTINCT * FROM tab0 WHERE NOT + 87 * - CAST( - 91 AS SIGNED ) IN ( col2 + - 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-767
SELECT DISTINCT * FROM tab0 WHERE NOT + 87 * - CAST ( - 91 AS INTEGER ) IN ( col2 + - 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 AS col2 FROM tab2 WHERE col1 / 1 IS NOT NULL
----
60
60
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT 71 * 69 + 26 + - - CAST( 16 AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
4944

skipif mysql # not compatible
query I rowsort label-769
SELECT 71 * 69 + 26 + - - CAST ( 16 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4944

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT - col1 DIV + 98 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-770
SELECT - col1 / + 98 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT ALL 79 DIV col2 DIV 27 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL 79 / col2 / 27 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT NULL IN ( + 6 - - col2 + + 86 - 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT - MAX( DISTINCT 49 ) AS col0 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-774
SELECT - MAX ( DISTINCT 49 ) AS col0 FROM tab2
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT 67 * - + COUNT( * ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-776
SELECT 67 * - + COUNT ( * ) FROM tab0 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL + 48 * - COUNT( * ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + 48 * - COUNT ( * ) FROM tab0 AS cor0
----
-144

query I rowsort
SELECT DISTINCT + col2 * - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1058
-2560
-4350

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

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

query II rowsort
SELECT DISTINCT col1, - 80 AS col1 FROM tab1
----
14
-80
47
-80
5
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT + 71 DIV 69 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-781
SELECT + 71 / 69 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col0 * - - 94 * - - 11 * + 93 AS col2 FROM tab1
----
4904262
8173770
8750742

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT + COUNT( * ), - SUM( - col0 ) AS col0 FROM tab0 cor0
----
3
199

skipif mysql # not compatible
query II rowsort label-783
SELECT + COUNT ( * ), - SUM ( - col0 ) AS col0 FROM tab0 cor0
----
3
199

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

query I rowsort
SELECT DISTINCT - ( - 5 ) FROM tab2 cor0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-786
SELECT - - CAST( NULL AS DECIMAL ) AS col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-786
SELECT - - CAST ( NULL AS REAL ) AS col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL + 39 + + - COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + 39 + + - COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
36

query II rowsort
SELECT col0 * 71, 16 - col0 AS col0 FROM tab0
----
1065
1
6177
-71
6887
-81

query I rowsort
SELECT 3 + ( - col0 ) + + - col1 + + col0 - 98 FROM tab0
----
-116
-176
-96

query I rowsort
SELECT - - 48 + + col2 AS col2 FROM tab1 AS cor0
----
107
116
144

query I rowsort
SELECT + 30 + - + col2 + 0 AS col1 FROM tab0 AS cor0
----
-17
-69
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE 99 * - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - ( + 85 ) + + + col1 col2 FROM tab0 cor0
----
181
183
193

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - 43 NOT BETWEEN ( NULL ) AND - ( + col2 ) )
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + + col2 + 15 FROM tab2 AS cor0
----
38
55
73

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

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

query I rowsort
SELECT ALL 71 * - - col0 * - 32 - + col2 AS col0 FROM tab0
----
-197674
-220483
-34127

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

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

query II rowsort
SELECT - col1 AS col2, 11 FROM tab2
----
-51
11
-67
11
-77
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-800
SELECT DISTINCT + col0 * 44 * col1 - CAST( - ( + 64 ) AS SIGNED ) AS col1, - col2 AS col1 FROM tab2
----
103288
-23
216896
-40
221164
-58

skipif mysql # not compatible
query II rowsort label-800
SELECT DISTINCT + col0 * 44 * col1 - CAST ( - ( + 64 ) AS INTEGER ) AS col1, - col2 AS col1 FROM tab2
----
103288
-23
216896
-40
221164
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - COUNT( * ) - + 88 AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-801
SELECT - COUNT ( * ) - + 88 AS col1 FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT + 95 AS col1, COUNT( * ) FROM tab1 WHERE NULL = NULL
----
95
0

skipif mysql # not compatible
query II rowsort label-802
SELECT + 95 AS col1, COUNT ( * ) FROM tab1 WHERE NULL = NULL
----
95
0

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

query I rowsort
SELECT DISTINCT 86 * - 34 FROM tab2 cor0
----
-2924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-805
SELECT ALL + 26 * + ( - - ( + col1 ) ) AS col0, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
1222
NULL
130
NULL
364
NULL

skipif mysql # not compatible
query II rowsort label-805
SELECT ALL + 26 * + ( - - ( + col1 ) ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
1222
NULL
130
NULL
364
NULL

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

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

query II rowsort
SELECT ALL col1, - 2 + + col1 * + + col2 FROM tab2 AS cor0
----
51
1171
67
3884
77
3078

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT COUNT( * ) * - 82, - 46 AS col1 FROM tab0
----
-246
-46

skipif mysql # not compatible
query II rowsort label-808
SELECT COUNT ( * ) * - 82, - 46 AS col1 FROM tab0
----
-246
-46

query I rowsort
SELECT - 95 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + 94 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
94

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 * col2 AS col1, + 56 AS col0 FROM tab0 AS cor0
----
705
56
870
56
9603
56

query II rowsort
SELECT - col1 * - 29, col0 AS col2 FROM tab1 AS cor0
----
1363
91
145
85
406
51

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( + + col0 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT DISTINCT 20 DIV - 27 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT 20 / - 27 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + 88 * COUNT( * ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-819
SELECT + 88 * COUNT ( * ) FROM tab2 AS cor0
----
264

query I rowsort
SELECT DISTINCT + - col1 * - - 52 + - 38 - - - col1 FROM tab1 AS cor0
----
-2529
-303
-780

query I rowsort
SELECT ALL - 62 * + col2 AS col2 FROM tab0
----
-2914
-6138
-620

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 AS col2 FROM tab1
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
29

query I rowsort
SELECT ALL - - 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query II rowsort
SELECT DISTINCT - col1 AS col2, - 33 FROM tab2
----
-51
-33
-67
-33
-77
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT ALL + 76 DIV + col0 + - col1 col1 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-828
SELECT ALL + 76 / + col0 + - col1 col1 FROM tab0 AS cor0
----
-1
-21
-76

query I rowsort
SELECT + + col1 - + + ( + - 17 ) FROM tab0 AS cor0
----
18
38
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 58 * 19 IS NULL
----

query I rowsort
SELECT - - 99 * + col0 - + col2 + - 40 FROM tab0 AS cor0
----
1398
8563
9464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + - col2 + - - col0 col2 FROM tab0 AS cor0
----
-101
-79
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - - col1 + + + col2 + + col0 * + col0 col1 FROM tab1 AS cor0
----
11545
3649
7624

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT + MIN( DISTINCT - - col1 ) + + 14 + - 94 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-834
SELECT + MIN ( DISTINCT - - col1 ) + + 14 + - 94 FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-835
SELECT 84 / - - col2 + - CAST( - 30 AS SIGNED ) col0, 32 AS col1 FROM tab0 cor0 WHERE - col2 * ( - col1 ) - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-835
SELECT 84 / - - col2 + - CAST ( - 30 AS INTEGER ) col0, 32 AS col1 FROM tab0 cor0 WHERE - col2 * ( - col1 ) - col2 IS NULL
----

query II rowsort
SELECT ALL + col2 + + + col0 AS col1, col2 FROM tab0 AS cor0
----
196
99
62
47
97
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT ALL - 39 * - + 74 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - 39 * - + 74 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-838
SELECT ALL * FROM tab2 WHERE + 88 IN ( - CAST( NULL AS SIGNED ), 42, + - col2, 94 + + 24, 55 )
----

skipif mysql # not compatible
query III rowsort label-838
SELECT ALL * FROM tab2 WHERE + 88 IN ( - CAST ( NULL AS INTEGER ), 42, + - col2, 94 + + 24, 55 )
----

query I rowsort
SELECT + ( col2 ) * + col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT 52 * + 60 + + + COUNT( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - 13 IS NOT NULL
----
3120

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT 52 * + 60 + + + COUNT ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - 13 IS NOT NULL
----
3120

query I rowsort
SELECT + + 58 * col2 FROM tab0 AS cor0
----
2726
5742
580

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - COUNT( * ) col0 FROM tab0 WHERE NOT ( + col1 * + - col0 * - col1 ) < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-845
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT ( + col1 * + - col0 * - col1 ) < NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 >= - col0
----

query I rowsort
SELECT ALL - - ( + - 3 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE + col0 BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE + col0 BETWEEN NULL AND - col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 IN ( - + col0 / + col0 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT + CAST( - 36 AS SIGNED ) + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-850
SELECT + CAST ( - 36 AS INTEGER ) + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - - ( - 18 ) * + col2, col0 * + col0 AS col1 FROM tab1 AS cor0
----
-1062
7225
-1224
8281
-1728
2601

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 41 AS col2, - 79 col0 FROM tab2 cor0
----
-41
-79
-41
-79
-41
-79

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

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

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

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

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

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

query I rowsort
SELECT - col2 * + - 10 * + col1 AS col1 FROM tab0
----
2100
38070
990

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-859
SELECT ALL * FROM tab0 WHERE NOT col2 + + 1 BETWEEN col1 AND + col2 * CAST( + col0 AS DECIMAL ) * col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-859
SELECT ALL * FROM tab0 WHERE NOT col2 + + 1 BETWEEN col1 AND + col2 * CAST ( + col0 AS REAL ) * col2
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT col2 * - col2, - 40 * - col1 AS col0 FROM tab2
----
-1600
3080
-3364
2680
-529
2040

query I rowsort
SELECT + 66 * - col0 AS col2 FROM tab0
----
-5742
-6402
-990

query I rowsort
SELECT ALL ( + 28 ) * - - 61 FROM tab2
----
1708
1708
1708

query I rowsort
SELECT col0 * + - ( - - 64 ) AS col2 FROM tab0
----
-5568
-6208
-960

query III rowsort
SELECT * FROM tab2 WHERE - 58 * - + 80 BETWEEN + - col1 AND - - ( + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT 73 DIV 84 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-865
SELECT 73 / 84 col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT 91 DIV + - ( + col1 ) FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-866
SELECT 91 / + - ( + col1 ) FROM tab1
----
-1
-18
-6

query I rowsort
SELECT ALL - - col1 + + col1 * + - 5 AS col2 FROM tab0 AS cor0
----
-324
-4
-84

query I rowsort
SELECT DISTINCT + 91 + + col1 AS col2 FROM tab0 AS cor0
----
112
172
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-869
SELECT COUNT( * ) + + 44 DIV MAX( ALL + col1 ) col2 FROM tab2
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT - col2 DIV - - col2 + ( - + col2 ) AS col0 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-870
SELECT - col2 / - - col2 + ( - + col2 ) AS col0 FROM tab0
----
-100
-11
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL 90 DIV + 77 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL 90 / + 77 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT + + col2 DIV - 59 + + - col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-872
SELECT + + col2 / - 59 + + - col0 FROM tab1 AS cor0
----
-52
-86
-92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT DISTINCT col0 + + + col2 * + - col2 DIV + col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT col0 + + + col2 * + - col2 / + col2 FROM tab1
----
-45
23
26

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

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

query I rowsort
SELECT ALL + col1 + - - col1 + - 50 FROM tab0
----
-48
-8
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ) col0, col1 * + - col1 * - 85 AS col2 FROM tab2
----
-23
221085
-40
503965
-58
381565

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT 95 AS col1, MIN( - 95 ) + - COUNT( * ) AS col0 FROM tab1
----
95
-98

skipif mysql # not compatible
query II rowsort label-878
SELECT 95 AS col1, MIN ( - 95 ) + - COUNT ( * ) AS col0 FROM tab1
----
95
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT MAX( DISTINCT - 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-879
SELECT MAX ( DISTINCT - 42 ) FROM tab0
----
-42

query II rowsort
SELECT ALL - 82, 68 AS col2 FROM tab0
----
-82
68
-82
68
-82
68

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

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

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

query II rowsort
SELECT ALL - + col2 * - 71 * 0 * - + col2 + + col1 + + + col0, 22 / - + 32 * col1 FROM tab0 WHERE - col1 BETWEEN 85 AND + col0
----

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

query I rowsort
SELECT ( 0 ) * + - 96 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT DISTINCT - + MIN( ALL + + ( + col1 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT - + MIN ( ALL + + ( + col1 ) ) FROM tab0 cor0
----
-1

query I rowsort
SELECT + + 22 AS col2 FROM tab2 AS cor0
----
22
22
22

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

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

query I rowsort
SELECT DISTINCT 89 * - + 53 FROM tab2
----
-4717

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( + + 59 ) ) < - ( 48 ) + - + 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT ALL CAST( + 25 AS SIGNED ) * col2 FROM tab1 cor0
----
1475
1700
2400

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL CAST ( + 25 AS INTEGER ) * col2 FROM tab1 cor0
----
1475
1700
2400

query I rowsort
SELECT DISTINCT - ( - 66 ) * col2 * - - 75 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-16651733
-2618499
-7919923

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 61 + + col0 / - + ( + - 51 ) IS NOT NULL
----

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

query II rowsort
SELECT ALL col1 + col2 AS col0, + col2 + - + 67 FROM tab0 AS cor0
----
100
32
128
-20
31
-57

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

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

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

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

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

query I rowsort
SELECT ALL - 62 * - 43 * + 54 + col0 FROM tab2
----
144010
144028
144039

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

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT DISTINCT - COUNT( * ) * - 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT - COUNT ( * ) * - 31 FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-903
SELECT DISTINCT + ( - - 64 ) * + 78 AS col1, + col0 AS col1 FROM tab0 WHERE NOT 75 BETWEEN - CAST( NULL AS SIGNED ) * col0 AND + - 39 * col0 * col2
----
4992
15
4992
87
4992
97

skipif mysql # not compatible
query II rowsort label-903
SELECT DISTINCT + ( - - 64 ) * + 78 AS col1, + col0 AS col1 FROM tab0 WHERE NOT 75 BETWEEN - CAST ( NULL AS INTEGER ) * col0 AND + - 39 * col0 * col2
----
4992
15
4992
87
4992
97

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

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

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

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

query I rowsort
SELECT 66 + 35 AS col1 FROM tab2 AS cor0
----
101
101
101

query I rowsort
SELECT col2 * - 35 * + col0 + col2 - - 50 FROM tab2 cor0 WHERE + col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT 77 * - + COUNT( * ) * ( + + COUNT( * ) ) + + 24 AS col2 FROM tab0 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-909
SELECT 77 * - + COUNT ( * ) * ( + + COUNT ( * ) ) + + 24 AS col2 FROM tab0 AS cor0
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT - SUM( DISTINCT - - col0 ) * 53 + + + MIN( DISTINCT - - ( + 92 ) ) FROM tab1 AS cor0
----
-11939

skipif mysql # not compatible
query I rowsort label-910
SELECT - SUM ( DISTINCT - - col0 ) * 53 + + + MIN ( DISTINCT - - ( + 92 ) ) FROM tab1 AS cor0
----
-11939

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-911
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / col1 > + - col1 * - CAST( NULL AS SIGNED ) - col2 * + - 20 + + col0
----

skipif mysql # not compatible
query III rowsort label-911
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / col1 > + - col1 * - CAST ( NULL AS INTEGER ) - col2 * + - 20 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - 81 col1 FROM tab0 AS cor0
----
-168
-178
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT - 98 - - COUNT( * ) * + 58 AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT - 98 - - COUNT ( * ) * + 58 AS col1 FROM tab0
----
76

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN - col2 AND - col1 * + 37 - 17 / - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT 17 * + MAX( - + col0 ) - + 43 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-825
3

skipif mysql # not compatible
query II rowsort label-915
SELECT 17 * + MAX ( - + col0 ) - + 43 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-825
3

query II rowsort
SELECT 53 * + col1 + + col1 + col2 AS col2, + 61 FROM tab2 AS cor0
----
2777
61
3676
61
4198
61

query I rowsort
SELECT col0 + + - col1 + + col0 FROM tab2 cor0
----
41
51
83

query I rowsort
SELECT DISTINCT - 38 FROM tab0 AS cor0 WHERE NOT 41 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( * ) + - AVG ( CAST( + 92 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 9 - col1 * - - col0 BETWEEN + col1 - CAST( NULL AS SIGNED ) AND - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - AVG ( CAST ( + 92 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 9 - col1 * - - col0 BETWEEN + col1 - CAST ( NULL AS INTEGER ) AND - 43 )
----
NULL

query I rowsort
SELECT ALL - 9 * col2 * col1 AS col0 FROM tab2 cor0
----
-10557
-27720
-34974

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT ALL 60 DIV - col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 60 / - col0 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - 19 - + COUNT( * ) FROM tab2 WHERE NOT 50 IS NOT NULL
----
-19

skipif mysql # not compatible
query I rowsort label-923
SELECT - 19 - + COUNT ( * ) FROM tab2 WHERE NOT 50 IS NOT NULL
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT MIN( 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT MIN ( 77 ) FROM tab2
----
77

query I rowsort
SELECT 41 * - ( col1 ) FROM tab2
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT ( - + MAX( - col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT ( - + MAX ( - col2 ) ) AS col1 FROM tab1
----
59

query II rowsort
SELECT ALL - - col2 * + 79 * + 63 AS col2, 70 FROM tab2 AS cor0
----
114471
70
199080
70
288666
70

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT + 36 DIV + - ( - 64 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-930
SELECT + 36 / + - ( - 64 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 90 + - col1 col1 FROM tab0
----
-10
69
-47
9
-99
89

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT 27 * + col1 DIV - - col1 FROM tab2
----
27
27
27

skipif mysql # not compatible
query I rowsort label-932
SELECT 27 * + col1 / - - col1 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + SUM( ALL - - 9 ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-933
SELECT + SUM ( ALL - - 9 ) AS col0 FROM tab1
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT - SUM( - + 96 ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT - SUM ( - + 96 ) FROM tab0 AS cor0
----
288

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

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

query I rowsort
SELECT ALL 21 + + col0 AS col0 FROM tab2 cor0
----
67
85
96

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

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - + SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 + col0 * + + 99 col0 FROM tab1 AS cor0
----
4953
8319
8913

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + 86 <= - - col2
----

query I rowsort
SELECT DISTINCT 90 * + - ( - col2 ) AS col1 FROM tab0
----
4230
8910
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col0 FROM tab2 WHERE 30 IS NOT NULL
----
-48
-48
-48

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

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

query I rowsort
SELECT DISTINCT - col0 + 28 - + 13 * + 2 - + - col0 FROM tab0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - COUNT( * ) * + + 47 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-946
SELECT - COUNT ( * ) * + + 47 FROM tab0
----
-141

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + + + col2 AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT + - col0 DIV 84 * 70 - + - col0 FROM tab1 AS cor0
----
15
21
51

skipif mysql # not compatible
query I rowsort label-951
SELECT + - col0 / 84 * 70 - + - col0 FROM tab1 AS cor0
----
15
21
51

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL < - col2 - - 31
----

query I rowsort
SELECT + 90 - col2 * + 64 FROM tab1 AS cor0
----
-3686
-4262
-6054

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

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

query I rowsort
SELECT ALL + ( - - 46 ) - + 63 FROM tab0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT + MIN( DISTINCT + col2 ) + 89, + 72 col2 FROM tab0
----
99
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-957
SELECT + MIN ( DISTINCT + col2 ) + 89, + 72 col2 FROM tab0
----
99
72

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT ALL + col1 * - 78 / + - 78 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 3 ) < 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT SUM( ALL + 97 ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT SUM ( ALL + 97 ) FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT MIN( 92 ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-962
SELECT MIN ( 92 ) AS col0 FROM tab2 AS cor0
----
92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-963
SELECT COUNT ( * ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-964
SELECT ( + COUNT ( ALL col1 ) ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT AVG ( + - col2 ) FROM tab2 WHERE + ( col0 ) = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT DISTINCT - 14 DIV col1 FROM tab0
----
-14
0

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - 14 / col1 FROM tab0
----
-14
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 21 < NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL IN ( col0, - 88 ) )
----

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

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

query I rowsort
SELECT + ( + 2 ) * + 28 AS col0 FROM tab1 AS cor0
----
56
56
56

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

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col2 AS col2, + col0 col0 FROM tab0 AS cor0
----
-77
87
2
97
32
15

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

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

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

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

query I rowsort
SELECT ALL + - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + - col1 col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT + col0 * col1 + - col1 * + 11 FROM tab2
----
1785
4081
4288

query II rowsort
SELECT - 54 * + col0 AS col0, + col1 FROM tab0 AS cor0
----
-4698
21
-5238
1
-810
81

query I rowsort
SELECT - ( - ( - - col0 ) ) * + col1 * - 78 AS col0 FROM tab0 AS cor0
----
-142506
-7566
-94770

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

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

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

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

query I rowsort
SELECT ALL + - 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL ( - - col0 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT + - col2 * - - col2, + ( col1 ) * + - col0 + col2 + - - 11 AS col1 FROM tab2 AS cor0
----
-1600
-4877
-3364
-4956
-529
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-989
SELECT + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - - ( + + col1 ) * col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL - + 43 * - col1 FROM tab0 AS cor0
----
3483
43
903

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

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

query I rowsort
SELECT DISTINCT 24 FROM tab2 WHERE - 47 <> NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT DISTINCT + 96 AS col0 FROM tab0 WHERE + col0 BETWEEN col2 * 24 * col0 + - col2 AND - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + 96 AS col0 FROM tab0 WHERE + col0 BETWEEN col2 * 24 * col0 + - col2 AND - CAST ( - col0 AS INTEGER )
----

query II rowsort
SELECT 82 AS col2, ( - 37 ) FROM tab1
----
82
-37
82
-37
82
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT - + 37 * + 66 * ( COUNT( * ) ) FROM tab2 AS cor0
----
-7326

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - + 37 * + 66 * ( COUNT ( * ) ) FROM tab2 AS cor0
----
-7326

query I rowsort
SELECT - col0 * - + 59 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT ALL + 14 DIV - 72 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 14 / - 72 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT ALL COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT + - col2 * - - col1 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 9 col2 FROM tab2 AS cor0
----
55
73
84

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

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

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

query I rowsort
SELECT ALL + 52 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 * + - 58
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( + 27 )
----

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

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

query I rowsort
SELECT ALL ( col2 ) * + + 28 AS col0 FROM tab1 AS cor0
----
1652
1904
2688

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE + 20 + 17 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT COUNT( ALL + + 33 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1015
SELECT COUNT ( ALL + + 33 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT - COUNT( * ) col1, 99 AS col2 FROM tab1
----
-3
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1016
SELECT - COUNT ( * ) col1, 99 AS col2 FROM tab1
----
-3
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1018
SELECT ALL + col0 AS col1, 66 * CAST( - ( - - col1 ) AS SIGNED ) - col1 * 33 * - - col2 AS col0 FROM tab0 AS cor0
----
15
-130977
87
-8316
97
-3333

skipif mysql # not compatible
query II rowsort label-1018
SELECT ALL + col0 AS col1, 66 * CAST ( - ( - - col1 ) AS INTEGER ) - col1 * 33 * - - col2 AS col0 FROM tab0 AS cor0
----
15
-130977
87
-8316
97
-3333

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 27 + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT DISTINCT col2, + 11 + + + ( - col1 ) * - col2 * CAST( NULL AS SIGNED ) - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1021
SELECT DISTINCT col2, + 11 + + + ( - col1 ) * - col2 * CAST ( NULL AS INTEGER ) - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT col2 AS col2, - col2 AS col0, 83 + - 67 AS col2 FROM tab1 AS cor0
----
9 values hashing to 7f46d809518775613f1cefaf69deb74e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 41 * - col0 + col2 col1 FROM tab1 cor0
----
200832
205674
253776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + + 66 col2 FROM tab2 AS cor0
----
3036
4224
4950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1024
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + + 66 col2 FROM tab2 AS cor0
----
3036
4224
4950

query I rowsort
SELECT + + 18 * + col2 AS col2 FROM tab1 AS cor0
----
1062
1224
1728

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1027
SELECT + MIN ( - 74 ) col2 FROM tab2
----
-74

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

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

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

query I rowsort
SELECT + col2 * - 86 AS col0 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT + 64 * - col2 AS col0 FROM tab2
----
-1472
-2560
-3712

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT ALL 4 * - - col2 DIV + col2 col2 FROM tab2
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1032
SELECT ALL 4 * - - col2 / + col2 col2 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT - 82 * + 47 FROM tab0 AS cor0
----
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL CAST( + ( + 49 ) AS SIGNED ) * + col0 AS col0 FROM tab0 cor0
----
4263
4753
735

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL CAST ( + ( + 49 ) AS INTEGER ) * + col0 AS col0 FROM tab0 cor0
----
4263
4753
735

query I rowsort
SELECT - 20 + - 16 FROM tab2 cor0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT DISTINCT col0 DIV + 52 + - col0 + - + 71 AS col0 FROM tab2 AS cor0
----
-117
-134
-145

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT col0 / + 52 + - col0 + - + 71 AS col0 FROM tab2 AS cor0
----
-117
-134
-145

query I rowsort
SELECT DISTINCT + 59 * col0 AS col0 FROM tab2
----
2714
3776
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-1038
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 69 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query II rowsort
SELECT DISTINCT + ( col0 ) + + 28, col2 + + col2 AS col0 FROM tab1 AS cor0
----
113
118
119
136
79
192

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + + col0 * - 47 col1, + 13 FROM tab2 AS cor0
----
2116
13
2944
13
3450
13

query II rowsort
SELECT DISTINCT + 31 AS col0, col1 - + + 39 FROM tab0 AS cor0
----
31
-18
31
-38
31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL - COUNT( * ) + 44 AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL - COUNT ( * ) + 44 AS col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT + + col1 + + - ( - col0 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + - col2 + + 99 * col0 * - col1 FROM tab2 AS cor0
----
-232277
-487912
-497533

query I rowsort
SELECT - + ( + col1 ) + + col1 + + 26 * col0 AS col1 FROM tab1 AS cor0
----
1326
2210
2366

query I rowsort
SELECT DISTINCT col1 * - col1 * + 21 + - 48 + - 86 + - - 94 FROM tab1
----
-4156
-46429
-565

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1052
SELECT ALL col0 DIV col2, ( col1 ) AS col1 FROM tab2
----
1
67
1
77
2
51

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL col0 / col2, ( col1 ) AS col1 FROM tab2
----
1
67
1
77
2
51

query I rowsort
SELECT ALL - 3 - - col1 AS col1 FROM tab2
----
48
64
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1054
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT IN ( col2, - 24, - col2 )
----

skipif mysql # not compatible
query III rowsort label-1054
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col2, - 24, - col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT + COUNT ( * ) / - MAX ( DISTINCT - col1 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1060
SELECT 41, + ( + COUNT( * ) ) col0 FROM tab0
----
41
3

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

query II rowsort
SELECT + 89, + 40 AS col0 FROM tab2
----
89
40
89
40
89
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT SUM( + - 63 ) AS col0 FROM tab0 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-1062
SELECT SUM ( + - 63 ) AS col0 FROM tab0 cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL + 59 * + - MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3009

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + 59 * + - MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT - 70 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT - 70 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 5 col1 FROM tab2 cor0 WHERE NOT 97 <= NULL
----

query I rowsort
SELECT col2 * + + 47 FROM tab0 AS cor0
----
2209
4653
470

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col2 ) <> 1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 70 * + col2, col2 col0 FROM tab1
----
-4130
59
-4760
68
-6720
96

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

skipif mysql # not compatible
query III rowsort label-1072
SELECT ALL * FROM tab1 WHERE NOT ( col2 + + 76 + ( - + CAST ( NULL AS INTEGER ) ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT SUM( + - 75 ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-1073
SELECT SUM ( + - 75 ) FROM tab1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT 56 * SUM( DISTINCT col1 ) AS col0 FROM tab0
----
5768

skipif mysql # not compatible
query I rowsort label-1074
SELECT 56 * SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
5768

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

query I rowsort
SELECT ALL + col0 * - - 23 FROM tab1 AS cor0
----
1173
1955
2093

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 + + - 79 col1 FROM tab2
----
-5
38
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + MAX( DISTINCT + 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-1079
SELECT + MAX ( DISTINCT + 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
88

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

query II rowsort
SELECT col1 + 44 AS col0, + ( - 4 ) FROM tab0
----
125
-4
45
-4
65
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT DISTINCT 14 * - COUNT( * ) AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT 14 * - COUNT ( * ) AS col1 FROM tab2
----
-42

query I rowsort
SELECT + 99 + + - col2 * + ( - col2 ) AS col2 FROM tab0
----
199
2308
9900

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

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

query I rowsort
SELECT DISTINCT + 17 / - ( + - 89 ) - col1 AS col1 FROM tab1 AS cor0 WHERE NULL >= - 27 * + col0
----

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 62 - - col2 FROM tab2 AS cor0
----
-1622
-3368
-568

query I rowsort
SELECT DISTINCT 5 + 87 FROM tab2
----
92

query I rowsort
SELECT + 53 * + 74 FROM tab2
----
3922
3922
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT - 20 - + MIN( DISTINCT - col1 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-1089
SELECT - 20 - + MIN ( DISTINCT - col1 ) FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT DISTINCT - col2 - - CAST( + col2 AS SIGNED ) * - col2 FROM tab1
----
-3540
-4692
-9312

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - col2 - - CAST ( + col2 AS INTEGER ) * - col2 FROM tab1
----
-3540
-4692
-9312

query II rowsort
SELECT DISTINCT col0, 96 FROM tab2
----
46
96
64
96
75
96

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

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

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

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

query I rowsort
SELECT 55 - + 51 AS col2 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT ALL 5 DIV COUNT( + col2 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL 5 / COUNT ( + col2 ) AS col1 FROM tab2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT - MIN( + - 12 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT - MIN ( + - 12 ) FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL + 70 - + COUNT( * ) - + MIN( + - 69 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( + 55 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + 70 - + COUNT ( * ) - + MIN ( + - 69 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( + 55 ) <> NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + 37 * + col2 FROM tab1 AS cor0
----
2183
2516
3552

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

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

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

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

query I rowsort
SELECT ALL + col0 * - 46 * + - col2 * - col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-1119364
-11605800
-4710400

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT - ( MIN( 26 ) ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - ( MIN ( 26 ) ) FROM tab2 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT 28 DIV 8 AS col1 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1107
SELECT 28 / 8 AS col1 FROM tab1
----
3
3
3

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

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT - col0 / - 57 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL + 27 + + + 20 FROM tab2 AS cor0
----
47
47
47

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

query I rowsort
SELECT + - col0 + - col1 - + - 50 FROM tab1 AS cor0
----
-15
-40
-88

query I rowsort
SELECT ALL + - 73 + + + 6 FROM tab1 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT + CAST( - + COUNT( * ) AS SIGNED ) - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1114
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1116
SELECT + col0 AS col0, CAST( col2 AS SIGNED ) FROM tab2
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-1116
SELECT + col0 AS col0, CAST ( col2 AS INTEGER ) FROM tab2
----
46
23
64
40
75
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT DISTINCT - + 20 + - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT - + 20 + - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 10 + + col2 AS col0 FROM tab2 AS cor0
----
33
50
68

query I rowsort
SELECT DISTINCT + + col0 + + + col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL + 15 + + + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-32
1
10

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 27 * col2 IS NULL )
----

query II rowsort
SELECT DISTINCT col0 AS col0, 67 FROM tab2 WHERE - col0 * + 23 * - 69 < 24
----

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

query I rowsort
SELECT + 36 * - 87 AS col0 FROM tab1
----
-3132
-3132
-3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL + col2 * + 66 * + CAST( 65 AS SIGNED ) FROM tab1 AS cor0
----
253110
291720
411840

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + col2 * + 66 * + CAST ( 65 AS INTEGER ) FROM tab1 AS cor0
----
253110
291720
411840

onlyif mysql # aggregate syntax: 
query III rowsort label-1128
SELECT + COUNT( * ) * + COUNT( * ), COUNT( * ) AS col1, + 18 AS col1 FROM tab2 AS cor0
----
9
3
18

skipif mysql # not compatible
query III rowsort label-1128
SELECT + COUNT ( * ) * + COUNT ( * ), COUNT ( * ) AS col1, + 18 AS col1 FROM tab2 AS cor0
----
9
3
18

onlyif mysql # DIV for integer division: 
query II rowsort label-1129
SELECT col1 DIV - ( - ( - 63 ) ) * col2 * + - 47 + + col0 + + - ( - col2 ) * 5 - - 46 * + col0 col0, 4 AS col2 FROM tab1 AS cor0
----
2877
4
4290
4
4617
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1129
SELECT col1 / - ( - ( - 63 ) ) * col2 * + - 47 + + col0 + + - ( - col2 ) * 5 - - 46 * + col0 col0, 4 AS col2 FROM tab1 AS cor0
----
2877
4
4290
4
4617
4

query I rowsort
SELECT col2 * + - col0 FROM tab0 cor0 WHERE NOT col1 = col0 - - + col2
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1131
SELECT DISTINCT - + COUNT( * ) AS col0, SUM( 42 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 / - CAST( + + col0 AS SIGNED ) IS NULL
----
-3
126

skipif mysql # not compatible
query II rowsort label-1131
SELECT DISTINCT - + COUNT ( * ) AS col0, SUM ( 42 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 / - CAST ( + + col0 AS INTEGER ) IS NULL
----
-3
126

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1132
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
4882
5010
6141

query II rowsort
SELECT ALL col2 AS col0, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - col2 * + col1 + - + col1 IS NULL
----
23
40
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT DISTINCT CAST( + 76 AS SIGNED ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT CAST ( + 76 AS INTEGER ) AS col1 FROM tab0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT - + COUNT( DISTINCT + col1 ) + - - 0 DIV - + 32 col0 FROM tab1 AS cor0
----
-3

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

query I rowsort
SELECT ALL - 80 + - + 73 AS col2 FROM tab2 AS cor0
----
-153
-153
-153

query I rowsort
SELECT DISTINCT - - 85 + - 34 + - - 64 AS col1 FROM tab2 AS cor0
----
115

query I rowsort
SELECT DISTINCT + ( - + 40 ) * 85 AS col0 FROM tab2 AS cor0
----
-3400

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

query I rowsort
SELECT col0 + - + col2 * col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 >= - col0
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= col0 / + col0 + - col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT SUM( - 34 ) * 50 * - - 27 FROM tab0
----
-137700

skipif mysql # not compatible
query I rowsort label-1149
SELECT SUM ( - 34 ) * 50 * - - 27 FROM tab0
----
-137700

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT DISTINCT 68 AS col1, + MIN( 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
68
50

skipif mysql # not compatible
query II rowsort label-1154
SELECT DISTINCT 68 AS col1, + MIN ( 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
68
50

query I rowsort
SELECT DISTINCT + 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
48

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

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

query I rowsort
SELECT - - 11 * + 54 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b459be5af057ddbed7c9f871da3b621

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - 14
----

query I rowsort
SELECT DISTINCT + + col1 - - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

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

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

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

query II rowsort
SELECT DISTINCT 6, + col1 FROM tab1 AS cor0
----
6
14
6
47
6
5

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col1 NOT IN ( + - col1 + + col2, - col1 )
----
14
47
5

query I rowsort
SELECT ALL + ( + 36 ) AS col1 FROM tab0
----
36
36
36

query II rowsort
SELECT + 95 AS col0, - col0 FROM tab2
----
95
-46
95
-64
95
-75

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 7 ) < + 14
----

query II rowsort
SELECT + 79 * - col2, 45 AS col0 FROM tab1
----
-4661
45
-5372
45
-7584
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL + COUNT( * ) * + MIN( DISTINCT + col0 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT + col0 ) FROM tab1
----
153

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 * 53 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( + + 8 ) + + col2 col0 FROM tab0 AS cor0
----
-329
-693
-70

query I rowsort
SELECT - - ( 31 ) AS col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE - 58 * - - ( - + col2 ) * + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1174
SELECT ALL * FROM tab2 AS cor0 WHERE - 16 * - col1 NOT BETWEEN 11 * - + col2 AND 29 + col0 * + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1174
SELECT ALL * FROM tab2 AS cor0 WHERE - 16 * - col1 NOT BETWEEN 11 * - + col2 AND 29 + col0 * + CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT ALL + 74 + + 35 AS col1 FROM tab1 AS cor0
----
109
109
109

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT DISTINCT - - col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - - col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
141
142
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT COUNT( * ) * - - 18 AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT COUNT ( * ) * - - 18 AS col2 FROM tab1
----
54

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( 33 + - - col0 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL MAX( ALL - 97 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL MAX ( ALL - 97 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT ALL 24 DIV + 98 * + MIN( col2 ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1184
SELECT ALL 24 / + 98 * + MIN ( col2 ) col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 60 ) NOT BETWEEN col2 AND col2
----

query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col1 + col1 * + 79 AND - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL + 99 + + COUNT( * ) AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + 99 + + COUNT ( * ) AS col0 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT + 17 + ( - ( - MAX( DISTINCT col1 ) ) ) * 63 FROM tab0
----
5120

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + 17 + ( - ( - MAX ( DISTINCT col1 ) ) ) * 63 FROM tab0
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 89 + SUM( col2 - 18 ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-1189
SELECT 89 + SUM ( col2 - 18 ) FROM tab1
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT DISTINCT - 40 DIV col2 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - 40 / col2 AS col0 FROM tab2
----
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT 33 DIV col0 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1192
SELECT 33 / col0 AS col2 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL + 4 + - 58 AS col2 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT col1 * + 76 FROM tab2 WHERE NOT 84 IS NULL
----
3876
5092
5852

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) * + 31 AS col2 FROM tab2
----
1380
1920
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT - col1 DIV ( - col1 ) + + 77 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT - col1 / ( - col1 ) + + 77 FROM tab2
----
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1198
SELECT * FROM tab2 WHERE NOT ( + 80 + col0 ) = CAST( NULL AS SIGNED ) + + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-1198
SELECT * FROM tab2 WHERE NOT ( + 80 + col0 ) = CAST ( NULL AS INTEGER ) + + ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL COUNT ( * ) * - 56 FROM tab0 WHERE NOT 33 + - col2 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT col1 DIV + col1 + - 42 AS col2 FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-1200
SELECT col1 / + col1 + - 42 AS col2 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT col2 * 45 + + col0 AS col2 FROM tab0
----
2130
4552
537

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( col1 - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1203
SELECT DISTINCT * FROM tab2 WHERE ( + CAST( col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1203
SELECT DISTINCT * FROM tab2 WHERE ( + CAST ( col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1204
SELECT DISTINCT * FROM tab2 WHERE col2 = col2 * CAST( col2 AS SIGNED ) + 94
----

skipif mysql # not compatible
query III rowsort label-1204
SELECT DISTINCT * FROM tab2 WHERE col2 = col2 * CAST ( col2 AS INTEGER ) + 94
----

query I rowsort
SELECT DISTINCT col0 + 43 * 58 FROM tab0
----
2509
2581
2591

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL + MIN( DISTINCT + col0 ) - + 45 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + MIN ( DISTINCT + col0 ) - + 45 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT SUM( + 73 ) * 47 AS col0 FROM tab0 AS cor0
----
10293

skipif mysql # not compatible
query I rowsort label-1207
SELECT SUM ( + 73 ) * 47 AS col0 FROM tab0 AS cor0
----
10293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1208
SELECT DISTINCT + COUNT( * ) + - ( + COUNT( * ) ) DIV - 3 FROM tab2 AS cor0 WHERE NOT - 58 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + COUNT ( * ) + - ( + COUNT ( * ) ) / - 3 FROM tab2 AS cor0 WHERE NOT - 58 NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 FROM tab0 AS cor0 WHERE 61 / + 57 - col1 * - 13 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT - 34 + - MIN( - col1 ) AS col1 FROM tab0 WHERE NOT - col1 / + CAST( NULL AS SIGNED ) NOT BETWEEN + ( - col2 ) / ( - 33 ) AND + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT - 34 + - MIN ( - col1 ) AS col1 FROM tab0 WHERE NOT - col1 / + CAST ( NULL AS INTEGER ) NOT BETWEEN + ( - col2 ) / ( - 33 ) AND + 84
----
NULL

query I rowsort
SELECT + col1 * ( + col0 ) AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT - 95 + + COUNT( * ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-1212
SELECT - 95 + + COUNT ( * ) FROM tab2
----
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT 20 + COUNT( * ) col2 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1214
SELECT 20 + COUNT ( * ) col2 FROM tab1
----
23

query I rowsort
SELECT col2 * col2 FROM tab0 WHERE + col1 IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT + 61 + COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 61 + COUNT ( * ) FROM tab0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT + + CAST( + col2 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1217
SELECT + + CAST ( + col2 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

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

query I rowsort
SELECT 8 + col2 AS col0 FROM tab2 cor0
----
31
48
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT DISTINCT - + COUNT( DISTINCT + 67 ) DIV COUNT( * ) + - 83 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - + COUNT ( DISTINCT + 67 ) / COUNT ( * ) + - 83 FROM tab1 AS cor0
----
-83

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 64 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab2 WHERE - col1 = ( + col0 + - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ( COUNT( ( + col1 ) ) ) AS col1 FROM tab1 WHERE NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT ( COUNT ( ( + col1 ) ) ) AS col1 FROM tab1 WHERE NULL > - col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 56 / 67 NOT BETWEEN + col1 * col2 + col1 * + 67 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL ( - + ( + COUNT ( * ) ) ) / 59 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 93 * + 93 FROM tab0
----
8649
8649
8649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT ALL CAST( + - col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT SUM( col0 ) - COUNT( * ) FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-1230
SELECT SUM ( col0 ) - COUNT ( * ) FROM tab1
----
224

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT - COUNT( * ) * + 30 AS col2 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - COUNT ( * ) * + 30 AS col2 FROM tab1
----
-90

query I rowsort
SELECT DISTINCT 8 + 35 AS col1 FROM tab0 AS cor0
----
43

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col1 + - 48 * 20 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * 64 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + + col0 * - 36 IS NULL AND NOT - 16 IS NOT NULL
----

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

query I rowsort
SELECT ALL col0 + 50 AS col0 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( NOT 33 * - col1 < ( - 69 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= 48
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1241
SELECT DISTINCT CAST( - ( 15 ) AS SIGNED ) + SUM( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 96 ) IS NULL
----
141

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT CAST ( - ( 15 ) AS INTEGER ) + SUM ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 96 ) IS NULL
----
141

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col2 AND + 80 + + 9 DIV col1
----
1

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col2 AND + 80 + + 9 / col1
----
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1246
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1246
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - col2 <= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT MAX( 78 ) AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN - - col0 / col0 + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT MAX ( 78 ) AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN - - col0 / col0 + col2 AND NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + + 9 FROM tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE + col0 + + - 58 IS NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1259
SELECT DISTINCT + + col1 + CAST ( - - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + + col2 col0, - col1 FROM tab2 AS cor0
----
117
-77
125
-67
74
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1261
SELECT col0 DIV + + col2 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-1261
SELECT col0 / + + col2 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-84
-90

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 42 NOT BETWEEN + 25 AND NULL
----

query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
52

query I rowsort
SELECT - col1 * col2 FROM tab0 WHERE + col2 / - col0 + - col1 + col0 IN ( col2 / 22 + - 47 )
----

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

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

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE ( 1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT + CAST( + + ( - MIN( - col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT MAX( col2 ) col2 FROM tab0 AS cor0
----
99

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 7 * 67 AND ( + col0 )
----

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

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

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

query I rowsort
SELECT + 24 + col2 FROM tab2 cor0
----
47
64
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 - + - col0 ) < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT + COUNT( * ) - + + 89 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + COUNT ( * ) - + + 89 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + - 66 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - 66 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT 87 + 80 FROM tab1
----
167
167
167

query I rowsort
SELECT ALL 77 + ( - ( 75 ) ) AS col1 FROM tab0
----
2
2
2

query I rowsort
SELECT DISTINCT + 47 * - col2 * + - col2 + + col1 AS col2 FROM tab2
----
158175
24914
75277

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

query II rowsort
SELECT ALL + col2 - - + col1, + col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT - col0 / - 78 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 77 * - col0 AS col2 FROM tab0
----
1155
6699
7469

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 * - + 58 + - col0 * + 87 NOT BETWEEN NULL AND ( NULL )
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT + MIN( ALL - 21 ) * - - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT + MIN ( ALL - 21 ) * - - COUNT ( * ) FROM tab0
----
-63

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 58 ) <= + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - 30 * + col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT MIN( - col1 ) FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN 68 AND ( 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT MIN ( - col1 ) FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN 68 AND ( 65 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT DISTINCT col1 DIV col2 + + col0 + + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
129
151
94

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT col1 / col2 + + col0 + + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
129
151
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1301
SELECT * FROM tab1 WHERE NOT + - CAST( - col1 AS SIGNED ) + + - col2 NOT BETWEEN + 73 * + + col0 - col0 AND col1
----

skipif mysql # not compatible
query III rowsort label-1301
SELECT * FROM tab1 WHERE NOT + - CAST ( - col1 AS INTEGER ) + + - col2 NOT BETWEEN + 73 * + + col0 - col0 AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( - + 0 + + 62, - 14 * + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT 49, ( + - COUNT( * ) ) col2 FROM tab2 WHERE NOT - col1 IS NULL
----
49
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1303
SELECT 49, ( + - COUNT ( * ) ) col2 FROM tab2 WHERE NOT - col1 IS NULL
----
49
-3

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT NULL <= - 91
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < + 6 + - 99
----

query I rowsort
SELECT DISTINCT - 84 * + col1 + - col2 AS col2 FROM tab0
----
-1774
-183
-6851

query I rowsort
SELECT col2 + + col1 - col0 AS col1 FROM tab2
----
28
50
53

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 10 * col1 * - - col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1313
SELECT ALL - 68 * 57 DIV - - 63 + MAX( - col2 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - 68 * 57 / - - 63 + MAX ( - col2 ) FROM tab2 AS cor0
----
-84

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + 89
----

query I rowsort
SELECT - 91 AS col2 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - 34 FROM tab2 WHERE + 37 > - - col0 + - col1 - 38 - col0
----
-34
-34
-34

query II rowsort
SELECT col0 - - - 70 + - col1 + - + 2 * - col0, + col2 * - col1 + - 14 AS col0 FROM tab1
----
156
-3210
180
-309
69
-1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + + col0 - - col2 + + + col1 * + 45 col1, col1 FROM tab0
----
241
1
2782
21
4907
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT - COUNT( * ) * + 29 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 AND 55 + col0 = ( col1 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - COUNT ( * ) * + 29 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 AND 55 + col0 = ( col1 + + col1 )
----
0

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

query I rowsort
SELECT ALL col0 * - 30 + + col0 FROM tab2
----
-1334
-1856
-2175

query I rowsort
SELECT 7 - - col2 AS col1 FROM tab0
----
106
17
54

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab2 WHERE 67 * col0 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL 49 * - COUNT( * ) FROM tab1 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL 49 * - COUNT ( * ) FROM tab1 cor0
----
-147

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 39 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT DISTINCT 16, COUNT( * ) AS col1 FROM tab1 cor0
----
16
3

skipif mysql # not compatible
query II rowsort label-1329
SELECT DISTINCT 16, COUNT ( * ) AS col1 FROM tab1 cor0
----
16
3

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 > + col0 + + 53 + - - col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL - + MAX( ALL + 1 ) * + 74 AS col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL - + MAX ( ALL + 1 ) * + 74 AS col1 FROM tab0 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * + - col0 col2 FROM tab2 AS cor0
----
368
512
600

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT ALL 83 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL 83 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + SUM( ALL col0 ) * + 14 FROM tab1 cor0
----
3178

skipif mysql # not compatible
query I rowsort label-1335
SELECT + SUM ( ALL col0 ) * + 14 FROM tab1 cor0
----
3178

query I rowsort
SELECT col0 * - ( - 0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + 60 * COUNT( * ) AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 60 * COUNT ( * ) AS col2 FROM tab2
----
180

query I rowsort
SELECT - ( - 85 ) * + - col2 * - ( col1 ) * - col0 + col2 + - col2 AS col2 FROM tab0
----
-1552950
-4853925
-816255

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

query I rowsort
SELECT DISTINCT - - col0 + col0 + 56 / + col1 * - 52 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT DISTINCT 16 + - col2 * - CAST( + 69 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4087
4708
6640

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT 16 + - col2 * - CAST ( + 69 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4087
4708
6640

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

query I rowsort
SELECT - - col1 - - - 59 FROM tab1 AS cor0
----
-12
-45
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT ALL - + 56 + + CAST( 91 AS SIGNED ) * + col0 + - col2 FROM tab1 AS cor0
----
4489
7620
8157

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL - + 56 + + CAST ( 91 AS INTEGER ) * + col0 + - col2 FROM tab1 AS cor0
----
4489
7620
8157

query I rowsort
SELECT + col0 - 69 AS col2 FROM tab2 AS cor0
----
-23
-5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE + col2 + + + col0 BETWEEN NULL AND col0 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT DISTINCT CAST( - - 55 AS SIGNED ) AS col1 FROM tab2 cor0
----
55

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT CAST ( - - 55 AS INTEGER ) AS col1 FROM tab2 cor0
----
55

query I rowsort
SELECT DISTINCT - col1 + 13 AS col0 FROM tab1 AS cor0
----
-1
-34
8

query I rowsort
SELECT - col1 * + - 94 + col0 + + + 33 FROM tab1 AS cor0
----
1400
4542
588

query I rowsort
SELECT - col2 * + - 61 AS col1 FROM tab1 cor0 WHERE 18 * + + 98 IS NOT NULL
----
3599
4148
5856

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL - - COUNT( * ) + - 35 FROM tab2 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - - COUNT ( * ) + - 35 FROM tab2 cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT - - SUM( ALL col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - - SUM ( ALL col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0 - col1
----
NULL

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

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

query I rowsort
SELECT - ( + - 50 ) + + - col2 * - col1 FROM tab0 WHERE NULL > - - col2 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT + MIN( ALL - - col0 ) * - + 72 FROM tab1
----
-3672

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT + MIN ( ALL - - col0 ) * - + 72 FROM tab1
----
-3672

query I rowsort
SELECT + col1 * + 58 FROM tab1
----
2726
290
812

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

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

skipif mysql # not compatible
query I rowsort label-1360
SELECT + - ( + MIN ( + 19 ) ) AS col1 FROM tab2 AS cor0
----
-19

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

skipif mysql # not compatible
query II rowsort label-1361
SELECT - 1 * 36 AS col0, + COUNT ( * ) FROM tab2 cor0
----
-36
3

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

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

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

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

query I rowsort
SELECT + - ( + 23 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

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

query I rowsort
SELECT DISTINCT - col2 * col1 - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
-2231
-5640
-8236

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1368
SELECT + col0 + + 84 DIV col2 AS col2, col1 + - 74 + - col0 AS col0 FROM tab1 cor0
----
51
-111
86
-154
92
-118

skipif mysql # not compatible
query II rowsort label-1368
SELECT + col0 + + 84 / col2 AS col2, col1 + - 74 + - col0 AS col0 FROM tab1 cor0
----
51
-111
86
-154
92
-118

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 22 col2 FROM tab2 AS cor0
----
45
62
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1371
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1371
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 1 * - 1 * 94 AS col0 FROM tab1
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT col0 / col2 + col1 col0 FROM tab2 WHERE NOT - col1 >= + CAST( NULL AS SIGNED ) * - + col0
----

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

query II rowsort
SELECT ( + - ( - col1 ) ) * 95 AS col1, col1 * - + 44 FROM tab2
----
4845
-2244
6365
-2948
7315
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + MAX( ALL + col0 ) * + 46 AS col2 FROM tab2
----
3450

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + MAX ( ALL + col0 ) * + 46 AS col2 FROM tab2
----
3450

query I rowsort
SELECT DISTINCT 90 * - 55 AS col2 FROM tab1
----
-4950

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( 83 - + col2, col2 * - + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT 90 * - + MIN( + 26 ) AS col1 FROM tab2
----
-2340

skipif mysql # not compatible
query I rowsort label-1378
SELECT 90 * - + MIN ( + 26 ) AS col1 FROM tab2
----
-2340

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * + - col2 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1381
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, col0 * + 75 * - - 1 / + 58 + + col2, col2, 41 / + 8 + - CAST( ( ( + 83 ) ) AS SIGNED ) * - col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-1381
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, col0 * + 75 * - - 1 / + 58 + + col2, col2, 41 / + 8 + - CAST ( ( ( + 83 ) ) AS INTEGER ) * - col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT - - ( col1 ) * col2 * - col1 + - 3 + - - ( - col0 ) - + + col2 + col0 DIV - + col0 + + col0 * - col1 FROM tab0 AS cor0
----
-309648
-396
-6338

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - - ( col1 ) * col2 * - col1 + - 3 + - - ( - col0 ) - + + col2 + col0 / - + col0 + + col0 * - col1 FROM tab0 AS cor0
----
-309648
-396
-6338

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

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

query III rowsort
SELECT * FROM tab2 WHERE - - 76 > ( - + col2 / - col2 - + - col0 )
----
46
51
23
64
77
40

query I rowsort
SELECT + col2 * - col0 FROM tab1 WHERE NULL <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT col1 DIV + col2 + - col2 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-1386
SELECT col1 / + col2 + - col2 FROM tab0
----
-46
-8
-99

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

query II rowsort
SELECT - col0 + - + col1 AS col2, col1 FROM tab1
----
-138
47
-65
14
-90
5

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

query I rowsort
SELECT DISTINCT + + 52 FROM tab2 cor0
----
52

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - col2 * + col0 IS NOT NULL AND NOT - col2 = + - 28 * + + ( + + 11 ) * + 16 * + col1 - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT COUNT( DISTINCT + - 47 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1394
SELECT COUNT ( DISTINCT + - 47 ) AS col2 FROM tab1
----
1

query II rowsort
SELECT + col0 * + ( + + col1 ) AS col2, - col0 AS col1 FROM tab2
----
2346
-46
4928
-64
5025
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT ALL + CAST( - + 17 AS SIGNED ) * - 29 * - col1 AS col2 FROM tab0
----
-10353
-39933
-493

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + CAST ( - + 17 AS INTEGER ) * - 29 * - col1 AS col2 FROM tab0
----
-10353
-39933
-493

query I rowsort
SELECT DISTINCT 8 * - + col2 FROM tab2
----
-184
-320
-464

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

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

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

query I rowsort
SELECT - + 45 / - + ( + - 31 ) FROM tab1 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1401
SELECT ALL COUNT( * ), - 34 AS col1 FROM tab2 cor0
----
3
-34

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL COUNT ( * ), - 34 AS col1 FROM tab2 cor0
----
3
-34

query I rowsort
SELECT - 92 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT 77 + - + 62 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + col2 * col2 + 3 col1 FROM tab2 AS cor0
----
120003
252303
39678

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT ( + MAX( DISTINCT 80 ) ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT ( + MAX ( DISTINCT 80 ) ) FROM tab1
----
80

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1406
SELECT + - ( COUNT ( * ) ) col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 * - 31 col0, ( + + 51 ) + - + col2 AS col0 FROM tab2 AS cor0
----
-1798
-7
-1798
11
-1798
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT - 26 * COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - 26 * COUNT ( * ) FROM tab2 AS cor0
----
-78

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1411
SELECT ALL - CAST( + 24 AS SIGNED ) * + col0 * - CAST( NULL AS DECIMAL ) * - + col0 * 58 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL - CAST ( + 24 AS INTEGER ) * + col0 * - CAST ( NULL AS REAL ) * - + col0 * 58 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 33 * - + col1 FROM tab1
----
1551
165
462

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * - + 90 / - 12 >= + 46
----
85
5
59

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

query I rowsort
SELECT DISTINCT - 83 * 99 AS col2 FROM tab0
----
-8217

query I rowsort
SELECT DISTINCT + 39 * col1 FROM tab0
----
3159
39
819

onlyif mysql # DIV for integer division: 
query II rowsort label-1417
SELECT DISTINCT col0 * col1 * + - col1 + + + col1 DIV - col1 AS col1, col1 * + 30 * - 94 AS col0 FROM tab1
----
-201020
-132540
-2126
-14100
-9997
-39480

skipif mysql # not compatible
query II rowsort label-1417
SELECT DISTINCT col0 * col1 * + - col1 + + + col1 / - col1 AS col1, col1 * + 30 * - 94 AS col0 FROM tab1
----
-201020
-132540
-2126
-14100
-9997
-39480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL - COUNT( * ) * + 58 col1 FROM tab2
----
-174

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - 71 * + col0 + col0 col1 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT - 65 * + - 40 FROM tab0 AS cor0
----
2600
2600
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + + 69 + 58 * + MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-4629

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + + 69 + 58 * + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-4629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT DISTINCT CAST( + col2 AS SIGNED ) - - - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT CAST ( + col2 AS INTEGER ) - - - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1425
SELECT DISTINCT + col2, + 90 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1425
SELECT DISTINCT + col2, + 90 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

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

skipif mysql # not compatible
query II rowsort label-1426
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT + col0 + + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-1428
SELECT + col0 + + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL - + MIN( ALL + + 2 ) AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - + MIN ( ALL + + 2 ) AS col2 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + - 61 * + col0 AS col1 FROM tab1 AS cor0
----
-3111
-5185
-5551

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

skipif mysql # not compatible
query I rowsort label-1431
SELECT - MAX ( - + col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1432
SELECT + CAST( + 31 AS SIGNED ) DIV + - 20 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1432
SELECT + CAST ( + 31 AS INTEGER ) / + - 20 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL - 73, col0 * + - col2 + - 48 AS col2 FROM tab0 AS cor0
----
-73
-753
-73
-918
-73
-9651

query I rowsort
SELECT ALL - + col2 * - + col2 FROM tab2 cor0
----
1600
3364
529

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

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

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

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT SUM ( DISTINCT + - 99 ) AS col0 FROM tab0
----
-99

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - 10 * - + 83 * MIN( col0 ) + + + 62 AS col0 FROM tab1 cor0
----
42392

skipif mysql # not compatible
query I rowsort label-1441
SELECT - 10 * - + 83 * MIN ( col0 ) + + + 62 AS col0 FROM tab1 cor0
----
42392

query I rowsort
SELECT DISTINCT - 17 + col1 AS col1 FROM tab0 AS cor0
----
-16
4
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT 63 + - col1 + + ( - 96 ) * + + 22 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
171054
2174
44394

skipif mysql # not compatible
query I rowsort label-1444
SELECT 63 + - col1 + + ( - 96 ) * + + 22 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
171054
2174
44394

query I rowsort
SELECT ALL col1 + - 68 AS col2 FROM tab1 cor0
----
-21
-54
-63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT ALL + - 9 * 5 + COUNT( * ) AS col0, + SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-42
227

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL + - 9 * 5 + COUNT ( * ) AS col0, + SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-42
227

query II rowsort
SELECT DISTINCT col0 * + col2 AS col2, + col0 * + - col1 + - + 46 FROM tab2
----
1058
-2392
2560
-4974
4350
-5071

query I rowsort
SELECT - 97 * - col0 * + col0 FROM tab1
----
252297
700825
803257

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - - COUNT( * ) FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE NULL <= NULL
----
0

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

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

query I rowsort
SELECT col0 * + 93 FROM tab1
----
4743
7905
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT SUM( 88 ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-1453
SELECT SUM ( 88 ) AS col1 FROM tab2
----
264

query I rowsort
SELECT col2 * + + 17 FROM tab1
----
1003
1156
1632

query I rowsort
SELECT DISTINCT + 3 * + col2 - - - col1 FROM tab1
----
157
172
274

query I rowsort
SELECT ALL 83 * - 27 FROM tab0
----
-2241
-2241
-2241

query I rowsort
SELECT DISTINCT 24 * + - col2 + col2 AS col1 FROM tab0 cor0
----
-1081
-2277
-230

query I rowsort
SELECT - 82 * col2 AS col1 FROM tab0 AS cor0 WHERE col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 NOT BETWEEN NULL AND + 93
----

query I rowsort
SELECT ALL col2 - col0 * 41 FROM tab1 cor0
----
-1995
-3426
-3663

query I rowsort
SELECT + col1 * + - 86 + + col2 * + 61 AS col0 FROM tab2
----
-2224
-2983
-4182

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 + - + 29 IS NULL
----

query I rowsort
SELECT col0 * ( + 53 ) FROM tab0
----
4611
5141
795

query I rowsort
SELECT + - 73 AS col1 FROM tab1 cor0
----
-73
-73
-73

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

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT - - SUM( - col2 ) * - 70 + 78 AS col1 FROM tab1 AS cor0
----
15688

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT - - SUM ( - col2 ) * - 70 + 78 AS col1 FROM tab1 AS cor0
----
15688

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

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

query II rowsort
SELECT ALL - 85 + 14 AS col0, - col2 / - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL + - 95 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + - 95 / + col1 FROM tab2 AS cor0
----
-1
-1
-1

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

skipif mysql # not compatible
query I rowsort label-1471
SELECT MAX ( - 86 ) AS col1 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT + ( + col1 ) FROM tab1 WHERE NOT + + col2 >= 12
----

query II rowsort
SELECT + col1 AS col2, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT 63 * + COUNT( * ) AS col1 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-1474
SELECT 63 * + COUNT ( * ) AS col1 FROM tab1
----
189

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT + 74, + COUNT( * ) col1 FROM tab2
----
74
3

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

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - - 39 <> - 93
----
15
87
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 31 < NULL
----

query I rowsort
SELECT + 60 + - - col2 FROM tab1 AS cor0
----
119
128
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - COUNT( * ) + + 45 AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1481
SELECT - COUNT ( * ) + + 45 AS col2 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT + MAX( + 79 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
79

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT + MAX ( + 79 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
79

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col0 col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT - col0 + col1 + col0 AS col2, col1 * - + ( - - 88 ) FROM tab1 AS cor0
----
14
-1232
47
-4136
5
-440

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

query I rowsort
SELECT - + 57 + col0 FROM tab0 AS cor0
----
-42
30
40

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT col2 + + - col2 / - col2 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL 53 - - + 46 AS col1 FROM tab1
----
99
99
99

query I rowsort
SELECT ALL 93 + - col0 AS col2 FROM tab1
----
2
42
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 95 col0, 12 FROM tab0
----
95
12

query I rowsort
SELECT + col2 * + + col1 + - col1 FROM tab1
----
1330
290
3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 27 - - + col0 * + col1 col1 FROM tab2
----
3588
6656
7050

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT ALL 71, + COUNT( + ( - + col0 ) ) * - COUNT( * ) * - - 67 * - 7 AS col2 FROM tab0
----
71
4221

skipif mysql # not compatible
query II rowsort label-1497
SELECT ALL 71, + COUNT ( + ( - + col0 ) ) * - COUNT ( * ) * - - 67 * - 7 AS col2 FROM tab0
----
71
4221

query I rowsort
SELECT ALL + 56 + col0 FROM tab2
----
102
120
131

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

query I rowsort
SELECT ALL 28 * - col0 + + col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-1377
-2295
-2457

query II rowsort
SELECT 47 AS col0, 9 FROM tab0 AS cor0
----
47
9
47
9
47
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL - 27 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - 27 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT DISTINCT + col2 * + - 52 - col0 + + col0 DIV - + col2 FROM tab1
----
-3154
-3628
-5043

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + col2 * + - 52 - col0 + + col0 / - + col2 FROM tab1
----
-3154
-3628
-5043

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1504
SELECT COUNT( * ) * - - 50 AS col1, COUNT( * ) DIV + COUNT( * ) FROM tab0
----
150
1

skipif mysql # not compatible
query II rowsort label-1504
SELECT COUNT ( * ) * - - 50 AS col1, COUNT ( * ) / + COUNT ( * ) FROM tab0
----
150
1

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

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

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

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

query I rowsort
SELECT - 96 * - 25 * - - col0 FROM tab0 cor0
----
208800
232800
36000

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

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

query I rowsort
SELECT DISTINCT - 77 FROM tab1 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT MAX( + - 18 ) * 5 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1511
SELECT MAX ( + - 18 ) * 5 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - col1 * 79 * + 15 AS col2 FROM tab2 AS cor0
----
-60435
-79395
-91245

query I rowsort
SELECT + 81 * - col1 AS col1 FROM tab1 AS cor0
----
-1134
-3807
-405

query I rowsort
SELECT ALL - ( - col0 ) * + col2 * col2 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT + + 36 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT + col1 + + 54, col0 FROM tab0 WHERE NOT - col1 IS NULL
----
135
15
55
97
75
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL SUM( - + 71 ) FROM tab0 WHERE NULL >= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL SUM ( - + 71 ) FROM tab0 WHERE NULL >= + col1
----
NULL

query II rowsort
SELECT col1, ( + col1 ) + 92 AS col2 FROM tab0
----
1
93
21
113
81
173

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT - CAST( NULL AS SIGNED ) / + + col2 + - - 8 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT - CAST ( NULL AS INTEGER ) / + + col2 + - - 8 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 62 + - + 18 AS col2 FROM tab2 AS cor0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) < + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - + COUNT( * ) + - 47 AS col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1525
SELECT - + COUNT ( * ) + - 47 AS col0 FROM tab0 AS cor0
----
-50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT - col2 DIV - col1 + + + 81 * - col0 + 64 FROM tab1 AS cor0
----
-4061
-6810
-7306

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - col2 / - col1 + + + 81 * - col0 + 64 FROM tab1 AS cor0
----
-4061
-6810
-7306

query II rowsort
SELECT ALL + col0 + - col1 AS col0, 47 FROM tab1 AS cor0
----
37
47
44
47
80
47

query I rowsort
SELECT ALL - 39 - - 89 FROM tab0 AS cor0
----
50
50
50

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

query I rowsort
SELECT ALL 50 + - col1 * - + col0 FROM tab2
----
2396
4978
5075

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1533
SELECT ALL + CAST( + 51 AS SIGNED ) - + col2, col2 FROM tab1
----
-17
68
-45
96
-8
59

skipif mysql # not compatible
query II rowsort label-1533
SELECT ALL + CAST ( + 51 AS INTEGER ) - + col2, col2 FROM tab1
----
-17
68
-45
96
-8
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col1 + + - 57 + - - 92 - col0 * - - col2 AND + ( + 45 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + 99 ) AS col1, + col2 * - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT - SUM( ALL - 68 ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-1537
SELECT - SUM ( ALL - 68 ) FROM tab1
----
204

query I rowsort
SELECT ( - ( - + col0 ) ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT COUNT( * ) * - 23 AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT COUNT ( * ) * - 23 AS col1 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT + MIN( DISTINCT - + ( - 92 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT + MIN ( DISTINCT - + ( - 92 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

query II rowsort
SELECT - + col1, col2 FROM tab2 AS cor0 WHERE NOT - col0 / + col2 IS NULL
----
-51
23
-67
58
-77
40

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col0 * - col1 AS col0, 46 * + col1 * + 97 FROM tab0
----
-1215
361422
-1827
93702
-97
4462

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

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT SUM( - - col0 ) * + 4 AS col2 FROM tab1
----
908

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT SUM ( - - col0 ) * + 4 AS col2 FROM tab1
----
908

query I rowsort
SELECT col0 + + 24 + + 7 FROM tab2
----
106
77
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT ALL ( col1 ) DIV - + 98 * + col2 - + + 2 AS col1 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL ( col1 ) / - + 98 * + col2 - + + 2 AS col1 FROM tab2
----
-2
-2
-2

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT + col0 + ( - - col1 ) * - 78 AS col0 FROM tab0 cor0
----
-1551
-6303
19

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

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

query I rowsort
SELECT ALL - - col1 + 13 AS col2 FROM tab1 AS cor0
----
18
27
60

query I rowsort
SELECT ALL + + 18 * col1 - + 18 FROM tab0 AS cor0
----
0
1440
360

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT DISTINCT + MAX( DISTINCT + col1 ) - 80 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT + MAX ( DISTINCT + col1 ) - 80 FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT - COUNT( + ( + 44 ) ) * - - 88 + + 57 FROM tab2 WHERE - col2 <= NULL
----
57

skipif mysql # not compatible
query I rowsort label-1559
SELECT - COUNT ( + ( + 44 ) ) * - - 88 + + 57 FROM tab2 WHERE - col2 <= NULL
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) - + - 33 AS col2 FROM tab0 WHERE + col1 NOT BETWEEN - 56 + + + col1 AND NULL
----
33

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) - + - 33 AS col2 FROM tab0 WHERE + col1 NOT BETWEEN - 56 + + + col1 AND NULL
----
33

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1562
SELECT ALL col0 / + col2 col2 FROM tab2
----
1
1
2

query II rowsort
SELECT col2 AS col1, 54 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
59
211
68
2470
96
660

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1565
SELECT DISTINCT - + COUNT( * ) AS col0, ( - + CAST( NULL AS DECIMAL ) ) / - 86 - + COUNT( * ) + + - COUNT( * ) + + 57 - ( + 79 ) col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1565
SELECT DISTINCT - + COUNT ( * ) AS col0, ( - + CAST ( NULL AS REAL ) ) / - 86 - + COUNT ( * ) + + - COUNT ( * ) + + 57 - ( + 79 ) col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL + ( + ( - col1 ) ) * - col1 + - + col0 AS col2 FROM tab2 AS cor0
----
2555
4414
5865

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1568
SELECT ALL CAST( - col1 AS SIGNED ) * col1, col0 AS col1 FROM tab1
----
-196
51
-2209
91
-25
85

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL CAST ( - col1 AS INTEGER ) * col1, col0 AS col1 FROM tab1
----
-196
51
-2209
91
-25
85

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

query I rowsort
SELECT DISTINCT 54 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT 17 * + 5 FROM tab1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT DISTINCT - 45 DIV col0 AS col0 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT - 45 / col0 AS col0 FROM tab0
----
-3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - + col0 - - col0 * 98 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT + col2 FROM tab0 WHERE NOT ( NULL ) >= CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1577
SELECT + col2 FROM tab0 WHERE NOT ( NULL ) >= CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1580
SELECT ALL * FROM tab0 WHERE NOT NULL = - col1 + - CAST( NULL AS SIGNED ) / + + col1
----

skipif mysql # not compatible
query III rowsort label-1580
SELECT ALL * FROM tab0 WHERE NOT NULL = - col1 + - CAST ( NULL AS INTEGER ) / + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT ALL CAST( - 59 AS SIGNED ) FROM tab2
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL CAST ( - 59 AS INTEGER ) FROM tab2
----
-59
-59
-59

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

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

query I rowsort
SELECT ALL - 5 + - - 13 * - col2 + - 34 FROM tab1 AS cor0
----
-1287
-806
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT DISTINCT + 49 * + + ( + + COUNT( * ) ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + 49 * + + ( + + COUNT ( * ) ) FROM tab2
----
147

query I rowsort
SELECT + 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT 24 * - + COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT 24 * - + COUNT ( * ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 77 + + MIN( + - 8 ) AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 77 + + MIN ( + - 8 ) AS col2 FROM tab2
----
-85

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

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT COUNT ( * ) / + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 WHERE ( 37 IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL MAX( ( 33 ) ) * - COUNT( * ) * + COUNT( * ) - - COUNT( * ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL MAX ( ( 33 ) ) * - COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
-294

query I rowsort
SELECT col1 - - 5 AS col0 FROM tab0
----
26
6
86

query I rowsort
SELECT 31 - - + col0 FROM tab1
----
116
122
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT col2 - + col2 + col1 DIV ( - 17 ) * 59 * + - 96 FROM tab0
----
0
22656
5664

skipif mysql # not compatible
query I rowsort label-1595
SELECT col2 - + col2 + col1 / ( - 17 ) * 59 * + - 96 FROM tab0
----
0
22656
5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 6 FROM tab1
----
14
6
47
6
5
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT ALL 97 DIV + - col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL 97 / + - col2 FROM tab2
----
-1
-2
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL COUNT( DISTINCT ( - ( + col1 ) ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL COUNT ( DISTINCT ( - ( + col1 ) ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + 84
----

query II rowsort
SELECT ALL - 10 AS col1, - col1 FROM tab2
----
-10
-51
-10
-67
-10
-77

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1604
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1604
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 51 + col1 + - - col1 IS NULL
----
-10
-47
-99

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 60 col2 FROM tab2 AS cor0
----
2
20
37

query I rowsort
SELECT ALL + 51 + - col1 FROM tab2 AS cor0
----
-16
-26
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT ( - CAST( - MAX( ALL + ( + + col2 ) ) AS SIGNED ) ) col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1610
SELECT ( - CAST ( - MAX ( ALL + ( + + col2 ) ) AS INTEGER ) ) col0 FROM tab0 cor0
----
99

query I rowsort
SELECT - col0 * + + col1 * 2 FROM tab0
----
-194
-2430
-3654

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col0 + ( - + ( ( - col2 ) ) ) + - + col2 + + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT - 45 * + + 84 + - col1 AS col2 FROM tab2 AS cor0
----
-3831
-3847
-3857

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT DISTINCT col2 DIV - - col0 + - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT col2 / - - col0 + - col2 FROM tab2
----
-23
-40
-58

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

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

query I rowsort
SELECT + col1 * 61 + - + col1 FROM tab2 AS cor0
----
3060
4020
4620

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL - - col1 * + ( + col1 ) * col0 DIV - ( + - ( + + col1 ) ) + + col2 + - 28 FROM tab1 AS cor0
----
4317
456
782

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - - col1 * + ( + col1 ) * col0 / - ( + - ( + + col1 ) ) + + col2 + - 28 FROM tab1 AS cor0
----
4317
456
782

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1624
SELECT 38 + COUNT ( * ) FROM tab0 cor0
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-1625
SELECT DISTINCT - col0 * col1 DIV - col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

skipif mysql # not compatible
query II rowsort label-1625
SELECT DISTINCT - col0 * col1 / - col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query I rowsort
SELECT ALL - 99 * - col1 FROM tab2
----
5049
6633
7623

query II rowsort
SELECT DISTINCT 52 * + col2, col1 FROM tab1
----
3068
5
3536
47
4992
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL 24 * + COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 24 * + COUNT ( * ) FROM tab2
----
72

query I rowsort
SELECT - ( - 20 ) AS col1 FROM tab0
----
20
20
20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT MAX( ALL + 65 ) + + 72 + - 37 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
100

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT MAX ( ALL + 65 ) + + 72 + - 37 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1633
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1633
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9

query I rowsort
SELECT + 58 + col1 FROM tab1
----
105
63
72

query I rowsort
SELECT + ( + 83 ) + + col1 AS col2 FROM tab2 cor0
----
134
150
160

query I rowsort
SELECT + col0 + ( + + 48 ) + + - col1 AS col2 FROM tab1 AS cor0
----
128
85
92

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

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

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

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

query II rowsort
SELECT ALL - 73, ( col1 ) FROM tab0
----
-73
1
-73
21
-73
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT + ( + ( + 82 ) ) DIV - COUNT( * ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1642
SELECT + ( + ( + 82 ) ) / - COUNT ( * ) AS col1 FROM tab0
----
-27

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

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

query II rowsort
SELECT ALL - - col1 * col1 * - col2 + + 51, col2 AS col1 FROM tab2 AS cor0
----
-237109
40
-260311
58
-59772
23

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> + 90 * - 12
----

query I rowsort
SELECT + 63 * - + col2 FROM tab1
----
-3717
-4284
-6048

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

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, - 35 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1650
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - CAST( + 84 AS DECIMAL ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - CAST ( + 84 AS REAL ) IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT col2, + col2 * + + col0 * 23 AS col2 FROM tab0
----
10
20010
47
16215
99
220869

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

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

query II rowsort
SELECT - 57, col0 AS col1 FROM tab0
----
-57
15
-57
87
-57
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1654
SELECT SUM ( DISTINCT + col0 ) col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT - + 80 * + col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

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

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

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

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

query I rowsort
SELECT + 2 * col1 - 6 FROM tab0
----
-4
156
36

query I rowsort
SELECT DISTINCT 51 + 30 AS col2 FROM tab1
----
81

query I rowsort
SELECT ALL + col1 + col2 * - col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT - 83 AS col0 FROM tab0 WHERE - 48 = NULL
----

query I rowsort
SELECT 7 + + 12 FROM tab1
----
19
19
19

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 * ( 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT COUNT( * ) + + 31 AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1666
SELECT COUNT ( * ) + + 31 AS col2 FROM tab2
----
34

query I rowsort
SELECT 94 FROM tab2 WHERE col1 > - col1 * + col2
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT DISTINCT + MIN( DISTINCT - 4 ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + MIN ( DISTINCT - 4 ) AS col1 FROM tab1
----
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <= - 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 * + col1 col2 FROM tab2
----
612
804
924

query I rowsort
SELECT 49 + + ( ( col2 ) ) FROM tab0
----
148
59
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT ( NULL ) > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT 86 + - col0 DIV - 66 AS col1 FROM tab1
----
86
87
87

skipif mysql # not compatible
query I rowsort label-1675
SELECT 86 + - col0 / - 66 AS col1 FROM tab1
----
86
87
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT + 53 * + MAX( DISTINCT + ( 14 ) * 36 ) FROM tab1
----
26712

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT + 53 * + MAX ( DISTINCT + ( 14 ) * 36 ) FROM tab1
----
26712

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 27 + col0 FROM tab1
----
1360
220
429

query I rowsort
SELECT DISTINCT - col1 - - col2 * col1 FROM tab2
----
1122
3003
3819

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT DISTINCT - 11 DIV - 70 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - 11 / - 70 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 47 + 80 * col0 AS col0 FROM tab1
----
4127
6847
7327

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * ( - 47 * - 24 ) col2 FROM tab0
----
37224
37224
37224

query I rowsort
SELECT DISTINCT + 58 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - SUM( ALL 92 ) AS col0 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1686
SELECT - SUM ( ALL 92 ) AS col0 FROM tab1 AS cor0
----
-276

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

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

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

query I rowsort
SELECT ALL - 9 * col1 + + col2 FROM tab2 AS cor0
----
-436
-545
-653

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT ALL - col0 DIV - col0 + - col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - col0 / - col0 + - col2 FROM tab0
----
-46
-9
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT 53 DIV col1 FROM tab1 WHERE ( 1 DIV col1 ) NOT BETWEEN ( + 86 ) AND 31 DIV col0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-1692
SELECT 53 / col1 FROM tab1 WHERE ( 1 / col1 ) NOT BETWEEN ( + 86 ) AND 31 / col0
----
1
10
3

query I rowsort
SELECT - 57 * col0 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + 22 / col1 + + col1
----

query I rowsort
SELECT + 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT - COUNT( * ) * 31 AS col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - COUNT ( * ) * 31 AS col2 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( + col0 / - 70 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT + COUNT( * ) * MIN( ALL - 44 ) AS col2 FROM tab0 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1699
SELECT + COUNT ( * ) * MIN ( ALL - 44 ) AS col2 FROM tab0 cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT col0 + col0 DIV col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1700
SELECT col0 + col0 / col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
16
88
98

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

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

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

query I rowsort
SELECT + 56 * + 44 FROM tab0 AS cor0
----
2464
2464
2464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL - MIN( DISTINCT - + 79 ) * - COUNT( * ) AS col2 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - MIN ( DISTINCT - + 79 ) * - COUNT ( * ) AS col2 FROM tab0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 30 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 41 + 37 ) >= ( col1 )
----
15
81
47

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

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

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

query I rowsort
SELECT ALL - col2 * - col1 * + col1 FROM tab0 AS cor0
----
308367
4410
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT DISTINCT - - col0 DIV - + 24 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT - - col0 / - + 24 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT 3 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT 3 * col2 IS NULL
----
3

query I rowsort
SELECT ALL 32 * - - col0 FROM tab1
----
1632
2720
2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1716
SELECT DISTINCT + 88 DIV - SUM( + + 27 ) col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1716
SELECT DISTINCT + 88 / - SUM ( + + 27 ) col2 FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT + + col2 + - - col2 AS col2 FROM tab1 AS cor0
----
118
136
192

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

query I rowsort
SELECT DISTINCT + col2 * + 18 * col0 * 21 + ( col0 ) AS col1 FROM tab2 AS cor0
----
1644375
399970
967744

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT ALL + MAX( + 29 ) AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + MAX ( + 29 ) AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - 51 * col2 FROM tab2
----
-1173
-2040
-2958

query II rowsort
SELECT ALL col0 - - col2 AS col1, + 63 FROM tab2
----
104
63
133
63
69
63

query I rowsort
SELECT ( - + col1 ) - col0 AS col1 FROM tab1
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17 + + col1, - 93 + + + 37 * + col0 col0 FROM tab0
----
18
3496
38
3126
98
462

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT 14 - - - MIN( 6 ) * + COUNT( * ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-1733
SELECT 14 - - - MIN ( 6 ) * + COUNT ( * ) AS col1 FROM tab1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT ALL + MAX( - col0 ) DIV + COUNT( * ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + MAX ( - col0 ) / + COUNT ( * ) FROM tab1
----
-17

query I rowsort
SELECT col1 * - 3 - + col0 AS col1 FROM tab0
----
-100
-150
-258

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

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * - 1 >= - 77 / 64
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( - 60 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2, 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( + ( ( - CAST( NULL AS SIGNED ) ) ) * - col1 <= 62 )
----

skipif mysql # not compatible
query I rowsort label-1740
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( + ( ( - CAST ( NULL AS INTEGER ) ) ) * - col1 <= 62 )
----

query I rowsort
SELECT ALL - 93 * - 20 * - col1 + 74 - col2 AS col2 FROM tab0 AS cor0
----
-150633
-1885
-38996

query I rowsort
SELECT DISTINCT ( + 39 ) + - 41 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT COUNT( * ) + + 73 FROM tab2 AS cor0 WHERE NOT col2 * - col0 * - col2 IN ( + ( - col2 ) )
----
76

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT COUNT ( * ) + + 73 FROM tab2 AS cor0 WHERE NOT col2 * - col0 * - col2 IN ( + ( - col2 ) )
----
76

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1746
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 * + + 20 ) <= + 85 * + - col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1746
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 * + + 20 ) <= + 85 * + - col2 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 50 * 96 FROM tab1 AS cor0
----
4800
4800
4800

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1749
SELECT * FROM tab1 cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1749
SELECT * FROM tab1 cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 86 * ( + + ( 48 ) ) AS col0 FROM tab2 AS cor0
----
4128
4128
4128

query II rowsort
SELECT col2 AS col2, + col1 * 80 AS col1 FROM tab2
----
23
4080
40
6160
58
5360

query II rowsort
SELECT 91, + col1 AS col2 FROM tab1
----
91
14
91
47
91
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 97 * + COUNT( * ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-1753
SELECT 97 * + COUNT ( * ) FROM tab2
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 39 ) col1 FROM tab2 WHERE NOT 37 * - col0 + 51 + 47 IS NULL
----
39

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 AS col0 FROM tab2
----
51
46
67
75
77
64

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 + - ( - 3 ) NOT IN ( + col0 )
----

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

query I rowsort
SELECT + col0 * col1 + - - col0 - - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4415
515
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL - SUM( DISTINCT 91 ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL - SUM ( DISTINCT 91 ) AS col1 FROM tab2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT COUNT( + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT COUNT ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT + - COUNT( * ) + + + 34 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1763
SELECT + - COUNT ( * ) + + + 34 FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT 30 * + col0 FROM tab1 AS cor0 WHERE NOT - col2 * 88 / - CAST( - col0 AS SIGNED ) + + 39 IS NULL OR NULL IS NOT NULL
----
1530
2550
2730

skipif mysql # not compatible
query I rowsort label-1764
SELECT 30 * + col0 FROM tab1 AS cor0 WHERE NOT - col2 * 88 / - CAST ( - col0 AS INTEGER ) + + 39 IS NULL OR NULL IS NOT NULL
----
1530
2550
2730

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

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

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - COUNT( * ) * + 56 * + 3 AS col1 FROM tab0
----
-504

skipif mysql # not compatible
query I rowsort label-1767
SELECT - COUNT ( * ) * + 56 * + 3 AS col1 FROM tab0
----
-504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT MAX( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT MAX ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT - 21 / + SUM( DISTINCT - + ( + col0 ) ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT - 21 / + SUM ( DISTINCT - + ( + col0 ) ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT DISTINCT + col2 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + col2 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-23
-26
45

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

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

query I rowsort
SELECT DISTINCT + - col2 + + - 88 AS col2 FROM tab0 AS cor0
----
-135
-187
-98

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

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

query I rowsort
SELECT + 0 + + 6 FROM tab1 AS cor0 WHERE + ( + col1 ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT 28 DIV + + 42 + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1776
SELECT 28 / + + 42 + col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT col1 + col2 * + col2 AS col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT DISTINCT + - 58 FROM tab2 WHERE NULL > + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL - col2 FROM tab0 WHERE NOT ( ( + col2 ) + + 24 + - + 3 * + CAST( col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - col2 FROM tab0 WHERE NOT ( ( + col2 ) + + 24 + - + 3 * + CAST ( col2 AS INTEGER ) ) IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( - ( - col1 ) )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE ( - 47 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 87 * + 70 AS col1 FROM tab0 AS cor0
----
-6090

query I rowsort
SELECT 87 * + - 15 AS col1 FROM tab2 AS cor0
----
-1305
-1305
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL + SUM( DISTINCT + + 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + SUM ( DISTINCT + + 86 ) FROM tab1
----
86

query I rowsort
SELECT col2 * - 62 * + 76 FROM tab2 AS cor0
----
-108376
-188480
-273296

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col2 ) + + 3 * + col1 * - - col1 / + col2 - + col1 = ( col2 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 col0, col0 col0 FROM tab2
----
-17
46
-17
64
-17
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT 98 AS col1, MIN( + - 70 ) AS col0 FROM tab1
----
98
-70

skipif mysql # not compatible
query II rowsort label-1797
SELECT 98 AS col1, MIN ( + - 70 ) AS col0 FROM tab1
----
98
-70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1800
SELECT ALL + col2 AS col0, CAST( col1 AS SIGNED ) - + col1, - col0 AS col2 FROM tab0
----
9 values hashing to 7a728b91677c22daefc74c478d40195f

skipif mysql # not compatible
query III rowsort label-1800
SELECT ALL + col2 AS col0, CAST ( col1 AS INTEGER ) - + col1, - col0 AS col2 FROM tab0
----
9 values hashing to 7a728b91677c22daefc74c478d40195f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab2 WHERE - + col0 - - ( + 0 ) * + col0 * - 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL + MAX( ALL 48 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
48

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + MAX ( ALL 48 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
48

query I rowsort
SELECT + 98 * + col0 * + + 65 + - 87 AS col0 FROM tab2 cor0
----
292933
407593
477663

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL COUNT( * ) * - 3 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL COUNT ( * ) * - 3 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT DISTINCT + + col0 + - + col2 DIV - col0 + col2 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + + col0 + - + col2 / - col0 + col2 FROM tab2 AS cor0
----
104
133
69

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT DISTINCT 89 DIV + col0 - col1 AS col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT 89 / + col0 - col1 AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1809
SELECT - 93 * col1 - + ( 29 ) * col1 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - 93 * col1 - + ( 29 ) * col1 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT DISTINCT ( 80 ) * CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT ( 80 ) * CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 14 / + - col0 FROM tab1 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL - 15 * + - MIN( DISTINCT + - 63 ) col2 FROM tab0 AS cor0
----
-945

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT ALL - 15 * + - MIN ( DISTINCT + - 63 ) col2 FROM tab0 AS cor0
----
-945

query I rowsort
SELECT ALL - col1 * + - 9 AS col1 FROM tab0 AS cor0
----
189
729
9

query I rowsort
SELECT ALL - col0 * + - ( + 70 ) AS col0 FROM tab2 AS cor0
----
3220
4480
5250

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

query II rowsort
SELECT DISTINCT + 8, 45 + - 58 AS col2 FROM tab0
----
8
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL - COUNT( * ) * - 36 col2 FROM tab0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1818
SELECT ALL - COUNT ( * ) * - 36 col2 FROM tab0
----
108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= + col1 + - - col1
----

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
272
7579
9508

query II rowsort
SELECT DISTINCT + 45 AS col2, 21 + + 63 AS col2 FROM tab2 AS cor0
----
45
84

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT 60 <= 24 - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT CAST( - MAX( DISTINCT - 17 ) AS SIGNED ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-1824
SELECT CAST ( - MAX ( DISTINCT - 17 ) AS INTEGER ) FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT MIN( DISTINCT + + col0 ) * + + 53 FROM tab2
----
2438

skipif mysql # not compatible
query I rowsort label-1825
SELECT MIN ( DISTINCT + + col0 ) * + + 53 FROM tab2
----
2438

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

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

skipif mysql # not compatible
query I rowsort label-1827
SELECT + CAST ( + + col2 AS INTEGER ) * - col0 * col1 + col2 * col1 FROM tab0
----
-18060
-53298
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT - col0 + CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1828
SELECT - col0 + CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1829
SELECT DISTINCT + col0 * - col0 AS col1, col1 - + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
-2601
NULL
-7225
NULL
-8281
NULL

skipif mysql # not compatible
query II rowsort label-1829
SELECT DISTINCT + col0 * - col0 AS col1, col1 - + ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
-2601
NULL
-7225
NULL
-8281
NULL

query I rowsort
SELECT ALL 16 + + col2 AS col0 FROM tab0 AS cor0
----
115
26
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - COUNT( * ) * MIN( + 18 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - COUNT ( * ) * MIN ( + 18 ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT + AVG ( DISTINCT - - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 32 * - 26 FROM tab2
----
-832
-832
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT + AVG ( - col1 ) / - - COUNT( * ) - - 41 FROM tab0 WHERE NULL > + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT + AVG ( - col1 ) / - - COUNT ( * ) - - 41 FROM tab0 WHERE NULL > + 35
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > - col0 + + 21 * + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT + 71 + + 68 - - 83 * - COUNT( * ) AS col1 FROM tab2 cor0
----
-110

skipif mysql # not compatible
query I rowsort label-1837
SELECT + 71 + + 68 - - 83 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
-110

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + ( - + col1 ) - ( col2 ) + + col2 FROM tab1 AS cor0
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + ( + COUNT( 62 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1843
SELECT + ( + COUNT ( 62 ) ) FROM tab2
----
3

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

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + - 8 * + 68 + - - col0 + - 36 > NULL
----

query II rowsort
SELECT DISTINCT + 9, col2 AS col2 FROM tab2
----
9
23
9
40
9
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 45 / - - col0 / col2 + + + 77 + col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL - 58 * COUNT( * ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - 58 * COUNT ( * ) FROM tab1
----
-174

query I rowsort
SELECT ALL col0 * + col2 FROM tab2 cor0 WHERE col1 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL CAST( + 55 AS SIGNED ) + + SUM( + 9 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL CAST ( + 55 AS INTEGER ) + + SUM ( + 9 ) FROM tab2 AS cor0
----
82

query I rowsort
SELECT ALL + + 58 FROM tab0, tab0 AS cor0 WHERE + 39 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 12 * - MIN ( + col2 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE + ( col2 ) < ( 99 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 13 * + 93 AS col1 FROM tab0
----
1209

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 = + 61 + - 67 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT 5 DIV 85 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT 5 / 85 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col2 * - col0 * + - col2 AS col2, col0 * - - col1 * + 3 + 64 FROM tab0
----
33135
3709
8700
5545
950697
355

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

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

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

query I rowsort
SELECT + col1 * col2 + - col2 - + col0 FROM tab0
----
-97
113
3745

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 85 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col0 + - + 74 AS col1 FROM tab1 AS cor0
----
-23
11
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1869
SELECT ALL + 14 col1, col1 DIV + col2 FROM tab1
----
14
0
14
0
14
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1869
SELECT ALL + 14 col1, col1 / + col2 FROM tab1
----
14
0
14
0
14
0

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

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

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

query I rowsort
SELECT col1 * 35 AS col2 FROM tab1 AS cor0
----
1645
175
490

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

query I rowsort
SELECT DISTINCT + ( - + ( + - 90 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT - - 27 - 87 + 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT - 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT 31 + + col0 * - + col1 AS col0 FROM tab1 cor0
----
-394
-4246
-683

query I rowsort
SELECT ALL - - col1 * - 93 * - - col2 FROM tab2 AS cor0
----
-109089
-286440
-361398

query I rowsort
SELECT ALL - + 61 + col2 FROM tab1 AS cor0
----
-2
35
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0 WHERE NOT ( col0 + + col1 ) NOT IN ( - ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1882
SELECT * FROM tab0 cor0 WHERE col0 - - - col2 * 7 * + + 72 * + + col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1882
SELECT * FROM tab0 cor0 WHERE col0 - - - col2 * 7 * + + 72 * + + col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + col1 * + - col1 + - - col0 AS col2 FROM tab0 AS cor0
----
-2
-308352
-4323

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT DISTINCT - ( + col2 ) DIV + ( 47 ) + - col0 AS col1 FROM tab0 AS cor0
----
-16
-87
-99

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - ( + col2 ) / + ( 47 ) + - col0 AS col1 FROM tab0 AS cor0
----
-16
-87
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT col2 DIV - col2 + + - col2 - + ( 61 ) FROM tab2
----
-102
-120
-85

skipif mysql # not compatible
query I rowsort label-1886
SELECT col2 / - col2 + + - col2 - + ( 61 ) FROM tab2
----
-102
-120
-85

query I rowsort
SELECT + 76 + + + col2 - - col1 * + col0 AS col0 FROM tab0
----
1338
1913
272

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

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

query I rowsort
SELECT col1 + - - 99 AS col0 FROM tab0
----
100
120
180

query I rowsort
SELECT DISTINCT 77 * - + ( + col1 ) * - - col0 * - + col2 - + ( col1 ) FROM tab2
----
15178163
22441583
4154715

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 11 AND NULL
----

query I rowsort
SELECT DISTINCT AVG ( ALL - 16 ) AS col1 FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN 51 AND + + col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT ALL + 96 * + COUNT( * ), 13 + - COUNT( * ) - - COUNT( * ) AS col0 FROM tab1
----
288
13

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL + 96 * + COUNT ( * ), 13 + - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1
----
288
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT + 46 * - COUNT( * ) * 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1656

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + 46 * - COUNT ( * ) * 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1656

query I rowsort
SELECT DISTINCT 28 - col0 FROM tab1
----
-23
-57
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT + COUNT( * ) - - SUM( + - col0 ) / + COUNT( * ) + + 15 + + - CAST( NULL AS SIGNED ) * - ( 13 ) + + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT + COUNT ( * ) - - SUM ( + - col0 ) / + COUNT ( * ) + + 15 + + - CAST ( NULL AS INTEGER ) * - ( 13 ) + + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + - 57 + - - col0 AS col0 FROM tab0 AS cor0
----
-42
30
40

query I rowsort
SELECT - - col0 * + + 78 + - ( + 94 ) AS col2 FROM tab2 AS cor0
----
3494
4898
5756

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab1 AS cor0 WHERE NOT - col1 < - - col2 + - 41 * - 98
----

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL COUNT ( + + 64 ) FROM tab1 cor0
----
3

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 16 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 11 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT - - 81 + 68 - - ( ( - COUNT( * ) ) ) col0 FROM tab0 AS cor0
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1909
SELECT DISTINCT - - 81 + 68 - - ( ( - COUNT ( * ) ) ) col0 FROM tab0 AS cor0
----
146

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT - - 86 + + + col1 BETWEEN - 96 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL + 40 + - - ( + col2 ) DIV col1 FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 40 + - - ( + col2 ) / col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT DISTINCT + ( + + 52 ) + 65 col2, - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
117
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1912
SELECT DISTINCT + ( + + 52 ) + 65 col2, - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
117
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( + - 86 + + - col1 - + 69 * + col1, - col1 / + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1914
SELECT DISTINCT + COUNT( * ) + SUM( ALL - ( 26 ) ) AS col2, 58 col0 FROM tab2
----
-75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1914
SELECT DISTINCT + COUNT ( * ) + SUM ( ALL - ( 26 ) ) AS col2, 58 col0 FROM tab2
----
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT COUNT( * ) * - 73 * + + 41 AS col0 FROM tab2
----
-8979

skipif mysql # not compatible
query I rowsort label-1915
SELECT COUNT ( * ) * - 73 * + + 41 AS col0 FROM tab2
----
-8979

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL + COUNT( * ) + 3 + - 10 * - MIN( ALL - col2 ) FROM tab2
----
-574

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + COUNT ( * ) + 3 + - 10 * - MIN ( ALL - col2 ) FROM tab2
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - COUNT( * ) + - MIN( 66 ) FROM tab2 WHERE + col2 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-1917
SELECT - COUNT ( * ) + - MIN ( 66 ) FROM tab2 WHERE + col2 IS NOT NULL
----
-69

query I rowsort
SELECT col2 * - 86 AS col1 FROM tab0
----
-4042
-8514
-860

query III rowsort
SELECT + col0, 83 AS col2, + + 53 AS col1 FROM tab2
----
9 values hashing to 9916d05716dd4508716f10e4954b7069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT CAST( + col1 AS SIGNED ) - - col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1920
SELECT CAST ( + col1 AS INTEGER ) - - col0 FROM tab1
----
138
65
90

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN 79 - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT DISTINCT + col2 + + 76 + col1 - col0 + + col1 * 41 DIV + + 7 AS col2 FROM tab2 AS cor0
----
402
518
580

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + col2 + + 76 + col1 - col0 + + col1 * 41 / + + 7 AS col2 FROM tab2 AS cor0
----
402
518
580

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT DISTINCT + SUM( 62 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + SUM ( 62 ) FROM tab0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col1 ) col1 FROM tab2 AS cor0 WHERE NOT ( + col1 + col2 + + col0 ) NOT BETWEEN - 40 * - 59 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 8 * + 92 AS col2 FROM tab1 AS cor0
----
736

query I rowsort
SELECT DISTINCT + - 60 AS col0 FROM tab2 cor0
----
-60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL + col2 DIV 6 FROM tab1
----
11
16
9

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + col2 / 6 FROM tab1
----
11
16
9

query I rowsort
SELECT DISTINCT 11 * + col1 AS col2 FROM tab2
----
561
737
847

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - - MIN( DISTINCT + col1 ) / COUNT( * ) AS col0 FROM tab2 WHERE NOT - - col1 * - + 31 + col1 NOT BETWEEN - + col1 AND - - 37 + ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT - - MIN ( DISTINCT + col1 ) / COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col1 * - + 31 + col1 NOT BETWEEN - + col1 AND - - 37 + ( - col0 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT + COUNT ( - 68 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1933
SELECT COUNT( * ) DIV - - 34 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT COUNT ( * ) / - - 34 FROM tab1
----
0

query I rowsort
SELECT ALL + 29 * 52 AS col1 FROM tab1
----
1508
1508
1508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT ALL 38 DIV - COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL 38 / - COUNT ( * ) FROM tab1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT col2 DIV + 63 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1936
SELECT col2 / + 63 FROM tab1
----
0
1
1

query I rowsort
SELECT col2 * + 4 * + - col1 * + + col0 AS col1 FROM tab2
----
-1165800
-215832
-788480

query I rowsort
SELECT ALL - col0 + + 46 + - - ( - + col1 ) AS col0 FROM tab1 WHERE NULL <= + col2
----

query I rowsort
SELECT + + ( - 67 ) * - 37 - col0 AS col0 FROM tab1 cor0
----
2388
2394
2428

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT - col0 DIV + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-1941
SELECT - col0 / + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + 86 + + COUNT( * ) col2 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1942
SELECT + 86 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( ( col2 ) ) ) = ( NULL )
----

query I rowsort
SELECT ALL - 19 + + 57 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT ALL 62 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
1120
2622
4412

query I rowsort
SELECT col0 + - + 11 AS col2 FROM tab0 cor0
----
4
76
86

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE + + col0 + - 75 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 - - col0 col1 FROM tab2
----
110
121
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT CAST( NULL AS SIGNED ) / - col2 + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT CAST ( NULL AS INTEGER ) / - col2 + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT COUNT( * ) + - - 15 AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT COUNT ( * ) + - - 15 AS col1 FROM tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 62 col2 FROM tab1 cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 38 + col1 col0 FROM tab0 AS cor0
----
-3285
-3685
-489

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT ALL + 99 DIV - col2 + col0 FROM tab2 AS cor0
----
42
62
74

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL + 99 / - col2 + col0 FROM tab2 AS cor0
----
42
62
74

query I rowsort
SELECT col2 * 67 + col0 FROM tab2 cor0
----
1587
2744
3961

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT - - col2 DIV - + 63 * - col2 * + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1956
SELECT - - col2 / - + 63 * - col2 * + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT ALL - COUNT( * ) DIV + 42 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - COUNT ( * ) / + 42 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col1 * - 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

query II rowsort
SELECT 76 AS col0, ( + - col2 ) FROM tab2 AS cor0
----
76
-23
76
-40
76
-58

query I rowsort
SELECT - 53 * 17 FROM tab0 AS cor0
----
-901
-901
-901

query I rowsort
SELECT DISTINCT + + col1 * + 1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1962
SELECT ALL + CAST( col1 AS SIGNED ), col2 col1 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1962
SELECT ALL + CAST ( col1 AS INTEGER ), col2 col1 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + 10 + COUNT( * ) col1 FROM tab0 WHERE NOT NULL <= ( - col0 )
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1964
SELECT + 10 + COUNT ( * ) col1 FROM tab0 WHERE NOT NULL <= ( - col0 )
----
10

query I rowsort
SELECT DISTINCT - + 50 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - + 85 + + 43 AS col0 FROM tab0 AS cor0
----
-1742
-42
-6842

query I rowsort
SELECT - 18 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, col1, col0 )
----

query I rowsort
SELECT ALL + 50 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab0 AS cor2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT - 64 + + - CAST( NULL AS SIGNED ) - - ( col2 ) / - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT - 64 + + - CAST ( NULL AS INTEGER ) - - ( col2 ) / - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + + + 48 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 67 + - ( + + col1 ) + + 98 AS col0 FROM tab1 AS cor0
----
-16
17
26

query I rowsort
SELECT ALL + col0 + + 12 FROM tab2 AS cor0
----
58
76
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1974
SELECT ALL - + col2 AS col1, col1 DIV + col2 AS col0 FROM tab2 AS cor0
----
-23
2
-40
1
-58
1

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL - + col2 AS col1, col1 / + col2 AS col0 FROM tab2 AS cor0
----
-23
2
-40
1
-58
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT - col1 * col2 + + CAST( + - 81 AS SIGNED ) FROM tab2 cor0
----
-1254
-3161
-3967

skipif mysql # not compatible
query I rowsort label-1975
SELECT - col1 * col2 + + CAST ( + - 81 AS INTEGER ) FROM tab2 cor0
----
-1254
-3161
-3967

query I rowsort
SELECT - 32 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + 63 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 34 + - ( + col0 ) + col2 AS col0 FROM tab2 cor0
----
10
11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL COUNT( * ) - + 63 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL COUNT ( * ) - + 63 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT - 27 - + ( + + col1 ) FROM tab1
----
-32
-41
-74

query I rowsort
SELECT - 80 + 12 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT - + 11 + - + col1 AS col2 FROM tab2 AS cor0
----
-62
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT - - MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 93 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-4989
-5108
-6281

query II rowsort
SELECT - 28, - 53 AS col0 FROM tab0
----
-28
-53
-28
-53
-28
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL + CAST( NULL AS SIGNED ) - + + col0 * + - 90 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL + CAST ( NULL AS INTEGER ) - + + col0 * + - 90 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - MIN( + 5 ) col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1987
SELECT ALL - MIN ( + 5 ) col2 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL + + SUM( ALL + 29 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL + + SUM ( ALL + 29 ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT + col1 * 43 * - col0 FROM tab1 AS cor0
----
-18275
-183911
-30702

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 82 < 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1991
SELECT CAST( NULL AS DECIMAL ) * + + 88 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1991
SELECT CAST ( NULL AS REAL ) * + + 88 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 45 * 18 AS col1 FROM tab1
----
810

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 83, col0 + - 84 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 6 col2 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT ( - 80 ) + - col0 + + col0 * + + 23 + + 52 * + 49 AS col2 FROM tab0 AS cor0
----
2798
4382
4602

query I rowsort
SELECT col0 * - + col0 + - 59 FROM tab0 cor0
----
-284
-7628
-9468

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 * - 41 * 57 * + col2 * col2 AND 57 + - + col1 * - - col1 * - + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT + 24 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + 24 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1999
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2000
SELECT ALL + 47 * col0 * - + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2000
SELECT ALL + 47 * col0 * - + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT - - col1 - + 82 AS col1, + col0 FROM tab1 cor0
----
-35
91
-68
51
-77
85

query I rowsort
SELECT 37 - col1 FROM tab0 AS cor0
----
-44
16
36

query I rowsort
SELECT + col0 * - - 14 + - col1 + - + col2 - - + col1 AS col0 FROM tab1 AS cor0
----
1131
1206
618

query I rowsort
SELECT DISTINCT col1 + + + col0 - col0 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL 23 - ( + col2 ) - col2 DIV - - col0 + 33 AS col1 FROM tab0 AS cor0
----
-44
46
6

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 23 - ( + col2 ) - col2 / - - col0 + 33 AS col1 FROM tab0 AS cor0
----
-44
46
6

query I rowsort
SELECT - 25 * + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
-1099
-1523
-1808

query I rowsort
SELECT + 30 + - - 58 + - + col1 AS col1 FROM tab2 AS cor0
----
11
21
37

query II rowsort
SELECT + 98 + - col0, col0 AS col0 FROM tab0 AS cor0
----
1
97
11
87
83
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT ALL col2 + + col2 * CAST( - 53 AS SIGNED ) FROM tab0
----
-2444
-5148
-520

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL col2 + + col2 * CAST ( - 53 AS INTEGER ) FROM tab0
----
-2444
-5148
-520

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT - 28 DIV - 4 + - ( col1 ) FROM tab0
----
-14
-74
6

skipif mysql # not compatible
query I rowsort label-2010
SELECT - 28 / - 4 + - ( col1 ) FROM tab0
----
-14
-74
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT ALL COUNT( * ) + - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 - - - col2 - - - col0, - col1 col2 FROM tab1
----
-59
-5
-68
-47
-96
-14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= 43
----

query I rowsort
SELECT ALL + ( col0 ) FROM tab2 WHERE NOT - col0 <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL + SUM( ALL - 65 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + SUM ( ALL - 65 ) FROM tab2
----
-195

query I rowsort
SELECT + + 75 AS col0 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT ALL + col0 + + col2 FROM tab0 AS cor0 WHERE NOT NULL < + 94
----

query II rowsort
SELECT DISTINCT col1, - 69 FROM tab2 AS cor0
----
51
-69
67
-69
77
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2019
SELECT + col0 AS col0, - 69 * - - CAST( - 35 AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
15
-195615
87
-50715
97
-2415

skipif mysql # not compatible
query II rowsort label-2019
SELECT + col0 AS col0, - 69 * - - CAST ( - 35 AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
15
-195615
87
-50715
97
-2415

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT SUM( + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT SUM ( + + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT 93 * - 91 AS col2 FROM tab0 AS cor0
----
-8463
-8463
-8463

query I rowsort
SELECT DISTINCT + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query I rowsort
SELECT DISTINCT - 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + - 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2027
SELECT ALL - COUNT( DISTINCT + col2 ) AS col1 FROM tab1 WHERE NOT + - CAST( - - 13 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 WHERE NOT + - CAST ( - - 13 AS REAL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2028
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 >= - CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-2028
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 >= - CAST ( NULL AS INTEGER ) * col0
----

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT 53 DIV - 77 * - 50 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT 53 / - 77 * - 50 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 14 col1 FROM tab0
----
-1386
-140
-658

query II rowsort
SELECT ALL col1 * ( - col1 ) - - + col0 - - col2 AS col0, col2 * - col1 AS col1 FROM tab1
----
-2050
-3196
-49
-1344
119
-295

query I rowsort
SELECT DISTINCT + 90 + + + col2 FROM tab1
----
149
158
186

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - + col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT DISTINCT ( + + col0 ) DIV - col0 + col1 * - - 45 FROM tab2
----
2294
3014
3464

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT ( + + col0 ) / - col0 + col1 * - - 45 FROM tab2
----
2294
3014
3464

onlyif mysql # DIV for integer division: 
query II rowsort label-2036
SELECT DISTINCT col0 DIV - 53 AS col1, col1 + + col2 FROM tab2
----
-1
117
-1
125
0
74

skipif mysql # not compatible
query II rowsort label-2036
SELECT DISTINCT col0 / - 53 AS col1, col1 + + col2 FROM tab2
----
-1
117
-1
125
0
74

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 98 * 31 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2038
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT - col1 * col1 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL + SUM( + + 83 ) AS col1 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + SUM ( + + 83 ) AS col1 FROM tab0 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT DISTINCT COUNT( * ) col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2042
SELECT DISTINCT COUNT ( * ) col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT + - 80 AS col1 FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - - MAX( + + ( - 68 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2 * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT - - MAX ( + + ( - 68 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2 * - 1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + 82 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + ( + + MIN( DISTINCT - 78 ) ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2046
SELECT + ( + + MIN ( DISTINCT - 78 ) ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT col1 + - col1 + - + col1 + + - col2 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2048
SELECT ALL - - col2 AS col2, + 16 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL - - col2 AS col2, + 16 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( - ( 72 ) ) * 10 * col2 > NULL
----

query I rowsort
SELECT DISTINCT - - 97 * - col0 + - - col2 AS col0 FROM tab2 AS cor0
----
-4439
-6168
-7217

query I rowsort
SELECT + ( 44 ) + - + ( + col0 ) FROM tab1
----
-41
-47
-7

query II rowsort
SELECT DISTINCT 29 AS col1, col2 * - 72 + - col2 AS col2 FROM tab0 AS cor0
----
29
-3431
29
-7227
29
-730

query I rowsort
SELECT + 77 + + + 41 FROM tab0 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + 78 + + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2054
SELECT + 78 + + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
87

query I rowsort
SELECT - col0 + - 82 AS col0 FROM tab1 cor0
----
-133
-167
-173

query I rowsort
SELECT - col0 * 1 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT 56 AS col1, col0 AS col1 FROM tab2
----
56
46
56
64
56
75

query III rowsort
SELECT col2, + col1, - col0 AS col2 FROM tab0
----
9 values hashing to c640151c5afa74e4be2a42469e78db14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2059
SELECT * FROM tab1 WHERE NOT + - CAST( + ( col1 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2059
SELECT * FROM tab1 WHERE NOT + - CAST ( + ( col1 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT + col2 DIV 39 * col0 FROM tab0
----
0
15
194

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + col2 / 39 * col0 FROM tab0
----
0
15
194

onlyif mysql # aggregate syntax: 
query II rowsort label-2061
SELECT ALL + 66 AS col0, + COUNT( * ) FROM tab0
----
66
3

skipif mysql # not compatible
query II rowsort label-2061
SELECT ALL + 66 AS col0, + COUNT ( * ) FROM tab0
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + + COUNT( DISTINCT + 78 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2062
SELECT + + COUNT ( DISTINCT + 78 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 95 * 13 + col0 AS col2 FROM tab2 AS cor0
----
-1160
-1171
-1189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2064
SELECT DISTINCT COUNT( ALL - - col0 ), COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2064
SELECT DISTINCT COUNT ( ALL - - col0 ), COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query II rowsort
SELECT + ( 2 ) AS col2, - col0 FROM tab2 AS cor0
----
2
-46
2
-64
2
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL COUNT( - + ( col0 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL COUNT ( - + ( col0 ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2068
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2068
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

query I rowsort
SELECT ( ( - col1 ) ) + + + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - + ( - 5 ) AS col2 FROM tab0 AS cor0
----
-10
-82
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2071
SELECT + CAST( + ( - COUNT( * ) ) AS SIGNED ) + CAST( 24 AS SIGNED ) + MIN( 38 ) * + 88 AS col2, - MIN( + - col2 ) FROM tab1 AS cor0
----
3365
96

skipif mysql # not compatible
query II rowsort label-2071
SELECT + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + CAST ( 24 AS INTEGER ) + MIN ( 38 ) * + 88 AS col2, - MIN ( + - col2 ) FROM tab1 AS cor0
----
3365
96

query I rowsort
SELECT ALL - col0 + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
-96
354
6546

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT ALL - + col2 DIV + 82 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - + col2 / + 82 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + col2 FROM tab2 AS cor0 WHERE NULL < col0 / col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 38 NOT BETWEEN + - col2 AND col2 * - col1 + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE + 89 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ( COUNT( DISTINCT 23 ) ) * + - 97 + 39 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2078
SELECT ( COUNT ( DISTINCT 23 ) ) * + - 97 + 39 AS col1 FROM tab2
----
-58

query I rowsort
SELECT + col1 * + 35 AS col0 FROM tab1
----
1645
175
490

query II rowsort
SELECT ALL + col0, + col1 * col1 AS col2 FROM tab1
----
51
196
85
25
91
2209

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT ALL + 61 DIV col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + 61 / col2 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT - col2 * 19 FROM tab2
----
-1102
-437
-760

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2083
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( col1 AS DECIMAL ) * + col1 AND col1
----

skipif mysql # not compatible
query III rowsort label-2083
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( col1 AS REAL ) * + col1 AND col1
----

query I rowsort
SELECT + 27 * - col1 FROM tab1
----
-1269
-135
-378

query I rowsort
SELECT DISTINCT 71 + + col2 FROM tab1
----
130
139
167

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT DISTINCT + 2 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT + 2 / col2 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT DISTINCT + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2087
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 66 * - col0 FROM tab1
----
3366
5610
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT CAST( NULL AS SIGNED ) + + 5 * + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2089
SELECT CAST ( NULL AS INTEGER ) + + 5 * + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - col2 * + col0 col1 FROM tab1
----
-1911
-4182
-4590

query I rowsort
SELECT - 51 + + col2 AS col2 FROM tab0
----
-4
-41
48

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( + col0 ) <= 63
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + 6 + MAX( - 57 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2093
SELECT + 6 + MAX ( - 57 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) <> + col1
----
0

query I rowsort
SELECT DISTINCT - col1 * col2 + + 7 FROM tab0
----
-203
-3800
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2096
SELECT * FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2096
SELECT * FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2097
SELECT * FROM tab1 WHERE NOT CAST( + ( + col0 ) AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2097
SELECT * FROM tab1 WHERE NOT CAST ( + ( + col0 ) AS INTEGER ) + + col0 IS NOT NULL
----

query I rowsort
SELECT - 17 FROM tab2 WHERE NOT ( NULL ) = ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 13 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT - MIN( ALL 0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT - MIN ( ALL 0 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + ( - MIN( ALL 3 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + ( - MIN ( ALL 3 ) ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + + col0 * - col0 col1 FROM tab0
----
-288
-7632
-9472

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL 10 + - ( COUNT( * ) ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL 10 + - ( COUNT ( * ) ) AS col0 FROM tab0
----
7

query I rowsort
SELECT + 0 + 85 FROM tab1
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2105
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 NOT BETWEEN ( CAST( NULL AS SIGNED ) + - col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2105
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 NOT BETWEEN ( CAST ( NULL AS INTEGER ) + - col0 ) AND ( NULL )
----

query I rowsort
SELECT + col1 + + col0 * 77 FROM tab2
----
3593
5005
5842

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = col1 * + col0 + - 89
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 3 = col1 * 46 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE ( + col0 ) <> - col1
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2109
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE ( + col0 ) <> - col1
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 24 ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT SUM( ALL + col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-2113
SELECT SUM ( ALL + col2 ) AS col0 FROM tab2 cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT - 14 DIV 23 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 14 / 23 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL - 84 * - COUNT( * ) FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - 84 * - COUNT ( * ) FROM tab2 AS cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 16 * col1 NOT BETWEEN NULL AND 19 + col1
----

skipif mysql # not compatible
query I rowsort label-2116
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 16 * col1 NOT BETWEEN NULL AND 19 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - SUM( DISTINCT + 0 ) * - SUM( - 66 * col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT - SUM ( DISTINCT + 0 ) * - SUM ( - 66 * col2 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2119
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) IN ( CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-2119
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) IN ( CAST ( NULL AS INTEGER ) * + col0 )
----

query I rowsort
SELECT 22 AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL + col0 * 49 + + col1 AS col2 FROM tab0 AS cor0
----
4284
4754
816

query I rowsort
SELECT DISTINCT 72 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT MAX( DISTINCT - 42 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT MAX ( DISTINCT - 42 ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT + 30 FROM tab2 AS cor0 WHERE col2 + col1 IN ( 0 )
----

query I rowsort
SELECT - 52 + col0 AS col0 FROM tab0 AS cor0
----
-37
35
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT COUNT( * ) / - MIN( - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT COUNT ( * ) / - MIN ( - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 / + 60 IN ( 84 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + + col1 col1 FROM tab1 AS cor0
----
-30
-39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT - COUNT( ALL + col0 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT DISTINCT - COUNT ( ALL + col0 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - col0 + 49 * - col2 AS col0 FROM tab0 AS cor0
----
-2318
-4948
-577

query I rowsort
SELECT DISTINCT - 5 + col1 FROM tab0 AS cor0
----
-4
16
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT + + COUNT( * ) + - 79 AS col0 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2136
SELECT + + COUNT ( * ) + - 79 AS col0 FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT - MIN( col0 ) + - COUNT( 84 ) AS col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2137
SELECT - MIN ( col0 ) + - COUNT ( 84 ) AS col2 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT - col0 + - - col0 * - col2 AS col0 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT ALL col0 * - 82 * + 34 FROM tab0
----
-242556
-270436
-41820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT 18 * 66 DIV - COUNT( * ) FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT 18 * 66 / - COUNT ( * ) FROM tab2
----
-396

query I rowsort
SELECT ALL ( - 2 ) AS col0 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + 79 * COUNT( * ) FROM tab1 cor0
----
237

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 79 * COUNT ( * ) FROM tab1 cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * + CAST( 99 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * + CAST ( 99 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT + - 15 * + 72 * COUNT( * ) FROM tab2 AS cor0
----
-3240

skipif mysql # not compatible
query I rowsort label-2144
SELECT + - 15 * + 72 * COUNT ( * ) FROM tab2 AS cor0
----
-3240

query I rowsort
SELECT DISTINCT + + col1 * col0 + col0 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - + col0 )
----

query I rowsort
SELECT DISTINCT + - ( 72 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT - COUNT( * ) FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT - COUNT ( * ) FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2149
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) / - 71 NOT BETWEEN ( col2 * ( col0 ) ) AND col0
----

skipif mysql # not compatible
query III rowsort label-2149
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS REAL ) / - 71 NOT BETWEEN ( col2 * ( col0 ) ) AND col0
----

query I rowsort
SELECT ALL - 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + 62 )
----

query I rowsort
SELECT 67 FROM tab0 AS cor0 WHERE NOT ( col2 - - col0 - 19 ) <= ( - col0 )
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT 71 * ( + 72 ) * - COUNT( * ) FROM tab2 cor0
----
-15336

skipif mysql # not compatible
query I rowsort label-2153
SELECT 71 * ( + 72 ) * - COUNT ( * ) FROM tab2 cor0
----
-15336

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL - COUNT( 38 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - COUNT ( 38 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col1, + 95 AS col1 FROM tab0 AS cor0
----
-1
95
-21
95
-81
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 44 + + 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2157
SELECT ALL - CAST( NULL AS DECIMAL ) * - 7 + - COUNT( * ) + + COUNT( * ) / 89 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - CAST ( NULL AS REAL ) * - 7 + - COUNT ( * ) + + COUNT ( * ) / 89 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT - - COUNT( ALL + + 26 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - - COUNT ( ALL + + 26 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) * - col0 + + col0 col1 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT 22 * + + COUNT( - 92 ) + 2 col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2161
SELECT 22 * + + COUNT ( - 92 ) + 2 col1 FROM tab0 AS cor0
----
68

query I rowsort
SELECT - ( + + ( - - col0 ) ) FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE NOT NULL < - + col1 * + - col0 + - col1
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( + col1 ) > ( - 17 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2 WHERE - - col2 + + - col2 = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab1
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col1 ) < 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT + CAST( 93 AS SIGNED ) FROM tab2
----
93
93
93

skipif mysql # not compatible
query I rowsort label-2169
SELECT + CAST ( 93 AS INTEGER ) FROM tab2
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2170
SELECT * FROM tab1 WHERE NOT - + 75 NOT IN ( ( - col2 ) - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2170
SELECT * FROM tab1 WHERE NOT - + 75 NOT IN ( ( - col2 ) - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT + col1 / + - 43 * - col0 + - col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + col1 / + - 43 * - col0 + - col1 <> ( NULL )
----
0

query I rowsort
SELECT + 47 AS col1 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 61 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 * - - 14 FROM tab0 AS cor0
----
1386
140
658

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT MAX( col0 ) AS col1, 62 FROM tab1 AS cor0
----
91
62

skipif mysql # not compatible
query II rowsort label-2175
SELECT MAX ( col0 ) AS col1, 62 FROM tab1 AS cor0
----
91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - ( COUNT( DISTINCT - 57 ) ) + 65 * + MIN( col0 ) FROM tab1 cor0
----
3314

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - ( COUNT ( DISTINCT - 57 ) ) + 65 * + MIN ( col0 ) FROM tab1 cor0
----
3314

query II rowsort
SELECT ALL + ( 22 ) * col0 AS col0, col1 AS col0 FROM tab0
----
1914
21
2134
1
330
81

query I rowsort
SELECT - col0 + + col0 * - col1 * - + col0 FROM tab2
----
107870
315328
376800

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN - + 63 AND col1 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col0 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT 1 + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + 96 * - MAX( ALL + col0 ) * MAX( DISTINCT + - 77 ) col1 FROM tab1 AS cor0
----
672672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2182
SELECT ALL + 96 * - MAX ( ALL + col0 ) * MAX ( DISTINCT + - 77 ) col1 FROM tab1 AS cor0
----
672672

query I rowsort
SELECT ALL - col2 * + 19 + + 91 + - col0 * + + col0 * - col2 FROM tab2 AS cor0
----
163171
325239
48322

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT SUM( + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2184
SELECT SUM ( + col0 ) FROM tab2 cor0
----
185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 79 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2186
SELECT + 13 DIV - - CAST( - 94 AS SIGNED ) * - ( 86 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT + 13 / - - CAST ( - 94 AS INTEGER ) * - ( 86 ) FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col1 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 80, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL ( - SUM( + + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL ( - SUM ( + + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 0 + - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL - 13 * COUNT( * ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 13 * COUNT ( * ) FROM tab2
----
-39

query I rowsort
SELECT ALL 23 * col1 - - 92 + + - 76 AS col0 FROM tab2
----
1189
1557
1787

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT - COUNT( * ) * + 11 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - COUNT ( * ) * + 11 FROM tab1
----
-33

query I rowsort
SELECT - 10 - + + 91 FROM tab0
----
-101
-101
-101

query III rowsort
SELECT * FROM tab1 WHERE 2 * + 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - - COUNT( * ) + - 86 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2195
SELECT - - COUNT ( * ) + - 86 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT - + 17 + - - col0 - - + col0 FROM tab1 cor0
----
153
165
85

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 19 * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 68 <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL + CAST( - 65 AS SIGNED ) * + COUNT( + col1 ) + + 30 FROM tab1 WHERE - - 51 IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + CAST ( - 65 AS INTEGER ) * + COUNT ( + col1 ) + + 30 FROM tab1 WHERE - - 51 IS NULL
----
30

query I rowsort
SELECT + ( - col1 ) * - 45 * - - 21 - - - col0 + + 83 * col1 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 NOT BETWEEN 79 AND ( NULL ) )
----

query II rowsort
SELECT ALL - col0, - col1 + 18 AS col0 FROM tab1
----
-51
4
-85
13
-91
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 2 IN ( col2 * - 99 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 29 ) AS col1 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT COUNT( - 5 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT COUNT ( - 5 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT 53 DIV 69 DIV + + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT 53 / 69 / + + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2207
SELECT * FROM tab2 WHERE NOT CAST( 47 AS SIGNED ) BETWEEN - col0 AND 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2207
SELECT * FROM tab2 WHERE NOT CAST ( 47 AS INTEGER ) BETWEEN - col0 AND 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - 26 AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - 26 AS col1 FROM tab2
----
234

query I rowsort
SELECT - 88 * col0 + col0 AS col0 FROM tab0 cor0
----
-1305
-7569
-8439

query I rowsort
SELECT 67 AS col0 FROM tab2 cor0 WHERE NOT - col0 * + col0 + - - col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2211
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT - col0, 42 * + col0 AS col0 FROM tab2 cor0
----
-46
1932
-64
2688
-75
3150

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE ( + col1 + col2 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT + COUNT( * ) + + MAX( - - 81 ) + - - 60 * - COUNT( * ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + COUNT ( * ) + + MAX ( - - 81 ) + - - 60 * - COUNT ( * ) AS col1 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL - + SUM( ALL - - 0 ) * - 90 * - 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL - + SUM ( ALL - - 0 ) * - 90 * - 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT ALL ( col0 ), col2 AS col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - COUNT( * ) * - 35 FROM tab1 AS cor0 WHERE NULL IS NULL
----
105

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) * - 35 FROM tab1 AS cor0 WHERE NULL IS NULL
----
105

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col1 + - 94 FROM tab0 AS cor0
----
-115
-175
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT ALL - + 56 + col1 DIV col2 FROM tab0 cor0
----
-54
-55
-56

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - + 56 + col1 / col2 FROM tab0 cor0
----
-54
-55
-56

query I rowsort
SELECT + col2 + - - ( + col2 ) FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + 71 AS col2 FROM tab0 AS cor0 WHERE + col2 >= NULL
----

query I rowsort
SELECT ALL 75 FROM tab0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL - COUNT( * ) - - - 6 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - COUNT ( * ) - - - 6 FROM tab2
----
-9

query I rowsort
SELECT + + 96 FROM tab0 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN + col1 AND + col0 + col2
----

query I rowsort
SELECT - 87 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - + 1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 96 * - + col2 AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - SUM( col1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT ( - col1 + + col1 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT SUM( ALL ( col0 ) ) DIV - + 22 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2233
SELECT SUM ( ALL ( col0 ) ) / - + 22 FROM tab1 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2234
SELECT col0, CAST( - + col0 AS SIGNED ) FROM tab2
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-2234
SELECT col0, CAST ( - + col0 AS INTEGER ) FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT + 52, col2 + - col2 + 20 AS col2 FROM tab0 AS cor0
----
52
20
52
20
52
20

query I rowsort
SELECT + 2 * + - col2 AS col1 FROM tab2 cor0
----
-116
-46
-80

query II rowsort
SELECT ALL col2, - 43 AS col2 FROM tab0 AS cor0
----
10
-43
47
-43
99
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2238
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * - - col0 * + + col2 + - CAST( + col2 AS SIGNED ) NOT IN ( + + col1 )
----

skipif mysql # not compatible
query III rowsort label-2238
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * - - col0 * + + col2 + - CAST ( + col2 AS INTEGER ) NOT IN ( + + col1 )
----

query II rowsort
SELECT DISTINCT + 65 AS col0, col2 AS col1 FROM tab0 AS cor0
----
65
10
65
47
65
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - + 81 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2240
SELECT - + 81 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL + 92 * + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + 92 * + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT DISTINCT + COUNT( * ) DIV - 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT + COUNT ( * ) / - 23 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2243
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = - CAST( - - col0 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = - CAST ( - - col0 AS REAL )
----
0

query I rowsort
SELECT - col2 * + - 54 - col1 FROM tab2 AS cor0
----
1191
2083
3065

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - col0 IN ( 31 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - COUNT( * ) * + 38 AS col0 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-2247
SELECT - COUNT ( * ) * + 38 AS col0 FROM tab0
----
-114

query III rowsort
SELECT * FROM tab2 WHERE NOT - 16 * + 73 + - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 78 ) * + 71 col2 FROM tab0
----
5538
5538
5538

query I rowsort
SELECT DISTINCT + - ( - col0 ) * - - col1 + - - col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT DISTINCT col0 + + - 80 AS col2 FROM tab1
----
-29
11
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 - + - 9 IN ( - 60, col1, + + ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + 32 FROM tab2
----
-26
-8
9

query I rowsort
SELECT + 51 + col2 AS col0 FROM tab2
----
109
74
91

query I rowsort
SELECT - - col2 + 57 + + col2 * col2 FROM tab2 AS cor0 WHERE NULL < + col2 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL + COUNT( * ) + - - 7 * - - COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL + COUNT ( * ) + - - 7 * - - COUNT ( * ) FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 79 col1 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2258
SELECT DISTINCT CAST( - + col2 AS SIGNED ) + + + col0 AS col2, CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
-45
NULL
23
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-2258
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) + + + col0 AS col2, CAST ( NULL AS REAL ) FROM tab1 cor0
----
-45
NULL
23
NULL
26
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT - - col2 DIV + 83 + - 1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - - col2 / + 83 + - 1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL - 72 DIV - ( + col1 ) + + 44 AS col0 FROM tab0 AS cor0
----
116
44
47

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - 72 / - ( + col1 ) + + 44 AS col0 FROM tab0 AS cor0
----
116
44
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT COUNT( * ) + - - 56 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT COUNT ( * ) + - - 56 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT 70 * + MAX( DISTINCT col2 ) - + COUNT( * ) AS col2, COUNT( - col0 ) FROM tab0
----
6927
3

skipif mysql # not compatible
query II rowsort label-2262
SELECT 70 * + MAX ( DISTINCT col2 ) - + COUNT ( * ) AS col2, COUNT ( - col0 ) FROM tab0
----
6927
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT COUNT( * ) - + 15 AS col1, 37 AS col2 FROM tab2
----
-12
37

skipif mysql # not compatible
query II rowsort label-2263
SELECT COUNT ( * ) - + 15 AS col1, 37 AS col2 FROM tab2
----
-12
37

query I rowsort
SELECT ALL col0 - + + ( 49 ) AS col2 FROM tab1
----
2
36
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT - 82 - + + COUNT( * ) AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT - 82 - + + COUNT ( * ) AS col0 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - 88 * SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
17512

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - 88 * SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
17512

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 + + col0 + - col2 + col1 * - ( - col1 ) * - col1 * - + col0 + - col1 IN ( - - 51 * - 81 - + col1 * + 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2 WHERE + - 34 / col0 <> + + col0 * - 59
----
-66

query II rowsort
SELECT DISTINCT - col1 AS col0, + col0 AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT DISTINCT - + col0 DIV - 75 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT - + col0 / - 75 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - - 99 FROM tab0 AS cor0 WHERE NOT 3 IS NOT NULL
----

query II rowsort
SELECT 48, col1 FROM tab0
----
48
1
48
21
48
81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + col2 + - col1 / col1 + + - col2 + - col2 + 76, - col2 * + col0 )
----

query II rowsort
SELECT DISTINCT col1 AS col1, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT col1 * + 8 FROM tab1
----
112
376
40

query I rowsort
SELECT - 0 * + col1 * - col0 + col2 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 19 ) col2 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab1 WHERE - + ( + col1 ) + + + 49 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 42 + - - 13 - + ( - col0 ) * - + col2 * - + col0 + - col1 * 4 + - - col1 FROM tab0
----
10387
75682
931543

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL - COUNT( * ) * - COUNT( ALL + col0 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - COUNT ( * ) * - COUNT ( ALL + col0 ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT 60 + + + COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2281
SELECT 60 + + + COUNT ( * ) AS col2 FROM tab1
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 + + 51 AND NULL
----

query II rowsort
SELECT - col0 AS col1, + 60 FROM tab1 AS cor0
----
-51
60
-85
60
-91
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT DISTINCT + col0 + col1 DIV + 28 AS col2 FROM tab2 AS cor0
----
47
66
77

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT + col0 + col1 / + 28 AS col2 FROM tab2 AS cor0
----
47
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + MAX( DISTINCT ( - + 86 ) ) FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2285
SELECT + MAX ( DISTINCT ( - + 86 ) ) FROM tab1 cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT + - 14 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + - 14 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

query II rowsort
SELECT DISTINCT - - ( - col2 ), + col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - + col1 + + - col0 * 7 + col1 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2289
SELECT + + ( + ( + + 36 ) ) + + 62 - + - ( + + 92 ) DIV + - 33 AS col1, COUNT( * ) * + 61 AS col1 FROM tab2 AS cor0
----
96
183

skipif mysql # not compatible
query II rowsort label-2289
SELECT + + ( + ( + + 36 ) ) + + 62 - + - ( + + 92 ) / + - 33 AS col1, COUNT ( * ) * + 61 AS col1 FROM tab2 AS cor0
----
96
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL + MIN( ALL + col0 ) + - 41 * - COUNT( * ) * SUM( ALL col0 ) FROM tab2 AS cor0
----
22801

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL + MIN ( ALL + col0 ) + - 41 * - COUNT ( * ) * SUM ( ALL col0 ) FROM tab2 AS cor0
----
22801

query I rowsort
SELECT - 27 + - col1 AS col0 FROM tab1 AS cor0
----
-32
-41
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL COUNT( * ) - + - COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL SUM( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL SUM ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

query II rowsort
SELECT - 24, col0 * - col2 * col2 AS col0 FROM tab2
----
-24
-102400
-24
-24334
-24
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2296
SELECT ALL + col1 AS col2, - CAST( + 52 AS SIGNED ) * - col0 AS col0 FROM tab2
----
51
2392
67
3900
77
3328

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL + col1 AS col2, - CAST ( + 52 AS INTEGER ) * - col0 AS col0 FROM tab2
----
51
2392
67
3900
77
3328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2297
SELECT ALL 98 col2, 66 * - - CAST( NULL AS SIGNED ) FROM tab0
----
98
NULL
98
NULL
98
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2297
SELECT ALL 98 col2, 66 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
98
NULL
98
NULL
98
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) >= + col2 + + - col2 + + ( - 36 ) * + col0
----

query I rowsort
SELECT DISTINCT 87 * + col2 FROM tab2 cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2300
SELECT - + MIN( ALL - - 57 ) * - - CAST( NULL AS SIGNED ), 26 * + - ( - + 97 ) col2 FROM tab2 AS cor0
----
NULL
2522

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2300
SELECT - + MIN ( ALL - - 57 ) * - - CAST ( NULL AS INTEGER ), 26 * + - ( - + 97 ) col2 FROM tab2 AS cor0
----
NULL
2522

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT DISTINCT + col1 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + col1 / - + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 / + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + 7 * col0 * - col0 * - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + 7 * col0 * - col0 * - col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + + 27 FROM tab0 WHERE NOT col1 BETWEEN NULL AND + col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2306
SELECT COUNT( * ) AS col2, + 94 - + CAST( NULL AS SIGNED ) - - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2306
SELECT COUNT ( * ) AS col2, + 94 - + CAST ( NULL AS INTEGER ) - - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - 92 / - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL NOT BETWEEN - + col0 + + + col2 AND + + 95
----

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 92 / - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN - + col0 + + + col2 AND + + 95
----

query I rowsort
SELECT col1 + - + col2 + + col1 FROM tab0 AS cor0
----
-97
115
32

query II rowsort
SELECT - + col2 + col1, 13 + - - col2 + + + 81 * + 38 + col2 AS col0 FROM tab2 AS cor0
----
28
3137
37
3171
9
3207

query I rowsort
SELECT ALL + + col0 * - + 67 * 82 AS col2 FROM tab0 AS cor0
----
-477978
-532918
-82410

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + + 8 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + + 8 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT + 39 + + + col2 AS col1 FROM tab1 AS cor0
----
107
135
98

query I rowsort
SELECT ALL + col1 + 90 AS col1 FROM tab2 AS cor0
----
141
157
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 + - col1 col1 FROM tab1 AS cor0
----
-10
23
32

query II rowsort
SELECT + col1 * - col2 AS col1, + ( col1 ) * col2 FROM tab1 AS cor0
----
-1344
1344
-295
295
-3196
3196

query III rowsort
SELECT * FROM tab2 WHERE col0 / 68 * - 40 / - col0 IS NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE - col2 >= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT CAST( NULL AS SIGNED ) * 69 / - + MIN( ALL col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 69 / - + MIN ( ALL col0 ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 3 ) col2 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT - ( + - ( - + col0 ) ) DIV + + 41 AS col2 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2321
SELECT - ( + - ( - + col0 ) ) / + + 41 AS col2 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT ALL 90 * + col1 FROM tab0
----
1890
7290
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT ALL 17 DIV - 15 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL 17 / - 15 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 + + ( - - 8 ) FROM tab1 AS cor0
----
104
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT - ( + col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT - ( + col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2326
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 76 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2328
SELECT ALL col1 + - - 34 * col0 + + col0 * + 52, - 4 DIV + + col1 AS col0 FROM tab2 cor0
----
4007
0
5581
0
6517
0

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL col1 + - - 34 * col0 + + col0 * + 52, - 4 / + + col1 AS col0 FROM tab2 cor0
----
4007
0
5581
0
6517
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT DISTINCT col1 + - + 37 * 97 * + + col0 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT col1 + - + 37 * 97 * + + col0 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT + COUNT( * ) + + 99 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
108

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT + COUNT ( * ) + + 99 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
108

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab1 WHERE NOT ( - + col2 ) IS NULL
----
37
44
80

query I rowsort
SELECT DISTINCT + 10 - 48 FROM tab2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT ALL 23 DIV COUNT( * ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL 23 / COUNT ( * ) AS col1 FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2334
SELECT DISTINCT - CAST( - CAST( + col0 AS DECIMAL ) AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - CAST ( - CAST ( + col0 AS REAL ) AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col0 ) col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-23
2601
-40
5929
-58
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + COUNT( * ) * + 4 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2337
SELECT + COUNT ( * ) * + 4 FROM tab0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, col1 * col0 col0 FROM tab2
----
23
2346
40
4928
58
5025

query I rowsort
SELECT ALL + 63 AS col1 FROM tab1 WHERE NOT - col0 NOT IN ( - 29 / + + col2 + + + col1, + col1, - 66 * 1 + - col2 + - 16, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT + 54 * - + COUNT( * ) FROM tab0 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT + 54 * - + COUNT ( * ) FROM tab0 cor0
----
-162

query I rowsort
SELECT - - col0 * + + ( - - col0 ) * + 98 * + ( col1 ) FROM tab2 AS cor0
----
10575768
30908416
36933750

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 + 80 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 + 80 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + 83 * - 7 + COUNT( * ) + + 93 FROM tab0 AS cor0 WHERE NOT ( NOT + + 95 + - col2 / - + 11 IS NOT NULL )
----
-485

skipif mysql # not compatible
query I rowsort label-2343
SELECT + 83 * - 7 + COUNT ( * ) + + 93 FROM tab0 AS cor0 WHERE NOT ( NOT + + 95 + - col2 / - + 11 IS NOT NULL )
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - COUNT( DISTINCT - - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - COUNT ( DISTINCT - - col2 ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT ALL + col2 * ( col2 ) AS col2, col2 + col1 AS col0 FROM tab2
----
1600
117
3364
125
529
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT + MAX( ALL + + col2 ) + 80 + - + ( - - 70 ) FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + MAX ( ALL + + col2 ) + 80 + - + ( - - 70 ) FROM tab0 AS cor0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT COUNT( * ) FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( * ) FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - 20 + + ( col2 ) + 44 AS col2 FROM tab1 AS cor0
----
120
83
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - 33 col1 FROM tab2 AS cor0
----
18
34
44

query I rowsort
SELECT DISTINCT 1 * - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT + 48 + - - COUNT( * ) * 61 DIV 40 AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 48 + - - COUNT ( * ) * 61 / 40 AS col0 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT - 98 * MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
4998

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - 98 * MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
4998

query I rowsort
SELECT DISTINCT col0 * 4 AS col2 FROM tab1
----
204
340
364

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - 57 * 89 / + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT COUNT( * ) + + 98 AS col0 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT COUNT ( * ) + + 98 AS col0 FROM tab2 AS cor0
----
101

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT + col1 DIV + + col1 AS col0, + 28 AS col0 FROM tab1 AS cor0
----
1
28
1
28
1
28

skipif mysql # not compatible
query II rowsort label-2356
SELECT + col1 / + + col1 AS col0, + 28 AS col0 FROM tab1 AS cor0
----
1
28
1
28
1
28

query I rowsort
SELECT 80 - + ( + col0 ) * - col0 AS col2 FROM tab1
----
2681
7305
8361

query I rowsort
SELECT ALL + 43 - 64 FROM tab0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL COUNT( * ) - 30 AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL COUNT ( * ) - 30 AS col1 FROM tab0
----
-27

query I rowsort
SELECT 10 * + col1 * + + 77 FROM tab1 cor0
----
10780
36190
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - SUM( + - 27 ) * - - COUNT( * ) * MAX( + 71 ) AS col1 FROM tab1 AS cor0
----
17253

skipif mysql # not compatible
query I rowsort label-2361
SELECT - SUM ( + - 27 ) * - - COUNT ( * ) * MAX ( + 71 ) AS col1 FROM tab1 AS cor0
----
17253

query I rowsort
SELECT ALL col2 + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 55 * - col2 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT 12 < - - col1 * - 19
----
23
40
58

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - col1 * - 76 FROM tab2 AS cor0
----
3876
5092
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL ( COUNT( DISTINCT + 68 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL ( COUNT ( DISTINCT + 68 ) ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT - + COUNT( * ) DIV + 27 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2368
SELECT - + COUNT ( * ) / + 27 FROM tab1 cor0
----
0

query I rowsort
SELECT ( ( + + 43 ) ) FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT - col0 - - 2 + - + CAST( + col2 AS SIGNED ) + - - col0 FROM tab0 WHERE NOT - 19 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2370
SELECT - col0 - - 2 + - + CAST ( + col2 AS INTEGER ) + - - col0 FROM tab0 WHERE NOT - 19 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + SUM( DISTINCT - 50 ) AS col0 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + SUM ( DISTINCT - 50 ) AS col0 FROM tab2
----
-50

query III rowsort
SELECT ALL * FROM tab1 WHERE + 40 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 38 * + - 73 * 25 AS col1 FROM tab0
----
-69350
-69350
-69350

query I rowsort
SELECT ( - - 22 ) FROM tab2
----
22
22
22

query II rowsort
SELECT DISTINCT 82, 15 AS col1 FROM tab0
----
82
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 col1 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT DISTINCT 77 * + + COUNT( * ) AS col1, - ( + COUNT( * ) ) AS col0 FROM tab0
----
231
-3

skipif mysql # not compatible
query II rowsort label-2377
SELECT DISTINCT 77 * + + COUNT ( * ) AS col1, - ( + COUNT ( * ) ) AS col0 FROM tab0
----
231
-3

query I rowsort
SELECT ALL - 9 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL - col0 + - - col0 * + - col2 * - 25 FROM tab1 AS cor0
----
122349
125290
154609

query II rowsort
SELECT DISTINCT - col0 + + - 34 AS col1, ( - 77 ) FROM tab0 AS cor0
----
-121
-77
-131
-77
-49
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT + MAX( 67 ) + - - COUNT( DISTINCT 79 ) col1 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2381
SELECT DISTINCT + MAX ( 67 ) + - - COUNT ( DISTINCT 79 ) col1 FROM tab2 AS cor0
----
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 31 + col0 <> + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 72 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT - MIN( DISTINCT + ( col2 ) ) * + + 44 * - + 23 AS col0 FROM tab2
----
23276

skipif mysql # not compatible
query I rowsort label-2384
SELECT - MIN ( DISTINCT + ( col2 ) ) * + + 44 * - + 23 AS col0 FROM tab2
----
23276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT - col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * col1 * - col2 * - - col1 AS col0 FROM tab1
----
125375
13669292
959616

onlyif mysql # aggregate syntax: 
query II rowsort label-2388
SELECT + + COUNT( * ) AS col0, COUNT( * ) FROM tab2 WHERE col0 * + - 58 * + - col0 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2388
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 WHERE col0 * + - 58 * + - col0 IS NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT ALL 11 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL 11 / + col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2390
SELECT col1 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT col1 - - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT + - COUNT( * ) + + 41 AS col1 FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT + - COUNT ( * ) + + 41 AS col1 FROM tab1 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) = NULL
----
0

query I rowsort
SELECT ALL - 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL 25 * + 17 AS col0 FROM tab0 AS cor0 WHERE NOT + 47 BETWEEN NULL AND - col1
----
425
425
425

query I rowsort
SELECT + col2 * + col1 - - + col1 + - + col0 FROM tab2 AS cor0 WHERE NOT + ( - + 77 ) * 91 + col1 NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT - - col2 * - col0 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
-1058
-51
-2560
-77
-4350
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT - col1 DIV + + CAST( + col0 AS SIGNED ) * - - col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - col1 / + + CAST ( + col0 AS INTEGER ) * - - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT ALL COUNT( * ) DIV + - ( + 90 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL COUNT ( * ) / + - ( + 90 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 78 / - - col1 / - - col1 <= NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2401
SELECT CAST( NULL AS SIGNED ) * + COUNT( - + CAST( col1 AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( - + CAST ( col1 AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2402
SELECT + col1 col2, + ( ( + - col1 ) ) DIV - + col0 AS col2 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2402
SELECT + col1 col2, + ( ( + - col1 ) ) / - + col0 AS col2 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - 84 * + 64 - + col0 + + - col2 FROM tab0 cor0
----
-5438
-5473
-5572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT + col2 / col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT + col2 / col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * - + 80 + - col2 + - + 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 55 AS col0, col0 FROM tab1 AS cor0
----
-55
51
-55
85
-55
91

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL > 77
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT col2 + col1 + col1 - 58 + - col2 AS col0 FROM tab1 AS cor0
----
-30
-48
36

query I rowsort
SELECT - 53 + - ( + 21 ) + - - col2 + + col2 + - - col2 * col2 * - 42 FROM tab2 AS cor0
----
-141246
-22246
-67194

query I rowsort
SELECT + col2 + - col2 * + 67 AS col0 FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT - col1 + - ( + col2 ) AS col1 FROM tab1 cor0
----
-110
-115
-64

query II rowsort
SELECT ALL - 42 + + col0 AS col0, + col2 FROM tab0 AS cor0
----
-27
47
45
10
55
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT 9 + + + SUM( + - col0 ) AS col0 FROM tab0
----
-190

skipif mysql # not compatible
query I rowsort label-2414
SELECT 9 + + + SUM ( + - col0 ) AS col0 FROM tab0
----
-190

query I rowsort
SELECT - 37 * col0 + - col2 FROM tab2
----
-1725
-2408
-2833

query I rowsort
SELECT - 33 AS col0 FROM tab1 WHERE + + col2 IS NOT NULL
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT DISTINCT - COUNT( - CAST( - 62 AS SIGNED ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT - COUNT ( - CAST ( - 62 AS INTEGER ) ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2418
SELECT DISTINCT + col2 DIV + CAST( + - col0 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-10
-100
-50

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + col2 / + CAST ( + - col0 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-10
-100
-50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 67 / - col0 AND ( - 25 ) * + 78
----

query I rowsort
SELECT - col1 - + - 4 AS col2 FROM tab2 AS cor0
----
-47
-63
-73

query I rowsort
SELECT + col1 - + 80 FROM tab0 AS cor0
----
-59
-79
1

query I rowsort
SELECT ALL - 4 * + 57 + + col1 FROM tab2 AS cor0
----
-151
-161
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT - 79 DIV + + col2 + - - col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-2423
SELECT - 79 / + + col2 + - - col0 FROM tab1 AS cor0
----
51
84
90

query I rowsort
SELECT + + 78 AS col0 FROM tab1 cor0
----
78
78
78

query II rowsort
SELECT ALL col0 AS col1, - 68 FROM tab0
----
15
-68
87
-68
97
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2426
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT 5 AS col0, + col1 FROM tab1 AS cor0
----
5
14
5
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT - - COUNT( * ) * - - 76 col0 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2429
SELECT - - COUNT ( * ) * - - 76 col0 FROM tab1 AS cor0
----
228

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 46 + col2 + - col1 NOT BETWEEN + col0 * 98 / - + 1 AND ( + 0 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT ALL COUNT( * ) col2, 31 + + ( SUM( DISTINCT + - col2 ) ) * + - 78 col1 FROM tab2 cor0
----
3
9469

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2432
SELECT ALL COUNT ( * ) col2, 31 + + ( SUM ( DISTINCT + - col2 ) ) * + - 78 col1 FROM tab2 cor0
----
3
9469

query I rowsort
SELECT DISTINCT + 7 * - 89 FROM tab1 AS cor0
----
-623

query I rowsort
SELECT + - col1 * + - col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + + col2 * 13 + + - col2 AS col1 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT col0 DIV 90 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2436
SELECT col0 / 90 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col2 * ( - - ( 22 ) ) FROM tab1
----
1298
1496
2112

query I rowsort
SELECT DISTINCT - col1 * - ( - - col2 ) FROM tab2
----
1173
3080
3886

query II rowsort
SELECT - ( - col2 ) AS col2, - col0 + col2 FROM tab1 cor0
----
59
-26
68
-23
96
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( ( NOT col1 - - 54 IN ( - ( + 60 ) * - ( - - 57 ) ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT SUM( ALL + 32 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2441
SELECT SUM ( ALL + 32 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT DISTINCT - 86 * 66 + + - col1 AS col2 FROM tab1 cor0
----
-5681
-5690
-5723

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col1 - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 18 + - col2 col2 FROM tab2
----
391
680
986

query I rowsort
SELECT DISTINCT + + col1 + + - ( + col2 ) + + ( 88 ) - - + 75 * - 75 * - + col0 * + 61 + + col2 AS col2 FROM tab2 AS cor0
----
15783889
21960165
25734530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT + CAST( + ( + col0 ) AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-2446
SELECT + CAST ( + ( + col0 ) AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + 57
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2448
SELECT + 54, COUNT( * ) AS col0 FROM tab2 AS cor0
----
54
3

skipif mysql # not compatible
query II rowsort label-2448
SELECT + 54, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= col0 + - 53 + + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col2 ) * - 43 FROM tab0 AS cor0
----
2021
4257
430

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * 27 col1 FROM tab0 cor0
----
-405
-405
-405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE + 36 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT DISTINCT 69 * + + 72 + - MIN( col0 ) FROM tab0 AS cor0
----
4953

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT 69 * + + 72 + - MIN ( col0 ) FROM tab0 AS cor0
----
4953

query I rowsort
SELECT DISTINCT + col1 - + 0 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL - - col2 + - CAST( NULL AS SIGNED ) + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - - col2 + - CAST ( NULL AS INTEGER ) + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 35 - 42 * - col1 + - - ( 36 ) AS col0, + 72 * - col2 AS col2 FROM tab1 AS cor0
----
1975
-4896
211
-4248
589
-6912

query I rowsort
SELECT - 35 * - 95 AS col1 FROM tab0 cor0
----
3325
3325
3325

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 + - col2 / - ( - + col1 ) * col1 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 WHERE - + 87 / - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT 6 - + 88 AS col0 FROM tab2
----
-82
-82
-82

query II rowsort
SELECT ALL col1 AS col1, - col1 * + col0 * 9 AS col0 FROM tab2
----
51
-21114
67
-45225
77
-44352

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + ( - 77 ) - - MAX( DISTINCT col2 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + ( - 77 ) - - MAX ( DISTINCT col2 ) FROM tab2
----
-19

query I rowsort
SELECT col2 - - 22 - + - ( + - 96 ) FROM tab0
----
-27
-64
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT + col1 + + + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-2465
SELECT + col1 + + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / + 41 NOT BETWEEN - col2 AND 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( + col1 ) col2, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = - 37 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - 20 * COUNT( * ) FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - 20 * COUNT ( * ) FROM tab0 cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT ALL col1 DIV - + col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2470
SELECT ALL col1 / - + col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT - SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT - SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - + 52 * + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-2472
SELECT - + 52 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
-156

query II rowsort
SELECT DISTINCT + col2 + + col1, + col2 FROM tab1 AS cor0
----
110
96
115
68
64
59

query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab2 WHERE NOT + col2 * - 21 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL COUNT( DISTINCT col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL COUNT ( DISTINCT col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT - col1 * + - col2 * - CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT + 97 <> col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2476
SELECT - col1 * + - col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT + 97 <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT DISTINCT + 82 * - + MIN( DISTINCT - + col0 ), + COUNT( * ) AS col1 FROM tab1
----
7462
3

skipif mysql # not compatible
query II rowsort label-2477
SELECT DISTINCT + 82 * - + MIN ( DISTINCT - + col0 ), + COUNT ( * ) AS col1 FROM tab1
----
7462
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 76 col0 FROM tab2
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL MIN( + col2 ) * 9 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL MIN ( + col2 ) * 9 FROM tab0
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2480
SELECT ALL + 32 * - col1 DIV + CAST( col1 AS SIGNED ) FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + 32 * - col1 / + CAST ( col1 AS INTEGER ) FROM tab0
----
-32
-32
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2481
SELECT * FROM tab0 AS cor0 WHERE ( + 15 ) * + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2481
SELECT * FROM tab0 AS cor0 WHERE ( + 15 ) * + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - - col0 AS col2, ( 93 ) * col0 AS col2 FROM tab0 AS cor0 WHERE - col1 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + + 16 * + ( + COUNT( * ) ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2483
SELECT + + 16 * + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * - col1 col0 FROM tab2 WHERE ( NOT col0 * col1 - 95 IS NULL )
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + MAX( + + 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-2485
SELECT + MAX ( + + 95 ) FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT + SUM( DISTINCT + - col2 ) AS col0, MAX( ALL - col2 ) AS col1 FROM tab0
----
-156
-10

skipif mysql # not compatible
query II rowsort label-2486
SELECT + SUM ( DISTINCT + - col2 ) AS col0, MAX ( ALL - col2 ) AS col1 FROM tab0
----
-156
-10

query I rowsort
SELECT ALL + - 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + 42 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT 63 - - col2 AS col0 FROM tab0
----
110
162
73

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 70 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col0 * + col1 + + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL MIN( ALL 28 ) + + COUNT( * ) + - MAX( ALL - - col2 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL MIN ( ALL 28 ) + + COUNT ( * ) + - MAX ( ALL - - col2 ) FROM tab0 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 8 col2 FROM tab2 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + col1 col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT - + 91 * + + col1, col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-4641
46
-6097
75
-7007
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2496
SELECT 7 * + COUNT( * ) DIV - COUNT( * ) + + MIN( ALL + 38 ) AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2496
SELECT 7 * + COUNT ( * ) / - COUNT ( * ) + + MIN ( ALL + 38 ) AS col0 FROM tab2 AS cor0
----
31

query II rowsort
SELECT ALL col0 + - - col2 - col2 + + col1 AS col0, - 58 AS col1 FROM tab0 AS cor0
----
108
-58
96
-58
98
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT - - 55 + - col1 * + 23 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-1118
-1486
-1716

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - - 55 + - col1 * + 23 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-1118
-1486
-1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT col0 - - - col2 col0 FROM tab2 WHERE + col1 + + col2 - + 61 * + col2 * - CAST( col0 AS SIGNED ) >= - + col0
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2499
SELECT col0 - - - col2 col0 FROM tab2 WHERE + col1 + + col2 - + 61 * + col2 * - CAST ( col0 AS INTEGER ) >= - + col0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT DISTINCT - 26 - col2 + - + col1 DIV + ( - col0 ) AS col2 FROM tab0
----
-125
-36
-68

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - 26 - col2 + - + col1 / + ( - col0 ) AS col2 FROM tab0
----
-125
-36
-68

query III rowsort
SELECT * FROM tab0 WHERE NULL <= col0 + - 51 + col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - COUNT( DISTINCT - 23 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - COUNT ( DISTINCT - 23 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL SUM( ALL - 54 ) * + CAST( - 33 AS SIGNED ) FROM tab1
----
5346

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL SUM ( ALL - 54 ) * + CAST ( - 33 AS INTEGER ) FROM tab1
----
5346

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL IN ( + col2, col2, + 80 * col2 * + col1, col2 ) )
----

query I rowsort
SELECT - - 97 * - col1 AS col1 FROM tab1 AS cor0
----
-1358
-4559
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT - - 88 DIV - col0 FROM tab0 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT - - 88 / - col0 FROM tab0 cor0
----
-1
-5
0

query I rowsort
SELECT + 13 * - + col1 AS col1 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT DISTINCT + - 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-60

query I rowsort
SELECT DISTINCT 86 * col0 AS col0 FROM tab2
----
3956
5504
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - + COUNT( + 77 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2510
SELECT - + COUNT ( + 77 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col0 * - - 14 AS col1 FROM tab0 AS cor0
----
1218
1358
210

query I rowsort
SELECT DISTINCT - 91 FROM tab1 AS cor0 WHERE 26 IS NOT NULL
----
-91

query II rowsort
SELECT DISTINCT - + 84 AS col0, col1 FROM tab0 AS cor0
----
-84
1
-84
21
-84
81

query I rowsort
SELECT + + 13 AS col1 FROM tab1 cor0
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 = col1
----

query I rowsort
SELECT DISTINCT - - col1 + + col2 * + col2 * - col1 FROM tab0 AS cor0
----
-178848
-2079
-9800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2517
SELECT - - col2 AS col2, 49 * + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2517
SELECT - - col2 AS col2, 49 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT SUM( + 0 ) AS col1 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT SUM ( + 0 ) AS col1 FROM tab2, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL MAX( ALL + 67 ) * + 44 AS col0 FROM tab0
----
2948

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL MAX ( ALL + 67 ) * + 44 AS col0 FROM tab0
----
2948

query I rowsort
SELECT - col0 * + - col2 * - 42 FROM tab1
----
-205632
-210630
-259896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2521
SELECT DISTINCT + MAX( DISTINCT 78 ) DIV + ( 31 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + MAX ( DISTINCT 78 ) / + ( 31 ) AS col1 FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2522
SELECT CAST( - - col2 AS SIGNED ) DIV - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2522
SELECT CAST ( - - col2 AS INTEGER ) / - col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT ALL 19 * - col0 AS col2 FROM tab1
----
-1615
-1729
-969

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 20 - - col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT col1 DIV - col2 * - 61 * + + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT col1 / - col2 * - 61 * + + col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL + CAST( NULL AS SIGNED ) * - + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + CAST ( NULL AS INTEGER ) * - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT + col0 + + 99 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL >= ( NULL ) ) OR NOT + ( - + 1 ) >= - 57
----

query I rowsort
SELECT DISTINCT ( 41 ) FROM tab1 AS cor0 WHERE NOT - col2 < NULL OR NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2529
SELECT DISTINCT - COUNT( * ) + MIN( DISTINCT + + 57 ) + MIN( - - 68 ) + COUNT( + col0 ) DIV - - 59 AS col0, - COUNT( DISTINCT - col0 ) FROM tab2
----
122
-3

skipif mysql # not compatible
query II rowsort label-2529
SELECT DISTINCT - COUNT ( * ) + MIN ( DISTINCT + + 57 ) + MIN ( - - 68 ) + COUNT ( + col0 ) / - - 59 AS col0, - COUNT ( DISTINCT - col0 ) FROM tab2
----
122
-3

query I rowsort
SELECT DISTINCT col0 * 58 * - ( + + col0 ) FROM tab1
----
-150858
-419050
-480298

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL + SUM( + + ( + col0 ) ) * + 0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL + SUM ( + + ( + col0 ) ) * + 0 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL 83 * 83 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL SUM( + 31 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL SUM ( + 31 ) AS col2 FROM tab1 AS cor0
----
93

query I rowsort
SELECT - col2 * + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab0 cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> + 49
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL + CAST( NULL AS SIGNED ) + - 5 + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + CAST ( NULL AS INTEGER ) + - 5 + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 67 - + col1 AS col1 FROM tab0 AS cor0
----
-148
-68
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT col1 DIV + - 31 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT col1 / + - 31 AS col1 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - SUM( + col0 ) col0 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2541
SELECT ALL - SUM ( + col0 ) col0 FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - - 60 ) < col2 - + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + COUNT( + ( - + 85 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2544
SELECT + COUNT ( + ( - + 85 ) ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 68 AS col2, 80 * + - col2 FROM tab0 cor0
----
-68
-3760
-68
-7920
-68
-800

query I rowsort
SELECT + - 3 FROM tab2 WHERE NULL < NULL
----

query II rowsort
SELECT ALL - col1, - 65 AS col2 FROM tab0
----
-1
-65
-21
-65
-81
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT + 95 + + CAST( + COUNT( - col0 ) AS SIGNED ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-2548
SELECT + 95 + + CAST ( + COUNT ( - col0 ) AS INTEGER ) FROM tab1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL + COUNT( * ) * - ( COUNT( DISTINCT - - col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL + COUNT ( * ) * - ( COUNT ( DISTINCT - - col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2550
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + ( - - col0 ) * + col0 + col0 AND + CAST( NULL AS SIGNED ) * + col2 / - 8 / - + col0
----

skipif mysql # not compatible
query III rowsort label-2550
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + ( - - col0 ) * + col0 + col0 AND + CAST ( NULL AS INTEGER ) * + col2 / - 8 / - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2551
SELECT - CAST( NULL AS SIGNED ) AS col2, + 7 + + - 43 FROM tab0 WHERE ( - 3 ) IS NOT NULL
----
NULL
-36
NULL
-36
NULL
-36

skipif mysql # not compatible
query II rowsort label-2551
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 7 + + - 43 FROM tab0 WHERE ( - 3 ) IS NOT NULL
----
NULL
-36
NULL
-36
NULL
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2552
SELECT * FROM tab1 WHERE - - ( CAST( col1 AS SIGNED ) ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2552
SELECT * FROM tab1 WHERE - - ( CAST ( col1 AS INTEGER ) ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 6 FROM tab2 WHERE NOT NULL NOT BETWEEN + 62 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - MIN( ALL + - ( - + col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2555
SELECT - MIN ( ALL + - ( - + col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT COUNT( - - 30 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2556
SELECT COUNT ( - - 30 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 44 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) - - ( + 10 ) col1 FROM tab0
----
-37
-89
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = col1 * + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 62 * + - col2 AS col0 FROM tab2 AS cor0
----
-1426
-2480
-3596

query I rowsort
SELECT - col0 * col0 * + ( + 59 ) AS col0 FROM tab1 AS cor0
----
-153459
-426275
-488579

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ( + ( - COUNT( * ) ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2563
SELECT ( + ( - COUNT ( * ) ) ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT - col0 AS col0, + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col2 * - 2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 39 - + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + 59 AS col2 FROM tab1 cor0
----
3481
4012
5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT + CAST( NULL AS SIGNED ) * - 22 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT + CAST ( NULL AS INTEGER ) * - 22 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL - COUNT( * ) * + 36 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - COUNT ( * ) * + 36 FROM tab0 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT MAX( col2 ) + - 10 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-2570
SELECT MAX ( col2 ) + - 10 FROM tab1
----
86

query I rowsort
SELECT + col2 * col2 + col2 FROM tab0 WHERE NOT ( col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 51 col0 FROM tab1 WHERE NOT - col2 < 52
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 95 - col0 FROM tab0
----
-110
-182
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL - COUNT( * ) - - SUM( ( + ( 95 ) ) ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - COUNT ( * ) - - SUM ( ( + ( 95 ) ) ) FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL - COUNT( ALL - ( col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - COUNT ( ALL - ( col1 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - 38 * + COUNT( ALL + col2 ) AS col1 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 38 * + COUNT ( ALL + col2 ) AS col1 FROM tab0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - COUNT( * ) * 63 AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-2578
SELECT - COUNT ( * ) * 63 AS col1 FROM tab0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT - col2 * - 25 + 42 FROM tab1 WHERE ( col0 ) + CAST( NULL AS SIGNED ) IN ( col1 * + 53 )
----

skipif mysql # not compatible
query I rowsort label-2579
SELECT - col2 * - 25 + 42 FROM tab1 WHERE ( col0 ) + CAST ( NULL AS INTEGER ) IN ( col1 * + 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL + 17 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + 17 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 73 + + col2 * 49 FROM tab0
----
2376
4924
563

query I rowsort
SELECT 58 + 6 AS col0 FROM tab0
----
64
64
64

query I rowsort
SELECT col2 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * ( - col0 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * 29 + + 62 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 11 * + ( col0 * col0 ) < NULL
----

query I rowsort
SELECT ALL + 71 * - col2 AS col0 FROM tab0
----
-3337
-7029
-710

query I rowsort
SELECT col0 * 11 + + 82 FROM tab2
----
588
786
907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 12 - - col2 FROM tab2
----
35
52
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 68 ) > - 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 97 ) > col0 * + 81
----

query I rowsort
SELECT 55 * + 34 + + col0 * col1 FROM tab0 AS cor0
----
1967
3085
3697

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL - SUM( ALL + 91 ) + - 68 AS col2 FROM tab1 AS cor0
----
-341

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - SUM ( ALL + 91 ) + - 68 AS col2 FROM tab1 AS cor0
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT - COUNT( col0 ) * MAX( - 20 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT - COUNT ( col0 ) * MAX ( - 20 ) AS col1 FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - ( - MIN( ALL - 75 ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2599
SELECT - ( - MIN ( ALL - 75 ) ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT COUNT( * ) FROM tab0 WHERE 39 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT COUNT ( * ) FROM tab0 WHERE 39 IS NULL
----
0

query I rowsort
SELECT + 78 * col0 AS col2 FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT - MIN( ALL 34 ) * 89 FROM tab1
----
-3026

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - MIN ( ALL 34 ) * 89 FROM tab1
----
-3026

query I rowsort
SELECT 33 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col0 ) >= NULL
----

query I rowsort
SELECT + - 74 * 25 FROM tab2 AS cor0
----
-1850
-1850
-1850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT + COUNT( * ) DIV + 35 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT + COUNT ( * ) / + 35 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 90 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( NULL ) AND - col1
----
-90
-90
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2608
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 / + col1 ) NOT BETWEEN 20 AND ( CAST( NULL AS DECIMAL ) * + 78 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2608
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 / + col1 ) NOT BETWEEN 20 AND ( CAST ( NULL AS REAL ) * + 78 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 + - 80 AND ( col1 + + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 + - 80 AND ( col1 + + CAST ( NULL AS INTEGER ) * - col1 )
----

query I rowsort
SELECT + col0 * - ( - 59 * col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 / - col2 BETWEEN 6 * + col0 - 60 AND ( - 57 + col1 )
----
13275
446571
555131

query I rowsort
SELECT DISTINCT - 81 * col1 AS col2 FROM tab2 AS cor0
----
-4131
-5427
-6237

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL - - 18 * MIN( + col0 ) FROM tab1 AS cor0
----
918

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - - 18 * MIN ( + col0 ) FROM tab1 AS cor0
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + COUNT( - col2 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2614
SELECT + COUNT ( - col2 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + 10 + - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-36
-54
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 60 FROM tab0 WHERE NULL > 55 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT + 70 * COUNT( * ) * - 20 AS col0 FROM tab0
----
-4200

skipif mysql # not compatible
query I rowsort label-2618
SELECT + 70 * COUNT ( * ) * - 20 AS col0 FROM tab0
----
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT COUNT( * ) FROM tab1 WHERE NOT 89 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2619
SELECT COUNT ( * ) FROM tab1 WHERE NOT 89 IS NULL
----
3

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT col1 < - col0 + col0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT * FROM tab1 WHERE NOT ( NULL ) <= ( col1 + - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT * FROM tab1 WHERE NOT ( NULL ) <= ( col1 + - CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col2 * + 47 FROM tab1 cor0
----
2773
3196
4512

query I rowsort
SELECT ALL - col1 * - col2 FROM tab2 AS cor0 WHERE NOT ( + 76 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL SUM( 56 ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - 0 * 72 + - 26 / 51 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL SUM ( 56 ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - 0 * 72 + - 26 / 51 AND NULL
----
NULL

query I rowsort
SELECT - 77 FROM tab2 AS cor0 WHERE NOT - col2 / - col1 NOT BETWEEN + col0 * - 11 + 80 * 98 AND ( col0 - + col1 )
----

query I rowsort
SELECT ALL col0 + - col1 FROM tab1 AS cor0 WHERE NOT col0 = col1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL COUNT( + + 18 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL COUNT ( + + 18 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 36 * + - col1 AS col0 FROM tab2
----
-1836
-2412
-2772

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 AS col1, 75 FROM tab2
----
-46
75
-64
75
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - - col2 >= 20
----

skipif mysql # not compatible
query I rowsort label-2631
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - - col2 >= 20
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col1 + 27 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( col1 ) < ( col1 )
----

query I rowsort
SELECT ALL - 1 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col0 + + col0 )
----
-1
-1
-1

query II rowsort
SELECT 12 AS col1, - col2 + col0 FROM tab2 AS cor0
----
12
17
12
23
12
24

query I rowsort
SELECT ALL - col2 * - 27 FROM tab2 AS cor0
----
1080
1566
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL - - col2 + - CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - - col2 + - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT MIN( DISTINCT - - col1 ) + + ( MIN( DISTINCT col0 ) ) + COUNT( * ) AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT MIN ( DISTINCT - - col1 ) + + ( MIN ( DISTINCT col0 ) ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
59

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - - col0 ) <> col2 OR NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 15 * - - ( + col2 ) + + 46 AS col0 FROM tab0 AS cor0
----
-104
-1439
-659

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + ( col1 ) BETWEEN NULL AND ( 24 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - COUNT( * ) / - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 63 + - 26 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + col2 )
----

query I rowsort
SELECT + ( - col0 ) * col1 + 6 * + 42 + 79 AS col1 FROM tab1 AS cor0
----
-383
-3946
-94

query I rowsort
SELECT col1 * - col1 + - + 83 FROM tab2
----
-2684
-4572
-6012

query I rowsort
SELECT ( - 30 ) FROM tab0 WHERE + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - COUNT( * ) * + SUM( ALL - col1 ) * - ( 83 ) + 59 AS col0 FROM tab2
----
-48496

skipif mysql # not compatible
query I rowsort label-2647
SELECT - COUNT ( * ) * + SUM ( ALL - col1 ) * - ( 83 ) + 59 AS col0 FROM tab2
----
-48496

query II rowsort
SELECT col1 * col0, + col1 FROM tab1
----
425
5
4277
47
714
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 34 + - col2 * - 54 + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + MIN( - - ( col2 ) ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2651
SELECT DISTINCT + MIN ( - - ( col2 ) ) col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( + col1 ) IN ( - 67 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 46 * - - ( + ( col0 ) ) AND ( + col0 * + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT COUNT( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - col1 + + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT COUNT ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - col1 + + col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT + col2 DIV + col2 + - col0 * col2 - ( 49 ) FROM tab0 AS cor0
----
-753
-918
-9651

skipif mysql # not compatible
query I rowsort label-2655
SELECT + col2 / + col2 + - col0 * col2 - ( 49 ) FROM tab0 AS cor0
----
-753
-918
-9651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 - - + col2 col1 FROM tab0 AS cor0
----
108
160
71

query I rowsort
SELECT - - col2 * 10 * - 34 - + + col2 + + col0 - ( + 88 ) FROM tab2 AS cor0
----
-13664
-19791
-7885

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-2658
SELECT - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 <= col1 / + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT + 12 * - + col0 / + col0 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT + ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT + 12 * - + col0 / + col0 NOT IN ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2661
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - col2 AS SIGNED ) - - 12 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2661
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) - - 12 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT - MAX( ALL - 3 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - MAX ( ALL - 3 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 = - 46 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 * + + col2 FROM tab1 AS cor0
----
295
340
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT + 73 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN 12 + - col1 - + - col1 * + ( - col0 ) AND + ( CAST( 82 AS SIGNED ) ) / - col1
----
73

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 73 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN 12 + - col1 - + - col1 * + ( - col0 ) AND + ( CAST ( 82 AS INTEGER ) ) / - col1
----
73

query I rowsort
SELECT ALL + col1 * + col2 * - + col0 + col1 * + 87 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-24640
-286747
-67326

query I rowsort
SELECT + + col2 * 52 FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT DISTINCT col2 DIV + 44 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT col2 / + 44 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2669
SELECT + + COUNT( * ), 21 DIV CAST( - 29 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-2669
SELECT + + COUNT ( * ), 21 / CAST ( - 29 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT ALL - CAST( + SUM( ALL - 30 ) AS SIGNED ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - CAST ( + SUM ( ALL - 30 ) AS INTEGER ) AS col1 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2671
SELECT DISTINCT col1, - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-2671
SELECT DISTINCT col1, - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT + col0, + col0 * - - col2 FROM tab2
----
46
1058
64
2560
75
4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + + 56
----

query I rowsort
SELECT 25 * + col1 AS col1 FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT ALL col0 * + + 72 FROM tab2 AS cor0
----
3312
4608
5400

query I rowsort
SELECT - + 53 * col0 * col2 AS col0 FROM tab0 cor0
----
-37365
-46110
-508959

query II rowsort
SELECT DISTINCT col1 AS col2, + 23 * - - col1 + + 13 - + - col1 FROM tab0 AS cor0
----
1
37
21
517
81
1957

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT col2 + + - 40 DIV - 80 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT col2 + + - 40 / - 80 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + 68 + + col0 FROM tab1
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT + COUNT( * ) * - ( - - 3 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + COUNT ( * ) * - ( - - 3 ) FROM tab0
----
-9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( NULL < NULL ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + col1 + - 93 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) AS col2 FROM tab0 AS cor0 WHERE ( ( ( NOT ( 86 IS NULL ) ) ) )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + ( - 78 ) BETWEEN ( + col0 ) AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2685
SELECT - SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + + col2 + 8 - col2 * + 47 FROM tab2 AS cor0
----
-1050
-1832
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT + + COUNT( * ) + + ( - 36 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + + COUNT ( * ) + + ( - 36 ) FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL MIN( - col1 ) + + COUNT( - ( - col0 ) ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL MIN ( - col1 ) + + COUNT ( - ( - col0 ) ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT * FROM tab1 cor0 WHERE 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + col1 * + - col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-425
-68
-4277
-96
-714

query I rowsort
SELECT ALL - col0 - - col1 * - col2 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL + COUNT( DISTINCT + 99 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + COUNT ( DISTINCT + 99 ) FROM tab0
----
1

query I rowsort
SELECT + 0 + + 84 FROM tab0
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT + CAST( - - 31 AS SIGNED ) + + MAX( DISTINCT + 17 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2694
SELECT + CAST ( - - 31 AS INTEGER ) + + MAX ( DISTINCT + 17 ) FROM tab0 AS cor0
----
48

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 NOT IN ( + 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( 32 - + + col1 + + 78 + - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT ALL + 17 col0, SUM( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
17
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2697
SELECT ALL + 17 col0, SUM ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
17
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT 13 * - 81 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2698
SELECT 13 * - 81 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( - + 11 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL - 56 FROM tab2 AS cor0 WHERE NOT + col1 * - + ( + col2 ) > + 78
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL - - 95 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 4, CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - - 95 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 4, CAST ( - + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL - ( - MAX( ALL + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - ( - MAX ( ALL + col1 ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 64 <> 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( * ) * + 43 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( * ) * + 43 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - SUM( DISTINCT - 8 ) col0 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2705
SELECT - SUM ( DISTINCT - 8 ) col0 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2706
SELECT - col2 * CAST( col0 AS SIGNED ), col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

skipif mysql # not compatible
query II rowsort label-2706
SELECT - col2 * CAST ( col0 AS INTEGER ), col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT SUM( DISTINCT - 17 ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-2707
SELECT SUM ( DISTINCT - 17 ) AS col2 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT SUM( DISTINCT + 5 ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-2708
SELECT SUM ( DISTINCT + 5 ) AS col2 FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT SUM( ALL 32 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT SUM ( ALL 32 ) FROM tab1
----
96

query I rowsort
SELECT ALL + 1 * 45 AS col0 FROM tab2
----
45
45
45

query I rowsort
SELECT 87 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
87
87
87

query II rowsort
SELECT ALL 97 * - col2, col0 FROM tab0
----
-4559
15
-9603
97
-970
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT COUNT( * ) FROM tab2 WHERE + col2 * + col0 NOT IN ( - 19 * + col0 + + + 61 + - + 24 + col0 * + col0 * + col1 * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2713
SELECT COUNT ( * ) FROM tab2 WHERE + col2 * + col0 NOT IN ( - 19 * + col0 + + + 61 + - + 24 + col0 * + col0 * + col1 * col2 )
----
3

query I rowsort
SELECT - 44 * col1 * - col1 * - - col2 FROM tab0
----
13568148
194040
4356

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT col2 < + + 42
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + 40 IS NULL
----

query I rowsort
SELECT ( - + ( col2 ) ) + + ( - col2 ) + col1 FROM tab1 AS cor0
----
-113
-178
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= NULL AND NULL > col0 * - col2 * + + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - 8 + - COUNT( * ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - 8 + - COUNT ( * ) FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT + COUNT( * ) * - AVG ( DISTINCT - - col2 ) + SUM( + - 40 ) FROM tab1 AS cor0 WHERE NULL <= CAST( - - col2 AS SIGNED ) + - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT + COUNT ( * ) * - AVG ( DISTINCT - - col2 ) + SUM ( + - 40 ) FROM tab1 AS cor0 WHERE NULL <= CAST ( - - col2 AS INTEGER ) + - + col0
----
NULL

query I rowsort
SELECT - col2 + + + 14 AS col2 FROM tab1 AS cor0
----
-45
-54
-82

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 / 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 29 * + col1 + + + 43 col0 FROM tab2
----
112737
34060
89363

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT + 65 - col2 DIV col0 FROM tab1
----
64
65

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + 65 - col2 / col0 FROM tab1
----
64
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT - - col1 * - col0 + + + 31 FROM tab0 AS cor0
----
-1184
-1796
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2727
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2728
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT col1, 8 + + col1 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND + col2 + - col2 * 86 - 6
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 99 + - col1 * - 35 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2732
SELECT - CAST( NULL AS SIGNED ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2732
SELECT - CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT - col0 * - + CAST( + col1 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
38367
97
98415

skipif mysql # not compatible
query I rowsort label-2733
SELECT - col0 * - + CAST ( + col1 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT + + 31 * ( + - COUNT( * ) ) + 63 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + + 31 * ( + - COUNT ( * ) ) + 63 FROM tab2 AS cor0
----
-30

query II rowsort
SELECT + 10, + col1 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

query II rowsort
SELECT DISTINCT + 79 AS col2, col2 + - - 8 AS col0 FROM tab1 AS cor0
----
79
104
79
67
79
76

query I rowsort
SELECT - col1 * + - 44 AS col2 FROM tab1 AS cor0
----
2068
220
616

query I rowsort
SELECT DISTINCT 89 * col0 * + + col1 FROM tab1
----
37825
380653
63546

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2741
SELECT DISTINCT COUNT( * ) + - + 90 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT COUNT ( * ) + - + 90 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT + - ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2742
SELECT + - ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 col0 FROM tab0 cor0
----
-38

query II rowsort
SELECT DISTINCT - - 94 + - ( + col2 ) + - 10 + + col1 AS col0, 70 * + 38 AS col0 FROM tab2 AS cor0
----
112
2660
121
2660
93
2660

query I rowsort
SELECT ALL 95 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - + 54 FROM tab2 WHERE 95 + - col2 * col0 IS NULL AND + 86 * + - 10 + - col2 > + + col0
----

query I rowsort
SELECT ALL col2 * col2 - + 32 + - col1 + + - col1 * - 83 * - col2 AS col2 FROM tab1
----
-102382
-21041
-260723

query I rowsort
SELECT + 45 + + col1 - col0 FROM tab2
----
37
50
58

query I rowsort
SELECT ( + + col1 ) + + - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 12 * 47 FROM tab2
----
564
564
564

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT ALL col0 * 93 DIV 58 FROM tab1
----
136
145
81

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL col0 * 93 / 58 FROM tab1
----
136
145
81

query I rowsort
SELECT ALL col1 + - - ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - COUNT( * ) * + + 75 + COUNT( * ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - COUNT ( * ) * + + 75 + COUNT ( * ) FROM tab1 AS cor0
----
-222

query II rowsort
SELECT - - 10, + col0 * - ( + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
10
-4845
10
-4930
10
-6097

query I rowsort
SELECT ALL - col0 * - + 84 * - ( - col1 ) * col0 FROM tab1 AS cor0
----
3034500
3058776
32693388

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL + - ( - MIN( ALL + ( - col2 ) ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + - ( - MIN ( ALL + ( - col2 ) ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2757
SELECT ALL - 88 * + ( - COUNT( * ) ) + COUNT( * ) + - COUNT( * ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2757
SELECT ALL - 88 * + ( - COUNT ( * ) ) + COUNT ( * ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT 34 + + COUNT( + col0 ) AS col1 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2758
SELECT 34 + + COUNT ( + col0 ) AS col1 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT COUNT( * ) FROM tab0 WHERE ( 61 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2759
SELECT COUNT ( * ) FROM tab0 WHERE ( 61 IS NOT NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 46 - 77 - - + 38 + + + 84 / + col2 * + 20 * col0 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 26 AS col2, + col0 * 83 FROM tab2
----
26
3818
26
5312
26
6225

query II rowsort
SELECT ALL col0 AS col2, col2 + + 87 * - col0 * + 57 AS col2 FROM tab1
----
51
-252813
85
-421456
91
-451201

query I rowsort
SELECT ALL + 1 * + col1 - - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT + 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col1 * - + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col1 * - + col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + + MIN( ALL - - col1 ) AS col1 FROM tab0 WHERE + col2 > + 44 + col1
----
1

skipif mysql # not compatible
query I rowsort label-2766
SELECT + + MIN ( ALL - - col1 ) AS col1 FROM tab0 WHERE + col2 > + 44 + col1
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + 1 > NULL
----

query I rowsort
SELECT - 39 + + - col1 AS col0 FROM tab0 AS cor0
----
-120
-40
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - + SUM( - 7 ) + 21 AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2769
SELECT - + SUM ( - 7 ) + 21 AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - 8 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 * - - col2 col0 FROM tab1 AS cor0
----
129024
17405
217328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 74 col0 FROM tab2 AS cor0
----
3774
4958
5698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 - - + col0 + col1 col2 FROM tab1 AS cor0
----
119
167
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL SUM( DISTINCT + + 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL SUM ( DISTINCT + + 77 ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2775
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, col1 col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2775
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col1 col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + 50 / - col1 * + col1 AS col2 FROM tab0 WHERE NOT NULL <> ( col2 + + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT DISTINCT - col2 FROM tab0 WHERE - - 5 * - 93 * col0 * + + col1 + - + CAST( NULL AS SIGNED ) / - 23 + + + col1 = + col0
----

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - col2 FROM tab0 WHERE - - 5 * - 93 * col0 * + + col1 + - + CAST ( NULL AS INTEGER ) / - 23 + + + col1 = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2778
SELECT + COUNT( * ) DIV 51 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2778
SELECT + COUNT ( * ) / 51 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + 27 AS col0 FROM tab1 AS cor0
----
-1593
-1836
-2592

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL MIN( DISTINCT - - ( - - ( + col1 ) ) ) col2 FROM tab1 WHERE NOT + col0 + + - 38 / 58 + + + 66 IS NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2782
SELECT ALL MIN ( DISTINCT - - ( - - ( + col1 ) ) ) col2 FROM tab1 WHERE NOT + col0 + + - 38 / 58 + + + 66 IS NULL
----
5

query I rowsort
SELECT ALL + + ( 78 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - 83 - - COUNT( * ) FROM tab1, tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 83 - - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT 22 * COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2786
SELECT 22 * COUNT ( * ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT - + ( 11 ) * 99 + + col1 AS col2 FROM tab2 AS cor0
----
-1012
-1022
-1038

query I rowsort
SELECT + - col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT col0 AS col2, 6 - + 10 - + + ( - col2 ) FROM tab1 AS cor0
----
51
92
85
55
91
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT ALL + col2 + + 70 + + col1 AS col1 FROM tab1 AS cor0
----
134
180
185

query II rowsort
SELECT DISTINCT - - 90, col1 FROM tab0 AS cor0
----
90
1
90
21
90
81

query I rowsort
SELECT + + 72 AS col0 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT ALL - AVG ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE + col1 + + col0 <> ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 83 * 32 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + - col1 + + 29 FROM tab2
----
2630
4518
5958

query I rowsort
SELECT ALL 15 * - - col1 FROM tab1
----
210
705
75

query I rowsort
SELECT DISTINCT + col2 / - - 19 + + col0 AS col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col1 + + 59
----

query I rowsort
SELECT - col0 + + col2 * col1 AS col0 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT - 82 * - 26 FROM tab0
----
2132
2132
2132

query I rowsort
SELECT 37 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - 1 - - - col2 AS col2 FROM tab1 AS cor0
----
-60
-69
-97

query I rowsort
SELECT + col2 - col0 * 58 AS col2 FROM tab2 AS cor0
----
-2645
-3672
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT - SUM( ALL - 24 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT - SUM ( ALL - 24 ) FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 + + ( - col0 ) col2 FROM tab1 cor0
----
-57
-91
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT - ( - + COUNT( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT - ( - + COUNT ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + - ( + - COUNT( DISTINCT - 12 ) ) FROM tab0 WHERE col2 BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + - ( + - COUNT ( DISTINCT - 12 ) ) FROM tab0 WHERE col2 BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT ALL + 52 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NOT + 21 + + + col1 IS NULL ) )
----

query II rowsort
SELECT DISTINCT col0 * - col2 AS col0, 83 * - col0 * 50 AS col0 FROM tab1
----
-4896
-211650
-5015
-352750
-6188
-377650

query I rowsort
SELECT ALL + 62 * + col2 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT 39 * - col0 * col0 FROM tab2 AS cor0
----
-159744
-219375
-82524

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * - 48 * - col0 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT + col1 DIV 33 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2818
SELECT + col1 / 33 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + COUNT( - - 49 ) FROM tab2 AS cor0 WHERE NOT + 38 NOT BETWEEN NULL AND - + col1 - - + col2
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT + COUNT ( - - 49 ) FROM tab2 AS cor0 WHERE NOT + 38 NOT BETWEEN NULL AND - + col1 - - + col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 32 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE + col2 * col2 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2821
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE + col2 * col2 > NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0, col1, 14, - col0 )
----

query I rowsort
SELECT ALL - ( - - col0 ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT - 68 + + + col0 FROM tab0 AS cor0
----
-53
19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT + 58 + + + COUNT( * ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-2825
SELECT + 58 + + + COUNT ( * ) FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT COUNT( * ) * - - 6 AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT COUNT ( * ) * - - 6 AS col2 FROM tab0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-2827
SELECT - col2 DIV + col0 + - ( col2 ) AS col0, + 59 AS col2 FROM tab1
----
-59
59
-68
59
-97
59

skipif mysql # not compatible
query II rowsort label-2827
SELECT - col2 / + col0 + - ( col2 ) AS col0, + 59 AS col2 FROM tab1
----
-59
59
-68
59
-97
59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 35, col1, ( col1 ) + + - ( + col1 ) )
----

query I rowsort
SELECT DISTINCT - col0 * + 60 FROM tab0
----
-5220
-5820
-900

query I rowsort
SELECT DISTINCT - 59 + + - 55 AS col1 FROM tab2 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - 19 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2831
SELECT - 19 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab1 WHERE col2 BETWEEN + + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE col2 BETWEEN + + col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2833
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - ( + col0 ) * + 94 AS col1 FROM tab2 AS cor0
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2835
SELECT + COUNT( * ) DIV ( 15 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2835
SELECT + COUNT ( * ) / ( 15 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 9 * - + ( + col1 ) FROM tab0 AS cor0
----
-189
-729
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + - SUM( col0 ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2837
SELECT ALL + - SUM ( col0 ) col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - COUNT( ALL ( 33 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2838
SELECT - COUNT ( ALL ( 33 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT - ( CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2839
SELECT - ( CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + + MAX( - + 82 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2841
SELECT + + MAX ( - + 82 ) FROM tab2 AS cor0
----
-82

query II rowsort
SELECT DISTINCT + + ( - - col0 ) AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT 33 DIV - ( + 52 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT 33 / - ( + 52 ) FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT col1 AS col2, + col2 * col1 * + 94 AS col1 FROM tab0
----
1
9306
21
19740
81
357858

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( + col2, - 94 )
----

query I rowsort
SELECT ALL col2 * + + 42 AS col0 FROM tab0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT DISTINCT 32 AS col0, + COUNT( * ) AS col0 FROM tab2
----
32
3

skipif mysql # not compatible
query II rowsort label-2848
SELECT DISTINCT 32 AS col0, + COUNT ( * ) AS col0 FROM tab2
----
32
3

query II rowsort
SELECT col1, ( + 30 ) AS col2 FROM tab2
----
51
30
67
30
77
30

query II rowsort
SELECT ALL 24, + 53 + col0 AS col1 FROM tab1 AS cor0
----
24
104
24
138
24
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT + - MIN( - - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT + - MIN ( - - col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT - + col2 + - - 77 DIV col1 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-2852
SELECT - + col2 + - - 77 / col1 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-22
-39
-57

query I rowsort
SELECT + ( - - col1 ) * 62 + - - 32 + - + 60 AS col1 FROM tab2 AS cor0
----
3134
4126
4746

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + - SUM( + 79 ) FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-2854
SELECT + - SUM ( + 79 ) FROM tab1 AS cor0
----
-237

query I rowsort
SELECT ALL - 90 * + + col2 * + col0 + + col2 FROM tab0 AS cor0
----
-63403
-78290
-864171

query I rowsort
SELECT DISTINCT col2 * - col0 + + + 95 * + - 16 + 53 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT - COUNT( * ) + + - 90 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - COUNT ( * ) + + - 90 FROM tab2 AS cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT DISTINCT SUM( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + col1 + + - 93 * - col1 + col2 + - col1 col0 FROM tab2 AS cor0
----
4789
6347
7241

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 36 - - + col1 BETWEEN col2 * - 25 AND NULL
----

query I rowsort
SELECT + 79 * + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-55695
-68730
-758637

query II rowsort
SELECT - + ( - col0 ) AS col1, + col1 AS col1 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT - col1 + col0 * 34 * - + col1 FROM tab1 AS cor0
----
-14455
-145465
-24290

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT DISTINCT - col0 + + - col1 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-20
-87
-97

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - col0 + + - col1 / + + col0 AS col1 FROM tab0 AS cor0
----
-20
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / - col2 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT DISTINCT - col0 + - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED ) / + - 49
----

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - col0 + - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER ) / + - 49
----

query II rowsort
SELECT DISTINCT - col2 * - 8 AS col1, 15 AS col2 FROM tab2 AS cor0
----
184
15
320
15
464
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL - COUNT( * ) + - ( MAX( ALL + 32 ) ) AS col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - COUNT ( * ) + - ( MAX ( ALL + 32 ) ) AS col1 FROM tab2 AS cor0
----
-35

query II rowsort
SELECT ALL col2 AS col0, + 91 AS col0 FROM tab2 WHERE - + col2 = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - - col2 + - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 27 * - + 29 + + + col0 + + ( + + 45 ) FROM tab1 WHERE NOT - col1 BETWEEN + + 12 AND - - col1
----
-39837
-66425
-71117

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL + 0 * + col0 DIV - - 90 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + 0 * + col0 / - - 90 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + - ( - 19 ) * + col2 + 31 * 1 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT + col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + - SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + - SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT - + col0 + col0 DIV col2 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-2876
SELECT - + col0 + col0 / col2 FROM tab1 AS cor0
----
-51
-84
-90

query I rowsort
SELECT col1 * + - 39 + + col0 + + ( + 83 ) AS col2 FROM tab2 AS cor0
----
-1860
-2455
-2856

query I rowsort
SELECT DISTINCT - - col2 + + - 5 FROM tab1 cor0
----
54
63
91

query I rowsort
SELECT ALL col0 * 92 AS col1 FROM tab2
----
4232
5888
6900

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 24 NOT BETWEEN - col1 AND + col1 * col0 * - col0 * - - 43
----

query II rowsort
SELECT ALL + 39 AS col0, + 16 FROM tab1 AS cor0
----
39
16
39
16
39
16

query II rowsort
SELECT - col1 AS col2, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + 41 * - col0 FROM tab2
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL COUNT( + + 25 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL COUNT ( + + 25 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2885
SELECT ALL - 94 DIV - - col1 AS col2, col2 col0 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2885
SELECT ALL - 94 / - - col1 AS col2, col2 col0 FROM tab2
----
-1
23
-1
40
-1
58

query II rowsort
SELECT - ( - col2 ), col0 + 99 AS col1 FROM tab1
----
59
184
68
190
96
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT + ( - col0 ) + + 57 + - - col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT + ( - col0 ) + + 57 + - - col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL MIN( DISTINCT col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL MIN ( DISTINCT col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT 10 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 79 + col0 AS col0 FROM tab1 AS cor0
----
102
105
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 80 NOT IN ( col2, col1 )
----

query II rowsort
SELECT DISTINCT - + 96 + + + col1 * + 76 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-20
99
1500
10
6060
47

query I rowsort
SELECT DISTINCT + col2 + 0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 * col0 + + 63 - - col1 + - 1 * + - 96 * + col1 + + 10 AS col0 FROM tab0 AS cor0
----
8155
9579
9679

query I rowsort
SELECT ALL + - 19 + - ( 38 ) + - 69 AS col0 FROM tab1 AS cor0
----
-126
-126
-126

query I rowsort
SELECT ALL + col0 - - + col0 AS col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - + COUNT( * ) + + 72 + - + COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2897
SELECT - + COUNT ( * ) + + 72 + - + COUNT ( * ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL + ( + + 10 ) + + 8 AS col2 FROM tab2
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - MIN( - - 67 ) FROM tab2 WHERE NULL IS NULL
----
-67

skipif mysql # not compatible
query I rowsort label-2899
SELECT - MIN ( - - 67 ) FROM tab2 WHERE NULL IS NULL
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT col1 * - - CAST( NULL AS SIGNED ) - - col1 + - col1 * - + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT col1 * - - CAST ( NULL AS INTEGER ) - - col1 + - col1 * - + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 64 NOT BETWEEN - 80 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 74 - - 69, col0 col0 FROM tab2 AS cor0
----
143
46
143
64
143
75

query I rowsort
SELECT 36 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL - 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - MAX( + - 38 ) AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2906
SELECT - MAX ( + - 38 ) AS col1 FROM tab0 AS cor0
----
38

query I rowsort
SELECT - ( + + 42 ) FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT - SUM( + col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT - SUM ( + col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT ALL + CAST( NULL AS SIGNED ) / + + col1 col0, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2909
SELECT ALL + CAST ( NULL AS INTEGER ) / + + col1 col0, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
-10
NULL
-47
NULL
-99

query II rowsort
SELECT DISTINCT - 33 * col2, + col0 FROM tab1
----
-1947
85
-2244
91
-3168
51

query II rowsort
SELECT DISTINCT - col1, col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * - 60 * 84 col2 FROM tab2
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT ALL - - col1 + CAST( - 48 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-27
-47
33

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - - col1 + CAST ( - 48 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-27
-47
33

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 cor0 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT - col0 + col2 AS col1, + 62 FROM tab2 AS cor0
----
-17
62
-23
62
-24
62

query I rowsort
SELECT + + 61 * + - 67 AS col0 FROM tab2 AS cor0 WHERE NULL > + 44
----

query I rowsort
SELECT - col1 * - 5 + 24 FROM tab2
----
279
359
409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT CAST( + 28 AS SIGNED ) * - + col0 AS col2 FROM tab1 AS cor0
----
-1428
-2380
-2548

skipif mysql # not compatible
query I rowsort label-2919
SELECT CAST ( + 28 AS INTEGER ) * - + col0 AS col2 FROM tab1 AS cor0
----
-1428
-2380
-2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT ( + 62 ) + + - col0 + + col1 * - ( - + CAST( NULL AS SIGNED ) ) / - 96 + + 4 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT ( + 62 ) + + - col0 + + col1 * - ( - + CAST ( NULL AS INTEGER ) ) / - 96 + + 4 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2921
SELECT ALL + + COUNT( * ) - + COUNT( * ) AS col0, + ( + COUNT( * ) ) DIV + 19 FROM tab1 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-2921
SELECT ALL + + COUNT ( * ) - + COUNT ( * ) AS col0, + ( + COUNT ( * ) ) / + 19 FROM tab1 AS cor0
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + - + 97 col0 FROM tab1
----
-55

query I rowsort
SELECT ALL + 0 + - + col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL 96 - col1 FROM tab2
----
19
29
45

query I rowsort
SELECT ALL + 73 - + col1 + ( - ( + col0 ) ) + - col1 + ( + + 69 ) * col2 + - - col1 AS col1 FROM tab2
----
1563
2692
3933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT - 29 + + - CAST( - 32 AS SIGNED ) AS col0 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2926
SELECT - 29 + + - CAST ( - 32 AS INTEGER ) AS col0 FROM tab1
----
3
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + + col0 <> - col2
----

query I rowsort
SELECT - + 75 FROM tab1 cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 BETWEEN - col2 * - - col2 / - col2 AND + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT DISTINCT + COUNT( * ), ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2930
SELECT DISTINCT + COUNT ( * ), ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab1 cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 14 * 43 AS col0 FROM tab1
----
602

query I rowsort
SELECT DISTINCT + - col2 * - - col1 + + 6 AS col2 FROM tab1 AS cor0
----
-1338
-289
-3190

onlyif mysql # DIV for integer division: 
query II rowsort label-2935
SELECT DISTINCT + col2 * - 11, col0 DIV - col2 AS col1 FROM tab2 AS cor0
----
-253
-2
-440
-1
-638
-1

skipif mysql # not compatible
query II rowsort label-2935
SELECT DISTINCT + col2 * - 11, col0 / - col2 AS col1 FROM tab2 AS cor0
----
-253
-2
-440
-1
-638
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT ALL + - col2 DIV + - col1 - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + - col2 / + - col1 - - col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL col1 + - + 23, col0 * + - col0 AS col0 FROM tab1 AS cor0
----
-18
-7225
-9
-2601
24
-8281

query I rowsort
SELECT + - 87 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT - 38 FROM tab2 WHERE NOT - 77 IS NULL
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT + CAST( 53 AS SIGNED ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + CAST ( 53 AS INTEGER ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT ( - 92 ) * + COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT ( - 92 ) * + COUNT ( * ) FROM tab1
----
-276

query I rowsort
SELECT - 32 + + col0 + - col1 AS col2 FROM tab2
----
-24
-37
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL + MIN( + - col2 ) * COUNT( * ) + + MAX( ALL - col1 ) AS col0 FROM tab0
----
-298

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL + MIN ( + - col2 ) * COUNT ( * ) + + MAX ( ALL - col1 ) AS col0 FROM tab0
----
-298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2946
SELECT ALL + COUNT( * ) DIV ( COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + COUNT ( * ) / ( COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT + col2 * 91 * - 78 FROM tab0 AS cor0
----
-333606
-702702
-70980

query I rowsort
SELECT DISTINCT col1 + col1 * 75 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT + ( + 14 ) AS col1 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT - 61 * - + 97 AS col1 FROM tab1
----
5917

query I rowsort
SELECT + 36 AS col1 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
36
36
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - - 91 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 63 + - col0 col0 FROM tab1 AS cor0
----
3162
5270
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT - + SUM( ALL + 51 ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2955
SELECT - + SUM ( ALL + 51 ) AS col1 FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - + MAX( + 23 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT - + MAX ( + 23 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL + MIN( col0 ) - - COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + MIN ( col0 ) - - COUNT ( * ) FROM tab1
----
54

query I rowsort
SELECT ALL col1 - + 7 + - col1 AS col0 FROM tab1
----
-7
-7
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 >= - 3 * - 14 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 5 * - col0 AS col2 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - - COUNT( - col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2961
SELECT - - COUNT ( - col2 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT - 67 * - - col1 AS col0 FROM tab2 cor0
----
-3417
-4489
-5159

query I rowsort
SELECT DISTINCT + - 69 - - col2 * + + col2 * + + col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
295816
420715
469947

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 = - ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT ALL 79 DIV + MIN( col0 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL 79 / + MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL + + col1 AS col0, 90 + + 41 + + 74 FROM tab0 AS cor0
----
1
205
21
205
81
205

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col1 > col1 + col0
----
97
1
99

query II rowsort
SELECT - 64, + ( col2 ) FROM tab2 AS cor0
----
-64
23
-64
40
-64
58

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - col2 * - - col2 * + 38 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 WHERE NOT col2 = + 96
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2, col2 + + col0, + + col0 * + + col2 * col0, + ( - col2 ) * + 75 - 88 )
----

query III rowsort
SELECT * FROM tab2 WHERE + - 6 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT 42 * + - SUM( - col0 ) FROM tab1
----
9534

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT 42 * + - SUM ( - col0 ) FROM tab1
----
9534

onlyif mysql # DIV for integer division: 
query II rowsort label-2974
SELECT col1 * + col0 AS col2, 59 DIV ( col0 ) AS col1 FROM tab1
----
425
0
4277
0
714
1

skipif mysql # not compatible
query II rowsort label-2974
SELECT col1 * + col0 AS col2, 59 / ( col0 ) AS col1 FROM tab1
----
425
0
4277
0
714
1

query I rowsort
SELECT DISTINCT - + ( 98 ) + col1 FROM tab1 AS cor0
----
-51
-84
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT ALL + col0 DIV - - col2 - + col1 + 68 + + col1 + - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-11
-29
53

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + col0 / - - col2 - + col1 + 68 + + col1 + - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-11
-29
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT - MAX( + 40 ) + - 49 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - MAX ( + 40 ) + - 49 FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - CAST( - - col2 AS SIGNED ), + ( - col1 ) * 69, - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - CAST ( - - col2 AS INTEGER ), + ( - col1 ) * 69, - 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT - COUNT( * ) - 15 AS col2 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - COUNT ( * ) - 15 AS col2 FROM tab0 cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 72 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2982
SELECT col2 AS col0, + CAST( - + 90 AS SIGNED ) AS col2 FROM tab1
----
59
-90
68
-90
96
-90

skipif mysql # not compatible
query II rowsort label-2982
SELECT col2 AS col0, + CAST ( - + 90 AS INTEGER ) AS col2 FROM tab1
----
59
-90
68
-90
96
-90

query II rowsort
SELECT DISTINCT + col0, col0 + + col1 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2984
SELECT CAST( NULL AS SIGNED ) AS col2, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2984
SELECT CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL + SUM( + ( + + 53 ) ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + SUM ( + ( + + 53 ) ) FROM tab2
----
159

query II rowsort
SELECT col2 AS col0, - 21 AS col2 FROM tab1
----
59
-21
68
-21
96
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT ALL 15 DIV - COUNT( * ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL 15 / - COUNT ( * ) AS col1 FROM tab0
----
-5

query I rowsort
SELECT + 55 * - 85 FROM tab2
----
-4675
-4675
-4675

query II rowsort
SELECT DISTINCT col1, - ( col2 ) AS col1 FROM tab1
----
14
-96
47
-68
5
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query II rowsort
SELECT ALL 16, - col1 * - - ( 34 ) AS col1 FROM tab0 AS cor0
----
16
-2754
16
-34
16
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE NOT + 39 <> col0
----

query I rowsort
SELECT + 0 FROM tab2 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE 40 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + 10 * - 82 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL - CAST( NULL AS SIGNED ) / - + 58 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 58 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2997
SELECT - + COUNT( * ) + + COUNT( * ) DIV + 4 * + 37 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2997
SELECT - + COUNT ( * ) + + COUNT ( * ) / + 4 * + 37 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - 2 + - col1 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL COUNT( * ) + MIN( col2 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL COUNT ( * ) + MIN ( col2 ) FROM tab0 AS cor0
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-3000
SELECT DISTINCT col2 * - 36 DIV + 2 AS col2, + col0 + - col2 DIV + + col0 FROM tab2
----
-1044
75
-414
46
-720
64

skipif mysql # not compatible
query II rowsort label-3000
SELECT DISTINCT col2 * - 36 / + 2 AS col2, + col0 + - col2 / + + col0 FROM tab2
----
-1044
75
-414
46
-720
64

query I rowsort
SELECT + 60 + 82 FROM tab1
----
142
142
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL COUNT( * ) + - MIN( DISTINCT + col1 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL COUNT ( * ) + - MIN ( DISTINCT + col1 ) FROM tab2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT ALL + - col1 DIV - col0 * - + col1 * + - col1 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + - col1 / - col0 * - + col1 * + - col1 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT + MIN( DISTINCT col1 ) * 86 AS col1 FROM tab1
----
430

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + MIN ( DISTINCT col1 ) * 86 AS col1 FROM tab1
----
430

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT + col1 / + 70 + col2 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col1 FROM tab1, tab1 AS cor0 WHERE NOT + ( + + 42 ) <> NULL
----

query I rowsort
SELECT - 54 + + 21 AS col0 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT 76 + - 91 FROM tab1
----
-15
-15
-15

query II rowsort
SELECT ALL - col2 AS col2, + 77 AS col2 FROM tab0
----
-10
77
-47
77
-99
77

query III rowsort
SELECT * FROM tab1 WHERE - + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL 93 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL 93 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 97, 31 + + col1 col0 FROM tab0 AS cor0
----
97
112
97
32
97
52

query II rowsort
SELECT + + col2 AS col0, 86 AS col1 FROM tab0 AS cor0
----
10
86
47
86
99
86

query II rowsort
SELECT - 21 AS col1, col2 FROM tab2 AS cor0
----
-21
23
-21
40
-21
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 0 FROM tab0 AS cor0 WHERE + col0 > + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 0 FROM tab0 AS cor0 WHERE + col0 > + 76
----
NULL

query I rowsort
SELECT 98 + - col2 FROM tab1
----
2
30
39

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( col2 ) + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab2 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT col0 * + 71 AS col2 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL COUNT( * ) + 67 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL COUNT ( * ) + 67 FROM tab2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT ALL - 52 DIV COUNT( * ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - 52 / COUNT ( * ) FROM tab1
----
-17

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( col2 ) * col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - COUNT( * ) * - 83 AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3024
SELECT - COUNT ( * ) * - 83 AS col1 FROM tab1
----
249

query I rowsort
SELECT ALL col1 + 71 AS col0 FROM tab0
----
152
72
92

query III rowsort
SELECT * FROM tab0 WHERE + 88 IN ( - ( + col1 ) - - 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3027
SELECT * FROM tab1 WHERE NOT - CAST( - col0 AS SIGNED ) + - 5 IN ( col1 * col0 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3027
SELECT * FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) + - 5 IN ( col1 * col0 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + COUNT( * ) * ( 0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) * ( 0 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT - MAX( DISTINCT 48 ) * SUM( DISTINCT col1 + col2 ) + COUNT( col2 + col2 ) AS col0 FROM tab0
----
-12429

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - MAX ( DISTINCT 48 ) * SUM ( DISTINCT col1 + col2 ) + COUNT ( col2 + col2 ) AS col0 FROM tab0
----
-12429

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + 81 * + MAX( 87 ) FROM tab2
----
7047

skipif mysql # not compatible
query I rowsort label-3030
SELECT + 81 * + MAX ( 87 ) FROM tab2
----
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL 90 * - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-270

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL 90 * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-270

query I rowsort
SELECT ALL 1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col0 FROM tab1
----
-33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col0 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 + + col0 / + 64 ) NOT IN ( - col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL - MIN( - 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - MIN ( - 87 ) FROM tab2
----
87

query I rowsort
SELECT - col0 - - 33 FROM tab2 WHERE NOT 6 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT - COUNT( * ) + - 29 FROM tab1 WHERE NOT NULL IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - COUNT ( * ) + - 29 FROM tab1 WHERE NOT NULL IS NULL
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 43 col0 FROM tab0
----
-33
4
56

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - col2 < + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - COUNT( * ) col0 FROM tab2 WHERE NULL >= 47 * col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT - COUNT ( * ) col0 FROM tab2 WHERE NULL >= 47 * col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <= ( col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT MAX( + 38 ) AS col1 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-3043
SELECT MAX ( + 38 ) AS col1 FROM tab1
----
38

query I rowsort
SELECT col0 + 0 * + ( - 32 ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col2 + + 41 * - col2 FROM tab1
----
-2360
-2720
-3840

query III rowsort
SELECT ALL * FROM tab0 WHERE - 25 * col0 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 + 41 col1 FROM tab1
----
139
139
139

query I rowsort
SELECT 46 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 NOT BETWEEN col2 * col0 - col0 AND ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + 38 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 38 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col1 + - 72 / col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT - 31 DIV col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT - 31 / col2 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL ( col1 ) * + col0 AS col2 FROM tab0 cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 col1 FROM tab1
----
87
87
87

query I rowsort
SELECT + col0 * col1 + col1 FROM tab0
----
1296
1848
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT - col0 / - col1 + col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT - col0 / - col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3057
SELECT - SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + 6 + + col1 FROM tab0 AS cor0
----
27
7
87

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col0 ) <> col2
----
10
47
99

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ( MIN( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3061
SELECT ( MIN ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL MIN( ALL ( col0 ) ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3062
SELECT ALL MIN ( ALL ( col0 ) ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT ALL - 9 DIV col1 + - 79 FROM tab2 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - 9 / col1 + - 79 FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL + col2 + - 1 AS col2 FROM tab1 cor0
----
58
67
95

query I rowsort
SELECT DISTINCT + 36 * - col0 + col0 FROM tab1
----
-1785
-2975
-3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT + CAST( MIN( DISTINCT col0 ) AS SIGNED ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL IS NULL OR NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT 57 * 78 FROM tab0 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT SUM( - 14 ) - + COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3069
SELECT SUM ( - 14 ) - + COUNT ( * ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT 49 * + COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3070
SELECT 49 * + COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT COUNT( * ) + + 4 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3071
SELECT COUNT ( * ) + + 4 FROM tab2
----
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col2 - - col1 > NULL
----

query I rowsort
SELECT col1 + - 78 FROM tab0 AS cor0
----
-57
-77
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT + col0 / - - col0 + + col0 * ( CAST( NULL AS SIGNED ) ) + + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT + col0 / - - col0 + + col0 * ( CAST ( NULL AS INTEGER ) ) + + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 71 - col2 FROM tab2 AS cor0
----
13
31
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * col2 col0 FROM tab0 AS cor0
----
2162
90
9702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + col1 ) ) BETWEEN NULL AND - 2 + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT MIN( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-3078
SELECT MIN ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-81

query I rowsort
SELECT - ( + 10 ) AS col1 FROM tab2
----
-10
-10
-10

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col0 IN ( ( - 7 ) + + col2 )
----

query II rowsort
SELECT - col1 AS col1, + col0 * + 18 AS col2 FROM tab1
----
-14
918
-47
1638
-5
1530

query I rowsort
SELECT + 3 * col2 AS col0 FROM tab1
----
177
204
288

query I rowsort
SELECT DISTINCT + 62 * + + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-2852
-3968
-4650

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 90 * + + col0 FROM tab0 AS cor0
----
1350
7830
8730

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 23 NOT BETWEEN ( - col0 ) AND 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3087
SELECT ALL - CAST( col1 AS SIGNED ) AS col1, + 1 * + 58 AS col2 FROM tab1
----
-14
58
-47
58
-5
58

skipif mysql # not compatible
query II rowsort label-3087
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1, + 1 * + 58 AS col2 FROM tab1
----
-14
58
-47
58
-5
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3088
SELECT * FROM tab2 WHERE NOT - + col1 IN ( + CAST( NULL AS SIGNED ) + col1 / + 7 )
----

skipif mysql # not compatible
query III rowsort label-3088
SELECT * FROM tab2 WHERE NOT - + col1 IN ( + CAST ( NULL AS INTEGER ) + col1 / + 7 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= 26 * + col2 AND - col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT 47 * - 8 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1128

skipif mysql # not compatible
query I rowsort label-3091
SELECT 47 * - 8 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1128

query I rowsort
SELECT DISTINCT - col1 + - + ( - - col2 ) FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT + - 16 AS col2 FROM tab2 cor0
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT + SUM( ALL - - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3095
SELECT + SUM ( ALL - - col0 ) AS col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3096
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 17 ) < CAST( NULL AS SIGNED ) - - 42
----

skipif mysql # not compatible
query IIIIII rowsort label-3096
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 17 ) < CAST ( NULL AS INTEGER ) - - 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-3097
SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + col1
----

query I rowsort
SELECT ALL + + col1 + - col1 + + + col1 + - 95 AS col0 FROM tab0 AS cor0
----
-14
-74
-94

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE ( + - 99 ) IS NULL AND ( 68 * col0 ) IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) * - col2 + - col2 + + + 30 + col1 FROM tab2 AS cor0
----
1116
2627
4389

query II rowsort
SELECT DISTINCT - col0 + + - col1 * + col2, col2 FROM tab0 AS cor0
----
-196
99
-297
10
-3822
47

query I rowsort
SELECT DISTINCT - col2 - + 65 FROM tab2 cor0
----
-105
-123
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + col1 IS NULL
----

query I rowsort
SELECT col2 * + - ( ( - col0 ) ) + - col1 FROM tab0
----
624
849
9602

query II rowsort
SELECT DISTINCT col2 - + 11 AS col2, ( col2 ) AS col2 FROM tab1
----
48
59
57
68
85
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * - + col2 + 69 col1 FROM tab1
----
-1179
-698
-815

query II rowsort
SELECT ALL col0 AS col2, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL ( CAST( - 57 AS SIGNED ) ) FROM tab2
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL ( CAST ( - 57 AS INTEGER ) ) FROM tab2
----
-57
-57
-57

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab1 WHERE NOT NULL <= 0
----

query I rowsort
SELECT DISTINCT col0 + - col0 + - 53 * - col0 FROM tab0 WHERE NOT - + col1 = - 74
----
4611
5141
795

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT + + col1 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT + + col1 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) * - 21 * - col2 FROM tab2 AS cor0
----
-24633
-64680
-81606

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT ALL 6 * col1 DIV + + col1 col0 FROM tab0 AS cor0
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3114
SELECT ALL 6 * col1 / + + col1 col0 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3116
SELECT ALL col1 * col2 * col0 AS col2, - ( - ( - - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
18270
NULL
57105
NULL
9603
NULL

skipif mysql # not compatible
query II rowsort label-3116
SELECT ALL col1 * col2 * col0 AS col2, - ( - ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
18270
NULL
57105
NULL
9603
NULL

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( - + col2 BETWEEN col2 AND - - 63 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT DISTINCT + COUNT( * ) DIV SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + COUNT ( * ) / SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 22 BETWEEN ( + - 53 ) AND ( NULL )
----

query I rowsort
SELECT + - col1 * - col1 * + col2 * + col2 FROM tab0 AS cor0
----
14493249
44100
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col1 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE col0 <= ( col0 + - col2 / + ( ( - 6 ) ) * col2 )
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 85 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * - 65 * col0 col1 FROM tab1
----
-172380
-287300
-307580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT DISTINCT COUNT( * ) DIV + 11 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT COUNT ( * ) / + 11 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT SUM( ALL 73 ) AS col0 FROM tab2 WHERE - col0 > - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT SUM ( ALL 73 ) AS col0 FROM tab2 WHERE - col0 > - 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT + 40 DIV + - 25 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3127
SELECT + 40 / + - 25 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL + col1 / - col0 / + col0 + 96 + - col1 * - CAST( + col1 * - col1 + + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = - - ( + 91 )
----

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + col1 / - col0 / + col0 + 96 + - col1 * - CAST ( + col1 * - col1 + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = - - ( + 91 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3129
SELECT DISTINCT col0, + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-3129
SELECT DISTINCT col0, + col2 / + col0 AS col2 FROM tab1 AS cor0
----
51
1
85
0
91
0

query I rowsort
SELECT col1 * - - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL 11 + - + col1 AS col2 FROM tab1
----
-3
-36
6

query II rowsort
SELECT 40 * - col0 AS col1, 11 + + + col2 AS col1 FROM tab0
----
-3480
21
-3880
110
-600
58

query I rowsort
SELECT ALL + - col0 + - - col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3134
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3134
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 col1 FROM tab0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3136
SELECT + 87 DIV ( + + col2 ) - - col2 * + col0 AS col2, col1 FROM tab1
----
4896
14
5016
5
6189
47

skipif mysql # not compatible
query II rowsort label-3136
SELECT + 87 / ( + + col2 ) - - col2 * + col0 AS col2, col1 FROM tab1
----
4896
14
5016
5
6189
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL MIN( ALL 36 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL MIN ( ALL 36 ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT + ( 52 ) FROM tab0 WHERE col1 IS NOT NULL AND NOT - col0 NOT IN ( 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - 96 + + 63 + 29 - - MAX( ALL + ( + ( - + col0 ) ) ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 96 + + 63 + 29 - - MAX ( ALL + ( + ( - + col0 ) ) ) FROM tab2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3140
SELECT DISTINCT * FROM tab2 WHERE - 78 + - col1 + - CAST( col1 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3140
SELECT DISTINCT * FROM tab2 WHERE - 78 + - col1 + - CAST ( col1 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT - 51 DIV - - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - 51 / - - col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 - + 76 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + ( 12 ) FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3144
SELECT DISTINCT + CAST( ( + col1 ) AS DECIMAL ) * col1 * + 32 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + CAST ( ( + col1 ) AS REAL ) * col1 * + 32 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT ALL col0 AS col0, + col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT DISTINCT + ( - 94 ) * COUNT( * ) * SUM( ALL + CAST( col2 AS SIGNED ) ) FROM tab0 cor0
----
-43992

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT + ( - 94 ) * COUNT ( * ) * SUM ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab0 cor0
----
-43992

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col1 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

query I rowsort
SELECT - col1 * col0 * - + col1 AS col2 FROM tab0 AS cor0
----
38367
97
98415

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 62 * - + col1 + - col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT + ( + + col2 ) * + + col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT + col2 * + + 69 + col2 FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT - col0 * - - ( + + col0 ) FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab1 WHERE NOT - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT + 53 * MAX( col2 ) FROM tab0
----
5247

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + 53 * MAX ( col2 ) FROM tab0
----
5247

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN - 51 AND NULL
----
15
81
47

query I rowsort
SELECT col0 + + - 6 - 93 AS col0 FROM tab1
----
-14
-48
-8

query I rowsort
SELECT 55 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT + 49 + CAST( col0 AS SIGNED ) FROM tab0
----
136
146
64

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 49 + CAST ( col0 AS INTEGER ) FROM tab0
----
136
146
64

query I rowsort
SELECT + ( col0 ) * + + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - SUM( ALL - 97 ) AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-3162
SELECT - SUM ( ALL - 97 ) AS col2 FROM tab1
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT DISTINCT col0 DIV + 15 AS col2 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT col0 / + 15 AS col2 FROM tab2
----
3
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL - 61 + + 51 FROM tab0 cor0 WHERE + col0 / - col1 IN ( + - col2 + + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - 61 + + 51 FROM tab0 cor0 WHERE + col0 / - col1 IN ( + - col2 + + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 + + 12 + - col0 + - - col2 FROM tab0 AS cor0
----
-152
-83
29

query I rowsort
SELECT - 69 AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 cor0
----
NULL

query II rowsort
SELECT + 59 + col1 + - col1 AS col1, + 72 FROM tab1 AS cor0
----
59
72
59
72
59
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT DISTINCT - - 31 * + ( col0 ) + + 30 * 12 AS col0 FROM tab1 AS cor0 WHERE + 25 NOT IN ( + - col2 - ( col1 ) * + ( - 47 ), + 76 + + col1 + CAST( NULL AS SIGNED ) - 85 )
----

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - - 31 * + ( col0 ) + + 30 * 12 AS col0 FROM tab1 AS cor0 WHERE + 25 NOT IN ( + - col2 - ( col1 ) * + ( - 47 ), + 76 + + col1 + CAST ( NULL AS INTEGER ) - 85 )
----

query I rowsort
SELECT DISTINCT 34 + - 6 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL ( - 99 ) - - col2 FROM tab0
----
-52
-89
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3172
SELECT ALL col0 DIV + CAST( - 65 AS SIGNED ) AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL col0 / + CAST ( - 65 AS INTEGER ) AS col2 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE - + 45 * + col2 + + - 87 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - 5
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + col0 / - ( CAST( - 97 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + col0 / - ( CAST ( - 97 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3178
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + 21 * + + MIN( - + col2 ) AS col1 FROM tab2 AS cor0
----
-1218

skipif mysql # not compatible
query I rowsort label-3179
SELECT + 21 * + + MIN ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-1218

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 <> + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + 93 * - COUNT( * ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 93 * - COUNT ( * ) AS col2 FROM tab0
----
-279

query II rowsort
SELECT DISTINCT - col2 * 59, col0 AS col1 FROM tab2
----
-1357
46
-2360
64
-3422
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 90 * COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
810

skipif mysql # not compatible
query I rowsort label-3183
SELECT 90 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
810

query I rowsort
SELECT DISTINCT col1 + + col1 AS col2 FROM tab1 WHERE NOT 93 <= col1
----
10
28
94

onlyif mysql # DIV for integer division: 
query II rowsort label-3185
SELECT DISTINCT + col1, col2 DIV - col2 FROM tab2
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-3185
SELECT DISTINCT + col1, col2 / - col2 FROM tab2
----
51
-1
67
-1
77
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3186
SELECT DISTINCT 19 AS col1, + 95 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT 19 AS col1, + 95 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
19
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 80 - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN + 81 AND + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + - MIN( + - col2 ) FROM tab1 WHERE NOT NULL NOT IN ( - col0 * + 6, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT + - MIN ( + - col2 ) FROM tab1 WHERE NOT NULL NOT IN ( - col0 * + 6, col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3190
SELECT DISTINCT + 64 AS col2, CAST( - col1 AS SIGNED ) FROM tab0
----
64
-1
64
-21
64
-81

skipif mysql # not compatible
query II rowsort label-3190
SELECT DISTINCT + 64 AS col2, CAST ( - col1 AS INTEGER ) FROM tab0
----
64
-1
64
-21
64
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3191
SELECT ALL 9, - col0 DIV 69 col1 FROM tab0
----
9
-1
9
-1
9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3191
SELECT ALL 9, - col0 / 69 col1 FROM tab0
----
9
-1
9
-1
9
0

query I rowsort
SELECT DISTINCT ( + - ( - 44 ) ) + 70 FROM tab2
----
114

query III rowsort
SELECT * FROM tab0 WHERE 50 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 6 AS col2 FROM tab1 WHERE ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - col0 * + col0 + - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT col2 * + 57 + + CAST( NULL AS SIGNED ) + - - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT col2 * + 57 + + CAST ( NULL AS INTEGER ) + - - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + + col2 NOT BETWEEN 13 AND - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL + COUNT( * ) + - 46 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + COUNT ( * ) + - 46 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3200
SELECT + + col2 + - col0, - col1 * + CAST( NULL AS SIGNED ) * + - 88 AS col2 FROM tab1 AS cor0 WHERE col0 * - 36 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3200
SELECT + + col2 + - col0, - col1 * + CAST ( NULL AS INTEGER ) * + - 88 AS col2 FROM tab1 AS cor0 WHERE col0 * - 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3201
SELECT + col0 DIV - col1, + col1 AS col0 FROM tab2 AS cor0
----
-1
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-3201
SELECT + col0 / - col1, + col1 AS col0 FROM tab2 AS cor0
----
-1
67
0
51
0
77

query I rowsort
SELECT DISTINCT - 57 * col0 + - + 66 + 9 AS col0 FROM tab1 AS cor0
----
-2964
-4902
-5244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL + 93 * + 29 + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + 93 * + 29 + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - - col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL - COUNT( + col1 ) - ( + COUNT( * ) ) col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3205
SELECT ALL - COUNT ( + col1 ) - ( + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT col2 * + + 55 AS col2 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT + 72 AS col2, 28 + - COUNT( * ) AS col0 FROM tab1
----
72
25

skipif mysql # not compatible
query II rowsort label-3209
SELECT + 72 AS col2, 28 + - COUNT ( * ) AS col0 FROM tab1
----
72
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT COUNT( * ) * 44 AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-3210
SELECT COUNT ( * ) * 44 AS col2 FROM tab2
----
132

query II rowsort
SELECT ALL + + col0 AS col1, + 72 * - - col2 FROM tab1 AS cor0
----
51
6912
85
4248
91
4896

query I rowsort
SELECT + + 48 * 53 - - col0 + + 33 AS col1 FROM tab1 cor0
----
2628
2662
2668

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT DISTINCT + 58, + COUNT( col2 ) + - ( - + 78 ) col2 FROM tab0 AS cor0
----
58
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3213
SELECT DISTINCT + 58, + COUNT ( col2 ) + - ( - + 78 ) col2 FROM tab0 AS cor0
----
58
81

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab0 AS cor0 WHERE + 55 <> NULL
----

query I rowsort
SELECT 68 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # DIV for integer division: 
query II rowsort label-3216
SELECT - col0 DIV col1 AS col2, 75 AS col1 FROM tab1
----
-1
75
-17
75
-3
75

skipif mysql # not compatible
query II rowsort label-3216
SELECT - col0 / col1 AS col2, 75 AS col1 FROM tab1
----
-1
75
-17
75
-3
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - 53 AS col0 FROM tab2 AS cor0
----
-117
-128
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT - 40 + - ( + 3 ) - - + MAX( - + 92 ) AS col2 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - 40 + - ( + 3 ) - - + MAX ( - + 92 ) AS col2 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT ALL - + col1 + - col0 - - 50 FROM tab2 AS cor0
----
-47
-91
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - MAX( + 78 ) * 14 * - - 99 + - - COUNT( * ) AS col2 FROM tab0
----
-108105

skipif mysql # not compatible
query I rowsort label-3221
SELECT - MAX ( + 78 ) * 14 * - - 99 + - - COUNT ( * ) AS col2 FROM tab0
----
-108105

query I rowsort
SELECT 59 + - + col2 AS col1 FROM tab1
----
-37
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 51 col0 FROM tab0
----
-138
-148
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + - COUNT( * ) * - 37 + COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3224
SELECT + - COUNT ( * ) * - 37 + COUNT ( * ) FROM tab2 AS cor0
----
114

query I rowsort
SELECT DISTINCT + 85 + col1 AS col1 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT 20 + 61 FROM tab0 AS cor0
----
81
81
81

query II rowsort
SELECT + - col2 * - 75 AS col2, + 12 AS col0 FROM tab2 AS cor0
----
1725
12
3000
12
4350
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * 45 col1 FROM tab1 AS cor0
----
166
2047
534

query I rowsort
SELECT - + col0 * - 13 AS col1 FROM tab2 AS cor0
----
598
832
975

query II rowsort
SELECT + col1 AS col2, ( - col0 ) AS col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT - 99 / - + 4 * - 47 + + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT - 99 / - + 4 * - 47 + + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - col1 * + + 11
----

query I rowsort
SELECT ALL + 63 * - col2 * + col0 AS col2 FROM tab0
----
-44415
-54810
-604989

query I rowsort
SELECT + 33 * + 55 AS col2 FROM tab1
----
1815
1815
1815

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL COUNT( * ) * + 65 * - 68 AS col2 FROM tab2
----
-13260

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL COUNT ( * ) * + 65 * - 68 AS col2 FROM tab2
----
-13260

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT + col0 * - ( - ( + 91 ) ) * col0 + - 84 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL 59 * - + col2 FROM tab0 cor0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + - 72 * + COUNT( 68 ) AS col0 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3238
SELECT + - 72 * + COUNT ( 68 ) AS col0 FROM tab2 AS cor0
----
-216

query II rowsort
SELECT DISTINCT + col2 * - + col0, + col2 - + - col0 AS col0 FROM tab2 AS cor0
----
-1058
69
-2560
104
-4350
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3240
SELECT ALL - COUNT( ALL + - 37 ) DIV - 96 col1, 55 FROM tab1
----
0
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3240
SELECT ALL - COUNT ( ALL + - 37 ) / - 96 col1, 55 FROM tab1
----
0
55

query I rowsort
SELECT col2 + + 63 FROM tab0 WHERE NOT + col0 / + 30 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3242
SELECT DISTINCT + 0, + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3242
SELECT DISTINCT + 0, + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
0
NULL

query I rowsort
SELECT ALL 0 * - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + ( 2 ) AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + - 43 + - col2 AS col1 FROM tab2 AS cor0
----
-101
-66
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT 46 DIV + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-50
-68
-93

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT 46 / + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-50
-68
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3247
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) * - 71 * COUNT( * ) + 80 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3247
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) * - 71 * COUNT ( * ) + 80 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + COUNT( * ) + - COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + COUNT ( * ) + - COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 + - + 77 FROM tab0 AS cor0
----
-56
-76
4

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab1 WHERE NOT - 92 * + col1 IS NULL
----
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * - - ( 99 ) * + + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - 6 + MAX( ALL - 60 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 6 + MAX ( ALL - 60 ) FROM tab0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL CAST( NULL AS SIGNED ) * - col1 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - - col2 + - 33 + + 15 + - 62 AS col2 FROM tab1 AS cor0
----
-16
30
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3255
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * CAST( NULL AS SIGNED ) + 94 * - + col1 * - - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3255
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * CAST ( NULL AS INTEGER ) + 94 * - + col1 * - - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT SUM( ( ( - col1 ) ) ) - - - 67 AS col0 FROM tab2 AS cor0
----
-262

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT SUM ( ( ( - col1 ) ) ) - - - 67 AS col0 FROM tab2 AS cor0
----
-262

query I rowsort
SELECT DISTINCT + ( + + 14 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 / + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 / + - col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - ( + 13 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + ( - + 57 ) AS col0 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL col1 * 71 AS col0 FROM tab1 AS cor0
----
3337
355
994

query I rowsort
SELECT col1 * - 4 AS col0 FROM tab1 AS cor0
----
-188
-20
-56

query II rowsort
SELECT col1 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 27 IS NULL
----

query II rowsort
SELECT ALL col0 AS col2, + 87 FROM tab2 cor0
----
46
87
64
87
75
87

query II rowsort
SELECT DISTINCT 98, 41 AS col0 FROM tab1
----
98
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) * - - col2 + + 51 AS col1 FROM tab2
----
1109
2611
4401

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) * - - col2 + + 51 AS col1 FROM tab2
----
1109
2611
4401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 91 + + col1 AS col0 FROM tab2
----
51
142
67
158
77
168

query II rowsort
SELECT col1, - col2 + + - col0 AS col1 FROM tab1
----
14
-147
47
-159
5
-144

query II rowsort
SELECT + 11 AS col2, + col0 AS col0 FROM tab0
----
11
15
11
87
11
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3271
SELECT ALL - COUNT( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - ( - 72 ) FROM tab1
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, ( col0 ) col2 FROM tab0
----
10
87
47
15
99
97

query II rowsort
SELECT col1, + 8 FROM tab1
----
14
8
47
8
5
8

query II rowsort
SELECT ALL col1, col0 * - 3 AS col0 FROM tab1
----
14
-153
47
-273
5
-255

query I rowsort
SELECT + 90 * - col0 AS col1 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT 3, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3277
SELECT 3, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT - - 9 * col0 FROM tab2 AS cor0
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL - - col1 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 38 AS col2, + 51 FROM tab0 AS cor0
----
38
51
38
51
38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT - - SUM( DISTINCT - 1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - - SUM ( DISTINCT - 1 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * 13 col2 FROM tab1
----
-1274
-1274
-1274

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL - col0 * 30 + - CAST( NULL AS SIGNED ) - 26 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - col0 * 30 + - CAST ( NULL AS INTEGER ) - 26 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3285
SELECT DISTINCT + ( - CAST( col1 AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + ( - CAST ( col1 AS REAL ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + - col0 * + 92 + col2 * 62 AS col1 FROM tab2 AS cor0
----
-2806
-3304
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT - - COUNT( * ) + + 41 * 37 * - - COUNT( * ) AS col0 FROM tab1 cor0
----
4554

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - - COUNT ( * ) + + 41 * 37 * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
4554

query I rowsort
SELECT DISTINCT - col0 + - + ( 32 ) FROM tab1 AS cor0
----
-117
-123
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 > + 45
----
-2

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 > + 45
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL COUNT( * ) * COUNT( + col0 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL COUNT ( * ) * COUNT ( + col0 ) AS col1 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - 81 * - 7 FROM tab2
----
567

query I rowsort
SELECT 75 * + col1 + + - col0 FROM tab2
----
3779
4950
5711

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - col1 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - col1 + col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT CAST( + - ( + + col0 ) AS SIGNED ) + - col0 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-3294
SELECT CAST ( + - ( + + col0 ) AS INTEGER ) + - col0 FROM tab0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 91 col2 FROM tab1
----
-44
-77
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + - col2
----

query I rowsort
SELECT + col1 * col1 + col0 + col1 AS col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - - SUM( DISTINCT - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3298
SELECT - - SUM ( DISTINCT - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + 82 + + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-3299
SELECT + 82 + + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
82

query II rowsort
SELECT DISTINCT ( 2 ) + + col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
53
51
69
67
79
77

query I rowsort
SELECT DISTINCT - ( + - col2 ) + 97 * - + col2 AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

query I rowsort
SELECT 35 + ( + + col0 ) FROM tab0
----
122
132
50

query I rowsort
SELECT DISTINCT - + 65 AS col1 FROM tab0 cor0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT COUNT( * ) * + 0 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT COUNT ( * ) * + 0 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + col2 ) col1, - col2 * col0 col2 FROM tab0 AS cor0
----
10
-870
47
-705
99
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT COUNT( * ) * + COUNT( * ) * + 30 AS col2 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3306
SELECT COUNT ( * ) * + COUNT ( * ) * + 30 AS col2 FROM tab1 AS cor0
----
270

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + 37 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-22
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL - + CAST( NULL AS SIGNED ) + - - col0 col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN ( 59 * col2 ) AND - 0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3309
SELECT ALL - + CAST ( NULL AS INTEGER ) + - - col0 col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN ( 59 * col2 ) AND - 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT + col2 DIV + col2 + - col2 * - + col0 + + + col1 AS col2 FROM tab2 AS cor0
----
1110
2638
4418

skipif mysql # not compatible
query I rowsort label-3310
SELECT + col2 / + col2 + - col2 * - + col0 + + + col1 AS col2 FROM tab2 AS cor0
----
1110
2638
4418

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3311
SELECT + CAST( + col2 AS SIGNED ) DIV + 70 + col0 + col1 + + - 33 DIV 41 * + - 99 + 92 FROM tab1
----
158
182
230

skipif mysql # not compatible
query I rowsort label-3311
SELECT + CAST ( + col2 AS INTEGER ) / + 70 + col0 + col1 + + - 33 / 41 * + - 99 + 92 FROM tab1
----
158
182
230

query I rowsort
SELECT ( + 68 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + MIN( - col1 ) col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3313
SELECT ALL + MIN ( - col1 ) col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - col0 * ( - ( + 35 ) ) + - col2 + + + col2 AS col2 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - 4 * - + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - 4 * - + COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT DISTINCT - 12 + - col0 AS col0 FROM tab1 cor0
----
-103
-63
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT - + CAST( - ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3317
SELECT - + CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3318
SELECT + COUNT( * ) DIV + + 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT + COUNT ( * ) / + + 53 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - col1, col1 + col2 AS col1 FROM tab0 AS cor0
----
-1
100
-21
31
-81
128

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL COUNT( ALL + + 27 ) + - - 7 AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL COUNT ( ALL + + 27 ) + - - 7 AS col0 FROM tab2 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3322
SELECT - 77 col0, - 53 + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-77
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3322
SELECT - 77 col0, - 53 + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-77
-50

query I rowsort
SELECT + + col0 / - col1 FROM tab0 AS cor0 WHERE NULL <= 92 * - 12 + - - col1 * 46
----

query II rowsort
SELECT - col1, + col1 + - + col1 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT ( + COUNT( + col2 ) ) * + 59 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT ( + COUNT ( + col2 ) ) * + 59 FROM tab0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - - + 69 col0, col2 FROM tab2
----
11
58
29
40
46
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT - CAST( NULL AS SIGNED ) - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT - CAST ( NULL AS INTEGER ) - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - - col2 ) * + 9 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT - 84 FROM tab2 WHERE - ( - ( + col1 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 11 * + + col2 * - 59 FROM tab1
----
-38291
-44132
-62304

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL - MAX( ALL - ( + col2 ) ) - + COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - MAX ( ALL - ( + col2 ) ) - + COUNT ( * ) FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 * - col1 + - 48 + + + col2 col1 FROM tab0
----
111
1222
4859

query I rowsort
SELECT - col2 * 43 - - + 64 AS col1 FROM tab2 WHERE + + 99 IS NOT NULL
----
-1656
-2430
-925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3334
SELECT ALL ( COUNT( * ) ) DIV - COUNT( * ) + - SUM( + 48 ) AS col2 FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL ( COUNT ( * ) ) / - COUNT ( * ) + - SUM ( + 48 ) AS col2 FROM tab0
----
-145

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query II rowsort
SELECT DISTINCT 95, col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 30 * col1 AS col2 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT ALL + 97 * + + 63 AS col1 FROM tab1
----
6111
6111
6111

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> 0
----

query I rowsort
SELECT ALL - 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT DISTINCT CAST( - col1 AS SIGNED ) col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3342
SELECT DISTINCT CAST ( - col1 AS INTEGER ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT DISTINCT - COUNT( ALL col0 ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3343
SELECT DISTINCT - COUNT ( ALL col0 ) col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 73 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 73 <> NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT 33 AS col2 FROM tab1 WHERE NOT NULL <= - ( + 73 ) * - col0
----

query I rowsort
SELECT 11 * 90 FROM tab1
----
990
990
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + ( + COUNT( * ) ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3348
SELECT + ( + COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3349
SELECT - 85 + + CAST( col0 AS SIGNED ) * + col0, + col1 FROM tab0
----
140
81
7484
21
9324
1

skipif mysql # not compatible
query II rowsort label-3349
SELECT - 85 + + CAST ( col0 AS INTEGER ) * + col0, + col1 FROM tab0
----
140
81
7484
21
9324
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT col2 + - - ( + col2 ) DIV + 20 FROM tab1
----
100
61
71

skipif mysql # not compatible
query I rowsort label-3350
SELECT col2 + - - ( + col2 ) / + 20 FROM tab1
----
100
61
71

query I rowsort
SELECT ALL - col0 + col1 * - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query II rowsort
SELECT ALL + 86 + - col0, 51 AS col2 FROM tab2 AS cor0
----
11
51
22
51
40
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT + + ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3353
SELECT + + ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + col2 DIV + 8 AS col2 FROM tab2
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3354
SELECT + col2 / + 8 AS col2 FROM tab2
----
2
5
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3355
SELECT ALL col1 * + - ( CAST( NULL AS DECIMAL ) ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL col1 * + - ( CAST ( NULL AS REAL ) ) * - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 53 IN ( - + 90, - 55 - 97 ) AND NOT NULL BETWEEN + col0 AND + 12 * - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 53 IN ( - + 90, - 55 - 97 ) AND NOT NULL BETWEEN + col0 AND + 12 * - - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3357
SELECT - - 96 + - CAST( NULL AS SIGNED ) + 65 / + - CAST( + 70 AS SIGNED ) + - + AVG ( ( - CAST( + + col0 AS DECIMAL ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT - - 96 + - CAST ( NULL AS INTEGER ) + 65 / + - CAST ( + 70 AS INTEGER ) + - + AVG ( ( - CAST ( + + col0 AS REAL ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 28 + - col1 * col0 FROM tab1 AS cor0
----
-4305
-453
-742

query I rowsort
SELECT - - 12 + - - 8 - + - 88 AS col1 FROM tab2 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - + MIN( ALL + 92 ) + 68 col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3360
SELECT - + MIN ( ALL + 92 ) + 68 col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ALL col0 - + + 74 FROM tab1
----
-23
11
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3362
SELECT DISTINCT + MIN( ALL + 96 ) AS col0, - 91 AS col2 FROM tab0
----
96
-91

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT + MIN ( ALL + 96 ) AS col0, - 91 AS col2 FROM tab0
----
96
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + SUM( ALL col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3363
SELECT + SUM ( ALL col0 ) col2 FROM tab0
----
199

query I rowsort
SELECT ALL 4 * col1 - 75 AS col1 FROM tab2
----
129
193
233

query II rowsort
SELECT ALL - - col1, - col1 AS col2 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT ALL + 22 * + 59 FROM tab2 cor0
----
1298
1298
1298

query II rowsort
SELECT + 41 AS col2, ( + 39 ) FROM tab2 AS cor0
----
41
39
41
39
41
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT - 51 DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT - 51 / - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - + MAX( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3369
SELECT - + MAX ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT ALL + 87 DIV - MIN( col1 ) col0 FROM tab0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3370
SELECT ALL + 87 / - MIN ( col1 ) col0 FROM tab0
----
-87

query I rowsort
SELECT - col1 - + col0 + - 28 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-124
-126
-136

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT COUNT( ALL 5 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT COUNT ( ALL 5 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col2 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + - col0 * - + col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT col1 DIV col0 * - 19 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT col1 / col0 * - 19 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL - col1 DIV ( 56 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - col1 / ( 56 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col0 + col2 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT - MAX( DISTINCT - + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT + COUNT( * ) AS col0, - 33 FROM tab0
----
3
-33

skipif mysql # not compatible
query II rowsort label-3380
SELECT + COUNT ( * ) AS col0, - 33 FROM tab0
----
3
-33

query I rowsort
SELECT DISTINCT - 78 * - 99 FROM tab0 AS cor0
----
7722

query I rowsort
SELECT ALL + 25 * + ( + - col0 ) + - + col2 FROM tab1 AS cor0
----
-1371
-2184
-2343

query I rowsort
SELECT 10 + + + col1 AS col1 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT - - col1 + + + col1 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 57 col2 FROM tab1 AS cor0
----
104
62
71

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3387
SELECT ALL - + col1 AS col2, col0 DIV - col1 FROM tab1 cor0
----
-14
-3
-47
-1
-5
-17

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL - + col1 AS col2, col0 / - col1 FROM tab1 cor0
----
-14
-3
-47
-1
-5
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT + - 33 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT + - 33 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - - col2 AS col1, 97 col2 FROM tab0 AS cor0
----
196
97
62
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT CAST( 79 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3390
SELECT CAST ( 79 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT + 99 + + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + 99 + + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
102

query I rowsort
SELECT ALL 64 + col0 FROM tab2 AS cor0
----
110
128
139

query I rowsort
SELECT ALL ( 36 ) - 67 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT + - col1 + col1 DIV col1 FROM tab1 cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT + - col1 + col1 / col1 FROM tab1 cor0
----
-13
-4
-46

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 27 NOT BETWEEN - col2 * + 94 AND + ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT CAST( + 71 AS SIGNED ) - + col0 FROM tab0
----
-16
-26
56

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT CAST ( + 71 AS INTEGER ) - + col0 FROM tab0
----
-16
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + MAX( - 51 ) + COUNT( DISTINCT + col0 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + MAX ( - 51 ) + COUNT ( DISTINCT + col0 ) FROM tab0
----
-48

query I rowsort
SELECT ALL 72 - - ( - col1 ) AS col0 FROM tab2
----
-5
21
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT - COUNT( DISTINCT ( - - col2 ) ) - - 4 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3399
SELECT DISTINCT - COUNT ( DISTINCT ( - - col2 ) ) - - 4 col2 FROM tab1
----
1

query II rowsort
SELECT col2 * - - 11 + - + col0, - 47 * + + 45 + + col1 AS col1 FROM tab2
----
207
-2064
376
-2038
563
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT COUNT( * ) + COUNT( * ) - COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3401
SELECT COUNT ( * ) + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT DISTINCT ( - CAST( + 7 AS SIGNED ) ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT ( - CAST ( + 7 AS INTEGER ) ) AS col0 FROM tab1
----
-7

query II rowsort
SELECT + 54, ( col0 ) AS col0 FROM tab0 WHERE NOT + 74 + - 78 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT 16 * col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3404
SELECT 16 * col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 * - col2 * + 29 FROM tab1
----
-38976
-8555
-92684

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT + 48 col0, SUM( - - 62 ) AS col0 FROM tab2
----
48
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3406
SELECT + 48 col0, SUM ( - - 62 ) AS col0 FROM tab2
----
48
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL 24 * - COUNT( * ) AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL 24 * - COUNT ( * ) AS col0 FROM tab1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3408
SELECT ALL * FROM tab1 WHERE + col1 <= + ( + - ( - col1 ) ) * 40 - + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3408
SELECT ALL * FROM tab1 WHERE + col1 <= + ( + - ( - col1 ) ) * 40 - + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT - 87 * + 78 + - col0 DIV col0 FROM tab0
----
-6787
-6787
-6787

skipif mysql # not compatible
query I rowsort label-3409
SELECT - 87 * + 78 + - col0 / col0 FROM tab0
----
-6787
-6787
-6787

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT MIN( - col1 ) + + 20 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3410
SELECT MIN ( - col1 ) + + 20 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT + 71 + + - COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3411
SELECT + 71 + + - COUNT ( * ) FROM tab1
----
68

query I rowsort
SELECT + 99 * - col2 + + col0 * - col0 * col0 AS col2 FROM tab1
----
-142155
-619966
-760303

query I rowsort
SELECT col1 * + col0 + + col2 + + 32 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4377
516
842

query I rowsort
SELECT col1 * + 12 + 76 AS col0 FROM tab1
----
136
244
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + - col1 <> col1
----

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + - col1 <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT - ( - col1 ) + + - ( - - ( col1 ) ) FROM tab2 cor0 WHERE NULL BETWEEN - col1 AND 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT - COUNT( + 39 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - COUNT ( + 39 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT - col0 - - ( - col1 ) AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE - - col1 + 0 = NULL
----

query I rowsort
SELECT DISTINCT 24 + - 20 + - + col2 FROM tab2
----
-19
-36
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-3422
SELECT col2, col1 DIV col0 AS col2 FROM tab0 AS cor0
----
10
0
47
5
99
0

skipif mysql # not compatible
query II rowsort label-3422
SELECT col2, col1 / col0 AS col2 FROM tab0 AS cor0
----
10
0
47
5
99
0

query I rowsort
SELECT - + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT - + COUNT( - 62 ) + COUNT( * ) col0 FROM tab1 AS cor0 WHERE + 79 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3424
SELECT - + COUNT ( - 62 ) + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + 79 IS NOT NULL
----
0

query I rowsort
SELECT + ( 66 ) AS col1 FROM tab2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + MAX( ALL + 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-3426
SELECT + MAX ( ALL + 69 ) FROM tab0
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + ( col0 ) / + + col0 + - col0 < NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + col1 + - + col0 - 2 AS col0 FROM tab1 AS cor0
----
-1397
-3289
-382

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL - + SUM( DISTINCT + 47 ) AS col0 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - + SUM ( DISTINCT + 47 ) AS col0 FROM tab0 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - col0 * + col2 / 57
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - col0 * + col2 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT MAX( + 93 ) FROM tab2, tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3431
SELECT MAX ( + 93 ) FROM tab2, tab1 AS cor0
----
93

query I rowsort
SELECT ALL + col2 * - + 51 * col0 FROM tab0
----
-35955
-44370
-489753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 92 col2 FROM tab0 AS cor0
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT - COUNT( * ) AS col1, COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-3434
SELECT - COUNT ( * ) AS col1, COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-3
9

query I rowsort
SELECT DISTINCT - + 33 + 48 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - + COUNT( * ) + - 65 + 50 AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - + COUNT ( * ) + - 65 + 50 AS col2 FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 AS col2, - 99 col2 FROM tab2 AS cor0
----
-23
-99
-40
-99
-58
-99

query I rowsort
SELECT ALL + 16 FROM tab2 WHERE NOT 79 IS NOT NULL
----

query I rowsort
SELECT - + 39 FROM tab1 WHERE - col0 NOT BETWEEN + + col0 AND NULL
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT - COUNT( * ) * - 2 AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT - COUNT ( * ) * - 2 AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + 40 + COUNT( * ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-3441
SELECT + 40 + COUNT ( * ) AS col0 FROM tab1
----
43

query I rowsort
SELECT - col1 * col2 + + 27 + - 58 AS col2 FROM tab0
----
-130
-241
-3838

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - COUNT( * ) * 0 + + 77 AS col0 FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3443
SELECT - COUNT ( * ) * 0 + + 77 AS col0 FROM tab1 cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT ALL MIN( + col1 ) DIV - SUM( col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL MIN ( + col1 ) / - SUM ( col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE col0 * - - col1 BETWEEN NULL AND + col2 * col0
----

query I rowsort
SELECT DISTINCT + + col0 * col0 - - col1 + + col0 FROM tab2 AS cor0
----
2213
4237
5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 * - 70 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 2 IS NULL
----

query I rowsort
SELECT - + 36 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3449
SELECT DISTINCT - 63 DIV - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - 63 / - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT + 67 - + col2 + + CAST( NULL AS SIGNED ) * col0 * col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT + 67 - + col2 + + CAST ( NULL AS INTEGER ) * col0 * col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT DISTINCT + col0 DIV + + col1 col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3451
SELECT DISTINCT + col0 / + + col1 col2 FROM tab0 AS cor0
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 92 * + ( + col0 ) * + col1 - + col0 + - col0 + + col1 AS col1, - col2 col1 FROM tab2 AS cor0
----
-215873
-23
-453427
-40
-462383
-58

query I rowsort
SELECT ALL + - col2 + - + 47 FROM tab2 AS cor0
----
-105
-70
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT DISTINCT 44 DIV 79 DIV + + col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT 44 / 79 / + + col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT col0 FROM tab0 WHERE NOT NULL = col2 * + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3455
SELECT col0 FROM tab0 WHERE NOT NULL = col2 * + CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL + MIN( DISTINCT - + col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + MIN ( DISTINCT - + col1 ) AS col0 FROM tab2
----
-77

query II rowsort
SELECT 49, col0 AS col1 FROM tab0
----
49
15
49
87
49
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - 83 NOT BETWEEN NULL AND - 40
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 > NULL
----

query II rowsort
SELECT ALL - - 84 AS col2, + ( + - 33 ) * + col0 - col2 + + + col1 * + col1 FROM tab2 cor0
----
84
1060
84
1956
84
3777

query I rowsort
SELECT 80 * - col2 FROM tab2 WHERE NULL IS NULL
----
-1840
-3200
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT + col1 DIV ( col0 ) + + col1 AS col1 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-3462
SELECT + col1 / ( col0 ) + + col1 AS col1 FROM tab2
----
52
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + ( - COUNT( * ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3463
SELECT ALL + ( - COUNT ( * ) ) col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT - 37 <= ( - col0 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT 2 - COUNT( ALL ( 74 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3465
SELECT 2 - COUNT ( ALL ( 74 ) ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + ( + col1 ) ) / - col2 + 20 > - col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) BETWEEN - col0 AND ( - 5 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3468
SELECT * FROM tab0 WHERE NOT + 95 > CAST( + 67 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3468
SELECT * FROM tab0 WHERE NOT + 95 > CAST ( + 67 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - 20 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - 2 )
----

query I rowsort
SELECT DISTINCT col2 - + 22 FROM tab0
----
-12
25
77

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN col0 - + 64 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT - 15 + MAX( ALL 19 - ( 87 - - col1 DIV 58 ) * 89 ) AS col2 FROM tab2
----
-7739

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 15 + MAX ( ALL 19 - ( 87 - - col1 / 58 ) * 89 ) AS col2 FROM tab2
----
-7739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 28 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 61 * - col1 + col2 * - col1 AS col1 FROM tab1
----
-329
-490
10

query III rowsort
SELECT * FROM tab1 WHERE 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + col2 col1 FROM tab2
----
57
74
92

query I rowsort
SELECT DISTINCT 3 + + ( col0 ) FROM tab0 AS cor0
----
100
18
90

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND col1 * - 59
----

query I rowsort
SELECT 83 FROM tab2 cor0 WHERE NULL <= ( + 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT 97 - - COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3482
SELECT 97 - - COUNT ( * ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT - 71 FROM tab1 WHERE 97 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3486
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT - CAST( NULL AS SIGNED ) + + 86 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-3486
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + + 86 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - 46 * - col2 AS col2 FROM tab0 AS cor0
----
2162
4554
460

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3488
SELECT CAST( - col1 AS SIGNED ) DIV col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3488
SELECT CAST ( - col1 AS INTEGER ) / col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - + COUNT( * ) * + 18 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3489
SELECT - + COUNT ( * ) * + 18 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE - ( + 21 ) / 82 + + 77 * - col1 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT + + ( MIN( col1 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT + + ( MIN ( col1 ) ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + col1 * - col1 >= NULL
----

query I rowsort
SELECT ALL 14 + + col1 FROM tab1 cor0 WHERE NOT col1 BETWEEN + ( - 98 ) * - col2 AND col0
----
19
28
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 70 / 23 ) = ( - col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT COUNT( * ) * - + 76 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT COUNT ( * ) * - + 76 FROM tab0
----
-228

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col1 BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 / + col1 < ( NULL )
----

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT - col2 / + col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT - MIN( ALL + - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - MIN ( ALL + - col1 ) FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) NOT IN ( 20 - col0 * 90 )
----

query I rowsort
SELECT 39 AS col2 FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * + col1 + + col1 col2 FROM tab2
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - SUM( DISTINCT 22 ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-3505
SELECT - SUM ( DISTINCT 22 ) AS col0 FROM tab1
----
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col1 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT DISTINCT 36 + col1 DIV col1 * + col0 col0 FROM tab0 AS cor0
----
123
133
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT DISTINCT 36 + col1 / col1 * + col0 col0 FROM tab0 AS cor0
----
123
133
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT + - col0, - 18 AS col1 FROM tab0 AS cor0
----
-15
-18
-87
-18
-97
-18

query I rowsort
SELECT DISTINCT - col0 + - 46 AS col2 FROM tab0 AS cor0
----
-133
-143
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3511
SELECT * FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3511
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 74 BETWEEN NULL AND 79 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - - COUNT( + - col0 ) + 75 + + COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - - COUNT ( + - col0 ) + 75 + + COUNT ( * ) FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 * + col1 - - col1 col0 FROM tab2
----
-408
-536
-616

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - 78 ) AND ( col0 )
----

query I rowsort
SELECT ALL col2 - + col1 + + + 61 * + col0 FROM tab1
----
3193
5239
5572

query I rowsort
SELECT ALL ( - 51 ) FROM tab2
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-3518
SELECT col2 + - 57, - 10 DIV + col2 AS col1 FROM tab2
----
-17
0
-34
0
1
0

skipif mysql # not compatible
query II rowsort label-3518
SELECT col2 + - 57, - 10 / + col2 AS col1 FROM tab2
----
-17
0
-34
0
1
0

query II rowsort
SELECT - col2 + + col0, - col1 AS col2 FROM tab0
----
-2
-1
-32
-81
77
-21

query I rowsort
SELECT - ( + col2 ) + - + 4 FROM tab0 AS cor0
----
-103
-14
-51

query I rowsort
SELECT DISTINCT + ( - 60 ) - col1 AS col2 FROM tab1 AS cor0
----
-107
-65
-74

query I rowsort
SELECT 27 + 80 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 6f26a03989006af44e1b70d584e50047

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3523
SELECT + col1, CAST( NULL AS SIGNED ) / col2 * + col0 AS col0 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3523
SELECT + col1, CAST ( NULL AS INTEGER ) / col2 * + col0 AS col0 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT + - col2 * - 42 + + + 20 - - + 55 AS col2 FROM tab2 AS cor0
----
1041
1755
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + MAX( + + 82 ) col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3525
SELECT ALL + MAX ( + + 82 ) col1 FROM tab2 AS cor0
----
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 79 ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + MIN( - col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3527
SELECT + MIN ( - col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST( + 84 AS SIGNED ) * - ( col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( + 84 AS INTEGER ) * - ( col2 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 49 ) <> + col1 + + col2
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL MAX( ALL + 53 ) FROM tab0 AS cor0 WHERE NOT col0 * - + 10 * 1 * - col1 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL MAX ( ALL + 53 ) FROM tab0 AS cor0 WHERE NOT col0 * - + 10 * 1 * - col1 IS NULL
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL + - CAST( NULL AS SIGNED ) * + col1 / col0 + + + col1 + col0 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col1 / col0 + + + col1 + col0 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 11 * + col2 * + 36 FROM tab2 AS cor0
----
15840
22968
9108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT - CAST( - AVG ( - 73 ) AS SIGNED ) * + ( - + ( COUNT( - col1 ) ) ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - CAST ( - AVG ( - 73 ) AS INTEGER ) * + ( - + ( COUNT ( - col1 ) ) ) FROM tab0 AS cor0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL ( + col0 ) DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL ( + col0 ) / + col0 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT + 27 AS col1, + 17 * - + 30 FROM tab0
----
27
-510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 * col1 * - - ( - + ( + - col2 ) ) AS col2 FROM tab2
----
-23
59823
-40
237160
-58
260362

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT - COUNT( * ), - 6 AS col0 FROM tab1
----
-3
-6

skipif mysql # not compatible
query II rowsort label-3538
SELECT - COUNT ( * ), - 6 AS col0 FROM tab1
----
-3
-6

query II rowsort
SELECT - 0 AS col2, + 89 * - col1 * - - col1 * col1 FROM tab0
----
0
-47298249
0
-824229
0
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT - COUNT( * ) * + + 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - COUNT ( * ) * + + 52 FROM tab0
----
-156

query I rowsort
SELECT ALL ( 46 ) AS col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT + 36 * col0 FROM tab1 AS cor0 WHERE NOT ( col2 * - + 77 ) BETWEEN ( - 14 * 29 ) AND NULL
----
1836
3060
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT + - col0 DIV - + col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + - col0 / - + col1 AS col2 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT DISTINCT + col1 + + - 2 AS col2 FROM tab1 cor0
----
12
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 / + 23 * - - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 / + 23 * - - col2 > NULL
----
0

query I rowsort
SELECT - - col2 * + 29 * - col0 * - - col1 AS col1 FROM tab2 AS cor0
----
-1564782
-5716480
-8452050

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 61, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3548
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - col0, CAST( col2 AS SIGNED ) * - 66 )
----

skipif mysql # not compatible
query III rowsort label-3548
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - col0, CAST ( col2 AS INTEGER ) * - 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 81
----

query II rowsort
SELECT ALL - col1 + - + 7 AS col1, - col0 FROM tab1 cor0
----
-12
-85
-21
-51
-54
-91

query I rowsort
SELECT ALL col1 + - 87 FROM tab1 AS cor0
----
-40
-73
-82

query II rowsort
SELECT DISTINCT + + 66 + + 91 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
157
51
157
67
157
77

query I rowsort
SELECT + col0 * + col0 * - col1 FROM tab1 AS cor0 WHERE ( + 33 ) IS NOT NULL
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + + col0 + - ( - col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) + 0 col0 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT col2, 97 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT col1 + col2 DIV col1 col0 FROM tab1 cor0
----
16
20
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT col1 + col2 / col1 col0 FROM tab1 cor0
----
16
20
48

query I rowsort
SELECT DISTINCT + 98 - - + col2 * col0 AS col0 FROM tab1 AS cor0
----
4994
5113
6286

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT + COUNT( * ) + - + SUM( 5 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3560
SELECT + COUNT ( * ) + - + SUM ( 5 ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT col2 AS col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE + ( - 97 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE + ( - 97 ) IS NOT NULL
----
-3

query I rowsort
SELECT col1 * - 23 FROM tab2
----
-1173
-1541
-1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 74 * + 26 + + col0 * - ( + col2 ) + col1 col2 FROM tab0
----
-15
1300
-87
1075
-97
-7678

query I rowsort
SELECT DISTINCT - 83 * + + col0 + - col1 + - col0 FROM tab1 cor0
----
-4298
-7145
-7691

query I rowsort
SELECT 7 - + - 80 + 0 + + + col1 * col2 FROM tab1 AS cor0
----
1431
3283
382

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT + ( COUNT( * ) ) * + 72 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
657

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + ( COUNT ( * ) ) * + 72 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT ALL 53 + col1 FROM tab0 AS cor0 WHERE NOT + col1 * CAST( + 19 AS SIGNED ) + + 15 + 53 * 83 IN ( + col2 + 49 + - col0 / - col1 )
----
134
54
74

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL 53 + col1 FROM tab0 AS cor0 WHERE NOT + col1 * CAST ( + 19 AS INTEGER ) + + 15 + 53 * 83 IN ( + col2 + 49 + - col0 / - col1 )
----
134
54
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + COUNT( * ) * + SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-3570
SELECT + COUNT ( * ) * + SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT SUM( - 32 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3571
SELECT SUM ( - 32 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT + COUNT( * ) DIV + 13 - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3572
SELECT + COUNT ( * ) / + 13 - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col2 * - - 44 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT DISTINCT 62 * - col0 AS col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT 7 * col1 FROM tab1
----
329
35
98

query II rowsort
SELECT DISTINCT col1 AS col1, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL col1 + - - col0 + 35 + - ( col2 ) DIV - + col0 AS col2 FROM tab2 AS cor0
----
132
176
177

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL col1 + - - col0 + 35 + - ( col2 ) / - + col0 AS col2 FROM tab2 AS cor0
----
132
176
177

query II rowsort
SELECT ALL - col2, + 94 AS col2 FROM tab0
----
-10
94
-47
94
-99
94

query I rowsort
SELECT - col0 + + - col0 * + col0 AS col1 FROM tab1
----
-2652
-7310
-8372

query I rowsort
SELECT ALL - - col2 * col1 * + col2 / col2 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND + 54
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + ( + col1 ) ) = - - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 15 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 20 IS NOT NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + + 39 * + - MAX( + - 4 ) AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3583
SELECT + + 39 * + - MAX ( + - 4 ) AS col2 FROM tab1 AS cor0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3584
SELECT - COUNT( * ) * 8 DIV + 31 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT - COUNT ( * ) * 8 / + 31 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT + col1 * + CAST( - 73 AS SIGNED ) col0 FROM tab2 AS cor0
----
-3723
-4891
-5621

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT + col1 * + CAST ( - 73 AS INTEGER ) col0 FROM tab2 AS cor0
----
-3723
-4891
-5621

query II rowsort
SELECT + col0, 59 FROM tab1 AS cor0
----
51
59
85
59
91
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT ALL + 20 DIV - + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL + 20 / - + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + CAST( 14 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3588
SELECT + CAST ( 14 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
14
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT ALL COUNT( * ) + 22 DIV - 87 + 0 AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL COUNT ( * ) + 22 / - 87 + 0 AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT + 80 * + 40 * 9 + - 86 + - + 70 FROM tab0 AS cor0 WHERE + col0 IN ( + 42, + 32 * - - col1 - - 72 )
----

query I rowsort
SELECT ALL - - 94 + - - col0 FROM tab0 AS cor0
----
109
181
191

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 + + col1 ) NOT BETWEEN - col0 * + col2 + - 36 + + + col2 + - 89 * + - ( + + 10 ) AND + - 52 * ( 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 38 FROM tab1, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL col0 - - + 66 * col2 FROM tab1
----
3979
4579
6387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT - SUM( - 54 ) + - CAST( NULL AS SIGNED ) - + MAX( 92 ) - + 30 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - SUM ( - 54 ) + - CAST ( NULL AS INTEGER ) - + MAX ( 92 ) - + 30 FROM tab0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE - 24 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE + col0 + - ( + + col2 ) < + col0 * - - 60
----
10
47
99

query II rowsort
SELECT ALL 48 * - + 6 AS col2, col1 FROM tab0
----
-288
1
-288
21
-288
81

query I rowsort
SELECT ALL + 15 + - 63 AS col2 FROM tab0 WHERE NULL IS NULL
----
-48
-48
-48

query I rowsort
SELECT + 68 + 64 AS col1 FROM tab2
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT SUM( DISTINCT col2 ) + + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-3602
SELECT SUM ( DISTINCT col2 ) + + COUNT ( * ) FROM tab0
----
159

query I rowsort
SELECT ALL 6 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - col1
----

query I rowsort
SELECT ALL - 9 AS col1 FROM tab2 cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 70 ) * + col2 + + + 25 * + - 55 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 9 col0 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + - COUNT( DISTINCT - + 67 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + - COUNT ( DISTINCT - + 67 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT col0 DIV - - 76 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3608
SELECT col0 / - - 76 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT MAX( + - 78 ) AS col0 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT MAX ( + - 78 ) AS col0 FROM tab1
----
-78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * + + col2 / + col2 / + + col2 * - 2 + + col0 / + + col0 * col1 + + 58 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - + col0 + - + 7 IS NOT NULL )
----

query II rowsort
SELECT ALL 60, col1 FROM tab1 AS cor0
----
60
14
60
47
60
5

query I rowsort
SELECT col0 * + 9 FROM tab2 cor0
----
414
576
675

query II rowsort
SELECT ALL - 13 AS col1, - col2 FROM tab0 AS cor0
----
-13
-10
-13
-47
-13
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT + 26 * + - 19 / 6 * - + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 26 * + - 19 / 6 * - + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT - COUNT( * ) + + - SUM( DISTINCT - - col1 ) * - 89 + + CAST( NULL AS SIGNED ) - - 36 + 38 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT - COUNT ( * ) + + - SUM ( DISTINCT - - col1 ) * - 89 + + CAST ( NULL AS INTEGER ) - - 36 + 38 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT 76 + - 73 * + col0 FROM tab2
----
-3282
-4596
-5399

query I rowsort
SELECT ALL 94 AS col0 FROM tab2 WHERE + + 4 IS NULL
----

query I rowsort
SELECT 84 + ( - - col0 ) AS col2 FROM tab0
----
171
181
99

query II rowsort
SELECT ALL ( col0 ), 80 FROM tab2
----
46
80
64
80
75
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3621
SELECT ALL - col0 * + 30 AS col1, - col2 / - CAST( NULL AS SIGNED ) FROM tab1
----
-1530
NULL
-2550
NULL
-2730
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL - col0 * + 30 AS col1, - col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
-1530
NULL
-2550
NULL
-2730
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0 * 28 - 62
----

query I rowsort
SELECT + col2 + 85 AS col1 FROM tab2
----
108
125
143

query I rowsort
SELECT - ( + 49 ) FROM tab0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT - 15 * COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT - 15 * COUNT ( * ) FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 11 ) + + 39 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 * - col1 ) IS NULL
----
28
28
28

query II rowsort
SELECT - - ( - col0 ) AS col1, 19 FROM tab0 AS cor0
----
-15
19
-87
19
-97
19

query II rowsort
SELECT + ( + col1 ), + col2 FROM tab0 cor0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 8 + + col0 > col2
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col1 + - + 7 FROM tab1 cor0
----
-12
-21
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL col2 * - CAST( - 56 AS SIGNED ) AS col0 FROM tab0
----
2632
5544
560

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL col2 * - CAST ( - 56 AS INTEGER ) AS col0 FROM tab0
----
2632
5544
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT ALL - 42 DIV + SUM( 63 ) * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - 42 / + SUM ( 63 ) * COUNT ( * ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) - + + 25 col0 FROM tab1 AS cor0
----
-30
-39
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT DISTINCT - - 38 * - CAST( + - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT - - 38 * - CAST ( + - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
117

query II rowsort
SELECT - col2 AS col2, - col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT + col0 AS col2, - 5 FROM tab2
----
46
-5
64
-5
75
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT DISTINCT COUNT( * ) DIV 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT COUNT ( * ) / 84 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 97 - + - col1 AS col2 FROM tab1
----
102
111
144

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * col0 * + + 66 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT DISTINCT + COUNT( * ) AS col1, 30 FROM tab1 AS cor0 WHERE NOT 5 + - col0 IS NULL
----
3
30

skipif mysql # not compatible
query II rowsort label-3641
SELECT DISTINCT + COUNT ( * ) AS col1, 30 FROM tab1 AS cor0 WHERE NOT 5 + - col0 IS NULL
----
3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT - col0 DIV + + col1 + + 88 AS col2 FROM tab2 AS cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-3642
SELECT - col0 / + + col1 + + 88 AS col2 FROM tab2 AS cor0
----
87
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3643
SELECT DISTINCT 96 col2, + CAST( - 59 AS SIGNED ) * - - 23 AS col2 FROM tab2 AS cor0
----
96
-1357

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3643
SELECT DISTINCT 96 col2, + CAST ( - 59 AS INTEGER ) * - - 23 AS col2 FROM tab2 AS cor0
----
96
-1357

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + 16 NOT IN ( 34 )
----

query II rowsort
SELECT - + 88 AS col1, 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 8ab05ca19719ef3395453cb20a6f849b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col0 FROM tab2
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 57 col0 FROM tab2
----
1311
2280
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL + COUNT( + col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + COUNT ( + col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 92 FROM tab1 AS cor0
----
-4
24
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT + - ( - - COUNT( * ) ), - 54 * + + COUNT( * ) - - 41 AS col2 FROM tab2 AS cor0
----
-3
-121

skipif mysql # not compatible
query II rowsort label-3651
SELECT + - ( - - COUNT ( * ) ), - 54 * + + COUNT ( * ) - - 41 AS col2 FROM tab2 AS cor0
----
-3
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 29 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 54 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 <> NULL
----

query I rowsort
SELECT - + 18 + + + 34 FROM tab1 WHERE + 26 IS NULL
----

query I rowsort
SELECT ALL + 55 * + 95 AS col1 FROM tab0
----
5225
5225
5225

query I rowsort
SELECT - + col2 FROM tab2 WHERE ( - col0 ) IN ( - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ( - 21 ) + MAX( ALL - col0 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-3658
SELECT ( - 21 ) + MAX ( ALL - col0 ) FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + 69 + - + COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + 69 + - + COUNT ( * ) FROM tab0 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT ALL + col0 DIV + 16 FROM tab1 AS cor0
----
3
5
5

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + col0 / + 16 FROM tab1 AS cor0
----
3
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 47 + + col1 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 66 + col0 + + 74 AS col0 FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT * FROM tab0 WHERE - col2 <= - col0
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT + 94 + + ( + 8 ) BETWEEN - + CAST( NULL AS SIGNED ) + - col1 + col2 * + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT + 94 + + ( + 8 ) BETWEEN - + CAST ( NULL AS INTEGER ) + - col1 + col2 * + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - + col0 / - 9 )
----

query I rowsort
SELECT - col1 - - ( + - col0 ) FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL col0 + 9 FROM tab1 AS cor0
----
100
60
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= - - ( - 70 )
----
46
51
23
75
67
58

query I rowsort
SELECT - - 16 - + col2 FROM tab1 AS cor0
----
-43
-52
-80

query I rowsort
SELECT DISTINCT + col1 + + col0 + + 15 * + 63 AS col0 FROM tab0 AS cor0
----
1041
1043
1053

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL - - COUNT( - + ( col1 ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3674
SELECT ALL - - COUNT ( - + ( col1 ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - col1 col0 FROM tab2 cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - - COUNT( + + 84 ) - - COUNT( ALL - - 56 ) * - 29 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - - COUNT ( + + 84 ) - - COUNT ( ALL - - 56 ) * - 29 FROM tab1 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + COUNT( * ) * MAX( - - 35 ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + COUNT ( * ) * MAX ( - - 35 ) FROM tab1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT - col0 DIV col0 DIV + - col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - col0 / col0 / + - col0 AS col2 FROM tab0
----
0

query II rowsort
SELECT ALL + 62 AS col0, col1 AS col0 FROM tab2
----
62
51
62
67
62
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3681
SELECT DISTINCT 28 DIV - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT 28 / - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL MIN( - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL MIN ( - + col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL + + 98 * - - COUNT( * ) FROM tab1 WHERE 97 IS NOT NULL
----
294

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + + 98 * - - COUNT ( * ) FROM tab1 WHERE 97 IS NOT NULL
----
294

query III rowsort
SELECT * FROM tab2 WHERE NOT - 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col1 + 60 AS col2 FROM tab2 AS cor0
----
2661
4549
5989

query I rowsort
SELECT + col1 * + - 64 AS col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT ALL 78 + col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + col2 + col0 + - col0 AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col2 < - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL SUM( DISTINCT - - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL SUM ( DISTINCT - - col0 ) AS col1 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + + 74 * - 65
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + col1 - col0 BETWEEN + col1 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT + col2 + ( + col0 ) DIV - col1 AS col0 FROM tab2
----
23
40
57

skipif mysql # not compatible
query I rowsort label-3693
SELECT + col2 + ( + col0 ) / - col1 AS col0 FROM tab2
----
23
40
57

query I rowsort
SELECT DISTINCT - ( 63 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + + ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - 74 ) + + col0 * - 0 * - - col2 col1 FROM tab1 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( - 64 ) * + - 42 col0, - col2 FROM tab1 AS cor0 WHERE NOT + 49 * - col2 > col1
----
-2688
-59
-2688
-68
-2688
-96

query I rowsort
SELECT DISTINCT col0 + + col1 - - - col2 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT DISTINCT 21 - + CAST( + + MAX( ALL + + col0 ) AS SIGNED ) * + 18 FROM tab1 AS cor0
----
-1617

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT 21 - + CAST ( + + MAX ( ALL + + col0 ) AS INTEGER ) * + 18 FROM tab1 AS cor0
----
-1617

query I rowsort
SELECT col0 - + 74 AS col2 FROM tab2
----
-10
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT + + MIN( ALL + - 35 ) col2 FROM tab0 cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3701
SELECT DISTINCT + + MIN ( ALL + - 35 ) col2 FROM tab0 cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3702
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 - - col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3702
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 - - col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 * - + 36 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3705
SELECT - col0 AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-3705
SELECT - col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT ALL - col0 * - 37 + - col0 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3707
SELECT DISTINCT - + CAST( NULL AS SIGNED ), 99 DIV - - CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
-1
NULL
-2
NULL
-4

skipif mysql # not compatible
query II rowsort label-3707
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), 99 / - - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
-1
NULL
-2
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT - + COUNT( * ) * - 31 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - + COUNT ( * ) * - 31 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT + 52 DIV - MAX( DISTINCT - + col0 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 52 / - MAX ( DISTINCT - + col0 ) AS col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT DISTINCT - col1 DIV ( 6 ) FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - col1 / ( 6 ) FROM tab1 AS cor0
----
-2
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 15 AS col1, + col1 col0 FROM tab0 cor0
----
1215
81
15
1
315
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2, - 12, - + 15 + + + col0 )
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE 73 + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3714
SELECT ALL + - 39 * 93 + - - CAST( NULL AS DECIMAL ) - + col1 + + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + - 39 * 93 + - - CAST ( NULL AS REAL ) - + col1 + + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT - + 75 DIV + - 21 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - + 75 / + - 21 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col1 * - + 54 FROM tab0 AS cor0
----
-1134
-4374
-54

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + 8
----

query I rowsort
SELECT + col0 * + 46 + + col2 AS col1 FROM tab2 WHERE + ( - 14 ) IS NOT NULL
----
2139
2984
3508

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3719
SELECT ALL * FROM tab0 WHERE NOT col0 - col1 BETWEEN NULL AND - CAST( - - col1 AS SIGNED ) + + col1 * col0
----

skipif mysql # not compatible
query III rowsort label-3719
SELECT ALL * FROM tab0 WHERE NOT col0 - col1 BETWEEN NULL AND - CAST ( - - col1 AS INTEGER ) + + col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3720
SELECT ALL CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3720
SELECT ALL CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT col1 + + - col0 + + - 86 AS col1 FROM tab1
----
-123
-130
-166

query I rowsort
SELECT col1 + + ( + + col2 ) AS col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT 45 + - SUM( DISTINCT col0 ) FROM tab0
----
-154

skipif mysql # not compatible
query I rowsort label-3723
SELECT 45 + - SUM ( DISTINCT col0 ) FROM tab0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL COUNT( ALL - + 57 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL COUNT ( ALL - + 57 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 + + 91 AS col2 FROM tab0
----
112
172
92

query I rowsort
SELECT ALL 28 + + col0 AS col0 FROM tab2 AS cor0
----
103
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 88 + - col0 col0 FROM tab2 AS cor0
----
64
65
71

query I rowsort
SELECT ALL - + 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - 25 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + col2 - 14 + + col0 * - col0 * + col0 * + 32 FROM tab2
----
-13499956
-3114743
-8388582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3731
SELECT + 69 * + 76, + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
5244
-1

skipif mysql # not compatible
query II rowsort label-3731
SELECT + 69 * + 76, + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
5244
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3732
SELECT CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + - 49 / + - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 71 + + 83 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 * + + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 17 ) col0 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3736
SELECT CAST( NULL AS DECIMAL ) + 1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT CAST ( NULL AS REAL ) + 1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT - - ( + ( COUNT( * ) ) ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 + + - col2 < 7
----
-9

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - - ( + ( COUNT ( * ) ) ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 + + - col2 < 7
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3738
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - CAST( NULL AS SIGNED ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3738
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - CAST ( NULL AS INTEGER ) AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 * + - 16 FROM tab1 AS cor0
----
-1661168
-2000
-43904

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + - 32 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 59 * + + col2 AS col2 FROM tab2
----
198476
31211
94400

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab2 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT 51, col1 AS col0 FROM tab2
----
51
51
51
67
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT COUNT( * ) * + 99 AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-3744
SELECT COUNT ( * ) * + 99 AS col0 FROM tab1
----
297

query I rowsort
SELECT DISTINCT - 16 * 60 AS col0 FROM tab2 cor0
----
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8, ( col0 ) col1 FROM tab2 AS cor0
----
8
46
8
64
8
75

query II rowsort
SELECT DISTINCT + 46 AS col0, 46 AS col1 FROM tab1 AS cor0
----
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ( + + SUM( ALL + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3748
SELECT ( + + SUM ( ALL + col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - 66 * MAX( - 54 ) FROM tab2
----
3564

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - 66 * MAX ( - 54 ) FROM tab2
----
3564

query I rowsort
SELECT DISTINCT col0 * - 84 * - col2 * col1 AS col0 FROM tab2
----
16558080
24481800
4532472

query I rowsort
SELECT - col2 + - 90 FROM tab1 cor0
----
-149
-158
-186

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE - 58 / - + col2 - + col0 * - + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT 9 + + col1 FROM tab2
----
60
76
86

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( col2 = - - col2 / col1 * 76 + + col2 + col0 )
----

query I rowsort
SELECT DISTINCT - 70 * - + col2 FROM tab1
----
4130
4760
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT DISTINCT - 44 DIV + 2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - 44 / + 2 FROM tab2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3757
SELECT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col1 * - 70
----

skipif mysql # not compatible
query III rowsort label-3757
SELECT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col1 * - 70
----

query I rowsort
SELECT - - col0 * col0 * + col0 + - - col0 - 27 FROM tab2 AS cor0
----
262181
421923
97355

query III rowsort
SELECT * FROM tab0 WHERE NULL >= 28 * col1
----

query I rowsort
SELECT + - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT - + ( ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL MIN( 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL MIN ( 26 ) FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + COUNT( + 49 ) * - 52 AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3763
SELECT + COUNT ( + 49 ) * - 52 AS col1 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 col0, 35 AS col1 FROM tab0 AS cor0
----
2
35
2
35
2
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL - MIN( + ( - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - MIN ( + ( - col1 ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab0 WHERE - 93 <> - 71 + + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + 14 * - - col2 * - 74 + + 59 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 3
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 32 * 16 NOT BETWEEN - 15 AND ( - 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 15 > + col1
----
15
81
47
87
21
10

query I rowsort
SELECT 97 + 42 * + col1 FROM tab0 AS cor0
----
139
3499
979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3773
SELECT ALL + MAX( ALL - ( + CAST( NULL AS SIGNED ) ) ) + + - 81 + + 65 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + MAX ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) + + - 81 + + 65 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT - CAST( - col2 AS SIGNED ) * - 94 * + col2 * 10 FROM tab1 WHERE NOT col0 < + col1
----
-3272140
-4346560
-8663040

skipif mysql # not compatible
query I rowsort label-3774
SELECT - CAST ( - col2 AS INTEGER ) * - 94 * + col2 * 10 FROM tab1 WHERE NOT col0 < + col1
----
-3272140
-4346560
-8663040

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT + COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-3775
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT 74 DIV SUM( - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT 74 / SUM ( - col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3777
SELECT + col1, col1 + + CAST( + col2 AS SIGNED ) + + - CAST( - + col1 AS SIGNED ) FROM tab0
----
1
101
21
52
81
209

skipif mysql # not compatible
query II rowsort label-3777
SELECT + col1, col1 + + CAST ( + col2 AS INTEGER ) + + - CAST ( - + col1 AS INTEGER ) FROM tab0
----
1
101
21
52
81
209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * - col2 + col0 col2 FROM tab1
----
-2511
-2901
-4173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * + col1 col2 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT + + 1 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - 35 + + + 16 FROM tab1 AS cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( 74 ) * - 57 col1 FROM tab1 AS cor0
----
-4218

query I rowsort
SELECT DISTINCT - + col0 + + - 69 FROM tab0 AS cor0
----
-156
-166
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT + ( - 13 ) + - + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + ( - 13 ) + - + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ( - col0 ) AS col2 FROM tab1 cor0 WHERE + 82 IS NULL
----

query I rowsort
SELECT ALL - + col1 + - col0 * + + col0 FROM tab1 AS cor0 WHERE + col1 <= - col2 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3787
SELECT - col1 AS col0, CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3787
SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL CAST( NULL AS SIGNED ) + + 13 * + ( - - 43 ) * - MAX( - ( - 27 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL CAST ( NULL AS INTEGER ) + + 13 * + ( - - 43 ) * - MAX ( - ( - 27 ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 0 - col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE - col1 + + + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT ALL + 83 * 53 DIV - - 55 FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + 83 * 53 / - - 55 FROM tab1
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - 17 + 36 * + SUM( 4 ) + - 11 col2 FROM tab0
----
404

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3792
SELECT - 17 + 36 * + SUM ( 4 ) + - 11 col2 FROM tab0
----
404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT DISTINCT MIN( ALL - + ( col1 ) ) DIV + 8 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT MIN ( ALL - + ( col1 ) ) / + 8 FROM tab1
----
-5

query I rowsort
SELECT - 83 + col2 AS col0 FROM tab0 AS cor0
----
-36
-73
16

query I rowsort
SELECT + - 80 * col0 + 58 * - col1 FROM tab1 AS cor0
----
-10006
-4892
-7090

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < col1
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT + + MAX( DISTINCT + - 89 ) col0 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3798
SELECT DISTINCT + + MAX ( DISTINCT + - 89 ) col0 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < - col0
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT ( NOT + col1 BETWEEN NULL AND + - 75 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL + COUNT( - + CAST( NULL AS SIGNED ) ) * + 59 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + COUNT ( - + CAST ( NULL AS INTEGER ) ) * + 59 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT + 19 * + 18 + + + ( + - ( + COUNT( * ) ) ) * - 30 AS col0 FROM tab1 WHERE NULL IS NULL
----
432

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + 19 * + 18 + + + ( + - ( + COUNT ( * ) ) ) * - 30 AS col0 FROM tab1 WHERE NULL IS NULL
----
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3803
SELECT + COUNT( * ) AS col0, + COUNT( * ) DIV + 40 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3803
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) / + 40 FROM tab1 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

query I rowsort
SELECT col2 + + + ( col2 ) AS col0 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3806
SELECT DISTINCT - col1 + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3806
SELECT DISTINCT - col1 + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT + 4 DIV + + col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-95

skipif mysql # not compatible
query I rowsort label-3807
SELECT + 4 / + + col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * - 17 + - 34 col1 FROM tab2
----
-714
-714
-714

query I rowsort
SELECT + ( + 16 ) * - 47 - - - col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-753
-773
-833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 - 28 + + col2 + + - 15 col0 FROM tab0
----
103
155
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT DISTINCT - COUNT( * ) AS col2, 1 col1 FROM tab1
----
-3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3812
SELECT DISTINCT - COUNT ( * ) AS col2, 1 col1 FROM tab1
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT - - 7 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - - 7 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - ( - COUNT( * ) ) * 88 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
792

skipif mysql # not compatible
query I rowsort label-3814
SELECT - ( - COUNT ( * ) ) * 88 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT + 77 * - 16 FROM tab2
----
-1232

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col2, col2, + col1 * + col0 + - col0 * + + col1 ) OR NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT + 81 * - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT + 81 * - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT DISTINCT col0 DIV - col1 + - 90 col2 FROM tab2 AS cor0
----
-90
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3819
SELECT DISTINCT col0 / - col1 + - 90 col2 FROM tab2 AS cor0
----
-90
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT ALL + 91 DIV + ( col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + 91 / + ( col0 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT - - MIN( DISTINCT col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - - MIN ( DISTINCT col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 71 <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - COUNT( * ) * + - ( + - 35 ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3823
SELECT - COUNT ( * ) * + - ( + - 35 ) FROM tab0 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-3824
SELECT + col2 AS col2, - col2 DIV + col1 AS col0 FROM tab0
----
10
0
47
0
99
-99

skipif mysql # not compatible
query II rowsort label-3824
SELECT + col2 AS col2, - col2 / + col1 AS col0 FROM tab0
----
10
0
47
0
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT col2 * + 25 <> - - ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT col2 * + 25 <> - - ( + col1 )
----
0

query II rowsort
SELECT - - AVG ( ALL + col2 ) AS col2, 76 FROM tab2 WHERE NOT - 11 IS NOT NULL
----
NULL
76

query I rowsort
SELECT - - 1 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT + col2 + - 9 AS col0 FROM tab1 cor0
----
50
59
87

query I rowsort
SELECT DISTINCT + 32 + + ( - 7 ) AS col0 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + - 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - col1 * + 25 * + + 14 * + col1 FROM tab1 AS cor0
----
-68600
-773150
-8750

query I rowsort
SELECT ALL + col1 + - 92 AS col0 FROM tab2 AS cor0
----
-15
-25
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT - - COUNT( * ) - + - 39 AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3834
SELECT - - COUNT ( * ) - + - 39 AS col2 FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 - ( - col2 ) col1 FROM tab1 cor0
----
177
204
288

query III rowsort
SELECT ALL * FROM tab2 WHERE 51 >= NULL
----

query I rowsort
SELECT col1 * + + 15 + - col2 AS col0 FROM tab1
----
114
16
637

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT 70 + + - COUNT( * ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3838
SELECT 70 + + - COUNT ( * ) FROM tab1
----
67

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <= + 79
----
85
5
59
91
47
68

query I rowsort
SELECT + + 71 + + ( - - col1 ) AS col0 FROM tab2 WHERE NOT ( NULL <> + col0 + - 39 )
----

query I rowsort
SELECT DISTINCT + col0 * + 81 AS col0 FROM tab0 cor0
----
1215
7047
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 + + col2 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 24 ) col0 FROM tab2
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL - SUM( - + col0 ) * - + COUNT( * ) * 98 FROM tab1 AS cor0
----
-66738

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - SUM ( - + col0 ) * - + COUNT ( * ) * 98 FROM tab1 AS cor0
----
-66738

query I rowsort
SELECT DISTINCT 80 * 14 AS col0 FROM tab2 AS cor0
----
1120

query I rowsort
SELECT ALL - ( - + col0 ) + - + 94 AS col0 FROM tab1 AS cor0
----
-3
-43
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT DISTINCT - - ( + col1 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - - ( + col1 ) / + col0 AS col2 FROM tab0 AS cor0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT ALL + ( - col2 ) DIV ( - col0 ) * col2 * col2 + + + 98 * + col1 * - - col0 FROM tab0 AS cor0
----
125697
179046
19307

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL + ( - col2 ) / ( - col0 ) * col2 * col2 + + + 98 * + col1 * - - col0 FROM tab0 AS cor0
----
125697
179046
19307

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 54 * - - COUNT( * ) + 68 + - COUNT( * ) * 55 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3853
SELECT 54 * - - COUNT ( * ) + 68 + - COUNT ( * ) * 55 FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT - ( + + ( - 3 ) ) FROM tab1
----
3

query I rowsort
SELECT - col1 * - col1 + + col0 * - 48 FROM tab0
----
-3735
-4655
5841

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT 93 DIV - 65 + 62 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-3856
SELECT 93 / - 65 + 62 FROM tab2
----
61
61
61

query I rowsort
SELECT ALL ( + + 57 ) FROM tab0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT col0 * + CAST( + col2 AS SIGNED ) * + col2 * 74 AS col0 FROM tab2
----
1800716
18670200
7577600

skipif mysql # not compatible
query I rowsort label-3858
SELECT col0 * + CAST ( + col2 AS INTEGER ) * + col2 * 74 AS col0 FROM tab2
----
1800716
18670200
7577600

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT + COUNT( * ) * - - 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + COUNT ( * ) * - - 2 FROM tab2
----
6

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * col0 / - col1 NOT BETWEEN 78 * - - 67 / - col0 + 89 + + ( col1 ) AND col0
----
87
21
10
97
1
99

query I rowsort
SELECT + - col2 FROM tab0 WHERE col2 - - col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 39 - + col2 + - col2 * + col1 >= + 11 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - + COUNT( - 34 ) + COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3863
SELECT ALL - + COUNT ( - 34 ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT + 23 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3864
SELECT DISTINCT + 23 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT MIN( DISTINCT + 23 ) + + 89 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
112

skipif mysql # not compatible
query I rowsort label-3867
SELECT MIN ( DISTINCT + 23 ) + + 89 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
112

query II rowsort
SELECT DISTINCT + col0 + 99 AS col1, - col1 / - - 42 * + - 87 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT - CAST( + - col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3869
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT - + 65 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3870
SELECT - + 65 / - col0 AS col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT - 49 AS col1, + COUNT( * ) + 17 FROM tab0 AS cor0
----
-49
20

skipif mysql # not compatible
query II rowsort label-3871
SELECT - 49 AS col1, + COUNT ( * ) + 17 FROM tab0 AS cor0
----
-49
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL - MAX( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - MAX ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46

query I rowsort
SELECT DISTINCT 44 FROM tab1 WHERE NOT + col2 - - col2 IS NULL
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col1 FROM tab2
----
-50

query II rowsort
SELECT ALL + col1, + 61 FROM tab0
----
1
61
21
61
81
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - ( + SUM( DISTINCT + 54 ) ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - ( + SUM ( DISTINCT + 54 ) ) FROM tab2
----
-54

query II rowsort
SELECT ALL - col2 AS col2, col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - SUM( DISTINCT - + ( ( + 50 ) ) ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3878
SELECT - SUM ( DISTINCT - + ( ( + 50 ) ) ) FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - MIN( ALL 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3879
SELECT - MIN ( ALL 61 ) FROM tab0 AS cor0
----
-61

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> 2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT DISTINCT - col1 * - col0 * - ( - + 80 ) + - col0 DIV - 30 FROM tab1 AS cor0
----
34002
342163
57121

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - col1 * - col0 * - ( - + 80 ) + - col0 / - 30 FROM tab1 AS cor0
----
34002
342163
57121

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col0 - col2 AS col0 FROM tab0 AS cor0
----
-184
-293
-77

query I rowsort
SELECT DISTINCT 8 * + - col2 + - - col2 FROM tab2 AS cor0
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL - 26 + MIN( + ( 69 ) ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - 26 + MIN ( + ( 69 ) ) FROM tab2 AS cor0
----
43

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * - - col0 AS col2, col0 AS col1 FROM tab0 cor0
----
705
15
870
87
9603
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL + SUM( - ( + 89 ) ) AS col2 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + SUM ( - ( + 89 ) ) AS col2 FROM tab0
----
-267

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * + 92 * col2 + - - 16 < col2 / 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 19 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * + 53 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 53 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * + + 30 * + - col2 AS col1 FROM tab0
----
-21150
-26100
-288090

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3894
SELECT + MAX( ALL + 35 ) * - + CAST( NULL AS DECIMAL ) / - + 70 + - + COUNT( * ) * ( + - COUNT( * ) ) * + COUNT( * ), - COUNT( + 53 ) AS col1 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3894
SELECT + MAX ( ALL + 35 ) * - + CAST ( NULL AS REAL ) / - + 70 + - + COUNT ( * ) * ( + - COUNT ( * ) ) * + COUNT ( * ), - COUNT ( + 53 ) AS col1 FROM tab2
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT DISTINCT + col1 DIV + 23 AS col0 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + col1 / + 23 AS col0 FROM tab2
----
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT col1 + col0 * + col1 FROM tab1 WHERE + - CAST( + + 43 AS SIGNED ) - + 68 + 83 * + ( + col2 ) + + 87 IS NOT NULL
----
430
4324
728

skipif mysql # not compatible
query I rowsort label-3896
SELECT col1 + col0 * + col1 FROM tab1 WHERE + - CAST ( + + 43 AS INTEGER ) - + 68 + 83 * + ( + col2 ) + + 87 IS NOT NULL
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT - CAST( NULL AS SIGNED ) + + col2 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT - CAST ( NULL AS INTEGER ) + + col2 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL - CAST( NULL AS SIGNED ) + + 65 + + col0 / - 16 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - CAST ( NULL AS INTEGER ) + + 65 + + col0 / - 16 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + + 0 * + + COUNT( * ) * + 54 + - - 99 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3899
SELECT + + 0 * + + COUNT ( * ) * + 54 + - - 99 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - - ( - - 44 ) FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT - 74 + - - col1 * + col0 FROM tab0 AS cor0
----
1141
1753
23

query I rowsort
SELECT - 29 - - col0 * + 80 FROM tab0
----
1171
6931
7731

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 * col0 AND 12 - 25
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT DISTINCT - ( - 2 ) DIV + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT - ( - 2 ) / + col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT col0 * col0 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3908
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3908
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3909
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE 27 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL - COUNT( ( col2 ) ) AS col1 FROM tab0 WHERE col1 > 47 - 11
----
-1

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - COUNT ( ( col2 ) ) AS col1 FROM tab0 WHERE col1 > 47 - 11
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col0 ) = NULL
----

query I rowsort
SELECT col2 * ( col2 ) + - col1 FROM tab2
----
1523
3297
478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT + 89 DIV + ( COUNT( ALL - 26 ) * + COUNT( * ) ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3913
SELECT + 89 / + ( COUNT ( ALL - 26 ) * + COUNT ( * ) ) AS col1 FROM tab2
----
9

query I rowsort
SELECT col1 * 67 + col2 * - 76 FROM tab2
----
1669
2119
81

query I rowsort
SELECT DISTINCT - col2 + 20 * ( col2 ) AS col2 FROM tab1
----
1121
1292
1824

query III rowsort
SELECT * FROM tab0 WHERE NOT - 43 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col2 IN ( - col0 * + col1 + ( - col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3918
SELECT DISTINCT - COUNT( * ) DIV + 61 AS col0 FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - COUNT ( * ) / + 61 AS col0 FROM tab1 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 42 * col0 + 73 AND - 41
----

query I rowsort
SELECT 1 FROM tab2 WHERE NOT - 25 NOT BETWEEN 52 * - ( col1 ) AND col0 + col2
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col1 + + col2 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 50 ) BETWEEN ( col2 + - col2 ) AND ( + col1 * 79 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 / - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 99 > + col2
----

query I rowsort
SELECT 1 * col0 + - 24 AS col1 FROM tab1
----
27
61
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT COUNT( * ) + 50 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-3926
SELECT COUNT ( * ) + 50 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT ( + MAX( 16 ) ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT ( + MAX ( 16 ) ) FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL col0 * + 86 FROM tab1 AS cor0
----
4386
7310
7826

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 84 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3930
SELECT - ( - 79 ) DIV CAST( MAX( - 29 ) + - 93 AS SIGNED ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT - ( - 79 ) / CAST ( MAX ( - 29 ) + - 93 AS INTEGER ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT COUNT( * ) * - ( ( + 19 ) ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3931
SELECT COUNT ( * ) * - ( ( + 19 ) ) AS col0 FROM tab2
----
-57

query I rowsort
SELECT DISTINCT ( + 76 ) * + 22 FROM tab1
----
1672

query I rowsort
SELECT - 89 * + 37 FROM tab1
----
-3293
-3293
-3293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT + 34 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3935
SELECT + 34 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT - + 13 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
-1100
-1136
-649

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3938
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) + 75 NOT IN ( ( CAST( - col2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3938
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) + 75 NOT IN ( ( CAST ( - col2 AS INTEGER ) ) )
----

query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2
-2
-2

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL >= - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 10 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 85 > ( 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT - col2 * 63 + + 43 DIV col2 AS col1 FROM tab2 AS cor0
----
-1448
-2519
-3654

skipif mysql # not compatible
query I rowsort label-3943
SELECT - col2 * 63 + + 43 / col2 AS col1 FROM tab2 AS cor0
----
-1448
-2519
-3654

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL + COUNT( * ) * + 27 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + COUNT ( * ) * + 27 FROM tab0
----
81

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE 7 IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= 34
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) = NULL
----

query I rowsort
SELECT + ( - + col2 ) * - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col0 * 51 FROM tab2
----
2346
3264
3825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT 48 DIV + - COUNT( * ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-3951
SELECT 48 / + - COUNT ( * ) AS col0 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT - 20 * col1 + col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT DISTINCT + - col2 - - + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 52 + - + col1 - + col2 FROM tab0 AS cor0
----
-48
-76
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3955
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3955
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + 97 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL MAX( DISTINCT + 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL MAX ( DISTINCT + 63 ) FROM tab1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT col2 DIV - col0 * + + col0 - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT col2 / - col0 * + + col0 - col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT col0 * col2 + + 0 + col1 * + 10 FROM tab1 AS cor0
----
5036
5065
6658

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL + SUM( DISTINCT - 47 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + SUM ( DISTINCT - 47 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 ) OR NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * - - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT DISTINCT 92 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4692
-7820
-8372

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT 92 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4692
-7820
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT col1 * - + CAST( NULL AS SIGNED ) * - 4 + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT col1 * - + CAST ( NULL AS INTEGER ) * - 4 + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col0, + 86 AS col0 FROM tab1 AS cor0
----
-59
86
-68
86
-96
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT - - ( + MAX( + ( 89 ) ) ) DIV 47 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3966
SELECT - - ( + MAX ( + ( 89 ) ) ) / 47 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT + 41 * + COUNT( * ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + 41 * + COUNT ( * ) FROM tab1 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT DISTINCT + col2 DIV + + 1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT + col2 / + + 1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL + COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col0 * 44 FROM tab0
----
3828
4268
660

query I rowsort
SELECT - 83 * + col1 AS col1 FROM tab0 WHERE NOT ( + + col2 ) NOT IN ( - 73 - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > 9
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 NOT IN ( + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 IN ( 4 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( - - col0 ) IN ( - col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT DISTINCT MIN( DISTINCT - - col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3976
SELECT DISTINCT MIN ( DISTINCT - - col2 ) col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - 61 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3977
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - 61 ) IS NULL
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE - 68 < ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT ALL COUNT( * ) DIV - + 61 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL COUNT ( * ) / - + 61 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3980
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) - - + 14 * - + col0 + + 14 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) - - + 14 * - + col0 + + 14 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - + col1 * col2 + col1 - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1
-102
-3711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT 8 + + 47 + - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT 8 + + 47 + - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + ( + - 33 ) AS col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT + - col2 * - col0 * + col2 + - 83 FROM tab1 AS cor0
----
295802
420701
469933

query I rowsort
SELECT ALL + 87 + + col2 AS col2 FROM tab1 AS cor0
----
146
155
183

query I rowsort
SELECT ALL 50 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 12 + - 74 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 <= + col0 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 <= + col0 + - - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3989
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + CAST( - - col1 AS SIGNED ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3989
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + CAST ( - - col1 AS INTEGER ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT + COUNT( + col1 ) + 27 AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + COUNT ( + col1 ) + 27 AS col1 FROM tab2
----
30

query I rowsort
SELECT DISTINCT col0 * + 90 * - col1 FROM tab1
----
-38250
-384930
-64260

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( - ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT - - ( + - 16 ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + COUNT( * ) + - SUM( DISTINCT 10 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3994
SELECT + COUNT ( * ) + - SUM ( DISTINCT 10 ) FROM tab0
----
-7

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3996
SELECT ALL col2 + - CAST( NULL AS SIGNED ), - 46 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-46
NULL
-46

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL col2 + - CAST ( NULL AS INTEGER ), - 46 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-46
NULL
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 36 * col1 + + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT ALL - col1 * - 7 * + - col2 / CAST( 26 AS SIGNED ) - - col0 FROM tab0 WHERE - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL - col1 * - 7 * + - col2 / CAST ( 26 AS INTEGER ) - - col0 FROM tab0 WHERE - + col1 IS NULL
----

query I rowsort
SELECT ALL 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( + CAST( NULL AS SIGNED ) ) NOT IN ( - 41 ) )
----

skipif mysql # not compatible
query I rowsort label-4000
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - 41 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT DISTINCT + CAST( + ( - 57 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + CAST ( + ( - 57 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT ( - + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL AVG ( + + 43 ) * COUNT( * ) + COUNT( col0 ) + - 95 + 12 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL AVG ( + + 43 ) * COUNT ( * ) + COUNT ( col0 ) + - 95 + 12 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT DISTINCT - - COUNT( + col1 ) * - 50 col1, + 63 AS col2 FROM tab0 cor0
----
-150
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4004
SELECT DISTINCT - - COUNT ( + col1 ) * - 50 col1, + 63 AS col2 FROM tab0 cor0
----
-150
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT - - 94 * - 2 * + 3 * + col0 DIV col0 AS col2 FROM tab2 cor0
----
-564
-564
-564

skipif mysql # not compatible
query I rowsort label-4005
SELECT - - 94 * - 2 * + 3 * + col0 / col0 AS col2 FROM tab2 cor0
----
-564
-564
-564

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT DISTINCT + col1 DIV - - 35 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + col1 / - - 35 FROM tab2 AS cor0
----
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4007
SELECT ALL - col0 + 82, - CAST( + + col1 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - col2 < + col2
----

skipif mysql # not compatible
query II rowsort label-4007
SELECT ALL - col0 + 82, - CAST ( + + col1 AS REAL ) FROM tab2 AS cor0 WHERE NOT - col2 < + col2
----

query II rowsort
SELECT ALL + + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 57 <= - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT + 43 * col1 DIV ( - col2 ) AS col1 FROM tab2
----
-49
-82
-95

skipif mysql # not compatible
query I rowsort label-4010
SELECT + 43 * col1 / ( - col2 ) AS col1 FROM tab2
----
-49
-82
-95

query I rowsort
SELECT DISTINCT - - 17 FROM tab0 WHERE NOT NULL NOT BETWEEN - + ( col2 ) + - col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4012
SELECT - 32 AS col2, + col2 + 36 + + 7 + - - CAST( NULL AS SIGNED ) FROM tab1
----
-32
NULL
-32
NULL
-32
NULL

skipif mysql # not compatible
query II rowsort label-4012
SELECT - 32 AS col2, + col2 + 36 + + 7 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
-32
NULL
-32
NULL
-32
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 94 AS col0 FROM tab2
----
-23
94
-40
94
-58
94

query II rowsort
SELECT ALL col1 AS col2, col2 + - col2 AS col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL - + ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - + ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4016
SELECT * FROM tab1 AS cor0 WHERE + ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND + col0 * - col0 * - - 21
----

skipif mysql # not compatible
query III rowsort label-4016
SELECT * FROM tab1 AS cor0 WHERE + ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND + col0 * - col0 * - - 21
----

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
88

query I rowsort
SELECT ALL col0 * + - 22 * - - col1 + + - 11 AS col0 FROM tab2
----
-108427
-110561
-51623

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - 58 * + 45 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + col0 * - - col0 * + col2 BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 10 + - col1 AS col1 FROM tab2 AS cor0
----
-41
-57
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + - col1 * + col0 NOT IN ( + - 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + + CAST( NULL AS SIGNED ) + col2 * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + + CAST ( NULL AS INTEGER ) + col2 * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + COUNT( * ) + - SUM( col2 ) FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + COUNT ( * ) + - SUM ( col2 ) FROM tab1 AS cor0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + - 72 FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT COUNT( * ) * + + 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-4027
SELECT COUNT ( * ) * + + 87 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + SUM( 44 ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + SUM ( 44 ) FROM tab0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT - CAST( NULL AS SIGNED ) / + + 90 * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT - CAST ( NULL AS INTEGER ) / + + 90 * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - col2 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL - + COUNT( * ) + - 55 + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL - + COUNT ( * ) + - 55 + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT COUNT( DISTINCT - 37 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT COUNT ( DISTINCT - 37 ) AS col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 47 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 * - - 2 col2 FROM tab2 AS cor0
----
1058
3200
6728

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL COUNT( ALL + - col0 ) col1 FROM tab1 AS cor0 WHERE NOT + ( + 34 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4036
SELECT ALL COUNT ( ALL + - col0 ) col1 FROM tab1 AS cor0 WHERE NOT + ( + 34 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4037
SELECT + - 6 FROM tab0 AS cor0 WHERE NOT + col1 * - - CAST( NULL AS SIGNED ) * + + 98 * + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4037
SELECT + - 6 FROM tab0 AS cor0 WHERE NOT + col1 * - - CAST ( NULL AS INTEGER ) * + + 98 * + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 65 * - col2 col0 FROM tab1 AS cor0
----
318240
325975
402220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4039
SELECT + CAST( 35 AS SIGNED ) DIV - ( + col1 ) FROM tab1 cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT + CAST ( 35 AS INTEGER ) / - ( + col1 ) FROM tab1 cor0
----
-2
-7
0

query I rowsort
SELECT - col0 * - 4 AS col0 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT - 34 * + + col1 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT + col0 * + + ( 48 ) AS col2 FROM tab1
----
2448
4080
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL + COUNT( * ) * - - COUNT( col0 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + COUNT ( * ) * - - COUNT ( col0 ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT DISTINCT + ( - SUM( - col2 ) ) * + - COUNT( * ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT + ( - SUM ( - col2 ) ) * + - COUNT ( * ) FROM tab2
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT ( - 25 ) DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT ( - 25 ) / - col0 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ( col1 ), - 88 AS col1 FROM tab1 AS cor0
----
14
-88
47
-88
5
-88

query I rowsort
SELECT - + 92 + + col2 AS col0 FROM tab2 AS cor0
----
-34
-52
-69

query II rowsort
SELECT 67 + + col2 + + 80, col2 FROM tab2
----
170
23
187
40
205
58

query I rowsort
SELECT + col0 FROM tab1 WHERE - col1 + + 57 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + COUNT( * ) col2 FROM tab0 WHERE NULL < - + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4050
SELECT + COUNT ( * ) col2 FROM tab0 WHERE NULL < - + col1
----
0

query I rowsort
SELECT ALL 68 * - 91 FROM tab0 AS cor0
----
-6188
-6188
-6188

query I rowsort
SELECT ALL col1 + + 19 * - 36 * col1 FROM tab2 AS cor0
----
-34833
-45761
-52591

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT - - ( 85 ) ) FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT - - ( 85 ) ) FROM tab2 AS cor0
----
255

query I rowsort
SELECT + - 78 - + 11 AS col0 FROM tab1 cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + col0 - + col2 + - 4 + col0 AS col2 FROM tab2 AS cor0
----
65
84
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - 74 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - 74 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4057
SELECT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4057
SELECT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - + + 72 FROM tab0
----
-25
-62
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL - SUM( DISTINCT + - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - SUM ( DISTINCT + - col0 ) AS col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT COUNT( * ) * + 42 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4060
SELECT COUNT ( * ) * + 42 FROM tab2 AS cor0
----
126

query I rowsort
SELECT ALL + + ( ( + col1 ) ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL - 90 + + - COUNT( * ) FROM tab1, tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - 90 + + - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT ALL col0 * col0 DIV - + col2 AS col0 FROM tab0
----
-4
-756
-95

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL col0 * col0 / - + col2 AS col0 FROM tab0
----
-4
-756
-95

query II rowsort
SELECT ALL + 88 AS col2, + 51 FROM tab1
----
88
51
88
51
88
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL + 78 * - COUNT( * ) - - + 18 * - 53 AS col0 FROM tab1 AS cor0
----
-1188

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + 78 * - COUNT ( * ) - - + 18 * - 53 AS col0 FROM tab1 AS cor0
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - MAX( + - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4067
SELECT - MAX ( + - col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - + 61 * MIN( - 10 ) + COUNT( * ) * + COUNT( ALL - - col1 ) AS col1 FROM tab2 cor0
----
619

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - + 61 * MIN ( - 10 ) + COUNT ( * ) * + COUNT ( ALL - - col1 ) AS col1 FROM tab2 cor0
----
619

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - 27 * - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4069
SELECT - 27 * - COUNT ( * ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + + MAX( DISTINCT + 42 ) * 48 FROM tab0 AS cor0
----
2016

skipif mysql # not compatible
query I rowsort label-4070
SELECT + + MAX ( DISTINCT + 42 ) * 48 FROM tab0 AS cor0
----
2016

query I rowsort
SELECT + - 75 + + - col2 FROM tab1 AS cor0
----
-134
-143
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT - 13 * ( - - COUNT( * ) ) + + - MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT - 13 * ( - - COUNT ( * ) ) + + - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 84 ) <= + - col0 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT DISTINCT COUNT( DISTINCT - + CAST( - 86 AS SIGNED ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT COUNT ( DISTINCT - + CAST ( - 86 AS INTEGER ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + col0 + + col0 - col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col0 * + 76 FROM tab1
----
3876
6460
6916

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + 73 * - ( - MIN( - 65 ) ) AS col1 FROM tab1
----
-4745

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + 73 * - ( - MIN ( - 65 ) ) AS col1 FROM tab1
----
-4745

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND + - 63 / ( + + 11 ) - 42 + + col2
----

query I rowsort
SELECT ALL ( - col1 ) / - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT DISTINCT CAST( - - col1 AS SIGNED ) * ( 5 ) - + 51 + + col0 * + col1 FROM tab2
----
2550
5262
5309

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * ( 5 ) - + 51 + + col0 * + col1 FROM tab2
----
2550
5262
5309

query I rowsort
SELECT ALL col0 * - ( - col0 ) FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 86 * - 46 FROM tab1 cor0
----
3956
3956
3956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL 64 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL 64 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 36 + - col1 + + col1 FROM tab0
----
36
36
36

query I rowsort
SELECT - col0 + + - col1 + 83 * - col1 AS col1 FROM tab2
----
-4330
-5703
-6532

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT - 81 DIV + col1 + col1 AS col1 FROM tab0
----
-80
18
80

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 81 / + col1 + col1 AS col1 FROM tab0
----
-80
18
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL ( COUNT( * ) ) + MAX( + 84 ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL ( COUNT ( * ) ) + MAX ( + 84 ) AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT + col0 + + + 42 * + + col1 + + 34 + - col0 AS col1 FROM tab2 cor0
----
2176
2848
3268

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE 99 * - - col1 / + - col0 * + col0 BETWEEN + 32 * - + col1 - 19 AND ( NULL )
----

query I rowsort
SELECT ALL 6 + + + col2 AS col1 FROM tab0 AS cor0
----
105
16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - COUNT( * ) FROM tab1 WHERE col0 = - col2
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT - COUNT ( * ) FROM tab1 WHERE col0 = - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT 89 - - COUNT( * ) AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT 89 - - COUNT ( * ) AS col1 FROM tab1
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 58 IS NOT NULL
----

query II rowsort
SELECT - - col0, - col2 AS col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + ( 6 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
6
6
6

query I rowsort
SELECT ALL + - col0 * - col2 AS col2 FROM tab0 cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * + col2 col1 FROM tab2 cor0
----
1200
1740
690

query I rowsort
SELECT + col2 * - ( + 38 ) AS col2 FROM tab0 AS cor0
----
-1786
-3762
-380

query I rowsort
SELECT - 98 * + col0 * 32 AS col1 FROM tab2 AS cor0
----
-144256
-200704
-235200

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL MAX( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL MAX ( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT - + 35 + + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col0 * + + col1 = + 93
----
-12
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT DISTINCT + SUM( ALL 92 ) AS col0 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT + SUM ( ALL 92 ) AS col0 FROM tab2 AS cor0
----
276

query I rowsort
SELECT ALL + 13 * 66 FROM tab0
----
858
858
858

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT + 19 * + + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + 19 * + + COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT ALL + col0 + + col0 + + col2 AS col0 FROM tab0
----
184
293
77

query I rowsort
SELECT - - col2 + + + col2 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT ALL - 70 AS col0 FROM tab1 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4109
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT COUNT( * ) - - + SUM( - ( ( + col0 ) ) ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-4110
SELECT COUNT ( * ) - - + SUM ( - ( ( + col0 ) ) ) FROM tab2 AS cor0
----
-182

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT - + 58 + ( - col1 ) FROM tab0 AS cor0
----
-139
-59
-79

query I rowsort
SELECT ALL - + col2 - - 48 FROM tab1 cor0
----
-11
-20
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab0 cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT DISTINCT + - MAX( ALL + CAST( NULL AS SIGNED ) ) * - - 23 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - - 23 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 68 * col1 * + - col2 FROM tab1
----
-1705100
-19776848
-4660992

query I rowsort
SELECT + 25 AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT + ( + COUNT( * ) ) AS col2, - COUNT( DISTINCT - + 13 ) FROM tab2
----
3
-1

skipif mysql # not compatible
query II rowsort label-4119
SELECT + ( + COUNT ( * ) ) AS col2, - COUNT ( DISTINCT - + 13 ) FROM tab2
----
3
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + ( - - 44 ) IS NOT NULL )
----

query II rowsort
SELECT col2 AS col2, + 25 * 37 AS col1 FROM tab2
----
23
925
40
925
58
925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT - CAST( + 87 AS SIGNED ) AS col1 FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-4122
SELECT - CAST ( + 87 AS INTEGER ) AS col1 FROM tab0
----
-87
-87
-87

query II rowsort
SELECT + 83 AS col2, col0 FROM tab1
----
83
51
83
85
83
91

query II rowsort
SELECT ALL 63 AS col1, 94 AS col0 FROM tab2 AS cor0
----
63
94
63
94
63
94

query I rowsort
SELECT 70 * col2 * + - 18 AS col1 FROM tab0 AS cor0
----
-124740
-12600
-59220

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - COUNT( * ) + - + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - COUNT ( * ) + - + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + + 18 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + + 18 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 60 + 99 FROM tab2 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT - col2 + 78 DIV + + col1 AS col1 FROM tab0 AS cor0
----
-21
-47
-7

skipif mysql # not compatible
query I rowsort label-4131
SELECT - col2 + 78 / + + col1 AS col1 FROM tab0 AS cor0
----
-21
-47
-7

query I rowsort
SELECT - col0 + + + col2 + + 81 FROM tab2
----
57
58
64

query I rowsort
SELECT ( - col1 ) + - + col2 + - col2 + - col0 AS col0 FROM tab1
----
-208
-257
-274

query II rowsort
SELECT + col1 + - col2 AS col1, + col1 * - 20 FROM tab0
----
-98
-20
11
-420
34
-1620

query I rowsort
SELECT 52 * col1 + + - col2 + - + col2 + + col1 * + 71 FROM tab0
----
-75
2563
9869

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 52 * MAX( - 2 ) FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-4136
SELECT 52 * MAX ( - 2 ) FROM tab1
----
-104

query II rowsort
SELECT ALL - 2 * + col2 AS col0, - 75 AS col2 FROM tab1
----
-118
-75
-136
-75
-192
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4138
SELECT DISTINCT - CAST( - 0 AS DECIMAL ) - 47 FROM tab0 WHERE - - 85 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT - CAST ( - 0 AS REAL ) - 47 FROM tab0 WHERE - - 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT - 37 DIV col2 * + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 37 / col2 * + - col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 15 + col1 col1 FROM tab1 AS cor0
----
20
29
62

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4142
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IN ( - col0, - col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4142
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IN ( - col0, - col1 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - - ( - 31 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4144
SELECT ALL * FROM tab0 WHERE NOT NULL = col0 + CAST( - 13 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4144
SELECT ALL * FROM tab0 WHERE NOT NULL = col0 + CAST ( - 13 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - col2 / - 22 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + MAX( ALL - 86 ) FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT + MAX ( ALL - 86 ) FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4148
SELECT ALL + CAST( NULL AS DECIMAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + CAST ( NULL AS REAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 86 * col0 + ( col1 ) FROM tab2 AS cor0
----
-3905
-5427
-6383

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT + 97 * - COUNT( * ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT + 97 * - COUNT ( * ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 cor0 WHERE 59 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL + 52 * + - COUNT( * ) AS col1 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL + 52 * + - COUNT ( * ) AS col1 FROM tab2
----
-156

query I rowsort
SELECT - 42 * + col0 AS col1 FROM tab1
----
-2142
-3570
-3822

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4154
SELECT DISTINCT - MAX( col1 ) / COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE - + col0 <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - MAX ( col1 ) / COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE - + col0 <> col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - 35 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - 35 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4156
SELECT + col0, col0 DIV col1 * + col1 col1 FROM tab2 cor0
----
46
0
64
0
75
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4156
SELECT + col0, col0 / col1 * + col1 col1 FROM tab2 cor0
----
46
0
64
0
75
67

query I rowsort
SELECT - col2 * 23 * + - col2 FROM tab1 AS cor0
----
106352
211968
80063

query I rowsort
SELECT + col0 * - col1 * 59 FROM tab2 AS cor0
----
-138414
-290752
-296475

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT SUM( DISTINCT + 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4159
SELECT SUM ( DISTINCT + 58 ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL - 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4162
SELECT ALL - 24 + - - 66 * + - CAST( NULL AS DECIMAL ) + - - 91 - - col2 / col1 + + + col2 FROM tab0 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 24 + - - 66 * + - CAST ( NULL AS REAL ) + - - 91 - - col2 / col1 + + + col2 FROM tab0 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 50 + + col0 * + - col0 AS col2 FROM tab1 AS cor0
----
-2551
-7175
-8231

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * + + col1
----

query II rowsort
SELECT 47 * - - col2 AS col2, col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT DISTINCT col0 + col0 + + ( + + col2 ) DIV + 53 FROM tab0
----
174
195
30

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT col0 + col0 + + ( + + col2 ) / + 53 FROM tab0
----
174
195
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL MIN( + 39 ) AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL MIN ( + 39 ) AS col0 FROM tab2
----
39

query I rowsort
SELECT - 5 + 13 AS col1 FROM tab0
----
8
8
8

query I rowsort
SELECT + 54 + 58 FROM tab1
----
112
112
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT + col0 * + col0 * - + ( + CAST( NULL AS SIGNED ) ) + 56 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + col0 * + col0 * - + ( + CAST ( NULL AS INTEGER ) ) + 56 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT COUNT( * ) + + MIN( + col0 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT COUNT ( * ) + + MIN ( + col0 ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - ( - 35 ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4172
SELECT ALL - ( - 35 ) + + COUNT ( * ) col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT MAX( - 26 ) AS col0, - COUNT( col2 ) FROM tab2
----
-26
-3

skipif mysql # not compatible
query II rowsort label-4174
SELECT MAX ( - 26 ) AS col0, - COUNT ( col2 ) FROM tab2
----
-26
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT ALL col2 * - col1 - col1 + CAST( - 81 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-181
-312
-3969

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL col2 * - col1 - col1 + CAST ( - 81 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-181
-312
-3969

query I rowsort
SELECT + col1 AS col1 FROM tab2 cor0 WHERE NOT 62 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col0 * - 85, col2 * 94 + col1, col0, - col0, + col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - SUM( DISTINCT - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4179
SELECT - SUM ( DISTINCT - - col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT + CAST( + 2 AS SIGNED ) FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4180
SELECT + CAST ( + 2 AS INTEGER ) FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT + SUM( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4181
SELECT + SUM ( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + + 62 * + - col0 AS col0 FROM tab0 AS cor0
----
-5394
-6014
-930

query II rowsort
SELECT - 6, - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) * 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT + COUNT( * ) + 57 - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4184
SELECT DISTINCT + COUNT ( * ) + 57 - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT CAST( - col2 AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( NOT - - 36 = NULL )
----

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT CAST ( - col2 AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( NOT - - 36 = NULL )
----

query I rowsort
SELECT DISTINCT + - col2 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - col0 * + 20 BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - 67 - COUNT( * ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - 67 - COUNT ( * ) FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL ( + - COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL ( + - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT - + col2 + + 4 + + 44 * CAST( - CAST( NULL AS SIGNED ) 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-4191
SELECT - + col2 + + 4 + + 44 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4192
SELECT ALL + CAST( NULL AS SIGNED ) - - - CAST( + col0 AS DECIMAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + CAST ( NULL AS INTEGER ) - - - CAST ( + col0 AS REAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL + 95 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-1995
-7695
-95

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + 95 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-1995
-7695
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT CAST( ( col2 ) AS SIGNED ) * - + col1 AS col1 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4194
SELECT CAST ( ( col2 ) AS INTEGER ) * - + col1 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT 12 * + col0 * - col1 FROM tab1
----
-5100
-51324
-8568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT + col2 + - 54 FROM tab0 cor0
----
-44
-7
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + 5
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - ( 15 ) * + + col2 IN ( + - col2, col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT - - MAX( - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - - MAX ( - col0 ) FROM tab2 cor0
----
-46

query II rowsort
SELECT ALL - 2 * + col1 * 0, col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 93 col0 FROM tab1 AS cor0
----
-4743
-7905
-8463

onlyif mysql # DIV for integer division: 
query II rowsort label-4203
SELECT ALL - col2, - col0 DIV - + 59 col1 FROM tab2 AS cor0
----
-23
0
-40
1
-58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4203
SELECT ALL - col2, - col0 / - + 59 col1 FROM tab2 AS cor0
----
-23
0
-40
1
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - 7 * - + SUM( DISTINCT - 33 ) AS col2 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4204
SELECT - 7 * - + SUM ( DISTINCT - 33 ) AS col2 FROM tab0 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4205
SELECT - COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + COUNT( ALL + 7 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + COUNT ( ALL + 7 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4207
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( CAST( NULL AS SIGNED ), col1 * ( - 68 ) - - col0 )
----

skipif mysql # not compatible
query III rowsort label-4207
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( CAST ( NULL AS INTEGER ), col1 * ( - 68 ) - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT + 68 DIV - + ( + col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 68 / - + ( + col2 ) FROM tab2
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 + - + col1 * + 79 col2 FROM tab0 AS cor0
----
-1670
-6433
19

query I rowsort
SELECT + 49 + - + col0 AS col1 FROM tab2 AS cor0
----
-15
-26
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT - 9 DIV - + col0 * - col0 DIV - + col2 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4211
SELECT - 9 / - + col0 * - col0 / - + col2 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 - - col0 - - + 5 col2 FROM tab1 AS cor0
----
-2545
-7135
-8185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT ALL + + 88 + + MIN( ALL col1 ) DIV COUNT( * ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + + 88 + + MIN ( ALL col1 ) / COUNT ( * ) FROM tab2 AS cor0
----
105

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + col0 * + + col1 * + + 51 AS col0 FROM tab2 AS cor0
----
119600
251264
256200

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + SUM( + col1 ) - - ( + 39 ) * 54 FROM tab2 AS cor0
----
2301

skipif mysql # not compatible
query I rowsort label-4217
SELECT + SUM ( + col1 ) - - ( + 39 ) * 54 FROM tab2 AS cor0
----
2301

query I rowsort
SELECT DISTINCT + col2 - + - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL 94 * + col2 FROM tab2
----
2162
3760
5452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT COUNT( * ) DIV - + MIN( - ( + ( - col1 ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT COUNT ( * ) / - + MIN ( - ( + ( - col1 ) ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 + + - col2 * 83 - + - col2 col0 FROM tab2
----
-1900
-3294
-4770

query I rowsort
SELECT col1 + - - col1 + - - ( + 89 ) FROM tab1
----
117
183
99

query I rowsort
SELECT + ( col0 ) FROM tab2 WHERE col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - 94 * - COUNT( * ) + + 72 FROM tab1
----
354

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 94 * - COUNT ( * ) + + 72 FROM tab1
----
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT ALL + col1 * - CAST( col2 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + col1 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT DISTINCT COUNT( * ) / - + 51 * - AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT COUNT ( * ) / - + 51 * - AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT - col1 DIV col0 * + col1 AS col1 FROM tab2 AS cor0
----
-51
-77
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT - col1 / col0 * + col1 AS col1 FROM tab2 AS cor0
----
-51
-77
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT ALL CAST( NULL AS SIGNED ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4228
SELECT ALL CAST ( NULL AS INTEGER ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - 75 - 87 FROM tab2 AS cor0
----
-162
-162
-162

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 - - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + 47 col1 FROM tab1
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT - COUNT( col2 ) * - + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4232
SELECT - COUNT ( col2 ) * - + COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT - col0 * + - 4 AS col2 FROM tab2
----
184
256
300

query II rowsort
SELECT + - col1 * + + ( col0 ), col1 * - col2 AS col1 FROM tab0 AS cor0
----
-1215
-3807
-1827
-210
-97
-99

query I rowsort
SELECT ALL + + 48 * - 43 AS col1 FROM tab0 AS cor0
----
-2064
-2064
-2064

query I rowsort
SELECT ALL 2 AS col1 FROM tab2 cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + COUNT( * ) * 59 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
177

skipif mysql # not compatible
query I rowsort label-4238
SELECT + COUNT ( * ) * 59 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
177

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col2 - - 78 + + col2
----

query II rowsort
SELECT ALL - col1, 55 AS col1 FROM tab2
----
-51
55
-67
55
-77
55

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col0 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4242
SELECT CAST( AVG ( ALL CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT CAST ( AVG ( ALL CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + MIN( - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + MIN ( - col2 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT - col0 * ( + 84 ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - col0 * ( + 84 ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT ALL 45 * - 76 * + COUNT( * ) AS col1, 17 AS col2 FROM tab0
----
-10260
17

skipif mysql # not compatible
query II rowsort label-4245
SELECT ALL 45 * - 76 * + COUNT ( * ) AS col1, 17 AS col2 FROM tab0
----
-10260
17

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT + 38 AS col0, 22 + - + col0 FROM tab2
----
38
-24
38
-42
38
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - MIN( DISTINCT - 60 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4248
SELECT - MIN ( DISTINCT - 60 ) AS col2 FROM tab2
----
60

query I rowsort
SELECT ALL - 30 + - 18 AS col2 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT - + col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL COUNT( - col2 ) + + 82 AS col0 FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL COUNT ( - col2 ) + + 82 AS col0 FROM tab1 cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL + 22 * - COUNT( * ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + 22 * - COUNT ( * ) FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT 52 + - + CAST( col1 AS SIGNED ) col0 FROM tab1
----
38
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4253
SELECT 52 + - + CAST ( col1 AS INTEGER ) col0 FROM tab1
----
38
47
5

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col1 + - 49 * + ( + 57 ) * + 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT - COUNT( * ) * + MIN( + + col2 ) FROM tab2 WHERE + - 25 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - COUNT ( * ) * + MIN ( + + col2 ) FROM tab2 WHERE + - 25 IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT - 92 IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + 66 + col2 * + - col2 AS col2 FROM tab0 cor0
----
-2143
-34
-9735

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL + SUM( DISTINCT col1 ) + + COUNT( * ) col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT ALL + SUM ( DISTINCT col1 ) + + COUNT ( * ) col2 FROM tab0 AS cor0
----
106

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <> + - 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT MIN( - - col2 ) * 69 FROM tab0
----
690

skipif mysql # not compatible
query I rowsort label-4261
SELECT MIN ( - - col2 ) * 69 FROM tab0
----
690

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT col1 DIV + - 14 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT col1 / + - 14 FROM tab0
----
-1
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT DISTINCT ( + CAST( - - MAX( + - col1 ) AS SIGNED ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT ( + CAST ( - - MAX ( + - col1 ) AS INTEGER ) ) FROM tab1
----
-5

query II rowsort
SELECT - col2 AS col1, 34 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 87 * - - 75 * + 55 col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + 13 * col0 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4267
SELECT col0, + CAST( NULL AS DECIMAL ) * - - col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT col0, + CAST ( NULL AS REAL ) * - - col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT DISTINCT COUNT( * ) DIV + 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT COUNT ( * ) / + 94 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT COUNT( * ) AS col0, COUNT( - + col1 ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4269
SELECT COUNT ( * ) AS col0, COUNT ( - + col1 ) FROM tab2 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL SUM( - - col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL SUM ( - - col1 ) AS col1 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 / + ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 / + ( col2 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col1 * + col0 * - + col0 + 94 + - col0
----

query II rowsort
SELECT + + 43 * + col0 AS col1, 59 + - col2 FROM tab1 AS cor0
----
2193
-37
3655
0
3913
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT ALL 89 DIV 10 AS col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL 89 / 10 AS col2 FROM tab1 AS cor0
----
8
8
8

query II rowsort
SELECT + 41, + col0 FROM tab0 AS cor0
----
41
15
41
87
41
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 60 * 33 * - + 66 - + 84 AS col0, - col1 * - col2 col0 FROM tab1 AS cor0
----
130596
1344
130596
295
130596
3196

query I rowsort
SELECT ALL 81 * - + col2 + 29 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1834
-3211
-4669

query II rowsort
SELECT col0, + 58 AS col1 FROM tab2 cor0
----
46
58
64
58
75
58

query II rowsort
SELECT ALL + + col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ( ( + col0 ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL COUNT( DISTINCT - + 26 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL COUNT ( DISTINCT - + 26 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 52 * + - ( - 85 ) + + + col2 FROM tab2
----
4443
4460
4478

query I rowsort
SELECT + 25 + - col0 FROM tab0 AS cor0
----
-62
-72
10

query II rowsort
SELECT col2 + - col0 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
-77
87
2
97
32
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + - 50 * - + 55 IN ( - 81, - 44, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT ALL - 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT col0 - - - 79 FROM tab0 AS cor0
----
-64
18
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * 24 * - + col0 + - col2 col1 FROM tab2 cor0
----
-110632
-129658
-79511

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4291
SELECT * FROM tab2 AS cor0 WHERE NULL = - 53 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4291
SELECT * FROM tab2 AS cor0 WHERE NULL = - 53 / - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 - - - 9 FROM tab1 AS cor0
----
-100
-60
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4293
SELECT DISTINCT + + CAST( + COUNT( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) - + 1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + + CAST ( + COUNT ( + CAST ( NULL AS REAL ) ) AS INTEGER ) - + 1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + ( - 19 ) + - - COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-4294
SELECT + ( - 19 ) + - - COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
-19

query III rowsort
SELECT * FROM tab0 WHERE + - 52 * + col2 + - col1 + - col2 IS NULL
----

query I rowsort
SELECT + col2 * + + 6 + 5 AS col0 FROM tab1
----
359
413
581

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + COUNT( * ) FROM tab0 WHERE - col0 * - 36 + + col1 * - col2 * + ( 50 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT + COUNT ( * ) FROM tab0 WHERE - col0 * - 36 + + col1 * - col2 * + ( 50 ) IS NULL
----
0

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE + - col0 + - + 59 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT ALL + COUNT( * ) * + + COUNT( * ) DIV - COUNT( * ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4299
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) / - COUNT ( * ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT 35 * + + MAX( + + col0 ) FROM tab1
----
3185

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 35 * + + MAX ( + + col0 ) FROM tab1
----
3185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 65 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 74 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT - col2, col2 + + + 45 AS col1 FROM tab0 AS cor0
----
-10
55
-47
92
-99
144

query I rowsort
SELECT ALL 43 + - + col2 FROM tab1 AS cor0
----
-16
-25
-53

query I rowsort
SELECT - 65 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( + col0 ) + col1
----

query I rowsort
SELECT - 62 * - 9 + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
366
422
440

query I rowsort
SELECT 63 * + - 78 * - - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 18 AND col0
----

query I rowsort
SELECT DISTINCT - - col0 * + ( col1 ) + 71 + 11 + 40 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + ( - - ( + - 20 ) ) * col1 AS col0 FROM tab1
----
-100
-280
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT + - col0 * - 59 / col0 * - + 73 FROM tab1 WHERE - 56 * + col0 * - - 82 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4312
SELECT + - col0 * - 59 / col0 * - + 73 FROM tab1 WHERE - 56 * + col0 * - - 82 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT + SUM( ALL + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT + SUM ( ALL + - col2 ) FROM tab2
----
-121

query II rowsort
SELECT + col1 * - - col2 AS col2, + 30 AS col2 FROM tab1
----
1344
30
295
30
3196
30

query I rowsort
SELECT + col2 * + + col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT - col1 * + - 87 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT - col1 * + - 87 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + 25 + + + ( + - col1 ) FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT 82 + + col1 FROM tab0 AS cor0
----
103
163
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) - - col1 col0 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT * FROM tab2 WHERE 90 IS NOT NULL OR NOT NULL <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 37 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - - 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT 60 + - SUM( + + col0 ) FROM tab1
----
-167

skipif mysql # not compatible
query I rowsort label-4323
SELECT 60 + - SUM ( + + col0 ) FROM tab1
----
-167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - 28 * - + COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 28 * - + COUNT ( * ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT CAST( NULL AS SIGNED ) * + - 31 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT CAST ( NULL AS INTEGER ) * + - 31 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT SUM( + 94 ) AS col0 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-4328
SELECT SUM ( + 94 ) AS col0 FROM tab0
----
282

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4329
SELECT - CAST( NULL AS DECIMAL ), - 81 AS col1 FROM tab2
----
NULL
-81
NULL
-81
NULL
-81

skipif mysql # not compatible
query II rowsort label-4329
SELECT - CAST ( NULL AS REAL ), - 81 AS col1 FROM tab2
----
NULL
-81
NULL
-81
NULL
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col0 + + + col1 + + col2 + + + col1 AS col1 FROM tab2
----
23
171
40
258
58
267

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT - SUM( + 88 ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - SUM ( + 88 ) FROM tab1
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT DISTINCT CAST( - 55 AS SIGNED ) * col2 AS col0 FROM tab0
----
-2585
-5445
-550

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT CAST ( - 55 AS INTEGER ) * col2 AS col0 FROM tab0
----
-2585
-5445
-550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) >= NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + 59 * - - col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 71 * - - 1 FROM tab1 AS cor0
----
-71

query III rowsort
SELECT * FROM tab2 WHERE - col2 < ( NULL )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col0 * col0 NOT BETWEEN + 53 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - 84 + - COUNT( * ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 84 + - COUNT ( * ) FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL - COUNT( - col2 ) + 57 AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL - COUNT ( - col2 ) + 57 AS col1 FROM tab0
----
54

query I rowsort
SELECT ALL + col0 - - 6 AS col0 FROM tab0
----
103
21
93

query I rowsort
SELECT + 7 + - col0 FROM tab1
----
-44
-78
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE 16 * col2 BETWEEN ( 51 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND 89
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT MAX( DISTINCT - 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4346
SELECT MAX ( DISTINCT - 88 ) FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT MAX( 18 ) col2 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4347
SELECT MAX ( 18 ) col2 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ( MIN( col2 ) ) + COUNT( * ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4348
SELECT ( MIN ( col2 ) ) + COUNT ( * ) AS col2 FROM tab0
----
13

query I rowsort
SELECT + col2 - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 10 * - col1 FROM tab2
----
-510
-670
-770

query I rowsort
SELECT ALL + 63 FROM tab1 WHERE NOT ( + 34 ) IS NULL
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 20 * - 58 + col2 > + col0 / 87
----

query I rowsort
SELECT ALL + col2 * + 25 AS col0 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + 21 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * ( - col2 ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + col1 + 40 FROM tab0
----
121
41
61

query I rowsort
SELECT ALL col0 + 79 FROM tab1
----
130
164
170

query I rowsort
SELECT col2 * ( 78 ) FROM tab0
----
3666
7722
780

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + col2 IS NULL
----

query I rowsort
SELECT ALL + 95 * + 13 + col2 AS col2 FROM tab1
----
1294
1303
1331

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4361
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + CAST( - col1 AS SIGNED ) ) NOT IN ( + col2 * + 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4361
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + CAST ( - col1 AS INTEGER ) ) NOT IN ( + col2 * + 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT ALL col2 + col1 FROM tab1 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) / + 16 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL col2 + col1 FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) / + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) + 55 col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4363
SELECT COUNT ( * ) + 55 col0 FROM tab1 AS cor0
----
58

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 34 + COUNT( * ) AS col0 FROM tab2 cor0
----
37

skipif mysql # not compatible
query I rowsort label-4365
SELECT 34 + COUNT ( * ) AS col0 FROM tab2 cor0
----
37

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT + col2 * col2 + 41 FROM tab1 AS cor0
----
3522
4665
9257

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE ( + col2 ) NOT IN ( col0 * + 10 )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE 9 > + col2
----

query I rowsort
SELECT ALL ( col0 ) - col0 * - 22 AS col0 FROM tab2
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + COUNT( * ) * COUNT( * ) - 56 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-4371
SELECT + COUNT ( * ) * COUNT ( * ) - 56 FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT DISTINCT 36 DIV + 20 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT 36 / + 20 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT 75 - - COUNT( * ) col0 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4373
SELECT DISTINCT 75 - - COUNT ( * ) col0 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT - 35 - MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4374
SELECT - 35 - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-30

query I rowsort
SELECT + - col2 - - ( ( + 94 ) ) AS col0 FROM tab1 AS cor0
----
-2
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + SUM( + 97 ) AS col1 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + SUM ( + 97 ) AS col1 FROM tab2 AS cor0
----
291

query I rowsort
SELECT + col1 * col1 - + col1 * - col1 AS col2 FROM tab0 cor0
----
13122
2
882

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT 13 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT 13 / col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 48 IN ( ( - col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4380
SELECT * FROM tab2 WHERE NOT 27 + - col2 / - 88 >= ( CAST( + col1 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4380
SELECT * FROM tab2 WHERE NOT 27 + - col2 / - 88 >= ( CAST ( + col1 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col0 - ( + col2 ) * col0 > ( NULL )
----

query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN ( col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL COUNT( * ) * + 81 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL COUNT ( * ) * + 81 FROM tab1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + SUM( 97 ) AS col0 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + SUM ( 97 ) AS col0 FROM tab2
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT + 23 DIV + col1 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND ( col1 * col1 )
----
4

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 23 / + col1 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND ( col1 * col1 )
----
4

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col1 * col1 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT CAST( - ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4389
SELECT CAST ( - ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <> + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT 3 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4391
SELECT 3 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - 22, col1 FROM tab2
----
-22
51
-22
67
-22
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 2 + 86 * + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT MAX( DISTINCT 61 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4394
SELECT MAX ( DISTINCT 61 ) FROM tab0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL - ( 53 ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - + 24 IS NOT NULL
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - ( 53 ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - + 24 IS NOT NULL
----
-53
-53
-53

query I rowsort
SELECT col2 * + col0 + - col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT ALL + - 93 * - col2 AS col2 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT ALL 83 + - + col2 + + col0 - col2 AS col2 FROM tab0 cor0
----
-18
150
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT - COUNT( * ) + 82 * + 50 FROM tab2 AS cor0
----
4097

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - COUNT ( * ) + 82 * + 50 FROM tab2 AS cor0
----
4097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - ( + col1 ) * CAST( NULL AS SIGNED ) + col2 * - col0 + - ( col0 ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - ( + col1 ) * CAST ( NULL AS INTEGER ) + col2 * - col0 + - ( col0 ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col2, + ( + + col2 ) FROM tab1 cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4402
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT - 72 <> ( + CAST( NULL AS DECIMAL ) * 29 )
----

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT - 72 <> ( + CAST ( NULL AS REAL ) * 29 )
----

query I rowsort
SELECT DISTINCT col0 * 59 * + + 3 * col1 FROM tab1 AS cor0
----
126378
75225
757029

query I rowsort
SELECT ALL + 58 + + - col0 FROM tab1 AS cor0
----
-27
-33
7

query I rowsort
SELECT col1 FROM tab0 WHERE NULL <= ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4406
SELECT DISTINCT + col2 * + col2 AS col1, + col0 DIV - 72 AS col0 FROM tab0
----
100
-1
2209
0
9801
-1

skipif mysql # not compatible
query II rowsort label-4406
SELECT DISTINCT + col2 * + col2 AS col1, + col0 / - 72 AS col0 FROM tab0
----
100
-1
2209
0
9801
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col0 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col0 * col2 IS NULL
----
NULL

query I rowsort
SELECT col0 * - 26 * - 93 AS col1 FROM tab0
----
210366
234546
36270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT col0 * col0 AS col2 FROM tab1 WHERE NULL NOT BETWEEN + CAST( 16 AS SIGNED ) - col2 / col2 AND + ( + col2 ) - col2 * col2
----

skipif mysql # not compatible
query I rowsort label-4409
SELECT col0 * col0 AS col2 FROM tab1 WHERE NULL NOT BETWEEN + CAST ( 16 AS INTEGER ) - col2 / col2 AND + ( + col2 ) - col2 * col2
----

query III rowsort
SELECT * FROM tab0 WHERE - + 39 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 82 col0, col2 AS col1 FROM tab1
----
4838
59
5576
68
7872
96

query I rowsort
SELECT ALL - 35 * + - col2 * - ( 43 ) * - 42 FROM tab1
----
3729390
4298280
6068160

query I rowsort
SELECT col2 * - + col1 * col1 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT ALL 65 AS col1 FROM tab2 AS cor0 WHERE col0 * col2 NOT IN ( - 89 + + col0 )
----
65
65
65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL < ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT 20 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT 20 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - - ( 63 ) AS col2 FROM tab1 AS cor0 WHERE + 18 + - + col0 / + - 21 IN ( 45 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + 48 + - COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 48 + - COUNT ( * ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT + ( - col2 ) FROM tab0 AS cor0 WHERE col2 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + + col0 ) >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + - + col1 * + col2 ) BETWEEN ( NULL ) AND + col2 * ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT 78 + - 17 + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + + col2 )
----
61

skipif mysql # not compatible
query I rowsort label-4422
SELECT 78 + - 17 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + + col2 )
----
61

query I rowsort
SELECT + 19 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4424
SELECT ALL col1, + CAST( 10 AS SIGNED ) FROM tab0 cor0
----
1
10
21
10
81
10

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL col1, + CAST ( 10 AS INTEGER ) FROM tab0 cor0
----
1
10
21
10
81
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT ALL + + col0 * - + col1 + + col0 - + - col2 + - + ( 41 ) - + 7 AS col2 FROM tab1 AS cor0
----
-329
-4166
-615

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT 59 DIV - 99 * col1 * + + col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4427
SELECT 59 / - 99 * col1 * + + col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - COUNT( 42 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4428
SELECT - COUNT ( 42 ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT MIN( ALL - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4429
SELECT MIN ( ALL - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - - COUNT( * ) * + MIN( + + col0 ) AS col0 FROM tab1 cor0
----
153

skipif mysql # not compatible
query I rowsort label-4430
SELECT - - COUNT ( * ) * + MIN ( + + col0 ) AS col0 FROM tab1 cor0
----
153

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col1 * col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT DISTINCT 55, MAX( ALL - - 91 ) col2 FROM tab2
----
55
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4432
SELECT DISTINCT 55, MAX ( ALL - - 91 ) col2 FROM tab2
----
55
91

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL >= col1 )
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + 86 AS col1 FROM tab0 AS cor0 WHERE NOT + 87 - - + col2 IS NULL
----
-1
86
-21
86
-81
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT ALL - ( + CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 92 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * + - 93 BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 42 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4439
SELECT DISTINCT MIN( - col2 ) AS col2, SUM( DISTINCT 4 ) DIV - 91 * - CAST( + - 13 AS SIGNED ) + ( COUNT( * ) ) FROM tab2 AS cor0
----
-58
3

skipif mysql # not compatible
query II rowsort label-4439
SELECT DISTINCT MIN ( - col2 ) AS col2, SUM ( DISTINCT 4 ) / - 91 * - CAST ( + - 13 AS INTEGER ) + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-58
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT ALL 61 + - - col2 DIV + - col0 FROM tab0 AS cor0
----
58
60
61

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL 61 + - - col2 / + - col0 FROM tab0 AS cor0
----
58
60
61

query I rowsort
SELECT DISTINCT col1 / ( col1 ) + - col0 * col2 FROM tab0 AS cor0 WHERE + 91 BETWEEN + - 12 AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) BETWEEN ( NULL ) AND 70
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4443
SELECT DISTINCT + col0 + - CAST( col1 AS SIGNED ) DIV + - col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + col0 + - CAST ( col1 AS INTEGER ) / + - col2 FROM tab2 AS cor0
----
48
65
76

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 - - - col0 - + col1 - col0 * col2 * + col1 AS col1 FROM tab1
----
-25250
-291065
-68660

query I rowsort
SELECT DISTINCT col2 - + ( col2 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 61 FROM tab1 WHERE NOT 33 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = 60
----

query I rowsort
SELECT ALL 72 * - ( - col0 ) AS col2 FROM tab1 AS cor0
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COUNT( * ) * - + SUM( - 35 ) col2 FROM tab0 AS cor0
----
315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT COUNT ( * ) * - + SUM ( - 35 ) col2 FROM tab0 AS cor0
----
315

query I rowsort
SELECT ALL - - col1 * - 12 FROM tab0 cor0
----
-12
-252
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 77 ) * - col1 col1 FROM tab0 cor0
----
1617
6237
77

query I rowsort
SELECT DISTINCT - - 67 AS col1 FROM tab2 AS cor0
----
67

query I rowsort
SELECT - 94 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 23 + 60 + 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 + + col1 col1 FROM tab1 AS cor0 WHERE NOT + col1 * col1 + - - 58 + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + ( ( - - 4 ) ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 85 + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 85 + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( + col0 )
----
NULL

query II rowsort
SELECT ALL + col2, 93 AS col0 FROM tab1
----
59
93
68
93
96
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4459
SELECT ALL - CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4459
SELECT ALL - CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT 0 * + - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT - AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT SUM( ALL - 14 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT SUM ( ALL - 14 ) FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL + ( + + AVG ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + ( + + AVG ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT + + col0 / - 71 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT + 76 + - col0 FROM tab2 AS cor0
----
1
12
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 / col0 col1 FROM tab2 AS cor0 WHERE + 4 IS NULL
----

query I rowsort
SELECT - col2 * col0 + + 70 AS col0 FROM tab2
----
-2490
-4280
-988

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT + col2 DIV - col0 + - col2 * - col2 FROM tab0
----
100
2206
9800

skipif mysql # not compatible
query I rowsort label-4468
SELECT + col2 / - col0 + - col2 * - col2 FROM tab0
----
100
2206
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL + MAX( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + MAX ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - + 39 FROM tab2 AS cor0
----
-62
-79
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 93 / + + 92 + - col2 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + COUNT( ALL + 2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4472
SELECT + COUNT ( ALL + 2 ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + - col2 * + col2 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL IN ( - col0, - col2, col2 * + col0 * - - 73 * - col2 + - - ( - 53 ) )
----

query II rowsort
SELECT ALL - - col1 AS col1, 56 FROM tab2 AS cor0
----
51
56
67
56
77
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT + ( - 87 ) AS col2 FROM tab2 WHERE NOT CAST( 0 AS SIGNED ) = - col2
----
-87

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + ( - 87 ) AS col2 FROM tab2 WHERE NOT CAST ( 0 AS INTEGER ) = - col2
----
-87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( - 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE ( + - col2 ) > 10 + ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE ( + - col2 ) > 10 + ( + col2 )
----
0

query I rowsort
SELECT ALL - + ( - col2 ) + - - col2 * + 72 FROM tab0 cor0
----
3431
7227
730

query I rowsort
SELECT - + 28 + + 19 + col0 + + - 84 + - col1 * col2 FROM tab1 AS cor0
----
-1386
-303
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + - ( + + MAX( ALL - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4481
SELECT + - ( + + MAX ( ALL - col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - + MIN( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - + MIN ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> - + col0 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT - - 67 + + + CAST( NULL AS SIGNED ) * + 52 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT - - 67 + + + CAST ( NULL AS INTEGER ) * + 52 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL ( + COUNT( * ) ) * - COUNT( * ) * + - MAX( ALL 16 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * ) * + - MAX ( ALL 16 ) FROM tab2 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + 16 * + COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 16 * + COUNT ( * ) FROM tab0 AS cor0
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4488
SELECT * FROM tab1 cor0 WHERE NOT ( NOT CAST( + col2 AS DECIMAL ) + + + col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4488
SELECT * FROM tab1 cor0 WHERE NOT ( NOT CAST ( + col2 AS REAL ) + + + col0 IS NULL )
----

query I rowsort
SELECT ALL - + 63 * col2 AS col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - col1 * - col2 + 83 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT - col1 * - col2 + 83 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT col1 DIV 64 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
141
142
51

skipif mysql # not compatible
query I rowsort label-4491
SELECT col1 / 64 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
141
142
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4492
SELECT DISTINCT - 99 DIV + 74 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - 99 / + 74 AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) * - MAX( DISTINCT + - ( + 59 ) ) FROM tab0 cor0
----
177

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) * - MAX ( DISTINCT + - ( + 59 ) ) FROM tab0 cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 16 col0 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - 9 * MIN( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-4495
SELECT - 9 * MIN ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-459

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - col0 * - 72 >= NULL
----

query I rowsort
SELECT ALL col0 + - 66 * - col2 AS col2 FROM tab0 AS cor0
----
3117
6631
747

query II rowsort
SELECT ALL - col0 + 12 AS col2, col2 FROM tab0 AS cor0
----
-3
47
-75
10
-85
99

query I rowsort
SELECT DISTINCT col0 * + - col0 + + col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT - - col2 * - + 96 + + col2 AS col1 FROM tab1 AS cor0
----
-5605
-6460
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - + 0 + + COUNT( * ) + - + 10 * MIN( - 43 ) + + 74 FROM tab2 AS cor0
----
507

skipif mysql # not compatible
query I rowsort label-4501
SELECT - + 0 + + COUNT ( * ) + - + 10 * MIN ( - 43 ) + + 74 FROM tab2 AS cor0
----
507

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 62 NOT IN ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4503
SELECT ( col1 ) + + ( - col2 ) AS col1, col0 + ( CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-21
NULL
-54
NULL
-82
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4503
SELECT ( col1 ) + + ( - col2 ) AS col1, col0 + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-21
NULL
-54
NULL
-82
NULL

query I rowsort
SELECT DISTINCT - col0 - + 57 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-108
-142
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL MIN( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL MIN ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - 88 + 42 AS col2 FROM tab2 cor0
----
-46
-46
-46

query II rowsort
SELECT + 58 AS col1, + 56 AS col2 FROM tab2
----
58
56
58
56
58
56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = 52 * 30 + 99
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> + col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN + col2 AND + col1
----

query I rowsort
SELECT col2 - - 95 + col2 * col0 FROM tab2 AS cor0
----
1176
2695
4503

query I rowsort
SELECT DISTINCT + + 30 - - col0 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT ALL col0 - 85 FROM tab1 AS cor0
----
-34
0
6

query I rowsort
SELECT ALL ( - 20 ) AS col1 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT COUNT( * ) + - 90 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4515
SELECT COUNT ( * ) + - 90 FROM tab2
----
-87

query II rowsort
SELECT 47, col1 * + col2 * - - col1 AS col2 FROM tab0
----
47
308367
47
4410
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4517
SELECT 84, - col2 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-4517
SELECT 84, - col2 * - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
84
NULL
84
NULL
84
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT - 19 AS col2, 76 - + - COUNT( * ) col0 FROM tab1 AS cor0
----
-19
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4518
SELECT - 19 AS col2, 76 - + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-19
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - MIN( + 20 ) * - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-4519
SELECT - MIN ( + 20 ) * - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-180

query I rowsort
SELECT 29 * + 47 + - - col0 - 54 + - 9 FROM tab1 cor0 WHERE NOT ( + + 42 ) + + 48 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 59 + 25 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4522
SELECT DISTINCT + MIN( - - col0 ) AS col2, ( 96 ) FROM tab2 cor0
----
46
96

skipif mysql # not compatible
query II rowsort label-4522
SELECT DISTINCT + MIN ( - - col0 ) AS col2, ( 96 ) FROM tab2 cor0
----
46
96

query I rowsort
SELECT DISTINCT + + col0 * + col0 * - + 22 FROM tab1 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
-158950
-182182
-57222

query II rowsort
SELECT + - 38 + - + 54 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-92
-15
-92
-87
-92
-97

query I rowsort
SELECT DISTINCT col0 * + col0 * - 16 AS col0 FROM tab0
----
-121104
-150544
-3600

query II rowsort
SELECT - col1 AS col1, col1 FROM tab1 WHERE - 35 * - - 1 - - + ( + 90 ) <> ( col1 )
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4527
SELECT DISTINCT - + COUNT( * ) + - + CAST( NULL AS DECIMAL ) FROM tab2 WHERE ( NULL BETWEEN NULL AND + col0 * + - col1 * + col1 + - - col2 - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - + COUNT ( * ) + - + CAST ( NULL AS REAL ) FROM tab2 WHERE ( NULL BETWEEN NULL AND + col0 * + - col1 * + col1 + - - col2 - 29 )
----
NULL

query I rowsort
SELECT DISTINCT - 36 + + 48 FROM tab1 cor0
----
12

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
71

query I rowsort
SELECT + 73 + - 84 AS col2 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - 39 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT - - CAST( NULL AS SIGNED ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT - - CAST ( NULL AS INTEGER ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL - + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 4 - + col2 * + 40 * + 17 + + 10 + - - col1 * - 56 FROM tab1
----
-40394
-48866
-66058

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 BETWEEN - 6 * col0 AND ( + 65 )
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT + 93 * + SUM( - CAST( col2 AS SIGNED ) ) FROM tab0
----
-14508

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 93 * + SUM ( - CAST ( col2 AS INTEGER ) ) FROM tab0
----
-14508

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - MAX( DISTINCT - - 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - MAX ( DISTINCT - - 72 ) FROM tab1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col0 FROM tab2
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4540
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) / - + 47 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4540
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / - + 47 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT - 19 DIV 58 + ( + col2 ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4542
SELECT - 19 / 58 + ( + col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL col2 + + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - 9 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4544
SELECT - 9 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, 60 - col1 FROM tab0
----
1
59
21
39
81
-21

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 69 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4548
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 / - - 6 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4548
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 / - - 6 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4549
SELECT ALL + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4549
SELECT ALL + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - COUNT( 66 ) * - 48 AS col0 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4550
SELECT - COUNT ( 66 ) * - 48 AS col0 FROM tab1 AS cor0
----
144

query II rowsort
SELECT DISTINCT - - 90, col0 * 78 * + col2 AS col1 FROM tab2 AS cor0
----
90
199680
90
339300
90
82524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT + - CAST( + 52 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-4552
SELECT + - CAST ( + 52 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + 70 * - col1 * - col1 AS col0 FROM tab1 AS cor0
----
13720
154630
1750

query I rowsort
SELECT ALL - 15 * + col2 FROM tab0
----
-1485
-150
-705

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + + COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT + + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4557
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col1 * + col1 * CAST( NULL AS SIGNED ) + + - 72 AND + 89 - - col2 + - ( - 89 ) AND NULL <= + CAST( + 5 AS SIGNED ) * + + ( + ( + ( + 55 ) ) ) - - - col1
----

skipif mysql # not compatible
query III rowsort label-4557
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col1 * + col1 * CAST ( NULL AS INTEGER ) + + - 72 AND + 89 - - col2 + - ( - 89 ) AND NULL <= + CAST ( + 5 AS INTEGER ) * + + ( + ( + ( + 55 ) ) ) - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL + + 0 * + - 15 + COUNT( ALL + 56 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + + 0 * + - 15 + COUNT ( ALL + 56 ) FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT + + 62 * + ( + ( + 94 ) ) + + col0 AS col1, + col1 + - col1 AS col1 FROM tab0 AS cor0
----
5843
0
5915
0
5925
0

query I rowsort
SELECT DISTINCT - - col1 * + col1 * - col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 68 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 68 FROM tab0
----
NULL

query I rowsort
SELECT + - col0 * - col2 + col2 * - - 1 - col1 FROM tab1 cor0
----
4978
5069
6209

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 96 IS NOT NULL AND col1 BETWEEN - col2 * 48 AND NULL
----

query I rowsort
SELECT - col0 - - - ( col1 ) FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT + MAX( ALL - + ( + col1 ) ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4566
SELECT DISTINCT + MAX ( ALL - + ( + col1 ) ) col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT DISTINCT + COUNT( * ) + + - COUNT( ALL - 69 ) + - COUNT( * ), MAX( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-4567
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( ALL - 69 ) + - COUNT ( * ), MAX ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-3
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4568
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - CAST( 99 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4568
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - CAST ( 99 AS INTEGER ) AND - col1
----

query II rowsort
SELECT col2 * - - 96 AS col0, 13 FROM tab1
----
5664
13
6528
13
9216
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT ALL - 36 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - 36 / + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - col0 AS col1, - col1 AS col0 FROM tab1 cor0 WHERE NOT col1 + - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT col2 DIV - col0 * col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT col2 / - col0 * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + 81 + - + col1 FROM tab2 AS cor0
----
14
30
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + + CAST( MAX( - + col2 ) AS SIGNED ) FROM tab2 AS cor0 WHERE col2 + - - CAST( NULL AS SIGNED ) IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + + CAST ( MAX ( - + col2 ) AS INTEGER ) FROM tab2 AS cor0 WHERE col2 + - - CAST ( NULL AS INTEGER ) IS NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL + + MIN( + + col0 ) + COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + + MIN ( + + col0 ) + COUNT ( * ) FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + 39 + - SUM( - col1 ) - + - 3 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-4578
SELECT + 39 + - SUM ( - col1 ) - + - 3 FROM tab2 AS cor0
----
237

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - 51 FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT DISTINCT 29 * - CAST( - 88 AS SIGNED ) FROM tab1
----
2552

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT 29 * - CAST ( - 88 AS INTEGER ) FROM tab1
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - COUNT( - 16 ) * + 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-4582
SELECT - COUNT ( - 16 ) * + 90 FROM tab0
----
-270

query III rowsort
SELECT * FROM tab2 WHERE + - ( + - ( - col1 ) ) * 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, + ( 12 ) FROM tab1
----
14
12
47
12
5
12

query I rowsort
SELECT col0 FROM tab2 WHERE - col0 IN ( + 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 59 col1 FROM tab0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT - 44, + COUNT( * ) AS col2 FROM tab0
----
-44
3

skipif mysql # not compatible
query II rowsort label-4587
SELECT - 44, + COUNT ( * ) AS col2 FROM tab0
----
-44
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > + col1 - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4589
SELECT ALL - + SUM( ALL - - 98 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - + SUM ( ALL - - 98 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT MAX( col0 ) DIV MIN( + - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT MAX ( col0 ) / MIN ( + - col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4592
SELECT + col1 DIV + col2 AS col1, + col0 + + - ( col2 ) FROM tab2 AS cor0
----
1
17
1
24
2
23

skipif mysql # not compatible
query II rowsort label-4592
SELECT + col1 / + col2 AS col1, + col0 + + - ( col2 ) FROM tab2 AS cor0
----
1
17
1
24
2
23

query I rowsort
SELECT DISTINCT + + ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT 73 * - SUM( + 40 ) FROM tab1
----
-8760

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT 73 * - SUM ( + 40 ) FROM tab1
----
-8760

query I rowsort
SELECT DISTINCT - 8 * - col2 AS col1 FROM tab1
----
472
544
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, 54 + - col0 col0 FROM tab2
----
-46
8
-64
-10
-75
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + 4 * col1 * + col1 FROM tab2 cor0
----
10404
17956
23716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL + CAST( NULL AS SIGNED ) * + 46 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + CAST ( NULL AS INTEGER ) * + 46 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4600
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST( + 28 AS SIGNED ) NOT BETWEEN col1 AND + col0 )
----

skipif mysql # not compatible
query III rowsort label-4600
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( + 28 AS INTEGER ) NOT BETWEEN col1 AND + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 col0 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL col2 + + 25 AS col1 FROM tab0 AS cor0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4603
SELECT SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - 58 + + ( - col1 ), + col1 - + col0 col0 FROM tab2 AS cor0
----
-160
5
-192
-8
-212
13

query I rowsort
SELECT ALL 55 + + ( 86 ) AS col2 FROM tab0 AS cor0
----
141
141
141

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 39 ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( + 80 ) + col2 * + col2 AS col1, - ( + col2 ) * + 68 AS col0 FROM tab1 AS cor0
----
3561
-4012
4704
-4624
9296
-6528

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT - - 6 * - - 7 DIV col0 + - 70 * + col0 AS col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

skipif mysql # not compatible
query I rowsort label-4608
SELECT - - 6 * - - 7 / col0 + - 70 * + col0 AS col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 75 + + - col2 NOT BETWEEN NULL AND + col1 * + - 37 + 21 )
----

query I rowsort
SELECT + 56 * - 96 * + 75 + + col2 AS col1 FROM tab1 AS cor0
----
-403104
-403132
-403141

query I rowsort
SELECT ALL + col2 * - col0 * - ( + col0 ) - - col0 AS col0 FROM tab0
----
10590
75777
931588

query I rowsort
SELECT DISTINCT - + 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - COUNT( * ) * + 37 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4614
SELECT - COUNT ( * ) * + 37 FROM tab1 AS cor0
----
-111

query II rowsort
SELECT ALL - col1 * + col2 AS col0, 40 * - 64 FROM tab0 AS cor0
----
-210
-2560
-3807
-2560
-99
-2560

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + 46 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 46 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + + ( + col1 ) col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT DISTINCT - col2 AS col0, ( - 97 ) FROM tab1 cor0
----
-59
-97
-68
-97
-96
-97

query I rowsort
SELECT ALL col2 - - - col1 * - col1 + - 13 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - 4 * - 18 / - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4622
SELECT ALL 37, + col2 DIV - 50 AS col2 FROM tab2 cor0
----
37
-1
37
0
37
0

skipif mysql # not compatible
query II rowsort label-4622
SELECT ALL 37, + col2 / - 50 AS col2 FROM tab2 cor0
----
37
-1
37
0
37
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT DISTINCT ( + 98 ) AS col1, - CAST( + - 66 AS SIGNED ) FROM tab2
----
98
66

skipif mysql # not compatible
query II rowsort label-4623
SELECT DISTINCT ( + 98 ) AS col1, - CAST ( + - 66 AS INTEGER ) FROM tab2
----
98
66

query I rowsort
SELECT + col2 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT SUM( - - col1 ) AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT SUM ( - - col1 ) AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 43 ) col1, - 42 * ( col1 ) AS col0 FROM tab1
----
-43
-1974
-43
-210
-43
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col1, MIN( + 19 ) FROM tab1
----
3
19

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col1, MIN ( + 19 ) FROM tab1
----
3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + MAX( DISTINCT 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4628
SELECT + MAX ( DISTINCT 6 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT 3 * - + SUM( ALL - col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT 3 * - + SUM ( ALL - col2 ) FROM tab2
----
363

query I rowsort
SELECT ALL + 99 FROM tab0 WHERE + + col1 * + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT 98 * - COUNT( * ) AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-4631
SELECT 98 * - COUNT ( * ) AS col1 FROM tab1
----
-294

query I rowsort
SELECT ALL - + col0 + + + 52 AS col2 FROM tab0 AS cor0
----
-35
-45
37

query I rowsort
SELECT DISTINCT - col0 * 88 * + col2 AS col1 FROM tab2 cor0
----
-225280
-382800
-93104

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - 41 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2642
-4530
-5970

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( NOT col0 <= - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( NOT col0 <= - + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4639
SELECT col2 + - col2 + CAST( NULL AS SIGNED ), col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
NULL
1
NULL
17
NULL
3

skipif mysql # not compatible
query II rowsort label-4639
SELECT col2 + - col2 + CAST ( NULL AS INTEGER ), col0 / + col1 AS col1 FROM tab1 AS cor0
----
NULL
1
NULL
17
NULL
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col1 * col2 AND - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL + COUNT( * ) * - 39 + - 50 AS col0 FROM tab0 cor0
----
-167

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + COUNT ( * ) * - 39 + - 50 AS col0 FROM tab0 cor0
----
-167

query I rowsort
SELECT ALL + 44 + - - col1 AS col2 FROM tab1 AS cor0
----
49
58
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL + 14 + MAX( ALL + CAST( NULL AS SIGNED ) ) / + SUM( DISTINCT - 54 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 14 + MAX ( ALL + CAST ( NULL AS INTEGER ) ) / + SUM ( DISTINCT - 54 ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL CAST( + 0 AS SIGNED ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL CAST ( + 0 AS INTEGER ) AS col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT + col2, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT 71 * + - col1 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
-104725
-10665052
-1335936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT - + CAST( - 55 AS SIGNED ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4647
SELECT - + CAST ( - 55 AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL - col0 * - 19 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - col0 * - 19 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + MIN( ALL + - 36 ) AS col2 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4649
SELECT + MIN ( ALL + - 36 ) AS col2 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT + SUM( - - ( + 8 ) ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4650
SELECT + SUM ( - - ( + 8 ) ) AS col1 FROM tab2
----
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = NULL AND NOT NULL IS NULL
----

query II rowsort
SELECT - 86 - - col0 AS col0, ( - ( col1 ) ) * - col2 AS col2 FROM tab2 AS cor0
----
-11
3886
-22
3080
-40
1173

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4653
SELECT * FROM tab2 AS cor0 WHERE - CAST( - - ( + - col1 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4653
SELECT * FROM tab2 AS cor0 WHERE - CAST ( - - ( + - col1 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + 55 + - col2 FROM tab0 cor0
----
-55

query I rowsort
SELECT ALL + + 6 + + 75 + - - 71 AS col0 FROM tab0 AS cor0
----
152
152
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT DISTINCT COUNT( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - 87 col1 FROM tab1 AS cor0
----
-5133
-5916
-8352

query II rowsort
SELECT ALL - col1, + col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL + + SUM( - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + + SUM ( - col0 ) FROM tab0 cor0
----
-199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT 17 DIV 60 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT 17 / 60 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 74 * + 79 * + + col0 AS col2 FROM tab2
----
268916
374144
438450

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 + - col2 * + - col1 / col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab2 cor0 WHERE col0 * + + 66 IS NOT NULL
----
10

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * - - col1 * 50 + col0 < - ( + col0 )
----
15
87
97

query I rowsort
SELECT DISTINCT - 92 + - - col2 + - - 79 FROM tab0 AS cor0
----
-3
34
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 52 ) col1 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT ALL - ( - - 97 ) AS col2 FROM tab1
----
-97
-97
-97

query I rowsort
SELECT + + 27 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL - MIN( 59 ) AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - MIN ( 59 ) AS col0 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - col0 - - - col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL - - col0 - - 40 FROM tab0 AS cor0
----
127
137
55

query I rowsort
SELECT DISTINCT 72 * - - col2 - 38 * + 39 * 89 AS col2 FROM tab2 cor0
----
-127722
-129018
-130242

query III rowsort
SELECT * FROM tab0 WHERE col2 <= col1 * - col1 * + 80 * - col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - + col0 * + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 - col1 AND ( + 94 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT ALL col0 DIV 47 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL col0 / 47 FROM tab0
----
0
1
2

query I rowsort
SELECT 43 + - 73 FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT MAX( - ( - + col0 ) ) + - COUNT( * ) AS col2 FROM tab2 WHERE - 46 IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-4678
SELECT MAX ( - ( - + col0 ) ) + - COUNT ( * ) AS col2 FROM tab2 WHERE - 46 IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT MIN( DISTINCT + + 29 ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4679
SELECT MIN ( DISTINCT + + 29 ) AS col0 FROM tab2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - CAST( - ( ( + col1 ) ) AS SIGNED ) * + col1 FROM tab2 cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-4680
SELECT - CAST ( - ( ( + col1 ) ) AS INTEGER ) * + col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT DISTINCT + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT + 76 + ( - 15 ) - - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2, tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4683
SELECT + 76 + ( - 15 ) - - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2, tab2 AS cor0
----
70

query I rowsort
SELECT ALL 69 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + col1 * + 9 FROM tab2
----
459
603
693

query I rowsort
SELECT ALL + 17 + + - col1 + - + col1 - col2 * + col1 + + - col0 * - - 27 FROM tab1 WHERE NOT - ( + - 86 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + + col2 NOT BETWEEN + col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + MIN( ALL + + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + MIN ( ALL + + col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 54, + col1 FROM tab0
----
54
1
54
21
54
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT - - col1 + - - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 WHERE NOT - col1 BETWEEN + ( - col1 ) * + col0 AND - 88
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-4691
SELECT - - col1 + - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 WHERE NOT - col1 BETWEEN + ( - col1 ) * + col0 AND - 88
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT + 43 DIV + col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4692
SELECT + 43 / + col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 97 * + col2 FROM tab1 AS cor0
----
5723
6596
9312

query I rowsort
SELECT DISTINCT + col1 * + - 92 AS col2 FROM tab1 AS cor0
----
-1288
-4324
-460

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 55 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT DISTINCT - SUM( - col2 ) DIV + 47 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - SUM ( - col2 ) / + 47 AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col1 AS col0, + 35 AS col0 FROM tab2 WHERE NOT col1 + + + 50 + - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - - col2 + col1 * + - col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - + 9 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 18 / - col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 18 / - col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE + 68 <= NULL
----

query I rowsort
SELECT DISTINCT + 89 + 38 + + 92 AS col0 FROM tab0 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL - COUNT( * ) - + + SUM( - 85 ) + 2 FROM tab1 cor0
----
254

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL - COUNT ( * ) - + + SUM ( - 85 ) + 2 FROM tab1 cor0
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT MIN( ALL 20 ) col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT MIN ( ALL 20 ) col2 FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + COUNT( * ) + + 54 AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + COUNT ( * ) + + 54 AS col0 FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 WHERE 27 < - + col2 + - 26 + - col2 + - 58
----

query I rowsort
SELECT DISTINCT col2 + - col1 + col2 AS col0 FROM tab1
----
113
178
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT ALL - ( 75 ) DIV + 98 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - ( 75 ) / + 98 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL 15 - - - COUNT( * ) * - 60 * - COUNT( * ) FROM tab0
----
-525

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 15 - - - COUNT ( * ) * - 60 * - COUNT ( * ) FROM tab0
----
-525

query I rowsort
SELECT - ( - + 59 ) - - col1 * 68 FROM tab0
----
127
1487
5567

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 94 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT MIN( + 2 ) FROM tab2, tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4714
SELECT MIN ( + 2 ) FROM tab2, tab1 cor0
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + - col1 AND - col1
----

query II rowsort
SELECT DISTINCT - 60, - 39 AS col0 FROM tab1
----
-60
-39

query II rowsort
SELECT DISTINCT col2, 35 + + - 10 FROM tab0 AS cor0
----
10
25
47
25
99
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + MAX( DISTINCT + 74 ) AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4718
SELECT + MAX ( DISTINCT + 74 ) AS col1 FROM tab0 AS cor0
----
74

query I rowsort
SELECT col1 * + col2 * - 61 AS col1 FROM tab0 AS cor0
----
-12810
-232227
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - + 6 + - COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - + 6 + - COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4721
SELECT * FROM tab2 WHERE NOT + 59 * - 38 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4721
SELECT * FROM tab2 WHERE NOT + 59 * - 38 + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 * + col0 * 53 FROM tab0
----
37365
46110
508959

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4723
SELECT * FROM tab1 WHERE ( - 97 * col0 + + - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4723
SELECT * FROM tab1 WHERE ( - 97 * col0 + + - CAST ( NULL AS REAL ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + ( - - col1 ) AS col1, col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + col1 + - 74 AS col0 FROM tab2
----
-23
-7
3

query I rowsort
SELECT col1 * - 31 * - - 59 * col0 + - col0 + - - 2 FROM tab1
----
-1305955
-777408
-7822722

query I rowsort
SELECT - col1 + 46 AS col1 FROM tab1 cor0
----
-1
32
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT ALL + col0 + 86 * - col0 AS col1 FROM tab1 AS cor0
----
-4335
-7225
-7735

query I rowsort
SELECT - 5 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 40 - - + col2 AS col2 FROM tab0 AS cor0
----
139
50
87

query I rowsort
SELECT + col2 - col2 + + - col1 + + 76 FROM tab1 AS cor0
----
29
62
71

query I rowsort
SELECT ALL + - 53 + - col0 FROM tab2 AS cor0
----
-117
-128
-99

query II rowsort
SELECT + col1 * 75 - + - col2 AS col1, 38 AS col0 FROM tab2 AS cor0
----
3848
38
5083
38
5815
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL - - SUM( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - - SUM ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 <> NULL
----

query I rowsort
SELECT - + col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + 31 + - - COUNT( ALL + 20 ) AS col1 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4738
SELECT + 31 + - - COUNT ( ALL + 20 ) AS col1 FROM tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 IS NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE 77 <> + ( col0 )
----
-23
-40
-58

query I rowsort
SELECT ALL + col1 * - col0 / - col1 FROM tab1 WHERE NULL = + col1 + - col2 / + - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - COUNT( * ) + + 40 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - COUNT ( * ) + + 40 FROM tab1
----
37

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 78 * - + col2 - - 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, - col0 AS col1 FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + SUM( DISTINCT - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4745
SELECT + SUM ( DISTINCT - + col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT + - MIN( DISTINCT + 75 ) AS col0 FROM tab2 WHERE NOT NULL <> + + col1 * - col0 / - col2 * - ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT + - MIN ( DISTINCT + 75 ) AS col0 FROM tab2 WHERE NOT NULL <> + + col1 * - col0 / - col2 * - ( 30 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL - CAST( NULL AS SIGNED ) * - 85 * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4747
SELECT ALL - CAST ( NULL AS INTEGER ) * - 85 * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * + - 29 * 54 AS col0 FROM tab1 AS cor0
----
133110
142506
79866

query I rowsort
SELECT DISTINCT col0 * 25 FROM tab1 cor0
----
1275
2125
2275

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 67
----

query I rowsort
SELECT - 13 * - - col0 AS col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT DISTINCT - col1 * - col0 + - 1 + ( col0 ) FROM tab1 AS cor0
----
4367
509
764

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT - COUNT( * ) * + 82 * + 57 + - COUNT( * ) FROM tab2 cor0
----
-14025

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - COUNT ( * ) * + 82 * + 57 + - COUNT ( * ) FROM tab2 cor0
----
-14025

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + 22 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4754
SELECT + 22 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NOT ( NOT - + col0 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT - col2 DIV ( + + col2 ) * + col0 + 90 AS col1 FROM tab0
----
-7
3
75

skipif mysql # not compatible
query I rowsort label-4756
SELECT - col2 / ( + + col2 ) * + col0 + 90 AS col1 FROM tab0
----
-7
3
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, ( - - ( - col1 ) ) col2 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL - + ( - 56 ) FROM tab0 AS cor0
----
56
56
56

query II rowsort
SELECT ALL + col0 + - 51 * + col1 * + ( - col0 ) + col2 AS col0, - 35 + + + col1 AS col2 FROM tab2 cor0
----
119715
16
251432
42
256408
32

query I rowsort
SELECT col1 * - 67 - col2 FROM tab1
----
-1034
-3217
-394

query I rowsort
SELECT ALL col0 + 57 AS col2 FROM tab2
----
103
121
132

query I rowsort
SELECT DISTINCT 93 + col2 * + 82 AS col0 FROM tab0
----
3947
8211
913

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + ( 58 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4764
SELECT * FROM tab0 WHERE ( + col0 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4764
SELECT * FROM tab0 WHERE ( + col0 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT - AVG ( ALL + col0 ) * + MIN( DISTINCT + 26 ) AS col0 FROM tab0 WHERE col2 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - AVG ( ALL + col0 ) * + MIN ( DISTINCT + 26 ) AS col0 FROM tab0 WHERE col2 * col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 71 col2 FROM tab0
----
1491
5751
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT CAST( + ( col2 ) AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT CAST ( + ( col2 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - ( 8 ) * SUM( col1 ) FROM tab1
----
-528

skipif mysql # not compatible
query I rowsort label-4768
SELECT - ( 8 ) * SUM ( col1 ) FROM tab1
----
-528

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT MAX( ALL ( col2 ) ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT MAX ( ALL ( col2 ) ) AS col1 FROM tab0
----
99

query I rowsort
SELECT 21 + 32 FROM tab1
----
53
53
53

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col2 ) AS col0 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab2 WHERE + 41 < ( - ( 7 ) / - 96 )
----

query I rowsort
SELECT + 87 + 24 FROM tab1
----
111
111
111

query I rowsort
SELECT ALL - ( + col1 ) + - 36 AS col0 FROM tab1
----
-41
-50
-83

query I rowsort
SELECT DISTINCT - 13 * - col0 + col2 AS col1 FROM tab2 WHERE col1 = ( - ( + col2 ) ) * - col2 + + 78
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4777
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NULL > ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL col2 * - CAST ( NULL AS REAL ) FROM tab1 WHERE NULL > ( + col1 )
----

query I rowsort
SELECT 72 AS col0 FROM tab1 WHERE ( col0 ) BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN ( + col2 ) AND col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 / col2 NOT IN ( col0 * - col2 )
----

query I rowsort
SELECT 15 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT - 8 DIV 94 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT - 8 / 94 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
78
78
78

query I rowsort
SELECT + 88 * + col2 FROM tab0 cor0
----
4136
8712
880

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NOT 16 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 75 * col0 FROM tab0 AS cor0
----
1125
6525
7275

query I rowsort
SELECT + 54 * ( - col1 * + col0 ) AS col2 FROM tab1 AS cor0
----
-22950
-230958
-38556

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT - ( - 77 ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4788
SELECT - ( - 77 ) / - col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT ALL - COUNT( * ) DIV - 62 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4790
SELECT ALL - COUNT ( * ) / - 62 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( col0 ) * col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < 25
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND - 30 * - ( + col0 ) + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4795
SELECT ALL * FROM tab2 WHERE NOT ( col2 * - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4795
SELECT ALL * FROM tab2 WHERE NOT ( col2 * - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 80 * + 47 AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to 13ce2ee38edcf7d7b8c897d800520fae

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT + 81 * + COUNT( * ) FROM tab1 WHERE ( 53 * col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + 81 * + COUNT ( * ) FROM tab1 WHERE ( 53 * col2 ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - + COUNT( * ) + ( COUNT( * ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - + COUNT ( * ) + ( COUNT ( * ) ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - COUNT( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT + COUNT( * ) + 89 AS col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + COUNT ( * ) + 89 AS col2 FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT MIN( DISTINCT + 29 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT MIN ( DISTINCT + 29 ) FROM tab1 AS cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL CAST( NULL AS SIGNED ) + ( 66 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL CAST ( NULL AS INTEGER ) + ( 66 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT COUNT( ( col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4804
SELECT COUNT ( ( col2 ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - SUM( 30 ) * 13 FROM tab0 AS cor0
----
-1170

skipif mysql # not compatible
query I rowsort label-4805
SELECT - SUM ( 30 ) * 13 FROM tab0 AS cor0
----
-1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 79 DIV 21 AS col1 FROM tab0 AS cor0 WHERE - 1 = NULL
----
3

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 79 / 21 AS col1 FROM tab0 AS cor0 WHERE - 1 = NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL - - COUNT( * ) + 92 AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - - COUNT ( * ) + 92 AS col1 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL MAX( ALL + 31 ) AS col2 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL MAX ( ALL + 31 ) AS col2 FROM tab1
----
31

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT 28 * - + COUNT( * ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT 28 * - + COUNT ( * ) FROM tab2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT + SUM( ALL + col2 ) + ( - COUNT( * ) ) DIV - 26 AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4811
SELECT + SUM ( ALL + col2 ) + ( - COUNT ( * ) ) / - 26 AS col2 FROM tab0
----
156

query I rowsort
SELECT - - col1 + + 64 - col1 AS col1 FROM tab1 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT DISTINCT - col2 - 33 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-100
-128
-91

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - col2 - 33 + col1 / col1 AS col1 FROM tab1 AS cor0
----
-100
-128
-91

query I rowsort
SELECT DISTINCT 63 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL < ( + 47 * 82 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 91 + + col2 * - 58 NOT BETWEEN - col1 + col0 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4816
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4818
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4818
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - 97 col1 FROM tab2 AS cor0
----
51
-97
67
-97
77
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT + 29 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 93 * - ( - MAX( col0 ) ) FROM tab2 AS cor0
----
6975

skipif mysql # not compatible
query I rowsort label-4822
SELECT 93 * - ( - MAX ( col0 ) ) FROM tab2 AS cor0
----
6975

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + 37 + col1 IS NOT NULL
----

query I rowsort
SELECT + - 30 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, 59 * col1 AS col1 FROM tab1 cor0
----
59
295
68
2773
96
826

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 NOT BETWEEN - 64 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 40 - col0 * 83 AS col0 FROM tab2 WHERE NULL <> + 51
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT col2 + - col0 >= ( col0 )
----
51
85
91

query II rowsort
SELECT 25 * - + col2, col0 FROM tab0
----
-1175
15
-2475
97
-250
87

query I rowsort
SELECT - ( + + 80 ) FROM tab2 AS cor0
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <> - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL NOT IN ( + 37 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - COUNT( ALL - - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4835
SELECT - COUNT ( ALL - - col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 70 - + col1 * - col1 FROM tab2 WHERE NOT col0 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + + 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( - col1 * + ( - 55 ) + 63 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( - col1 * + ( - 55 ) + 63 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT COUNT( * ) + - - COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4839
SELECT COUNT ( * ) + - - COUNT ( * ) col2 FROM tab0
----
6

query I rowsort
SELECT ALL + - ( - 92 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
92
92
92

query I rowsort
SELECT + col0 + 78 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( col1 - + col2 )
----

query I rowsort
SELECT 37 + + + col0 FROM tab2 AS cor0
----
101
112
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT DISTINCT + - 18 * - COUNT( * ) - + - COUNT( * ) DIV COUNT( * ) + - MAX( DISTINCT col2 ) * 53 FROM tab1 AS cor0
----
-5033

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + - 18 * - COUNT ( * ) - + - COUNT ( * ) / COUNT ( * ) + - MAX ( DISTINCT col2 ) * 53 FROM tab1 AS cor0
----
-5033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT col0 * + - col1 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4845
SELECT col0 * + - col1 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT + col1 * - 79 * CAST( NULL AS SIGNED ) + 9 FROM tab0 AS cor0 WHERE NOT 52 IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT + col1 * - 79 * CAST ( NULL AS INTEGER ) + 9 FROM tab0 AS cor0 WHERE NOT 52 IN ( col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 * + - col0 col0, + col2 FROM tab2
----
0
23
0
40
0
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT col2 * + + col2 * - - col0 AS col2 FROM tab0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4850
SELECT DISTINCT - col2 DIV + CAST( col2 AS SIGNED ) + + col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - col2 / + CAST ( col2 AS INTEGER ) + + col2 FROM tab2
----
22
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT ALL 76 DIV - col1 FROM tab0
----
-3
-76
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL 76 / - col1 FROM tab0
----
-3
-76
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT DISTINCT + ( - col2 ) DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + ( - col2 ) / - col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 / col0, + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( col2 ) ) IS NULL
----

query I rowsort
SELECT + - 90 + 86 + - - col2 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT - col2 + + col1 DIV + 14 col1 FROM tab2
----
-20
-35
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4856
SELECT - col2 + + col1 / + 14 col1 FROM tab2
----
-20
-35
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 90 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL col1 DIV col0 + 28 FROM tab0 AS cor0
----
28
28
33

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL col1 / col0 + 28 FROM tab0 AS cor0
----
28
28
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + 82 + + 54 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT - ( + MIN( DISTINCT + - 66 ) ) AS col2 FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - ( + MIN ( DISTINCT + - 66 ) ) AS col2 FROM tab0 cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT COUNT( * ) * - CAST( + - ( 83 ) AS SIGNED ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-4863
SELECT COUNT ( * ) * - CAST ( + - ( 83 ) AS INTEGER ) FROM tab2 AS cor0
----
249

query I rowsort
SELECT col1 * - 7 AS col0 FROM tab2 cor0
----
-357
-469
-539

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT 62 * - - col1 + + col1 * col0 - + col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT ( - + ( + - ( - 21 ) ) ) FROM tab0 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 68 col0 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( col1 >= - + 23 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, - col1 * - + 15 FROM tab2
----
23
765
40
1155
58
1005

query II rowsort
SELECT 67, + col0 FROM tab1
----
67
51
67
85
67
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL + SUM( ALL + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + SUM ( ALL + col2 ) AS col0 FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL MIN( ALL + 10 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL MIN ( ALL + 10 ) FROM tab2
----
10

query II rowsort
SELECT ALL + 38, col2 + + col2 AS col2 FROM tab0
----
38
198
38
20
38
94

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN col1 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - - col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( - 43 ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 3 NOT IN ( - 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL - ( - - COUNT( ALL - 40 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - ( - - COUNT ( ALL - 40 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + COUNT( ALL col1 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT + COUNT ( ALL col1 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + ( 44 ) FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - col0 + 59 * 36 * - - col0 + - + col2 FROM tab1 AS cor0
----
108177
180396
193125

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL <> NULL ) )
----

query I rowsort
SELECT 35 + - 16 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN + + 12 + 20 - col2 * col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 * - 73 col1, - ( - ( + - 29 ) ) * + + col2 AS col1 FROM tab1 AS cor0
----
-5548
-1711
-5548
-1972
-5548
-2784

query I rowsort
SELECT DISTINCT - 83 * - - 40 * + col2 / - - col0 FROM tab1 AS cor0 WHERE col1 * - 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4891
SELECT DISTINCT 26 + - 43 * + 93 + - 36 AS col2, col2 DIV + - col1 FROM tab2 AS cor0
----
-4009
0

skipif mysql # not compatible
query II rowsort label-4891
SELECT DISTINCT 26 + - 43 * + 93 + - 36 AS col2, col2 / + - col1 FROM tab2 AS cor0
----
-4009
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col0 col2 FROM tab1 AS cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 + - col1 col0 FROM tab0 AS cor0
----
-30
30
50

query I rowsort
SELECT col2 + + 42 + + col2 FROM tab1 AS cor0
----
160
178
234

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE + col2 <= + col2
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * col2 col1 FROM tab0
----
2209
4653
470

query I rowsort
SELECT - 19 + + - col0 FROM tab0
----
-106
-116
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT + COUNT( * ) + - 28 col0 FROM tab0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4898
SELECT + COUNT ( * ) + - 28 col0 FROM tab0
----
-25

query II rowsort
SELECT + - col1, col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL - - ( ( - COUNT( col2 ) ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4900
SELECT ALL - - ( ( - COUNT ( col2 ) ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT - - col0 AS col0 FROM tab2 WHERE NOT NULL IN ( + col1 * - col2 + - + col2, 74, - CAST( + 53 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4901
SELECT - - col0 AS col0 FROM tab2 WHERE NOT NULL IN ( + col1 * - col2 + - + col2, 74, - CAST ( + 53 AS INTEGER ) )
----

query II rowsort
SELECT + col0 AS col2, col2 + + 10 FROM tab2 AS cor0
----
46
33
64
50
75
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4903
SELECT ALL - + col2 col1, col2 - - + 24 DIV - col1 + + 0 col0 FROM tab1 AS cor0
----
-59
55
-68
68
-96
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4903
SELECT ALL - + col2 col1, col2 - - + 24 / - col1 + + 0 col0 FROM tab1 AS cor0
----
-59
55
-68
68
-96
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4904
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0, 29 + + col2 + - col1 + - col0 DIV - - 34 FROM tab1 AS cor0
----
51
110
85
81
91
48

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0, 29 + + col2 + - col1 + - col0 / - - 34 FROM tab1 AS cor0
----
51
110
85
81
91
48

query I rowsort
SELECT ALL 58 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 18 FROM tab2 AS cor0 WHERE NOT ( + col2 ) BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT - + CAST( 41 AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

skipif mysql # not compatible
query I rowsort label-4907
SELECT - + CAST ( 41 AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE NOT 30 + col0 < + col2
----
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT DISTINCT - 25 DIV + 46 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT - 25 / + 46 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4910
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 + + CAST( - 1 AS SIGNED ) BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4910
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 + + CAST ( - 1 AS INTEGER ) BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - COUNT( * ) * + SUM( ALL - + 68 ) col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN - col2 / - col0 * - 31 AND - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4911
SELECT - COUNT ( * ) * + SUM ( ALL - + 68 ) col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN - col2 / - col0 * - 31 AND - col0
----
NULL

query II rowsort
SELECT + col1 * + 23 * + col0 * col0 * + col0, ( + + col1 ) FROM tab2
----
114175128
51
464257024
77
650109375
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4913
SELECT * FROM tab2 WHERE NOT col2 * ( - 59 ) + - CAST( NULL AS SIGNED ) * + col2 * - ( col2 ) NOT IN ( - 69 )
----

skipif mysql # not compatible
query III rowsort label-4913
SELECT * FROM tab2 WHERE NOT col2 * ( - 59 ) + - CAST ( NULL AS INTEGER ) * + col2 * - ( col2 ) NOT IN ( - 69 )
----

query II rowsort
SELECT ALL + col1 + col1 AS col1, + 14 AS col1 FROM tab0
----
162
14
2
14
42
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT 66 DIV + 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT 66 / + 94 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 29 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT - 64 DIV col0 col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4917
SELECT - 64 / col0 col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT + 44 + - - 4 AS col1 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL - COUNT( * ) + 48 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - COUNT ( * ) + 48 FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL - CAST( - - 80 AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 + + - col1 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - CAST ( - - 80 AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 + + - col1 IS NOT NULL
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > col2 + - col2
----

query II rowsort
SELECT ALL + ( - col2 ) * + - col2 + + + 75 AS col2, + 63 AS col2 FROM tab2 AS cor0
----
1675
63
3439
63
604
63

query I rowsort
SELECT ALL + - 76 + + + col1 FROM tab0 cor0
----
-55
-75
5

query I rowsort
SELECT + col2 * - col0 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( col1 * - ( + - 74 ) * + 65 + - 41, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + SUM( ALL - - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4925
SELECT + SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - 41 + - col2 AS col1 FROM tab0 AS cor0
----
-140
-51
-88

query II rowsort
SELECT - - col2 AS col2, 55 FROM tab2 AS cor0
----
23
55
40
55
58
55

query I rowsort
SELECT DISTINCT - 82 - - - col1 AS col1 FROM tab2
----
-133
-149
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ( + + ( SUM( ALL - col1 ) ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4929
SELECT ( + + ( SUM ( ALL - col1 ) ) ) AS col1 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab1 WHERE + 68 IN ( + 93, - col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - COUNT( ALL 67 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4931
SELECT - COUNT ( ALL 67 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - COUNT( * ) * + 32 - + 31 FROM tab1
----
-127

skipif mysql # not compatible
query I rowsort label-4932
SELECT - COUNT ( * ) * + 32 - + 31 FROM tab1
----
-127

query II rowsort
SELECT DISTINCT col0 * + - col0 AS col1, + ( - col1 ) FROM tab1
----
-2601
-14
-7225
-5
-8281
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT DISTINCT - COUNT( * ) * 18, COUNT( * ) col0 FROM tab2 AS cor0
----
-54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4934
SELECT DISTINCT - COUNT ( * ) * 18, COUNT ( * ) col0 FROM tab2 AS cor0
----
-54
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT ALL col0 DIV 49 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL col0 / 49 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL ( 17 ) * ( + + col2 ) - 19 AS col2 FROM tab2
----
372
661
967

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT + - 91 DIV COUNT( * ) * - 28 AS col0 FROM tab0 AS cor0
----
840

skipif mysql # not compatible
query I rowsort label-4939
SELECT + - 91 / COUNT ( * ) * - 28 AS col0 FROM tab0 AS cor0
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - 16 * COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-4940
SELECT - 16 * COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4941
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) * col1 + - col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4941
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * col1 + - col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND - 25 * 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - + col0 * + - col0 + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT - + col0 * + - col0 + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + - col0 ) * 79 - - + col2 AS col1 FROM tab0 AS cor0
----
-1138
-6863
-7564

query I rowsort
SELECT + + 67 * - + 62 + 95 FROM tab2 AS cor0
----
-4059
-4059
-4059

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 + 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT DISTINCT + col2 DIV + 34 col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT DISTINCT + col2 / + 34 col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - col2 * + col1 * - + ( col1 ) AS col2 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT + ( - 87 ) AS col2 FROM tab2
----
-87
-87
-87

query I rowsort
SELECT col0 + - ( - ( 36 ) ) * - col0 AS col2 FROM tab2
----
-1610
-2240
-2625

query I rowsort
SELECT 46 + - col0 * + 92 AS col1 FROM tab0 AS cor0
----
-1334
-7958
-8878

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT + col0 + - 7 DIV - col0 * - col2 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4952
SELECT + col0 + - 7 / - col0 * - col2 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 43 * 4 + - + 23 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
159
196
248

query I rowsort
SELECT ALL + col0 * col0 + - + col1 AS col1 FROM tab0 AS cor0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + MAX( DISTINCT col1 ) * - COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-4955
SELECT + MAX ( DISTINCT col1 ) * - COUNT ( * ) FROM tab1
----
-141

query I rowsort
SELECT 40 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL SUM( + + 16 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL SUM ( + + 16 ) FROM tab0
----
48

query I rowsort
SELECT col0 - col1 + + col2 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT col1 - - col0 DIV + col2 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-4960
SELECT col1 - - col0 / + col2 FROM tab2 AS cor0
----
53
68
78

query I rowsort
SELECT ALL - 18 + - 90 * + col1 * + 90 FROM tab0 AS cor0
----
-170118
-656118
-8118

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - 45 * + SUM( ALL - 61 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT - 45 * + SUM ( ALL - 61 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 + 37 + - col1 * + col1 FROM tab1 AS cor0
----
-145
-2125
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - - COUNT( * ) + 20 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4964
SELECT - - COUNT ( * ) + 20 FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT 26 - + + 59 FROM tab2
----
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * + + 51 IS NULL
----

query I rowsort
SELECT ALL col0 - - + col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 16 * + + 90 FROM tab0
----
1440
1440
1440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * 53 col2 FROM tab1
----
1749
1749
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT COUNT( - + col1 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4970
SELECT COUNT ( - + col1 ) * - COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 23, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + COUNT( * ) * 70 + + COUNT( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4972
SELECT + COUNT ( * ) * 70 + + COUNT ( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT 99 * - SUM( ALL - col0 ) FROM tab1
----
22473

skipif mysql # not compatible
query I rowsort label-4973
SELECT 99 * - SUM ( ALL - col0 ) FROM tab1
----
22473

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4974
SELECT ( + - CAST( - + col1 AS SIGNED ) ) * col2 DIV - - col0 FROM tab2
----
25
48
51

skipif mysql # not compatible
query I rowsort label-4974
SELECT ( + - CAST ( - + col1 AS INTEGER ) ) * col2 / - - col0 FROM tab2
----
25
48
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT + COUNT( * ), 93 AS col0 FROM tab1
----
3
93

skipif mysql # not compatible
query II rowsort label-4975
SELECT + COUNT ( * ), 93 AS col0 FROM tab1
----
3
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * + - col1 * col1 col2 FROM tab2
----
228888
395032
521752

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 24 + 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT ALL + 52 FROM tab1 AS cor0 WHERE col2 * - 52 + - CAST( NULL AS SIGNED ) > - col1
----

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + 52 FROM tab1 AS cor0 WHERE col2 * - 52 + - CAST ( NULL AS INTEGER ) > - col1
----

query I rowsort
SELECT + ( - 45 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL - - col2 * + ( - - col0 ) + + - col0 + - col1 + + 99 * + col2 DIV col2 * - col2 * - - col0 AS col0 FROM tab1 AS cor0
----
-479873
-491560
-606562

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - - col2 * + ( - - col0 ) + + - col0 + - col1 + + 99 * + col2 / col2 * - col2 * - - col0 AS col0 FROM tab1 AS cor0
----
-479873
-491560
-606562

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + - - ( - 32 ) col1 FROM tab1
----
53
53
53

query I rowsort
SELECT ALL + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - col1 + col2 * - + 10 FROM tab2
----
-281
-477
-647

onlyif mysql # DIV for integer division: 
query II rowsort label-4985
SELECT DISTINCT col2 DIV col0, - col1 AS col2 FROM tab0 WHERE NOT ( + col1 * + col1 DIV + + col0 * - col1 * + + 13 ) IS NULL
----
0
-21
1
-1
3
-81

skipif mysql # not compatible
query II rowsort label-4985
SELECT DISTINCT col2 / col0, - col1 AS col2 FROM tab0 WHERE NOT ( + col1 * + col1 / + + col0 * - col1 * + + 13 ) IS NULL
----
0
-21
1
-1
3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL - + MIN( + - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - + MIN ( + - col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT ALL - - col2 DIV 68 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - - col2 / 68 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - - col1 + - 38 FROM tab1 AS cor0
----
1306
257
3158

query I rowsort
SELECT ALL - 46 * - - col0 + + 54 + + col1 * 25 + col1 AS col1 FROM tab0 cor0
----
-3402
-4382
1470

query III rowsort
SELECT col2, 96 * + col0 * - 54, + col2 AS col0 FROM tab1 cor0
----
9 values hashing to 04dbfc6a2da97574ac14d26f73d43e40

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + - SUM( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4991
SELECT + - SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + + SUM( DISTINCT - + col2 ) - COUNT( * ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + + SUM ( DISTINCT - + col2 ) - COUNT ( * ) FROM tab2 AS cor0
----
-124

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( 23 ) >= - ( + ( - + 56 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL + + 86 - COUNT( * ) AS col1 FROM tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + + 86 - COUNT ( * ) AS col1 FROM tab1 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ( COUNT( * ) ) - + 82 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-4995
SELECT ( COUNT ( * ) ) - + 82 FROM tab0
----
-79

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - - col2 - 27 + - 7 + - col1 - - - col0 >= NULL
----

query I rowsort
SELECT ALL + 76 FROM tab0 WHERE + col2 IS NOT NULL
----
76
76
76

query I rowsort
SELECT 5 * 95 AS col0 FROM tab1
----
475
475
475

query I rowsort
SELECT DISTINCT 37 * + col1 AS col1 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT + SUM( + + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + SUM ( + + col0 ) AS col2 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col0 FROM tab1
----
39
39
39

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - - col2 + + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + - MIN( ALL ( + - col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5004
SELECT + - MIN ( ALL ( + - col0 ) ) FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab0 AS cor0 WHERE 99 IS NOT NULL
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + SUM( ALL - 9 ) AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + SUM ( ALL - 9 ) AS col1 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL + 91 + - + col1 FROM tab1 AS cor0
----
44
77
86

query II rowsort
SELECT ALL col1 + - col2, - col1 + - - 30 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 27 + - 72 AS col2 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT + COUNT( * ) DIV + 60 * - 1 + COUNT( - 68 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5011
SELECT + COUNT ( * ) / + 60 * - 1 + COUNT ( - 68 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col1 + 48 FROM tab0 AS cor0
----
-33
27
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 BETWEEN + 8 AND NULL
----

query I rowsort
SELECT + 70 * - col1 AS col0 FROM tab0 AS cor0
----
-1470
-5670
-70

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( col1 + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT MAX( DISTINCT col2 ) AS col1, MIN( DISTINCT col2 ) FROM tab1
----
96
59

skipif mysql # not compatible
query II rowsort label-5016
SELECT MAX ( DISTINCT col2 ) AS col1, MIN ( DISTINCT col2 ) FROM tab1
----
96
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5017
SELECT DISTINCT * FROM tab1 WHERE NOT 54 * + + col1 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5017
SELECT DISTINCT * FROM tab1 WHERE NOT 54 * + + col1 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 33 * + 96 AS col1 FROM tab1
----
3168
3168
3168

query I rowsort
SELECT + col2 + + 18 FROM tab0
----
117
28
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5021
SELECT CAST( - col2 AS SIGNED ) * + - 43 + - ( + + col1 ) DIV 74 FROM tab2 AS cor0
----
1719
2494
989

skipif mysql # not compatible
query I rowsort label-5021
SELECT CAST ( - col2 AS INTEGER ) * + - 43 + - ( + + col1 ) / 74 FROM tab2 AS cor0
----
1719
2494
989

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 41 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + + ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT + + ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL < col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT - 17 * - CAST( + SUM( + 66 ) AS SIGNED ) col2 FROM tab0
----
3366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5025
SELECT DISTINCT - 17 * - CAST ( + SUM ( + 66 ) AS INTEGER ) col2 FROM tab0
----
3366

query I rowsort
SELECT + 67 - - ( col1 ) + - col2 FROM tab0
----
-31
101
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL - ( - MIN( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 = 23
----
51

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - ( - MIN ( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 = 23
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5028
SELECT - ( + CAST( NULL AS DECIMAL ) ) - col0 - + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT - ( + CAST ( NULL AS REAL ) ) - col0 - + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT + 72 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5029
SELECT + 72 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT - + 89 * - col1 * col0 * - col2 + - col0 FROM tab2 AS cor0
----
-17543744
-25939125
-4802308

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 69 - + - 82 NOT BETWEEN + + 20 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT MAX( DISTINCT ( + col2 ) ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT MAX ( DISTINCT ( + col2 ) ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT - - COUNT( * ) AS col0, - 6 + + + COUNT( DISTINCT + ( col0 ) ) FROM tab0 cor0 WHERE NOT ( NULL ) > NULL
----
0
-6

skipif mysql # not compatible
query II rowsort label-5033
SELECT - - COUNT ( * ) AS col0, - 6 + + + COUNT ( DISTINCT + ( col0 ) ) FROM tab0 cor0 WHERE NOT ( NULL ) > NULL
----
0
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + - SUM( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5034
SELECT + - SUM ( DISTINCT - + col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - col2 * - col1 * - col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT 1 * - + 5 FROM tab2
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + + col0
----

query I rowsort
SELECT ALL 19 * col2 * col2 AS col2 FROM tab2
----
10051
30400
63916

query I rowsort
SELECT - + 75 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-75
-75
-75

query II rowsort
SELECT col1 AS col0, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT DISTINCT - col1, - col2 + + 18 * + col0 AS col2 FROM tab1 AS cor0
----
-14
822
-47
1570
-5
1471

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col2, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT + 78 AS col0, + MIN( + col2 ) + - 97 AS col0 FROM tab2 AS cor0
----
78
-74

skipif mysql # not compatible
query II rowsort label-5044
SELECT + 78 AS col0, + MIN ( + col2 ) + - 97 AS col0 FROM tab2 AS cor0
----
78
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5045
SELECT DISTINCT - + col2, 10 col2, CAST( - 12 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 9f25f6cc99c92990f109dfc2cf71b9c5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5045
SELECT DISTINCT - + col2, 10 col2, CAST ( - 12 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 9f25f6cc99c92990f109dfc2cf71b9c5

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT - MIN( + col2 ) col1 FROM tab2 AS cor0 WHERE NOT + col1 * + ( col0 ) <= + 24
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT DISTINCT - MIN ( + col2 ) col1 FROM tab2 AS cor0 WHERE NOT + col1 * + ( col0 ) <= + 24
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT 53 DIV + col1 AS col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-5047
SELECT 53 / + col1 AS col1 FROM tab1
----
1
10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT - ( + col2 ) + CAST( col2 AS SIGNED ) + + col2 * 33 AS col2 FROM tab1
----
1947
2244
3168

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - ( + col2 ) + CAST ( col2 AS INTEGER ) + + col2 * 33 AS col2 FROM tab1
----
1947
2244
3168

query I rowsort
SELECT 2 * - col2 AS col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL + COUNT( * ) + + COUNT( * ) col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT ALL + COUNT ( * ) + + COUNT ( * ) col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT DISTINCT - 35 + 1 + - 63 * + col1 - - CAST( NULL AS SIGNED ) * - col1 * - - col0 * 53 * + col0 * col1 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - 35 + 1 + - 63 * + col1 - - CAST ( NULL AS INTEGER ) * - col1 * - - col0 * 53 * + col0 * col1 + - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT + + SUM( ALL - col2 ) + - 17 FROM tab0 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-5052
SELECT + + SUM ( ALL - col2 ) + - 17 FROM tab0 AS cor0
----
-173

query I rowsort
SELECT - col2 * - - col2 / - + col2 + 91 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - - ( + 1 ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * col2 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col1 * - + 11 * col0 FROM tab1
----
-4675
-47047
-7854

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 17 * - + col1 FROM tab0
----
-1377
-17
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT DISTINCT + CAST( 62 AS SIGNED ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT + CAST ( 62 AS INTEGER ) AS col1 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + - SUM( + 5 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT + - SUM ( + 5 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT - col1 DIV col0 + + + col2 FROM tab2 cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-5061
SELECT - col1 / col0 + + + col2 FROM tab2 cor0
----
22
39
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL COUNT( * ) - + + 34 AS col2 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL COUNT ( * ) - + + 34 AS col2 FROM tab1 cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT COUNT( * ) + + 77 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-5063
SELECT COUNT ( * ) + + 77 FROM tab0 cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT DISTINCT CAST( - - MIN( ALL - + col2 ) AS SIGNED ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT CAST ( - - MIN ( ALL - + col2 ) AS INTEGER ) FROM tab0
----
-99

query I rowsort
SELECT ALL ( - + 0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + + 21 * + col0 FROM tab0 AS cor0
----
1827
2037
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT + + CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT + + CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT COUNT( 39 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5068
SELECT COUNT ( 39 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 67 * - 50 AS col2 FROM tab1
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - COUNT( * ) * - 95 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5070
SELECT - COUNT ( * ) * - 95 FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT MAX( 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5071
SELECT MAX ( 14 ) FROM tab0
----
14

query II rowsort
SELECT ALL - ( - col0 ) * - 72 AS col2, + col2 AS col1 FROM tab2 cor0
----
-3312
23
-4608
40
-5400
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT - - SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5073
SELECT - - SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT + - col2 * - ( + 94 ) FROM tab1 AS cor0
----
5546
6392
9024

query I rowsort
SELECT ALL - + col2 * + 49 FROM tab2 AS cor0
----
-1127
-1960
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 47 col0 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT + col2 DIV col2 * + col2 + col0 * + col0 * + col0 col0 FROM tab1 AS cor0
----
132747
614184
753639

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5078
SELECT + col2 / col2 * + col2 + col0 * + col0 * + col0 col0 FROM tab1 AS cor0
----
132747
614184
753639

query I rowsort
SELECT col0 + 99 AS col2 FROM tab0 AS cor0
----
114
186
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col0 ) ) col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL ( - COUNT( ALL - 10 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL ( - COUNT ( ALL - 10 ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT 28 + - COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT 28 + - COUNT ( * ) FROM tab1
----
25

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT 71 DIV - col2 AS col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5084
SELECT 71 / - col2 AS col1 FROM tab2
----
-1
-1
-3

query III rowsort
SELECT + 42 AS col2, 29, ( col2 ) AS col2 FROM tab2 AS cor0
----
9 values hashing to 6375dcbcbb76216842b363cc77edec1f

onlyif mysql # DIV for integer division: 
query II rowsort label-5086
SELECT + col1, col0 DIV - col2 - + - col0 FROM tab1 cor0
----
14
51
47
90
5
84

skipif mysql # not compatible
query II rowsort label-5086
SELECT + col1, col0 / - col2 - + - col0 FROM tab1 cor0
----
14
51
47
90
5
84

query I rowsort
SELECT ALL - 64 + 17 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - 2 + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5088
SELECT - 2 + COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL col2 * col2 - + + col0 AS col1 FROM tab0
----
13
2194
9704

onlyif mysql # aggregate syntax: 
query II rowsort label-5090
SELECT DISTINCT - MIN( ALL - 60 ) AS col2, MIN( + + col2 ) - - 88 AS col2 FROM tab0
----
60
98

skipif mysql # not compatible
query II rowsort label-5090
SELECT DISTINCT - MIN ( ALL - 60 ) AS col2, MIN ( + + col2 ) - - 88 AS col2 FROM tab0
----
60
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT ALL - COUNT( - 25 ), + 50 AS col2 FROM tab2
----
-3
50

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL - COUNT ( - 25 ), + 50 AS col2 FROM tab2
----
-3
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col1 col2 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5093
SELECT col1 DIV + + col0 + 67 * + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
3154
6633
670

skipif mysql # not compatible
query I rowsort label-5093
SELECT col1 / + + col0 + 67 * + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
3154
6633
670

query I rowsort
SELECT DISTINCT - + col1 - + 15 + + 24 AS col0 FROM tab2 AS cor0
----
-42
-58
-68

query I rowsort
SELECT ALL + 21 FROM tab0 AS cor0 WHERE NOT NULL <= + 65 + + 59
----

query III rowsort
SELECT * FROM tab2 WHERE - 94 IS NULL
----

query I rowsort
SELECT ALL - 58 + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT ALL 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - SUM( DISTINCT + + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - SUM ( DISTINCT + + col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT + - 22 + AVG ( DISTINCT - col1 ) FROM tab0 WHERE NOT NULL <= - 87 / col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + - COUNT( - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + - COUNT ( - col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL + CAST( + + 84 AS SIGNED ) * - col1 - col2 + - col2 FROM tab2 AS cor0
----
-4330
-5744
-6548

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + CAST ( + + 84 AS INTEGER ) * - col1 - col2 + - col2 FROM tab2 AS cor0
----
-4330
-5744
-6548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5104
SELECT DISTINCT 90, col1 / + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5104
SELECT DISTINCT 90, col1 / + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
90
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT + col1 DIV - + col0 AS col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5105
SELECT + col1 / - + col0 AS col0 FROM tab0 cor0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5106
SELECT DISTINCT + 40, CAST( col2 AS SIGNED ) * col1 col2 FROM tab1 AS cor0
----
40
1344
40
295
40
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5106
SELECT DISTINCT + 40, CAST ( col2 AS INTEGER ) * col1 col2 FROM tab1 AS cor0
----
40
1344
40
295
40
3196

query I rowsort
SELECT ALL - 50 * + 32 + - - col0 AS col0 FROM tab0 AS cor0
----
-1503
-1513
-1585

query I rowsort
SELECT 31 * - 97 FROM tab2
----
-3007
-3007
-3007

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > NULL AND 70 IS NULL
----

query II rowsort
SELECT DISTINCT + + ( - - col2 ), - col0 * 88 AS col2 FROM tab0 AS cor0 WHERE NULL > 64
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - - col2
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
46
64
75

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT - - ( + 55 ) FROM tab2 WHERE NOT + - 33 * - 81 IS NOT NULL
----

query I rowsort
SELECT + 74 * 8 FROM tab1
----
592
592
592

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5116
SELECT 59 * ( - - CAST( - ( + - 73 ) AS SIGNED ) ) + - 88 + 29 * + + 85 col1, 45 DIV 78 AS col2 FROM tab2
----
6684
0
6684
0
6684
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5116
SELECT 59 * ( - - CAST ( - ( + - 73 ) AS INTEGER ) ) + - 88 + 29 * + + 85 col1, 45 / 78 AS col2 FROM tab2
----
6684
0
6684
0
6684
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 62, col0 * - col2, - col0, + ( col0 ) * + col1, - col2 - + - col2 )
----

query II rowsort
SELECT ALL - col0 AS col1, 80 AS col1 FROM tab2 AS cor0
----
-46
80
-64
80
-75
80

query II rowsort
SELECT DISTINCT col1 + - 99 + col0 AS col0, - 92 AS col2 FROM tab2 AS cor0
----
-2
-92
42
-92
43
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col2, - col0 * 43 AS col0 FROM tab1 AS cor0
----
51
-2193
85
-3655
91
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL CAST( - + MAX( + + col2 ) AS SIGNED ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL CAST ( - + MAX ( + + col2 ) AS INTEGER ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT SUM( DISTINCT - - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT SUM ( DISTINCT - - col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT ALL - 32 FROM tab2 WHERE NOT + 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL + 22 - ( + - COUNT( * ) ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL + 22 - ( + - COUNT ( * ) ) FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL - COUNT( * ) * + ( + - COUNT( * ) ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - COUNT ( * ) * + ( + - COUNT ( * ) ) AS col2 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col2 ) * - - col2 NOT BETWEEN ( NULL ) AND + 39
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + col1 ) * - col0 NOT BETWEEN + 77 + - col1 AND 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 90 / + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT - col2 DIV col1 * - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
9506

skipif mysql # not compatible
query I rowsort label-5130
SELECT - col2 / col1 * - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
9506

query I rowsort
SELECT 62 * - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
-13950
-469278
-583358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 * - col1 col0, 2 * - col2 AS col0 FROM tab2 AS cor0
----
-2142
-46
-2814
-116
-3234
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL + + ( + + MAX( ALL col1 ) ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5133
SELECT ALL + + ( + + MAX ( ALL col1 ) ) col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 50 < 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * - - col0 * + 72 col2 FROM tab0 cor0
----
-494856
-551736
-85320

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT DISTINCT COUNT( * ), 57 col0 FROM tab0
----
3
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5136
SELECT DISTINCT COUNT ( * ), 57 col0 FROM tab0
----
3
57

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col0 FROM tab0
----
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + ( - - ( + + 5 ) ) = NULL
----

query I rowsort
SELECT + 76 / + ( - 73 ) AS col1 FROM tab0 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5140
SELECT ALL - 62 * - COUNT( DISTINCT col1 ) col2, 52 * + + CAST( SUM( DISTINCT - - ( - + 79 ) ) AS SIGNED ) FROM tab0
----
186
-4108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5140
SELECT ALL - 62 * - COUNT ( DISTINCT col1 ) col2, 52 * + + CAST ( SUM ( DISTINCT - - ( - + 79 ) ) AS INTEGER ) FROM tab0
----
186
-4108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 * + col2 col2 FROM tab2 AS cor0
----
1334
529
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + - col1 col1 FROM tab2 AS cor0
----
-53
-69
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + 16 + COUNT( * ) + - + COUNT( * ) - - 41 * + COUNT( * ) FROM tab0 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-5143
SELECT + 16 + COUNT ( * ) + - + COUNT ( * ) - - 41 * + COUNT ( * ) FROM tab0 AS cor0
----
139

query I rowsort
SELECT DISTINCT ( + ( - 5 ) ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5145
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 / col1 * + 73 * - 68 * - col0 AND + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5145
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 / col1 * + 73 * - 68 * - col0 AND + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT MAX( - 3 ) * + - COUNT( * ) + - 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT MAX ( - 3 ) * + - COUNT ( * ) + - 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5148
SELECT 41 + + col0 * - - col1 * CAST( NULL AS SIGNED ), col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5148
SELECT 41 + + col0 * - - col1 * CAST ( NULL AS INTEGER ), col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT DISTINCT + 90 - - 20 * + COUNT( - 54 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
150
3

skipif mysql # not compatible
query II rowsort label-5149
SELECT DISTINCT + 90 - - 20 * + COUNT ( - 54 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
150
3

query I rowsort
SELECT 56 + + col0 FROM tab2 cor0
----
102
120
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE + 63 * - col1 > + 26 * - CAST( col2 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5151
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE + 63 * - col1 > + 26 * - CAST ( col2 AS INTEGER )
----
-1

query II rowsort
SELECT + - 64 * + col2 + - col0, - col1 AS col1 FROM tab0 cor0
----
-3023
-81
-6433
-1
-727
-21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 41 <> 87
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT DISTINCT - COUNT( * ), + COUNT( DISTINCT + 44 ) * + 42 AS col1 FROM tab2
----
-3
42

skipif mysql # not compatible
query II rowsort label-5154
SELECT DISTINCT - COUNT ( * ), + COUNT ( DISTINCT + 44 ) * + 42 AS col1 FROM tab2
----
-3
42

query I rowsort
SELECT - - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT COUNT( * ) AS col2, + 53 AS col2 FROM tab1 AS cor0
----
3
53

skipif mysql # not compatible
query II rowsort label-5156
SELECT COUNT ( * ) AS col2, + 53 AS col2 FROM tab1 AS cor0
----
3
53

query II rowsort
SELECT ALL + col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - 39 * - 95 FROM tab2 WHERE NOT - col1 + - - col2 < - 36
----
3705
3705

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - - 89 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT col1 * 61 FROM tab1
----
2867
305
854

query I rowsort
SELECT DISTINCT 0 + + - col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col2 + + - 21 + col2 FROM tab0 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 97 * - + ( - 53 ) * + col2 col0 FROM tab2
----
118266
205680
298236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT + col2 * 96 + ( - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT + col2 * 96 + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 98 + + - col0 AS col2 FROM tab0 AS cor0
----
-113
-185
-195

query I rowsort
SELECT DISTINCT - + 99 + + col0 FROM tab1 AS cor0
----
-14
-48
-8

query I rowsort
SELECT DISTINCT + 1 + - col1 FROM tab0 cor0
----
-20
-80
0

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - col0 >= - col0
----
1
21
81

query I rowsort
SELECT + 85 - col1 AS col0 FROM tab2
----
18
34
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT CAST( - + COUNT( * ) AS SIGNED ) - + COUNT( * ) col2 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5171
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) col2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 88 - + COUNT( * ) col2 FROM tab1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT 88 - + COUNT ( * ) col2 FROM tab1
----
85

query I rowsort
SELECT col1 - + 97 AS col0 FROM tab1
----
-50
-83
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT SUM( ALL + 74 ) - SUM( - col2 ) FROM tab2
----
343

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT SUM ( ALL + 74 ) - SUM ( - col2 ) FROM tab2
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT SUM( ALL - ( ( - col0 ) ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT SUM ( ALL - ( ( - col0 ) ) ) AS col1 FROM tab1
----
227

query I rowsort
SELECT 29 - - col0 FROM tab1
----
114
120
80

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col2 FROM tab2 AS cor0
----
12

query I rowsort
SELECT - col2 * + + 18 * - - col0 FROM tab0 cor0
----
-12690
-15660
-172854

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT - col2 > - col1
----

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) AS col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL + col2 * + - col1 * + col0 FROM tab0 cor0
----
-18270
-57105
-9603

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + 80 IS NULL
----

query I rowsort
SELECT 11 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE + 94 * + - 43 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT col0 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT - 31 DIV col1 AS col0 FROM tab1 cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT - 31 / col1 AS col0 FROM tab1 cor0
----
-2
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL - + COUNT( * ) * + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - + COUNT ( * ) * + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 75 * - + 27 + + - col2 col0 FROM tab2 AS cor0
----
-117508
-46598
-81040

query I rowsort
SELECT ALL 41 + + + col1 AS col0 FROM tab0 AS cor0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + 72 = col2
----
-3

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + 72 = col2
----
-3

query I rowsort
SELECT col1 FROM tab1 WHERE + + col0 * 57 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + - col2 + - 58 )
----

query I rowsort
SELECT DISTINCT + col0 + + col1 + - col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5195
SELECT DISTINCT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-5195
SELECT DISTINCT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col1 + - col1
----

query I rowsort
SELECT ( - col2 ) + + - 74 + + - 99 * - + 97 AS col2 FROM tab0 AS cor0
----
9430
9482
9519

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5197
SELECT DISTINCT CAST( col1 AS SIGNED ) * + ( + + col1 ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
1
99
441
10
6561
47

skipif mysql # not compatible
query II rowsort label-5197
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + ( + + col1 ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
1
99
441
10
6561
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 / - col1 + + col0 * - col0 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 - + 89 FROM tab2
----
-14
-25
-43

query I rowsort
SELECT col0 * col2 - + 29 * - col0 + - - col2 * col2 FROM tab0
----
22217
3349
3493

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT col1 DIV 22 + - - 79 FROM tab2 AS cor0
----
81
82
82

skipif mysql # not compatible
query I rowsort label-5201
SELECT col1 / 22 + - - 79 FROM tab2 AS cor0
----
81
82
82

query II rowsort
SELECT + 18 + + col2 AS col1, col0 AS col0 FROM tab0 AS cor0
----
117
97
28
87
65
15

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 4 + + 87 * - col1 AS col2 FROM tab0 cor0
----
-1823
-7043
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT ALL 48 DIV col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL 48 / col2 FROM tab0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL MAX( - 51 ) FROM tab1, tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL MAX ( - 51 ) FROM tab1, tab2 AS cor0
----
-51

query II rowsort
SELECT + 24 AS col1, col2 FROM tab2
----
24
23
24
40
24
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL - CAST( 82 AS SIGNED ) FROM tab1
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - CAST ( 82 AS INTEGER ) FROM tab1
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT + ( - - COUNT( * ) ) * - - COUNT( * ) col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5210
SELECT DISTINCT + ( - - COUNT ( * ) ) * - - COUNT ( * ) col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 * + 27 >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5212
SELECT ALL + col0 + 30 FROM tab2 WHERE NOT NULL <= ( - col2 - CAST( + CAST( NULL AS DECIMAL ) + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + col0 + 30 FROM tab2 WHERE NOT NULL <= ( - col2 - CAST ( + CAST ( NULL AS REAL ) + col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( col0 * 8 ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL ( + 40 ) FROM tab2
----
40
40
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5215
SELECT DISTINCT * FROM tab1 WHERE NOT 73 BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - col2
----

skipif mysql # not compatible
query III rowsort label-5215
SELECT DISTINCT * FROM tab1 WHERE NOT 73 BETWEEN NULL AND CAST ( NULL AS REAL ) + - col2
----

query I rowsort
SELECT 43 FROM tab2 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT ALL - 11 col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( 53 * col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5217
SELECT ALL - 11 col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( 53 * col0 )
----

query I rowsort
SELECT DISTINCT - 40 FROM tab1 WHERE NOT 4 IS NULL
----
-40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 90 <= ( + col0 )
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - 22 * col1 - col0 AS col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-1168
-1549
-1758

query I rowsort
SELECT + col1 * - ( col2 * + 38 ) FROM tab1
----
-11210
-121448
-51072

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - COUNT( ALL col0 ) FROM tab1 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - COUNT ( ALL col0 ) FROM tab1 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT + 93 FROM tab1 WHERE - 85 IS NULL
----

query I rowsort
SELECT ALL - col1 + 95 * 0 AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5225
SELECT ALL CAST( + CAST( - col1 AS DECIMAL ) AS SIGNED ) * 98 + col2 * col0 FROM tab2 WHERE 2 IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL CAST ( + CAST ( - col1 AS REAL ) AS INTEGER ) * 98 + col2 * col0 FROM tab2 WHERE 2 IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( + col0 * 94 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - 54 * 76 + 9 AS col0 FROM tab0
----
-4095
-4095
-4095

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( 64 )
----

query I rowsort
SELECT ALL 8 + 79 FROM tab0
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT + col2 DIV 47 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT + col2 / 47 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
2

query I rowsort
SELECT + col1 + + 60 FROM tab2
----
111
127
137

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT + col0 * col1 + + col0 DIV 23 FROM tab2
----
2348
4930
5028

skipif mysql # not compatible
query I rowsort label-5232
SELECT + col0 * col1 + + col0 / 23 FROM tab2
----
2348
4930
5028

query I rowsort
SELECT ALL + 7 + col2 FROM tab1 WHERE NOT NULL BETWEEN + 1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) + 54 * + col1 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < col0 * 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL MAX( + col0 ) * + COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL MAX ( + col0 ) * + COUNT ( * ) FROM tab2
----
225

query I rowsort
SELECT ALL + 96 FROM tab0 WHERE NOT + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5238
SELECT DISTINCT * FROM tab0 WHERE NOT - 42 * - CAST( NULL AS SIGNED ) > ( col1 * 77 )
----

skipif mysql # not compatible
query III rowsort label-5238
SELECT DISTINCT * FROM tab0 WHERE NOT - 42 * - CAST ( NULL AS INTEGER ) > ( col1 * 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT CAST( ( + 93 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5239
SELECT CAST ( ( + 93 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL ( + COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - 73 * - 37 + 42 FROM tab0 AS cor0
----
2743
2743
2743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT CAST( NULL AS SIGNED ) * - 91 AS col1 FROM tab2 cor0 WHERE ( NULL ) BETWEEN col1 + 97 * col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5242
SELECT CAST ( NULL AS INTEGER ) * - 91 AS col1 FROM tab2 cor0 WHERE ( NULL ) BETWEEN col1 + 97 * col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 93 * col2 + + ( col1 ) * - col0 ) <= - ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 38 + - 38 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 26 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 74 * + col0 - + 70 * 85 FROM tab0
----
-4840
1228
488

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT 13 - + COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT 13 - + COUNT ( * ) FROM tab2
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 0 * - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT ( - ( MAX( 87 ) ) ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT ( - ( MAX ( 87 ) ) ) FROM tab0 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT CAST( + 29 AS SIGNED ) FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-5251
SELECT CAST ( + 29 AS INTEGER ) FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT DISTINCT col2 * - CAST( - 38 AS SIGNED ) * col2 FROM tab0
----
372438
3800
83942

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT col2 * - CAST ( - 38 AS INTEGER ) * col2 FROM tab0
----
372438
3800
83942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 2 / + ( col0 * + col2 ) FROM tab0 WHERE 38 - col2 IN ( 54 * - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > ( + col1 + + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT - ( - COUNT( 98 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT - ( - COUNT ( 98 ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col2 ) AND col2 * + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT DISTINCT - COUNT( * ) * MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
-30

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT col2 / 12 = NULL
----

query I rowsort
SELECT + 36 * - col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT + - 94 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5261
SELECT + - 94 / col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT - AVG ( - 27 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND ( 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 * col1 - ( col0 - - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5263
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 * col1 - ( col0 - - col2 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT - + MIN( + 6 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - + MIN ( + 6 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT DISTINCT - 81 DIV - + COUNT( * ) - + 6 * + COUNT( * ) FROM tab0, tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT - 81 / - + COUNT ( * ) - + 6 * + COUNT ( * ) FROM tab0, tab1 AS cor0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( - 2 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT - COUNT( ALL - col1 ) DIV - CAST( 69 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 91 DIV + col2 + + col1 * col1 NOT BETWEEN + col0 AND ( 66 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - COUNT ( ALL - col1 ) / - CAST ( 69 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 91 / + col2 + + col1 * col1 NOT BETWEEN + col0 AND ( 66 + - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - + ( + COUNT( * ) ) * 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - + ( + COUNT ( * ) ) * 29 FROM tab0 AS cor0
----
-87

query II rowsort
SELECT + col2 AS col1, col2 * - + col0 - col0 FROM tab1 AS cor0
----
59
-5100
68
-6279
96
-4947

query I rowsort
SELECT + col0 * col0 * + 42 AS col0 FROM tab1 cor0
----
109242
303450
347802

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NULL > ( + col1 / + 60 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 = - 42 OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 33 * MIN( - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
-3165

skipif mysql # not compatible
query I rowsort label-5273
SELECT 33 * MIN ( - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
-3165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5274
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-5274
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT - col2 * + col1 * col0 * - col0 + ( + CAST( col2 AS SIGNED ) - + 86 ) AS col0 FROM tab2 AS cor0
----
12615634
21858722
2482005

skipif mysql # not compatible
query I rowsort label-5275
SELECT - col2 * + col1 * col0 * - col0 + ( + CAST ( col2 AS INTEGER ) - + 86 ) AS col0 FROM tab2 AS cor0
----
12615634
21858722
2482005

query I rowsort
SELECT DISTINCT + col1 + + col0 + ( + 43 ) - + 48 AS col0 FROM tab0 AS cor0
----
103
91
93

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col1 * - 33 + + col1 * - col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + + COUNT( * ) * - 93 + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5278
SELECT + + COUNT ( * ) * - 93 + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT ALL + 85 * - col2 + + + col2 + - 58 AS col0 FROM tab2 AS cor0
----
-1990
-3418
-4930

query I rowsort
SELECT + 64 + + col0 * col1 + + - ( - col2 ) AS col2 FROM tab2
----
2433
5032
5147

query I rowsort
SELECT + col2 * + col2 * - col2 * 61 + - ( col1 + - col1 ) AS col1 FROM tab2
----
-11901832
-3904000
-742187

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col0 * + - 77 + 61
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + col0 * + 31 FROM tab1
----
1581
2635
2821

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - SUM( + col1 ) + - - 69 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - SUM ( + col1 ) + - - 69 FROM tab1
----
3

query II rowsort
SELECT + col1 + + col0, col2 FROM tab2
----
141
40
142
58
97
23

query I rowsort
SELECT ALL + col0 + + 11 - - - 93 * col0 FROM tab2 AS cor0
----
-4221
-5877
-6889

query I rowsort
SELECT DISTINCT - col0 - 15 FROM tab2
----
-61
-79
-90

query I rowsort
SELECT DISTINCT + col0 - - col1 + - col0 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + col2 + + - 73 + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5292
SELECT + - SUM( DISTINCT + col2 ) * - - 18 * - SUM( + 96 ) + CAST( + 87 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
627351

skipif mysql # not compatible
query I rowsort label-5292
SELECT + - SUM ( DISTINCT + col2 ) * - - 18 * - SUM ( + 96 ) + CAST ( + 87 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
627351

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT + 10 * col2 * - 70 * + col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + + MAX( ALL + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5294
SELECT + + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 77 + - 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 77 + - 42 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT DISTINCT - SUM( DISTINCT col2 ), 48 AS col0 FROM tab2
----
-121
48

skipif mysql # not compatible
query II rowsort label-5297
SELECT DISTINCT - SUM ( DISTINCT col2 ), 48 AS col0 FROM tab2
----
-121
48

query I rowsort
SELECT ALL 95 * col2 FROM tab0
----
4465
9405
950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + 83 AS col0 FROM tab2 WHERE NOT + - col1 / + - col1 * + - CAST( 97 AS SIGNED ) + 70 * col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5299
SELECT + 83 AS col0 FROM tab2 WHERE NOT + - col1 / + - col1 * + - CAST ( 97 AS INTEGER ) + 70 * col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT 48 <= + ( col0 ) - - - col2 + + col2 + col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT 48 <= + ( col0 ) - - - col2 + + col2 + col2 * col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL COUNT( ALL - + col1 ) * - CAST( NULL AS SIGNED ) + 50 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL COUNT ( ALL - + col1 ) * - CAST ( NULL AS INTEGER ) + 50 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 10 + 70 * col2 FROM tab2
----
1600
2790
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT 48 * - CAST( - 13 * - COUNT( * ) AS SIGNED ) FROM tab1 cor0 WHERE + ( + 71 ) * - 63 - - 39 * ( - 57 ) NOT BETWEEN ( 11 ) AND NULL
----
-1872

skipif mysql # not compatible
query I rowsort label-5304
SELECT 48 * - CAST ( - 13 * - COUNT ( * ) AS INTEGER ) FROM tab1 cor0 WHERE + ( + 71 ) * - 63 - - 39 * ( - 57 ) NOT BETWEEN ( 11 ) AND NULL
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + + COUNT( col0 ) + + COUNT( col0 ) * 60 * COUNT( * ) FROM tab1 AS cor0
----
543

skipif mysql # not compatible
query I rowsort label-5305
SELECT + + COUNT ( col0 ) + + COUNT ( col0 ) * 60 * COUNT ( * ) FROM tab1 AS cor0
----
543

query I rowsort
SELECT DISTINCT + - col2 * - - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col1 + - col1 + - 2 * + col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL col0 + + 14 AS col0 FROM tab0 cor0
----
101
111
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 col1 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT 23 * + + col2 AS col0 FROM tab0
----
1081
2277
230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + col0 col2 FROM tab0
----
5568
6208
960

query I rowsort
SELECT col0 - + ( + col2 ) FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - 63 * + 23 * + col0 FROM tab0
----
-126063
-140553
-21735

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE + col2 * + col0 < ( NULL )
----

query I rowsort
SELECT 74 * + col0 + - 72 * - col2 FROM tab2
----
5060
7616
9726

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT SUM( DISTINCT + 73 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-5316
SELECT SUM ( DISTINCT + 73 ) FROM tab2
----
73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL IN ( - col2, - 43, col1 + + col1 ) )
----

query I rowsort
SELECT ALL col0 * - 30 * col0 FROM tab1
----
-216750
-248430
-78030

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col1 ) = NULL )
----

query I rowsort
SELECT + + col0 * + - col1 + - ( + col0 ) * + - col2 FROM tab0 AS cor0
----
-510
-957
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - ( SUM( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - ( SUM ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col1 + - + col1 * - - col1 col0 FROM tab2 AS cor0
----
-3608
-8412
-8772

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 31 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT MIN( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5324
SELECT MIN ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL + COUNT( * ) * - COUNT( * ) - + 50 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + COUNT ( * ) * - COUNT ( * ) - + 50 FROM tab2 AS cor0
----
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 * - 6 < col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT - + col1 + - + col2 * - col2 * 65 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT - + col1 + - + col2 * - col2 * 65 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 20 * + col0 AS col0 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT + + 6 * ( + - col2 ) + - col2 * col1 DIV 36 DIV col2 AS col1 FROM tab0 AS cor0
----
-284
-594
-60

skipif mysql # not compatible
query I rowsort label-5330
SELECT + + 6 * ( + - col2 ) + - col2 * col1 / 36 / col2 AS col1 FROM tab0 AS cor0
----
-284
-594
-60

query I rowsort
SELECT - 38 * + ( - col1 ) FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT + COUNT( * ) + - 25 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT + COUNT ( * ) + - 25 FROM tab2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL + COUNT( * ) + + 18 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL + COUNT ( * ) + + 18 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT ( - COUNT( - col2 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT ( - COUNT ( - col2 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT + + col1 DIV col2 - col0 AS col0 FROM tab2 cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-5335
SELECT + + col1 / col2 - col0 AS col0 FROM tab2 cor0
----
-44
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT DISTINCT + col1 + CAST( + col1 AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
-23
-75
3

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT + col1 + CAST ( + col1 AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
-23
-75
3

query I rowsort
SELECT ALL 22 + - + 77 FROM tab0 cor0
----
-55
-55
-55

query I rowsort
SELECT col0 - + col0 * - - col0 + - col1 FROM tab0 AS cor0
----
-291
-7503
-9313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE NOT + col1 + col2 < NULL AND NOT NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 42, - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-42
-4896
-42
-5015
-42
-6188

query I rowsort
SELECT + 12 + + + 59 AS col2 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL 78 + + + COUNT( * ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL 78 + + + COUNT ( * ) AS col2 FROM tab1
----
81

query I rowsort
SELECT ALL - col1 * 28 * - col2 FROM tab0
----
106596
2772
5880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5344
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) - + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) - + - col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5345
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + - 92 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - CAST ( NULL AS REAL ) - + - 92 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT MAX( - 17 ) + 76 AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5346
SELECT MAX ( - 17 ) + 76 AS col2 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( 14 ) IS NULL )
----

query I rowsort
SELECT 40 * + + 85 FROM tab2
----
3400
3400
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT - + ( CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5349
SELECT - + ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 * - + col0 + + 51 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5351
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL + 61 * - - COUNT( * ) - + - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + 61 * - - COUNT ( * ) - + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT SUM( col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT SUM ( col0 ) AS col2 FROM tab1
----
227

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 + - col1 * - - col2 FROM tab0
----
1
-100
21
-231
81
-3888

query II rowsort
SELECT DISTINCT col0, - col2 * col1 AS col2 FROM tab0
----
15
-3807
87
-210
97
-99

query I rowsort
SELECT + 9 * - + ( - col1 ) FROM tab0 AS cor0
----
189
729
9

query I rowsort
SELECT - col1 * 9 AS col0 FROM tab0 AS cor0
----
-189
-729
-9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + - COUNT( * ) * - - 36 * + COUNT( * ) FROM tab1 AS cor0
----
-324

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + - COUNT ( * ) * - - 36 * + COUNT ( * ) FROM tab1 AS cor0
----
-324

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( col0, 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5361
SELECT + CAST( - col0 AS SIGNED ) DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5361
SELECT + CAST ( - col0 AS INTEGER ) / col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + 14 AS col0 FROM tab2
----
60
78
89

query I rowsort
SELECT ALL col1 + 51 + + - col2 AS col0 FROM tab1 cor0
----
-3
-31
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL ( - + 78 ) + - ( - MIN( DISTINCT + col2 ) ) col2 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5364
SELECT ALL ( - + 78 ) + - ( - MIN ( DISTINCT + col2 ) ) col2 FROM tab0 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + 48 + - - 26 * - col1 + + 85 col2, ( + col0 ) + - + col2 FROM tab0 AS cor0
----
-2020
-32
-423
77
8
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT + COUNT( * ), - 88 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9
-88

skipif mysql # not compatible
query II rowsort label-5366
SELECT + COUNT ( * ), - 88 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9
-88

query I rowsort
SELECT col0 + + col1 - + 57 * - col0 AS col2 FROM tab1
----
2972
4935
5325

query III rowsort
SELECT * FROM tab1 WHERE ( col1 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT col2 + + - col0 - + + CAST( - col0 AS SIGNED ) + col2 + - 69 * + 31 FROM tab0 AS cor0
----
-1941
-2045
-2119

skipif mysql # not compatible
query I rowsort label-5369
SELECT col2 + + - col0 - + + CAST ( - col0 AS INTEGER ) + col2 + - 69 * + 31 FROM tab0 AS cor0
----
-1941
-2045
-2119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab2 AS cor0 WHERE col0 + - ( - col1 ) + - 90 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT ( - - 2 ) + + SUM( - 79 ) AS col0 FROM tab1 AS cor0
----
-235

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT ( - - 2 ) + + SUM ( - 79 ) AS col0 FROM tab1 AS cor0
----
-235

query I rowsort
SELECT ALL - - col2 - col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + + COUNT( * ) + - SUM( + + 29 ) FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + + COUNT ( * ) + - SUM ( + + 29 ) FROM tab0 cor0
----
-84

query I rowsort
SELECT ALL - col2 * - 96 - col2 AS col2 FROM tab2 AS cor0
----
2185
3800
5510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) * + 30 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 30 FROM tab2 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT ALL CAST( NULL AS SIGNED ) - - + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL CAST ( NULL AS INTEGER ) - - + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - - col1 ) NOT BETWEEN ( NULL ) AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 * 17 - - - col1 AS col1, 14 - 70 col0 FROM tab0
----
11904
-56
14769
-56
163250
-56

query I rowsort
SELECT - 20 - col2 + + + col1 + + col0 + 61 FROM tab0
----
139
40
90

query II rowsort
SELECT DISTINCT col2 AS col1, col2 * - ( + 46 ) FROM tab0
----
10
-460
47
-2162
99
-4554

query I rowsort
SELECT ALL - 32 AS col1 FROM tab1 cor0
----
-32
-32
-32

query II rowsort
SELECT DISTINCT - + 65 AS col1, 36 * - col0 FROM tab0 AS cor0
----
-65
-3132
-65
-3492
-65
-540

query I rowsort
SELECT ALL + 75 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT + MAX( ALL col0 ) AS col1, + COUNT( * ) + + COUNT( * ) col0 FROM tab0
----
97
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5386
SELECT + MAX ( ALL col0 ) AS col1, + COUNT ( * ) + + COUNT ( * ) col0 FROM tab0
----
97
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT + MIN( DISTINCT 86 ) AS col1 FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT + MIN ( DISTINCT 86 ) AS col1 FROM tab2 cor0
----
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 28 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT CAST( 81 AS SIGNED ) * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-15876
-178929
-2025

skipif mysql # not compatible
query I rowsort label-5389
SELECT CAST ( 81 AS INTEGER ) * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-15876
-178929
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT DISTINCT + 80 DIV - - col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT + 80 / - - col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL COUNT( ALL - - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL COUNT ( ALL - - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5393
SELECT DISTINCT + col2, col2 + + col0 + + CAST( - - col0 AS SIGNED ) + CAST( NULL AS SIGNED ) / col0 col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5393
SELECT DISTINCT + col2, col2 + + col0 + + CAST ( - - col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) / col0 col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL - ( 33 ) + - + COUNT( * ) col2 FROM tab0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT ALL - ( 33 ) + - + COUNT ( * ) col2 FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT + col0 + - col1 + 98 + 21 DIV - - col0 FROM tab0 AS cor0
----
164
194
33

skipif mysql # not compatible
query I rowsort label-5396
SELECT + col0 + - col1 + 98 + 21 / - - col0 FROM tab0 AS cor0
----
164
194
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT CAST( NULL AS SIGNED ) / + col2 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT CAST ( NULL AS INTEGER ) / + col2 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT - - CAST( NULL AS SIGNED ) + - 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT - - CAST ( NULL AS INTEGER ) + - 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 65 col0 FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT 63 + col0 AS col1 FROM tab0 AS cor0
----
150
160
78

query I rowsort
SELECT - + 77 + col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + 67 - - 20 AS col1 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT - - 13 * + + col2 + 16 FROM tab1 AS cor0
----
1264
783
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 78 - 3 col0, col0 AS col0 FROM tab0 cor0
----
75
15
75
87
75
97

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - 46 + - - col0 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - - col0 col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL 34 * - 33 AS col0 FROM tab1 AS cor0
----
-1122
-1122
-1122

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5409
SELECT ALL - 20 * - + col0 + 89 * 11 AS col2 FROM tab1 cor0 WHERE - CAST( col2 AS DECIMAL ) IS NOT NULL
----
1999
2679
2799

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - 20 * - + col0 + 89 * 11 AS col2 FROM tab1 cor0 WHERE - CAST ( col2 AS REAL ) IS NOT NULL
----
1999
2679
2799

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL <= NULL )
----

query II rowsort
SELECT ALL col1 * - 68, - 52 AS col1 FROM tab2
----
-3468
-52
-4556
-52
-5236
-52

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN col0 - + col1 AND - + ( - ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT MAX( + 52 ) AS col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5414
SELECT MAX ( + 52 ) AS col0 FROM tab2 AS cor0
----
52

query I rowsort
SELECT - 7 / - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5416
SELECT DISTINCT + ( - 21 ) DIV + COUNT( * ) FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + ( - 21 ) / + COUNT ( * ) FROM tab0 cor0
----
-7

query II rowsort
SELECT + col1 * col1, ( - col2 ) + + col0 - - 29 AS col1 FROM tab0
----
1
27
441
106
6561
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5418
SELECT col0, col0 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) <> 77 / + 52 + - col2
----

skipif mysql # not compatible
query II rowsort label-5418
SELECT col0, col0 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) <> 77 / + 52 + - col2
----

query II rowsort
SELECT ( + 95 ) AS col0, 39 AS col1 FROM tab1
----
95
39
95
39
95
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 4 col2 FROM tab0
----
188
396
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + MIN( ALL 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-5421
SELECT + MIN ( ALL 35 ) FROM tab1
----
35

query I rowsort
SELECT DISTINCT + 79 * col2 FROM tab0 cor0
----
3713
7821
790

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT DISTINCT - col0 DIV + 12 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - col0 / + 12 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-1
-7
-8

query I rowsort
SELECT ALL - 40 + ( - col1 ) FROM tab2
----
-107
-117
-91

query II rowsort
SELECT DISTINCT 32 / + - 79 + - - col2 * - ( - col1 ), - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * col2 )
----

query II rowsort
SELECT + col2 AS col0, col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + - col2 * 87 IS NOT NULL AND NOT 16 * + + col1 * + 9 / + - col1 IS NOT NULL
----

query I rowsort
SELECT 21 * - + 79 FROM tab0, tab1 AS cor0
----
9 values hashing to b4e06986611691a43a22c435100b3156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * - 44 col2 FROM tab0 AS cor0
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL + COUNT( * ) * + 19 AS col1 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + COUNT ( * ) * + 19 AS col1 FROM tab2 cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 31 ) col1 FROM tab1 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col1 AS col1, col1 col0 FROM tab1 cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - 27 * - 40 * - + COUNT( * ) AS col2 FROM tab2
----
-3240

skipif mysql # not compatible
query I rowsort label-5433
SELECT - 27 * - 40 * - + COUNT ( * ) AS col2 FROM tab2
----
-3240

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 13 + - - col2 / 44 * col0 AND NULL
----

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT ( + + 17 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - MIN( 89 ) AS col0 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5436
SELECT - MIN ( 89 ) AS col0 FROM tab1 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT - 28 * - COUNT( - 69 ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-5437
SELECT - 28 * - COUNT ( - 69 ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
84
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT + + col1 * 36 DIV col1 FROM tab0 cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-5438
SELECT + + col1 * 36 / col1 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT - ( - 26 ) * + ( + + col0 ) FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query II rowsort label-5440
SELECT DISTINCT - - COUNT( * ) AS col1, ( + MAX( ALL + 4 ) ) FROM tab0 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-5440
SELECT DISTINCT - - COUNT ( * ) AS col1, ( + MAX ( ALL + 4 ) ) FROM tab0 AS cor0
----
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5441
SELECT ALL - COUNT( - - 32 ) DIV - 43 AS col0 FROM tab0 AS cor0 WHERE NOT + 50 + - - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - COUNT ( - - 32 ) / - 43 AS col0 FROM tab0 AS cor0 WHERE NOT + 50 + - - col2 <> NULL
----
0

query I rowsort
SELECT ALL col0 + - col2 * + ( - col0 ) FROM tab1
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, 93 col2 FROM tab2
----
51
93
67
93
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + MAX( - 31 ) + - 17 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5444
SELECT + MAX ( - 31 ) + - 17 FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5445
SELECT CAST( + + col1 AS SIGNED ) * col2 + CAST( NULL AS DECIMAL ) + - ( + 7 ) AS col2, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-5445
SELECT CAST ( + + col1 AS INTEGER ) * col2 + CAST ( NULL AS REAL ) + - ( + 7 ) AS col2, - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5446
SELECT ALL - MAX( DISTINCT CAST( NULL AS SIGNED ) ), COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5446
SELECT ALL - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 49 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - 50 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT DISTINCT - + ( - - col1 ) * 23 + + col2 + + col1 + - ( col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( col0 ) + - ( - 33 ) IN ( 20, col0 + + col0, - col1 )
----

query I rowsort
SELECT - - ( + + col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - + 54 * + ( - col1 ) FROM tab2 AS cor0
----
2754
3618
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - MAX( DISTINCT + - ( - 64 ) ) AS col0 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5453
SELECT - MAX ( DISTINCT + - ( - 64 ) ) AS col0 FROM tab2 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + 5, 25 + col1 col2 FROM tab2 AS cor0
----
28
76
45
102
63
92

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - 84 IS NOT NULL )
----

query I rowsort
SELECT ALL - col2 * - col0 * - col0 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - 70 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT + CAST( NULL AS SIGNED ) / - 88 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5459
SELECT + CAST ( NULL AS INTEGER ) / - 88 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * + col1 + + 94 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT + SUM( ALL ( - - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT + SUM ( ALL ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 98 * - col0 AS col2 FROM tab2 AS cor0
----
4508
6272
7350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 8 * - col0 > + - col0 * col1
----
85
5
59

query I rowsort
SELECT ALL - col1 * - col1 * + ( 91 ) AS col2 FROM tab0 cor0
----
40131
597051
91

query I rowsort
SELECT ALL 11 * - 95 FROM tab2
----
-1045
-1045
-1045

query I rowsort
SELECT DISTINCT + 21 + + + col0 FROM tab0 WHERE - col1 - - col1 IS NULL
----

query II rowsort
SELECT ALL 85 AS col0, + col1 FROM tab0
----
85
1
85
21
85
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5468
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST( 3 AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5468
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST ( 3 AS REAL ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 41 AS col2 FROM tab2 AS cor0
----
51
-41
67
-41
77
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL + + COUNT( - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + + COUNT ( - col2 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 29 ) col0 FROM tab2
----
29
29
29

query I rowsort
SELECT + + col1 + col2 + col0 + - 86 * - 99 + + - 69 + col1 AS col0 FROM tab0 AS cor0
----
8584
8643
8669

query I rowsort
SELECT ALL - col1 + - + col2 + - col0 FROM tab1 AS cor0
----
-149
-161
-206

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE 59 IS NULL
----

query I rowsort
SELECT ALL col1 + + - 23 AS col2 FROM tab1 AS cor0
----
-18
-9
24

query I rowsort
SELECT ALL col1 + + - col1 * + - 88 * + 31 FROM tab1 AS cor0
----
128263
13645
38206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) + - 96 FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) + - 96 FROM tab0 cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col0 - col1 - - - col2 > + - 33 DIV col0 * + col2 + 24 + - 42
----
2

skipif mysql # not compatible
query I rowsort label-5478
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 - col1 - - - col2 > + - 33 / col0 * + col2 + 24 + - 42
----
2

query I rowsort
SELECT ALL + + 85 + - 82 AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT + + col0 * ( col2 ) + + 46 + - col1 * + CAST( NULL AS SIGNED ) * - 82 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT + + col0 * ( col2 ) + + 46 + - col1 * + CAST ( NULL AS INTEGER ) * - 82 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT DISTINCT col2 DIV - 93 + 77 col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5481
SELECT DISTINCT col2 / - 93 + 77 col1 FROM tab2
----
77

query I rowsort
SELECT ALL 29 * - 34 * - + 91 * + 48 FROM tab0
----
4306848
4306848
4306848

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT - COUNT( * ) * 72 AS col2 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - COUNT ( * ) * 72 AS col2 FROM tab2
----
-216

query II rowsort
SELECT DISTINCT - 4, - 7 * col2 AS col2 FROM tab0 AS cor0
----
-4
-329
-4
-693
-4
-70

query I rowsort
SELECT DISTINCT ( col2 ) - + - col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT + - col2 + + 19 AS col0 FROM tab0 AS cor0
----
-28
-80
9

query I rowsort
SELECT + 83 + - col1 AS col2 FROM tab2
----
16
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT + COUNT( * ) * - MIN( 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-648

skipif mysql # not compatible
query I rowsort label-5488
SELECT + COUNT ( * ) * - MIN ( 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-648

query I rowsort
SELECT ALL - 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 61 )
----

query II rowsort
SELECT ALL - 62, - col2 * col0 AS col2 FROM tab1 cor0
----
-62
-4896
-62
-5015
-62
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT + MAX( ALL + 52 ) AS col2 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-5493
SELECT + MAX ( ALL + 52 ) AS col2 FROM tab2 cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + 80 * MIN( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-3760

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + 80 * MIN ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-5495
SELECT ALL + - 50 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + - 50 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 >= NULL
----

query I rowsort
SELECT col2 * col1 * - + col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - 39 + - COUNT( * ) * COUNT( * ) * - - 39 FROM tab0 cor0
----
-390

skipif mysql # not compatible
query I rowsort label-5498
SELECT - 39 + - COUNT ( * ) * COUNT ( * ) * - - 39 FROM tab0 cor0
----
-390

query II rowsort
SELECT col1 * + + col0, ( col2 ) FROM tab0 AS cor0
----
1215
47
1827
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL ( - + COUNT( * ) ) - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL ( - + COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 + col2 * - col0 * + + 75 - 19 FROM tab0
----
-52879
-65182
-720147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT + - ( - CAST( + ( - col1 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5502
SELECT + - ( - CAST ( + ( - col1 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ( + 45 ) + - ( - 12 ) + col1 FROM tab2 cor0
----
108
124
134

query I rowsort
SELECT ALL + 54 + - - col1 AS col2 FROM tab0 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - 35 * COUNT( * ) + 45 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
45

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 35 * COUNT ( * ) + 45 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
45

query I rowsort
SELECT 44 + - col2 * + col0 AS col1 FROM tab0
----
-661
-826
-9559

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5507
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 - - + col1 * - col1 NOT BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT + + col0 DIV + 98 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT + + col0 / + 98 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 17 - col2 col0 FROM tab0 AS cor0
----
-181
-3
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + + ( + - COUNT( * ) ) - + 43 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5511
SELECT + + ( + - COUNT ( * ) ) - + 43 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - + col2 - - col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT + 65 * - - col0 * + 0 * + CAST( col1 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT + 65 * - - col0 * + 0 * + CAST ( col1 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT + col2 DIV 39 AS col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5514
SELECT + col2 / 39 AS col2 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5515
SELECT - MAX( DISTINCT col2 ) * 33 DIV - 61 AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5515
SELECT - MAX ( DISTINCT col2 ) * 33 / - 61 AS col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL + - ( col0 ) * - 4 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT ALL - + 79 DIV + - 58 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - + 79 / + - 58 FROM tab2 cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT DISTINCT col2 DIV 84 * 53 FROM tab1
----
0
53

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT col2 / 84 * 53 FROM tab1
----
0
53

query II rowsort
SELECT DISTINCT 1, - 21 * 1 AS col0 FROM tab0
----
1
-21

query II rowsort
SELECT + col1 AS col0, ( - 81 ) + - col2 AS col2 FROM tab1
----
14
-177
47
-149
5
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - MIN( + 0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT - MIN ( + 0 ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2, + col1, - col1 col2 FROM tab0 AS cor0
----
9 values hashing to dec05b2f683fbf3e8ec226db0eeebbe8

onlyif mysql # DIV for integer division: 
query II rowsort label-5523
SELECT ALL + - col1 DIV col0 AS col2, col2 FROM tab2 AS cor0
----
-1
23
-1
40
0
58

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL + - col1 / col0 AS col2, col2 FROM tab2 AS cor0
----
-1
23
-1
40
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT + - SUM( ( col2 ) ) * SUM( DISTINCT + ( + - 95 ) ) - + - CAST( + 54 AS SIGNED ) * + 57 * - 84 AS col0 FROM tab2 AS cor0
----
-247057

skipif mysql # not compatible
query I rowsort label-5524
SELECT + - SUM ( ( col2 ) ) * SUM ( DISTINCT + ( + - 95 ) ) - + - CAST ( + 54 AS INTEGER ) * + 57 * - 84 AS col0 FROM tab2 AS cor0
----
-247057

query I rowsort
SELECT DISTINCT + + 72 + - col0 AS col1 FROM tab1 AS cor0
----
-13
-19
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT ALL - 20 DIV 60 + + - SUM( DISTINCT + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - 20 / 60 + + - SUM ( DISTINCT + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 78 * - - col1 <= + col1
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT MIN( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + 44 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT MIN ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + 44 IS NOT NULL
----
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 54 - - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 41 ) FROM tab0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5532
SELECT - CAST( - col2 AS SIGNED ) DIV - - 48 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5532
SELECT - CAST ( - col2 AS INTEGER ) / - - 48 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + col0 - + 5 FROM tab2
----
41
59
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5534
SELECT DISTINCT + COUNT( * ) * 40 + + + 32 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
152
NULL

skipif mysql # not compatible
query II rowsort label-5534
SELECT DISTINCT + COUNT ( * ) * 40 + + + 32 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
152
NULL

query III rowsort
SELECT * FROM tab1 WHERE 34 + - 70 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5536
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 95 * - 20, CAST( + + 46 AS DECIMAL ) / + col1, col2 )
----

skipif mysql # not compatible
query III rowsort label-5536
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 95 * - 20, CAST ( + + 46 AS REAL ) / + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL - + MAX( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5537
SELECT ALL - + MAX ( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
-96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ( + + 70 ) * + + COUNT( * ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-5539
SELECT ( + + 70 ) * + + COUNT ( * ) AS col0 FROM tab0
----
210

query I rowsort
SELECT DISTINCT - 75 FROM tab2 WHERE + + col0 IS NOT NULL
----
-75

query I rowsort
SELECT ALL + + col2 * + col2 - col0 FROM tab2 cor0
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL 57 * - MAX( + col0 ) * - COUNT( * ) col1 FROM tab2 cor0
----
12825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5542
SELECT ALL 57 * - MAX ( + col0 ) * - COUNT ( * ) col1 FROM tab2 cor0
----
12825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 6 * col0 col1 FROM tab2 AS cor0
----
12696
24576
33750

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5545
SELECT - 42 * - 93 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT - 42 * - 93 + + - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + - 55 AND NULL
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 22 ) + - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - SUM( - - 55 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - SUM ( - - 55 ) FROM tab2
----
-165

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT 81 * + - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 81 * + - COUNT ( * ) FROM tab0
----
-243

query I rowsort
SELECT + col1 + + col1 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT - 35 * - - COUNT( * ) FROM tab1 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - 35 * - - COUNT ( * ) FROM tab1 cor0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5554
SELECT DISTINCT + col2 * + - col1 * + ( + 89 ) + + CAST( NULL AS SIGNED ) + + col2 - - col0 + 55 / 54 * + col1 / + 52 * + + 76 * - col2, 87 col1 FROM tab1 AS cor0
----
NULL
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5554
SELECT DISTINCT + col2 * + - col1 * + ( + 89 ) + + CAST ( NULL AS INTEGER ) + + col2 - - col0 + 55 / 54 * + col1 / + 52 * + + 76 * - col2, 87 col1 FROM tab1 AS cor0
----
NULL
87

query I rowsort
SELECT DISTINCT col2 + 16 * - + 53 * + col1 AS col1 FROM tab1 AS cor0
----
-11776
-39788
-4181

query II rowsort
SELECT + col2, col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 30 + + col0 * - + col0 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 41 * + ( - + col1 ) FROM tab1
----
-1927
-205
-574

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN - ( - ( - - col2 ) ) AND NULL
----

query I rowsort
SELECT col0 - - col2 + - col0 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5561
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( 83 AS SIGNED ) * - - col2 / 88 IS NOT NULL AND NOT col0 BETWEEN NULL AND - 24
----

skipif mysql # not compatible
query III rowsort label-5561
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( 83 AS INTEGER ) * - - col2 / 88 IS NOT NULL AND NOT col0 BETWEEN NULL AND - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + + COUNT( * ) + + 2 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) + + 2 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 48 * + col2 + + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
2241
393
4655

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + - COUNT( * ) + + ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT + - COUNT ( * ) + + ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * + col0 + col0 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT ALL - 13 - - 85 * - + col2 AS col0 FROM tab2 AS cor0
----
-1968
-3413
-4943

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT + COUNT( * ) - - - 66 AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + COUNT ( * ) - - - 66 AS col2 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL 44 * - 50 AS col2 FROM tab1 AS cor0
----
-2200
-2200
-2200

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col0 / col0
----

query I rowsort
SELECT + 14 + - col2 FROM tab1 AS cor0
----
-45